Oracle参数解析(shared_pool_size) 如无特殊说明数据库 shared_pool_size 该参数指定shared pool的大小 代码语言:javascript 代码运行次数:0 1.参数类型:整型 2.语法:SHARED_POOL_SIZE=integer[K|M|G] 3.默认值:见下面介绍 4.是否可修改:ALTERSYSTEM修改 5.取值范围:最小gran
(1)alter system flush shared_pool; (2)共享sql (3)dbms_shared_pool.keep('大的对象名'); (4)保留区(在shared pool中单独划分出一个空间来,只用来放大对象) 把保留区设置的足够大,可减少很多4031的错误。 代码语言:javascript 复制 select request_misses from v$shared_pool_reserved; 查询结果应该是0....
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...
如果shared pool含有数量巨大的非常小的free类型的chunk,则在扫描bucket时,shared pool latch会被锁定很长的时间,这也是Oracle 8i以前的shared pool latch争用的主要原因。而如果增加shared pool尺寸的话,仅仅是延缓shared pool latch的争用,而到最后,就会因为小的free类型的chunk的数量越来越多,争用也会越来越严重。
可以通过查询Oracle数据库的动态性能视图来获取shared pool的大小。 以下是查询shared pool大小的SQL语句: sql SHOW PARAMETER shared_pool_size; 这条命令会显示当前shared pool的大小设置。 另外,也可以通过查询V$SGASTAT视图来获取更详细的信息: sql SELECT * FROM V$SGASTAT WHERE NAME = 'shared pool'; 这...
oracle 中只可以整体设置shared pool的大小,不可以对shared pool中的内存区域分别设置大小。 shared pool中容易出问题的是free和library cache; 1.free(shared pool中空闲的内存部分) Q:何时需要从free中找chunk呢? A:在硬解析的时候。 注意:如果硬解析失败,会报一个非常经典的错误Ora-4031。
26.5 优化共享池(Shared Pool)在 Oracle数据库系统架构中,共享池由两部分组成:库高速缓存和数据字典高速缓存。其中库高速缓存存放 SQL语句的正文、编译后的代码以及最终的执行计划,而数据字典高速缓存存放与 SQL语句操作相关的数据库对象,如表、索引、列以及其他对象的定义和权限信息。对于库高速缓存而言,重用 SQL语句...
1 shared pool Oracle引入Shared Pool就是为了帮助我们实现代码的共享和重用。 Shared Pool主要由两部分组成,一部分是库缓存(Library Cahce),另一部分是数据字典缓存(Data Dictionary Cache)。Library Cache主要用于存储SQL语句、SQL语句相关的解析树、执行计划、PL/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 al...
语法: SHARED_POOL_RESERVED_SIZE = integer [K | M | G] 默认值: shared_pool_size的5% 修改需要重启数据库 取值范围:最小:5000 shared_pool 大小的一半 基本参数:否 shared_pool_size shared_pool_size 指定值的单位 可以使用K,M来指定大小,如没有则默认为byte ...