Monday, January 20, 2014

Template for RMAN script, including Netbackup directives

Executed as user oracle directly on the server:

connect target /
connect catalog rmancat/password@RMANCAT
run {
allocate channel t1 type sbt PARMS="BLKSIZE=1048576"  maxopenfiles 64;
allocate channel t2 type sbt PARMS="BLKSIZE=1048576"  maxopenfiles 64;
send 'NB_ORA_POLICY=my_policy_name,NB_ORA_CLIENT=my_client_name-bkp.mydomain.com,NB_ORA_SCHED=my_schedule_name';

rman commands here


release channel t1;
release channel t2;
}

to execute:

$ rman cmdfile='restore_archlog.cmd' log='restore_archlog.log'

No comments:

Post a Comment