cancel
Showing results for 
Search instead for 
Did you mean: 

Rman backups failure

RamNagalla
Moderator
Moderator
Partner    VIP    Certified

I Have a Rman policy .which needs to fire the backup from Netbackup..when it start the backup .. its reaching to client and then failing with EC 6.. and dbclient  log nothing.

when the backup is fired from the Rman they are getting successfull..

I have verified the rman scripts. both Netbackup schedule backup and rman schedule backup both are using the same..

I am not sure where/how to start working...

 I find this on the bpcd log of the client 

03:39:29.694 [26934] <2> bpcd main: fork cmd = /usr/openv/netbackup/bin/bphdb bphdb -sb -rdb
ms oracle -S master -to 2400 -c bthnisnb01_R1LTE1D1_ORA -s Weekly_Full -clnt client1 -FULL -kl 7 -b clinet1_1305023968 -jobid 628524

 

any suggestions are appreciated..
 

1 ACCEPTED SOLUTION

Accepted Solutions

Marianne
Level 6
Partner    VIP    Accredited Certified

"when the backup is fired from the Rman they are getting successfull.."

When the backup is started from the master, the script is run by root. Have you verified that there is something like this in the script?

su - $ORACLE_USER -c "$CMD_STR"

Please also let us know all relevant info - OS, Oracle and NBU versions.

If Unix, please verify that bphdb and dbclient log directories have 777 permissions.

View solution in original post

5 REPLIES 5

Marianne
Level 6
Partner    VIP    Accredited Certified

"when the backup is fired from the Rman they are getting successfull.."

When the backup is started from the master, the script is run by root. Have you verified that there is something like this in the script?

su - $ORACLE_USER -c "$CMD_STR"

Please also let us know all relevant info - OS, Oracle and NBU versions.

If Unix, please verify that bphdb and dbclient log directories have 777 permissions.

RamNagalla
Moderator
Moderator
Partner    VIP    Certified

the os of the client is solaris 10 and NBU versioin is 6.5..3

and master is in 6.5.3.1

I had a discussion with SA.. to set the dir permission as 777 ... he is not agree to do that.. saying some security policys..

previously it was like      su oracle -c

so I set it to

su DBNAME -c " in the script  and testing the backups..

Marianne
Level 6
Partner    VIP    Accredited Certified

Before I have a look at your script - please note that there is difference between 'su user' and 'su - user'.

su without '-' will switch user without reading user's startup files (such as .profile or .kshrc). These files are neccesary to set user's environment variables. 'su - ...' will read all startup files, therefore run the command with all the correct environment variables.

If 777 is not an option, do 'chown oracle-user ..'  for bphdb and dbclient (not bpcd, as root needs write access to it).

Why 'su DBNAME' ?  Is that the oracle user name?

It should be  'su - oracle-user'

RamNagalla
Moderator
Moderator
Partner    VIP    Certified

Nevermind DBNAME is the oracle user name.. ..

and now is runnig fine  once I chage the enrtry form su oracle -c to su DBNAME -c.

Thank you very much for the vaulable info..

MOHAMED_PATEL
Level 5
Partner Accredited Certified

Solution could have come at a more needy time Marianne -

Have exactly the same problem today....

Noticed exactly the same - just could not remember syntax -

Big thumbs up M