Error with SQL STATE 40003

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
dxk9
Participant
Posts: 105
Joined: Wed Aug 19, 2009 12:46 am
Location: Chennai, Tamil Nadu

Error with SQL STATE 40003

Post by dxk9 »

Hi,
When I run the server job 1st time, I get the following error:

Communication link failure. SQLSTATE=40003
SQLSetStmtAttr: Failed to set row array size statement attribute for prefetch.
[IBM][CLI Driver] CLI0106E Connection is closed. SQLSTATE=08003
SQLAllocHandle: Failed to allocate environment handle 'STMT'.

But when I run it the second time, it runs successfully.

Job Structure:
From DB2 -> Transformer -> Output sequential file

Rejects from transformer are loaded to Reject sequential file

Thanks,
dxk9
qt_ky
Premium Member
Premium Member
Posts: 2895
Joined: Wed Aug 03, 2011 6:16 am
Location: USA

Post by qt_ky »

Choose a job you love, and you will never have to work a day in your life. - Confucius
dxk9
Participant
Posts: 105
Joined: Wed Aug 19, 2009 12:46 am
Location: Chennai, Tamil Nadu

Post by dxk9 »

But any clue of why the job is running successfully the second time ? And whats the actual cause of this error.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

No, not really. Seems like something you should be taking to your official support provider.
-craig

"You can never have too many knives" -- Logan Nine Fingers
qt_ky
Premium Member
Premium Member
Posts: 2895
Joined: Wed Aug 03, 2011 6:16 am
Location: USA

Post by qt_ky »

Make sure no DBA is killing sessions.

Does it abort with that error the first time, every time/every day?

How much delay is there between starting the job and the abort?

Share the above info with support. Share what you find out.
Choose a job you love, and you will never have to work a day in your life. - Confucius
dxk9
Participant
Posts: 105
Joined: Wed Aug 19, 2009 12:46 am
Location: Chennai, Tamil Nadu

Post by dxk9 »

No DBA is killing the session.

The job is aborting the 1st time due to the error & on manual start again, its running fine.

The time gap between the start & the abort is approx 30-35min. Sometimes its even an hour. Not sure what is happening in that time frame as we don't have access to monitor the DB.

Please help.

Thanks,
dxk9
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Help yourself - involve support. People here aren't going to be able to dig into your problem and help figure it out like they would be able to do.

However, if this "first time" happens every day such that you need to re-run it every day and this is a scheduled run that happens at the exact same time every day, I would suggest an experiment. Change the start time of the job, delay it your 30 to 60 minutes. See if that changes the behaviour.
-craig

"You can never have too many knives" -- Logan Nine Fingers
qt_ky
Premium Member
Premium Member
Posts: 2895
Joined: Wed Aug 03, 2011 6:16 am
Location: USA

Post by qt_ky »

According to the link I posted above, "the connection to the database from the application has been lost and new connection should be established." Whatever is causing that is local to your environment. You should have local support like a DBA who can monitor it while it runs and see what's happening. If you're saying nobody where you work can have access to monitor, well guess what... nobody on this forum does either. You could also check with DataStage support to see if it's a known issue fixed by a patch. In your case you would be lucky if it is.
Choose a job you love, and you will never have to work a day in your life. - Confucius
Post Reply