Content
- File System v.s. DBMS
- Concepts
- Data Abstraction
- Data Modeling
- Database Languages
- Database Overview
File System v.s. DBMS
- Difficulty in accessing data
- Data redundancy & inconsistency
- Data isolation
- Atomicity problems
- Concurrent access anomalies
- Integrity problem
Concepts
Data Abstraction
Schema: structure (type) Instance: actual content (value)
- Physical level
- How data are actually stored
- Logical level
- What data are stored
- Relationship among data
- View level
- Part of the entire DB
Data Modeling
Used to describe data in a systematic way.
- Capture user requirements
- Store/access data efficiently
- Describes:
- Data
- Data relationships
- Data semantics
- Data constraints
Database Languages
- Data Definition Language (DDL)
- Data Manipulation Language (DML)
Database Overview
- Functional components
- Query processer: high-level user requests -> efficient low-level commands
- DDL interpreter
- Interpret DDL statements
- Definition -> data dictionary
- DML compiler
- DML statements -> evaluation plan
- Query optimization
- Query evaluation engine
- Executes low-level instructions generated by DML compiler
- DDL interpreter
- Storage manager
- File manager
- Transaction manager
- Consistency
- Authorization & integrity manager
- Integrity
- Authority
- Buffer manager
- Disk storage
- Data files
- Data dictionary: structure, schema
- Indices: fast access
- Query processer: high-level user requests -> efficient low-level commands