07-26-2012 10:40 AM
Hi Everyone,
I have one issue in Rman backups that the Scheduled Automatic backup job is failing with EC 6 whereas all User Directed
Application jobs completing Successfully.
I have checked and found that Automatic backup failing with EC 6 is has owner= root
and Application backup job has Owner = orap
Please suggest.
Solved! Go to Solution.
07-26-2012 02:22 PM
Scheduled backups will always run as root.
Have a look at one of the sample scripts in /usr/openv/netbackup/ext/db_ext/oracle/samples/rman.
You will see that it tests user name. If root, it will 'su - <oracle-user>' .
Modify your script to do the same.
07-26-2012 02:22 PM
Scheduled backups will always run as root.
Have a look at one of the sample scripts in /usr/openv/netbackup/ext/db_ext/oracle/samples/rman.
You will see that it tests user name. If root, it will 'su - <oracle-user>' .
Modify your script to do the same.
07-26-2012 06:21 PM
Hi Marianne,
Should I ask DBA to modify script if root,it will 'su - <root>' or it will 'su - <oracle-user>'.Please confirm
07-26-2012 10:25 PM
Scheduled backups are run as root, but root does not have any Oracle rights. This is why your scheduled backup is failing.
The script needs to be modified so that 'current' user is determined - if root, the script must 'su - <oracle-user>'.
Please ask dba to check samples in folder mentioned above.
Herewith extract from the sample hot_database_backup.sh script in this folder:
# Replace ora102, below, with the Oracle DBA user id (account).
# ---------------------------------------------------------------------------
ORACLE_USER=ora102
....