cancel
Showing results for 
Search instead for 
Did you mean: 

Netbackup User Profile

ronny_ngan
Level 3

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.

1 ACCEPTED SOLUTION

Accepted Solutions

Marianne
Level 6
Partner    VIP    Accredited Certified

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

View solution in original post

1 REPLY 1

Marianne
Level 6
Partner    VIP    Accredited Certified

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