Reading From DB2 Enterprise stage

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
sudeepmantri
Participant
Posts: 54
Joined: Wed Oct 25, 2006 11:07 pm
Location: Hyderabad

Reading From DB2 Enterprise stage

Post by sudeepmantri »

Hi,
I am reading from Db2 Enterprise stage using "USER_DEFINED" query. The stage is operating in Sequential mode.

Is there any way by which I can make it operate in parallel so that data fetch can be optimized.


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

Post by ray.wurlod »

No. SQL is always sequential unless selecting from a partitioned table. I believe (without proof) that user-defined SQL is always sequential.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
sudeepmantri
Participant
Posts: 54
Joined: Wed Oct 25, 2006 11:07 pm
Location: Hyderabad

Post by sudeepmantri »

Yes thats true.
User defined SQL is always Sequential.
But My table is partitioned.
Is there any method by which I can atleast write SQL such that it reads from the 2 partitions simultaneously??
miwinter
Participant
Posts: 396
Joined: Thu Jun 22, 2006 7:00 am
Location: England, UK

Post by miwinter »

Hi,

Yes, you can read from your table in parallel. Add in the option of Partition Table and input the fully qualified table name. This will access your table according to the partitioning defined upon it.
Mark Winter
<i>Nothing appeases a troubled mind more than <b>good</b> music</i>
Minhajuddin
Participant
Posts: 467
Joined: Tue Mar 20, 2007 6:36 am
Location: Chennai
Contact:

Post by Minhajuddin »

ray.wurlod wrote:No. SQL is always sequential unless selecting from a partitioned table. I believe (without proof) that user-defined SQL is always sequential. ...
Is this specific to DB2?

Because I have seen jobs with user-defined SQL run in Parallel mode when a Partition table property is added in case of Oracle Enterprise stage. However, the name of the partition table and the table used in user-defined SQL. I had once given a synonym in the partition table property and the actual name in the user-defined SQL and the job aborted with a lot of ugly warnings.
Minhajuddin

<a href="http://feeds.feedburner.com/~r/MyExperi ... ~6/2"><img src="http://feeds.feedburner.com/MyExperienc ... lrow.3.gif" alt="My experiences with this DLROW" border="0"></a>
Post Reply