oracle instant client and datastage connection help

A forum for discussing DataStage<sup>®</sup> basics. If you're not sure where your question goes, start here.

Moderators: chulett, rschirm, roy

dsecom
Premium Member
Premium Member
Posts: 12
Joined: Tue Jan 30, 2007 4:01 am
Location: Sandton

oracle instant client and datastage connection help

Post by dsecom »

Hi

Is it possible for me to use oracle instant client to connect Oracle plugins.
I am so confused because the info i can see is
drwxr-xr-x 2 oracle dba 512 Mar 9 08:42 .
drwxr-xr-x 3 oracle dba 512 Mar 9 08:36 ..
-r--r--r-- 1 oracle dba 1600090 Dec 20 15:00 classes12.jar
-rwxr-xr-x 1 oracle dba 27904 Dec 20 14:59 genezi
-r--r--r-- 1 oracle dba 1525 Dec 20 15:01 glogin.sql
-rwxr-xr-x 1 oracle dba 20857608 Dec 20 15:00 libclntsh.so.10.1
-rwxr-xr-x 1 oracle dba 117252 Dec 20 15:01 libheteroxa10.so
-rwxr-xr-x 1 oracle dba 6135928 Dec 20 14:59 libnnz10.so
-rwxr-xr-x 1 oracle dba 1165184 Dec 20 15:00 libocci.so.10.1
-rwxr-xr-x 1 oracle dba 72433976 Dec 20 14:59 libociei.so
-rwxr-xr-x 1 oracle dba 101888 Dec 20 15:00 libocijdbc10.so
-rwxr-xr-x 1 oracle dba 1141196 Dec 20 15:01 libsqlplus.so
-rwxr-xr-x 1 oracle dba 1434256 Dec 20 15:01 libsqlplusic.so
-r--r--r-- 1 oracle dba 1545954 Dec 20 15:00 ojdbc14.jar
-rw-r--r-- 1 oracle dba 159 Mar 9 08:40 oracle_env.env
-r--r--r-- 1 oracle dba 1645114 Dec 20 15:01 orai18n.jar
-rw-r--r-- 1 oracle dba 813 Mar 9 08:42 sqlnet.log
-rwxr-xr-x 1 oracle dba 6508 Dec 20 15:01 sqlplus
-rw-r--r-- 1 oracle dba 380 Mar 9 08:49 tnsnames.ora
$ pwd
/export/home/oracle/instantclient/instantclient_10_2

I dont see lib32 to type LD_LIBRARY_PATH in dsenv.

Please clear this for me,i am getting confused.
kumar_s
Charter Member
Charter Member
Posts: 5245
Joined: Thu Jun 16, 2005 11:00 pm

Post by kumar_s »

Do you mean, you are trying to connect to remote database?
Impossible doesn't mean 'it is not possible' actually means... 'NOBODY HAS DONE IT SO FAR'
kumar_s
Charter Member
Charter Member
Posts: 5245
Joined: Thu Jun 16, 2005 11:00 pm

Post by kumar_s »

Were you able to connect to Oracle database using this setup from command line?
Impossible doesn't mean 'it is not possible' actually means... 'NOBODY HAS DONE IT SO FAR'
dsecom
Premium Member
Premium Member
Posts: 12
Joined: Tue Jan 30, 2007 4:01 am
Location: Sandton

Post by dsecom »

I am trying to set up connection between datastage and oracle.
I understand i have to edit dsenv ie oracle_home.
My problem is i dont even see lib32 for LD_LIBRARY_PATH.
All i see is the information above.I want to start using oracle plugins.
kumar_s
Charter Member
Charter Member
Posts: 5245
Joined: Thu Jun 16, 2005 11:00 pm

Post by kumar_s »

No, you should have standard Oracle client installation on the server.
Impossible doesn't mean 'it is not possible' actually means... 'NOBODY HAS DONE IT SO FAR'
dsecom
Premium Member
Premium Member
Posts: 12
Joined: Tue Jan 30, 2007 4:01 am
Location: Sandton

Post by dsecom »

So there is no way to use this one.Cant i use this one in odbc.ini?
kumar_s
Charter Member
Charter Member
Posts: 5245
Joined: Thu Jun 16, 2005 11:00 pm

Post by kumar_s »

Iam afraid not. Though the configuration that require in dsenv is the same, you can just give it a try by giving $DSHOME/./branded_odbc/lib.
The files that you will need to edit would be dsenv, .odbc.ini, uvodbc.config.
Impossible doesn't mean 'it is not possible' actually means... 'NOBODY HAS DONE IT SO FAR'
kumar_s
Charter Member
Charter Member
Posts: 5245
Joined: Thu Jun 16, 2005 11:00 pm

Post by kumar_s »

