DB2中SQLSTATE=57016,SQLCODE=-668,原因碼“7”的解決

zhangsharp20發表於2014-09-26

對錶進行任何操作都不被允許,提示SQLSTATE=57016SQLCODE=-668,原因碼“7”的錯誤:SQL0688N OPERATION NOT ALLOWED FOR REASON CODE TON TABLE XXX

 

解決方法為:

 

REORG TBALE XXX

 

參考原文為:

 

Operation not allowed for reason code reason-code on table table-name.

Explanation:acess to table table-name is restrincted.the cause is based on the following reason codes reason-code:7

The table is in the reorg pending state,this can occur after an alter table statement containing a reorg-recommended operations 7

Reorganize the table using the reorg table command (note that inplace reorg table is not allowed for a table that is in the reorg pending state).

其中:

Reorg table 透過重構行來消除“碎片”資料並壓縮資訊量,對錶進行重組。

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/29802484/viewspace-1281466/,如需轉載,請註明出處,否則將追究法律責任。

相關文章