


Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!



Database Management Systems 3ed, R. Ramakrishnan and J. Gehrke 1
Instructor: Rick Schumeyer [email protected]
Database Management Systems 3ed, R. Ramakrishnan and J. Gehrke 2
ย A very large, integrated collection of data. ย Models real-world enterprise. ย Entities (e.g., students, courses) ย Relationships (e.g., Madonna is taking CS564) ย A Database Management System (DBMS) is a software package designed to store and manage databases.
Database Management Systems 3ed, R. Ramakrishnan and J. Gehrke 3
ย early 1960s: first general purpose database by Charles Bachman from GE. Used the network data model. ย late 1960s: IBM developed Information Management System (IMS). Used the hierarchical data model. Led to SABRE, the airline reservation system developed by AA and IBM. Still in use today.
Database Management Systems 3ed, R. Ramakrishnan and J. Gehrke 4
ย 1970: Edgar Codd of IBM developed the relational data model. Led to several DBMS based on relational model, as well as important theoretical results. Codd wins Turing award. ย 1980s: relational model dominant. SQL standard. ย Late 1980s, 1990s: DBMS vendors extend systems, allowing more complex data types (images, text).
ย Application must stage large datasets between main memory and secondary storage (e.g., buffering, page-oriented access, 32-bit addressing, etc.) ย Special code for different queries ย Must protect data from inconsistency due to multiple concurrent users ย Crash recovery ย Security and access control
ย Data independence and efficient access. ย Reduced application development time. ย Data integrity and security. ย Uniform data administration. ย Concurrent access, recovery from crashes.
Database Management Systems 3ed, R. Ramakrishnan and J. Gehrke 7
ย Shift from computation to information ย at the โlow endโ: scramble to webspace (a mess!) ย at the โhigh endโ: scientific applications ย Datasets increasing in diversity and volume. ย Digital libraries, interactive video, Human Genome project, EOS project ย ... need for DBMS exploding ย DBMS encompasses most of CS ย OS, languages, theory, โAโI, multimedia, logic
Database Management Systems 3ed, R. Ramakrishnan and J. Gehrke 8
ย A data model is a collection of concepts for describing data. ย A schema is a description of a particular collection of data, using the a given data model. ย The relational model of data is the most widely used model today. ย Main concept: relation , basically a table with rows and columns. ย Every relation has a schema , which describes the columns, or fields.
Database Management Systems 3ed, R. Ramakrishnan and J. Gehrke 9
ย Many views , single conceptual (logical) schema and physical schema. ย Views describe how users see the data. ย Conceptual schema defines logical structure ย Physical schema describes the files and indexes used.
Physical Schema
Conceptual Schema
View 1 View 2 View 3
Database Management Systems 3ed, R. Ramakrishnan and J. Gehrke 10
ย Conceptual schema: ย Students(sid: string, name: string, login: string, dob: date, gpa:real) ย Courses(cid: string, cname:string, credits:integer) ย Enrolled(sid:string, cid:string, grade:string) ย Physical schema: ย Relations stored as unordered files. ย Index on first column of Students. ย External Schema (View): ย Course_info(cid:string,enrollment:integer)
12347 Guldu guldu@cs 3/4/1986 3.
12346 Smith smith@cs 2/3/1985 3.
12345 Jones jones@cs 1/1/1985 3.
sid name login dob gpa
Student table:
ย Applications insulated from how data is structured and stored. ย Logical data independence : Protection from changes in logical structure of data. ย Physical data independence : Protection from changes in physical structure of data.
ย A typical DBMS has a layered architecture. ย The figure does not show the concurrency control and recovery components. ย This is one of several possible architectures; each system has its own variations.
Query Optimization and Execution Relational Operators Files and Access Methods Buffer Management Disk Space Management
DB
These layers must consider concurrency control and recovery
ย DBMS used to maintain, query large datasets. ย Benefits include recovery from system crashes, concurrent access, quick application development, data integrity and security. ย Levels of abstraction give data independence. ย A DBMS typically has a layered architecture. ย DBAs hold responsible jobs and are well-paid! ย DBMS R&D is one of the broadest, most exciting areas in CS.