Our existing process to move data from one region to another using the LOAD utility stopped working on tables with generated by default as identity key column after we upgraded to Db2 12. The new LOAD enhancement to maintain MAXASSIGNEDVAL is causing issues and we need an option to override or disable this new feature at the LOAD utility level.
Db2 12 introduced the LOAD utility to maintain MAXASSIGNEDVAL for user-provided input, and this new feature is enforced with LOAD REPLACE and LOAD RESUME YES. Prior to Db2 12, LOAD utility did not update MAXASSIGNEDVAL.
This is how it works now under Db2 V12:
If input file has identity column value higher than MAXASSIGNEDVAL in the Catalog, LOAD updates MAXASSIGNEDVAL with the higher value.
If input file has identity column value lower than MAXASSIGNEDVAL in the CATALOG, LOAD does not update MAXASSIGNEDVAL.
This design work fine with LOAD REPLACE as data gets replaced with the input file, but it does not always work with LOAD RESUME YES when input file gets added to the existing data.
With LOAD RESUME YES, MAXASSIGNEDVAL does not necessarily represent the maximum value. Table can potentially have identity key column value higher than the input file and MAXASSIGNEDVAL in the Catalog.
When LOAD utility updates MAXASSIGNEDVAL based on what's in the input file that shows higher than MAXASSIGNEDVA catalog but table actually has higher value than the input file , it will create -803 errors.
To mitigate this issue, we need an option to disable or override the new behavior with LOAD utility. Thank you.
How should it work?
1)Proposed solution is to provide an option to override LOAD maintaining MAXASSIGNEDVAL.
2)This solution will give users an option to either use the new feature or disable the new feature based on their data requirement at the table level.
3)As a work around, SI team is coordinating with the DBA team to alter START WITH value.
|Client Name||Lori Choi|
|IBM's success depends on gathering feedback from customers like yourself. Aha Ideas Portal is the third party tool through which IBM Offering Managers gather feedback from customers such as yourself.|
|IBM is a global organization with business processes, management structures, technical systems and service provider networks that cross borders. As such, the information collected through Aha Ideas Portal (Customer Name, Customer Email Address) will be stored by them in the United States, and handled only as per IBM's instructions and policies. Your data (Name and Email Address) will NOT be shared with other IBM customers.|
|In order to safeguard your information in Aha, do not leave your workstation unattended while using this application, log off after using it, and print only if necessary. If you need to make a hardcopy, remember to pick up the print-out immediately, keep it under lock, and destroy it immediately when no longer needed.|
|NOTICE TO EU RESIDENTS: per EU Data Protection Policy, if you wish to remove your personal information from the IBM ideas portal, please login to the ideas portal using your previously registered information then change your email to "email@example.com" and first name to "anonymous" and last name to "anonymous". This will ensure that IBM will not send any emails to you about all idea submissions|