2、listtablespaceshowdetail" Tablespaces for Current DatabaseTablespace ID = 0Name = SYSCATSPACEType = System managed spaceContents = Any dataState = 0x0000Detailed explanation:NormalTotal pages = 2519Useable pages = 2519Used pages = 2519Free pages = Not ap
3、plicableHigh water mark (pages) = Not applicablePage size (bytes) = 4096Extent size (pages) = 32Prefetch size (pages) = 32Number of containers = 1Tablespace ID = 1Name = TEMPSPACE1Type = System managed spaceContents = System Temporary dataState = 0x0000Detailed
4、 explanation:NormalTotal pages = 1Useable pages = 1Used pages = 1Free pages = Not applicableHigh water mark (pages) = Not applicablePage size (bytes) = 4096Extent size (pages) = 32Prefetch size (pages) = 32Number of containers = 1Tablespace ID = 2Name = USERSPA
5、CE1Type = System managed spaceContents = Any dataState = 0x0004 这个代码意义就是“停顿的独占”,正常状态为0x0000,非0就是有问题,都可以用下面方法解决。Detailed explanation:Quiesced: EXCLUSIVETotal pages = 687Useable pages = 687Used pages = 687Free pages = Not applicableHigh water mark (pages) = Not a
6、pplicablePage size (bytes) = 4096Extent size (pages) = 32Prefetch size (pages) = 32Number of containers = 1Number of quiescers = 1 注意下面几行Quiescer 1:Tablespace ID = 2Object ID = 50 “object id是造成死锁表的id”3.若处于0X0004“停顿的独占”,可执行 db2 => select tabname from syscat.tabl
7、es where tableid=50 通过所住的id号找出是哪个表TABNAME --------------------------------------------------------------------------------------------------------------------------------SYSINDEXEXTENSIONPARMS TEST 就是这个表 2 record(s) selected.db2 => quiesce tablespaces for table
8、 test reset 执行该命令清除错误的状态DB20000I The QUIESCE TABLESPACES command completed successfully. 4.若处于0X0020“备份暂挂”,对整个数据库进行backup后即可将其恢复正常db2"backupdbenmstablespace(userspace1)onl