Sie sind auf Seite 1von 24

Chapter1

IntroductiontoDatabases

Pearson Education 2014

Chapter1Objectives
Somecommonusesofdatabasesystems.
Characteristicsoffilebasedsystems.
Problemswithfilebasedapproach.
Meaningofthetermdatabase.
MeaningofthetermDatabase
ManagementSystem(DBMS).

Pearson Education 2014

Chapter1Objectives
TypicalfunctionsofaDBMS.
MajorcomponentsoftheDBMS
environment.
PersonnelinvolvedintheDBMS
environment.
HistoryofthedevelopmentofDBMSs.
AdvantagesanddisadvantagesofDBMSs.

Pearson Education 2014

ExamplesofDatabase
Applications
Purchasesfromthesupermarket
Purchasesusingyourcreditcard
Bookingaholidayatthetravelagents
Usingthelocallibrary
Takingoutinsurance
Rentingavideo
UsingtheInternet
Studyingatuniversity

Pearson Education 2014

FileBasedSystems
Collectionofapplicationprogramsthat
performservicesfortheendusers(e.g.
reports).
Eachprogramdefinesandmanagesits
owndata.

Pearson Education 2014

FileBasedProcessing

Pearson Education 2014

LimitationsofFileBased
Approach
Separationandisolationofdata

Eachprogrammaintainsitsownsetofdata.
Usersofoneprogrammaybeunawareof
potentiallyusefuldataheldbyotherprograms.

Duplicationofdata

Samedataisheldbydifferentprograms.
Wastedspaceandpotentiallydifferentvalues
and/ordifferentformatsforthesameitem.

Pearson Education 2014

LimitationsofFileBased
Approach
Datadependence

Filestructureisdefinedintheprogramcode.

Incompatiblefileformats

Programsarewrittenindifferentlanguages,
andsocannoteasilyaccesseachothersfiles.

FixedQueries/Proliferationofapplication
programs
Programsarewrittentosatisfyparticular
functions.
Anynewrequirementneedsanewprogram.
Pearson Education 2014

DatabaseApproach
Arosebecause:

Definitionofdatawasembeddedin
applicationprograms,ratherthanbeing
storedseparatelyandindependently.
Nocontroloveraccessandmanipulationof
databeyondthatimposedbyapplication
programs.

Result:

thedatabaseandDatabaseManagement
System(DBMS).
Pearson Education 2014

Database
Sharedcollectionoflogicallyrelateddata
(andadescriptionofthisdata),designedto
meettheinformationneedsofan
organization.
Systemcatalog(metadata)provides
descriptionofdatatoenableprogramdata
independence.
Logicallyrelateddatacomprisesentities,
attributes,andrelationshipsofan
organizationsinformation.
Pearson Education 2014

DatabaseManagementSystem
(DBMS)
Asoftwaresystemthatenablesusersto
define,create,maintain,andcontrol
accesstothedatabase.
(Database)applicationprogram:a
computerprogramthatinteractswith
databasebyissuinganappropriate
request(SQLstatement)totheDBMS.

Pearson Education 2014

DatabaseManagementSystem
(DBMS)

Pearson Education 2014

DatabaseApproach
Datadefinitionlanguage(DDL).

Permitsspecificationofdatatypes,
structuresandanydataconstraints.
Allspecificationsarestoredinthedatabase.

Datamanipulationlanguage(DML).

Generalenquiryfacility(querylanguage)of
thedata.

Pearson Education 2014

DatabaseApproach
Controlledaccesstodatabasemay
include:
asecuritysystem
anintegritysystem
aconcurrencycontrolsystem
arecoverycontrolsystem
auseraccessiblecatalog.

Pearson Education 2014

Views
Allowseachusertohavehisorherown
viewofthedatabase.
Aviewisessentiallysomesubsetofthe
database.

Pearson Education 2014

ViewsBenefits
Reducecomplexity
Providealevelofsecurity
Provideamechanismtocustomizethe
appearanceofthedatabase
Presentaconsistent,unchangingpicture
ofthestructureofthedatabase,evenif
theunderlyingdatabaseischanged

Pearson Education 2014

ComponentsofDBMSEnvironment

Pearson Education 2014

ComponentsofDBMSEnvironment
Hardware

CanrangefromaPCtoanetworkof
computers.

Software

DBMS,operatingsystem,networksoftware(if
necessary)andalsotheapplicationprograms.

Data

Usedbytheorganizationandadescription
ofthisdatacalledtheschema.

Pearson Education 2014

ComponentsofDBMSEnvironment
Procedures

Instructionsandrulesthatshouldbeappliedto
thedesignanduseofthedatabaseandDBMS.

People

Pearson Education 2014

RolesintheDatabase
Environment
DataAdministrator(DA)
DatabaseAdministrator(DBA)
DatabaseDesigners(Logicaland
Physical)
ApplicationProgrammers
EndUsers(naiveandsophisticated)

Pearson Education 2014

HistoryofDatabaseSystems
Firstgeneration

HierarchicalandNetwork

Secondgeneration
Relational

Thirdgeneration

ObjectRelational
ObjectOriented

Pearson Education 2014

AdvantagesofDBMSs
Controlofdataredundancy
Dataconsistency
Moreinformationfromthesameamount
ofdata
Sharingofdata
Improveddataintegrity
Improvedsecurity
Enforcementofstandards
Economyofscale
Pearson Education 2014

AdvantagesofDBMSs
Balanceconflictingrequirements
Improveddataaccessibilityand
responsiveness
Increasedproductivity
Improvedmaintenancethroughdata
independence
Increasedconcurrency
Improvedbackupandrecoveryservices

Pearson Education 2014

DisadvantagesofDBMSs
Complexity
Size
CostofDBMS
Additionalhardwarecosts
Costofconversion
Performance
Higherimpactofafailure

Pearson Education 2014

Das könnte Ihnen auch gefallen