Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> Re: Re[1] : Recovery Scenarios - Help !!
Prem Khanna J wrote:
>
> When UNDO tablespace is lost , where from does oracle get
> the information to rollback ? This is not very clear to me.
>
Before performing any rollback you have to restore the tablespace, this
literally means restoring a file (in this case the undo tbs)i.e. copying
a file from the backup to its original location. After you restore the
datafile you must apply the changes made to this datafile after its
backup. This is done reading archivelog and then copying piece of
archivelog to datafiles. After that you end up with a situation as
before the crash, now oracle can commit any commited transaction still
in the redo logs and rollback any not committed change in the datafiles.
the information to rollback is in the undo but also in the archived log
and in the online redologs.
>
>>>Case 2 >>>------ >>>I have lost my temp tablespace during a batch job which does lot of sort/update. >>>- What will be the status of my batch job and how do i recover by temp tablespace now ?
>>This depends on the way you have written the batch program : >>1) If the batch program detects the problem and issues a rollback of the last uncommitted transaction and stops you don't >> have a problem :-) >>2) If the batch program just quits on error then Pmon will do the rollback of the uncommitted transaction.
>>>Case 3 >>>------ >>>I have lost an un-archived online redo log file.The proper recovery procedure is : >>>- restore all datafiles from backup >>>- mount the database >>>- recover until cancel >>>- open resetlogs >>> >>>Without restoring datafiles from backup,Can i do this : >>>- mount the database >>>- recover until cancel >>>- open resetlogs
-- ---------------------------------------- Giovanni Cuccu Sw Engineer_at_dianoema.it Dianoema S.p.A. Via de' Carracci 93 40131 Bologna Tel: 051-7098211 051-4193911 e-mail:gcuccu_at_dianoema.it ---------------------------------------- No man does it all by himself, I said young man, put your pride on the shelf ---------------------------------------- -- http://www.freelists.org/webpage/oracle-lReceived on Mon Nov 29 2004 - 09:37:31 CST
![]() |
![]() |