cancel
Showing results for 
Search instead for 
Did you mean: 

RMAN error

manjunath_nm
Level 4

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.

 

 

 

16:47:49.120 [29575] <2> logparams: -sb -rdbms oracle -S backup1 -to 300 -c dbapps -s Full -clnt dbapps1.elxsimatix.net -FULL -kl 28 -b dbapps1.elxsimatix.net_1321442720 -jobid 1815 
16:47:49.736 [29575] <4> bphdb: Module: libncf, Release: 7.1 , Build: 00/00/0000 00:00:00 CDT (00000000)
16:47:49.736 [29575] <4> bphdb: System: HP-UX, DBAPPS1, B.11.31, U, ia64, {5}
16:47:49.806 [29575] <4> bphdb: Current code page: ICU: ibm-1051_P100-1995, Max. character width: 1, Substitution character: 0x1A [.], Unicode substitution character: 0xfffd [..]
16:47:49.806 [29575] <4> bphdb: Running as user '0', primary group '3'
16:47:49.806 [29575] <4> bphdb: Environment variable _=/usr/openv/netbackup/bin/bpcd
16:47:49.806 [29575] <4> bphdb: Environment variable MANPATH=/usr/share/man/%L:/usr/share/man:/usr/contrib/man/%L:/usr/contrib/man:/usr/local/man/%L:/usr/local/man:/opt/VRTS/vxfs5.0/man:/opt/ldapux/share/man/%L:/opt/ldapux/share/man:/opt/ipf/man:/opt/ldapux/ypldapd/man:/opt/samba/man:/opt/samba/WTEC_Support_Tools/man:/opt/samba/cfsm_man:/opt/cifsclient/share/man:/opt/openssl/man:/opt/openssl/prngd/man:/opt/wbem/share/man:/opt/graphics/common/man:/opt/amgr/man/%L:/opt/amgr/man:/opt/sec_mgmt/share/man:/usr/dt/share/man:/opt/caliper/man/%L:/opt/caliper/man:/opt/drd/share/man/%L:/opt/drd/share/man:/opt/dsau/man:/opt/resmon/share/man/%L:/opt/resmon/share/man:/opt/gnome/man:/opt/ignite/share/man/%L:/opt/ignite/share/man:/opt/propplus/share/man:/usr/contrib/kwdb/share/man:/opt/perl_32/man:/opt/perl_64/man:/opt/prm/man/%L:/opt/prm/man:/opt/psb/healthtest/share/man:/opt/sfm/share/man:/opt/swm/share/man/%L:/opt/swm/share/man:/opt/swa/share/man/%L:/opt/swa/share/man:/opt/ssh/share/man:/opt/sentinel/man/%L:/opt/sentinel/man:/opt/langtools/share/man/%L:/opt/langtools/share/man:/opt/openssl/fips/0.9.7/man:/opt/openssl/fips/0.9.8/man:/opt/gwlm/man/%L:/opt/gwlm/man:/opt/icod/man/%L:/opt/icod/man
16:47:49.813 [29575] <4> bphdb: Environment variable SSH_TTY=/dev/pts/3
16:47:49.813 [29575] <4> bphdb: Environment variable PATH=/usr/sbin:/usr/bin:/usr/ccs/bin:/usr/contrib/bin:/usr/contrib/Q4/bin:/opt/perl/bin:/opt/gvsd/bin:/opt/ipf/bin:/opt/nettladm/bin:/opt/fcms/bin:/opt/wbem/bin:/opt/wbem/sbin:/opt/sas/bin:/opt/graphics/common/bin:/opt/atok/bin:/usr/bin/X11:/usr/contrib/bin/X11:/opt/sec_mgmt/bastille/bin:/opt/caliper/bin:/opt/drd/bin:/opt/dsau/bin:/opt/dsau/sbin:/opt/resmon/bin:/opt/firefox:/opt/gnome/bin:/opt/ignite/bin:/opt/propplus/bin:/usr/contrib/kwdb/bin:/opt/perl_32/bin:/opt/perl_64/bin:/opt/prm/bin:/opt/sfm/bin:/opt/swm/bin:/opt/sec_mgmt/spc/bin:/opt/ssh/bin:/opt/swa/bin:/opt/hpsmh/bin:/opt/thunderbird:/opt/sentinel/bin:/opt/langtools/bin:/opt/gwlm/bin:/sbin:/home/root:/usr/local/bin
16:47:49.813 [29575] <4> bphdb: Environment variable OLDPWD=/opt
16:47:49.813 [29575] <4> bphdb: Environment variable LC_ALL=C
16:47:49.813 [29575] <4> bphdb: Environment variable COLUMNS=80
16:47:49.813 [29575] <4> bphdb: Environment variable EDITOR=vi
16:47:49.813 [29575] <4> bphdb: Environment variable LOGNAME=root
16:47:49.813 [29575] <4> bphdb: Environment variable MAIL=/var/mail/root
16:47:49.813 [29575] <4> bphdb: Environment variable SFTP_UMASK=
16:47:49.813 [29575] <4> bphdb: Environment variable ERASE=^H
16:47:49.813 [29575] <4> bphdb: Environment variable SFTP_PERMIT_CHOWN=1
16:47:49.813 [29575] <4> bphdb: Environment variable USER=root
16:47:49.813 [29575] <4> bphdb: Environment variable SHLVL=1
16:47:49.813 [29575] <4> bphdb: Environment variable PS=/bin/ps -ea
16:47:49.813 [29575] <4> bphdb: Environment variable IS_NETBACKUP_DAEMON=YES
16:47:49.813 [29575] <4> bphdb: Environment variable SHELL=/usr/local/bin/bash
16:47:49.813 [29575] <4> bphdb: Environment variable inetdfile=/etc/inetd.conf
16:47:49.814 [29575] <4> bphdb: Environment variable HOME=/
16:47:49.814 [29575] <4> bphdb: Environment variable SSH_CLIENT=10.1.14.20 51476 22
16:47:49.814 [29575] <4> bphdb: Environment variable SSH_CONNECTION=10.1.14.20 51476 10.1.14.13 22
16:47:49.814 [29575] <4> bphdb: Environment variable TERM=xterm
16:47:49.814 [29575] <4> bphdb: Environment variable PWD=/opt/NetBackup_7.1_HPIA
16:47:49.814 [29575] <4> bphdb: Environment variable TZ=IST-5:30
16:47:49.814 [29575] <4> bphdb: Environment variable SFTP_PERMIT_CHMOD=1
16:47:49.814 [29575] <4> bphdb: Environment variable LINES=24
16:47:49.826 [29575] <4> bphdb: INF - setenv NB_ORA_POLICY=dbapps
16:47:49.826 [29575] <4> bphdb: INF - setenv NB_ORA_CLIENT=dbapps1.elxsimatix.net
16:47:49.826 [29575] <4> bphdb: INF - setenv NB_ORA_MODE=B
16:47:49.827 [29575] <4> bphdb: INF - NB_ORA_POLICY=dbapps
16:47:49.827 [29575] <4> bphdb: INF - NB_ORA_SCHED not defined.
16:47:49.827 [29575] <4> bphdb: INF - NB_ORA_PC_SCHED=Full
16:47:49.827 [29575] <4> bphdb: INF - NB_ORA_SERV=backup1
16:47:49.827 [29575] <4> bphdb: INF - NB_ORA_PC_BTYPE not set
16:47:49.827 [29575] <4> bphdb: INF - setenv NB_ORA_FULL=1
16:47:49.827 [29575] <4> bphdb: INF - setenv NB_ORA_INCR=0
16:47:49.827 [29575] <4> bphdb: INF - setenv NB_ORA_CINC=0
16:47:49.827 [29575] <4> bphdb: INF - setenv NB_ORA_SCHEDULED=1
16:47:49.827 [29575] <4> bphdb: INF - setenv NB_ORA_PARENT_JOBID=1815
16:47:49.827 [29575] <4> bphdb: INF - BACKUP START 29575
16:47:50.025 [29575] <4> bphdb: INF - CONTINUE BACKUP message received
 
