Video:
© 2009, www.oracledatabase12g.com. 版权所有.文章允许转载,但必须以链接方式注明源地址,否则追究法律责任.
相关文章 | Related posts:
- 11gR2 NEW FEATURE OCI Client Result Cache – Table annotations support
- SQL*Loader Date Cache
- 11.2 Database New Feature Deferred Segment Creation
- "hcheck.sql" script to check for known problems in Oracle8i, Oracle9i, Oracle10g and Oracle 11g
- Most of library cache latches have gone in 11g
- Reference:Dissecting the Redo Logs
- 搜索结果|Search Result
- DSI404e: Query Optimization eStudy
- Complete Upgrade Checklist for Manual Upgrades from 8.X / 9.0.1 to Oracle9iR2 (9.2.0)
- A Complete Understanding of RMAN Compression




Result Cache Can Not Be Enabled
Applies to:
Oracle Server – Enterprise Edition – Version: 11.1.0.6.0
This problem can occur on any platform.
Symptoms
Result Cache does not work. When changing the result_cache_max_size parameter and restarting the
database, the value of the parameter is still 0 which means that Result Cache is disabled:
NAME TYPE VALUE
———————————— ———– ——————————
result_cache_max_size big integer 0
However the size in the spfile is set to a non-zero value:
*.result_cache_max_size=5242880
Running dbms_result_cache.status() shows that the Result Cache status is BYPASS while it should have been ENABLED:
DBMS_RESULT_CACHE.STATUS()
—————————————————————————————————-
—————————————-
BYPASS
Changes
Using SGA_TARGET:
*.db_cache_size=0
*.shared_pool_size=0
*.large_pool_size=0
*.java_pool_size=0
Cause
A minimum value was not set for the shared_pool_size. The Result Cache memory area is located in the Shared Pool so, the value of result_cache_max_size is consumed from the Shared Pool size.
Solution
Setting a minimum value for shared_pool_size resolves the problem.
*.shared_pool_size=7000000
SQL> show parameter result_cache_max_size
NAME TYPE VALUE
———————————— ———– ——————————
result_cache_max_size big integer 5M
SQL> SELECT dbms_result_cache.status() FROM dual;
DBMS_RESULT_CACHE.STATUS()
——————————————————————————–
ENABLED
What v$ table tracks usage of the new Result Cache feature In 11g
Applies to:
Oracle Server – Enterprise Edition – Version: 11.1.0.7
Information in this document applies to any platform.
11g
Goal
What database tables do track the 11g client result cache objects ?
Solution
There are 2 v$ tables which may be interesting:
client_result_cache_stats$ :tracks cache statistics
v$result_cache_objects: tracks objets used in the result chache
You can use the following query below to get a list of all sql statements currently used in the result cache :
[ Not the following Output is generated by running cdemoqc.c from $OH/rdbms/demo directory ]
SQL> select name , type, ROW_COUNT from v$result_cache_objects;
NAME
——————————————————————————–
TYPE ROW_COUNT
———- ———-
OCITEST.QCTABLE
Dependency 0
SELECT /*+ result_cache */ empno, ename, sal FROM qctable
Result 1000