Support Singapore

Support Singapore YOG 2010

Friday, October 26, 2007

Undo Tablespace recovery

Undo tablespaceFrom my understanding i amjust elobrating howards outstanding contribution

Day:FridayBackup the UNDO tablespace on Friday
2:PMSTMT:update table After 2: PM
Action 1: Generates UNDO for the OLD VALUES and inserts into UNDO TABLESPACE…Action 2: Generates REDO for the update stmt and stored in REDOLOG files which will be archived later…Need for Recovery…This will have committed and uncommitted data where committed data will have SCN to it where as uncommitted redo will not have SCN…

Changes happening for next days…Undo Tablespace corrupted…
Scenario starts here
We restore the Friday Undo Backup here…
Recover the UNDO Tablespace to bring the DB upApplying Archive logs starts here which will have commited and uncommitted data hereSince the log has the SCN for every commit

1. it starts inserting all the data Here is the thing which may be crucial as far as I have understoodIt has both commited and uncommitted data…

The Undo will be generated for those statements and corresponding redo will be generated but the internal transaction table will be updated for every committed transaction with the help of SCN from the archived logs so here the inserted stmts which have the SCn will be commited which is roll forward and the internal transaction tables gets updated with the respective SCN…

Now all the statement were executed and UNDO will have some uncommitted transactions after recovery in fact during the recovery. Those are the one which will not have an entry n the internal transaction table.

Now SMON starts rollback with the help of internal transaction table.That statement which does not have commit entry in the Internal Transactions table will all be rolled back.


So the Internal transaction tables uncommitted entry and the undo generated during the recovery will help in rolling back.This is what I have understood …

Hope this helps

3 comments:

Unknown said...

Hi i read your posts on Oracle forum. I am deeply impressed with your knowledge.



I work for a DWH and BI training and service providing company in India called KEYSOFT solutions.

We have recently started a forum on BI. It would be our pleasure if you could help our forum members find answers for their queries.

The forum is: http://forums.keysoft.co.in/active_users.asp



Thanks and regards

Deepika

Aman.... said...

hey maran,
cool.I never knew you have a blog too.great!keep posting new posts.I am going to read your post and willpost comments if something will fit in my little brain:)
Aman....

Maran said...

Thanks Deepika and Aman

Where is keysoft?