DB2 crashes when LOAD used on generated field

When trying to LOAD table data where one of the rows are generated, DB2 9.1 and 9.5 on Linux and AIX will crash if the generated field uses a user defined function (fenced or unfenced).  IBM is aware of the issue, and the following APARs exist to track the problem:

  • V9.1 APAR is IZ48197
  • V9.5 APAR is IZ48200

In the mean time, the workaround is to put something like the following in a file:
alter table <table> activate not logged initially;
import from <file> of del insert into <table>;
commit;

And execute the above file with “db2 +c -tvf <filename>“.

This entry was posted in DB2 and tagged , . Bookmark the permalink.

NewPush has solutions to fit your business needs.  For more than a decade, our focus has been to take on the technical challenges that are the hardest and most time-consumming.  Our goal is to free up your resources to focus on the core activities of your business and to drive your business performance.  Please visit our main site at newpush.com for more information or call us at +1-303-423-4500.