home clear 64x64
en blue 200x116 de orange 200x116 info letter User
suche 36x36
Latest versionsfixlist
11.1.0.7 FixList
10.5.0.9 FixList
10.1.0.6 FixList
9.8.0.5 FixList
9.7.0.11 FixList
9.5.0.10 FixList
9.1.0.12 FixList
Have problems? - contact us.
Register for free anmeldung-x26
Contact form kontakt-x26

DB2 - Problem description

Problem IC87909 Status: Closed

ADMIN_MOVE_TABLE() MAY FAIL WITH SQL0567N IF A TABLE HAS "PUBLIC"
PRIVILEGE GRANTED

product:
DB2 FOR LUW / DB2FORLUW / A10 - DB2
Problem description:
If a table has the PUBLIC privilege granted then an 
ADMIN_MOVE_TABLE() may fail during SWAP phase with SQL0567N. 
 
For examle, suppose table T1 has the following authorization: 
 
GRANT SELECT ON TABLE "MYSCHEMA"."T1" TO  PUBLIC ; 
 
Then ADMIN_MOVE_TABLE() might fail: 
 
CALL SYSPROC.ADMIN_MOVE_TABLE( 'MYSCHEMA', 'T1', 'TABLESPACEA', 
'TABLESPACEB', 'TABLESPACEA', '', '', '', '','','SWAP' ) 
STAGING : T1xyz 
 
STATUS : REPLAY 
 
TARGET : QCM8T1 
 
VERSION : 09.07.0005 
 
ADMIN_MOVE_TABLE - SWAP step aborted. 
 
SQL0567N  The operation failed because the specified 
authorization name does not meet the identifier naming rules. 
Authorization name: "PUBLIC". 
SQLSTATE=42602
Problem Summary:
**************************************************************** 
* USERS AFFECTED:                                              * 
* ALL                                                          * 
**************************************************************** 
* PROBLEM DESCRIPTION:                                         * 
* See Problem Description above.                               * 
**************************************************************** 
* RECOMMENDATION:                                              * 
* Upgrade to DB2 Version 10.1 Fix Pack 2.                      * 
****************************************************************
Local Fix:
Revoke the SELECT privilege on the source table to the PUBLIC 
group before the SWAP, and then after the SWAP is finished 
successfully, set the privilege back from the command line 
immediately, i.e.: 
 
db2 revoke SELECT ON TABLE "MYSCHEMA"."T1" from public 
db2 "CALL SYSPROC.ADMIN_MOVE_TABLE( 'MYSCHEMA', 'T1', 
'TABLESPACEA', 'TABLESPACEB', 'TABLESPACEA', '', '', '', 
'','','SWAP' )" 
db2 grant SELECT ON TABLE "MYSCHEMA"."T1" to public
available fix packs:
DB2 Version 10.1 Fix Pack 2 for Linux, UNIX, and Windows
DB2 Version 10.1 Fix Pack 3 for Linux, UNIX, and Windows
DB2 Version 10.1 Fix Pack 4 for Linux, UNIX, and Windows
DB2 Version 10.1 Fix Pack 3a for Linux, UNIX, and Windows
DB2 Version 10.1 Fix Pack 6 for Linux, UNIX, and Windows

Solution
First fixed in Version 10.1 Fix Pack 2.
Workaround
not known / see Local fix
Timestamps
Date  - problem reported    :
Date  - problem closed      :
Date  - last modified       :
04.11.2012
10.01.2013
10.01.2013
Problem solved at the following versions (IBM BugInfos)
Problem solved according to the fixlist(s) of the following version(s)
10.1.0.2 FixList
10.5.0.2 FixList