A fix is available
APAR status
Closed as program error.
Error description
The DB2 Object Comparison Tool for z/OS created ALTER TABLESPACE MAXPARTITIONS syntax for a multitable tablespace which results in a SQLCODE -650 / SQLCODEN650 error: DSNT408I SQLCODE = -650, ERROR: THE ALTER STATEMENT CANNOT BE EXECUTED, REASON 10 DSNT418I SQLSTATE = 56090 SQLSTATE RETURN CODE DSNT415I SQLERRP = DSNXIATS SQL PROCEDURE DETECTING ERROR DSNT416I SQLERRD = 535 0 0 -1 0 0 SQL DIAGNOSTIC INFORMATION DSNT416I SQLERRD = X'00000217' X'00000000' X'00000000' X'FFFFFFFF' X'00000000' X'00000000' SQL DIAGNOSTIC INFORMATION
Local fix
Problem summary
**************************************************************** * USERS AFFECTED: Users of the DB2 Object Comparison Tool for * * z/OS who compare source Partition-By-Growth * * (PBG)/Partition-By-Range (PBR) table space * * or partitioned table space with target * * segmented or simple table space. * **************************************************************** * PROBLEM DESCRIPTION: In the DB2 Object Comparison Tool, * * when comparing source PBG/PBR table * * space, or partitioned table space * * with target segmented or simple * * table space which contains multiple * * tables, Compare generates the * * following warning message in the * * report indicating changing the table * * space type could fail when the table * * space has more than one table. * * * * (W)If the segmented tablespace has * * more than one table, changing the * * segmented table space to a >table * * space type< tablespace will fail. * * * * However, Compare still ends * * successfully with return code 0, * * and generates the APPLY job. * * Running the APPLY job could result * * in an error in some cases. * * * * For example, on DB2 10, when * * comparing target multiple-table * * segmented or simple table space * * with source PBG table space, DB2 * * Object Compare generates an 'ALTER * * TABLESPACE >tsname< * * MAXPARTITIONS nn' statement * * in the APPLY job which will result * * in a SQLCODE=-650 / SQLCODEN650 * * error: * * * * DSNT408I SQLCODE = -650, * * ERROR: THE ALTER STATEMENT * * CANNOT BE EXECUTED, * * REASON 10 * **************************************************************** * RECOMMENDATION: * **************************************************************** In the DB2 Object Comparison Tool, when comparing source source PBG/PBR table space, or partitioned table space with target segmented or simple table space which contains multiple tables, Compare generates the following warning message in the report indicating changing the table space type could fail when the table space has more than one table. (W)If the segmented tablespace has more than one table, changing the segmented table space to a >table space type< tablespace will fail. However, Compare still ends successfully with return code 0, and generates the APPLY job. Running the APPLY job could result in an error in some cases. For example, on DB2 10, when comparing target multiple-table segmented or simple table space with source PBG table space, DB2 Object Compare generates an 'ALTER TABLESPACE >tsname< MAXPARTITIONS nn' statement in the APPLY job which will result in a SQLCODE=-650/SQLCODEN650 error: DSNT408I SQLCODE = -650, ERROR: THE ALTER STATEMENT CANNOT BE EXECUTED, REASON 10
Problem conclusion
Problem has been resolved. Here is the summary of the Compare behavior when comparing source PBG/PBR or partitioned table space which can only have 1 table with target simple or segmented table space which contains more than 1 table with: 1. On DB2 10 New Function Node (NFM), DB2 supports changing segmented or simple table space which has only one table to a PBG table space using ALTER. To be consistent with the DB2 behavior, In this case, compare will generate an ALTER statement in the APPLY job. However, if the target table space contains multiple tables, to prevent a run-time error during running APPLY, Compare will issue an error message ADB7156E and end with return code 8. The APPLY job will not be generated. ADB7156E The >segmented/simple< tablespace has more than one table, changing the tablespace to a >table space type< tablespace will fail. Number of tables is: >table number<. 2. For the other cases, converting segmented or simple table space to PBG/PBR or partitioned table space needs to be accomplished by a DROP/CREATE of the table space. Under these conditions, Compare will generate DROP/CREATE statements in the APPLY job to implement the changes. When the target simple or segmented table space contains multiple tables, Compare will generate a warning message ADB7157W and end with return code 4. Compare will generate the APPLY job and user could update to keep only the table that is needed. ADB7157W The >segmented/simple< tablespace has more than one table, changing the tablespace to a >table space type< tablespace may fail. Number of tables is: >table number<.
Temporary fix
Comments
APAR Information
APAR number
PM66623
Reported component name
DB2 OBJECT COMP
Reported component ID
5697G6400
Reported release
A10
Status
CLOSED PER
PE
NoPE
HIPER
NoHIPER
Special Attention
NoSpecatt
Submitted date
2012-06-12
Closed date
2012-08-21
Last modified date
2012-09-05
APAR is sysrouted FROM one or more of the following:
APAR is sysrouted TO one or more of the following:
Modules/Macros
ADB2CMF ADB2CMP ADB7000
Fix information
Fixed component name
DB2 ADMIN TOOL
Fixed component ID
568851500
Applicable component levels
RA10 PSY UK81227
UP12/08/24 P F208
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":"10.1.0","Edition":"","Line of Business":{"code":"LOB10","label":"Data and AI"}}]
Document Information
Modified date:
05 September 2012