05-05-2017 07:23 AM
Hello
I need help on rman backup here. I have created rman using netbackup rman templates. However, when the script is called via NetBackup scheduler it returns "syntax" error. But when i just copy and paste rman part on the rman promt.. the backup just works fine.
I have also tried using OIP which works fine but i need to use rman compression. Any suggestions please.
Here i am attaching rman script and its output.
Please help.
Thanks
Pat
05-05-2017 07:29 AM
Here is my script
05-05-2017 09:35 AM - edited 05-05-2017 09:41 AM
try changing
TARGET_CONNECT_STR=sys/"oracle#123"
to
TARGET_CONNECT_STR=sys/"oracle\#123"
05-06-2017 06:03 AM - edited 05-07-2017 07:51 PM
Hello,
In same script location you can find <script_name>.out file. Kindly share that file.
You can also check if script exit with 0
Run script with below option
bash -x Backup-script. sh
For successful backup first your backup script must need to exit with status 0.
Regards
05-08-2017 11:31 AM
Pat, did you try it yet?
05-09-2017 03:36 AM
Apologies for my delayed response and Thanks for your responses.
It was merely a syntax error fixed by creating new script. DBA was just trying to save his efforts.
05-16-2017 08:03 AM
05-16-2017 11:11 AM
LOL, in my experience 95% of my issues from the DBA " Netbackup is not working" comes down to a typo in the scripts - there are variables for client, policy - for some reason they have to be spelled correctly and case sensitive on unix!