db2 connection issue in sequence

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
rafik2k
Participant
Posts: 182
Joined: Wed Nov 23, 2005 1:36 am
Location: Sydney

db2 connection issue in sequence

Post by rafik2k »

Hi All,
I have created one sequence, where independent jobs are running parallely(no dependency link).
In the sequence I will have max 100 db2 connection at a time.

Total no. of connection is set to 200 on db2 server.

But sometime I am getting following error.

POD_Elc_Load_Mst_Hist_Audit..DB2_Read_Source_Row_Count: [IBM][CLI Driver] SQL1040N The maximum number of applications is already connected to the database. SQLSTATE=57030

Unable to connect to DB2 server 'SOURCE'.



Any help will be appreciated.

Regards,
Rafiq
DSguru2B
Charter Member
Charter Member
Posts: 6854
Joined: Wed Feb 09, 2005 3:44 pm
Location: Houston, TX

Post by DSguru2B »

Just your connections might be 100, there might be other applications connected to the database at the same time. Take this error to your DBA so that he can analyze the number of open connections during the time this error occured and increase the maxappls.
Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.
rafik2k
Participant
Posts: 182
Joined: Wed Nov 23, 2005 1:36 am
Location: Sydney

Post by rafik2k »

The database is in development environment.
No other application is running at that moment other that datastage job.
DSguru2B
Charter Member
Charter Member
Posts: 6854
Joined: Wed Feb 09, 2005 3:44 pm
Location: Houston, TX

Post by DSguru2B »

How many nodes are you using. There might be parallel connections open by you within the same job for a single Enterprise stage.
Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.
rafik2k
Participant
Posts: 182
Joined: Wed Nov 23, 2005 1:36 am
Location: Sydney

Post by rafik2k »

DSguru2B wrote:How many nodes are you using. There might be parallel connections open by you within the same job for a single Enterprise stage.
In Server job, what do you mean by node?
Is that no. of client connection or no. of cpu?

For us, we are using 5 clients, and the sequence is running from one client only.
DSguru2B
Charter Member
Charter Member
Posts: 6854
Joined: Wed Feb 09, 2005 3:44 pm
Location: Houston, TX

Post by DSguru2B »

:oops: Been switching back and forth between server and px questions so much that this time the switch couldnt happen. For some reason I thought you were on px. Anywho, my bad.
Get together with your dba, and ask him to monitor the number of connections that hit the database at a particular time. If your getting this error, obviously the limit is being reached.
Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.
rafik2k
Participant
Posts: 182
Joined: Wed Nov 23, 2005 1:36 am
Location: Sydney

Post by rafik2k »

Thanks DSguru2B ,

DBA showed me the statistics and no. of connection at a time never crossed even 100.
I am guessing there might be other issue

One quick question,
Does DS open more connection internally to the database other normal connection?
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

It will open a connection per database stage in a job.
-craig

"You can never have too many knives" -- Logan Nine Fingers
DSguru2B
Charter Member
Charter Member
Posts: 6854
Joined: Wed Feb 09, 2005 3:44 pm
Location: Houston, TX

Post by DSguru2B »

More line one connection per link going to a database stage. So if you have two links going to a database stage, two connections will be request. Right :roll: :?:
Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Um... No. One stage = one connection.
-craig

"You can never have too many knives" -- Logan Nine Fingers
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Let's put it this way - it only needs to open 1 connection per stage to do its work, and that's the behaviour I've seen with the stages I use. Now, if the DB2 stage does something stoopie... [shrug]
-craig

"You can never have too many knives" -- Logan Nine Fingers
DSguru2B
Charter Member
Charter Member
Posts: 6854
Joined: Wed Feb 09, 2005 3:44 pm
Location: Houston, TX

Post by DSguru2B »

You might be right. Just a thought that occured in my mind. I needed clarification on that too. Thanks. So a connection per database stage it is :wink:
Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.
rafik2k
Participant
Posts: 182
Joined: Wed Nov 23, 2005 1:36 am
Location: Sydney

Post by rafik2k »

Then there might be other issue, right?

Is it due to datastage/database setup issue or application issue?
Post Reply