ECS 165A: Introduction To Database Systems: Todd J. Green
ECS 165A: Introduction To Database Systems: Todd J. Green
Winter 2011
In the file processing approach, each application uses its own files:
Applications Applications
Products Products
Customers Suppliers
Drawbacks:
• Data are stored redundantly in many files using different
formats ( =⇒ inconsistencies among data, because changes
are not coordinated)
• No transaction management and concurrency control to
support multiple users
• Difficult to access data (no high-level query languages)
• No security mechanisms (OS file permissions are not enough!)
• No recovery mechanisms
• Program–data dependence ( =⇒ high maintenance costs)
• Poor data modeling concepts
• ...
Challenges
• Data management in sensor networks (e.g., RFID)
• Grid computing
• Integration of multimedia objects and “standard” data
• User interfaces development, information visualization
• Distribution, heterogeneity, complexity of data; security and
privacy; data integration and conversion; data quality, . . .
degree of abstraction
Logical (or Conceptual ) Level
Physical Level
major address
• Relational schema:
Students(sid : integer, name : string, major : string,
address : string, dob : date)
Courses(cid : integer, cname : string, credits : integer)
Enrolled(sid : integer, cid : integer, grade : string)
• Physical Schema:
– Relations are stored as unordered files
– Index on first column of Students
• External Schemas (Views):
– Course Info(cid : integer, enrollment : integer)
Data Independence
Database Languages
Transaction Management
Storage Management
Database Administrator
Database Users
• Users are differentiated by the way they interact with the
system
• Application programmers: interact with system through DML
and DDL calls
• Sophisticated users: formulate requests in a database query
language
• Specialized users: write specialized database applications that
do not fit into the traditional data processing framework
• Naive users: invoke one of the permanent application programs
that have been written previously
Anatomy of a DBMS