Symptoms
Recovery script:
run
{
allocate auxiliary channel t1 type 'SBT_TAPE';
send 'NSR_ENV=(NSR_SERVER=, NSR_DATA_VOLUME_POOL=)';
SET NEWNAME FOR DATABASE to '+DATACTDI/RTDITST/%U' ;
DUPLICATE DATABASE DBID 1144709580 TO RTD PLUGGABLE DATABASE TXRTD
UNTIL TIME "TO_DATE('09/26/2021 21:00:00','MM/DD/YYYY HH24:MI:SS')";
release channel t1;
}
Error message:
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of Duplicate Db command at 09/28/2021 14:36:09
RMAN-05501: aborting duplication of target database
RMAN-03015: error occurred in stored script Memory Script
ORA-27191: sbtinfo2 returned error
Additional information: 3657
ORA-19511: non RMAN, but media manager or vendor specific failure, error text:
Unable to connect to nsrd on host for RAP credentials: Program not registered (100:12:11)
Error message from sbtio.log:
SBT-206268 09/27/2021 08:31:06 AM nwora_sbt_auth: Unable to connect to nsrd on host for RAP credentials: Program not registered (100:12:11)
Cause
The environmental variables "NSR_SERVER" and "NSR_CLIENT" were set incorrectly and were causing NetWorker client to look for nsrd process (NetWorker server process) in the actual client, instead of the respective NetWorker server.
Resolution
Update the environmental variables with the respective FQDN of the NetWorker server and client:
export NSR_SERVER=
export NSR_CLIENT=
Also advised to use FQDN in the attribute "NSR_SERVER" and to include the "NSR_CLIENT" attribute in the recovery script. Note:For Oracle versions higher than Oracle 11GR2 is recommended to use PARMS SBT_PARMS format instead of
"send":
'SBT_PARMS=(NSR_SERVER=NetWorker_server_FQDN, NSR_CLIENT=NMDA_client_FQDN, NSR_DATA_VOLUME_POOL=networker _pool)';