LinuxQuestions.org
Visit Jeremy's Blog.
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 07-07-2002, 06:03 AM   #1
dwynter
Member
 
Registered: Jun 2002
Distribution: Centos 4.4
Posts: 82

Rep: Reputation: 15
Setting environment variables on boot


Hi,

I have installed Oracle on my Mandrake 8.2 box. Part of the install requires me to setup some environment variables in either .login or .profile files. When I searched for these files with Konqueror it crashes. So i don't know where to find them, I had a look in what i thought were obvious places (home directory and sub directories) but no luck.

So the question is where can I set these envronment variables (e.g. ORACLE_HOME for the oracle user) so that they are set prior to the Oracle instance starting up?

Thanks

David
 
Old 07-07-2002, 09:14 AM   #2
jpweston
Member
 
Registered: Mar 2002
Location: Sacramento, CA
Distribution: Slackware 8.1; Debian 3.0
Posts: 222

Rep: Reputation: 30
If you want to set the variables for a specific user, you can set them up in either .bash_profile or .bashrc in the user's home directory. If you want the environment variable to be set for all users when they login, you can set it up in /etc/profile

j.
 
Old 07-07-2002, 09:19 AM   #3
pickledbeans
Member
 
Registered: Jun 2002
Location: Bailey, CO
Distribution: Slackware
Posts: 483

Rep: Reputation: 31
The system default "profile" is /etc/profile.
Thse are called dot files "."extention to see them from the shell login in use
ls -la. Not all distro's create a .profile or .bash_profile in users home directory.

Any changes you want every user to have should be make in /etc/profile.
the genearl syntax is:

ENV_NAME=
export ENV_NAME

If you are new to Unix/Linux I would suggest that you read this Howto
before you go much furthure:

http://tldp.org/HOWTO/DOS-Win-to-Linux-HOWTO.html

As well as the howto and guides on:
http://ltdp.org
 
Old 10-02-2002, 11:14 PM   #4
prophet
LQ Newbie
 
Registered: Oct 2002
Posts: 3

Rep: Reputation: 0
Its a newbie forum, need better info

Ok, how do you place the commands you need into the .bashrc script? Just tac them on the end? Need specifics cause this is the newbie forum. Dont assume anything here.

I need to do the following. This is what I must type each time prior to launching a particular app. I'd like to have this done for me when I log on.

csh
cd /usr/xyz
source xyz_qrs

Any help would be great
Thanks
 
  


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
Environment variables setting... simjii Suse/Novell 4 11-19-2005 07:50 PM
Setting Environment Variables rbh123 Linux - Newbie 2 10-03-2005 06:34 PM
Need help setting environment variables. cottonmouth Linux - Newbie 3 12-09-2004 04:54 PM
Setting Environment Variables farzan Linux - Newbie 2 08-07-2004 09:13 AM
setting environment variables rezza Linux - Distributions 2 04-09-2003 08:21 AM


All times are GMT -5. The time now is 11:55 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration