A fix is available
APAR status
Closed as program error.
Error description
Executing a CM Batch or Compare job which issues both an ALTER MAXPARTITIONS on a tablespace and ALTER ADD RESTRICT ON DROP on a table results in the following warning and error: DSNT404I SQLCODE = 610, WARNING: A CREATE/ALTER ON OBJECT >db-name.ts-name< HAS PLACED OBJECT IN ADVISORY REORG PENDING ADB5044I *** INPUT STATEMENT: ALTER TABLE >schema.tb-name< ADD RESTRICT ON DROP ; DSNT408I SQLCODE = -20385, ERROR: THE STATEMENT CANNOT BE PROCESSED BECAUSE THERE ARE PENDING DEFINITION CHANGES FOR OBJECT >db-name.ts-name< OF TYPE TABLESPACE (REASON 2) With this APAR applied, the REORG statement is generated before the ALTER TABLE ADD RESTRICT ON DROP statement, and the issue is resolved.
Local fix
N/A
Problem summary
**************************************************************** * USERS AFFECTED: Users of DB2 Object Comparison Tool * * and Users of DB2 Administration Tool * * for z/OS who use CM Batch. * **************************************************************** * PROBLEM DESCRIPTION: When executing a WSL that requires * * both a tablespace reorg and an alter * * of a table in that tablespace, the * * alter will fail with SQLCODE = * * -20385 / SQLCODEN20385. * **************************************************************** * RECOMMENDATION: * **************************************************************** If a change includes a statement that requires a tablespace reorg, and an alter of a table in that tablespace, the following warning and error message may occur when executing the WSL: ADB5044I *** INPUT STATEMENT: ALTER TABLESPACE >database.tablespace< MAXPARTITIONS 8 ; sqlwarning on ALTER command, EXECUTE function DSNT404I SQLCODE = 610, WARNING: A CREATE/ALTER ON OBJECT >database.tablespace< HAS PLACED OBJECT IN ADVISORY REORG PENDING ADB5044I *** INPUT STATEMENT: ALTER TABLE >schema.owner< ADD RESTRICT ON DROP ; sqlerror on ALTER command, EXECUTE function DSNT408I SQLCODE = -20385, ERROR: THE STATEMENT CANNOT BE PROCESSED BECAUSE THERE ARE PENDING DEFINITION CHANGES FOR OBJECT >database.tablespace< OF TYPE TABLESPACE (REASON 2) With this APAR applied, the REORG statement is generated before the ALTER TABLE ADD RESTRICT ON DROP statement.
Problem conclusion
Problem has been resolved.
Temporary fix
Comments
APAR Information
APAR number
PI92136
Reported component name
DB2 ADMIN TOOL
Reported component ID
568851500
Reported release
B20
Status
CLOSED PER
PE
NoPE
HIPER
NoHIPER
Special Attention
NoSpecatt / Xsystem
Submitted date
2018-01-08
Closed date
2018-03-02
Last modified date
2018-04-03
APAR is sysrouted FROM one or more of the following:
APAR is sysrouted TO one or more of the following:
UI54229 UI54230
Modules/Macros
ADB2CMT
Fix information
Fixed component name
DB2 ADMIN TOOL
Fixed component ID
568851500
Applicable component levels
Fix is available
Select the PTF appropriate for your component level. You will be required to sign in. Distribution on physical media is not available in all countries.
[{"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SSCVQTD","label":"IBM Db2 Administration Tool for z\/OS"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"11.2.0","Edition":"","Line of Business":{"code":"LOB10","label":"Data and AI"}}]
Document Information
Modified date:
03 April 2018