Sei sulla pagina 1di 4

How to configure ODI 11.1.1.

7 and Oracle SQL Developer to use OCI (Oracle Call


Interface) Connection
http://www.oracle.com/technetwork/database/features/instant-client/index-097480.html

See additional info in Note: What Is Required In Order To Use Oracle "thick" Driver (OCI) With ODI? (Doc
ID 602706.1)

1. Download Oracle Instant Client

For ODI 11.1.1.7 download from this link:

http://www.oracle.com/technetwork/topics/linuxx86-64soft-092277.html

http://www.oracle.com/technetwork/topics/winx64soft-089540.html

Version 12.1.0.2.0 - Instant Client Package Basic (For Oracle SQL Developer)

And

Version 11.2.0.3.0 - Instant Client Package Basic (For ODI 11.1.1.7)

instantclient-basic-windows.x64-11.2.0.3.0.zip

2. Unzip the 2 archives in 2 folders, using the oracle user:

You will get 2 folders, named for example:

instantclient-basic-linux.x64-11.2.0.3.0

instantclient-basic-linux.x64-12.1.0.2.0

3. In each folder create a file named tnsnames.ora with this content:

SIT_OCI=

(DESCRIPTION=
1
(ADDRESS=(PROTOCOL=tcp)(HOST=perpdbs001.hkex)(PORT=1526))

(CONNECT_DATA=

(SERVICE_NAME=SIT)

(INSTANCE_NAME=SIT1)

4. Modify <ODI_HOME>\oracledi\client\odi\bin\odi.conf

Add

AddVMOption -Djava.library.path=/instantclient-basic-linux.x64-11.2.0.3.0/instantclient_11_2

AddVMOption -D64

Put the full location of Version 11.2.0.3.0 - Instant Client Package, depending where you unzip it.

Restart ODI Studio.

5. For the ODI Standalone agent:

Modify <ODI_HOME>\oracledi\agent\bin\odiparams.bat

On parameter ODI_ADDITIONAL_JAVA_OPTIONS add

"-Djava.library.path=/instantclient-basic-linux.x64-11.2.0.3.0/instantclient_11_2" "-D64"

So your parameter could be:

ODI_ADDITIONAL_JAVA_OPTIONS="-Djava.library.path=/instantclient-basic-linux.x64-
11.2.0.3.0/instantclient_11_2" "-D64"

Also ODI_ADDITIONAL_JAVA_OPTIONS may include other parameters also.

Restart the Standalone Agent.

6. Open ODI Studio

Modify the data server and use the JDBC data server as:

2
jdbc:oracle:oci8:@SIT_OCI

Test the connection.

7. Open Oracle SQL Developer / Tools / Preferences

Access: Database \ Advanced entry (see picture below):

On Use Oracle Cleint and Use ODI driver point to the location of Version 12.1.0.2.0 - Instant
Client Package.

Create a connection as:

3
And test it.

Potrebbero piacerti anche