IT猫扑网:您身边最放心的安全下载站! 最新更新| 软件分类| 专题汇总| 手机版

您当前所在位置:IT猫扑网 > 数据库 > Oracle > Oracle中几种读的关系

Oracle中几种读的关系

时间:2015-06-28 00:00 来源:IT猫扑网|http://www.itmop.com/ 作者:网管联盟 我要评论(0)

  recursive calls: Oracle自己偷偷执行的,不去关注

  db block gets: current read,直接读buffer

  consistent gets: consistent read,读rollback segment中Undo后读

  physical reads:read from disk

  因为logical reads=current reads+consistent reads=physical reads+ non-phisical reads

  所以hit ratio= 1-physical reads/logical reads=1- physical reads(consistent gets+current reads)

  ---------------------------------------------------------------------------------------------------------------------

  以下是网上摘来的文档,注意红色的那段我认为是描述不正确的,current read不是相对buffer而言,二是相对consistent read而言

  · Recursive Calls. Number of recursive calls generated at both the user and system level.

  Oracle Database maintains tables used for internal processing. When it needs to change these tables, Oracle Database generates an internal SQL statement, which in turn generates a recursive call.

  In short, recursive calls are basically SQL performed on behalf of your SQL. So, if you had to parse the query, for example, you might have had to run some other queries to get data dictionary information. These would be recursive calls. Space management, security checks, calling PL/SQL from SQL—all incur recursive SQL calls.

  · DB Block Gets. Number of times a CURRENT block was requested.

  Current mode blocks are retrieved as they exist right now, not in a consistent read fashion.

  Normally, blocks retrieved for a query are retrieved as they existed when the query began. Current mode blocks are retrieved as they exist right now, not from a previous point in time.

  During a SELECT, you might see current mode retrievals due to reading the data dictionary to find the extent information for a table to do a full scan (because you need the &right now& information, not the consistent read). During a modification, you will access the blocks in current mode in order to write to them.

  (DB Block Gets:请求的数据块在buffer能满足的个数)

  · Consistent Gets. Number of times a consistent read was requested for a block.

  This is how many blocks you processed in &consistent read& mode. This will include counts of blocks read from the rollback segment in order to roll back a block.

  This is the mode you read blocks in with a SELECT, for example.

  Also, when you do a searched UPDATE/DELETE, you read the blocks in consistent read mode and then get the block in current mode to actually do the modification.

  (Consistent Gets:数据请求总数在回滚段Buffer中)

  · Physical Reads. Total number of data blocks read from disk. This number equals the value of &physical reads direct& plus all reads into buffer cache. (Physical Reads:实例启动后,从磁盘读到Buffer Cache数据块数量)

  · Sorts (disk). Number of sort operations that required at least one disk write. Sorts that require I/O to disk are quite resource intensive. Try increasing the size of the initialization parameter SORT_AREA_SIZE.

关键词标签:Oracle

相关阅读 误删Oracle数据库实例的控制文件 为UNIX服务器设置Oracle全文检索 Oracle数据库如何查找删除重复的SQL语句 Oracle导入导出数据库的语法 oracle数据库安装预环境一键处理脚本 oracle常用DBA命令

文章评论
发表评论

热门文章 利用Oracle分区表来减少磁盘I/O冲突 利用Oracle分区表来减少磁盘I/O冲突 Oracle数据库优化之数据库磁盘I/O Oracle数据库优化之数据库磁盘I/O 讲解Oracle复制技术的分布式系统同步应用 讲解Oracle复制技术的分布式系统同步应用 刷新Oracle缓存 刷新Oracle缓存 oracle 8080与TOMCAT默认端口冲突 oracle 8080与TOMCAT默认端口冲突 DATAGUARD的日志应用服务 DATAGUARD的日志应用服务

相关下载

人气排行 oracle中使用SQL语句修改字段类型-oracle修改SQL语句案例 Oracle中使用alter table来增加,删除,修改列的语法 ORACLE SQL 判断字符串是否为数字的语句 ORACLE和SQL语法区别归纳(1) oracle grant 授权语句 ORACLE修改IP地址后如何能够使用 如何加速Oracle大批量数据处理 Oracle删除表的几种方法 Oracle 10g创建表空间和用户并指定权限 Oracle连接数太多报错-ORA-12516错误 Oracle字符串截取 连接Oracle数据库的Hibernate配置文件