Database Restore failed from Networker for Sybase database
Dear Friends,
We take backup from networker solution of our Sybase database server , backup is happening on daily basis but when we try to restore the database from the mentioned command it give error "43394:nsrsybrc: Failed to open OCS library. Please ensure dynamic library path is set to appropriate OCS library path"
The command which i use to restore is nsrsybrc -Usapsa -Pxxx -snetworker.apg.com -d SYBASE:/SAPMPD/MPD SYBASE:/MTLDQ/MDV
Thanks for the reply , please find the below env variable details below , i have user root , sybsid and sidadm ids to restore the db but could not done.
Thanks for your valuable reply , my problem while running backup restore command is when i run command as root user its give the error as "43394:nsrsybrc: Failed to open OCS library. Please ensure dynamic library path is set to appropriate OCS library path" as it could not find the OCS library as i don't know how to set environment variable for root user also need to give db command support authorization to root.
Second issues when i run the backup restore command as Sybase user then sybase user doesn't have authorization to run the backup restore command exe file i.e nsrsybrc.
I think you should run restore as sybase user. As for authorization of that user, are you talking about permissions on config file of some kind or access to index on server? Later one is easy to fix by just adding user@box into DB admin group (or admin group - depending on your setup). If you have shared the log/error, it would be easier to say what to do next.
First error suggests that your path is not set to folder which contains binary. Use full path to call command or reset PATH variable. Second error (with root user) suggests DB auth does not allow connections from root (despite using user/pass from sa) or data used to connect is somewhat not what has been expected.
crazyrov
6 Operator
•
1319 Posts
2398
0
Posted July 23rd, 2014 06:00
Can you ensure that all the SYBASE related environment variables are set correctly for the login that you are using to run the recover command.