db2解决表空间无法访问问题

1.list tablespaces show detail 查看表空间状态
2.若表空间状态处于 0X0004 (停顿的独占)
  可执行 select tabname from syscat.tables where tableid=50
  通过所住的id号找出是哪个表
  让后执行:quiesce tablespaces for table 表名 reset
  执行该命令清除错误的状态
3.若表空间状态处于 0X0020 (备份暂挂)
   对数据库进行backup后即可将其恢复正常
   db2 backup db 数据库名 tablespace(userspace1) online include logs

猜你喜欢

转载自ldzyz007.iteye.com/blog/1895834