LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-15-2008, 01:05 PM   #1
Raakh
Member
 
Registered: May 2007
Posts: 128

Rep: Reputation: 15
Setting Path Problem


I am setting path of the user oracle like:

export ORACLE_HOME=/usr/lib/oracle/xe/app/oracle/product/10.2.0/server
export ORACLE_SID=XE
export PATH=$PATH:$ORACLE_HOME/bin


but when I close my ssh client and logon again I have to set the path again. Where am going wrong?

Thanks & best regards
 
Old 03-15-2008, 01:30 PM   #2
Uncle_Theodore
Member
 
Registered: Dec 2007
Location: Charleston WV, USA
Distribution: Slackware 12.2, Arch Linux Amd64
Posts: 896

Rep: Reputation: 69
Quote:
Originally Posted by Raakh View Post
I am setting path of the user oracle like:

export ORACLE_HOME=/usr/lib/oracle/xe/app/oracle/product/10.2.0/server
export ORACLE_SID=XE
export PATH=$PATH:$ORACLE_HOME/bin


but when I close my ssh client and logon again I have to set the path again. Where am going wrong?

Thanks & best regards
That's the expected behavior. You should probably put these lines into a .bashrc or .bash_profile files in your home directory on the machine you're connecting to.
 
Old 03-15-2008, 01:36 PM   #3
Raakh
Member
 
Registered: May 2007
Posts: 128

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by Uncle_Theodore View Post
That's the expected behavior. You should probably put these lines into a .bashrc or .bash_profile files in your home directory on the machine you're connecting to.
Thanks for your reply. I am very beginner with Linux. Can you please direct me where can I find .bash_profile on my dedicated server

Thanks & best regards
 
Old 03-15-2008, 01:44 PM   #4
Uncle_Theodore
Member
 
Registered: Dec 2007
Location: Charleston WV, USA
Distribution: Slackware 12.2, Arch Linux Amd64
Posts: 896

Rep: Reputation: 69
Quote:
Originally Posted by Raakh View Post
Thanks for your reply. I am very beginner with Linux. Can you please direct me where can I find .bash_profile on my dedicated server

Thanks & best regards
When you connect to your server through ssh, you get to your home directory. In it, there should be hidden files called .bashrc and .bash_profile. They are "hidden" because the "ls" command doesn't display them without additional options. The leading dot in their names makes them "hidden".
If these files don't exist, you can create them. Just log in to your server and type something like

emacs .bashrc
or
nano .bashrc

depending on what your favorite editor is. Type the "export" lines in and save the file. Then relogin.

I'm pretty sure you only need to modify/create .bashrc
 
Old 03-15-2008, 02:02 PM   #5
Raakh
Member
 
Registered: May 2007
Posts: 128

Original Poster
Rep: Reputation: 15
GNU nano 1.2.4 File: .bashrc


export ORACLE_HOME=/usr/lib/oracle/xe/app/oracle/product/10.2.0/server
export ORACLE_SID=XE
export PATH=$PATH:$ORACLE_HOME/bin













[ Wrote 4 lines ]
^G Get Help ^O WriteOut ^R Read File ^Y Prev Page ^K Cut Text ^C Cur Pos
^X Exit ^J Justify ^W Where Is ^V Next Page ^U UnCut Txt ^T To Spell

with ctl X I became out the relogged in but the same path problem

Last edited by Raakh; 03-15-2008 at 02:24 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Setting the path powerlifter450 Linux - Software 18 07-05-2006 11:46 AM
Setting PATH martint Linux - Newbie 2 11-15-2003 05:27 PM
Setting the path davee Linux - General 7 09-26-2003 03:17 PM
Setting the path.... joel112 Slackware 5 08-28-2003 02:27 PM
Setting up PATH Sonny Linux - Newbie 4 01-28-2002 02:02 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:16 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration