我首先排除掉 heap 0,理由如下: The data block structure for a heap, stored in heap 0, contains a pointer to the first data block that is allocated for the heap, a status indicator, the pin under which the heap is loaded, and so on. 那么剩下的就只有一种可能,就是 Oracle 把 sql 的...
A shared SQL area is always in the shared pool. Oracle allocates memory from the shared pool when a SQL statement is parsed; the size of this memory depends on the complexity of the statement. If a SQL statement requires a new shared SQL area and the entire shared pool has already been...
前面已经提到,我们要访问library cache object之前必须获得library cache lock, lock不是一个原子操作(原子操作就是在操作程中不会被打破的操作,很明显这里的lock可以被打破),Oracle为了保护这个lock,引入了library cache latch机制,也就是说在获得library cache lock之前,需要先获得library cache latch,当获得library ca...
Oracle使用两种数据结构来进行shared pool的并发控制:lock 和 pin.Lock比pin具有更高的级别. Lock在handle上获得,在pin一个对象之前,必须首先获得该handle的锁定.锁定主要有三种模式: Null,share,Exclusive.在读取访问对象时,通常需要
1 shared pool Oracle引入Shared Pool就是为了帮助我们实现代码的共享和重用。 Shared Pool主要由两部分组成,一部分是库缓存(Library Cahce),另一部分是数据字典缓存(Data Dictionary Cache)。Library Cache主要用于存储SQL语句、SQL语句相关的解析树、执行计划、PL/SQL程序块(包括匿名程序块、存储过程、包、函数等)以...
26.5 优化共享池(Shared Pool)在 Oracle数据库系统架构中,共享池由两部分组成:库高速缓存和数据字典高速缓存。其中库高速缓存存放 SQL语句的正文、编译后的代码以及最终的执行计划,而数据字典高速缓存存放与 SQL语句操作相关的数据库对象,如表、索引、列以及其他对象的定义和权限信息。对于库高速缓存而言,重用 SQL语句...
oracle 中只可以整体设置shared pool的大小,不可以对shared pool中的内存区域分别设置大小。 shared pool中容易出问题的是free和library cache; 1.free(shared pool中空闲的内存部分) Q:何时需要从free中找chunk呢? A:在硬解析的时候。 注意:如果硬解析失败,会报一个非常经典的错误Ora-4031。
http://www.eygle.com/archives/2004/10/shared_pool-5.html Oracle使用两种数据结构来进行shared pool的并发控制:lock 和 pin. Lock比pin具有更高的级别. Lock在handle上获得,在pin一个对象之前,必须首先获得该handle的锁定. 锁定主要有三种模式: Null,share,Exclusive. ...
我们可以通过查询x$ksmsp视图来考察shared pool中存在的内存片的数量不过注意:Oracle的某些版本(如:10.1.0.2)在某些平台上(如:HP-UX PA-RISC 64-bit)查询该视图可能导致过度的CPU耗用,这是由于bug引起的.我们看一下测试:初始启动数据库,x$ksmsp中存在2259个chunk SQL> select count(*) from x$ksmsp; ...
OracleSharedpool详解 http://blog.csdn.net/tianlesoftware/article/details/6560956 在上篇blog里,介绍了sharedpool的组成和一些原理,也有一些脚本,在这篇blog里,在补充几个查看SharedPool的脚本。 From:http://vsbabu.org/oracle/sect13.html 一.QuickCheck/*Formattedon2011/7/2110:41:56(QP5v5.163....