Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Recover a DB from a hot backup.
Hi
(OS : Windows NT - Database standard 8.0.4)
Here is what I do for my hot backup :
0) delete of all the backup file in the "bkp_directory" 1) Rename of the archive file (*.arc) to *.old 2) Copy of the init*.ora file to the "bkp_directory" 3) Alter system switch logfile; 4) Hot backup of all the datafiles with :
alter tablespace SYSTEM begin backup; host start /wait c:\orant\bin\ocopy80.exe "datafile2backup" "bkp_directory"
alter tablespace SYSTEM end backup;
... (for all the datafiles and tablesspaces)
5) Alter system switch logfile; (again)
6) Backup of all the controlfiles with :
Alter database backup controlfile to 'bkp_dir\CTL1xxx.ORA' REUSE; Alter database backup controlfile to 'bkp_dir\CTL2xxx.ORA' REUSE; Alter database backup controlfile to trace 7) Copy of all the new archive file (*.arc) to the "bkp_directory" End.
Eventually , i delete the old archive file.
--> My Probleme is when i restore every thing on another server with
the same database in it.
Here is what i Do and the probleme :
So : I remove the newer controlfile from my "control-files" parameter of my init*.ora, And I do another shutdown immediate - Startup. At this point, the instance mount ok.
Probleme 2 : but i receive the : Ora-01589 : must use RESETLOGS or NORESTLOGS option for database open. Normal you will say.
So : I do : alter database open RESETLOGS
Probleme 3 : I receive : ORa-01195 : online backup of file 1 needs more recovery to be consistent WHIT ora-01110 : system datafile.
So : I do : recover database.
Probleme 4 : I receive : ora-00283 : recover cancelled du to error And Ora-01610 : recover using the "BACKUP CONTROLFILE" must be done (normal again you will say)
So : I do : "recover database using backup controlfile"
Probleme 5 : Oracle ask me to apply all the archive file starting with
archive 281. here is some detail : (of the instance backuped)
Oldest online log sequence 280
Next log sequence to archive 282
Current log sequence 282
So : I apply archive 281. Oracle tell me that the "log applied" and that i don't need it anymore. But oracle ask me To apply archive 282. I dont have this archive. It is the current redo log file...???