Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can't PATH Variable in Linux 1

Status
Not open for further replies.

Rolldice

Programmer
Aug 5, 2002
37
AU
OK - having never looked at linux before this week I'm in the dark here: AND I really can't see. I'm trying to start an Oracle 9i database up on Linux

We are running Red Hat: Linux Advanced Server on an IBM x series box.

I have followed instructions by O'Reilly Network, and successfully loaded Oracle 9i onto the box, however, I didn't set the oracle User Environment up at the time of install > Is this a major ?

I can now create a database, but I can't run netmgr to create a listener I get the following error:

ORACLE_HOME environment variable not set should be set to ..Products (or something like that)

After a treasure hunt and a half of documentation - I set the ORACLE_HOME variable in /etc/bashrc to /opt/ora9/product/9.2 and am currently setting the ORACLE_HOME variable in /etc/profile (to see if that works)

But I can't see: /opt/ora9/product/9.2
when I type: echo $PATH

I'm thinking I should be able to see this right?

Anyone familar with this game Please Help!

----------------------------------
Another Throw.. closer to a win..?
----------------------------------
 
Have you tried to export the PATH manualy to verify ?

Are you also sure that your own bashrc is loaded when you log in ?
 
Hi,

normally you should set this Variable (ORACLE_HOME) in the .profile for oracle or any user which needs to run oracle and export this afterwards if you user bash or ksh
export ORACLE_SID=.......
the same should be with changed PATH Variable in .profile of users
ciao
 
Doesn't look like you've set the PATH explicitly what you need in the oracle user .profile (or whatever file is appropriate to your shell) is:

ORACLE_HOME=/opt/ora9/product/9.2
PATH=$PATH:$ORACLE_HOME/bin
export ORACLE_HOME PATH

This will allow you to run the listener and netmgr commands

hth

I love deadlines. I like the whooshing sound they make as they fly by - Douglas Adams
 
Thank you for the response - there are some sign of life now

appi: I set ORACLE_SID=SSDEV
'SSDEV' being the name of the database I created - Is that right?

mrmac228: I have change the scripting in the .profile file

BUT when I type: bash netmgr

I'm getting this error:

Class not found: oracle.net.mgr.container.NetApplication

Sounds like a java file error?
Has the database not been loaded properly? Is this a still a file pointer issue? STUMPED!

anyone?




 
O.K.

Here's some more information:

I have now set some more evironment varibles the:

JAVA_HOME=/opt/IBMJava2-131
and
CLASSPATH=ORACLE_HOME/jdbc/lib/classes12.zip:
$ORACLE_HOME/JRE:
$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib:
$ORACLE_HOME/network/jlib:.

I still get the same error when trying to run netmgr.

Class not found: oracle.net.mgr.container.NetApplication

However, I get a new line now when trying to run netca:

netca:cd:/opt/ora9/product/9.2/network/tools
no such file or directory

(There is no /network/tools dir's after /9.2/ so I can appreicate that - But, I don't know what var fired the 'netca' command off that way?)

I'm starting to think I REALLY should have set these environment varible BEFORE installing Oracle 9i...

Should I unistall Oracle and re-install it ? Or by fixing these variables will I be able to get in the Oracle tools?


Thanks in advance









----------------------------------------
Another throw closer to a win ... ???
----------------------------------------
 
Just to check your post states CLASSPATH=ORACLE_HOME[\b]/jdbc/lib/classes12.zip

You need this to be $ORACLE_HOME and ensure that $ORACLE_HOME is defined before your definition of CLASSPATH

hth

I love deadlines. I like the whooshing sound they make as they fly by - Douglas Adams
 
Thanks mrmac228,

Today I ended up re-installing 9i - And am happy to say this issue has been resolved - It was the ORACLE_HOME environment variable that was set, during the first install that didn't match the the var in the Bashrc.

Cheers for you help - Here's a STAR!

----------------------------------------
Another throw closer to a win ... ???
----------------------------------------
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top