Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> Re: Oracle 9iAs on Linux intel
TARUN SHARMA wrote:
Moreover, I'm working first time on
> Linux so I don't know how to set path and oracle home variables.
> permanently. Is there any file like '.bat' in windows which set the
> path. Help needed. Also if there is any book for oracle 9i and linux.
>
Yes. It depends on the shell you are using. By default Linux uses the Bash shell (/bin/bash). To set your environment variables in bash edit the file ~/.bash_profile and include something like:
ORACLE_BASE=/usr/oraInventory
ORACLE_HOME=/usr/oracle
EXPORT ORACLE_BASE ORACLE_HOME
If you are using the C-shell (/bin/csh), you can edit your ~/.cshrc
file, the syntax is slightly different:
set ORACLE_BASE = (/usr/oraInventory)
set ORACLE_HOME = (/usr/oracle)
If you are not sure which shell you are using, you can find out by typing:
echo $SHELL
also, the "~" thingy is a short hand for your home directory. So if your user name is "tsharma" ~/.bash_profile and /home/tsharma/.bash_profile refer to the same file.
--tom.
-- C-x C-c -- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: tom panzarella INET: tpanzarella_at_acm.org Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San Diego, California -- Public Internet access / Mailing Lists -------------------------------------------------------------------- To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).Received on Wed Apr 18 2001 - 07:39:12 CDT
![]() |
![]() |