Home » RDBMS Server » Backup & Recovery » RMAN Error
RMAN Error [message #222385] Sat, 03 March 2007 15:12 Go to next message
powerlifter1450
Messages: 4
Registered: March 2007
Junior Member
Hi everyone, I am getting a weird RMAN error that I can't seem to find much information on. I am running Oracle 10g R1 on Fedora Linux. When typing $rman nothing happens; the cursor just goes to the nest line and I never get another prompt. This happens if I execute the command fro $ORACLE_HOME/bin too. If I use $rman target sys/password@dbnam NOCATALOG, it says "rman: can't open target database"

Using RMAN script via te EM Database control works fine.

Any ides what could be wrong? Thanks in advance!
Re: RMAN Error [message #222386 is a reply to message #222385] Sat, 03 March 2007 15:20 Go to previous messageGo to next message
BlackSwan
Messages: 25033
Registered: January 2009
Location: SoCal
Senior Member
>Any ideas what could be wrong? Thanks in advance!
I am willing to bet dollars to donuts that you really are NOT running $ORACLE_HOME/bin/rman; but a different executable which resides in your PATH before Oracle's RMAN.

$ type rman

$ which rman


What happens when you?
$ $ORACLE_HOME/bin/rman

PEBKAC!
Re: RMAN Error [message #222387 is a reply to message #222386] Sat, 03 March 2007 16:35 Go to previous messageGo to next message
powerlifter1450
Messages: 4
Registered: March 2007
Junior Member
which rman results in:
/usr/X11R6/bin/rman

my Path variable is as follows:
PATH=$PATH:$ORACLE_HOME/bin:usr/X11R6/bin

executing rman from any of those directories results in the cursor just blinking moving to the next line and a prompt not showing up until I it CTRL-C to get back to the $ prompt.

Thanks for your help!
Re: RMAN Error [message #222388 is a reply to message #222387] Sat, 03 March 2007 16:51 Go to previous messageGo to next message
powerlifter1450
Messages: 4
Registered: March 2007
Junior Member
OK, I just modified my bash profile to make the $PATH part second in the list and RMAN now connects!

Very odd, because when originally CDing to $ORACLE_HOME/bin, trying to run rman would not work. So am a little confused how changing the path fixed this. (I could see why it would no work running rman from outside of the directory).

Thanks for your help!!
Re: RMAN Error [message #222389 is a reply to message #222385] Sat, 03 March 2007 17:20 Go to previous messageGo to next message
BlackSwan
Messages: 25033
Registered: January 2009
Location: SoCal
Senior Member
>CDing to $ORACLE_HOME/bin, trying to run rman would not work.
It would have worked at the "cd $ORACLE_HOME/BIN" if you had
./rman

Only if "." was included in $PATH AND before "/usr/X11R6/bin" (as below) would just typing "rman" done what you expected.
PATH=.:/usr/X11R6/bin:$ORACLE_HOME/bin

The reason why I was sure of my initial response was that I had the same mystery a while ago & it took me many minutes to figure out what was wrong (on my own). My breakthru realization came when I invoked it with Fully Qualified Path Name & it worked!
Then I realized I just had a PATH problem.
Re: RMAN Error [message #222391 is a reply to message #222389] Sat, 03 March 2007 18:39 Go to previous messageGo to next message
Mahesh Rajendran
Messages: 10672
Registered: March 2002
Location: oracleDocoVille
Senior Member
Account Moderator
Actually,
in certain Linux distributions, there is a tool called rman that is related to X11.
As you found it already, setting the correct PATH would fix this.
Re: RMAN Error [message #222394 is a reply to message #222389] Sat, 03 March 2007 19:43 Go to previous message
powerlifter1450
Messages: 4
Registered: March 2007
Junior Member
Thanks for the help !! Smile
Previous Topic: Archive Logs question... NEED HELP
Next Topic: COPYING WHOLE ORACLE10G MACHINE
Goto Forum:
  


Current Time: Fri Dec 02 16:28:39 CST 2016

Total time taken to generate the page: 0.55524 seconds