Surrogate Key Generator using Oracle 11g

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
jweir
Participant
Posts: 134
Joined: Wed Aug 04, 2010 12:31 pm

Surrogate Key Generator using Oracle 11g

Post by jweir »

Hi all,

I am using the Surrogate Key Generator stage in many of my jobs using an Oracle database sequence with client version 11g. However, when I run, it throws an error complaining about 10g client libraries not installed.

Is there a way to default the stage to use 11g? Or can it only use 10g?

Thanks in advance.
Jweir

--- If strength were all, tiger would not fear scorpion.
rkashyap
Premium Member
Premium Member
Posts: 532
Joined: Fri Dec 02, 2011 12:02 pm
Location: Richmond VA

Post by rkashyap »

What is the exact error/warning message? Are you getting any messages in other 'Oracle' stages?

What are values of following Oracle DB Configuration in dsenv ... ORACLE_HOME, TNS_ADMIN, PATH, LD_LIBRARY_PATH?
jweir
Participant
Posts: 134
Joined: Wed Aug 04, 2010 12:31 pm

Post by jweir »

The error is:

Code: Select all

SK_Generator,2: Library orchoracle could not be loaded; Could not load "orchoracle": libclntsh.so.10.1: cannot open shared object file: No such file or directory.
I was getting same error for Oracle Connector stages when using 10g version, but when specified to use 11g, it worked.

Not sure yet on dsenv settings...
Jweir

--- If strength were all, tiger would not fear scorpion.
jweir
Participant
Posts: 134
Joined: Wed Aug 04, 2010 12:31 pm

Post by jweir »

ORACLE_HOME=/usr/lib/oracle/11.2/client64

TNS_ADMIN=/usr/lib/oracle/11.2/client64/lib

LD_LIBRARY_PATH=:/usr/lib/oracle/11.2/client64/lib
Jweir

--- If strength were all, tiger would not fear scorpion.
rkashyap
Premium Member
Premium Member
Posts: 532
Joined: Fri Dec 02, 2011 12:02 pm
Location: Richmond VA

Post by rkashyap »

Are these values from DS job log / from dsenv / echoed in a Unix shell?

dsenv is located in DSHOME (usually /opt/IBM/InformationServer/Server/DSEngine). Path of DSHOME is also in " /.dshome"'s value. Share the section where Oracle environment variables values are being set in dsenv.

Also share values of these variables from the 'failing' DataStage job.


Environment variable CC_ORACLECONNECTOR_DEFAULT_CONNECTION_VERSION can be added to change default Oracle client version in the Oracle connector stage.
jweir
Participant
Posts: 134
Joined: Wed Aug 04, 2010 12:31 pm

Post by jweir »

These were taken from the failing job from the Director using 'Full Report'.

And the environment variable you mentioned, will it only change the version on the Oracle Connector stage? Because my problem lies within the Surrogate Key Gen stage.
Jweir

--- If strength were all, tiger would not fear scorpion.
priyadarshikunal
Premium Member
Premium Member
Posts: 1735
Joined: Thu Mar 01, 2007 5:44 am
Location: Troy, MI

Post by priyadarshikunal »

is it a new installation? Did SKG or oracle connector ever work on the system?
Priyadarshi Kunal

Genius may have its limitations, but stupidity is not thus handicapped. :wink:
jweir
Participant
Posts: 134
Joined: Wed Aug 04, 2010 12:31 pm

Post by jweir »

I don't believe its a new install but I believe the did perform some patch work recently. Not sure if the SK stage ever worked on this box before, this is the first time we are using it in the environment.
Jweir

--- If strength were all, tiger would not fear scorpion.
jweir
Participant
Posts: 134
Joined: Wed Aug 04, 2010 12:31 pm

Post by jweir »

I don't see anywhere I can specify using a client version in the SK stage. So I don't know if I am using 10g or 11g but it seems like it defaults to 10g.
Jweir

--- If strength were all, tiger would not fear scorpion.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

This issue looks familiar, perhaps this discussion might shed some light on the subject. Several people, myself included, have solved problems like this by using a symbolic link from where it is looking to where it actually lives.
-craig

"You can never have too many knives" -- Logan Nine Fingers
jweir
Participant
Posts: 134
Joined: Wed Aug 04, 2010 12:31 pm

Post by jweir »

Thanks chulett.

The admin got back to me and said the Oracle client library is not a full install and is missing some of the soft links.

Will update after fixes have been made and tests have been completed.
Jweir

--- If strength were all, tiger would not fear scorpion.
jweir
Participant
Posts: 134
Joined: Wed Aug 04, 2010 12:31 pm

Post by jweir »

Admin created soft links and this is no longer an issue. Said they will get to a full install later.
Jweir

--- If strength were all, tiger would not fear scorpion.
Post Reply