Fatal error on SQLAllocHander... setting up env. using DB2

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
rajm438
Participant
Posts: 1
Joined: Wed Oct 20, 2004 9:59 pm

Fatal error on SQLAllocHander... setting up env. using DB2

Post by rajm438 »

running a px job and getting fatal error on a SQLAllocHandler.

Fatal Error: Fatal: SQLAllocHandle: Failed to allocate environment handle 'ENV'.

DB2 UDB/API stage is working find and can see sql results.

what could be a problem here... running on datastage px 7.x on AIX

:?:

-RajM438
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

From past experience I know that the DB2 API is quite similar to the ODBC API.

The SQLAllocEnv function (which SQLAllocHandle probably calls when needing an environment handle) does little more than set up a small amount of memory for managing the environment in which connection information will be managed. Typically (assuming there are no bugs in the code) it only fails if you've run out of memory and can't malloc() sufficient memory.

None of that helps you, except to suggest that you monitor usage of memory in the process that is running the job. I think you're going to need to log a call with your support provider on this one.
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