IT猫扑网:您身边最放心的安全下载站! 最新更新|软件分类|软件专题|手机版|论坛转贴|软件发布

您当前所在位置:首页数据库Oracle → Oracle中几种读的关系

Oracle中几种读的关系

时间:2015/6/28来源:IT猫扑网作者:网管联盟我要评论(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中使用alter table来增加,删除,修改列Oracle中使用alter table来增加,删除,修改列oracle中使用SQL语句修改字段类型-oracle修oracle中使用SQL语句修改字段类型-oracle修使用低权限Oracle数据库账户得到管理员权限使用低权限Oracle数据库账户得到管理员权限Oracle对user的访问控制Oracle对user的访问控制

相关下载

人气排行 ORACLE SQL 判断字符串是否为数字的语句Oracle中使用alter table来增加,删除,修改列的语法ORACLE和SQL语法区别归纳(1)oracle grant 授权语句如何加速Oracle大批量数据处理Oracle删除表的几种方法ORACLE修改IP地址后如何能够使用Oracle 10g创建表空间和用户并指定权限