Sei sulla pagina 1di 24

Chapter1

IntroductiontoDatabases
Transparencies

Chapter1Objectives

Somecommonusesofdatabasesystems.
Characteristicsoffilebasedsystems.
Problemswithfilebasedapproach.
Meaningofthetermdatabase.
MeaningofthetermDatabaseManagement
System(DBMS).

Chapter1Objectives

TypicalfunctionsofaDBMS.
MajorcomponentsoftheDBMSenvironment.
PersonnelinvolvedintheDBMSenvironment.
HistoryofthedevelopmentofDBMSs.
AdvantagesanddisadvantagesofDBMSs.

ExamplesofDatabaseApplications

Purchasesfromthesupermarket
Purchasesusingyourcreditcard
Bookingaholidayatthetravelagents
Usingthelocallibrary
Takingoutinsurance
UsingtheInternet
Studyingatuniversity

FileBasedSystems

Collectionofapplicationprogramsthat
performservicesfortheendusers(e.g.reports).

Eachprogramdefinesandmanagesitsown
data.

FileBasedProcessing

LimitationsofFileBasedApproach

Separationandisolationofdata

Eachprogrammaintainsitsownsetofdata.
Usersofoneprogrammaybeunawareof
potentiallyusefuldataheldbyotherprograms.

Duplicationofdata

Samedataisheldbydifferentprograms.
Wastedspaceandpotentiallydifferentvalues
and/ordifferentformatsforthesameitem.
7

LimitationsofFileBasedApproach

Datadependence

Filestructureisdefinedintheprogramcode.

Incompatiblefileformats

Programsarewrittenindifferentlanguages,andso
cannoteasilyaccesseachothersfiles.

FixedQueries/Proliferationofapplicationprograms
Programsarewrittentosatisfyparticularfunctions.
Anynewrequirementneedsanewprogram.

DatabaseApproach

Arosebecause:

Definitionofdatawasembeddedinapplication
programs,ratherthanbeingstoredseparatelyand
independently.
Nocontroloveraccessandmanipulationofdata
beyondthatimposedbyapplicationprograms.

Result:

thedatabaseandDatabaseManagementSystem
(DBMS).
9

Database

Sharedcollectionoflogicallyrelateddata(anda
descriptionofthisdata),designedtomeetthe
informationneedsofanorganization.

Systemcatalog(metadata)providesdescriptionof
datatoenableprogramdataindependence.

Logicallyrelateddatacomprisesentities,
attributes,andrelationshipsofanorganizations
information.
10

DatabaseManagementSystem(DBMS)

Asoftwaresystemthatenablesuserstodefine,
create,andmaintainthedatabaseandthat
providescontrolledaccesstothisdatabase.

11

DatabaseManagementSystem(DBMS)

12

DatabaseApproach

Datadefinitionlanguage(DDL).
Permitsspecificationofdatatypes,structuresand
anydataconstraints.
Allspecificationsarestoredinthedatabase.

Datamanipulationlanguage(DML).
Generalenquiryfacility(querylanguage)ofthe
data.

13

DatabaseApproach

Controlledaccesstodatabasemayinclude:

Asecuritysystem.
Anintegritysystem.
Aconcurrencycontrolsystem.
Arecoverycontrolsystem.
Auseraccessiblecatalog.

Aviewmechanism.

Providesuserswithonlythedatatheywantorneed
touse.

14

Views

Allowseachusertohavehisorherownviewof
thedatabase.

Aviewisessentiallysomesubsetofthe
database.

15

Views

Benefitsinclude:
Reducecomplexity;
Providealevelofsecurity;
Provideamechanismtocustomizetheappearance
ofthedatabase;
Presentaconsistent,unchangingpictureofthe
structureofthedatabase,eveniftheunderlying
databaseischanged.

16

ComponentsofDBMSEnvironment

17

ComponentsofDBMSEnvironment

Hardware

CanrangefromaPCtoanetworkof
computers.

Software

DBMS,operatingsystem,networksoftware(if
necessary)andalsotheapplicationprograms.

Data
Usedbytheorganizationandadescription
ofthisdatacalledtheschema.
18

ComponentsofDBMSEnvironment

Procedures
Instructionsandrulesthatshouldbeappliedto
thedesignanduseofthedatabaseandDBMS.

People

19

RolesintheDatabaseEnvironment

DataAdministrator(DA)
DatabaseAdministrator(DBA)
DatabaseDesigners(LogicalandPhysical)
ApplicationProgrammers
EndUsers(naiveandsophisticated)

20

HistoryofDatabaseSystems

Firstgeneration

HierarchicalandNetwork

Secondgeneration
Relational

Thirdgeneration

ObjectRelational
ObjectOriented
21

AdvantagesofDBMSs

Controlofdataredundancy
Dataconsistency
Moreinformationfromthesameamountofdata
Sharingofdata
Improveddataintegrity
Improvedsecurity
Enforcementofstandards
Economyofscale
22

AdvantagesofDBMSs

Balancedconflictingrequirements
Improveddataaccessibilityandresponsiveness
Increasedproductivity
Improvedmaintenancethroughdata
independence
Increasedconcurrency
Improvedbackupandrecoveryservices

23

DisadvantagesofDBMSs

Complexity
Size
CostofDBMS
Additionalhardwarecosts
Costofconversion
Performance
Higherimpactofafailure

24

Potrebbero piacerti anche