Can a single DB Connectn be used in multiple parallel jobs?

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
RekhaMallam1
Participant
Posts: 9
Joined: Wed Feb 06, 2008 12:13 am

Can a single DB Connectn be used in multiple parallel jobs?

Post by RekhaMallam1 »

Hi,
Iam using a a DB2API stage in my job.
I have created a DB Connection for DB2API stage in Parallel job.
Can the same DB Connection be used in multiple parallel jobs?

Thnk U.

When other person logs in through his id and is tring to load the db connection created by me it is not geting loaded !!why?? We even tried attaching the connection to parameter set ...But its still not working n its not even throwing error ...
Last edited by RekhaMallam1 on Tue Mar 04, 2008 2:20 am, edited 1 time in total.
DS_FocusGroup
Premium Member
Premium Member
Posts: 197
Joined: Sun Jul 15, 2007 11:45 pm
Location: Prague

Post by DS_FocusGroup »

I think so . just define it as an env variable in the administrator once and use it where ever you want. thats how we do it in TD, i think we can do the same in DB2
Raghavendra
Participant
Posts: 147
Joined: Sat Apr 30, 2005 1:23 am
Location: Bangalore,India

Post by Raghavendra »

I believe we can use it.
Raghavendra
Dare to dream and care to achieve ...
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Yes. The whole point of a Connector is so that you can have a pre-tested, re-usable component.

<amusing anecdote>
When this object was proposed marketing came up with the name "frictionless connector". The adjective was dropped when some people started referring to it as the KY Jelly stage.
</amusing anecdote>
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
RekhaMallam1
Participant
Posts: 9
Joined: Wed Feb 06, 2008 12:13 am

Re: Can a single DB Connectn be used in multiple parallel jo

Post by RekhaMallam1 »

RekhaMallam1 wrote:Hi,
Iam using a a DB2API stage in my job.
I have created a DB Connection for DB2API stage in Parallel job.
Can the same DB Connection be used in multiple parallel jobs?

Thnk U.
can multiple users use same db connection??
Can i expect the answer with an example....
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Re: Can a single DB Connectn be used in multiple parallel jo

Post by ArndW »

RekhaMallam1 wrote:can multiple users use same db connection??
Yes.
RekhaMallam1 wrote:Can i expect the answer with an example....
Expect: Yes, Receive: no
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

There's nothing to exemplify. Can multiple clients use the database? Yes. DataStage job is just another client application, as far as the database is concerned.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
jmarutz
Participant
Posts: 5
Joined: Mon Jun 26, 2006 12:42 pm

Post by jmarutz »

If you're using the 8.0 version of Parallel you can setup a Parameter set that each of your jobs can use. That paramater set will contain the same connection information that each job can use. If you're using 7.5.x then you'll want to setup job parameters that use the same connection information (User Id, Password, DSN, etc.) while every job can use this same connection information, you can't setup one connector with that information and use it in another job.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

jmarutz wrote: you can't setup one connector with that information and use it in another job.
You can indeed. That is what the (new) Connector stage is for.
A Connector can, of course, use parameterized connectivity values.
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