自拍偷在线精品自拍偷,亚洲欧美中文日韩v在线观看不卡

詳解DB2 sqlstate 57016 原因碼 "7"錯誤

數(shù)據(jù)庫
在這里主要向大家講述的是DB2 sqlstate 57016 原因碼 "7"錯誤的詳細(xì)解析,以及對其在實際操作中的小細(xì)節(jié)的描述。

此文章主要向大家講述的是DB2 sqlstate 57016 原因碼 "7"錯誤的詳細(xì)解析,以下就是對DB2 sqlstate 57016 原因碼 "7"錯誤的主要內(nèi)容的詳細(xì)描述,望大家在瀏覽之后會對其有更深的了解。

DB2, DB2調(diào)優(yōu)sqlstate, 詳解, quot

 

對表進(jìn)行任何操作都不被允許,提示SQLSTATE=57016 SQLCODE=-668 ,原因碼 "7"的錯誤:

 

  1. SQL0668N Operation not allowed for reason code "7" on table XXX.  

首先查一下:

  1. db2 ? 57016  

SQLSTATE 57016: 因為表不活動,所以不能對其進(jìn)行訪問。

解決方法為:執(zhí)行命令:reorg table XXX;即可。

參考原文為:

  1. Operation not allowed for reason code reason-code on table table-name.   
  2. Explanation: Access to table table-name is restricted. The cause is based on the following reason codes reason-code: 7   
  3. The table is in the reorg pending state.   
  4. This can occur after an ALTER TABLE statement containing a REORG-recommended operation.7   
  5. 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 [table]通過重構(gòu)行來消除“碎片”數(shù)據(jù)并壓縮信息,對表進(jìn)行重組。

runstats on table . 收集表 的統(tǒng)計信息。

reorgchk on table all 確定是否需要對表進(jìn)行重組,對于對所有表自動執(zhí)行 runstats 很有用。

>>> reorg 和runstats 都是單個表優(yōu)化,初始化的命令:

  1. runstats on table administrator.test;   
  2. reorg table administrator.test;  

以上的相關(guān)內(nèi)容就是對DB2 sqlstate 57016 原因碼 "7"錯誤詳解的介紹,望你能有所收獲。

DB2 sqlstate 57016 原因碼

 

上述的相關(guān)內(nèi)容就是對DB2 sqlstate 57016 原因碼 "7"錯誤詳解的描述,希望會給你帶來一些幫助在此方面。

【編輯推薦】

  1. DB2備份歷史文件損壞不用怕!
  2. 使DB2數(shù)據(jù)庫備份和恢復(fù)的效率大大增加的秘訣
  3. DB2重定向恢復(fù)失敗“水到渠成”
  4. 對DB2還原經(jīng)常遇到的問題描述
  5. DB2 Online備份的操作方案“盛宴”

 

責(zé)任編輯:佚名 來源: 人民郵電出版社
相關(guān)推薦

2010-11-02 09:56:14

DB2目錄結(jié)構(gòu)

2010-11-03 16:50:23

DB2目錄結(jié)構(gòu)

2011-05-13 09:49:55

DB2數(shù)據(jù)移動

2010-09-07 08:27:17

DB2常用函數(shù)

2010-01-08 11:47:15

ibmdwDB2

2010-08-25 10:50:48

DB2數(shù)據(jù)庫

2010-11-03 16:21:18

DB2數(shù)據(jù)庫授權(quán)

2010-09-06 13:19:35

DB2 9.5

2010-08-26 09:56:57

DB2SQL SERVER互連

2010-08-20 11:28:45

DB2 -964問題

2010-08-16 15:16:53

DB2 CMO

2010-08-26 11:37:38

DB2命令

2010-11-03 15:49:32

DB2刪除表

2010-02-04 09:50:11

DB2Oracle數(shù)據(jù)

2010-02-03 09:16:01

DB2

2010-09-01 13:38:41

DB2數(shù)據(jù)復(fù)制

2009-02-26 09:34:16

性能優(yōu)化DB2數(shù)據(jù)庫

2010-09-01 11:32:50

DB2暫掛

2010-08-27 10:42:08

DB2金融應(yīng)用

2010-08-05 09:59:47

DB2常見錯誤
點贊
收藏

51CTO技術(shù)棧公眾號