Okay, I ran this reorg statement in my test environment:
db2 reorg indexes all for table TableName ALLOW NO ACCESS
Then I ran this to see if I could see the reorg running and it showed nothing:
db2pd - d databasename -reorgs
Database Partition 0 -- Database WSIOBJS -- Active -- Up 0 days 00:16:44
Table Reorg Information:
Address TbspaceID TableID PartID MasterTbs MasterTab TableName Type IndexID TempSpaceID
Table Reorg Stats:
Address TableName Start End PhaseStart MaxPhase Phase CurCount MaxCount Status Completion
Then I ran this SQL and it showed no rows while it was running:
SELECT SUBSTR(TABNAME, 1, 15) AS TAB_NAME,
SUBSTR(TABSCHEMA, 1, 15) AS TAB_SCHEMA,
REORG_PHASE,
SUBSTR(REORG_TYPE, 1, 20) AS REORG_TYPE,
REORG_STATUS,
REORG_COMPLETION,
DBPARTITIONNUM
FROM SYSIBMADM.SNAPTAB_REORG ORDER BY DBPARTITIONNUM
What am I doing wrong here? Someone please explain.
Thank you.
CC