Oracle 11.2.0.1 Result Cache 測試 - 12 DBMS_RESULT_CACHE管理包
四, DBMS_RESULT_CACHE管理包
使用DBMS_RESULT_CACHE包管理shared pool中的result cache區
The DBMS_RESULT_CACHE package provides an interface to allow the DBA to administer that part of the shared pool that is used by the SQL result cache and the PL/SQL function result cache. Both these caches use the same infrastructure. Therefore, for example, DBMS_RESULT_CACHE.BYPASS determines whether both caches are bypassed or both caches are used, and DBMS_RESULT_CACHE.FLUSH flushes both all the cached results for SQL queries and all the cached results for PL/SQL functions.
BYPASS
Sets the bypass mode for the Result Cache, When bypass mode is turned on, it implies that cached results are no longer used and that no new results are saved in the cache
FLUSH
Flushes all objects from result cache
Note: flushing shared pool has no affect
MEMORY_REPORT
Nice report that shows usage of result cache
STATUS
ENABLED or NOT ENABLED
INVALIDATE
Invalidate contents of the result cache
INVALIDATE_OBJECT
Invalidates contents that rely on object passed in
常見用法:
BEGIN
DBMS_RESULT_CACHE.BYPASS(TRUE);
DBMS_RESULT_CACHE.FLUSH;
END;
/
BEGIN
DBMS_RESULT_CACHE.BYPASS(FALSE);
END;
/
BEGIN
DBMS_RESULT_CACHE.INVALIDATE('HR','EMP');
END;
/
使用DBMS_RESULT_CACHE包管理shared pool中的result cache區
The DBMS_RESULT_CACHE package provides an interface to allow the DBA to administer that part of the shared pool that is used by the SQL result cache and the PL/SQL function result cache. Both these caches use the same infrastructure. Therefore, for example, DBMS_RESULT_CACHE.BYPASS determines whether both caches are bypassed or both caches are used, and DBMS_RESULT_CACHE.FLUSH flushes both all the cached results for SQL queries and all the cached results for PL/SQL functions.
BYPASS
Sets the bypass mode for the Result Cache, When bypass mode is turned on, it implies that cached results are no longer used and that no new results are saved in the cache
FLUSH
Flushes all objects from result cache
Note: flushing shared pool has no affect
MEMORY_REPORT
Nice report that shows usage of result cache
STATUS
ENABLED or NOT ENABLED
INVALIDATE
Invalidate contents of the result cache
INVALIDATE_OBJECT
Invalidates contents that rely on object passed in
常見用法:
BEGIN
DBMS_RESULT_CACHE.BYPASS(TRUE);
DBMS_RESULT_CACHE.FLUSH;
END;
/
BEGIN
DBMS_RESULT_CACHE.BYPASS(FALSE);
END;
/
BEGIN
DBMS_RESULT_CACHE.INVALIDATE('HR','EMP');
END;
/
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/35489/viewspace-1434063/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Oracle 11.2.0.1 Result Cache 測試 - 1Oracle
- Oracle 11.2.0.1 Result Cache 測試 - 5Oracle
- Oracle 11.2.0.1 Result Cache 測試 - 6Oracle
- Oracle 11.2.0.1 Result Cache 測試 - 7Oracle
- Oracle 11.2.0.1 Result Cache 測試 - 8Oracle
- Oracle 11.2.0.1 Result Cache 測試 - 9Oracle
- Oracle 11.2.0.1 Result Cache 測試 - 10Oracle
- Oracle 11.2.0.1 Result Cache 測試 - 2 引數Oracle
- Oracle 11.2.0.1 Result Cache 測試 - 13 常用檢視Oracle
- Oracle 11.2.0.1 Result Cache 測試 - 3 引數及使用,限制Oracle
- Oracle 11.2.0.1 Result Cache 測試 - 11 各種場景測試結果Oracle
- 【11gR2新特性】DBMS_RESULT_CACHE管理結果快取的包快取
- oracle11g RESULT_CACHE測試 (一)Oracle
- Oracle Query Result CacheOracle
- 淺談Oracle Result CacheOracle
- query result cache in oracle 11gOracle
- Oracle 11g新特性:Result CacheOracle
- oracle 11g result_cache分析Oracle
- Oracle中sequence cache的測試Oracle
- 1223 result cache,sql profile,sql patchSQL
- 聊聊Oracle 11g的Result Cache(一)Oracle
- 聊聊Oracle 11g的Result Cache(二)Oracle
- 聊聊Oracle 11g的Result Cache(三)Oracle
- ORACLE 11g Result cache使用指南Oracle
- 聊聊Oracle 11g的Result Cache(四)Oracle
- 12c設定RESULT_CACHE_MODE=MANUAL發生'Result Cache:RC Latch'型別的Latch Free等待型別
- oracle result cache 結果集快取的使用Oracle快取
- Oracle11g新特性:SQL Result Cache [zt]OracleSQL
- Oracle 11gR2 Result Cache特性文章收集Oracle
- [20141219]result cache與view.txtView
- Using Oracle Database 11g Release 2 Result Cache in an Oracle RAC EnvironmentOracleDatabase
- Oracle11gr2新增表的RESULT CACHE屬性Oracle
- npm模組管理-區分測試包和穩定包NPM
- Oracle11gR2 Smart Flash Cache測試說明Oracle
- Oracle 12c logminer測試Oracle
- SQL Query Result Cache的使用和配置--Oracle 11G新特性SQLOracle
- Oracle 11g 的server結果快取result_cache_modeOracleServer快取
- 使用RESULT CACHE加速SQL查詢效率SQL