DOC PREVIEW
UMBC CMSC 691 - Database Technologies

This preview shows page 1-2-16-17-18-33-34 out of 34 pages.

Save
View full document
View full document
Premium Document
Do you want full access? Go Premium and unlock all 34 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 34 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 34 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 34 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 34 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 34 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 34 pages.
Access to all documents
Download any document
Ad free experience
Premium Document
Do you want full access? Go Premium and unlock all 34 pages.
Access to all documents
Download any document
Ad free experience

Unformatted text preview:

Database TechnologiesContentsWhat is a DatabaseAdvantagesDBMSDBMS FeaturesAdvanced DBMS FeaturesData Independence and Access EfficiencyConcurrency Control and Data IntegrityReliability and SecurityData Distribution and HeterogeneityCategories of Data Models3-schema Architecture3-Schema Architecture (cont'd)The Entity-Relational ModelThe E-R Model (cont’d)Data ModelThe Relational Model (Codd 1970)Domain and RelationRelational Model (cont’d)Slide 21E-R to Relations (i.e., defining relations)Translating from E-RSchema NormalizationQuery and Update LanguagesRelational Query LanguagesSQLUsing SQLSQL SchemaData Definition LanguageWeb Server to Database ConnectivityWeb Server to Database Connectivity (cont’d)Web-Database Connectivity : MiddlewareHow a user interacts with a Web Database1Database TechnologiesYelena Yesha2ContentsDatabase OverviewDBMSRelational Data ModelSQLWeb-Database Connectivity3What is a Database A system that stores data “persistent” – Exists beyond the immediate useCentralized storage Single or multiple users4AdvantagesReduces redundancy Reduces inconsistency SharedData representation standards can be enforcedEnables security restrictions Integrity maintainedValid cross references between records Allows data-independent applicationsApplications ignorant of how data is stored5DBMS Database Management System ExamplesOracleDB2Microsoft SQL ServerSybaseDBMS UsersEnd usersProgrammersDatabase administrations6DBMS FeaturesOptimize Queries Manage memory Control concurrent data access7Advanced DBMS Features Integrity maintenance Entity Integrity ( foreign key references) Referential Integrity (foreign key references)Cascading deletes Set Null or default No action (command is rejected) Access ControlGrant & Revoke •Access to tables •Capability to perform operations (Insert, update, delete, etc.)8Data Independence and Access EfficiencyDBMS allows to avoid rewriting all access routines every time the data format changes or data is added/modified/deleted insulate applications from data storage details.Logical independence: protection from changes in logical structure of dataPhysical independence: protection from changes in physical structure of dataDBMS maintains data structures and implements algorithms allowing to avoid linear searchindexing: search in O(log n)fast access even on complex data queries9Concurrency Control and Data IntegrityDBMS insures semantically correct access to the same data by concurrent applicationstwo programs accessing the same data at the same time can result in an inconsistent updateimplement sharing in a controlled mannerData semantics may require certain constraints to be satisfiedDBMS guarantees that application programs comply with the constraints when adding/modifying the data10Reliability and SecurityDBMS provides techniques for recovery from software and hardware failuresguarantee survival of the data across catastrophes.DBMS prevents unauthorized users from accessing/modifying data or denying service to other users.11Data Distribution and HeterogeneityCentralization is the enemy of scalabilitya vast number of modern applications are distributedData sharing in a distributed environment is a challengeHeterogeneity applies to networks, hardware, operating systems, programming languages, data formats, etc.Distributed applications must mask the differencesNeed distributed data management12Categories of Data ModelsHigh-level or conceptualentities, attributes, relationshipsRepresentational or implementation or logicalrelational, network hierarchical, object-oriented, object-relationalPhysical or low-leveldata storage133-schema ArchitecturePhysical level description of a database:how things are stored on disk:files, record structures, indices, data structures for disk blocks, methodology for dealing with too long records, etc.Conceptual level description of a databaseThe description of application data (its schema) using one of the traditional data models.143-Schema Architecture (cont'd)View-level description of a databaseWhat users of a particular application seetheir own customized schema, e.g., for payroll, for the ticket agent, for a simulation program.Multiple levels helps with data independence;helps with maintenance.Many views, single logical and physical schema.Levels of abstraction give data independence.15The Entity-Relational ModelEntity: a distinguishable object.Entity set: a set of entities all of the same type.Attribute: a single property of an entity;simple vs composite; single-valued vs multi-valued; stored vs derived; null values.Domain: set of values permitted for that attribute.16The E-R Model (cont’d)Relationship: an association between two or more entities.Relationship set: a set of relationships all of the same typeThere is no correct schema for a batch of data. Which schema is best depends on the application.Many basic data modelling choices depend on an understanding of the application.17Data ModelData model: notation for describing data, plus a set of operations used to manipulate that data.a set of primitives for defining the structure of a DB;a set of operations for specifying the retrievals and updates on a DB;relational, hierarchical, network, object-oriented.18The Relational Model (Codd 1970)The relational data model is the most important data model currently existing.Value-oriented, i.e., allows operations on relations whose results are relations, thus enables to combine operations.As opposed to object-oriented models, in whichOperations cannot be applied to the result of other operations;The result of an operation may be a new data type, and operations may not be available for this type.19Domain and RelationA domain is a set of atomic values.A relation is a finite subset of the Cartesian product of a finite list of domains;relation is a set of tuples;order of tuples is irrelevant andno relation has 2 identical tuples;each tuple value is atomicno composite attributes;no multi-valued attributes.20Relational Model (cont’d)Everything is represented by relations–Formally: Given sets D1, D2, ....Dn (not necessarily distinct), a relation R  D1 X D2 X ...X Dn – Di


View Full Document

UMBC CMSC 691 - Database Technologies

Documents in this Course
NOTES

NOTES

8 pages

OWL

OWL

109 pages

Security

Security

53 pages

SIP

SIP

45 pages

Proposals

Proposals

30 pages

Proposals

Proposals

30 pages

Load more
Download Database Technologies
Our administrator received your request to download this document. We will send you the file to your email shortly.
Loading Unlocking...
Login

Join to view Database Technologies and access 3M+ class-specific study document.

or
We will never post anything without your permission.
Don't have an account?
Sign Up

Join to view Database Technologies 2 2 and access 3M+ class-specific study document.

or

By creating an account you agree to our Privacy Policy and Terms Of Use

Already a member?