Docsity

Notes on Fundamental Database System | COP 5725, Study notes of Computer Science

Partial preview of the text

Download Notes on Fundamental Database System | COP 5725 and more Study notes Computer Science in PDF only on Docsity!

What you should have learned after this lecture ... ย‰ why file systems are inappropriate in many ways and for many applications ย‰ what the requirements of database systems are ย‰ some fundamental database terms ย‰ which kind of^

data models

and^ database languages

exist

Problems of early data processing ย‰^ redundancy^ โˆ’^ repeated occurrence of the same data in different files^ โˆ’^ waste of external memory, increased management and processing costs ย‰^ inconsistency^ โˆ’^ lacking logical concordance of file contents^ โˆ’^ especially caused due to changes ย‰^ data-program dependence^ โˆ’^ data are directly created and accessed by an application program^ โˆ’^ changes of the file structure lead to changes of the application program^ โˆ’^ extensions of the functionality of an application program lead to new requirementsof the file structure and to a restructuring of files ย‰^ inflexibility^ โˆ’^ analysis of data as well as the realization of new applications is problematic^ โˆ’^ data from several files can only be combined with very high costs

Lacking^

or^ controlled redundancy ย‰^ avoiding copies of the same data by an integrated view on data ย‰^ controlled redundancy for improving

performance

Consistency

of data ย‰^ caused by lacking redundancy ย‰^ DBMS must ensure consistency of data for controlled redundancy Integrity

of data ย‰^ correctness and completeness of data (semantical aspect) ย‰^ formulation of

integrity constraints

or^ integrity rules

ย‰^ DBMS checks constraints for each insertion, change and deletion of data Data security ย‰^ protection of the database against unauthorized access (

view^ on data)

ย‰^ access control

with authentication and encoding as possible protection mecha- nisms

Backup^

and^ recovery ย‰^ protection against the consequences of system errors ย‰^ backup: copies on external storage media (e.g. tapes) ย‰^ recovery: automatic reconstruction of the last, up-to-date, and consistent databasestatus with the aid of tapes and a protocol listing the executed changesPosing^ queries ย‰^ traditional data organization: posing queries by an application program, extremelyinflexible ย‰^ DBMS:

query language

, which allows, to pose

ad hoc^

queries by using the key-

board and to get an immediate answer ย‰ importance of an efficient

query optimization

,^ query processing

and^ query execu-

tion Provision of diversified

user interfaces ย‰^ query languages for occasional users, programming interfaces for implementors,menu-driven interfaces for naive users, window- and graphic-oriented user interfaces ย‰^ data definition languages

,^ data manipulation languages

1.3^ Fundamental Terms Database (DB) ย‰^ integrated and structured repository of large collections of persistent data, whichserves for all users of an application area as a common and reliable basis of up-to-date information ย‰^ frequently used synonymous term:

data basis

Database Management System (DBMS) ย‰^ all-purpose software system, which supports the user in the definition, constructionand manipulation of databases for different applications in an application-neutral andefficient manner ย‰^ set of programms for the management of and access to the data in the DB ย‰^ software level between physical database and user Database System(DBS) ย‰^ DBS = DBMS + DB

Data Model ย‰^ mathematical formalism consisting of a notation for describing the data of interestand of a set of operations for manipulating these data ย‰^ description of the structure of a database (data types, relationships, conditions)

queries / application programssoftware for the processingof queries and programs stored databasedefinitions(meta data)

stored database(raw data)

user^ software for the access onstored data

programmer

databaseDBMSsystemsoftware

databasis