1.问题现象:
由于存储、操作或者权限等原因,会导致DB2表空间状态异常,需要采取相应的动作;

2.问题判断:
2.1 查询表空间16进制的状态值

$db2 list tablespaces show detail | grep -i state

2.2 根据返回的16进制值,确认表空间状态

$db2tbst <tablespace state code>

2.3 表空间状态信息

Return code    Description    描述
0x0 Normal 正常
0x1 Quiesced: SHARE 静止态共享
0x2 Quiesced: UPDATE 静止态更新
0x4 Quiesced: EXCLUSIVE 静止态排它
0x8 Load pending 载入挂起
0x10 Delete pending 删除挂起
0x20 Backup pending 备份挂起
0x40 Roll forward in progress 正在回滚
0x80 Roll forward pending 回滚挂起
0x100 Restore pending 存储挂起
0x100 Recovery pending (not used) 恢复挂起
0x200 Disable pending 禁用挂起
0x400 Reorg in progress 正在重组
0x800 Backup in progress 正在备份
0x1000 Storage must be defined 存储器未被指定
0x2000 Restore in progress 正在恢复
0x4000 Offline and not accessible 表空间不可访问
0x8000 Drop pending 删除挂起
0x2000000 Storage may be defined 存储器需被指定
0x4000000 StorDef is in 'final' state 存储器终止
0x8000000 StorDef was changed prior
to rollforward 存储器被改变至回滚状态
0x10000000 DMS rebalancer is active 表空间的容器重新分布
0x20000000 TBS deletion in progress 表空间删除
0x40000000 TBS creation in progress 表空间建立

版权声明:本文为博主原创文章,未经博主允许不得转载。

DB2