Oracle 11.2.0.1 Result Cache 測試 - 9
ID NAME VALUE
--- ----------------- --------
1 Block Size (Bytes) 1024
2 Block Count Maximum 62944
3 Block Count Current 12160
4 Result Size Maximum (Blocks) 3147
5 Create Count Success 55426
6 Create Count Failure 5
7 Find Count 44256 --- 可以發現 Find Count 值增加了 1 。
8 Invalidation Count 32711
9 Delete Count Invalid 48076
10 Delete Count Valid 0
11 Hash Chain Length 1
再次執行一次同樣的SQL, 發現v$result_cache_statistics中的Find Count再次加1 .
這說明在資料沒有更新的情況下,同樣的SQL查詢result是可以命中result cache的,
每命中一次就 Found Count + 1 , 而其他統計值沒有發生變化。
SQL> update apps.test_result_cache set object_name = 'TEST_R_C' where object_id >=1 and object_id<=2000 ;
SQL> commit;
SQL> select /*+ RESULT_CACHE */ object_id, object_name,object_type,status from apps.test_result_cache where mod(object_id,3)=1;
66661 rows selected.
Elapsed: 00:00:01.05
Execution Plan
----------------------------------------------------------
--------------------------------------------------------------------------------------
| Id | Operation | Name | Rows | Bytes | Cost (%CPU)|
--------------------------------------------------------------------------------
------
| 0 | SELECT STATEMENT | | 2000 | 185K| 772 (2)|
| 1 | RESULT CACHE | gs6bnqjyx46aq8m1yu8htw20cc | | | |
|* 2 | TABLE ACCESS FULL| TEST_RESULT_CACHE | 2000 | 185K| 772 (2)|
--------------------------------------------------------------------------------
------
Predicate Information (identified by operation id):
---------------------------------------------------
2 - filter(MOD("OBJECT_ID",3)=1)
Result Cache Information (identified by operation id):
------------------------------------------------------
1 - column-count=4; dependencies=(APPS.TEST_RESULT_CACHE); name="select /*+ R
ESULT_CACHE */ object_id, object_name,object_type,status from apps.test_result_c
ache where mod(object_id,3)=1"
Note
-----
- 'PLAN_TABLE' is old version
Statistics
----------------------------------------------------------
0 recursive calls
0 db block gets
7173 consistent gets ---- 沒有命中result cache , 需重新構造
0 physical reads
1800 redo size
--- ----------------- --------
1 Block Size (Bytes) 1024
2 Block Count Maximum 62944
3 Block Count Current 12160
4 Result Size Maximum (Blocks) 3147
5 Create Count Success 55426
6 Create Count Failure 5
7 Find Count 44256 --- 可以發現 Find Count 值增加了 1 。
8 Invalidation Count 32711
9 Delete Count Invalid 48076
10 Delete Count Valid 0
11 Hash Chain Length 1
再次執行一次同樣的SQL, 發現v$result_cache_statistics中的Find Count再次加1 .
這說明在資料沒有更新的情況下,同樣的SQL查詢result是可以命中result cache的,
每命中一次就 Found Count + 1 , 而其他統計值沒有發生變化。
SQL> update apps.test_result_cache set object_name = 'TEST_R_C' where object_id >=1 and object_id<=2000 ;
SQL> commit;
SQL> select /*+ RESULT_CACHE */ object_id, object_name,object_type,status from apps.test_result_cache where mod(object_id,3)=1;
66661 rows selected.
Elapsed: 00:00:01.05
Execution Plan
----------------------------------------------------------
--------------------------------------------------------------------------------------
| Id | Operation | Name | Rows | Bytes | Cost (%CPU)|
--------------------------------------------------------------------------------
------
| 0 | SELECT STATEMENT | | 2000 | 185K| 772 (2)|
| 1 | RESULT CACHE | gs6bnqjyx46aq8m1yu8htw20cc | | | |
|* 2 | TABLE ACCESS FULL| TEST_RESULT_CACHE | 2000 | 185K| 772 (2)|
--------------------------------------------------------------------------------
------
Predicate Information (identified by operation id):
---------------------------------------------------
2 - filter(MOD("OBJECT_ID",3)=1)
Result Cache Information (identified by operation id):
------------------------------------------------------
1 - column-count=4; dependencies=(APPS.TEST_RESULT_CACHE); name="select /*+ R
ESULT_CACHE */ object_id, object_name,object_type,status from apps.test_result_c
ache where mod(object_id,3)=1"
Note
-----
- 'PLAN_TABLE' is old version
Statistics
----------------------------------------------------------
0 recursive calls
0 db block gets
7173 consistent gets ---- 沒有命中result cache , 需重新構造
0 physical reads
1800 redo size
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/35489/viewspace-1433547/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 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 測試 - 10Oracle
- Oracle 11.2.0.1 Result Cache 測試 - 12 DBMS_RESULT_CACHE管理包Oracle
- 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
- 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
- 聊聊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
- oracle result cache 結果集快取的使用Oracle快取
- Oracle11g新特性:SQL Result Cache [zt]OracleSQL
- Oracle 11gR2 Result Cache特性文章收集Oracle
- Oracle 9I FlashBack 測試Oracle
- Using Oracle Database 11g Release 2 Result Cache in an Oracle RAC EnvironmentOracleDatabase
- Oracle11gr2新增表的RESULT CACHE屬性Oracle
- Oracle Stream實戰(9)—測試(二)Oracle
- Oracle 9i閃回測試。Oracle
- Oracle 9i RAC enqueue等待測試OracleENQ
- Oracle11gR2 Smart Flash Cache測試說明Oracle
- SQL Query Result Cache的使用和配置--Oracle 11G新特性SQLOracle
- Oracle 11g 的server結果快取result_cache_modeOracleServer快取
- 使用RESULT CACHE加速SQL查詢效率SQL
- Oracle中db_16k_cache_size的設定測試Oracle
- 12c設定RESULT_CACHE_MODE=MANUAL發生'Result Cache:RC Latch'型別的Latch Free等待型別