Introduction to Data Management ICS 122 ACS 122 Course Web ServerCourse InfoDesiderataDesiderata (cont.)PoliciesMaterial Covered in CS 122Database Management EnvironmentTraditional DBMS GoalsDatabases and File SystemsData AbstractionData AbstractionSchemas and InstancesData ModelEntity-Relationship ModelEntity Relationship Model (Cont.)Relational ModelA Sample Relational DatabaseClassification of DBMSs based on Data ModelDBMS LanguagesData Definition Language (DDL)Data Manipulation Language (DML)SQLApplication ArchitecturesDBMS InterfacePeople Involved with DBMSsDBMS ArchitectureKey Database TechnologiesNeed for Query OptimizationStrategies 1Strategy 2Transaction ConceptExample of TransactionMotivation of IsolationImportance of the TransactionsIntroduction to Data Management ICS 122 AProfessor Mehrotra424, ICS [email protected] Professor Ashish4308 Calit2 [email protected] 122 Course Web ServerAll course information will be posted on lineURL: http://www.ics.uci.edu/~ics184/Class Notes available before class on the Web.Course InfoTA Ravi Chandra JamalamadakaOffice and office Hours:Wednesday : 4:00-5:00 PMLocation : Calit2 atriumInstructorOffice Hours:Ashish/MehrotraTue 1:50 – 2:50 pm[email protected], [email protected]Course Text: (either of following two books will suffice)A First Course in Database Systems, Ullman and Widom we will cover the entire bookDatabase Systems Concepts, Silberschatz, Korth, and Sudarshanwe will cover chapters 1-9Software:Course will involve significant programming. You will get exposure to database programming in MySQLDesiderata (cont.)Course Requirements:Problem sets ~ approx. every week to 10 days.Total not to exceed 8MidtermFinal (comprehensive)Grades:Problem sets 15%Personal Database Assignment (project) 25%Midterm 25%Final 35%PoliciesLate AssignmentsNo grace period after due date…. except under exceptional circumstancesjob interviews, out of town trip, breaks etc do not qualify as exceptional circumstances!Working in Groupsdo your homework problem sets in group size not to exceed 3learn moreget better gradesget used to working in groups (important to employers) Do exams and assignments individually!!Material Covered in CS 122Four aspects of studying DBMSsModeling and design of databasesallows exploration of issues before committing to an implementationProgramming: queries and DB operations like update.SQL == “intergalactic dataspeak” DBMS implementationEffect of technology and application advances to database technology.CS 122 == (1) + (2)CS 214 == (3)CS215 == (3) + (4)Applications/queriesQuery processorStorage managerusermetadatadatabaseDatabase: collection of interrelated information about world being modeledDBMS:general purpose software to define, create, modify, retrieve, delete and manipulate a databaseVendors: Informix, Oracle, O2, Sybase, IBM, DECDBMSDatabase Management EnvironmentTraditional DBMS GoalsEfficient management of (faster than files) large amounts of (gigabytes) of persistent (outlasts creator), reliable (outlasts crashes) shared information (multiple users). DBMS Users:small and large corporationsE-commerce companies, banks, airlines, transportation companies, corporate databases, government agencies, defense.Anyone you can think of!Databases and File SystemsDBMSs evolved from file systems.DBMSs provide many features that traditional file systems do not.Support for concurrent access and data sharing. Data consistency in presence of concurrencyReliability in presence of failures and system crashes.Efficient associative access to very large amounts of dataA high level Query language (SQL) to define, create, access, and manipulate data. Support for unanticipated queriessupport for multiple data viewssecurity and authorizationdata abstractionprevention of data redundancy and inconsistenciesData Abstractionprogram data independence: ability to hide details of how data is stored and maintained from application programsprogram-operation independence:ability to hide details of operation implementation from application programs (Object-Orientation)Physical levelLogical LevelView1View 2 View nPhysical description of data, storage organizationConceptual representationCustomized views Data AbstractionHiding system complexity, physical storage details from users and application programsInstance: set of data currently instantiated in databasechanges frequentlySchema: overall design, structure, and constraints over the database referred to as metadatachanges infrequentlyExample:Schema InstanceTablesEmp (ename, dep#)Dept(dep#, dname, mgr)Constraintseach department has a single manager(John, 10), (Cindy, 15), (Martha, 10)(10, Toy, John), (15, Sales, Cindy)EmpSchemas and InstancesdeptData ModelConcepts and tools used to describe DB schemasDifferent models at different abstraction levelsExamples:Entity-Relationship ModelRelational ModelObject-Oriented Model (e.g., ODL)Semi-structured Model (XML)…Entity-Relationship ModelExample of schema in the entity-relationship modelEntity Relationship Model (Cont.)E-R model of real worldEntities (objects) E.g. customers, accounts, bank branchRelationships between entitiesE.g. Account A-101 is held by customer JohnsonRelationship set depositor associates customers with accountsWidely used for database designDatabase design in E-R model usually converted to design in the relational model (coming up next) which is used for storage and processingRelational ModelExample of tabular data in the relational modelcustomer-nameCustomer-idcustomer-streetcustomer-cityaccount-numberJohnsonSmithJohnsonJonesSmith192-83-7465019-28-3746192-83-7465321-12-3123019-28-3746AlmaNorthAlmaMainNorthPalo AltoRyePalo AltoHarrisonRyeA-101A-215A-201A-217A-201AttributesA Sample Relational DatabaseClassification of DBMSs based on Data Model Relational DBMSs:modeling concept: tables and constraints on tablesQuery Language: SQLApplications: suited for traditional business processing applicationsObject Oriented DBMSsmodeling concepts: objects, classes, inheritanceQuery Language: object oriented OQLApplications: suited for CAD databases, multimedia
View Full Document