>데이터 베이스 >MySQL 튜토리얼 >Oracle体系结构及备份(六)sga-shared_pool

Oracle体系结构及备份(六)sga-shared_pool

WBOY
WBOY원래의
2016-06-07 15:09:011009검색

一 什么是shared_pool The shared pool portion of the SGA contains the library cache, the dictionary cache, the result cache, buffers for parallel execution messages, and control structures. This div includes the following topics: Library Ca

一 什么是shared_pool

 

 

        The shared pool portion of the SGA contains the library cache, the dictionary cache, the result cache, buffers for parallel execution messages, and control structures.

 

        This div includes the following topics:

 

        Library Cache

        The library cache includes the shared SQL areas, private SQL areas (in the case of a shared server configuration), PL/SQL procedures and packages, and control structures such as locks and library cache handles.

 

        Shared SQL areas are accessible to all users, so the library cache is contained in the shared pool within the SGA.

 

 

        Dictionary Cache

        The data dictionary is a collection of database tables and views containing reference information about the database, its structures, and its users. Oracle Database accesses the data dictionary frequently during SQL statement parsing. This access is essential to the continuing operation of Oracle Database.

 

        The data dictionary is accessed so often by Oracle Database that two special locations in memory are designated to hold dictionary data. One area is called the data dictionary cache, also known as the row cache because it holds data as rows instead of buffers (which hold entire blocks of data). The other area in memory to hold dictionary data is the library cache. All Oracle Database user processes share these two caches for access to data dictionary information.

 

 

        Result Cache

        The result cache is composed of the SQL query result cache and PL/SQL function result cache, which share the same infrastructure.

 

        The DBMS_RESULT_CACHE package provides administration subprograms, which, for example, flush all cached results and turn result-caching on or off systemwide. The dynamic performance views V$RESULT_CACHE_* allow the developer and DBA to determine, for example, the cache-hit success for a certain SQL query or PL/SQL function.

 

        Similar to the result cache, the client result cache also caches results, except that the caching is done on the client side.

 

        用于存储:

        最近执行的SQL语句

        最近使用的数据定义

 

        由三个与性能相关的部分组成

        库缓存

        数据字典缓存

        结果缓存

 

        由参数SHARED_POOL_SIZE决定大小。

 

 

 

二 操作示例

 

SQL> show parameter shared_pool_size;

NAME				     TYPE	 VALUE
------------------------------------ ----------- ------------------------------
shared_pool_size		     big integer 12M
SQL> show parameter sga_target;

NAME				     TYPE	 VALUE
------------------------------------ ----------- ------------------------------
sga_target			     big integer 160M


三 总结

        1. 用于存储:最近执行的SQL语句、最近使用的数据定义;

        2.由三个与性能相关的部分组成:库缓存、数据字典缓存、结果缓存;

        3.可以通过参数shared_pool_size查看共享池的大小。

 



<span><span>我的邮箱</span></span><span>:</span>wgbno27@163.com <span> <span>新浪微博</span></span><span>:</span>@Wentasy27
  <span>微信公众平台</span>:JustOracle(微信号:justoracle)
 <span>IT交流群</span>:336882565(加群时验证 From CSDN XXX)
 <span>Oracle交流讨论组</span>:https://groups.google.com/d/forum/justoracle
  <span><strong>By Larry Wen</strong></span>


Oracle体系结构及备份(六)sga-shared_pool Oracle体系结构及备份(六)sga-shared_pool   Oracle体系结构及备份(六)sga-shared_pool
@Wentasy
성명:
본 글의 내용은 네티즌들의 자발적인 기여로 작성되었으며, 저작권은 원저작자에게 있습니다. 본 사이트는 이에 상응하는 법적 책임을 지지 않습니다. 표절이나 침해가 의심되는 콘텐츠를 발견한 경우 admin@php.cn으로 문의하세요.