16:47:50.026 [29575] <4> bphdb: INF - Processing /usr/openv/netbackup/ext/db_ext/oracle/samples/rman/hot_database_backup_TATAELXSI.sh
16:47:50.028 [29575] <4> bphdb: INF - Waiting for the child status
16:47:50.029 [29576] <4> bphdb: INF - Child executing /usr/openv/netbackup/ext/db_ext/oracle/samples/rman/hot_database_backup_TATAELXSI.sh
16:47:50.029 [29576] <32> bphdb: FTL - Child exec of /usr/openv/netbackup/ext/db_ext/oracle/samples/rman/hot_database_backup_TATAELXSI.sh failed.
16:47:50.030 [29576] <32> bphdb:    errno = 13: Permission denied
16:47:50.030 [29576] <16> bphdb: ERR - bphdb exit status = 29: failed trying to exec a command
 
16:47:50.087 [29576] <4> bphdb: INF - EXIT STATUS 29: failed trying to exec a command
 
16:47:51.032 [29575] <16> bphdb: ERR - Script exited with status = 29 <failed trying to exec a command>
16:47:51.032 [29575] <8> bphdb: WRN - Directory /usr/openv/netbackup/logs/bpdbsbora does not exist
16:47:51.032 [29575] <8> bphdb: WRN - Directory /usr/openv/netbackup/logs/bpubsora does not exist
16:47:51.032 [29575] <16> bphdb: ERR - bphdb exit status = 6: the backup failed to back up the requested files
 
