Adding Environment Variables to Application Server Scripts-Oracle
Use
Application Server identifies all Oracle libraries installed on the machine without any source code incompatibilities. If Application Server is on a machine with Oracle 10g or 11i (and the required environment variables are set correctly), Application Server uses the right Oracle library.
Complete the following instructions to include the ORACLE_HOME and ORACLE_SID variables in the Application Server scripts runlss.csh or runlss.ksh, and lsstcp.sh. You must do this before you use Link to create Link IDs. These environment variables are required by Oracle.
Procedure
-
Open the lsstcp.sh script.
-
Find the lines:
LSLINKINI=$LSSHOME/
export LSLINKINI
-
After the line above, add the following lines, where /usr/oracle is the location of your ORACLE_HOME and ORCL is your ORACLE_SID:
ORACLE_HOME=/usr/oracle
ORACLE_SID=ORCL
export ORACLE_HOME ORACLE_SID
-
In addition, you must include the path to the Oracle shared libraries. See the next few sections to carry out the steps related to your platform and Oracle version.
-
If you are running in a Linux/UNIX Korn shell environment, make the appropriate changes to the runlss.ksh script. If you are running in a Linux/UNIX C shell environment, make the appropriate changes to runlss.csh script.