Chapter1 基本概念

名词

  1. Database (DB)
  2. The term DBS and DBMS are used interchangeably in the textbook
  3. Database application system DB + DBMS + Application programs + Users/Administers
  4. DBS = DB + DBMS

OS文件系统缺点

  1. Data redundancy and inconsistency
  2. Difficulty in accessing data
  3. Data isolation/独立性(信号量)

数据库系统目的

  1. Integrity/完整性 problems【语义约束】
  2. Atomicity/原子性 of updates
  3. Concurrent access/并发访问 by multiple users
  4. Security problems

数据模型、数据建模、数据抽象

  1. data models a collection of conceptual tools for describing:
  • data, data relationships/联系
  • data semantics/语义
  • consistency/一致性 constraints
  • specifications for data organization and access
  1. data modeling organize application data in the database, according to data model, by data abstraction
  2. data abstraction
  • database modeling mechanism
  • hide the complexity of data structures to represent data in the database from users through view-logical-physical levels of data abstraction

Levels of Abstraction

  1. Physical level
  • describes how a record (e.g., instructor) is stored and accessed in database files
  1. Logical level
  • Implementation/DB-oriented describes data stored in database, and the relationships among the data.
  1. View level
  • application programs hide details of data types views can also hide information (such as an employee’s salary) for security purposes.
  • described as Entity-relationship (E-R) diagrams

DDL DML

  1. Data Definition Language
  2. DML
  • procedural/过程性 DML – require a user to specify what data are needed and how to get those data [e.g. relational algebra]

  • declarative/声明性 DML – require a user to specify what data are needed without specifying how to get those data [e.g. SQL]

数据库设计阶段

从保持data independence角度出发,根据data models所定义的数据规范形式,在view、logical 、 physical三个层次,通过data abstraction,经过概念设计、逻辑设计、物理设计三个步骤,构造 面向具体应用领域的DBS的 E-R diagrams, external schema/logical schema , internal schema的集合, 得到conceptual DB 、logical DB 、physical DB设计结果

设计阶段

Built with Hugo
Theme Stack designed by Jimmy