- 论坛徽章:
- 0
|
在DB2 V7.x版本中,如果数据库文件原大小为22G,做过数据清理且做过reorg后为14G。
此时,使用db2 list tablespaces show detail命令查看表空间的大小,显示如下:
Tablespace ID = 2
Name = USERSPACE1
Type = Database managed space
Contents = Any data
State = 0x0000
Detailed explanation:
Normal
Total pages = 6455296
Useable pages = 6455232
Used pages = 3336096
Free pages = 3119136
High water mark (pages) = 5684224
Page size (bytes) = 4096
Extent size (pages) = 32
Prefetch size (pages) = 32
Number of containers = 2
其中High water mark (pages)的值并没有降下来,还是约22G,与Used pages的值相差比较大,这样就会造成一个问题。
现在想将14G的数据库备份文件(用backup命令备份的),通过重定向命令恢复到另外一台IBM RS/6000小型机上,建立了两个container,每个大小为10G,还是无法恢复进去,提示" SQL2059W A device full warning was encountered on device "<USERSPACE1>;". ",即表空间不足。
后来将每个container扩大到12G(超过做数据清理前的数据库备份文件大小,才恢复成功。
为此事咨询过IBM的DB2工程师,也未解决问题。 |
|