Beruflich Dokumente
Kultur Dokumente
IntroductiontoDatabases
Chapter1Objectives
Somecommonusesofdatabasesystems.
Characteristicsoffilebasedsystems.
Problemswithfilebasedapproach.
Meaningofthetermdatabase.
MeaningofthetermDatabase
ManagementSystem(DBMS).
Chapter1Objectives
TypicalfunctionsofaDBMS.
MajorcomponentsoftheDBMS
environment.
PersonnelinvolvedintheDBMS
environment.
HistoryofthedevelopmentofDBMSs.
AdvantagesanddisadvantagesofDBMSs.
ExamplesofDatabase
Applications
Purchasesfromthesupermarket
Purchasesusingyourcreditcard
Bookingaholidayatthetravelagents
Usingthelocallibrary
Takingoutinsurance
Rentingavideo
UsingtheInternet
Studyingatuniversity
FileBasedSystems
Collectionofapplicationprogramsthat
performservicesfortheendusers(e.g.
reports).
Eachprogramdefinesandmanagesits
owndata.
FileBasedProcessing
LimitationsofFileBased
Approach
Separationandisolationofdata
Eachprogrammaintainsitsownsetofdata.
Usersofoneprogrammaybeunawareof
potentiallyusefuldataheldbyotherprograms.
Duplicationofdata
Samedataisheldbydifferentprograms.
Wastedspaceandpotentiallydifferentvalues
and/ordifferentformatsforthesameitem.
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.
DatabaseManagementSystem
(DBMS)
DatabaseApproach
Datadefinitionlanguage(DDL).
Permitsspecificationofdatatypes,
structuresandanydataconstraints.
Allspecificationsarestoredinthedatabase.
Datamanipulationlanguage(DML).
Generalenquiryfacility(querylanguage)of
thedata.
DatabaseApproach
Controlledaccesstodatabasemay
include:
asecuritysystem
anintegritysystem
aconcurrencycontrolsystem
arecoverycontrolsystem
auseraccessiblecatalog.
Views
Allowseachusertohavehisorherown
viewofthedatabase.
Aviewisessentiallysomesubsetofthe
database.
ViewsBenefits
Reducecomplexity
Providealevelofsecurity
Provideamechanismtocustomizethe
appearanceofthedatabase
Presentaconsistent,unchangingpicture
ofthestructureofthedatabase,evenif
theunderlyingdatabaseischanged
ComponentsofDBMSEnvironment
ComponentsofDBMSEnvironment
Hardware
CanrangefromaPCtoanetworkof
computers.
Software
DBMS,operatingsystem,networksoftware(if
necessary)andalsotheapplicationprograms.
Data
Usedbytheorganizationandadescription
ofthisdatacalledtheschema.
ComponentsofDBMSEnvironment
Procedures
Instructionsandrulesthatshouldbeappliedto
thedesignanduseofthedatabaseandDBMS.
People
RolesintheDatabase
Environment
DataAdministrator(DA)
DatabaseAdministrator(DBA)
DatabaseDesigners(Logicaland
Physical)
ApplicationProgrammers
EndUsers(naiveandsophisticated)
HistoryofDatabaseSystems
Firstgeneration
HierarchicalandNetwork
Secondgeneration
Relational
Thirdgeneration
ObjectRelational
ObjectOriented
AdvantagesofDBMSs
Controlofdataredundancy
Dataconsistency
Moreinformationfromthesameamount
ofdata
Sharingofdata
Improveddataintegrity
Improvedsecurity
Enforcementofstandards
Economyofscale
Pearson Education 2014
AdvantagesofDBMSs
Balanceconflictingrequirements
Improveddataaccessibilityand
responsiveness
Increasedproductivity
Improvedmaintenancethroughdata
independence
Increasedconcurrency
Improvedbackupandrecoveryservices
DisadvantagesofDBMSs
Complexity
Size
CostofDBMS
Additionalhardwarecosts
Costofconversion
Performance
Higherimpactofafailure