DB2 Load造成tablespace pending
1.執行如下命令,檢視錶空間狀態:
db2 list tablespaces show detail
返回如下結果:
Tablespaces for Current Database
Tablespace ID = 0
Name = SYSCATSPACE
Type = System managed space
Contents = Any data
State = 0x0000
Detailed explanation:
Normal
Total pages = 1810
Useable pages = 1810
Used pages = 1810
Free pages = Not applicable
High water mark (pages) = Not applicable
Page size (bytes) = 4096
Extent size (pages) = 32
Prefetch size (pages) = 16
Number of containers = 1
Tablespace ID = 1
Name = TEMPSPACE1
Type = System managed space
Contents = System Temporary data
State = 0x0000
Detailed explanation:
Normal
Total pages = 1
Useable pages = 1
Used pages = 1
Free pages = Not applicable
High water mark (pages) = Not applicable
Page size (bytes) = 4096
Extent size (pages) = 32
Prefetch size (pages) = 16
Number of containers = 1
Tablespace ID = 2
Name = USERSPACE1
Type = System managed space
Contents = Any data
State = 0x0008
Detailed explanation:
Load pending
Total pages = 5682
Useable pages = 5682
Used pages = 5682
Free pages = Not applicable
High water mark (pages) = Not applicable
Page size (bytes) = 4096
Extent size (pages) = 32
Prefetch size (pages) = 16
Number of containers = 1
State change tablespace ID = 2
State change object ID = 4
2.分析以上結果
從上面可以看到,Tablespace ID= 2的 State= 0x0008,不是0x0000,不正常,其State change object ID= 4
3.查詢出使表空間不正常的表名:
db2 select tabschema, tabname, tableid from syscat.tables where tableid=4
比如返回值是db2inst1.sales
4.執行load中止:
db2 load from /dev/null of ixf terminate into db2inst1.sales
OK
nul:
[@more@]來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/9893498/viewspace-1030431/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 使用db2 load from時導致DB的tablespace置成backup pending狀態DB2
- db2 sms tablespace 不支援large tablespaceDB2
- db2 export loadDB2Export
- db2 load dumpfile for exceptionDB2Exception
- DB2 LOAD相關DB2
- db2 load 自增測試DB2
- db2 load 自增 generated always as identityDB2IDE
- Goldengate for DB2 8.2的介質為DB2 9.7做init loadGoDB2
- Oracle pending areaOracle
- DB2資料的匯入(Import) 匯出(Export)(Load)DB2ImportExport
- db2解決load後系統空間不足問題DB2
- db2資料庫load出現SQL3508N問題DB2資料庫SQL
- tablespace 大檔案,undo,temp tablespace
- 11g新特性:Pending Statistics
- 11g新特性--pending statistics
- db2解決load資料後現在SQL1477N錯誤DB2SQL
- WARNING: Subscription for node down event still pending
- Tablespace Space Script
- remap_tablespaceREM
- The SYSAUX Tablespace (40)UX
- adop -status 檢視pending ADOP sessionSession
- -Objc -all_load -force_loadOBJ
- [Oracle] 檢視tablespace的使用率(Including temp tablespace)Oracle
- Master Note for Tablespace IssuesAST
- TRANSPORT TABLESPACE總結
- Tablespace Repository (60)
- jQuery load()jQuery
- Oracle OCP(48):UNDO TABLESPACEOracle
- MySQL 5.7 InnoDB Tablespace EncryptionMySql
- Oracle Table and tablespace CompressOracle
- CREATE TABLESPACE命令詳解
- tablespace_name 為nullNull
- MySQL:關於Wating for Slave workers to free pending events等待MySql
- Xcode裡-ObjC, -all_load, -force_loadXCodeOBJ
- 理解load averages
- http_loadHTTP
- load與initialize
- DB2:ksh: db2: not found.DB2