您好,欢迎访问三七文档
当前位置:首页 > IT计算机/网络 > 数据库 > 数据库系统概念(英文精编版.第六版)
2015年第1学期数据库系统公共360云盘Id:scau_db_2015password:scau_db_2015边山老师联系方式bianshan@126.com数学与信息学院611平时成绩占总评成绩的50%考勤作业和测验成绩实验成绩期末考成绩占总评成绩的50%卷面成绩60分以下则不计算平时成绩题型:选择题,应用题全英试题,答题用中文教材数据库系统概念,第6版,英文精编版ISBN:978-7-111-40086-8AbrahamSilberschatz,HenryF.Korth,S.Sudarshan机械工业出版社本课程学习内容关系数据模型关系数据库语言SQL关系代数关系数据库设计E-R模型范式理论事务管理并发控制故障恢复Chapter1:IntroductionPurposeofDatabaseSystemsViewofDataDatabaseLanguagesRelationalDatabasesDatabaseDesignDataStorageandQueryingTransactionManagementDatabaseArchitectureDataMiningandInformationRetrievalSpecialtyDatabasesDatabaseUsersandAdministratorsHistoryofDatabaseSystemsChapter1:Introduction教学目的:数据库系统的基础知识教学重点:数据的三个抽象层次、数据独立性模式和实例数据操作语言、数据定义语言数据模型、关系数据模型教学难点:数据的抽象层次PurposeofDatabaseSystemsDatabaseManagementSystem(DBMS)DBMScontains:Collectionofinterrelateddata(Database)SetofprogramstoaccessdataGoal:AnenvironmentthatisbothconvenientandefficienttouseExamples:Oracle,SQLServer,Access,MySQLDatabasestouchallaspectsofourlives:ATM,onlinebookstore……1.2PurposeofDatabaseSystemsIntheearlydays,databaseapplicationswerebuiltdirectlyontopoffilesystemsProblemsDataredundancyandinconsistencyNeedtowriteanewprogramtocarryouteachnewtask(eg.Findingoutthestudentswhocomefrom...)MultiplefilesandformatsIntegrityproblems»Integrityconstraints(e.g.accountbalance0)become“buried”inprogramcoderatherthanbeingstatedexplicitlyHardtoaddnewconstraintsorchangeexistingonesAtomicityofupdatesFailuresmayleadtoinconsistenciesExample:(1)account_A=account_A–100(2)account_B=account_B+100ConcurrentaccessbymultipleusersUncontrolledconcurrentaccessesmayleadtoinconsistenciesExample:(a1)A=account(a2)A=A–100(b1)B=account(a3)account=A(b2)B=B–100(b3)account=BSecurityproblemsHardtoprovideuseraccesstosome,butnotall,dataDatabasesystemsoffersolutionstoalltheaboveproblemsExercisesThevariouscopiesofthesamedatamaynolongeragree.Thispropertyiscalled()A.DatainconsistencyB.DataredundancyC.DataisolationD.Dataintegrity1.3ViewofDataHierarchyofAbstractionLevelsThreeAbstractionLevelsofDataPhysicallevel:describeshowdataisactuallystoredDatabasedevelopersusethislevel.Logicallevel:describeswhatdataarestoredinthedatabase,andwhatrelationshipsexistamongthosedataDatabaseadministratorsandapplicationprogrammersusethislevel.Viewlevel:simplifiestheinteractionwiththesystem.Viewscanalsohideinformationforsecuritypurposes.Computerusersusethislevel.ExamplesofLogicalLevelDataExamplesofViewLevelDataAviewthatshowstheinstructornamesoftheComputerSciencedepartment1.3.2InstancesandSchemasSchema–thelogicalstructureofthedatabaseExample:Instructor_schema=(ID,name,dept_name,salary)Department_schema=(dept_name,building,budget)Instance–theactualcontentofthedatabaseataparticularpointintimeDatabaseSystemProgrammingLanguageSchemaVariableTypeInstanceVariableValuePhysicalschema:describesdatabasedesignatthephysicallevelLogicalschema:describesdatabasedesignatthelogicallevelSubschema:describesviewsattheviewlevelExercisesComputerusersinteractswithdatainthe_______levelA.physicalB.logicalC.viewD.alloftheaboveApplicationusersinteractwithdatainthe_______level.A.physicalB.logicalC.viewD.alloftheaboveHowthedataareactuallystorediscalled_______A.PhysicallevelB.LogicallevelC.ViewlevelD.ConceptuallevelExercisesThecollectionofinformationstoredinthedatabaseataparticularmomentiscalled()A.InstanceB.SchemeC.PhysicalschemeD.DatarelationshipPhysicalDataIndependencePhysicalDataIndependenceIfthephysicalschemaismodified,thelogicalschemacanremainsunchanged,sodoestheapplicationprogramsIngeneral,theinterfacesbetweenthevariouslevelsandcomponentsshouldbewelldefinedsothatchangesinsomepartsdonotseriouslyinfluenceothers.1.3.3DataModelsAcollectionofconceptualtoolsfordescribingdata…Categories:RelationalModel(Chap2-8)Entity-RelationshipModel(Chap7)Object-baseddatamodelsSemistructureddatamodel(XML)Otheroldermodels:NetworkmodelHierarchicalmodelExercisesAdatamodelconsistsofA.schemaB.setofoperationsC.setofconstraintsD.allofA,B,andCRelationalModeltable,relationrow,record,tuplecolumn,attribute,field1.4DatabaseLanguages:DML&DDL1.4.1DataManipulationLanguage(DML)DataManipulationLanguageLanguagefordataretrieval,insertion,deletion,modificationQuerylanguageTheportionofaDMLthatinvolvesdataretrievalCommontousetheterms“datamanipulationlanguage”and“querylanguage”synonymously(同义)分两种:ProceduralDML(过程化)Declarative(声明式)(nonprocedural)DML特点userinstructsthesystemtoperformasequenceofoperationstoobtainthedataUserdescribesthedesireddata例子Relational-AlgebraSQLExercisesSQLisa_____languageA.proceduralB.nonproceduralRelational-Algebraisa_____languageA.proceduralB.nonprocedural1.4.2DataDefinitionLanguage(DDL)fordefiningthedatabaseschemaandconstraintsDDLcompilergeneratesasetoftablesstoredinadatadictionaryDatadictionarycontainsmetadata(i.e.,dataaboutdata)DatabaseschemaE.g.USER_OBJECTS,USER_TABLES,USER_VIEWSIntegrityconstraintsE.g.USER_CONSTRAINTS1.5RelationalDatabasesRelationalModeltable,relationrow,record,tuplecolumn,attribute
本文标题:数据库系统概念(英文精编版.第六版)
链接地址:https://www.777doc.com/doc-2168878 .html