[bbk2341] 第46集 - Chapter 09-Optimizing Sore Perations(01)

本文介绍了在Oracle 10g及11g版本中收集表和索引统计数据的方法,包括自动和手动方式,并详细解释了如何查看表统计信息,如行数、块数等,以及索引统计信息,如高度、叶子块数量等。

When to Gather Statistics

在10g、11g里面,搜集statistics信息分自动和手工方式两种.

Table Statistics

  • Number of rows
  • Number of blocks and empty blocks
  • Average available free space
  • Number of chained or migrated rows
  • Average row length
  • Last analyze date and smaple size
  • Data dictionary view:dba_tables

查看表的统计信息,主要依据数据字典dba_tables

Index Statistics

  • Index level(height)
  • Number of leaf blocks and distinct keys
  • Average number of leaf blocks per key
  • Average number of data blocks per key
  • Number of index entries
  • Clustering factor:反应了表的排序程度.
  • Data dictionary view:dba_indexes

Index Tuning Wizard

 

转载于:https://www.cnblogs.com/arcer/archive/2013/05/07/3064569.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值