After you install Oracle driver in your SAS environment make sure you define following environment variables:
/oracle/product/11.2.0/client_1/network/admin
oracle/product/11.2.0/client_1/oracle.env
ORACLE_BASE=/oracle
ORACLE_HOME=$ORACLE_BASE/product/11.2.0/client_1
TNS_ADMIN=$ORACLE_HOME/network/admin
PATH=$PATH:$ORACLE_HOME/bin
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ORACLE_HOME/lib
tnsnames.ora file:
This file will be placed in the Oracle installation location under network -> admin. This is where you need to define the connection string./oracle/product/11.2.0/client_1/network/admin
Oracle.env file:
Inside the file you need to define all your environment variables. Without this your connection is likely to fail. Oracle.env file will be in following location.oracle/product/11.2.0/client_1/oracle.env
Environment variables:
All environment variables should be mentioned inside the oracle.env file. Below are the environment variable you need to define:ORACLE_BASE=/oracle
ORACLE_HOME=$ORACLE_BASE/product/11.2.0/client_1
TNS_ADMIN=$ORACLE_HOME/network/admin
PATH=$PATH:$ORACLE_HOME/bin
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ORACLE_HOME/lib
Comments
Post a Comment