Home » RDBMS Server » Backup & Recovery » running rman script as root generates errors
running rman script as root generates errors [message #111910] Mon, 21 March 2005 14:51 Go to next message
bill mcbride
Messages: 12
Registered: May 2003
Junior Member
Hello,

I am trying to run a shell script as root to kick off an RMAN
backup session. OS is SunOS 5.8
I run $ORACLE_HOME/bin/rman target user/pwd nocatalog and get the following errors:

RMAN-00571: file not found
LEM-00031:file not found: arguements: [lempgmh] [lmserr]
LEM-00033:file not found: arguements: [lempgmh] Couldn't Open
message file

Same messages generated when running on the command line;
Please advise a fix!

Thanks,

Bill

Re: running rman script as root generates errors [message #111912 is a reply to message #111910] Mon, 21 March 2005 15:05 Go to previous messageGo to next message
Mahesh Rajendran
Messages: 10707
Registered: March 2002
Location: oracleDocoVille
Senior Member
Account Moderator


set your ORACLE_HOME and PATH
ORACLE_HOME=/../../
PATH=$PATH:$ORACLE_HOME/bin

>> I am trying to run a shell script as root to kick off an RMAN

It is not a good practise to use root for regular system maintainence.
Re: running rman script as root generates errors [message #111914 is a reply to message #111912] Mon, 21 March 2005 15:17 Go to previous messageGo to next message
bill mcbride
Messages: 12
Registered: May 2003
Junior Member
Hi Mahesh,

I originally tried to run this script as Oracle but ran into the same errors. Now that I have an idea of the fix, I will run it out of Oracle cron. Thank you for your quick response.

Cheers,

Bill
Re: running rman script as root generates errors [message #112215 is a reply to message #111914] Wed, 23 March 2005 14:51 Go to previous messageGo to next message
bill mcbride
Messages: 12
Registered: May 2003
Junior Member
Hi Mahesh,

Sorry to bother you but another problem has arisen when running this script as oracle.
I get the following error:

/u01/app/oracle/product/9.0.1_64: is not an identifier

running "echo $ORACLE_HOME" gives the same path as above. Any
help/advice is appreciated!

Thanks,

Bill

Re: running rman script as root generates errors [message #112220 is a reply to message #111910] Wed, 23 March 2005 15:04 Go to previous message
Mahesh Rajendran
Messages: 10707
Registered: March 2002
Location: oracleDocoVille
Senior Member
Account Moderator
from your script

ORACLE_HOME=/u01/app/oracle/product/9.0.1_64 
export $ORACLE_HOME 
PATH=$PATH:$ORACLE_HOME/bin: 
export $PATH 
echo $ORACLE_HOME;echo $PATH


wont work.
you cannot export $VARIABLE.
try
ORACLE_HOME=/u01/app/oracle/product/9.0.1_64 
export ORACLE_HOME 
PATH=$PATH:$ORACLE_HOME/bin: 
export PATH 
echo $ORACLE_HOME;echo $PATH

Previous Topic: export on linux
Next Topic: RMAN -recovery problem (and how do take incremental backup)
Goto Forum:
  


Current Time: Fri Apr 19 18:23:27 CDT 2024