16:47:51.032 [29575] <4> bphdb: INF - EXIT STATUS 6: the backup failed to back up the requested files
39 REPLIES 39

Deepak_G
Level 6
Certified

Check the RMAN Script permissions and confirm back

Will_Restore
Level 6

/usr/openv/netbackup/ext/db_ext/oracle/samples/rman/hot_database_backup_TATAELXSI.sh

 

to ensure they are "owner oracle  group dba   rwxr-xr-x"
 

Nicolai
Moderator
Moderator
Partner    VIP   

The script running the backup has not't the right permissions. The script must have execute permissions for the oracle group (usually dba). Change the rights using the chmod. 

# chown root:dba  hot_database_backup_TATAELXSI.sh

# chmod g=rx hot_database_backup_TATAELXSI.sh

manjunath_nm
Level 4

After giving 777 permssion am getting different error.

 

09:17:24.319 [20667] <4> bphdb: Environment variable OLDPWD=/opt
09:17:24.319 [20667] <4> bphdb: Environment variable LC_ALL=C
09:17:24.319 [20667] <4> bphdb: Environment variable COLUMNS=80
09:17:24.320 [20667] <4> bphdb: Environment variable EDITOR=vi
09:17:24.320 [20667] <4> bphdb: Environment variable LOGNAME=root
09:17:24.320 [20667] <4> bphdb: Environment variable MAIL=/var/mail/root
09:17:24.320 [20667] <4> bphdb: Environment variable SFTP_UMASK=
09:17:24.320 [20667] <4> bphdb: Environment variable ERASE=^H
09:17:24.320 [20667] <4> bphdb: Environment variable SFTP_PERMIT_CHOWN=1
09:17:24.320 [20667] <4> bphdb: Environment variable USER=root
09:17:24.320 [20667] <4> bphdb: Environment variable SHLVL=1
09:17:24.320 [20667] <4> bphdb: Environment variable PS=/bin/ps -ea
09:17:24.320 [20667] <4> bphdb: Environment variable IS_NETBACKUP_DAEMON=YES
09:17:24.320 [20667] <4> bphdb: Environment variable SHELL=/usr/local/bin/bash
09:17:24.320 [20667] <4> bphdb: Environment variable inetdfile=/etc/inetd.conf
09:17:24.320 [20667] <4> bphdb: Environment variable HOME=/
09:17:24.320 [20667] <4> bphdb: Environment variable SSH_CLIENT=10.1.14.20 51476
22
09:17:24.320 [20667] <4> bphdb: Environment variable SSH_CONNECTION=10.1.14.20 51
476 10.1.14.13 22
09:17:24.320 [20667] <4> bphdb: Environment variable TERM=xterm
09:17:24.320 [20667] <4> bphdb: Environment variable PWD=/opt/NetBackup_7.1_HPIA
09:17:24.320 [20667] <4> bphdb: Environment variable TZ=IST-5:30
09:17:24.320 [20667] <4> bphdb: Environment variable SFTP_PERMIT_CHMOD=1
09:17:24.321 [20667] <4> bphdb: Environment variable LINES=24
09:17:24.331 [20667] <4> bphdb: INF - setenv NB_ORA_POLICY=dbapps
09:17:24.331 [20667] <4> bphdb: INF - setenv NB_ORA_CLIENT=dbapps1.elxsimatix.net
09:17:24.332 [20667] <4> bphdb: INF - setenv NB_ORA_MODE=B
09:17:24.332 [20667] <4> bphdb: INF - NB_ORA_POLICY=dbapps
09:17:24.332 [20667] <4> bphdb: INF - NB_ORA_SCHED not defined.
09:17:24.332 [20667] <4> bphdb: INF - NB_ORA_PC_SCHED=Full
09:17:24.332 [20667] <4> bphdb: INF - NB_ORA_SERV=backup1
09:17:24.332 [20667] <4> bphdb: INF - NB_ORA_PC_BTYPE not set
09:17:24.332 [20667] <4> bphdb: INF - setenv NB_ORA_FULL=1
09:17:24.332 [20667] <4> bphdb: INF - setenv NB_ORA_INCR=0
09:17:24.332 [20667] <4> bphdb: INF - setenv NB_ORA_CINC=0
09:17:24.332 [20667] <4> bphdb: INF - setenv NB_ORA_SCHEDULED=1
09:17:24.332 [20667] <4> bphdb: INF - setenv NB_ORA_PARENT_JOBID=1835
09:17:24.332 [20667] <4> bphdb: INF - BACKUP START 20667
09:17:24.511 [20667] <4> bphdb: INF - CONTINUE BACKUP message received

