`
iamlotus
  • 浏览: 108522 次
  • 性别: Icon_minigender_1
  • 来自: 上海
文章分类
社区版块
存档分类
最新评论

Oracle中几种读的关系

阅读更多

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.

0
1
分享到:
评论

相关推荐

    oracle10读书笔记

    Oracle服务器是一种大型的对象关系型数据库管理系统(ORDBMS),提供了开放的体系结构和一系列强大的管理工具,如OEM、DBCA和SQLPlus等。Oracle服务器主要由以下几个组件构成: 1. **Oracle实例**: - 实例由内存...

    oracle数据库解密工具

    Oracle数据库是一种广泛使用的大型关系型数据库管理系统,其安全性与数据加密功能强大,为保护敏感信息提供了坚实的基础。然而,有时为了进行数据库维护、故障排查或审计需求,开发人员可能需要查看存储过程的源代码...

    Oracle Concepts 10g R2 pdf 中英文对照版

    - **一致性读**:Oracle提供了一种称为“一致性读”的特性,使得用户可以在不阻塞其他事务的情况下读取数据。 #### 14. 可管理性 - **自动管理**:Oracle通过自动诊断资源管理器(ADDM)等工具提供了自动化管理的...

    oracle 10g数据库java开发

    Oracle 10g是一款功能强大的关系型数据库管理系统,而Java作为一种多平台、面向对象的编程语言,因其跨平台性和安全性,常用于构建数据库驱动的应用程序。 在Oracle 10g中进行Java开发,主要涉及以下几个核心知识点...

    Oracle 11G- SQL

    SQL(Structured Query Language)是一种用于管理和操作关系型数据库的标准语言。在 Oracle 11G 中,SQL 被广泛应用于数据查询、更新、删除等操作中。 - **数据定义语言 (DDL)**:DDL 包括 CREATE、ALTER 和 DROP ...

    oracle--lock.zip_oracle

    Oracle支持多种类型的表锁,包括以下几种: 1. **共享锁(Share Locks)**:也称为读锁,允许一个或多个事务读取表中的数据,但不允许其他事务修改这些数据。 2. **排他锁(Exclusive Locks)**:也称为写锁,允许...

    oracle 数据库导出excel工具

    Oracle数据库是一种广泛使用的大型关系型数据库管理系统,它提供了丰富的功能来存储、管理和处理大量结构化数据。在实际工作中,有时我们需要将这些数据模型和表结构导出为更易读的格式,例如Excel,以便进行数据...

    鸿鹄论坛_oracle四大宝典之1:Oracle Sql基础.

    7. **定义列别名**:可以通过`AS`关键字为查询结果中的列定义别名,使结果更易读。 8. **连字运算符**:可以使用`||`将两个或多个字符串连接在一起。 9. **文字字符串**:在SQL中,通常使用单引号`' '`来定义文字...

    oracle数据库.zip

    Oracle数据库是一种广泛应用于企业级应用的大型关系型数据库管理系统(RDBMS),由甲骨文公司(Oracle Corporation)开发和维护。它以其高效性、稳定性、可扩展性和安全性著称,是许多企业和组织的核心数据存储解决...

    oracle死锁故障分析和诊断解决

    为了准确地识别和定位死锁问题,可以采取以下几种方法: 1. **使用Oracle提供的V$视图**: - **V$SESSION**:包含当前所有会话的信息。 - **V$LOCK**:显示当前锁定的对象。 - **V$SQLTEXT**:提供SQL语句文本。...

    Oracle SQL高级编程(资深Oracle专家力作,OakTable团队推荐)--随书源代码

    她是Oracle ACE,也是OakTable(Oracle社区中著名的“Oracle科学家”的非正式组织)的成员,经常在技术会议上演讲。她的著作还包括 Expert Oracle Practices和Beginning Oracle SQL,博客主页是karenmorton....

    列模板技术在Oracle中的应用与实现.pdf

    列模板技术在Oracle数据库中的实现通常涉及以下几个步骤: 1. **定义列模板**:在PLSQL Developer中,用户可以创建新的列模板,定义列的显示格式、计算规则、过滤条件等属性。 2. **应用列模板**:将定义好的模板...

    oracle学习文档 笔记 全面 深刻 详细 通俗易懂 doc word格式 清晰 连接字符串

    Oracle中权限主要分为两种,系统权限和实体权限。  系统权限:系统规定用户使用数据库的权限。(系统权限是对用户而言)。  DBA: 拥有全部特权,是系统最高权限,只有DBA才可以创建数据库结构。  RESOURCE:...

    Oracle 实用教程(全面实用)

    - **GET 将命令文件读到缓冲区**:该命令用于从文件中读取SQL命令并将其加载到SQL\*Plus缓冲区中。 - **SPOOL 将信息记录到文件中**:使用此命令可以将SQL\*Plus的输出重定向到指定的文件中。 - **再运行当前缓冲...

    oracle讲义

    Oracle数据库系统是一种强大的大型数据库管理系统,它属于关系型数据库管理系统(RDBMS),但在更具体的分类中,Oracle属于对象关系数据库管理系统(ORDBMS),这意味着它不仅支持传统的表格数据,还能够处理更复杂...

    酒店前台管理系统 vb.net+oracle

    2. **Oracle数据库**:Oracle是企业级的关系型数据库管理系统,以其稳定性、安全性、高性能著称。在酒店管理系统中,Oracle用于存储客户信息、房间状态、预订记录等大量数据,提供高效的数据查询和事务处理能力。 3...

Global site tag (gtag.js) - Google Analytics