Unsolved

This post is more than 5 years old

68 Posts

915

November 16th, 2006 08:00

Networker 7.3.2 RMAN Oracle script for backup problem

The Networker has a group defined for users with the right access rights.
This is script is running on a AIX server with Oracle DB.

I do not see why this error is coming up?

Jupiter@mycompany.com is not my comapny's name the real one is in the script.

executing script: p10u2_hot_fbkp

RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03015: error occurred in stored script p10u2_hot_fbkp
RMAN-03009: failure of allocate command on t1 channel at 11/14/2006 15:41:41
ORA-19554: error allocating device, device type: SBT_TAPE, device name:
ORA-27211: Failed to load Media Management Library
Additional information: 2

Script:
replace script p10u2_hot_fbkp{
allocate channel t1 type 'sbt_tape'
send 'NSR_ENV=(NSR_SERVER=Jupiter@mycompany.com,
NSR_DATA_VOLUME_POOL1=ZFull,
NSR_GROUP=rman )';
backup current controlfile;

release channel t1;
}
run {
execute script p10u2_hot_fbkp;
}

Message was edited by:
lee

2 Intern

 • 

2K Posts

November 16th, 2006 08:00

allocate channel t1 type 'sbt_tape'
send 'NSR_ENV=(NSR_SERVER=Jupiter@mycompany.com,
NSR_DATA_VOLUME_POOL1=ZFull,
NSR_GROUP=rman )';


"Send" here should not be a problem though I use parms and it works equally good

backup current controlfile;
release channel t1;


"Release channel" is the right option


The only problem I see is that you have not done Library Linking or you have done it improperly.

Oracle has a command sbttest, you can run sbttest from Oracle bin folder like - sbttest /etc/hosts. This should write /etc/hosts on the tape ensuring proper linking.

Another way to be sure of Library linking is running the sample script below -
**********************General script to test connectivity***************************


connect target user/password@{database};
connect rcvcat user/password@{recovery catalog};
run {
set command id to 'abc';
allocate channel t1 type 'SBT_TAPE'
parms 'ENV=(NSR_SERVER={backup server},NSR_DATA_VOLUME_POOL=Default)' ;
allocate channel t2 type 'SBT_TAPE'
parms 'ENV=(NSR_SERVER={backup server},NSR_DATA_VOLUME_POOL=Default)' ;
release channel t1;
release channel t2;
}

This would show NML as NMO 4.2 as a part of its output. Assuming you are using Oracle Module 4.2 else this no. would be the same as the version no. in use.

Do update the progress of resolution?

4 Operator

 • 

14.4K Posts

November 16th, 2006 08:00

I think it should be send channel... also the error itself seems to indicate linking was not done properly. Can you check it out?

68 Posts

November 20th, 2006 15:00

Thanks for the script the script now works.
The problem was in AIX you have to change the symbolic link.
Networker, Module for Oracle Release 4.2 Multiplatform Version , Installation
the 64 bit version with the comands needed to be run
% cd $ORACLE_HOME/lib
% ln -s /usr/lib/libnwora.a libobk.a
Guide dated September 1, 2006 page 34.
did not see this info in the admin doc.

0 events found

No Events found!

Top