β11-16-2011 05:40 AM
Hi,
I just configured script based Rman hot backup and am getting some error like (backup failed to backup the requested file code(6)), like this and below i copied the bphdb log please help on this.
β11-23-2011 04:57 PM
β11-24-2011 09:05 PM
Hi,
How to fix this Error
-bash-3.2# ./TATAELXS.sh
/usr/lib/hpux64/dld.so: Unable to find library 'libclntsh.so.10.1'.
-bash: line 45: 23330 Killed /appdb0/app/oracle/product/10.2.0.2//bin/rman target sys/manager nocatalog msglog ./TATAELXS.sh.out append <<EOF
RUN {
ALLOCATE CHANNEL ch00 TYPE 'SBT_TAPE';
ALLOCATE CHANNEL ch01 TYPE 'SBT_TAPE';
SEND'NB_ORA_CLIENT=dbapps1.elxsimatix.net,NB_ORA_SERV=backup1';
BACKUP
INCREMENTAL LEVEL=0
SKIP INACCESSIBLE
TAG hot_db_bk_level0
FILESPERSET 5
# recommended format
FORMAT 'bk_%s_%p_%t'
DATABASE;
sql 'alter system archive log current';
RELEASE CHANNEL ch00;
RELEASE CHANNEL ch01;
# backup all archive logs
ALLOCATE CHANNEL ch00 TYPE 'SBT_TAPE';
ALLOCATE CHANNEL ch01 TYPE 'SBT_TAPE';
BACKUP
filesperset 20
FORMAT 'al_%s_%p_%t'
ARCHIVELOG ALL DELETE INPUT;
RELEASE CHANNEL ch00;
RELEASE CHANNEL ch01;
#
# Note: During the process of backing up the database, RMAN also backs up the
# control file. This version of the control file does not contain the
# information about the current backup because nocatalog has been specified.
# To include the information about the current backup, the control file should
# be backed up as the last step of the RMAN section. This step would not be
# necessary if we were using a recovery catalog.
#
ALLOCATE CHANNEL ch00 TYPE 'SBT_TAPE';
BACKUP
# recommended format
FORMAT 'cntrl_%s_%p_%t'
CURRENT CONTROLFILE;
RELEASE CHANNEL ch00;
}
EOF
β11-25-2011 01:27 AM
Questions we should have asked right in the beginning:
NBU version and patch level?
Client OS? (HP-UX, B.11.31, ia64)
Oracle version? (seems to be 10.2.0.2, right?)
Has Oracle DBA verified that RMAN can be used to write backups to disk?
A quick Google search about the latest error points to LD_LIBRARY_PATH that is probably not defined in oracle user's profile, incorrect symbolic links, incorrect permissions on $ORACLE_HOME ....
In short - all Oracle and OS related.
β11-25-2011 03:04 AM
NBU Version: 7.1
Oracle Version: 10.2.0.2
Client OS :HP-UX, B.11.31, ia64
echo $LD_LIBRARY_PATH=/appdb0/app/oracle/product/10.2.0.2/lib:/usr/dt/lib:/usr/openwin/lib:/appdb0/app/oracle/product/10.2.0.2/ctx/lib
echo $SHLIB_PATH=/appdb0/app/oracle/product/10.2.0.2/lib:/usr/dt/lib:/usr/openwin/lib:/appdb0/app/oracle/product/10.2.0.2/ctx/lib:/usr/lib:/appdb0/app/oracle/product/10.2.0.2/lib32
is there any changes i need to do on above?
β11-25-2011 03:11 AM
echo $ORACLE_HOME= /appdb0/app/oracle/product/10.2.0.2
β11-25-2011 04:11 AM
Please ask your Oracle DBA to verify that RMAN can be used to write backups to disk.
As I've said in my previous post - Google found links related to OS and RMAN.
I cannot say from NBU point of view what needs to be done to fix this, other than verifying that the NBU plugin is linked correctly - see p. 38 of Oracle Admin Guide UNIX, Linux http://www.symantec.com/docs/TECH127053 .
β11-25-2011 04:35 AM
hello, check this script that is attached. The same is used here in the environment, and works perfectly. Analyze each line or compare with your script. At the end of the script has a field for sending email. Change xxx@xx.com.br mail to your e-mail administration.
Maybe this script can also serve for you. Try and report the result.
Regards, MΓ‘rcio Almeida.
β11-26-2011 04:50 AM
β11-28-2011 11:59 AM
above you list contents of /appdb1/app/oracle/product/10.2
but your listed paths are /appdb0/app/oracle/product/10.2.0.2/
β01-20-2012 04:17 AM
hi all,
RMAN> 2> 3> 4> 5> 6> 7> 8> 9> 10> 11> 12> 13> 14> 15> 16> 17> 18> 19> 20> 21> 22> 23> 24> 25> 26> 27> 28> 29> 30> 31> 32> 33> 34> 35> 36> 37>
38> 39> RMAN> 2> 3> 4> 5> 6> 7> 8> 9> 10> 11> 12> 13> 14> 15> 16> 17> 18> 19> 20> 21> 22> 23> 24> 25> 26> 27> 28> 29> 30> 31> 32> 33> 34> 35>
36> 37> 38> 39>
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03009: failure of allocate command on ch00 channel at 01/20/2012 17:04:41
ORA-19554: error allocating device, device type: SBT_TAPE, device name:
ORA-27211: Failed to load Media Management Library
How to fix this issue?
β01-20-2012 04:50 AM
Have you verified that the NBU plugin is linked correctly?
see p. 38 of Oracle Admin Guide UNIX, Linux http://www.symantec.com/docs/TECH127053 .
β01-22-2012 08:20 PM
Yup! everything linked properly and also run the script /usr/openv/netbackup/oracle_link but no luck still same error.
β01-22-2012 08:47 PM
Hi
When we execute the same script Directly(usr/openv/netbackup/ext/db_ext/oracle/samples/rman/./oracle_script) as oracle user, it works fine but the same script fails when it tries to execute as root user.
β01-22-2012 09:51 PM
Please post more information like below.
β01-23-2012 06:34 AM
your script should contain
su - $ORACLE_USER -c "$CMD_STR"
and ORACLE_USER variable needs to be properly set for your environment
β01-23-2012 10:19 PM
$ORACLE_USER= teldb
echo $ORACLE_HOME=/appdb1/app/oracle/product/10.2
lrwxr-xr-x 1 teldb dba 34 Jan 23 11:44 /appdb1/app/oracle/product/10.2/lib/libobk.so -> /usr/openv/netbackup/bin/libobk.so
script and script.out file attached below
β01-23-2012 11:24 PM
when you executing script or initiate backup policy from master ....
pls post .out files from /usr/openv/netbackup/ext/db_ext/oracle/samples/rman/
β01-24-2012 12:28 AM
Above TestMS.sh_txt is the rman out file i just renamed as .txt for refferance.
β01-24-2012 01:38 AM
If you can run the script on the client as user teldb, it should work running the same script as root.
Your script contailns the following:
ORACLE_USER=teldb if [ "$CUSER" = "root" ] then su - $ORACLE_USER -c "$CMD_STR" >> $RMAN_LOG_FILE RSTAT=$? else /usr/bin/sh -c "$CMD_STR" >> $RMAN_LOG_FILE RSTAT=$? fi
You can see in the output file that the 'su - .. ' is working, because the ORACLE_USER is set to teldb:
ORACLE_USER: teldb
Still something wrong with the link:
ORA-27211: Failed to load Media Management Library
ONE POSSIBILITY:
If it works when logged in as user teldb, there is possibly some ENV variable missing in teldb's startup files. 'su - teldb' in the script will simply apply what is in the shell startup file (e.g. .profile).
SUGGESTION:
Add a line in the script to echo ENV output.
Then run the script as teldb. Next, rename output file and run the script again as root.
Compare ENV output.
β01-24-2012 01:21 PM
This thread has covered every possible mishap with NetBackup for Oracle client configuration.