HelloDBA  
搜索WWW 搜索 HelloDBABA
首页 技术文档 培训教程 案例分析 工具、书籍 数据库新闻 网摘 Blog 收藏
Oracle技术站。提供各种数据库技术文档、培训教程、解决方案、案例、工具及周边新闻。同时,本站还提供oracle培训、优化、备份方案和技术支持。email: fuyuncat@gmail.com  MSN: fuyuncat@hotmail.com

 

        Secret of oracle logical IO: Index Scan

 

How to calculate the io of a query? This question is the most concern of dba&developer when we do performance tuning. We know the IO is affected by many factors in different operations, e.g. , high water mark, index height, extents number of a segment, cr UNDO application and so on. However, for the details of the factors in IO calculation formula, are secrets for us. Even work with 10200 event, we can not count up to the final total CRs, because this trace ignored the meta data reads. By monitoring the buffer cache, we can just guess it also reads the segment header for times, and repeat reads for number of extents. From the fixed table sys.x$kcbwh, sys.x$kcbsw, we can find the buffer cache statisitcs data, which are directly related to the io behaviors. By comparing the statistic data before&after the query, we may peek some internal information for the logic IO. However, this view is a db level statistics data, it will be affected by the backgroup processes, we may not get the truth from it. So, is there any other way to find out the secret? Yes! As we know, for each data reads, it will be pined in the cache, means if we can trace the pin behaviors, we will know IO behaviors. Read which block? For what purpose? How many times a block will be red? The switch is the undocumented parameter, "_trace_pin_time".
【全文】

 

 

最新文章

 

 

  • Secret of oracle logical IO: Index Scan
  • Secret of oracle Logical IO: Sorting
  • Secret of oracle Logical IO: Current Mode
  • Secret of oracle Logical IO: Consistent Gets
  • Secret of oracle Logical IO: Full Table Scan: Part 3
  • Secret of oracle Logical IO: Full Table Scan: Part 2
  • Secret of oracle Logical IO: Full Table Scan: Part 1
  • 事务队列等待(Tx Enqueue)深入分析——其它争用
  • 事务队列等待(Tx Enqueue)深入分析——外键约束
  • 事务队列等待(Tx Enqueue)深入分析——位图索引维护
  • 事务队列等待(Tx Enqueue)深入分析——唯一性约束
  • 事务队列等待(Tx Enqueue)深入分析——索引争用
  • 事务队列等待(Tx Enqueue)深入分析——ITL争用
  • B*Tree 索引中的数据块分裂——等待事件
  • B*Tree 索引中的数据块分裂——数据块分配
  • B*Tree 索引中的数据块分裂——分裂事务控制
  • B*Tree 索引中的数据块分裂——存储参数
  • B*Tree 索引中的数据块分裂——树的生长
  • B*Tree 索引中的数据块分裂——如何分裂
  • 10g中构建“高”索引
  • Q&A: 为什么在10053Trace文件中没有变量值?
  • 事务队列等待(Tx Enqueue)深入分析——记录锁
  • 11g新特性 ——更加灵活的分区策略
  • Row Movement 对系统的影响
  • Q&A: 表(Table)和段(Segment)之间是什么关系
  • 11g新特性 —— 索引不可见(Index Invisible)
  • TIPS: OEM锁视图中ROWID的转换
  • TIPS: 获取RAC环境中的锁等待队列
  • Full Table Scan cost formula cracking
  • CBO全表扫描代价计算公式推导
  • Q&A——多缓冲池
  • 一致性读(Consistent Reads)与buffer cache
  • ROWNUM的一个性能陷阱
  • 通过Parallel Trace分析并行过程
  • 让语句横着走————对海量数据更新的并行优化
  • Oracle IO问题解析
  • Oracle 10gR2新SQL提示——opt_param
  • Oracle SCN机制解析
  • Oracle中ROWNUM的使用技巧
  • 查询计划中的笛卡尔积
  • 如何获取长事务的运行情况
  • 如何监控索引的使用情况
  • 利用statspack来获取生成环境中top SQL及其执行计划
  • Oracle时间类型数据为0的bug
  • Oracle 11g 新特性
  • Oracle内存全面分析
  • 什么时候使用绑定变量性能反而更差
  • 查询计划中集的势(Cardinality)的计算
  • TX锁(Transaction Lock)分析
  • 利用Ultra Search创建自己的桌面文档搜索系统
  • 安装配置ultra search
  • Dual 表的性能优化
  • 关于事务对数据块的操作过程的分析和试验
  • 关于Oracle临时表数据cache的研究
  • 通过streams replication实现Oracle和SQL Server之间异构数据同步
  • 创建逻辑stand by数据库
  • 创建监控表的DML的触发器
  • RAC的load balance和failover的配置过程
  • Oracle的语句中的提示
  • Oracle中的Hash Join祥解
  • 普通物理表、临时表和TABLE(函数)的执行效率对比
  • 各种语句的不同写法
  • Oracle 10g新特性——正则表达式
  • Oracle 10g新特性——代码混淆
  • Oracle 10g新特性——选择性编译
  • Oracle10g数据库自动诊断监视工具(ADDM)使用指南
  • 利用Oracle 10g SQL优化器(STA)优化语句
  • 跳跃式索引(Skip Scan Index)的浅析
  • 配置hacmp5.2 的Rotating方式
  • Oracle XML DB之浅入浅出
  • 如何定位锁类型
  • Oracle 10G 新特性——ADDM和查询优化建议器
  • Oracle 10G 新特性——物化视图
  • Oracle 10G 新特性——表空间管理
  • Oracle 10G 新特性——闪回表
  • ORA-01555错误浅析
  • 数据段压缩(Data Segment Compression)浅析
  • Oracle 10g新特性——增强的Connect By子句
  • Oracle 10g新特性——RMAN
  • Oracle 10g新特性——SQL*Plus
  • Oracle 10g新特性——工作量自动收集
  • Oracle 10g新特性——审计
  • Oracle 10g新特性——等待接口
  •  


     

    Top

    Copyright @2005 HelloDBA.Com All reseverd.

    申明
    by fuyuncat