Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 07-07-2002, 07:03 AM   #1
Registered: Jun 2002
Distribution: Centos 4.4
Posts: 82

Rep: Reputation: 15
Setting environment variables on boot


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?


Old 07-07-2002, 10:14 AM   #2
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

Old 07-07-2002, 10:19 AM   #3
Registered: Jun 2002
Location: Bailey, CO
Distribution: Slackware
Posts: 483

Rep: Reputation: 32
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:

export ENV_NAME

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

As well as the howto and guides on:
Old 10-03-2002, 12:14 AM   #4
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.

cd /usr/xyz
source xyz_qrs

Any help would be great


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

All times are GMT -5. The time now is 10:26 PM.

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