You are here

As the Installing User, Setup ~/.bash_profile

Add the following Oracle variables in the installing user's .bash_profile file as a reference point for your 12c environment. 

Add the following to the end of the installing user's ~/.bash_profile file.

Note: Confirm the variable setting for your enviroment. For example, the confirm the bold section above, i.e. paths, the SID, and the unqname.   

# Oracle variables
TMP=/tmp; export TMP
TMPDIR=$TMP; export TMPDIR
ORACLE_HOSTNAME=hostname.domain.com; export ORACLE_HOSTNAME
ORACLE_BASE=/u01/app/oracle; export ORACLE_BASE
ORACLE_HOME=$ORACLE_BASE/product/12.1.0/dbhome_1; export ORACLE_HOME
AGENT_HOME=$ORACLE_BASE/product/agentr4/agent_inst; export AGENT_HOME
OMS_HOME=$ORACLE_BASE/product/MiddlewareR4/oms; export OMS_HOME
ORACLE_INSTANCE=/u01/app/oracle/product/gc_inst/WebTierIH1; export ORACLE_INSTANCE
ORACLE_SID=MYSID; export ORACLE_SID
ORACLE_UNQNAME=MYSID; export ORACLE_UNQNAME
PATH=/usr/sbin:$PATH; export PATH
PATH=$ORACLE_HOME/bin:$PATH; export PATH
LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib; export LD_LIBRARY_PATH
CLASSPATH=$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib; export CLASSPATH
 
Next, source the .bash_profile:
​$ source ~/.bash_profile

Download PDF Now!