SQL error "-246" in DB2 Insert

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
harryhome
Participant
Posts: 112
Joined: Wed Oct 18, 2006 7:10 am

SQL error "-246" in DB2 Insert

Post by harryhome »

while trying to insert 1.8 million records, in Db2 table using DB2API stage, getting below error

INCIDNT_INTAKE_INS,0: Warning: CGI_GCIF_DHCC_INCIDNT_INTAKE_INS.INCIDNT_INTAKE_INS: [IBM][CLI Driver][DB2] SQL0969N There is no message text corresponding to SQL error "-246" in the message file on this workstation. The error was returned from module "SQL08027" with original tokens "".

If I run with smaller volume, do not get this error.
yugee
Participant
Posts: 34
Joined: Fri Feb 04, 2011 5:54 pm

Post by yugee »

From the error message, it seems the multi-row fetch/insert is above the limit allowed. As per the below link, 32767 rows are allowed.
http://www-01.ibm.com/support/knowledge ... /n246.dita

Try loading 32760 rows and see if you can load then try 32770.

If there is an issue with limitation, go for the standard DB2 Enterprise Stage which is more faster and reliable for loading huge data.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Have you asked your DBA about this message?
-craig

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

Post by ray.wurlod »

What does DB2 error code SQL0969N mean?
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