Anderson_R__Gom
14 years agoLevel 5
Restoring an entire Oracle database
Hi,
I'm working in an POC of NBU with Oracle environment. I made the backup and it's working fine.
Now I need to make a restore and I'm lost for begin these tests.
The database is in restore state. I made the script but I'm not sure how do start this process.
Below, I will show the images that I have.
C:\Program Files\Veritas\NetBackup\bin>bplist -C sdbora10h1-vip.sesisenaisp.org.br -t 4 -l -R /
-rw-rw---- oracle oinstall 15466496 ago 02 15:52 ctrl_u1umj0a2i_s62_p1_t758130770:\
-rw-rw---- oracle oinstall 1588224K ago 02 15:46 arch_u1tmj09ma_s61_p1_t758130378:\
-rw-rw---- oracle oinstall 15466496 ago 02 15:45 bk_u1smj09k0_s60_p1_t758130304:\
-rw-rw---- oracle oinstall 890241024 ago 02 15:41 bk_u1rmj09e6_s59_p1_t758130118:\
C:\Program Files\Veritas\NetBackup\bin>
How can I restore these images on the client?
Regards.
Hi Anderson,
The Database was open ?.(DBID=1834298670, not open)
This script from Netbackup Admin Guide For Oracle 7.1 page 104
Start up the database in a nomount state.
On UNIX and Linux, the following is the output:SQL> startup nomount pfile=$ORACLE_HOME/dbs/inittest.ora%rman catalog rman/rman@rcatRMAN> set dbid=<dbid of source database on camelRMAN> connect target/RMAN> run {RMAN> ALLOCATE CHANNEL CH00 TYPE 'SBT_TAPE';RMAN> SEND 'NB_ORA_SERV=lion, NB_ORA_CLIENT=camel';RMAN> restore controlfile;RMAN> }SQL> alter database mount;%orapwd file=$ORACLE_HOME/dbs/orapwtest password=<oracle>%rman catalog rman/rman@RCVCATRMAN>set dbid=<Saved dbID of Source Target>RMAN>connect target/RMAN>run {RMAN> ALLOCATE CHANNEL CH00 TYPE 'SBT_TAPE';RMAN> ALLOCATE CHANNEL CH01 TYPE 'SBT_TAPE';RMAN> SEND 'NB_ORA_SERV=lion, NB_ORA_CLIENT=camel';RMAN> restore database;RMAN> restore archivelog all;RMAN> }SQL>recover database until cancel using backup controlfile;Regards