Database Connection limit exceeded error

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
snatarajan
Premium Member
Premium Member
Posts: 6
Joined: Mon Nov 14, 2005 7:30 pm
Contact:

Database Connection limit exceeded error

Post by snatarajan »

Hi there,

I'm facing database server connection limit error while running the parallel job. I've around 40 lookups, 1 source and 1 target. I'm using Sybase OC & ODBC stage as the relational operators and my database is Sybase IQ.

I've set the Database connection limit to 100. But the problem is coming whenever, I'm adding more lookups in to the job.

As Datastage are creating 2 connection per Sybase OC & ODBC relational operator. So in the case of 40 lookups, 1 source and 1 target ; data stage has created 84 connection in the database and it's work fine as my database connection limit is 100. But when I'm adding the lookup count to 50; it just started giving "database server connection limit error" as it's creating more than 100 connections in the database. As per the limitation from DBA; I can't request to extend the database connection limit to 100+.

Can somebody help me in resolving this issue. I've no clue first of all that why Data Stage are creating 2 connection per Sybase OC or ODBC relational connections into the database.

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

Post by chulett »

I thought this was your fourth post but it's actually your first as you've posted this in four different forums. Please don't do that, it doesn't help get you an answer faster and just causes problems maintaining a coherent conversation.

I can't help other than to strongly suggest you delete the other three posts before someone replies to them and that becomes impossible. Thank you.
-craig

"You can never have too many knives" -- Logan Nine Fingers
snatarajan
Premium Member
Premium Member
Posts: 6
Joined: Mon Nov 14, 2005 7:30 pm
Contact:

Post by snatarajan »

I deleted the other three posts. Hope it'll be fine now.

chulett wrote:I thought this was your fourth post but it's actually your first as you've posted this in four different forums. Please don't do that, it doesn't help get you an answer faster and just causes problems maintaining a coherent conversation.

I can't help other than to strongly suggest you delete the other three posts before someone replies to them and that becomes impossible. Thank you.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Yes, thanks. I'm sure someone will be along shortly with some help for your problem.
-craig

"You can never have too many knives" -- Logan Nine Fingers
ray.wurlod
Participant
Posts: 54595
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Re: Database Connection limit exceeded error

Post by ray.wurlod »

snatarajan wrote:Can somebody help me in resolving this issue. I've no clue first of all that why Data Stage are creating 2 connection per Sybase OC or ODBC relational connections into the database.

Let me guess: your configuration file specifies two processing nodes.

Each processing node does all the work you've designed, on approximately half of the rows to be processed. Therefore each node will require the full complement of connections to the database.

You need a better design (multiple consecutive jobs would be one way) or a higher limit.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Ah... that makes sense.
-craig

"You can never have too many knives" -- Logan Nine Fingers
snatarajan
Premium Member
Premium Member
Posts: 6
Joined: Mon Nov 14, 2005 7:30 pm
Contact:

Re: Database Connection limit exceeded error

Post by snatarajan »

Thanks Ray. Let me test the job with one configuration node.



ray.wurlod wrote:
snatarajan wrote:Can somebody help me in resolving this issue. I've no clue first of all that why Data Stage are creating 2 connection per Sybase OC or ODBC relational connections into the database.

Let me guess: your configuration file specifies two processing nodes.

Each processing node does all the work you've designed, on approximately half of the rows to be processed. Therefore each node will require the full complement of connections to the database.

You need a better design (multiple consecutive jobs would be one way) or a higher limit.
snatarajan
Premium Member
Premium Member
Posts: 6
Joined: Mon Nov 14, 2005 7:30 pm
Contact:

Re: Database Connection limit exceeded error

Post by snatarajan »

I've just checked the job with single node.. but it's still creating somewhat double connections.

Any clue that why it's behaving this way. Logically in one node it should create the same no of connections as the total of source+Target+Reference = 50 but it's creating around 97.


snatarajan wrote:Thanks Ray. Let me test the job with one configuration node.



ray.wurlod wrote:
snatarajan wrote:Can somebody help me in resolving this issue. I've no clue first of all that why Data Stage are creating 2 connection per Sybase OC or ODBC relational connections into the database.

Let me guess: your configuration file specifies two processing nodes.

Each processing node does all the work you've designed, on approximately half of the rows to be processed. Therefore each node will require the full complement of connections to the database.

You need a better design (multiple consecutive jobs would be one way) or a higher limit.
ray.wurlod
Participant
Posts: 54595
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Are you working with partitioned tables?
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
snatarajan
Premium Member
Premium Member
Posts: 6
Joined: Mon Nov 14, 2005 7:30 pm
Contact:

Post by snatarajan »

Hi Ray,

If you are talking about database partition. So none of my tables are partitioned.

But data stage job is using Auto option for partiotining the records at runtime.

Thanks
Javed


ray.wurlod wrote:Are you working with partitioned tables?
snatarajan
Premium Member
Premium Member
Posts: 6
Joined: Mon Nov 14, 2005 7:30 pm
Contact:

Post by snatarajan »

Hi there,

Will appreciate if somebody help me in resolving this issue.

Thanks
Javed

snatarajan wrote:Hi Ray,

If you are talking about database partition. So none of my tables are partitioned.

But data stage job is using Auto option for partiotining the records at runtime.

Thanks
Javed


ray.wurlod wrote:Are you working with partitioned tables?
ray.wurlod
Participant
Posts: 54595
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Folks here post as and when they can (in between earning a living). We're either thinking about it or have nothing further to offer. You are paying for support - get them to earn some of that money.
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