LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
LinkBack Search this Thread
Old 10-21-2004, 08:44 AM   #1
ashley75
Member
 
Registered: Aug 2003
Posts: 223

Rep: Reputation: 30
question about Linux env


HI all,

I have this question and it may be dumb and easy for a lot of people in here but I am Oracle DBA not Linux sys admin and unfortunately, I have to do some of the linux admin work. Anyway, the quesion I have is:

in Linux you have .bashrc file and you would add something like this for Oracle:

export ORACLE_HOME=/home/oracle/product/9.2.0
export ORACLE_BASE=/home/oracle
export NLS_LANG=AMERICAN_AMERICA.WE8ISO8859P1
export ORA_NLS33=$ORACLE_HOME/ocommon/nls/admin/data
export ORACLE_SID=HULIST01
export TNS_ADMIN=$ORACLE_HOME/network/admin
export CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib:$ORA
CLE_HOME/network/jlib
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib:/usr/openwin/lib
export PATH=$PATH:$HOME/bin:$ORACLE_HOME/bin



could someone please give me a full explanation of what is the purpose of add the above command in .bashrc?????

Sorry, I am new and I would like to understand of what I am doing

thanks a bunch
 
Old 10-21-2004, 09:00 AM   #2
sjalex
Member
 
Registered: Oct 2004
Location: Houston
Distribution: CentOS, ubuntu
Posts: 41

Rep: Reputation: 15
OK, basically what you are doing is setting variables, then installing the variable/value pairs into the environment, in this case the bash shell.

In a nutshell this means that any process started from that bash shell inherits those variables from the shell.

So, when you launch your oracle DB server, it's going to look in its environment and read the values of those variables in order to configure itself. In other words, the database expects to be able to (is programmed to) read the values of ORACLE_HOME, ORACLE_BASE, etc. and do relevant internal things with them.

Hope this helps.
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Shell env question Iriel Solaris / OpenSolaris 1 10-12-2005 12:38 PM
set or env? calutateo Linux - Newbie 2 07-24-2005 12:56 PM
env variable allelopath Linux - Software 3 04-14-2005 12:07 PM
env problem on Linux Redhat 2.1 ashley75 Linux - General 6 03-21-2005 09:39 AM
change env on Linux ashley75 Linux - General 10 02-11-2004 04:23 PM


All times are GMT -5. The time now is 08:40 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
Open Source Consulting | Domain Registration