GBase 8t/Informix数据库技术支持。
全部博文(38)
分类: DB2/Informix
2010-03-04 10:44:19
informix@suse10:/opt/informix/tmp/tmp> dbaccess testdb - > create table t1(id char(10),name char(20)); Table created. > create table t2(id char(1)); Table created. > load from t1.unl delimiter " " insert into t1; 10000 row(s) loaded. > create table t3(id char(1)); Table created. > load from t1.unl delimiter " " insert into t1; 10000 row(s) loaded. > create table t4(id char(1)); Table created. > load from t1.unl delimiter " " insert into t1; 10000 row(s) loaded. > create table t5(id char(1)); Table created. |
informix@suse10:/opt/informix/tmp/tmp> oncheck -pt testdb:t1 TBLspace Report for testdb:informix.t1 Physical Address 3:513 Creation date 03/03/2010 17:20:14 TBLspace Flags 801 Page Locking TBLspace use 4 bit bit-maps Maximum row size 30 Number of special columns 0 Number of keys 0 Number of extents 4 Current serial value 1 Current SERIAL8 value 1 Current BIGSERIAL value 1 Current REFID value 1 Pagesize (k) 2 First extent size 8 Next extent size 8 Number of pages allocated 512 Number of pages used 510 Number of data pages 509 Number of rows 30000 Partition partnum 3145790 Partition lockid 3145790 Extents Logical Page Physical Page Size Physical Pages 0 3:1223 8 8 8 3:1239 168 168 176 3:1415 168 168 344 3:1591 168 168 |
informix@suse10:/opt/informix/tmp/tmp> dbaccess testdb - Database selected. > delete from t1 where id < '8000'; 23343 row(s) deleted. > select count(*) from t1; (count(*)) 6657 1 row(s) retrieved. informix@suse10:/opt/informix/tmp/tmp> oncheck -pt testdb:t1 TBLspace Report for testdb:informix.t1 Physical Address 3:513 Creation date 03/03/2010 17:20:14 TBLspace Flags 801 Page Locking TBLspace use 4 bit bit-maps Maximum row size 30 Number of special columns 0 Number of keys 0 Number of extents 4 Current serial value 1 Current SERIAL8 value 1 Current BIGSERIAL value 1 Current REFID value 1 Pagesize (k) 2 First extent size 8 Next extent size 8 Number of pages allocated 512 Number of pages used 510 Number of data pages 122 Number of rows 6657 Partition partnum 3145790 Partition lockid 3145790 Extents Logical Page Physical Page Size Physical Pages 0 3:1223 8 8 8 3:1239 168 168 176 3:1415 168 168 344 3:1591 168 168 |
informix@suse10:/opt/informix/tmp/tmp> dbaccess sysadmin - Database selected. > execute function task("table repack","t1","testdb"); (expression) Succeeded: table repack testdb:informix.t1 1 row(s) retrieved. |
informix@suse10:/opt/informix/tmp/tmp> dbaccess sysadmin - Database selected. > execute function task("table shrink","t1","testdb"); (expression) Succeeded: table shrink testdb:informix.t1 1 row(s) retrieved. |
informix@suse10:/opt/informix/tmp/tmp> oncheck -pt testdb:t1 TBLspace Report for testdb:informix.t1 Physical Address 3:513 Creation date 03/03/2010 17:20:14 TBLspace Flags 801 Page Locking TBLspace use 4 bit bit-maps Maximum row size 30 Number of special columns 0 Number of keys 0 Number of extents 2 Current serial value 1 Current SERIAL8 value 1 Current BIGSERIAL value 1 Current REFID value 1 Pagesize (k) 2 First extent size 8 Next extent size 8 Number of pages allocated 114 Number of pages used 114 Number of data pages 113 Number of rows 6657 Partition partnum 3145790 Partition lockid 3145790 Extents Logical Page Physical Page Size Physical Pages 0 3:1223 8 8 8 3:1239 106 106 |
testdb:'informix'.t1 1223 8 testdb:'informix'.t2 1231 8 testdb:'informix'.t1 1239 106 FREE 1345 62 --原区段168,回收未用的62 testdb:'informix'.t3 1407 8 FREE 1415 168 --全回收 testdb:'informix'.t4 1583 8 FREE 1591 168 testdb:'informix'.t5 1759 8 FREE 1767 98233 |