Array size is not compatible plz help.

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
stiwari
Participant
Posts: 64
Joined: Wed Apr 05, 2006 3:45 am

Array size is not compatible plz help.

Post by stiwari »

We have created a job which was loading about 5,000 records per second. But suddenly its loading only 10-12 records per sec. When we looked into the log for the job we found the following error. Can any body help us in this.

Part_Dimension_Loading_Final_3..DB2_UDB_API_1: This update action 'update or insert' is not compatible with parameter array binding. Array Size property will be set to 1.
sb_akarmarkar
Participant
Posts: 232
Joined: Fri Sep 30, 2005 4:52 am
Contact:

Post by sb_akarmarkar »

Hi,

You might have change the value of Parameter array size of transaction Handling tab in target stage. It Specify the number of rows written at a time. The default value is 1. :roll:

Thanks,
Anupam
diamondabhi
Premium Member
Premium Member
Posts: 108
Joined: Sat Feb 05, 2005 6:52 pm
Location: US

Post by diamondabhi »

For update existing or insert new rows , you need the array size to be set to 1.
Every great mistake has a halfway moment, a split second when it can be recalled and perhaps remedied.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

There is a relationship between rows-per-transaction and parameter array size that must be maintained.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
rleishman
Premium Member
Premium Member
Posts: 252
Joined: Mon Sep 19, 2005 10:28 pm
Location: Melbourne, Australia
Contact:

Post by rleishman »

I could be wrong, but 5000/s is pretty darned fast (excuse my dockyards language) for an Update Else Insert job. Is it possible that it used to be Insert Only or Update Only and has recently been changed?

My experience is with Oracle, not DB2, but I have found Array Size / Transaction Size ineffective when using "Update Else Insert" or "Insert Else Update" because the logic to perform the second command if the first fails forces it to run one transaction at a time.
Ross Leishman
nkln@you
Premium Member
Premium Member
Posts: 271
Joined: Wed Nov 17, 2004 5:15 am
Location: US

Post by nkln@you »

ray.wurlod wrote:There is a relationship between rows-per-transaction and parameter array size that must be maintained. ...
Hi,
Would you Please tell us the relationship between rows-per-transaction and parameter array size?
Aim high
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Perhaps the answers on the other active thread on this issue would be a good place to look.
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