[困惑]使用oncheck与SMI得到不到的结果。。
检查数据库上的表时,发现使用oncheck -pt <DB>:<tabname> 跟使用SMI查询<DB>:systables 上的结果不一致。比如例子中的 表建立时间?不知道是什么产生的?:em14:
<1 DB101 :/home/info>oncheck -pt iip:crbt_chargelog
TBLspace Report for iip:iip.crbt_chargelog
Physical Address 7:775675
Creation date 04/27/2007 17:54:40
TBLspace Flags 800801 Page Locking
TBLspace use 4 bit bit-maps
Maximum row size 187
Number of special columns 0
Number of keys 1
Number of extents 181
Current serial value 114547412
First extent size 8
Next extent size 16384
Number of pages allocated 368920
Number of pages used 354268
Number of data pages 327415
Number of rows 3274142
Partition partnum 5243907
Partition lockid 5243907
<2 DB101 :/home/info>dbaccess iip -
Database selected.
> select * from systables where tabname="crbt_chargelog";
tabname crbt_chargelog
owner iip
partnum 5243907
tabid 2616
rowsize 187
ncols 18
nindexes 2
nrows 3270611
created 03/18/2008
version 171638789
tabtype T
locklevelP
npused 327062
fextsize 16
nextsize 16
flags 0
site
dbname
type_xid 0
am_id 0
pagesize 2048
<3 DB101 :/home/info>dbaccess sysmaster -
Database selected.
> select * from sysdatabases where name="iip";
name iip
partnum 5242944
owner informix
created 01/05/2004
is_logging 1
is_buff_log1
is_ansi 0
is_nls 0
flags 20483:em14:
回复 #1 liaosnet 的帖子
额.....没人回答呀..:em03: :em03:分分我可省下了哦~~~~
在IIUG上有回复~~
Oncheck -pt gives the exact date of creation of the table whereas systable
gives you the date when the table (ie schema) was last modified/altered, hence
the difference.
回复 #3 czw1413_cn 的帖子
当然发现了~~只是我想知道为什么会出现这种情况..想了很多办法都没试出这样的结果~:em16:
使用update statistics high for table crbt_chargelog并不能更新created..只能更新npused,nrows 之类的~
[ 本帖最后由 liaosnet 于 2008-4-2 09:38 编辑 ] oncheck 查看的系统保留页中的数据,smi数据来自系统表,当未做更新的时候,两者查询的结果当然不一样
页:
[1]