Database MNGT System
Database MNGT System
management Systems 1
Data:
Known facts that can be recorded and have an implicit meaning.
Mini-world:
Some part of the real world about which data is stored in a database.
:
Operators and Maintenance Personnel They manage the actual
running and maintenance of the database system hardware and
software environment.
Advantages of Using the
Database Approach
Controlling redundancy in data storage and in development and maintenance
efforts.
– Sharing of data among multiple users.
Restricting unauthorized access to data. Only the DBA staff uses privileged
commands and facilities.
Providing persistent storage for program Objects
– E.g., Object-oriented DBMSs make program objects persistent.
Providing Storage Structures (e.g. indexes) for efficient Query Processing.
Cont.
Providing optimization of queries for efficient processing.
Providing backup and recovery services.
Providing multiple interfaces to different classes of users.
Representing complex relationships among data.
Enforcing integrity constraints on the database.
Drawing inferences and actions from the stored data using deductive and
active rules and triggers.
Additional Implications of Using
the Database Approach
Centralized DBMS:
– Combines everything into single system including-
DBMS software, hardware, application programs,
and user interface processing software.
– User can still connect through a remote terminal –
however, all processing is done at centralized site.
A Physical Centralized
Architecture
DBMS Server
Provides database query and transaction services to the clients
Relational DBMS servers are often called SQL servers, query
servers, or transaction servers
Applications running on clients utilize an Application Program
Interface (API) to access server databases via standard
interface such as:
– ODBC: Open Database Connectivity standard
– JDBC: for Java programming access
Two Tier Client-Server
Architecture
Client and server must install appropriate client
module and server module software for ODBC
or JDBC
A client program may connect to several DBMSs,
sometimes called the data sources.
In general, data sources can be files or other
non-DBMS software that manages data.
See Chapter 10 for details on Database
Programming
Three Tier Client-Server
Architecture
Common for Web applications
Intermediate Layer called Application Server or Web Server:
– Stores the web connectivity software and the business logic part of the
application used to access the corresponding data from the database
server
– Acts like a conduit for sending partially processed data between the
database server and the client.
Three-tier Architecture Can Enhance Security:
– Database server only accessible via middle tier
– Clients cannot directly access database server
– Clients contain user interfaces and Web browsers
– The client is typically a PC or a mobile device connected to the Web
Three-tier client-server
architecture
Classification of DBMSs
Based on the data model used
– Legacy: Network, Hierarchical.
– Currently Used: Relational, Object-oriented, Object-relational
– Recent Technologies: Key-value storage systems, NOSQL systems:
document based, column-based, graph-based and key-value based.
Native XML DBMSs.
Other classifications
– Single-user (typically used with personal computers)
vs. multi-user (most DBMSs).
– Centralized (uses a single computer with one database)
vs. distributed (uses multiple computers, multiple databases)
Variations of Distributed
DBMSs (DDBMSs)
Homogeneous DDBMS
Heterogeneous DDBMS
Federated or Multidatabase Systems
– Participating Databases are loosely coupled with high degree of
autonomy.
Distributed Database Systems have now come to be known as
client-server based database systems because:
– They do not support a totally distributed environment, but rather a set
of database servers supporting a set of clients.
Cost considerations for
DBMSs
Cost Range: from free open-source systems to configurations costing
millions of dollars
Examples of free relational DBMSs: MySQL, PostgreSQL, others
Commercial DBMS offer additional specialized modules, e.g. time-
series module, spatial data module, document module, XML
module
– These offer additional specialized functionality when purchased
separately
– Sometimes called cartridges (e.g., in Oracle) or blades
Different licensing options: site license, maximum number of
concurrent users (seat license), single user, etc.
Other Considerations
Network Model
Hierarchical Model
Relational Model
Object-oriented Data Models
Object-Relational Models
Lecture Summary