You are on page 1of 12

OBuiyly Exblain thu tansaton Congbt ih

n Fvonblea,
goals l charocteishu.

The Tsansathen i a ut e togi ially sulakd opoua Rns

tuyesmed y a wingle
centent the database.
Jot acceyrng the
Soo
embloyee bary han1fou Rs
&rample- Subpose Th en thç bans Qchibn
fom v's acou/ to y[ account.
wuch Cus'
Cêntain s dever l tass

a count
X acount y[
Re ad (Y)
Read (X);
Y= X-500; irit (y);

# Goals Trans acHons in DDBMS.


achon s tcaed
Ensore that aa tans
J. Atemidhy oferohon.
sfhgle, al-or-nolhing
Maintain the inkgvity
a. Consiieny: conshaint 2 ulee, ensung
dotabase by enyoring a valid ae
that he dolab se
each hansachon.
Tlus

J Iolo'on:- Erswe that the Transachons ate exeted


isolaien Jrom
rom each othe.
(A)

4. Durabtiy- Ohce a sonsachon is commi Hed, it ects on


Commitd,
the data bQue uho ul d be pumantnt d uywive yskn
Jailuwes

t chayockeyots :
J. Distibued Tsonsa hons - TansauÝn may huolk e data
di hibuted auen multiple no
Q. Too Bhase Commit :- To achreve global consistny, DDBMS
een ses e to -phase commit fpro toco/.

3. Cenaweo y Conholi- DD8HS mut man age multple concwent


vng thy don't
tsansohions exeutng nodes ensuung
inkolese sh eath ofhut
Jlushat Tax onomy e lasahon Moclel.

(A) LAT Transottors'


wingle nitahg Jont (Byh) and a
AJlat kansachon has a aboat).
en d forn t Commi
C r
Single
vey simple l ane generally ucd fon
" They uiually
dhot athites than logr ones.
Eguest to mutiple 4
"A client makes guer
tsonsachon.
ui a Plat hansa on that buyoms oprolond
" hansai'on T,
Yand z.
Oh obfeut fn seveu X, y

chent

on to the next aoquest , a Jlat ch'en t


" Bejone moving
ansachon comble tes he pxev/ous One
toanso tion Usib the
.As a 4es lt , cach
oxde oa/t fo one
ot a Hne
"d unsa thon con nly
Nhen serves uhrge Jocping

ompes 1) Bank Bco unt Tiansa hon


3) onthe shopping Cant
IB) Nested ToansacHòns:
A ansochen that hcdudes ohex hontQchont thin t
inihaking ornt and end fornt aye nonh au negted
rans ahiong.
"So the nestno the hansorkont don e h a honsochon.

" The n es ted tansa cHons hene aye colle d Sub- honsoLh o.
(an open
" The tob- Jeyel kans aion h a neskd sans ach on
Can open MOH e
Sub- hanso ions, and each Sub - ansochon
Sub- konsacions douwn to any dph neshhg
" cien Hs toansacH'on T opens ub wo- sub
honsachons, T p T,
3hich Can Qccess Objet on 4eUeRSX Dy.
TIJ, TI. 3, TT./ D TQ.Q AShich the olyjel on
on he

ohen d ly the sub- hons ach any

4T2 Ta invoke objets On


djount serv es and i ence they
Con un in parallel 2 aye thexelo4e concuNunt.
1-J, I12, Tai e Ta. ce fou9 Sub- rans acHon. These Sub -
tansactont (an also un in harallel.

vamble Online Res evo Hon System


() 9rs but d qn soCto ui
"A dish'bukd sansachon ç delned
that He to be Auyoxmed mo than On e

datab ase or data rehosto yY


"J iovov es mul Hp/ e no des dotalales io

Systm
" 9shbut d Tranuachon aMe uued to coox dina te
e these
han acHo nd naih ta in data in tgvy
Dorking dl£ hobutd tionsachb
"7he ooking y Diahibukd Tõans achors J arne as that

simble honsacH'ons ut the challeng e s to inplemant


them bon mulhple databases.
0 29ue to the use mulhple no des 0 databaue dyskm,
hene cuAe cextan B0oblems such as netooy failwre, to
the avculability e/ era
nintan the hordoaYe 4eVey e
tor a kons ach on
datals ase deyes
4es Orce aHe coor dinatd y ronsa thòn
the avlable
manageNS.
Reaowttc
Resourc
Reao3

Retever honsothbn
Ronsathon atkna wole dgtment

3 xblah the Jolban g oms wh the hets of diag sam


inclu ding ib anchikttre /hy pu 0 chaxachvs Hia .
J) Datab aues
. 7he Databas e à an ovgonged collechin o dala , So thot
ton be eavly acessed munaged.
"The ala con be o9 ni2e d into tabled, M0 s , Co lumn e
ioder to make it eavèn to Jihd nolevon/ hlomol'bo.
" 7he D8 NS design dehends uhon i aNchitechene

D6NS anthi'kcwre
tion Aychk twrei- To thi, he database i ciye Chy
/available to the
hene wll dinectly e done on he databae
dny changes done
-Tioy Axchiteve; - J sam e s basic chent - Geyve.
"Jh this, ap blita Hòns on he chent end can
diirety
Communica ede Awith the clatabase at he
JUun on bhe
" he ww intoyaces 2 afsiahon rograms
cden -s ide.
Seyves
Dalahas e ystm!

|ApBltat'on
Ch'ent
User

conteuns an othey betwen the


3-Te AHchitete- layor
ient Seyvey.
Com munica e h
"Ja tho CuHchittcuye, client can't
he seNet.
disety

Aþblicotion Sehve

Apbliakon chen
clhient
)Huldal abases
Thi s an ineqsakd databae uys len foxmed by a colleu
databasc vyskm.
Muli-D8MS can be cxArened hough six lev els of chemay.
"Nuli-database Vieu level- Deßich multiple
subset ef the inegrakd dibt uhd dalabase.
" Nulh'- database ontebual level - Dehrts inkgr ahd
mulh- datotaue
hat combnses glos al logital mulh- database shuc hore
cdy?n itions.
"Mulh- daBobase Tnteunal level :- Sebicts the data
difent siks l mulh- database dlçhbuH'on
to local ctata
nophing
6 Local dadabas e Vies level Depils publt v/ew local ala
" Local databuse Coneptual level:- Depiu fo cal oata org aniga ton
at each site.

