cancel
Showing results for 
Search instead for 
Did you mean: 

RMAN BACKUP obk_stderr output generates command not found

aksriniv
Level 3

 

we have Oracle 9i database and we are using netbackup 7.1 to backup the oracle database through RMAN backup is completing fine but bphdb log always

generate obkstderr output file and the output is always

ORACLE_SID=QH: Command not found.
export: Command not found.

4 REPLIES 4

Will_Restore
Level 6

Please attach your RMAN script for review.  Normally those entries are sent to Oracle but it appears they are being directed to the OS command line instead.

Nicolai
Moderator
Moderator
Partner    VIP   

The export command is used in Korn shell - but not bash.

Make sure you have the shebang in start of script

e.g

#!/usr/bin/ksh

http://en.wikipedia.org/wiki/Shebang_(Unix)

Tmy_70
Level 5
Partner Accredited Certified

 

From the Netbackup for Oracle SysAdmin
 
Linking NetBackup for Oracle with RMAN
 
Linking RMAN with a library provided by NetBackup for Oracle on UNIX is the only
 
NetBackup requirement. Before writing to sequential devices such as tape, you must link
 
the Oracle Server software with the media management API library installed by
 
NetBackup for Oracle on UNIX. Oracle uses this library when it needs to write to, or read
 
from devices supported by Media Manager.
 
¥ To link Oracle with NetBackup for Oracle on UNIX
 
1. Become the Oracle user.
 
su - oracle
 
2.
Shutdown all of the Oracle instances (SIDs). The user must connect as sysdba, either
 
using OS Authentication or Oracle Authentication (set up in the Oracle password
 
file). The following example is for Oracle9i.
 
Set the ORACLE_SID environment variable to the first SID.
 
Connect as sysdba using OS Authentication:
 
sqlplus /nolog
 
connect / as sysdba
 
shutdown immediate
 
exit
 
Connect as sysdba using Oracle Authentication (via password file):
 
sqlplus /nolog
 
connect userid/password as sysdba
 
shutdown immediate
 
exit
 
Change the ORACLE_SID environment variable to any other SID that uses this Oracle
 
installation and repeat above commands.
 
3.
Set up automatic linking.
 
a.
Change directory to install_path/netbackup/bin/
 
b.
Run the oracle_link script:
 
./oracle_link
 
This script determines the Oracle version level and then links Oracle to
 
NetBackup accordingly. All output from this script will be captured in a
 
/tmp/make_trace.pid file. To change the trace file location, change the
 
MAKE_TRACE
variable in the oracle_link script.

Yasuhisa_Ishika
Level 6
Partner Accredited Certified

If so, you have to specify DBA user whose login shell is sh compatible.
Change login shell of existing DBA user, or create a new DBA user and set its login shell /bin/sh.