Database Backup and Recovery (MOSC)

MOSC Banner

is it possible to use a Variable in the send Command in an rman runblock

edited Feb 15, 2017 9:43AM in Database Backup and Recovery (MOSC) 3 commentsAnswered ✓

Hello,

I want to use a variable for "NSR_CLIENT" in an rman run block.

current run block

run {
  allocate channel t1 type SBT_TAPE connect *;
  allocate channel t2 type SBT_TAPE connect *;
  send 'NSR_ENV=(NSR_CLIENT=myclient.ourdomain.loc,NSR_SERVER=networkerserver.ourdomain.loc,NSR_DATA_VOLUME_POOL=MyBackupPool)';
  backup filesperset 10 (archivelog all format '/ARCHIVELOG_%d_%s_%p/' NOT BACKED UP);
  release channel t1;
  release channel t2;
    }

myclient.ourdomain.loc is the hostname of my client

instaed of

NSR_CLIENT=myclient.ourdomain.loc


I would like to send something like

NSR_CLIENT=$(hostname)

$(hostname) should by solved to the hostname of the client

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center