Professional Documents
Culture Documents
IntroductiontoDatabases
Transparencies
Chapter1Objectives
Somecommonusesofdatabasesystems.
Characteristicsoffilebasedsystems.
Problemswithfilebasedapproach.
Meaningofthetermdatabase.
MeaningofthetermDatabaseManagement
System(DBMS).
Chapter1Objectives
TypicalfunctionsofaDBMS.
MajorcomponentsoftheDBMSenvironment.
PersonnelinvolvedintheDBMSenvironment.
HistoryofthedevelopmentofDBMSs.
AdvantagesanddisadvantagesofDBMSs.
ExamplesofDatabaseApplications
Purchasesfromthesupermarket
Purchasesusingyourcreditcard
Bookingaholidayatthetravelagents
Usingthelocallibrary
Takingoutinsurance
Rentingavideo
UsingtheInternet
Studyingatuniversity
Pearson Education Limited 1995, 2005
FileBasedSystems
Collectionofapplicationprogramsthat
performservicesfortheendusers(e.g.reports).
Eachprogramdefinesandmanagesitsown
data.
FileBasedProcessing
LimitationsofFileBasedApproach
Separationandisolationofdata
Eachprogrammaintainsitsownsetofdata.
Usersofoneprogrammaybeunawareof
potentiallyusefuldataheldbyotherprograms.
Duplicationofdata
Samedataisheldbydifferentprograms.
Wastedspaceandpotentiallydifferentvalues
and/ordifferentformatsforthesameitem.
Pearson Education Limited 1995, 2005
LimitationsofFileBasedApproach
Datadependence
Filestructureisdefinedintheprogramcode.
Incompatiblefileformats
Programsarewrittenindifferentlanguages,andso
cannoteasilyaccesseachothersfiles.
FixedQueries/Proliferationofapplication
programs
Programsarewrittentosatisfyparticularfunctions.
Anynewrequirementneedsanewprogram.
Pearson Education Limited 1995, 2005
DatabaseApproach
Arosebecause:
Definitionofdatawasembeddedinapplication
programs,ratherthanbeingstoredseparatelyand
independently.
Nocontroloveraccessandmanipulationofdata
beyondthatimposedbyapplicationprograms.
Result:
thedatabaseandDatabaseManagementSystem
(DBMS).
Database
Sharedcollectionoflogicallyrelateddata(and
adescriptionofthisdata),designedtomeetthe
informationneedsofanorganization.
Systemcatalog(metadata)providesdescription
ofdatatoenableprogramdataindependence.
Logicallyrelateddatacomprisesentities,
attributes,andrelationshipsofan
organizationsinformation.
Pearson Education Limited 1995, 2005
DatabaseManagementSystem(DBMS)
Asoftwaresystemthatenablesuserstodefine,
create,maintain,andcontrolaccesstothe
database.
(Database)applicationprogram:acomputer
programthatinteractswithdatabaseby
issuinganappropriaterequest(SQL
statement)totheDBMS.
DatabaseManagementSystem(DBMS)
DatabaseApproach
Datadefinitionlanguage(DDL).
Permitsspecificationofdatatypes,structuresand
anydataconstraints.
Allspecificationsarestoredinthedatabase.
Datamanipulationlanguage(DML).
Generalenquiryfacility(querylanguage)ofthe
data.
DatabaseApproach
Controlledaccesstodatabasemay
include:
asecuritysystem
anintegritysystem
aconcurrencycontrolsystem
arecoverycontrolsystem
auseraccessiblecatalog.
Views
Allowseachusertohavehisorherownviewof
thedatabase.
Aviewisessentiallysomesubsetofthe
database.
ViewsBenefits
Reducecomplexity
Providealevelofsecurity
Provideamechanismtocustomizethe
appearanceofthedatabase
Presentaconsistent,unchangingpictureofthe
structureofthedatabase,evenifthe
underlyingdatabaseischanged
ComponentsofDBMSEnvironment
ComponentsofDBMSEnvironment
Hardware
CanrangefromaPCtoanetworkof
computers.
Software
DBMS,operatingsystem,networksoftware(if
necessary)andalsotheapplicationprograms.
Data
Usedbytheorganizationandadescription
ofthisdatacalledtheschema.
Pearson Education Limited 1995, 2005
ComponentsofDBMSEnvironment
Procedures
Instructionsandrulesthatshouldbeappliedto
thedesignanduseofthedatabaseandDBMS.
People
RolesintheDatabaseEnvironment
DataAdministrator(DA)
DatabaseAdministrator(DBA)
DatabaseDesigners(LogicalandPhysical)
ApplicationProgrammers
EndUsers(naiveandsophisticated)
HistoryofDatabaseSystems
Firstgeneration
HierarchicalandNetwork
Secondgeneration
Relational
Thirdgeneration
ObjectRelational
ObjectOriented
Pearson Education Limited 1995, 2005
AdvantagesofDBMSs
Controlofdataredundancy
Dataconsistency
Moreinformationfromthesameamountofdata
Sharingofdata
Improveddataintegrity
Improvedsecurity
Enforcementofstandards
Economyofscale
AdvantagesofDBMSs
Balanceconflictingrequirements
Improveddataaccessibilityandresponsiveness
Increasedproductivity
Improvedmaintenancethroughdata
independence
Increasedconcurrency
Improvedbackupandrecoveryservices
DisadvantagesofDBMSs
Complexity
Size
CostofDBMS
Additionalhardwarecosts
Costofconversion
Performance
Higherimpactofafailure