If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Oracle > basic question on checkpoint

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-16-03, 10:59
odba odba is offline
Registered User
 
Join Date: Dec 2002
Posts: 5
Question Are uncommited blocks flushed during chekpoint ?

Hi, this one is bugging me for quite some time...

I read that when a checkpoint occurs, "all" the dirty buffers are flushed into datafiles. And control files and datafile headers get updated with latest SCN.
But I believe "dirty buffers" include even data blocks modified in on-going transactions (uncommitted). Does this mean uncommitted transaction get saved in datafiles during a checkpoint ?

Last edited by odba; 01-16-03 at 11:42.
Reply With Quote
  #2 (permalink)  
Old 01-16-03, 12:44
sathyaram_s sathyaram_s is offline
Super Moderator
 
Join Date: Aug 2001
Location: UK
Posts: 4,543
Re: Are uncommited blocks flushed during chekpoint ?

I haven't seen any doco suggesting that only commited records are written to the disk during a check point ...

But from various other features, like LOG_CHECKPOINT_INTERVEL, a logfile not being reused until checkpoint completion, crash recovery reading logfiles from the last checkpoint etc makes me assume that uncommited data from the data buffer is written to the disk.

Cheers

Sathyaram

Quote:
Originally posted by odba
Hi, this one is bugging me for quite some time...

I read that when a checkpoint occurs, "all" the dirty buffers are flushed into datafiles. And control files and datafile headers get updated with latest SCN.
But I believe "dirty buffers" include even data blocks modified in on-going transactions (uncommitted). Does this mean uncommitted transaction get saved in datafiles during a checkpoint ?
Reply With Quote
  #3 (permalink)  
Old 01-17-03, 04:46
Breen Breen is offline
Registered User
 
Join Date: Mar 2002
Location: Ireland
Posts: 181
Hi odba,
Yes, at checkpoint, the dirty buffers get flushed to disk - they are still recorded on disk as uncommitted, therefore they can still be rolled back.
Rgs,
Breen.
Reply With Quote
  #4 (permalink)  
Old 01-17-03, 04:58
odba odba is offline
Registered User
 
Join Date: Dec 2002
Posts: 5
Thanks for your comments! Come to think of it, rollback segs get flushed too. So oracle should be possible to read old values from there...
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On