数据库系统原理英文PPT课件.pptx
《数据库系统原理英文PPT课件.pptx》由会员分享,可在线阅读,更多相关《数据库系统原理英文PPT课件.pptx(70页珍藏版)》请在三一文库上搜索。
1、February 20111Main Parts in This ChapterDatabase System ApplicationsPurpose of Database SystemsView of DataDatabase Languages Relational DatabaseDatabase DesignData Storage and Querying Transaction Management Database ArchitecturesDatabase Users and AdministratorsHistory of Database SystemsAppendix:
2、Data,Information,Knowledge,etc.第1页/共70页February 201121.0 DB,DBMS,DBSDefinitions in the textbookDatabase(DB)a collection of interrelated data,stored in systems as files Database management system(DBMS)DB,or a collection of interrelated data set of programs to access the data in DBDatabase system(DBS)
3、having the same definition as DBMS in the textbookthe term DBS and DBMS are used interchangeably in the textbook第2页/共70页February 201131.0 DB,DBMS,DBS(cont.)DBMS provides an environment that is both convenient and efficient for store and retrieve information definition of structures for storage of in
4、formationdata manipulation mechanismsdata safety mechanismsDefinitions in some other textbooksDatabase(DB)a collection of interrelated data,stored in systems as files第3页/共70页February 201141.0 DB,DBMS,DBS(cont.)Definitions in some other textbooks(cont.)Database management system(DBMS)a system/mechani
5、sm to manage data in DB or:set of programs to access the data in DBDatabase system(DBS)DB+DBMS+Users/AdministersDatabase application system DB+DBMS+Application programs+Users/Administers第4页/共70页DBMSApplication program 1DB fileDB query language e.g.SQLUsersDBMSDBDBS/DBASApplication program 1第5页/共70页F
6、ebruary 20116Databases and DBS touch all aspects of our livesBanking:all transactionsAirlines:reservations,schedulesUniversities:registration,gradesSales:customers,products,purchasesManufacturing:production,inventory,orders,supply chainHuman resources:employee records,salaries,tax deductions1.2 Purp
7、ose of Database Systems第6页/共70页February 20117In the early days,data management applications were built on top of file systemsE.g.Saving-bank enterprisea number of application programs to access data filesA program to debit(将.记入借方)or credit(将.记入贷方)an account(帐户)A program to add a new accountA program
8、 to find the balance(收付差额,余额)of an accountA program to generate monthly statements1.2 Purpose of Database Systems(cont.)第7页/共70页February 20118Data management on the basis of file systemsExample customer_record=in Customer_FileFS access needs file name,item name,length of record,length of item,positi
9、on of item in the record,storage structure,access method,.Demerit application programs are not independent of the file system(or operating system)dependency among application programs and data(程序与数据的非独立/依存性)1.2 Purpose of Database Systems(cont.)第8页/共70页Why DBS neededsecondary storage (e.g.disk,tape)
10、and data on it (address:cylinder,track,sector)memory controllers(i.e.disk controller),on the basis of secondary storages physical structures,such as storage structures,access method access programs(I)direct accessthrough disk controller(I)access through OS file system(II)access through data base sys
11、tem(DBS)(III)access programs(II)access programs (III)I/O system:driversfile system:files logical structures and access methodsDBMS:relational tables logical structures and access methods system calls related to file management DBS API 第9页/共70页Select NameFrom Student Where S#=100DBSlogicalstructures:
12、relations/tuplesDBMSDB userLogical address:#RecordRecord1Recordkblock1OS:Logical fileRecordiRecordmBlock nPhysical address:platter/track/sectorblock1blockiblockkPhysical File on diskDB filesblockOS:file system and I/O subsystem view of data model view of file第10页/共70页February 201111Drawbacks of usin
13、g file systems to store datadata redundancy(冗余)and inconsistency(不一致性)multiple file formats,duplication(副本)of information in different filesdifficulty in data accessneed to write a new program to carry out each new taskdata isolation(独立性)multiple files and formats1.2 Purpose of Database Systems(cont
14、)第11页/共70页February 201112integrity(完整性)problemsdata values should satisfy consistency constraintsintegrity constraints (e.g.customer_age 0)become part of program codehard to add new constraints or change existing onesatomicity problemsfailures may leave database in an inconsistent state with partia
15、l updates carried oute.g.transfer of funds from one account to another should either complete or not happen at all1.2 Purpose of Database Systems(cont.)第12页/共70页February 201113concurrent access anomaliesuncontrolled concurrent accesses can lead to inconsistenciese.g.two persons read an account and u
16、pdate it at the same timesecurity problemsDatabase systems offer solutions to all the above problems1.2 Purpose of Database Systems(cont.)第13页/共70页February 2011141.3 View of DataBasic concepts in DBS theoryview of data(数据视图),data abstractdata model,data schema(模式),schema instancelogical/physical iso
17、lation Data View data features from some viewpoints e.g.about student,his name,sex,age,.To simplify and“divide and conquer”the design of complex data application systems describes/design application data in three levels,and obtains three types of schema第14页/共70页第15页/共70页February 201116View leveldesc
18、ribe data from how the data items in DB are used by different usersseveral views for one datum description resultsexternal schema(外模式)=view,set of viewsdescription procedure/Logical DB designview abstractionmerits:application programs are programmed according to views.Views can also hide information
19、e.g.,salary)for security purposes.第16页/共70页February 201117E.g.Banking Application Areas in Fig.6.25 in page 240from more than one viewpoints,view integration view1:customer view2:customer view3:customer view4:loan view5:account view6:.第17页/共70页February 201118Logical levelimplementation-oriented,des
20、cribes how the data items are stored in DBS(e.g.as relational tables),and what relationships exist among those data:table customername:string;street:string;city:integer;description resultslogical schema(逻辑模式),e.g.relational tables description procedure/Logical DB designlogical abstractionMerits:hidi
21、ng physical implementation details第18页/共70页February 201119Physical leveldescribes how the data(e.g.,customer record/table)are actually stored in files(or in secondary storage)description resultsphysical/internal schema(物理模式,内模式)i.e.storage structure and access methods,such as index,physical blocks,a
22、ccess methods for secondary memory,etc.description procedure/Physical DB designphysical abstraction第19页/共70页February 201120An instance of the database(数据库实例)the collection of information stored in the database at a particular moment(P7 in the textbook)the actual content of the database at a particul
23、ar point in timeSchemathe structure of the databaseoverall design of the database?(P7 in the textbook)physical schemadatabase design at the physical levellogical schemadatabase design at the logical level第20页/共70页February 201121Data descriptions/abstractions in three levels must obey three types of
24、specification,i.e.three types of data modelsDefinition of data model(P8)a collection of conceptual tools for describingdata data relationshipsdata semanticsdata constraints程序=数据结构+算法 integrity constraints第21页/共70页February 201122Another definition of data modelDBS中对数据组织与管理/使用方式的抽象描述,包括数据组织的语法定义,如数据项、
25、数据项间的联系数据组织的语义定义,如完整性约束数据操作 (note:only in some data models,e.g.relational data model)Relational model(关系模型)using a collection of tables to represent both data and the relationships among those dataa set of operations on tables are also defined(2.2/2.3/2.4)第22页/共70页February 201123Entity-Relationship
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 数据库 系统 原理 英文 PPT 课件
