You are on page 1of 2

<title>Install Oracle Client for SAP</title>

<h3>Install Oracle Client for SAP</h3>

[ ] A request has been made from Basis to install the Oracle Client for a server.

[ ] Check if the client software has already been mounted by looking in

directory /oracle/${DB2DBDFT}/client.

dir /oracle/${DB2DBDFT}/client

If the directory does not exist, request the AIX team to nfs mount it to
/oracle/${DB2DBDFT}/client. Edit and use the following to request the maintenance
in an e-mail:

We need the Oracle client mounted to the <SID> server sap0XXX.

The nfs mount point is /export/oracle/client/ We need it mounted to

sap0XXX as /oracle/<SID>/client.


[ ] Sign onto the <sid>adm account and cd to /usr/sap/${DB2DBDFT}/SYS/profile.

Check if there is a directory called oracle. If not, create it.
cd /usr/sap/${DB2DBDFT}/SYS/profile;ls| grep -i oracle

If it does not exist, create it:

mkdir oracle

[ ] In the directory, there needs to be a sqlnet.ora file and a tnsnames.ora file.

If they do not exist, do the following:
copy the sqlnet.ora file from /tech/dba/unix:
cp /tech/dba/unix/sqlnet.ora /usr/sap/${DB2DBDFT}/SYS/profile/oracle/.

create a softlink for the tnsnames.ora file from /usr/sap/trans:

ln -s /usr/sap/trans/tnsnames.ora /usr/sap/$

[ ] The following variables need to be added to the .dbenv files for the <sid>adm
For ,dbenv.csh and, possibly, .dbenv_<server name>.csh, add the following
variables at the bottom of the file:
# Variables for Oracle connection to TED,CPR, etc.
setenv TNS_ADMIN /usr/sap/${DB2DBDFT}/SYS/profile/oracle
setenv LIBPATH ${LIBPATH}:/oracle/${DB2DBDFT}/client/lib
setenv ORACLE_HOME /oracle/${DB2DBDFT}/client
setenv PATH ${PATH}:/oracle/${DB2DBDFT}/client/bin

For and , possibly, .dbenv_<server_name>.sh, add the following

variables at the bottom of the file:
# Variables for Oracle connection to TED,CPR, etc.
TNS_ADMIN=/usr/sap/${DB2DBDFT}/SYS/profile/oracle ; export TNS_ADMIN
LIBPATH=${LIBPATH}:/oracle/${DB2DBDFT}/client/lib ; export LIBPATH
ORACLE_HOME=/oracle/${DB2DBDFT}/client ; export ORACLE_HOME
PATH=${PATH}:/oracle/${DB2DBDFT}/client/bin ; export PATH

[ ] Sign off and sign back on as <sid>adm and verify the variables by doing an env
[ ] Test the Oracle connections. Sapted_vol can be used for the test:

sap0552:sl1adm 5> tnsping sapted_vol

TNS Ping Utility for IBM/AIX RISC System/6000: Version - Production on
29-DEC-2015 15:49:10

Copyright (c) 1997, 2010, Oracle. All rights reserved.

Used parameter files:


Used TNSNAMES adapter to resolve the alias

Attempting to contact (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (COMMUNITY = = TCP)(Host = = 1526))) (CONNECT_DATA
OK (40 msec)

Then, test a connection by connecting to that system using the system account
and the DBA standard password:

sap0552:sl1adm 6> sqlplus system@sapted_vol

SQL*Plus: Release Production on Tue Dec 29 15:51:34 2015

Copyright (c) 1982, 2010, Oracle. All rights reserved.

Enter password:

Connected to:
Oracle Database 11g Enterprise Edition Release - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options


[ ] Notify Basis that the client has been installed.