09:17:24.511 [20667] <4> bphdb: INF - Processing /usr/openv/netbackup/ext/db_ext/
oracle/samples/rman/hot_database_backup_TATAELXSI.sh
09:17:24.513 [20667] <4> bphdb: INF - Waiting for the child status
09:17:24.515 [20668] <4> bphdb: INF - Child executing /usr/openv/netbackup/ext/db
_ext/oracle/samples/rman/hot_database_backup_TATAELXSI.sh
09:17:25.531 [20667] <16> bphdb: ERR - Script exited with status = 137 <catalog c
orruption occurred>
09:17:25.532 [20667] <8> bphdb: WRN - Directory /usr/openv/netbackup/logs/bpdbsbo
ra does not exist
09:17:25.532 [20667] <8> bphdb: WRN - Directory /usr/openv/netbackup/logs/bpubsor
a does not exist
09:17:25.532 [20667] <16> bphdb: ERR - bphdb exit status = 6: the backup failed t
o back up the requested files

09:17:25.532 [20667] <4> bphdb: INF - EXIT STATUS 6: the backup failed to back up
 the requested files

Marianne
Level 6
Partner    VIP    Accredited Certified

"<16> bphdb: ERR - Script exited with status = 137 <catalog corruption occurred>"  ??

Possible problem with Rman catalog?

Please post your script as well as the rman output. Another log file that will be helpful is dbclient. Ensure that the log folder exists on the client with 777 permission.

Will_Restore
Level 6

This failure is due to the lack of the proper environment variables. Possibly the LD_LIBRARY_PATH is not set or not set correctly.

http://www.symantec.com/business/support/index?page=content&id=TECH34077

Manjunathnm
Level 2

Hi

 

I have attached the rman script and output of script and also i checked for the dbclient log and permission but log is not generated in client 777 permission is there.

 

Yasuhisa_Ishika
Level 6
Partner Accredited Certified
I suppose that su command failed with return code 137. Unfortunately your script does not redirect stderr output to log file, so I can not determine why it failed. Edit script to redirect stderr like below. su - $ORACLE_USER -c "$CMD_STR" >> $RMAN_LOG_FILE 2>&1

Marianne
Level 6
Partner    VIP    Accredited Certified

You need to find out if this section of the script is working:

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=$?

Log on to the client as root, cd to the script folder and run the script as root. ( ./script-name )

Any errors here?

Next, su - teldb (your Oracle user) and run the script again.

Does it run fine?

manjunath_nm
Level 4

Showing "Permission Denied"

Marianne
Level 6
Partner    VIP    Accredited Certified

As per Bill's post above, please confirm permissions on script.

Please post output of 'ls -l <script-name>'

You need minimum of 755 permissions on the script.

manjunath_nm
Level 4

<backup/ext/db_ext/oracle/samples/rman]ls -l ORACLE_SCRIPT.sh
-rwxrwxrwx   1 root       sys          11606 Nov 16 11:21 ORACLE_SCRIPT.sh
[teldb@MISBI:/usr/openv/netbackup/ext/db_ext/oracle/samples/rman]
 

Marianne
Level 6
Partner    VIP    Accredited Certified

Where do you see "Permission Denied"?

when you cd to /usr/openv/netbackup/ext/db_ext/oracle/samples/rman and run  ./ORACLE_SCRIPT.sh ?

Have yo tried to run it as root and as user teldb?

Please copy and paste the command plus the output that you get.

Please also verify permissions on rman command  (ls -l /appdb1/app/oracle/product/10.2/bin/rman).

Frederic_GERARD
Level 3

Maybe your oracle user isn't authorized to submit a backup on this host ?

Could you check :

admin Console / Host Properties / Master Server / your master (double click) / Authorization

You should have a line like

teldb    the_group    the_host    local     No

manjunath_nm
Level 4

HI Marianne,

 

In both root and teldb am getting permission denied error.

 permissions on rman command  (ls -l /appdb1/app/oracle/product/10.2/bin/rman).

 

 

 -rwxr-xr-x   1 teldb      dba          11083 Jul 30  2010 isqlplusctl.pl
