Oracle Shared Pool Advisory Utility
2016-03-22 00:04
609 查看
Oracle Shared Pool Advisory Utility |
Oracle9i release 2included a new advice calledv$shared_pool_advice , and there is talk of expanding the advice facility to all SGA RAM areasin future releases of Oracle. It is also included in the standard AWRreports
($ORACLE_HOME/rdbms/admin/awrrpt.sql).
Starting inOracle9i release 2, the v$shared_pool_advice view showsthe marginal difference in SQL parses as the shared pool changes in size from10% of the current value to 200% of the current value.
The Oracledocumentation contains a complete description for the set-up and use of sharedpool advice, and it is very simple to configure. Once it is installed, asimple script can be run to query the v$shared_pool_advice view
and locatethe marginal changes in SQL parses for different shared_pool sizes.
shared_pool_advice.sql
SEE CODE DEPOT FOR FULL SCRIPTS
The following is asample of the output:
Est Est
Time Parse
Pool Size Est EstLC Saved Saved Est
Size(M) Factor LC(M) Mem. Obj. (sec) Factor Object Hits
------- ------- -------- ------------------ ------- ------------
48 .5 48 20839 1459645 1 135,756,032
64 .6667 63 28140 1459645 1 135,756,101
80 .8333 78 35447 1459645 1 135,756,149
96 1 93 43028 1459645 1 135,756,253
112 1.1667 100 46755 1459646 1 135,756,842
128 1.3333 100 46755 1459646 1 135,756,842
144 1.5 100 46755 1459646 1 135,756,842
160 1.6667 100 46755 1459646 1 135,756,842
176 1.8333 100 46755 1459646 1 135,756,842
192 2 100 46755 1459646 1 135,756,842
The statistics forthe shared pool in this example fall in a wide range from 50% of the currentsize to 200% of the current size. These statistics can give a great ideaabout the proper size for the shared_pool‑size.
If the SGA region sizes areselected automatically with the alter system commands, creating thisoutput and writing a program to interpret the results is a great way to ensurethat the shared pool and library cache always have enough RAM.
The next sectionwill provide information on the Program Global Area (PGA ) RAMregions.
相关文章推荐
- Oracle Concepts - Shared Pool
- oracle中rownum的理解
- Oracle新建数据库和用户及表空间
- oracle学习笔记系列------oracle操作例子的专用表
- ORACLE 11G flashback 相关讨论
- oracle学习笔记系列------oracle 基本操作之基本函数的用法
- c3p0连接oracle数据库单元测试
- Oracle归档日志管理
- Oracle数据库语句大全
- 第十七讲--Oracle存储结构:段区块
- oracle基于odbc建立dblink访问sqlserver
- sql中的text字段如何导入oracle
- oracle的客户,就可以使用pl/sql访问远程oracle 数据库的方法
- oracle 用 imp 导入数据 指定用户,密码,ip , 端口 和表单
- 第十六讲--Oracle存储结构:表空间
- 第十五讲--Oracle存储结构:文件
- ORACLE数据库操作基本语句
- day17——oracleGG搭建
- day16——oracle灾备2
- day16——oracle灾备1