Chinaunix首页 | 论坛 | 博客
  • 博客访问: 544433
  • 博文数量: 92
  • 博客积分: 980
  • 博客等级: 准尉
  • 技术积分: 1427
  • 用 户 组: 普通用户
  • 注册时间: 2011-09-25 20:34
文章分类

全部博文(92)

文章存档

2015年(3)

2014年(15)

2013年(27)

2012年(38)

2011年(9)

分类: DB2/Informix

2014-03-04 15:59:54

2. 缩小表空间
db2 ALTER TABLESPACE TBS32SGLODSRSK LOWER HIGH WATER MARK
db2 "ALTER TABLESPACE TBS32SGLODSRSK REDUCE (ALL CONTAINERS 25 G)"

db2 ALTER TABLESPACE TBS32SGLODSLJP LOWER HIGH WATER MARK
db2 "ALTER TABLESPACE TBS32SGLODSLJP REDUCE (ALL CONTAINERS 80 G)"

db2 ALTER TABLESPACE TBS32SGLODSCON LOWER HIGH WATER MARK
db2 "ALTER TABLESPACE TBS32SGLODSCON REDUCE (ALL CONTAINERS 67 G)"

db2 ALTER TABLESPACE TBS32SGLODSACT LOWER HIGH WATER MARK
db2 "ALTER TABLESPACE TBS32SGLODSACT REDUCE (ALL CONTAINERS 313 G)"

db2 ALTER TABLESPACE TBS32SGLODSCRM LOWER HIGH WATER MARK
db2 "ALTER TABLESPACE TBS32SGLODSCRM REDUCE (ALL CONTAINERS 95 G)"

db2 ALTER TABLESPACE TBS32SGLODSTRD LOWER HIGH WATER MARK
db2 "ALTER TABLESPACE TBS32SGLODSTRD REDUCE (ALL CONTAINERS 365 G)"

[db2inst1@testdb1 ~]$ db2 "ALTER TABLESPACE TBS32SGLODSTRD REDUCE (ALL CONTAINERS 365 G)"
DB21034E  The command was processed as an SQL statement because it was not a
valid Command Line Processor command.  During SQL processing it returned:
SQL20170N  There is not enough space in the table space "TBS32SGLODSTRD" for
the specified action. Reason code = "1".  SQLSTATE=57059
[db2inst1@testdb1 ~]$ db2 list tablespaces show detail|grep State|grep 0x8
 State                                = 0x80000

这里执行完 db2 ALTER TABLESPACE TBS32SGLODSTRD LOWER HIGH WATER MARK 这个命令后,需要过一段时间直到表空间状态由0x80000变成0x00000后才可以继续执行
db2 "ALTER TABLESPACE TBS32SGLODSTRD REDUCE (ALL CONTAINERS 365 G)" 这个命令。


阅读(4020) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~