版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1、DataBase System ConceptsDataBase System ConceptsDeng Fang DDataBase System ConceptsIntroduction Book: Database System Concepts Teaching hours: total 68 hours, includinglecture time: 48 hourspractice time: 16 hoursDataBase System ConceptsReference Book:数据库系统概念数据库系统概念 机械工业出版社机械工业出版社数据库系统概论,王珊著,高等教育出版社
2、数据库系统概论,王珊著,高等教育出版社数据库系统原理,李建中,王珊编著,电子工业出版社数据库系统原理,李建中,王珊编著,电子工业出版社DataBase System ConceptsContents(1)Part 1 IntroductionDatabase Structure, Language, Users, Data ModelPart 2 Relational DatabasesRelational ModelSQLIntegrity and SecurityPart 3 Database DesignE_R ModelRelational-database DesignDataBas
3、e System ConceptsContents(2)Part 4 Data Storage and QueryingStorage and File StructureIndexing and HashingQuerying ProcessingQuery Optimization Part 5 Transaction ManagementTransactionsConcurrency controlRecovery System DataBase System ConceptsContents(3)Part 6 Database System ArchitecturePart 7 Obj
4、ect-Based Databases and XMLPart 8 Case StudiesPart 9 Other TopicsDataBase System ConceptsIntroductionChapter One Introductionn History of Database systemsn What is Database systems n Three levels and Data Abstractionn Data Modelsn Database languagesn Database usersn Database system structureDataBase
5、 System ConceptsHistory of Database systemsDevelopment of Data ManagementManual ModelApplication Program1Application Program2Application ProgramnData Set1Data Set2Data SetnDataBase System ConceptsHistory of Database systemsFile System Application Program1Application Program2Application ProgramnData
6、Set1Data Set2Data SetnFile SystemDataBase System ConceptsHistory of Database systemsDrawbacks of using file systems to store Data:Data redundancy and inconsistencyMultiple file formats, duplication of information in different filesDifficulty in accessing data Need to write a new program to carry out
7、 each new taskData isolation multiple files and formatsIntegrity problemsIntegrity constraints (e.g. account balance 0) become part of program codeHard to add new constraints or change existing onesAtomicity of updatesConcurrent access by multiple usersSecurity problemsDataBase System ConceptsHistor
8、y of Database systemsDataBase System ConceptsHistory of Database systemsDatabase SystemDBMSApplication Program1Application Program2Application ProgramnDatabaseDataBase System ConceptsBenefits of Database Approach Data can be shared; Redundancy can be reduced; Inconsistency can be avoided(to some ext
9、ent); Transaction support can be provided; Integrity can be maintained; Security can be enforced; DataBase System ConceptsDatabase System Vs File systemFile systemData ManagementApp.App.File SystemApp.Data ManagementApp.Data Management 1950s and early 1960s: Data processing using magnetic tapes for
10、storage Punched cards for input Late 1960s and 1970s: Hard disks allow direct access to data Network and hierarchical data models in widespread use Ted Codd defines the relational data model Would win the ACM Turing Award for this work IBM Research begins System R prototype UC Berkeley begins Ingres
11、 prototype High-performance (for the era) transaction processingDataBase System ConceptsHistory of Database systems 1980s: Research relational prototypes evolve into commercial systems SQL becomes industrial standard Parallel and distributed database systems Object-oriented database systems 1990s: L
12、arge decision support and data-mining applications Large multi-terabyte data warehouses Emergence of Web commerce 2000s: XML and XQuery standards Automated database administrationDataBase System ConceptsHistory of Database systemsDataBase System ConceptsHistory of Database systems1968, IBMs IMS (Inf
13、ormation Management system)hierarchical data model;1970s, Cullinet Softwares IDMS1971, CODASYL(Conference on Data System Language) report network data model;1970, E.F.Codd defined the relational model1990s, object-relational database, WEB database, parallel databaseDataBase System ConceptsWhat is Da
14、tabase systemsDBMS: DataBase Management SystemDB: databasea collection of interrelated dataApplications Set of programs to access the dataDBMS(教材上) contains information about a particular enterpriseCollection of interrelated dataSet of programs to access the data An environment that is both convenie
15、nt and efficient to useDataBase System ConceptsWhat is Database systemsDataBase System ConceptsDatabase Applications:Banking: all transactionsAirlines: reservations, schedulesUniversities: registration, gradesSales: customers, products, purchasesManufacturing: production, inventory, orders, supply c
16、hainHuman resources: employee records, salaries, tax deductionsDatabases touch all aspects of our livesDatabase ApplicationsDataBase System ConceptsThree level Architecturedescribes how a record is physically stored.describes logical data stored in database, and the relationships among the data. Com
17、munity user viewPart of entire databaseIndividual user viewsPhysical abstractionLogical abstractionView abstraction Physical level: describes how a record (e.g., customer) is stored. Logical level: describes data stored in database, and the relationships among the data.type customer = recordcustomer
18、_id : string; customer_name : string;customer_street : string;customer_city : integer;end; View level: Part of the entire database. Application programs hide details of data types. Views can also hide information (such as an employees salary) for security purposes. DataBase System ConceptsDataBase S
19、ystem ConceptsData AbstractionView abstraction Logical abstraction Physical abstractionDataBase System ConceptsMappings(映象)(映象) The Physical(internal)/Logical(conceptual) mappingdefines the correspondence between the logical view and the stored database;specifies how logical records and fields are r
20、epresented at the physical level; The View(external)/Logical(conceptual) mappingdefines the correspondence between a particular view and the logical view;DataBase System ConceptsData Independence Physical Data Independence (物理数据独立性) the ability to modify the physical schema without changing the logi
21、cal schema or the views(The Physical(internal)/Logical(conceptual) mapping)Application programs need not be rewritten if the physical schema changes. Logical Data Independence (逻辑数据独立性) the ability to modify the logical schema without changing the logical views(The View(external)/Logical(conceptual)
22、 mapping)主语言主语言+DML用户用户A1主语言主语言+DML用户用户A2主语言主语言+DML用户用户B1主语言主语言+DML用户用户B2主语言主语言+DML用户用户B3外模式外模式A外模式外模式B概念模式概念模式外模式外模式/模式映象模式映象A外模式外模式/模式映象模式映象B模式模式/内模式映象内模式映象内模式内模式数据库数据库由数据库由数据库管理员建管理员建立和维护立和维护OSDBMS数据库系统的体系结构数据库系统的体系结构DataBase System ConceptsSchema (模式) the description of the structure of the data
23、 in a database e.g., the database consists of information about a set of customers and accounts and the relationship between them);Analogous to type information of a variable in a program;Physical schema: database design at the physical level;Logical schema: database design at the logical level;Inst
24、ance(实例)(实例) the actual content of the database at a particular point in time Analogous to the value of a variableDataBase System ConceptsData ModelsA collection of conceptual tools for describing data, data relationships,data semantics ,and consistency constrains.Data Structure;Data Operations;Cons
25、traint Rules.DataBase System ConceptsData ModelsObject_based data model:Entity-Relational Model (E_R Model);Object-oriented Model;Record_based data model:hierarchical data model;network data model;relational data modelDataBase System Conceptscustomer-nameCustomer-idcustomer-streetcustomer-cityaccoun
26、t-numberJohnsonSmithJohnsonJonesSmith192-83-7465019-28-3746192-83-7465321-12-3123019-28-3746AlmaNorthAlmaMainNorthPalo AltoRyePalo AltoHarrisonRyeA-101A-215A-201A-217A-201Relational Data ModelDataBase System ConceptsDatabase LanguagesData Definition Language (DDL):Specification notation for defining
27、 the database schema; Eg:Create table account ( account-number char(10), balance integer)Including:Database schema Data storage and definition language DataBase System ConceptsDatabase LanguagesLanguage for accessing and manipulating the data organized by the appropriate data model;( query, insert ,
28、 delete, update )DML also known as query languageTwo classes of languages Procedural user specifies what data is required and how to get those data ;Nonprocedural user specifies what data is required without specifying how to get those data;SQL is the most widely used query languageDataBase System C
29、onceptsUsers are differentiated by the way they expect to interact with the systemApplication programmers interact with system through DML callsSophisticated users form requests in a database query languageSpecialized users write specialized database applications that do not fit into the traditional
30、 data processing frameworkNaive users invoke one of the permanent application programs that have been written previouslyE.g. people accessing database over the web, bank tellers, clerical staffDataBase System Concepts End Users: naive Userscasual users -Interactive SQL Application Programmers-Proced
31、ural SQL,Transaction Database analyzer and designer -Data modeling, Normalization theory, Database Administrators, DBA -Database maintenance , Security , Integrity,Recovery Database Management System designer and implementer -Implementation technique of above techniques for Special and New Database
32、Management SystemDataBase System ConceptsCoordinates all the activities of the database system; the database administrator has a good understanding of the enterprises information resources and needs.Database administrators duties include:Schema definitionStorage structure and access method definitio
33、nSchema and physical organization modificationGranting user authority to access the databaseSpecifying integrity constraintsActing as liaison with usersMonitoring performance and responding to changes in requirementsDBADataBase System ConceptsDatabase System StructureDataBase System ConceptsDatabase
34、 System StructureStorage manager is a program module that provides the interface between the low-level data stored in the database and the application programs and queries submitted to the system.is responsible for efficient storing, retrieving and updating of data;Authorization and integrity manager;Transaction manager;File manager;Buff
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 设计师工作计划
- 2024年体育用品销售员提成及促销活动合同3篇
- 2024年建筑节能施工员聘用合同3篇
- 初中暑假学习计划
- 高炉炉渣综合利用工程可行性研究报告
- 三年级教学工作计划5篇
- 2022中学班主任个人工作计划
- 小学体育工作总结
- 公司助理个人实习工作
- 六年级毕业演讲稿范文集锦七篇
- 四年级下册混合运算100道及答案
- 浙江省宁波市慈溪市2023-2024学年八年级上学期期末数学试题(含答案)
- 【小学心理健康教育分析国内外文献综述4100字】
- 艺术疗愈行业分析
- 中医院肺病科年度工作计划
- 老年综合评估知情同意书
- 会议筹备工作分工表
- 2023火电机组深度调峰工况下的涉网性能技术要求
- 医学英语术语解密-福建医科大学中国大学mooc课后章节答案期末考试题库2023年
- 内燃机车点检方法探讨
- 2023初一语文现代文阅读理解及解析:《猫》
评论
0/150
提交评论