Could not load drsoci.so

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

Post Reply
udayk_2007
Participant
Posts: 72
Joined: Wed Dec 12, 2007 2:29 am

Could not load drsoci.so

Post by udayk_2007 »

Hello Friends

We are getting below error in one of our server jobs

Could not load drsoci.so

There has been no change to environment variable on unix level.

Interesting thing is ,this error is coming only in 1 job and it runs well when restarted.

This job is reading from a table and loading the Hash File. No other stages are used

Any idea what could be the issue and the resolution ?

Thanks for your help

Regards
Ulhas
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

Is the error sporadic or does it just occur sometimes? Is the machine heavily loaded when it happens?

Also, are there any more messages in the log that might give more details on the problem?
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

There must be at least one other stage (a server job must have at least two). I suspect that the other stage is a DRS stage set to connect to Oracle (hence the drsoci reference in the error message). You have to make sure that the parent directory of drsoci.so is in your shared library search list (LD_LIBRARY_PATH, or LIBPATH or SHLIB_PATH, depending on what kind of UNIX you're using).
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
udayk_2007
Participant
Posts: 72
Joined: Wed Dec 12, 2007 2:29 am

Post by udayk_2007 »

Hi

Thanks for your response

This error was not happening previously. We are seeing this issue from last 2 days

I checked the director log

The LD_LIBRARY_PATH value is going wrong when the job is failing

LD_LIBRARY_PATH=:/lib

After restarting the job,the LD_LIBRARY_PATH value goes correct and job runs fine

LD_LIBRARY_PATH=:/opt/oracle/product/11.2.0/client_1/lib

For now,I have compiled the job. Lets see if that solves the issue

Anything else i need to check for this issue ?

Additional info is ,this job is the first one in the sequencer..Once this job runs fine..no other job face the same issue

Thanks again for your help
udayk_2007
Participant
Posts: 72
Joined: Wed Dec 12, 2007 2:29 am

Post by udayk_2007 »

Hi Ray

yes...the job uses DRS stage to read from Oracle table and loads into Hash File
udayk_2007
Participant
Posts: 72
Joined: Wed Dec 12, 2007 2:29 am

Post by udayk_2007 »

We are still getting the error.

We have the jobs scheduled through DataStage Scheduler

We are observing that when this job runs from Scheduler,it fails with the above error

When it is triggered manually,it runs successfully

Any ideas ?

Thank you all for your help
asorrell
Posts: 1707
Joined: Fri Apr 04, 2003 2:00 pm
Location: Colleyville, Texas

Post by asorrell »

Check the .profile (or .bash_profile or whatever) for the scheduler. It sounds like it is over-riding the LD_LIBRARY_PATH setting. Since the DataStage job inherits the properties of the starting process, that's where you need to look.
Andy Sorrell
Certified DataStage Consultant
IBM Analytics Champion 2009 - 2020
Post Reply