Oracle parallel job stuck

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

juliyas
Participant
Posts: 14
Joined: Wed Feb 09, 2005 10:32 am

Oracle parallel job stuck

Post by juliyas »

Hi all,

I try to query a very big oracle table (~50M records),
When I use sequential access the job works fine , but very slow.
When I try to use parallel access the job just hangs with no explenation.

I tried to add some APT env variables for debug but still I get ho clue for the reason the job does not progress.
The table is indexed and partitioned so the same sql works ok in sqlplus
My SQL is:

Code: Select all

SELECT CUSTOMER_ID, AGREEMENT_ID,  CYCLE_MONTH,
to_char(LAST_EVENT_DATE,'YYYYMMDDHH24MISS') LAST_EVENT_DATE,
(ORIG_UPLINK_VOLUME+ORIG_DOWNLINK_VOLUME) VOLUME
FROM  #P_OU_OWNER#.OU_PERFORMANCE  
WHERE ROLE='RT' AND CYCLE_MONTH in (#P_CYCLE_MONTH#);

Any idea why it does not work or how can I check it ?

Juliya
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

Just for reference, how long does this SELECT take when done from SQLPlus? Also, can you not get your DBA to trace this select when issued from DataStage to see what is happening? Also, if you do a "view data" in the designer, does it correctly resolve all your parameters? Does the "view data" work if you remove the WHERE clause?
juliyas
Participant
Posts: 14
Joined: Wed Feb 09, 2005 10:32 am

Post by juliyas »

I removed the where clause , but view data doesn't work.
The parameters ok.
but i will try to check DBA trace.

thanks
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

I you remove the WHERE clause then the VIEW should work; what is happening in your case?
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

It is a partitioned table? If so, have you specified the Partition Table property in the Oracle Enterprise stage?
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Amos.Rosmarin
Premium Member
Premium Member
Posts: 385
Joined: Tue Oct 07, 2003 4:55 am

Post by Amos.Rosmarin »

Hi,

Just a question on 'partition table'

From things I read in this forum the 'partition table' property is not related to the actual partitioning of the table, it is an internal DS property.
In this case the pertition table property should be equal to the owner.table name.

Am I right ?
juliyas
Participant
Posts: 14
Joined: Wed Feb 09, 2005 10:32 am

Post by juliyas »

ray.wurlod wrote:It is a partitioned table? If so, have you specified the Partition Table property in the Oracle Enterprise stage?
Yes, it is a partition table.
I didn't understand if it is a partitioned table i can't define partion in the oracle stage?
Jay
Participant
Posts: 105
Joined: Tue Nov 11, 2003 8:28 pm

Post by Jay »

Need more info. Can you please copy paste the error message when you try to view data?

Thanks
Jay
juliyas
Participant
Posts: 14
Joined: Wed Feb 09, 2005 10:32 am

Post by juliyas »

Jay wrote:Need more info. Can you please copy paste the error message when you try to view data?

Thanks
Jay
It is very big table, i think this a problem.
When i try to open it it is stuck a long time.
Jay
Participant
Posts: 105
Joined: Tue Nov 11, 2003 8:28 pm

Post by Jay »

Try to view 10 rows or 1 row at least...
juliyas
Participant
Posts: 14
Joined: Wed Feb 09, 2005 10:32 am

Post by juliyas »

Jay wrote:Try to view 10 rows or 1 row at least...
View of 10 rows successfully opened
roy
Participant
Posts: 2598
Joined: Wed Jul 30, 2003 2:05 am
Location: Israel

Post by roy »

Hi,
Do you have the $DS_ENABLE_RESERVED_CHAR_CONVERT set to true in your job properties?
Roy R.
Time is money but when you don't have money time is all you can afford.

Search before posting:)

Join the DataStagers team effort at:
http://www.worldcommunitygrid.org
Image
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Are there indexes on ROLE and CYCLE_MONTH?
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
juliyas
Participant
Posts: 14
Joined: Wed Feb 09, 2005 10:32 am

Post by juliyas »

roy wrote:Hi,
Do you have the $DS_ENABLE_RESERVED_CHAR_CONVERT set to true in your job properties?
Where/How i can found this flag?
juliyas
Participant
Posts: 14
Joined: Wed Feb 09, 2005 10:32 am

Post by juliyas »

ray.wurlod wrote:Are there indexes on ROLE and CYCLE_MONTH?
I have index on ROLE and oracle partition on CYCLE_MONTH.
Post Reply