Anda di halaman 1dari 2

Oracle restore to a different host Avamar 4.

1
All this process was made for Windows (different versions) and Oracle 9i and 10g

Avtar-flag.txt file configuration:


Oracle 9i: When using oracle 9i it worked for me adding the labelnum flag to the avtar-flag.txt file. EJ: --debug --pidname=Oracle --pidnum=3002 --logfile=C:\Program Files\avs\var\your log name.log --vardir=C:\Program Files\avs\var\ --id=Avamar restore user --ap=Avamar restore user password --path=/Clients/ClientServer --hfsaddr=Avamar Hostname --hfsport=27000 --labelnum=146 --target=Client Destination (It has to be ping resolvable) Oracle 10g: For Oracle 10g, you can use the avtar-flag.txt file without the labelnum flag.

Steps to perform a directed restore using RMAN script:


Oracle 9i: (RESTORING CONTROLFILE) 1. Set the database in nomount mode. 2. In Avamar Gui you have to search the dbid: a. Search for the specific backup to restore. b. Look for the controlfile name (Ej:CONTROLFILE.c.121212-20090802-00) c. The dbid it the one that follows the.c. in this case 121212 d. Take as example the SID name is TTTT e. Connect to RMAN. 3. Take as example the script bellow:
set dbid=121212; set controlfile autobackup format for device type sbt to 'CONTROLFILE.TTTT.%F'; run { allocate channel c1 type sbt PARMS="SBT_LIBRARY=C:\PROGRA~1\avs\bin\LIBOBK~1.DLL" format '%d_%U'; send '"--prefix=TTTT/" "--flagfile=C:\Program Files\avs\avtar-flag.txt"'; restore controlfile from autobackup MAXSEQ=0 until time = "TO_DATE('20090622','YYYYMMDD')"; startup mount; } list backup of database;

Oscar Omar Garca.

Please notice that the MAXSEQ=# it has to be the same number that it is on CONTROLFILE.c.121212-20090802-0#) and the date is the same day that you want the restore from. 4. Exit the RMAN prompt. Oracle 9i: (RESTORING DATABASE) 1. Connect to RMAN 2. When you did run the list backup (last line in RESTORING CONROLFILE) you will get the scn number for the last backup you perform. (EJ: 111111) 3. Take as example the following script:
run { allocate channel c1 type sbt PARMS="SBT_LIBRARY=C:\PROGRA~1\avs\bin\LIBOBK~1.DLL" format '%d_%U'; send '"--prefix=TTTT/" "--flagfile=C:\Program Files\avs\avtar-flag.txt"'; set until scn 11111; restore database; recover database; } alter database open resetlogs;

Oracle 10g: (RESTORING CONTROLFILE) 1. The difference with Oracle 9i is that you DONT have to run the list backup of database; in this step, you have to exit from RMAN promt and run the list backup of database; after login to RMAN in next step. Oracle 10g: (RESTORING DATABASE) 1. Connect to RMAN 2. Run: list backup of database; 3. Continue as in Oracle 9i step 2.

Error restoring ORACLE 10g to the same location using AVAMAR GUI. When performing a restore with Oracle 10g, using Avamar Gui I found that it was giving me an error when listing the backups (RMAN error), I realize that Avamar run the restore in 2 spets (restore of controlfile and restore of database) please refer to this restores using RMAN script and thats the error that Avamar have, it try to list the backup of database in the first step and it has to be in the second setp.

Oscar Omar Garca.

Anda mungkin juga menyukai