-rwxr-xr-x   1 teldb      dba          10904 Jul 30  2010 isqlplusctl.pl.ouibak
-rwxr-xr-x   1 teldb      dba        20848384 Jul 30  2010 kfod
-rwxr-xr-x   1 teldb      dba              0 Jun 22  2005 kfod0
-rwxr-xr-x   1 teldb      dba              0 Apr 23  2008 kfodO
-rwxr-xr-x   1 teldb      dba        8014424 Jul 30  2010 kgmgr
-rwxr-xr-x   1 teldb      dba        8014424 Jul 30  2010 kgmgrO
-rwxr-xr-x   1 teldb      dba        9829328 Apr 23  2008 kgpmon
lrwxrwxrwx   1 teldb      dba             54 Jul  6 14:29 lbuilder -> /d00/app/oracle/product/10.2.0.2/nls/lbuilder/lbuilder
-rwxr-xr-x   1 teldb      dba        3492944 Feb 13  2008 lcsscan
-rwxr-xr-x   1 teldb      dba        1819096 Jul 30  2010 ldapadd
-rwxr-xr-x   1 teldb      dba        1829032 Jul 30  2010 ldapaddmt
-rwxr-xr-x   1 teldb      dba        1623640 Jul 30  2010 ldapbind
-rwxr-xr-x   1 teldb      dba        1623272 Jul 30  2010 ldapcompare
-rwxr-xr-x   1 teldb      dba        1623696 Jul 30  2010 ldapdelete
-rwxr-xr-x   1 teldb      dba        1623488 Jul 30  2010 ldapmoddn
-rwxr-xr-x   1 teldb      dba        1819096 Jul 30  2010 ldapmodify
-rwxr-xr-x   1 teldb      dba        1829032 Jul 30  2010 ldapmodifymt
-rwxr-xr-x   1 teldb      dba        1638608 Jul 30  2010 ldapsearch
-rwxr-xr-x   1 teldb      dba           2336 Jul 30  2010 ldifmigrator
-rwxr-xr-x   1 teldb      dba           1176 Jun 13  2005 linkshlib
-rwxr-xr-x   1 teldb      dba        2833032 Feb 13  2008 lmsgen
-rwxr-xr-x   1 teldb      dba           1463 Jul 30  2010 loadjava
-rwxr-xr-x   1 teldb      dba            552 Jul 30  2010 loadjava.ouibak
-rwxr-xr-x   1 teldb      dba          89488 Jul 30  2010 loadpsp
-rwxr-xr-x   1 teldb      dba          89488 Jul 30  2010 loadpspO
-rwxr-xr-x   1 teldb      dba          22588 Jul 30  2010 localconfig
-rwxr-xr-x   1 teldb      dba         192344 Jul 30  2010 lsnrctl
-rwxr-xr-x   1 teldb      dba              0 Apr 23  2008 lsnrctl0
-rwxr-xr-x   1 teldb      dba        1751816 Feb 13  2008 lxchknlb
-rwxr-xr-x   1 teldb      dba        2957536 Feb 13  2008 lxegen
-rwxr-xr-x   1 teldb      dba        7351344 Feb 13  2008 lxinst
-rwxr-xr-x   1 teldb      dba            485 Aug  4  2006 makerootca.sh
-rwxr-xr-x   1 teldb      dba            485 Aug  4  2006 makeserverwlt
-rwxr-xr-x   1 teldb      dba          78648 Jul 30  2010 mapsga
-rwxr-xr-x   1 teldb      dba              0 Apr 23  2008 mapsga0
-rwxr-xr-x   1 teldb      dba          76936 Jul 30  2010 maxmem
-rwxr-xr-x   1 teldb      dba              0 Apr 23  2008 maxmemO
-rwxr-xr-x   1 teldb      dba           2224 Jul 30  2010 mkstore
-rwxr-xr-x   1 teldb      dba           2224 Jul 30  2010 mkstore.ouibak
-rwxr-xr-x   1 teldb      dba         356480 Apr 22  2008 mkwallet
-rwxr-xr-x   1 teldb      dba           1413 Jul 30  2010 ncomp
-rwxr-xr-x   1 teldb      dba           1394 Jul 30  2010 ncomp.ouibak
-rwxr-xr-x   1 teldb      dba           6349 Jul 30  2010 netca
-rwxr-xr-x   1 teldb      dba           6350 Jul 30  2010 netca.ouibak
-rwxr-xr-x   1 teldb      dba            107 Jul 30  2010 netca_deinst.sh
-rwxr-xr-x   1 teldb      dba              0 Aug 31  2005 netca_inst.sh
-rwxr-xr-x   1 teldb      dba           6222 Jul 30  2010 netmgr
-rwxr-xr-x   1 teldb      dba           6223 Jul 30  2010 netmgr.ouibak
-rwxr-xr-x   1 teldb      dba         276280 Jul 30  2010 nid
-rwxr-xr-x   1 teldb      dba              0 Apr 23  2008 nidO
-rwxr-xr-x   1 teldb      dba              0 Feb  4  2006 nmb0
-rwxr-xr-x   1 teldb      dba          73296 Mar  3  2008 nmcbufp
-rwxr-xr-x   1 teldb      dba        1979000 Jul 30  2010 nmccollector
-rwxr-xr-x   1 teldb      dba        1985288 Mar  3  2008 nmccollector0
-rwxr-xr-x   1 teldb      dba         163532 Jul 30  2010 nmei
-rwxr-xr-x   1 teldb      dba              0 May 19  2004 nmei0
-rwxr-xr-x   1 teldb      dba              0 Feb  4  2006 nmo0
-rwxr-xr-x   1 teldb      dba          75056 Jul 30  2010 nmocat
-rwxr-xr-x   1 teldb      dba              0 May 19  2004 nmocat0
-rwxr-xr-x   1 teldb      dba         708728 Mar  3  2008 nmuct
-rwxr-xr-x   1 teldb      dba         161088 Jul 30  2010 nmupm
-rwxr-xr-x   1 teldb      dba              0 May 19  2004 nmupm0
-rwxr-xr-x   1 teldb      dba          84256 Jul 30  2010 nmus
-rwxr-xr-x   1 teldb      dba              0 May 19  2004 nmus0
-rwxr-xr-x   1 teldb      dba           1814 Jul 30  2010 oclsmon
-rwxr-xr-x   1 teldb      dba          53808 Dec  8  2005 oclsmon.bin
-rwxr-xr-x   1 teldb      dba           2273 Jul 30  2010 oclsomon
-rwxr-xr-x   1 teldb      dba          86264 Apr  8  2008 oclsomon.bin
-rwxr-xr-x   1 teldb      dba           2273 Jul 30  2010 oclsvmon
-rwxr-xr-x   1 teldb      dba          86816 Apr  8  2008 oclsvmon.bin
-rwxr-xr-x   1 teldb      dba        3347208 Jul 30  2010 ocrcheck
-rwxr-xr-x   1 teldb      dba          93552 Apr  8  2008 ocrcheck.bin
-rwxr-xr-x   1 teldb      dba           2273 Jul 30  2010 ocrcheck0
-rwxr-xr-x   1 teldb      dba        3518648 Jul 30  2010 ocrconfig
-rwxr-xr-x   1 teldb      dba         182920 Apr  8  2008 ocrconfig.bin
-rwxr-xr-x   1 teldb      dba            578 Jul 30  2010 ocrconfig0
-rwxr-xr-x   1 teldb      dba        3420280 Jul 30  2010 ocrdump
-rwxr-xr-x   1 teldb      dba         166936 Apr  8  2008 ocrdump.bin
-rwxr-xr-x   1 teldb      dba           2273 Jul 30  2010 ocrdump0
-rwxr-xr-x   1 teldb      dba           2273 Jul 30  2010 ocssd
-rwxr-xr-x   1 teldb      dba         927864 Apr  8  2008 ocssd.bin
-rwxr-xr-x   1 teldb      dba           1087 Jul 30  2010 odisrvreg
-rwxr-xr-x   1 teldb      dba           2365 Jan  1  2000 oerr
-rwxr-xr-x   1 teldb      dba           2038 Jul 30  2010 oidadmin
-rwxr-xr-x   1 teldb      dba           2167 Jul 30  2010 oidca
-rwxr-xr-x   1 teldb      dba           2403 Jul 30  2010 oidprovtool
-rwxr-xr-x   1 teldb      dba           2403 Jul 30  2010 oidprovtool.ouibak
-rwxr-xr-x   1 teldb      dba        3413616 Jul 30  2010 oifcfg
-rwxr-xr-x   1 teldb      dba              0 Apr 23  2008 oifcfg0
-rwxr-xr-x   1 teldb      dba           1537 Jul 30  2010 ojvmjava
-rwxr-xr-x   1 teldb      dba            548 Jul 30  2010 ojvmjava.ouibak
-rwxr-xr-x   1 teldb      dba          75944 Jul 30  2010 okdstry
-rwxr-xr-x   1 teldb      dba              0 Apr 23  2008 okdstry0
-rwxr-xr-x   1 teldb      dba          73296 Jul 30  2010 okinit
-rwxr-xr-x   1 teldb      dba              0 Apr 23  2008 okinit0
-rwxr-xr-x   1 teldb      dba          77544 Jul 30  2010 oklist
-rwxr-xr-x   1 teldb      dba              0 Apr 23  2008 oklist0
-rwxr-xr-x   1 teldb      dba           1176 Jul 30  2010 olsadmintool
-rwxr-xr-x   1 teldb      dba           1211 Jul 30  2010 olsoidsync
-rwxr-xr-x   1 teldb      dba           3225 Jul 30  2010 onsctl
-rwxr-xr-x   1 teldb      dba             46 Nov  7  2000 oracg
-rwxr-xr-x   1 teldb      dba        284454280 May 17  2011 oracle
-rwxr-xr-x   1 teldb      dba        284460864 May 16  2011 oracleO
-rwxr-xr-x   1 teldb      dba          23264 Apr 23  2008 oradism
-rwxr-xr-x   1 teldb      dba              0 Dec 21  2005 oradismO
-rwxr-xr-x   1 teldb      dba           2560 Jan  1  2000 oraenv
-rwxr-xr-x   1 teldb      dba             44 Dec  4  2002 orajaxb
-rwxr-xr-x   1 teldb      dba             59 Nov 25  2002 orapipe
-rwxr-xr-x   1 teldb      dba           3186 Jul 30  2010 orapki
-rwxr-xr-x   1 teldb      dba           3186 Jul 30  2010 orapki.ouibak
-rwxr-xr-x   1 teldb      dba          84368 Jul 30  2010 orapwd
-rwxr-xr-x   1 teldb      dba              0 Apr 23  2008 orapwdO
-rwxr-xr-x   1 teldb      dba        2165256 Mar  3  2008 oratclsh
-rwxr-xr-x   1 teldb      dba        2417528 Sep 12  2005 oratclsh0
-rwxr-xr-x   1 teldb      dba             48 Sep 25  2000 oraxml
-rwxr-xr-x   1 teldb      dba             48 Sep 25  2000 oraxsl
-rwxr-xr-x   1 teldb      dba          72880 Jul 30  2010 osdbagrp
-rwxr-xr-x   1 teldb      dba          72880 Jul 30  2010 osdbagrp0
-rwxr-xr-x   1 teldb      dba          16896 Apr 23  2008 osh
-rwxr-xr-x   1 teldb      dba            918 Jul 30  2010 ott
-rwxr-xr-x   1 teldb      dba           5426 Jul 30  2010 owm
-rwxr-xr-x   1 teldb      dba           5426 Jul 30  2010 owm.ouibak
-rwxr-xr-x   1 teldb      dba        17573288 Jul 30  2010 proc
-rwxr-xr-x   1 teldb      dba           1108 May 23  2005 processDef.pl
-rwxr-xr-x   1 teldb      dba        14944868 Apr 23  2008 profor32
-rwxr-xr-x   1 teldb      dba           1748 Feb  4  2006 pupbld
-rwxr-xr-x   1 teldb      dba        1349040 Jul 30  2010 racgeut
-rwxr-xr-x   1 teldb      dba        1246928 Apr  8  2008 racgeutO
-rwxr-xr-x   1 teldb      dba        1531656 Jul 30  2010 racgimon
-rwxr-xr-x   1 teldb      dba              0 Apr 23  2008 racgimonO
-rwxr-xr-x   1 teldb      dba        1525184 Jul 30  2010 racgmain
-rwxr-xr-x   1 teldb      dba        1422992 Apr  8  2008 racgmainO
-rwxr-xr-x   1 teldb      dba        1429792 Jul 30  2010 racgmdb
-rwxr-xr-x   1 teldb      dba              0 Apr 23  2008 racgmdbO
-rwxr-xr-x   1 teldb      dba              0 Jul 30  2010 racgons
-rwxr-xr-x   1 teldb      dba           1852 Jul 30  2010 racgwrap
-rwxr-xr-x   1 teldb      dba           1343 Jul 30  2010 racgwrap.ouibak
-rwxr-xr-x   1 teldb      dba           1814 Aug  1  2007 racgwrap.sbs
-rwxr-xr-x   1 teldb      dba         259996 Apr  8  2008 rawutl
-rwxr-xr-x   1 teldb      dba           5364 Jul 30  2010 rconfig
-rwxr-xr-x   1 teldb      dba           5364 Jul 30  2010 rconfig.ouibak
-rwxr-xr-x   1 teldb      dba           8579 Nov 28  2007 relink
-rwxr-xr-x   1 teldb      dba           6176 Jul 30  2010 repo_mig
-rwxr-xr-x   1 teldb      dba           6164 Jul 30  2010 repo_mig.ouibak
-rwxr-xr-x   1 teldb      dba           5959 Sep 25  2004 repo_mig.template
-rwxr-xr-x   1 teldb      dba        28683544 Jul 30  2010 rman
-rwxr-xr-x   1 teldb      dba              0 Apr 23  2008 rmanO
-rwxr-xr-x   1 teldb      dba           1668 Jan 12  2004 runclass
-rwxr-xr-x   1 teldb      dba           2175 Aug 26  2005 sAgentUtils.pm
-rwxr-xr-x   1 teldb      dba         277832 Jul 30  2010 sbttest
-rwxr-xr-x   1 teldb      dba              0 Apr 23  2008 sbttestO
-rwxr-xr-x   1 teldb      dba        4194872 Feb  5  2008 schema
-rwxr-xr-x   1 teldb      dba            937 Jul 30  2010 schemasync
-rwxr-xr-x   1 teldb      dba        1686016 Jul 30  2010 sqlldr
-rwxr-xr-x   1 teldb      dba              0 Apr 23  2008 sqlldrO
-rwxr-xr-x   1 teldb      dba          71920 Jul 30  2010 sqlplus
-rwxr-xr-x   1 teldb      dba              0 Apr 23  2008 sqlplusO
-rwxr-xr-x   1 teldb      dba           4557 Jul 30  2010 srvconfig
-rwxr-xr-x   1 teldb      dba           6251 Jul 30  2010 srvctl
-rwxr-xr-x   1 teldb      dba          79592 Apr  8  2008 srvmspawn
-rwxr-xr-x   1 teldb      dba          35290 Jul 30  2010 sslsetup
-rwxr-xr-x   1 teldb      dba          35290 Jul 30  2010 sslsetup.ouibak
-rwxr-xr-x   1 teldb      dba           1413 Jul 30  2010 statusnc
-rwxr-xr-x   1 teldb      dba           1394 Jul 30  2010 statusnc.ouibak
-rwxr-xr-x   1 teldb      dba           3261 Jun  7  2005 symfind
-rwxr-xr-x   1 teldb      dba          40912 Apr 23  2008 sysresv
-rwxr-xr-x   1 teldb      dba           3498 Jul 30  2010 targetdeploy.pl
-rwxr-xr-x   1 teldb      dba          88992 Jul 30  2010 tg4pwd
-rwxr-xr-x   1 teldb      dba          65464 Apr 23  2008 tg4pwdO
-rwxr-xr-x   1 teldb      dba         346736 Jul 30  2010 tkprof
-rwxr-xr-x   1 teldb      dba              0 Apr 23  2008 tkprofO
-rwxr-xr-x   1 teldb      dba              0 Feb  4  2006 tnnfg.dbl
-rwxr-xr-x   1 teldb      dba        1147352 Oct 12  2010 tnslsnr
-rwxr-xr-x   1 teldb      dba        1146504 Jul 30  2010 tnslsnr0
-rwxr-xr-x   1 teldb      dba          76432 Jul 30  2010 tnsping
-rwxr-xr-x   1 teldb      dba              0 Apr 23  2008 tnsping0
-rwxr-xr-x   1 teldb      dba             45 Sep 25  2001 transx
-rwxr-xr-x   1 teldb      dba           3007 Jul 30  2010 trcasst
-rwxr-xr-x   1 teldb      dba           3008 Jul 30  2010 trcasst.ouibak
-rwxr-xr-x   1 teldb      dba              0 Feb  4  2006 trcldr
-rwxr-xr-x   1 teldb      dba          81280 Jul 30  2010 trcroute
-rwxr-xr-x   1 teldb      dba              0 Apr 23  2008 trcroute0
-rwxr-xr-x   1 teldb      dba           2080 Jul 30  2010 trcsess
-rwxr-xr-x   1 teldb      dba          80960 Jul 30  2010 tstshm
-rwxr-xr-x   1 teldb      dba              0 Apr 23  2008 tstshmO
-rwxr-xr-x   1 teldb      dba           3169 Jul 30  2010 umu
-rwxr-xr-x   1 teldb      dba           3169 Jul 30  2010 umu.ouibak
-rwxr-xr-x   1 teldb      dba         239416 Jan  1  2000 unzip
-rwxr-xr-x   1 teldb      dba        13788128 Oct 12  2010 wrap
-rwxr-xr-x   1 teldb      dba        13788120 Jul 30  2010 wrapO
-rwxr-xr-x   1 teldb      dba        5304600 Feb  5  2008 xml
-rwxr-xr-x   1 teldb      dba        6906944 Feb  5  2008 xmlcg
-rwxr-xr-x   1 teldb      dba          90456 Jun  5  2007 xmlwf
-rwxr-xr-x   1 teldb      dba        5097912 Feb  5  2008 xsl
-rwxr-xr-x   1 teldb      dba            762 Jan 12  2004 xsql
-rwxr-xr-x   1 teldb      dba        4902760 Feb  5  2008 xvm
-rwxr-xr-x   1 teldb      dba         159812 Jan  1  2000 zip
-bash-3.2#
 

Marianne
Level 6
Partner    VIP    Accredited Certified

The output that you've posted is the contents of the folder.

Where is the RMAN binary? The variable in the script :

RMAN=$ORACLE_HOME/bin/rman

should be the RMAN binary/command.

Yasuhisa_Ishika
Level 6
Partner Accredited Certified

"Permission Denied" must occured at line 43.

You run the script by teldb user, right? Script log file is owned by root, so teldb user cannot remove it, and rm command failed with "Permission Denied" error.

Could you try to run the script by root user, and post whole output?

By the way, why don't you configure oracle backup with template?

manjunath_nm
Level 4

HI,

 

i don't have any idea about Template

manjunath_nm
Level 4

[teldb@IPMS:/teldb/app/oracle/product/10.2/bin]ls -l rman

-rwxr-xr-x   1 teldb      dba        28683544 Dec 27  2010 rman

 

is this correct permission?