如何删除数据库空间?
informix 如何删除数据库空间,是直接删除数据库空间文件就可以了吗?现在测试环境空间不够了,想将数据库空间压缩点,有什么方法调小呢?
多谢各位!
[ 本帖最后由 fuxiazhouxin 于 2009-9-8 15:59 编辑 ] Usage:
onspaces { -a <spacename> -p <path> -o <offset> -s <size> [-m <path> <offset>]
{ { [-Mo <mdoffset>] [-Ms <mdsize>] } | -U }
} |
{ -c { -d <DBspace> [-k <pagesize>] [-t]
-p <path> -o <offset> -s <size> [-m <path> <offset>] } |
{ -d <DBspace> [-k <pagesize>]
-p <path> -o <offset> -s <size> [-m <path> <offset>]
[-ef <first_extent_size>] [-en <next_extent_size>] } |
{ -b <BLOBspace> -g <pagesize>
-p <path> -o <offset> -s <size> [-m <path> <offset>] } |
{ -S <SBLOBspace> [-t]
-p <path> -o <offset> -s <size> [-m <path> <offset>]
[-Mo <mdoffset>] [-Ms <mdsize>] [-Df <default-list>] } |
{ -x <Extspace> -l <Location> } } |
{ -d <spacename> [-p <path> -o <offset>] [-f] [-y] } |
{ -f off [<DBspace-list>] | on [<DBspace-list>] } |
{ -m <spacename> {-p <path> -o <offset> -m <path> <offset> [-y] |
-f <filename>} } |
{ -r <spacename> [-y] } |
{ -s <spacename> -p <path> -o <offset> {-O | -D} [-y] } |
{ -ch <sbspacename> -Df <default-list> } |
{ -cl <sbspacename> } |
{ -ren <spacename> -n <newname> }
-a- Add a chunk to a DBspace, BLOBspace or SBLOBspace
-c- Create a DBspace, BLOBspace, SBLOBspace or Extspace
-d- Drop a DBspace, BLOBspace, SBLOBspace, Extspace, or chunk
-f- Change dataskip default for specified DBspaces
-m- Add mirroring to an existing DBspace, BLOBspace or SBLOBspace
-r- Turn mirroring off for a DBspace, BLOBspace or SBLOBspace
-s- Change the status of a chunk
-ch - Change default list for smart large object space
-cl - garbage collect smart large objects that are not referenced
default-list = {[,ACCESSTIME = {ON|OFF}]
[,AVG_LO_SIZE = {1 - 2097152}] }
-ren - Rename a DBspace, BLOBspace, SBLOBspace or Extspace
注意 -d 找下空间占用大的表,重建可以释放些空间.....要是仍然不够,考虑增强硬件..
回复 #2 liaosnet 的帖子
多谢,俺先搜索一下,看看onspaces-d的详细用法,谢谢!
页:
[1]