Recent Developments (1) Social Networks started capturing a lot of information about people and about communications among people-posts, tweets, photos, videos in systems such as: - Facebook - Twitter - Linked-In All of the above constitutes data
Other DBMS Functionalities DBMS may additionally provide: Protection or Security measures to prevent unauthorized access “Active” processing to take internal actions on data Presentation and visualization of data Maintenance of the database and associated programs over the lifetime of the database application
Application Programs and DBMS Applications interact with a database by generating - Queries: that access different parts of data and formulate the result of a request - Transactions: that may read some data and “update” certain values or generate new data and store that in the database
Example of a Database (with a Conceptual Data Model) Mini-world for the example: Part of a UNIVERSITY environment Some mini-world entities: STUDENTs COURSEs SECTIONs (of COURSEs) (Academic) DEPARTMENTs INSTRUCTORs
Example of a Database (with a Conceptual Data Model) Some mini-world relationships: SECTIONs are of specific COURSEs STUDENTs take SECTIONs COURSEs have prerequisite COURSEs INSTRUCTORs teach SECTIONs COURSEs are offered by DEPARTMENTs STUDENTs major in DEPARTMENTs
Note: The above entities and relationships are typically
expressed in a conceptual data model, such as the ENTITY-RELATIONSHIP data model (see Chapters 3, 4)
Main Characteristics of the Database Approach Self-describing nature of a database system: A DBMS catalog stores the description of a particular database (e.g. data structures, types, and constraints) The description is called meta-data*. This allows the DBMS software to work with different database applications. Insulation between programs and data: Called program-data independence. Allows changing data structures and storage organization without having to change the DBMS access programs
Main Characteristics of the Database Approach (continued) Data Abstraction: A data model is used to hide storage details and present the users with a conceptual view of the database. Programs refer to the data model constructs rather than data storage details Support of multiple views of the data: Each user may see a different view of the database, which describes only the data of interest to that user.
Main Characteristics of the Database Approach (continued) Sharing of data and multi-user transaction processing: Allowing a set of concurrent users to retrieve from and to update the database. Concurrency control within the DBMS guarantees that each transaction is correctly executed or aborted Recovery subsystem ensures each completed transaction has its effect permanently recorded in the database OLTP (Online Transaction Processing) is a major part of database applications. This allows hundreds of concurrent transactions to execute per second.
that will be used to store and manage end-user data Well-designed database Facilitates data management Generates accurate and valuable information Poorly designed database causes difficult-to- trace errors
Contrasting Database and File Systems File System Database Management System
A file system is a software application A database management system, or
that organizes and maintains files on DBMS, is a software application that a storage device. It manages the allows you to access, create, and storage and retrieval of data. manage databases.
The database is a software
application and is not shipped as a The file system is more related to an part of the operating system. It is operating system and is shipped as a more about organizing the data and part of the operating system itself. implementing techniques to keep the data consistent and to have faster access to the data.
The use of a database management
A file system does not allow for system is efficient because there are efficient data storage and retrieval. numerous techniques for storing and retrieving data.
Contrasting Database and File Systems It does not provide data recovery In DBMS, there is a backup recovery services. option for data. There is no crash recovery A crash recovery method is provided mechanism in the file system. by DBMS. A good protection method is provided It’s difficult to keep a file system safe. by DBMS. Redundancy is minimized to a great Data redundancy is higher in a file extent in a database management management system. system. The file system has a higher level of data inconsistency. Same data might A database management system has be stored at multiple places yet have a low level of data inconsistency. different values leading to data inconsistency.
Concurrency is not available in this A concurrency facility is provided by a
system. database management system. It is less expensive than a database It is costlier than that of a file system. management system.