Você está na página 1de 2

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

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


<xmp>
[ ] 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/11.2.0.2. We need it mounted to


sap0XXX as /oracle/<SID>/client.

Thanks

[ ] 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/$
{DB2DBDFT}/SYS/profile/oracle/tnsnames.ora

[ ] The following variables need to be added to the .dbenv files for the <sid>adm
user:
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 NLS_LANG AMERICAN_AMERICA.UTF8
setenv LIBPATH ${LIBPATH}:/oracle/${DB2DBDFT}/client/lib
setenv ORACLE_HOME /oracle/${DB2DBDFT}/client
setenv PATH ${PATH}:/oracle/${DB2DBDFT}/client/bin

For .dbenv.sh 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
NLS_LANG=AMERICAN_AMERICA.UTF8 ; export NLS_LANG
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
command.
[ ] 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 11.2.0.2.0 - Production on
29-DEC-2015 15:49:10

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

Used parameter files:


/usr/sap/SL1/SYS/profile/oracle/sqlnet.ora

Used TNSNAMES adapter to resolve the alias


Attempting to contact (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (COMMUNITY =
tcp.amp.com)(PROTOCOL = TCP)(Host = scorpion.amp.com)(Port = 1526))) (CONNECT_DATA
= (SID = GDWV2) (SERVER = DEDICATED) (GLOBAL_NAME = scorpion_gdwv2.amp.com)))
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 11.2.0.2.0 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 11.2.0.3.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options

SQL>

[ ] Notify Basis that the client has been installed.

<xmp>

Você também pode gostar