HOW TO
Instructions provided describe how to set up the arcsoc.init file to include the environment variables necessary for performing DB2 direct connect.
Code:
<arcgis directory>/scripts/stopserver
Note:
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.
Code:
cp <arcgis directory>/bin/arcsoc.init <arcgis directory>/bin/arcsoc.init.orig
Code:
SDEHOME=<arcgis directory>;export SDEHOME
DB2_CLIENT_HOME=<DB2 client directory location>;export DB2_CLIENT_HOME
DB2INSTANCE=<DB2 instance name>;export DB2INSTANCE
LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$SDEHOME/bin:$DB2_CLIENT_HOME/lib";export LD_LIBRARY_PATH
PATH="$PATH:$SDEHOME/bin:$DB2_CLIENT_HOME/bin:$DB2_CLIENT_HOME/adm:$DB2_CLIENT_HOME/misc";export PATH
Code:
SDEHOME=/dir1/arcgis;export SDEHOME
DB2_CLIENT_HOME=/dir1/db2_81/db2udb/sqllib;export DB2_CLIENT_HOME
DB2INSTANCE=db2udb;export DB2INSTANCE
LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$SDEHOME/bin:$DB2_CLIENT_HOME/lib";export LD_LIBRARY_PATH
PATH="$PATH:$SDEHOME/bin:$DB2_CLIENT_HOME/bin:$DB2_CLIENT_HOME/adm:$DB2_CLIENT_HOME/misc";export PATH
Code:
SDEHOME=<arcgis directory>;export SDEHOME
DB2_CLIENT_HOME=<DB2 client directory location>;export DB2_CLIENT_HOME
DB2INSTANCE=<DB2 instance name>;export DB2INSTANCE
LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$SDEHOME/bin:$DB2_CLIENT_HOME/lib32";export LD_LIBRARY_PATH
PATH="$PATH:$SDEHOME/bin:$DB2_CLIENT_HOME/bin:$DB2_CLIENT_HOME/adm";export PATH
Code:
SDEHOME=/dir1/arcgis;export SDEHOME
DB2_CLIENT_HOME=/dir1/db2_91/db2udb/sqllib;export DB2_CLIENT_HOME
DB2INSTANCE=db2udb;export DB2INSTANCE
LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$SDEHOME/bin:$DB2_CLIENT_HOME/lib32";export LD_LIBRARY_PATH
PATH="$PATH:$SDEHOME/bin:$DB2_CLIENT_HOME/bin:$DB2_CLIENT_HOME/adm";export PATH
Code:
<arcgis directory>/scripts/startserver
Get help from ArcGIS experts
Download the Esri Support App