DBASK-数据库管理员结构化知识体系-Structured knowledge system for DataBase Administrators

Home

systabstats

表信息

说明

每个聚簇索引、每个非聚簇索引、每个无聚簇索引的表以及每个分区在systabstats 中都有相应的一行。

名称 数据类型 说明
indid smallint • 0 = 如果是表 • 1 = 如果是所有页锁定表上的聚簇索引 • >1 = 如果是 DOL 锁定表上的非聚簇索引或聚簇索引;systabstats 并不维护关于 text 或 image 对象 (255) 的统计信息
id int 索引所属的表的 ID
activestatid smallint 保留
indexheight smallint 索引的高度;在 indid 大于 1 时保存
leafcnt int 索引中的叶页数;在 indid 大于 1 时保存
pagecnt int 表或索引中的页数
rowcnt float 表中的行数;在 indid 为 0 或 1 时保存
forwrowcnt float 转移的行数;在 indid 为 0 或 1 时保存
delrowcnt float 已删除的行数
dpagecrcnt float 需要执行以读取整个表的扩充 I/O 数目
ipagecrcnt float 需要执行以读取整个叶级非聚簇索引的扩充 I/O 数目
drowcrcnt float 需要执行以读取整个表的页 I/O 数目
oamapgcnt int 表的 OAM 页数,加上存储表信息的分配页数
extent0pgcnt int 与分配页在相同扩充上的页数
datarowsize float 数据行的平均大小
leafrowsize float DOL 锁定表的非聚簇索引和聚簇索引的叶行的平均大小
status int 内部系统的状态信息(请参见表1-26)
plljoindegree int 用于嵌套循环连接操作的并行度,plljoindegree 是表的并行扫描度,该表的systabstats 具有此字段,该表是嵌套循环连接中的内部表。
spare2 float 保留
rslastoam int 通过 reorg reclaim_space 或 reorg compact 命令访问的最后一个 OAM 页
rslastpage int 通过 reorg reclaim_space 或 reorg compact 命令访问的最后一个数据页或叶页
frlastoam int 通过 reorg forwarded_rows 命令访问的最后一个 OAM 页
frlastpage int 通过 reorg forwarded_rows 命令访问的最后一个数据页
conopt_thld smallint 并发优化阈值
plldegree int16 关于数据操作语言 (DML) 表或索引的可能的最大并行度。 值为 0 表示不存在最大值;查询处理器将配置最大并行度。
emptypgcnt int 分配给表或索引的扩充中的空白页数
spare4 float 保留
partitionid int 分区 ID (Partition ID)
spare5 int 对齐方式的备用字段
statmoddate datetime 行上一次被刷新到磁盘的时间
unusedpgcnt int 未使用的页数
oampagecnt int 对象分配映射中列出的分配页数

systabstats 表 status 列中的 status 位

十进制 十六进制 Status
1 0x1 统计信息是升级的结果(而不是执行 update statistics 的结果)

索引

  • id、indid、partitionid 上的唯一聚簇索引