DB2 的SQLState=40001 和SQLState=55039解决方案
解决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解决方案(因为死锁或者超时,当前事务已经回滚,原因码
本文来自互联网用户投稿,文章观点仅代表作者本人,不代表本站立场,不承担相关法律责任。如若转载,请注明出处。 如若内容造成侵权/违法违规/事实不符,请点击【内容举报】进行投诉反馈!