But as per Kenneth, in the following post, post1 post2it seems its possible with 32 bit client. And ODBC doesn't require it.
Impossible doesn't mean 'it is not possible' actually means... 'NOBODY HAS DONE IT SO FAR'
dsecom
Premium Member
Premium Member
Posts: 12
Joined: Tue Jan 30, 2007 4:01 am
Location: Sandton

Post by dsecom »

Thanks,
dsecom
Premium Member
Premium Member
Posts: 12
Joined: Tue Jan 30, 2007 4:01 am
Location: Sandton

Post by dsecom »

Thanks,
kumar_s
Charter Member
Charter Member
Posts: 5245
Joined: Thu Jun 16, 2005 11:00 pm

Post by kumar_s »

Is the double Thanks for my double post? :wink:
Impossible doesn't mean 'it is not possible' actually means... 'NOBODY HAS DONE IT SO FAR'
dsecom
Premium Member
Premium Member
Posts: 12
Joined: Tue Jan 30, 2007 4:01 am
Location: Sandton

Post by dsecom »

Thanks,
kumar_s
Charter Member
Charter Member
Posts: 5245
Joined: Thu Jun 16, 2005 11:00 pm

Post by kumar_s »

You got to be kidding. :shock:
Impossible doesn't mean 'it is not possible' actually means... 'NOBODY HAS DONE IT SO FAR'
dsecom
Premium Member
Premium Member
Posts: 12
Joined: Tue Jan 30, 2007 4:01 am
Location: Sandton

Post by dsecom »

My computer started hanging and all this thanks where send after that.

Can anyone who using oracle instant client 10G , tell me how to configur e and which libraries to use.This is what i have so far in my dsenv.

#ORACLE HOME
ORACLE_HOME=/home/oracle/instantclient/instantclient_10_2; export ORACLE_HOME
LD_LIBRARY_PATH=/home/oracle/instantclient/instantclient_10_2; export
LIBRARY_PATH
TNS_ADMIN=/home/oracle/instantclient/instantclient_10_2; export TNS_ADMIN

Oracle instant client is installed and this i what i can see.
$ pwd
/export/home/oracle/instantclient/instantclient_10_2
$ ls -la
total 211780
drwxr-xr-x 2 oracle dba 512 Mar 9 08:42 .
drwxr-xr-x 3 oracle dba 512 Mar 9 08:36 ..
-r--r--r-- 1 oracle dba 1600090 Dec 20 15:00 classes12.jar
-rwxr-xr-x 1 oracle dba 27904 Dec 20 14:59 genezi
-r--r--r-- 1 oracle dba 1525 Dec 20 15:01 glogin.sql
-rwxr-xr-x 1 oracle dba 20857608 Dec 20 15:00 libclntsh.so.10.1
-rwxr-xr-x 1 oracle dba 117252 Dec 20 15:01 libheteroxa10.so
-rwxr-xr-x 1 oracle dba 6135928 Dec 20 14:59 libnnz10.so
-rwxr-xr-x 1 oracle dba 1165184 Dec 20 15:00 libocci.so.10.1
-rwxr-xr-x 1 oracle dba 72433976 Dec 20 14:59 libociei.so
-rwxr-xr-x 1 oracle dba 101888 Dec 20 15:00 libocijdbc10.so
-rwxr-xr-x 1 oracle dba 1141196 Dec 20 15:01 libsqlplus.so
-rwxr-xr-x 1 oracle dba 1434256 Dec 20 15:01 libsqlplusic.so
-r--r--r-- 1 oracle dba 1545954 Dec 20 15:00 ojdbc14.jar
-rw-r--r-- 1 oracle dba 159 Mar 9 08:40 oracle_env.env
-r--r--r-- 1 oracle dba 1645114 Dec 20 15:01 orai18n.jar
-rw-r--r-- 1 oracle dba 813 Mar 9 08:42 sqlnet.log
-rwxr-xr-x 1 oracle dba 6508 Dec 20 15:01 sqlplus
-rw-r--r-- 1 oracle dba 380 Mar 9 08:49 tnsnames.ora

Please note there is also a file called oracle_env.env and contains in info:$ cat oracle_env.env
LD_LIBRARY_PATH=/home/oracle/instantclient/instantclient_10_2
export LD_LIBRARY_PATH

TNS_ADMIN=/home/oracle/instantclient/instantclient_10_2
export TNS_ADMIN


Please guide me,i am getting unable to initialise plugin.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Typical Oracle script; loads itself into LD_LIBRARY_PATH and leaves out everything else.
What it should be is

Code: Select all

LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/oracle/instantclient/instantclient_10_2; export LIBRARY_PATH 
You will just need to find where lib32 is - typically $ORACLE_HOME/lib
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Post Reply