How To: Set up direct connect for Oracle with ArcGIS Server on Linux
Instructions provided describe how to set up the arcsoc.init file to include the environment variables necessary for performing Oracle direct connect.
- Stop server:
In version 10.0, <arcgis directory> is the path to the server10.0 directory inside the arcgis directory. In previous versions, <arcgis directory> is the path to the arcgis directory.
- Make a backup of the <arcgis directory>/bin/arcsoc.init file:
cp <arcgis directory>/bin/arcsoc.init <arcgis directory>/bin/arcsoc.init.orig
- Set the following variables in the <arcgis directory>/bin/arcsoc.init file just before the exec $* statement:
SDEHOME=<arcgis directory>;export SDEHOME
ORACLE_HOME=<oracle client directory location>;export ORACLE_HOME
If the 64-bit version of the Oracle client is being used, the LD_LIBRARY_PATH value of $ORACLE_HOME/lib has to be $ORACLE_HOME/lib32 instead.
For example, with ArcGIS Server installed to /dir1/arcgis and Oracle Client located in /dir1/oracli/app/oracle/product/10.2.0, the settings would be:
If the tnsnames.ora file is not in the default location, the additional variable TNS_ADMIN must be added to the arcsoc.init file:
In this example, TNS_ADMIN is set to the default location of the tnsnames.ora file.
- Start server: