数据库资源管理技术论述
第7章 数据库资源管理技术,数据库是一个结构合理、 少冗余的数据集合。,图7.1 联机事务处理与联机分析处理,图7.4 逻辑数据元素之间的关系,图7.5 磁盘顺序文件,图7.8 DBMS的主要功能,图7.9 数据模型,图7.10 数据库的三级体系结构,图7.11 三个不同的世界,系 图7.12(a),系代号 系名称 系主任 办公地点 电 话,教 师 图7.12(b),教师编号 教师姓名 专业特长,图7.13 “教学管理”E-R图,(a) (b) 图7.14 分布式数据库的结构形式,图7.15 数据仓库源于业务数据库,图7.16 多维视图示例,1. 文件组织,数据项, 记录, 文件, 数据库,数据库,文件3,文件 2,文件 1,记录3,记录2,记录 1,数据项 3,数据项 2,数据项 1,文件分类: 顺序文件,记录1,记录4,记录3,记录2,记录2,索引文件,学号,姓名,数学,C+,001,002,003,004,005,汪1,章2,赵3,李四,铁妞,89,90,75,64,32,13,85,88,77,59,a b c d e 地址,主关键,地址,001,e,002,b,链表文件,倒排文件,部门代码, 链表长度, 链头指针 MIS 12 95 AC 8 110,部门编号, 指针 MIS 95 96 97 98 99 100. AC 110 110 111 112 113 114 115 116 117 工作年限, 指针 N= 5 95 111,Checking accoun. Processing,Installment Loan Processing,Saving Pro.,Customer Statement,Customer Receipts,Loan Analysis Statement,File,Prog.,File,Pro.,File,Pro.,Customer Transaction,文件管理,2. 数据库技术,A database is an integrated collection of logical related records and files. 文件管理的问题是: 你所要的信息在不同的文件中, 而且以不同的方式组织。 一个文件被不同的程序调用, 没一个能产生你所要信息的格式。 没有一个程序合用。,1. 数据冗余, Data Redundancy. 浪费空间, 产生不一致。 inconsistency, 费力不讨好。 2. 缺少整体性, integration, 必须专门的程序为用户提供数据。 3. 数据相关, Data Dependence. 文件格式变, 程序要变。 4. 其他问题, 定义不一致, 没有统一 的数据字典。,数据库管理,Inquiry,Customer Transaction Processing,Saving,Install,Database Management System,Check,Customer Database,A Database Management System (DBMS) is a set of computer programs that controls the creation, maintenance and use of the Database of a organization and its end user.,Database Management,Operating System,DBMS,Application Programs,* Data development * Data interrogation,* Database Maintenance * Application development,Database,Data dictionary,* Data Development 由Database Administrator (DBA)开发 用Data dictionary Language 去开发. A Data dictionary is a computer-based catalog or directory containing metadata that is data about data.,* 数据库查询 Database interrogation query language, report generator,Corporate Payroll Reporting System,Highlight your selection and press Enter,Main Menu. Employee File Maintenance,Tax Report,Printer,SQL ( Structured Query Language),SELECT NAME, SSNO, DEPARTMENT, SALARY FROM EMPLOYEE, PAYROLL WHERE EMPLOYEE.SSNO=PAYROLL.SSNO AND CLASSIFICATION=“ FINANCIAL ANALYST”,QBE Query By Example,EMPLOYEE_ _NAME_ _SSNO_ _DEPARTMENT_,PAYROLL_ _SSNO_ _CLASSIFICATION_ _SALARY,FINANCIAL ANALYST,* 数据库的维护 在 DBMS 的支持下, 用UTILITY 等 * 应用开发程序 用Data Manipulation Language DML 不必用宿主语言 Host Language, COBOL,各种数据库,End User Workstation,Database Server,Distributed Database,End User Database,Data Warehouse,External,Operational,Management,* 层次数据库 Informax * 网状数据库 Sybase * 关系数据库 ORACLE,内,外,提取,DSS,模型,