Sunday, March 23, 2008

Oracle 9i Recovery (Failure During Hot Backup)

Failure During Hot Backup:

If you have a failure while you are doing a hot backup on a tablespace, besides doing any recovery that is needed for the particular failure, you will also need to bring those tablespace datafiles back out of hot backup mode. To do this, while the database is in a mount state, do an "end backup" on each of those datafiles before opening the database.

sqlplus "/ as sysdba"
SQL> startup mount
SQL
> select df.name,bk.time from v$datafile df,v$backup bk

where df.file# = bk.file# and bk.status = 'ACTIVE';
Shows the datafiles currently in a hot backup state.
SQL> alter database datafile
'c:\oracle\oradata\PROD\devl_PROD_01.dbf' end backup;
Do an "end backup" on those listed hot backup datafiles.
SQL> alter database open;

No comments: