Professional Documents
Culture Documents
1
All this process was made for Windows (different versions) and Oracle 9i and 10g
--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.
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;
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;
}
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
that’s 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.