Oracle 12c In-Memory Option - 6
12. 確認In-Memory Column Store是否被使用
為了確認In-Memory Column Store被使用,我們需要透過v$mystat和v$statname檢查session
level statistics。所有In-Memory Column Store相關的statistics都是以IMC開頭的。
column format display_name a30
SELECT display_name FROM v$statname WHERE display_name LIKE 'IMC%';
查詢會有很多值,我們目前只關係如下兩個:
IMC Total Columns for Decompression: Total number of Compression Units (CU) that belong to the table
IMC Columns Decompressed: Compression Units (CUs) actually accessed by this query
SELECT display_name, value
FROM v$mystat m, v$statname n
WHERE m.statistic# = n.statistic#
AND display_name IN
( 'IMC Total Columns for Decompression', 'IMC Columns Decompressed' );
你應該看到這兩個statistics值都是0,我們從第一步開始再次執行表查詢 :
SELECT Max(lo_ordtotalprice) most_expensive_order FROM lineorder;
透過如下SQL再次檢查 statistics :
SELECT display_name, value FROM v$mystat m, v$statname n WHERE m.statistic# = n.statistic#
AND display_name IN ( 'IMC Total Columns for Decompression', 'IMC Columns Decompressed' );
結果顯示, LINEORDER 表在In-Memory Column Store中佔用了很多的CUs – ‘IMC Total Columns for Decompression’, 但是他們中
只有少部分在查詢中被訪問到 - 'IMC Columns Decompressed'.
現在同樣的步驟測試在buffer cache中查詢:
SELECT Max(lo_ordtotalprice) most_expensive_order FROM lineorder;
SELECT display_name, value FROM v$mystat m, v$statname n WHERE m.statistic# = n.statistic#
AND display_name IN ( 'IMC Total Columns for Decompression', 'IMC Columns Decompressed' );
ALTER SESSION set inmemory_query = disable;
SELECT /* BUFFER CACHE */ Max(lo_ordtotalprice) most_expensive_order FROM lineorder;
ALTER SESSION set inmemory_query = enable;
SELECT display_name, value FROM v$mystat m, v$statname n WHERE m.statistic# = n.statistic#
AND display_name IN ( 'IMC Total Columns for Decompression', 'IMC Columns Decompressed' );
這次可以注意到,IMC statistics沒有增加,因為query不使用In-Memory Column Store,而是使用的buffer
cache 。
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/35489/viewspace-1081460/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Oracle 12c In-Memory Option - 10Oracle
- Oracle 12c In-Memory Option - 9Oracle
- Oracle 12c In-Memory Option - 8Oracle
- Oracle 12c In-Memory Option - 7Oracle
- Oracle 12c In-Memory Option - 13Oracle
- Oracle 12c In-Memory Option - 5Oracle
- Oracle 12c In-Memory Option - 4Oracle
- Oracle 12c In-Memory Option - 3Oracle
- Oracle 12c In-Memory Option - 2Oracle
- Oracle 12c In-Memory Option - 1Oracle
- Oracle 12c新特性:IN-Memory Option - 快取與引數Oracle快取
- Oracle 12C新特性In-MemoryOracle
- Oracle Database In-MemoryOracleDatabase
- 雲和恩墨獨家搶先測試In-Memory Option 特性!
- oracle with * option 理解Oracle
- 12C新特性___In-Memory列式儲存的總結
- Lerning Entity Framework 6 ------ Working with in-memory dataFramework
- Oracle Database In-Memory Certified with EBS 12.2OracleDatabase
- 12c in memory option學習筆記一_基礎篇筆記
- ORACLE WITH CHECK OPTION子句詳解Oracle
- 12c釋出正式版 12.1.0.2 (包括DB In-Memory正式版)
- 12c in memory option學習筆記二_資料訪問筆記
- Oracle檢視授權(with grant option)Oracle
- Oracle ASM新增磁碟組POWER OPTIONOracleASM
- Linux-6-64下安裝Oracle 12C筆記LinuxOracle筆記
- Oracle 12cOracle
- Oracle 18c新特性詳解:In-Memory 專題Oracle
- oracle 12c Deprecation of Oracle StreamsOracle
- Oracle 12C GDSOracle
- Oracle 12c rac 2node install on rhep6(non flex crs)OracleFlex
- Oracle 20c 的 In-Memory 新特性 Spatial 和 Text 支援Oracle
- Oracle 12c redhat linux 6 安裝驗證錯誤at least 256 colorsOracleRedhatLinuxAST
- 【12c Partitioning】Oracle 12c Partitioning特性Oracle
- Oracle 12C安裝Oracle
- Oracle 12c新特性Oracle
- Oracle 12c Relocate PDBOracle
- Oracle 12c Refreshable CloneOracle
- Oracle 12c RAC: MGMTDBOracle