Database Management Systems (DBMSs)
²DBMS: a collection of general-purpose,application-independent programs
providing services to
3de¯ne the structureof a database, i.e., data types and constraints that
the data will have to satisfy
3manage the storageof data, safely for long periods of time, on some storage
medium controled by the DBMS
3manipulate a database, with e±cient user interfaces to query the database
to retrieve speci¯c data, update the database to re°ect changes in the world,
generate reports from the data
3manage database usage: users with their access rights, performance op-
timization, sharing of data among several users, security from accidents or
unauthorized use
3monitorand analyze database usage
3
²DBMS have similarities with operating systems: both manage memory, process schedul-
ing, I/O, communication
²In addition, DBMSs implement many data-management functions
²Other name for DBMS: database system, database manager
²DBMSs typically do not use the ¯le system of the operating system of the machine
where they are installed. Instead, the de¯ne their own richer ¯le organizations and
access methods
Database-Management Systems, October 7, 2008 { 3
Example of a Database
Student
StudName StudNo ClassDept
Smith 17 1 CS
Brown 8 2 CS
Course
CourseName CourseNo CreditsDept
Introduction to CS CS1310 4 CS
Data Structures CS3320 4 CS
Discrete Mathematics MA2410 3 MA
Database Management CS3380 3 CS
Prerequisite
CourseNo PrereqNo
CS3380 CS3320
CS3380 MA2410
CS3320 CS1310
Session
SessIdentCourseNo SemesterYearProfessor
85 MA2410 Fall 96 King
92 CS1310 Fall 96 Anderson
102 CS3320 Spring 97 Knuth
112 MA2410 Fall 97 Chang
119 CS1310 Fall 97 Anderson
GradeReport
StudNo SessIdentGrade
17 112 14
17 119 12
8 85 16
8 92 16
8 102 14
4
Important Functions on a Database
²Structure de¯nition: declare 5 ¯les or relations + data types, e.g.
Student(StudName, StudentNo, Class, Dept)
²Population: input data about speci¯c students, courses, prerequisites,: : :
²Querying
3Which are the prerequisites of the Database course ?
3List students who got grade 14 or 16 for the Database course in 1993
²Reporting: prepare diplomas, with standard text, interspersed with name of
student, courses taken, name of degree, grades, etc.
²Modi¯cation, update of population
3Create a new session for the Database course
3Enter a grade 16 for Smith in the Database Session
²Modi¯cation of structure, of schema
3Create a new relation for instructors
3Add Address attribute to relation Student
5
Database-Management Systems, October 7, 2008 { 4