解决办法:即就是需要空备数据,按下面执行方法执行:
1.连接数据库: db2 connect to xdhsdb
2.查看表空间状态: db2 list tablespaces show detail
3.查找状态,一般情况下有三种状态,一种是0x0000(正常状态),一种是0x0004 (处于停顿的独占),一种是0x0020(备份暂挂),
0x0004 解决办法:
db2=》select tabname from syscat.tables where tablid=50 通过锁住的id号找出那个 tabName
db2=》 quiesce tablespaces for table tabName reset 执行该命令清除状态
0x0020解决办法:
db2 backup database dbName tablespace tabSpaceName online to /dev/null
解决后,查看表空间
db2 list tablespaces show detail