Unable to backup Oracle database
Good morning,
I am trying to backup my Oracle database with netbackup 7.6.1 since few days without success.
the status below:
05/23/2016 10:53:33 - Info nbjm (pid=1356) starting backup job (jobid=28711) for client 172.21.5.48, policy Oracle_test, schedule Full
05/23/2016 10:53:33 - Info nbjm (pid=1356) requesting MEDIA_SERVER_WITH_ATTRIBUTES resources from RB for backup job (jobid=28711, request id:{36045CE4-20CC-11E6-BDBA-9262310CA726})
05/23/2016 10:53:33 - requesting resource NetBackup_DD_FRV_DP-stu
05/23/2016 10:53:33 - requesting resource fr_master.NBU_CLIENT.MAXJOBS.172.21.5.48
05/23/2016 10:53:33 - requesting resource fr_master.NBU_POLICY.MAXJOBS.Oracle_test
05/23/2016 10:53:33 - granted resource fr_master.NBU_CLIENT.MAXJOBS.172.21.5.48
05/23/2016 10:53:33 - granted resource fr_master.NBU_POLICY.MAXJOBS.Oracle_test
05/23/2016 10:53:33 - granted resource NetBackup_DD_FRV_DP-stu
05/23/2016 10:53:33 - estimated 0 kbytes needed
05/23/2016 10:53:33 - Info nbjm (pid=1356) started backup (backupid=172.21.5.48_1463997213) job for client 172.21.5.48, policy Oracle_test, schedule Full on storage unit NetBackup_DD_FRV_DP-stu
05/23/2016 10:53:33 - started process bpbrm (pid=13378)
05/23/2016 10:53:34 - Info bpbrm (pid=13378) 172.21.5.48 is the host to backup data from
05/23/2016 10:53:34 - Info bpbrm (pid=13378) reading file list for client
05/23/2016 10:53:34 - Info bpbrm (pid=13378) starting bphdb on client
05/23/2016 10:53:34 - Info bphdb (pid=10599) Backup started
05/23/2016 10:53:34 - Info bphdb (pid=10599) Processing /usr/openv/netbackup/ext/db_ext/oracle/samples/rman/hot_database_backupOryx1_BP1.sh
05/23/2016 10:53:34 - Info bphdb (pid=10599) Waiting for the child status
05/23/2016 10:53:34 - connecting
05/23/2016 10:53:34 - connected; connect time: 0:00:00
05/23/2016 10:53:35 - Error bpbrm (pid=13378) from client 172.21.5.48: ERR - Script exited with status = 2 <none of the requested files were backed up>
05/23/2016 10:53:35 - Error bpbrm (pid=13378) from client 172.21.5.48: ERR - bphdb exit status = 6: the backup failed to back up the requested files
05/23/2016 10:53:36 - Info bphdb (pid=10599) done. status: 6: the backup failed to back up the requested files
05/23/2016 10:53:36 - end writing
the backup failed to back up the requested files (6)
the problem seems to come from the script but i have no idea!
thank you for the help!
Please do not use IP address for client backups!
For Oracle backups, you need the following:
Successful forward and reverse name lookup between the master server and and the client.
Successful forward and reverse name lookup between the media server and and the client.
If all servers and clients are not on DNS, then add hosts entries and test forward and reverse name lookup in all directions using bpclntcmd.
(Remember to clear NBU host cache after adding hosts entries)
See :
How to verify name resolution for NetBackup (tm) systems, using the "bpclntcmd" command : http://www.veritas.com/docs/000026124When and how to clear the NetBackup host cache : http://www.veritas.com/docs/000008194
Ensure the same hostnames that are added to hosts files are the exact same names used in NBU config - client name in Policy and SERVER names in bp.conf.
1st SERVER entry in Client's bp.conf must always be the master.Confirm that port 1556 is open in all directions between client and master and client and media server.
Check that OS firewall is disabled or allowing port 1556 in all directions.Once you have fixed all of the above, let us know the outcome.
We may need more if successful comms does not resolve the problem.
This post contains some step for troubleshooting database backup
https://www.veritas.com/community/forums/general-database-backup-error-troubleshooting
As I see this: Script exited with status = 2, I would check bphdb stdout and stderr files first for indication of why the script fails
The Client is using the wrong interface to connect to the master server.
Please use the hostname associated with 172.21.5.48 IP in client's bp.conf as CLIENT_NAME.
Also use this hostname in NBU Oracle policy in Clients tab.
You may also want to hard-code the hostname (associated with 172.21.5.48 IP) as NB_ORA_CLIENT variable in the rman script.The above will ensure that the client uses the correct interface when connecting to the master.
Ensure that the master can resolve 172.21.5.48 to the hostname in Oracle policy.