測試將表快取到keep池
1、設定keep池大小
SYS@jzh>alter system set db_keep_cache_size=60m;
System altered.
2、建立測試表
JZH@jzh>create table t as select * from dba_objects;
Table created.
3、檢視執行計劃
JZH@jzh>select * from t;
74756 rows selected.
Statistics
----------------------------------------------------------
0 recursive calls
0 db block gets
5985 consistent gets
1065 physical reads
0 redo size
8574342 bytes sent via SQL*Net to client
55336 bytes received via SQL*Net from client
4985 SQL*Net roundtrips to/from client
0 sorts (memory)
0 sorts (disk)
74756 rows processed
4、將表存放keep池中
JZH@jzh>alter table t storage (buffer_pool keep);
Table altered.
5、查詢表是否在keep池中
JZH@jzh>select table_name,buffer_pool from user_tables;
TABLE_NAME BUFFER_POOL
------------------------------ --------------------
T KEEP
6、查詢表是否被cache
JZH@jzh>select table_name,buffer_pool,cache from user_tables;
TABLE_NAME BUFFER_POOL CACHE
------------------------------ -------------------- --------------------
T KEEP N
7、快取表
JZH@jzh>alter table t cache;
Table altered.
JZH@jzh>select table_name,buffer_pool,cache from user_tables;
TABLE_NAME BUFFER_POOL CACHE
------------------------------ -------------------- --------------------
T KEEP Y
8、檢視執行計劃
JZH@jzh>select * from t;
74756 rows selected.
Statistics
----------------------------------------------------------
0 recursive calls
0 db block gets
5987 consistent gets
0 physical reads
0 redo size
8574342 bytes sent via SQL*Net to client
55336 bytes received via SQL*Net from client
4985 SQL*Net roundtrips to/from client
0 sorts (memory)
0 sorts (disk)
74756 rows processed
SYS@jzh>alter system set db_keep_cache_size=60m;
System altered.
2、建立測試表
JZH@jzh>create table t as select * from dba_objects;
Table created.
3、檢視執行計劃
JZH@jzh>select * from t;
74756 rows selected.
Statistics
----------------------------------------------------------
0 recursive calls
0 db block gets
5985 consistent gets
1065 physical reads
0 redo size
8574342 bytes sent via SQL*Net to client
55336 bytes received via SQL*Net from client
4985 SQL*Net roundtrips to/from client
0 sorts (memory)
0 sorts (disk)
74756 rows processed
4、將表存放keep池中
JZH@jzh>alter table t storage (buffer_pool keep);
Table altered.
5、查詢表是否在keep池中
JZH@jzh>select table_name,buffer_pool from user_tables;
TABLE_NAME BUFFER_POOL
------------------------------ --------------------
T KEEP
6、查詢表是否被cache
JZH@jzh>select table_name,buffer_pool,cache from user_tables;
TABLE_NAME BUFFER_POOL CACHE
------------------------------ -------------------- --------------------
T KEEP N
7、快取表
JZH@jzh>alter table t cache;
Table altered.
JZH@jzh>select table_name,buffer_pool,cache from user_tables;
TABLE_NAME BUFFER_POOL CACHE
------------------------------ -------------------- --------------------
T KEEP Y
8、檢視執行計劃
JZH@jzh>select * from t;
74756 rows selected.
Statistics
----------------------------------------------------------
0 recursive calls
0 db block gets
5987 consistent gets
0 physical reads
0 redo size
8574342 bytes sent via SQL*Net to client
55336 bytes received via SQL*Net from client
4985 SQL*Net roundtrips to/from client
0 sorts (memory)
0 sorts (disk)
74756 rows processed
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/10271187/viewspace-2130063/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 【Cache】將常用的“小表”快取到Buffer Cache快取
- Dcat Admin 自定義 Form 表單—將配置內容快取到 Redis 並統一呼叫ORM快取Redis
- KEEP池的CACHE特點(轉)
- 從快取到分散式快取的那些事快取分散式
- 程式池、執行緒池效率測試執行緒
- keep-alive:元件級快取Keep-Alive元件快取
- Vue 頁面快取keep-aliveVue快取Keep-Alive
- VUE快取:動態keep-aliveVue快取Keep-Alive
- Vue 全站快取之 keep-alive : 動態移除快取Vue快取Keep-Alive
- Vue 3 路由元件快取keep-aliveVue路由元件快取Keep-Alive
- 小米9電池容量多大?小米9電池續航表現測試:妥妥使用一天
- 實現vue 的keep-alive快取功能VueKeep-Alive快取
- 快代理代理IP測試,最新代理IP質量測試
- 測試進度表
- 修改Ehcache快取中取到的值,快取中的值也被修改了快取
- 資料包表測試
- MYSQL壓縮表測試MySql
- 【專項測試系列】-快取擊穿、穿透、雪崩專項測試快取穿透
- [20240930]關於共享池-表物件在庫快取探究2.txt物件快取
- openGauss/MogDB列存表的delta表測試
- keep-alive + vuex 讓快取的頁面靈活起來Keep-AliveVue快取
- 建立簡單的表測試
- Selenium操作:測試form表單ORM
- 【JDBC】java連線池模擬測試 連線oracleJDBCJavaOracle
- 產品/測試 思考的快與慢--02
- php 快取使用監控測試程式碼PHP快取
- 產品/測試 思考的快與慢--05
- Vue原始碼解析,keep-alive是如何實現快取的?Vue原始碼Keep-Alive快取
- 測試分割槽表部分匯出
- 怎麼通過$a獲取到$b?某豹面試題面試題
- 測試測試測試測試測試測試
- 精品分享|快來測試自己Linux基礎水平Linux
- scanf、cin及其最佳化、快讀效能測試
- Spring Boot中使用TestContainer測試快取機制Spring BootAI快取
- IIS應用程式池_快取回收快取
- 動力電池走上快車道
- 超級快充不是夢!華為鋰電池專利將用於新機型
- 【測試】HD-G2L-IO評估板測試結果表
- form表單元素測試(checkbox和radio)ORM