Forum Discussion

JK1972's avatar
10 years ago

Best way to pass RMAN send command via a config file

Hi,

I'd like to know the best way to read the RMAN SEND command that is in a config file instead of hardcoding into scripts. would a similar setup like below work with netbackup?

allocate channel t1 type 'sbt_tape' parms 'ENV=(NETBACKUP_CONF=/home/oracle/netbackup/nb.conf)' maxpiecesize 10G; Here is the rman section that is being run

connect target /;
show all;
run
{allocate channel t1 type 'sbt_tape' parms 'ENV=(NETBACKUP_CONF=/home/oracle/netbackup/nb.conf)' maxpiecesize 10G;

backup current controlfile;
 } 

 

contents of nb.conf file are:

SEND 'NB_ORA_SERV=media_server, NB_ORA_CLIENT=my_client, NB_ORA_POLICY=ORACLE, NB_ORA_PC_STREAMS=4';