Local dala baue Th t nal level:- Bepick physical data ogonigahon


at each sit.

Mlh-daBabas e -Hut hi data base

JMUhi- doabue ConaptuaJ


Hdal abue
Local
LO(al Zocal D8/ ocal
DG
tonceßla Conabual
sthemo Sthu ma
lo ol
lotal 0B
Jntonal locat D8
D'ahobut d
9 hat hal a dadto
i fow it (an be avoidsd or managd
Conwunt
oeM to he dlúto butd datab aye y multple ans achory
inyene h h eoch ohe,
to Enswre hat hey don' intuyue
anomalies surh
data consit kny, 2
dost ubcda tu and Un commied dota
Ex. ATH Hachines Uquins 0nwneny becaye mulhp le
Can cuO wt mon ey a Hme in dfunt placu.

Advantoges - leHealel
Dofhog Hme
" Resbon te hime ceseas &
Resouwrce uhigo Hon ihoease
ystm Toyosm an te 2 EJjueny u inueued.
Tehniques ed Jor Con cctny
Some o he key tuhnigoer 2 proocolo
onhet in DD8HS Inclu de locking mech anii y, Hmes tom% baued
an d T00- Phase Commil .
ovdoing
A deadotk i3 a situa on in whiih tw0 os
in hiih
A Deadlo unalte
more hansoh'ons o dúhabuh d sysem
Jo a HeJOwYU.
them
byoeed because eoth
thot wo enly held by another rans h on
b/o tng 2 cirlar dleptn deny, whve
none he buny acho nu can make frgMeM ge/ ely bnnging
he ystm to a standshU.
hans acHÓn holcs a lo on esDuy ce X and
a dok on HesOwe Y.
eqoesy a

sans ahon B bolds a lok on esowne y e


lok on HesOue X.

Th thü scenaui'o, both banadions ate Aoaihng Jo he


wce h at the other h ansacHon holdi , p mey can 't

Ra0uwreX
Auigned
DeADLOCK
PaoLess A Proers B

oNeny Con boy :


2 Hangging Deadlog. in Con
# Avoiding lo fs . a ons acHon
Lok Tmeout- Set a Himeout fm
J.
lok hin a heihect tine, tele cs es
Can't acquise a ne hies, Ovor'ding Botnhal deadlesp.
it holds
Hhe lo
yraph i- llues a 9°aph to bak MesOUNC Es
ResowHe Alocahon
hans achon. I a ycle exish
an d
iodicotu a le a dto ck.
wotês to hogahbns e
3. Tsans achion Pr'oty to be
9rol/e cd 6aye in
hans ahons
the Cv ent e/ a dea dlok .
Cerbol OtI in antalsel database
8viy exlein he con ust wtth he hels g diagsom.
"Curuemy Conal in a uataliged database uystm he Javoces
9 managrng conwnt to th e databas e by mulhiple
ten y and Yevent col'rt
transaions to ens wve data conts ny conlit.
hat mlHi}le hansacHonu can acceM

ond modily data Conusvten ey thout Coeatihg cnom al'ts


dke lest ubdates data
e
F ypitally emjloy kihnigues lijke loking. hmetombi ,
sans ochon schedules.
Used to eshit acek to eu oata itemu and
" Lo ve
to atqu'se l e l e ase
ned to
hany Qcons nud these loty to

don' t in ty ee ith each othe.


ensute that
they
" Timestamb& 2 scheclules hels de kamine the 0rdes n hih
data
hansacHons cHe exe ut d to mantarh data consisten y.
(enhaiz ed dalabare Vyserm
User Uses

Loyes loyes lody

Dal obaue
Databye Databas@

You might also like