DB2 - Problem description
Problem IT00954 | Status: Closed |
"CALL SYSPROC.ADMIN_MOVE_TABLE WITH CANCEL" IS FAILING WITH SQL2104N RC=9 AFTER LOG FULL CONDITION. | |
product: | |
DB2 FOR LUW / DB2FORLUW / A10 - DB2 | |
Problem description: | |
We can not cancel admin_move_table after log full condition. It fails with SQL2104N RC='9' as below: $ db2 "call sysproc.admin_move_table ('tabschema', 'tabname', 'target_tabname', '', 'CANCEL')" SQL2104N The ADMIN_MOVE_TABLE procedure could not be completed at this time by this user. Reason code: "9". SQLSTATE=5UA0M . db2diag.log : 2010-10-27-11.32.35.495997+000 E1501A846 LEVEL: Error PID : 454666 TID : 1111 PROC : db2fmp (C) 0 INSTANCE: db2x01 NODE : 000 EDUID : 1111 EDUNAME: db2fmp (C) 0 FUNCTION: DB2 UDB, database application extension for utili, adminotm_online_table_move, probe:17531 DATA #1 : String, 5 bytes SAPR3 DATA #2 : String, 4 bytes MARI DATA #3 : String, 6 bytes CANCEL DATA #4 : SQLCA, PD_DB2_TYPE_SQLCA, 136 bytes sqlcaid : SQLCA sqlcabc: 136 sqlcode: -2104 sqlerrml: 3 sqlerrmc: 9 sqlerrp : SQL09071 sqlerrd : (1) 0x00000000 (2) 0x00000000 (3) 0x00000000 (4) 0x00000000 (5) 0x00000000 (6) 0x00000000 sqlwarn : (1) (2) (3) (4) (5) (6) (7) (8) (9) (10) (11) sqlstate: DB2 traces will show an entry similar to: adminotm_Otm_setLock exit [rc = 0xFFFFF7C8 = -2104] The problem is easy to hit whenever ADMIN_MOVE_TABLE is interrupted for some reason. Following query will show an entry for problematic table with KEY value as LOCK . db2 "select substr(TABSCHEMA,1,20), substr(TABNAME,1,20), substr(KEY,1,20), substr(VALUE,1,60) from SYSTOOLS.ADMIN_MOVE_TABLE where TABNAME='tabname'" | |
Problem Summary: | |
**************************************************************** * USERS AFFECTED: * * Users of the admin_move_table procedure * **************************************************************** * PROBLEM DESCRIPTION: * * See Error Description * **************************************************************** * RECOMMENDATION: * * Upgrade the DB2 server version to V10.1 Fix Pack 5 or higher * **************************************************************** | |
Local Fix: | |
1. Remove any files with name - *adminotm* from db2dumo directory. Retry calling sysproc.admin_move_table . 2. If above suggestion does not work, then you can delete an entry from protocol table SYSTOOLS.ADMIN_MOVE_TABLE where key = 'LOCK' and TABNAME='tabname'. db2 "delete from SYSTOOLS.ADMIN_MOVE_TABLE where key = 'LOCK' and TABNAME='tabname'" | |
Solution | |
This problem was first fixed in v10.1 Fix Pack 5 | |
Workaround | |
not known / see Local fix | |
Timestamps | |
Date - problem reported : Date - problem closed : Date - last modified : | 10.04.2014 23.07.2015 23.07.2015 |
Problem solved at the following versions (IBM BugInfos) | |
Problem solved according to the fixlist(s) of the following version(s) | |
10.1.0.5 |