06-02-2011 07:42 PM
Hi Guys,
I am using Oracle Database and I am using Netbackup 6.5 to back it up. I would like to know what user does Netbackup use to run all the backup job (using Oracle agent to backup). Is it root, or something else?
I am running on Solaris 10 platform.
Thanks.
Solved! Go to Solution.
06-02-2011 10:01 PM
If the job is started from the scheduler on the master, the script on the client will be run as root. For this reason you need to add 'su - <oracle-user>' in the script.
Please have a look at the sample scripts in the /usr/openv/netbackup/ext/db_ext/oracle/samples/rman folder.
Extract from sample hot_database_backup.sh :
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
06-02-2011 10:01 PM
If the job is started from the scheduler on the master, the script on the client will be run as root. For this reason you need to add 'su - <oracle-user>' in the script.
Please have a look at the sample scripts in the /usr/openv/netbackup/ext/db_ext/oracle/samples/rman folder.
Extract from sample hot_database_backup.sh :
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