解决55039故障(SQL0290N 不允许访问表空间,SQLState 55039)
1、db2 list tablespaces show detail;
Tablespace ID = 2
Name = USERSPACE1
Type = Database managed space
Contents = All permanent data. Large table space.
State = 0x0004
Detailed explanation:
Quiesced: EXCLUSIVE
Total pages = 77824
Number of quiescers = 1
Quiescer 1:
Tablespace ID = 2
Object ID = 180
2、--找到有问题的对象TabName例如(USERINFO)
--select * from SYSCAT.TABLES WHERE tableID='有问题的对象ID'
select * from SYSCAT.TABLES WHERE tableID='267'
--3、db2 QUiesce tablespaces for table 对象名字 reset;
db2 QUiesce tablespaces for table USERINFO reset;
模拟55039故障
db2 QUiesce tablespaces for table USERINFO Exclusive;
SQL0911N解决方案(因为死锁或者超时,当前事务已经回滚,原因码
1、db2 list tablespaces show detail;
Tablespace ID = 2
Name = USERSPACE1
Type = Database managed space
Contents = All permanent data. Large table space.
State = 0x0004
Detailed explanation:
Quiesced: EXCLUSIVE
Total pages = 77824
Number of quiescers = 1
Quiescer 1:
Tablespace ID = 2
Object ID = 180
2、--找到有问题的对象TabName例如(USERINFO)
--select * from SYSCAT.TABLES WHERE tableID='有问题的对象ID'
select * from SYSCAT.TABLES WHERE tableID='267'
--3、db2 QUiesce tablespaces for table 对象名字 reset;
db2 QUiesce tablespaces for table USERINFO reset;
模拟55039故障
db2 QUiesce tablespaces for table USERINFO Exclusive;
SQL0911N解决方案(因为死锁或者超时,当前事务已经回滚,原因码