oracle實驗記錄 (子游標與解析)
SQL> select distinct sid from v$mystat;
SID
----------
144
SQL> select distinct sid from v$mystat;
SID
----------
144
SQL> show user
USER is "SYS"
SQL> select distinct sid from v$mystat;
SID
----------
138
SQL> show user
USER is "SYS"
SQL> select distinct sid from v$mystat;
SID
----------
139
SQL> show user
USER is "XH"
SQL> select name,sum(value) from v$sesstat a,v$statname b where a.statistic#=b.
statistic# and name like 'parse%' and sid in (144,138,139) group by name
2 ;
NAME SUM(VALUE)
---------------------------------------------------------------- ----------
parse count (failures) 3
parse count (hard) 42
parse count (total) 225
parse time cpu 3
parse time elapsed 19
SQL> select sql_text,parse_calls,hash_value,username,address from v$sql a,dba_us
ers b where sql_text='select count(*) from test' and a.parsing_user_id=b.user_id
;
no rows selected
SQL> conn xh/a831115
Connected.
SQL> create table test as select * from sys.test;
Table created.
SQL> alter system flush shared_pool;
System altered.
NAME SUM(VALUE)
---------------------------------------------------------------- ----------
parse count (failures) 4
parse count (hard) 46
parse count (total) 239
parse time cpu 3
parse time elapsed 19
SQL> select count(*) from test;
COUNT(*)
----------
2 SID 144 user sys
NAME SUM(VALUE)
---------------------------------------------------------------- ----------
parse count (failures) 4
parse count (hard) 47
parse count (total) 245
parse time cpu 7
parse time elapsed 21
SQL> select count(*) from test;
COUNT(*)
----------
2 sid 139 uer xh
NAME SUM(VALUE)
---------------------------------------------------------------- ----------
parse count (failures) 4
parse count (hard) 49
parse count (total) 255
parse time cpu 7
parse time elapsed 21
SQL> select count(*) from test;
COUNT(*)
---------- sid 138 user sys
2
NAME SUM(VALUE)
---------------------------------------------------------------- ----------
parse count (failures) 4
parse count (hard) 49
parse count (total) 256
parse time cpu 7
parse time elapsed 21
SQL> select count(*) from test;
COUNT(*)
---------- sid 138 user sys
2
NAME SUM(VALUE)
---------------------------------------------------------------- ----------
parse count (failures) 4
parse count (hard) 49
parse count (total) 257
parse time cpu 7
parse time elapsed 21
SQL> select count(*) from test;
COUNT(*)
----------
2 sid 144 user sys
NAME SUM(VALUE)
---------------------------------------------------------------- ----------
parse count (failures) 4
parse count (hard) 49
parse count (total) 258
parse time cpu 7
parse time elapsed 21
SQL> select sql_text,parse_calls,hash_value,username,address from v$sql a,dba_us
ers b where sql_text='select count(*) from test' and a.parsing_user_id=b.user_id
;
SQL_TEXT
--------------------------------------------------------------------------------
PARSE_CALLS HASH_VALUE USERNAME ADDRESS
----------- ---------- ------------------------------ --------
select count(*) from test
4 297253644 SYS 6A83D464
select count(*) from test
2 297253644 XH 6A83D464
SQL> select sql_text ,hash_value,version_count,executions,parse_calls from v$sql
area where sql_text='select count(*) from test';
SQL_TEXT
--------------------------------------------------------------------------------
HASH_VALUE VERSION_COUNT EXECUTIONS PARSE_CALLS
---------- ------------- ---------- -----------
select count(*) from test
297253644 2 6 6
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~還需要進一步討論,其實是user之間的問題
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/12020513/viewspace-607883/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Oracle - 共享遊標、父子游標、硬軟解析Oracle
- input 獲取游標位置與設定游標位置
- [20180822]session_cached_cursors與子游標堆0.txtSession
- 【CURSOR】Oracle 子游標無法共享的原因之V$SQL_SHARED_CURSOROracleSQL
- [20180724]Flashback query和子游標共享.txt
- [20180613]子游標不共享BIND_EQUIV_FAILUREUIAI
- Oracle遊標遍歷%rowtype中的記錄Oracle
- [20200129]子游標不共享BIND_EQUIV_FAILURE.txtUIAI
- 游標美化
- 大資料實驗記錄大資料
- 子游標過多導致大量mutex爭用故障分析Mutex
- mysql load 相關實驗記錄MySql
- [20221101]如何減少BIND_EQUIV_FAILURE引起的子游標.txtUIAI
- Oracle實驗8--Merge與歸檔Oracle
- 標籤記錄
- [20180813]重新整理共享池與父子游標.txt
- Vim游標移動
- gdb除錯學習與實踐記錄 -- 常用命令解析1除錯
- win10筆記本滑鼠游標不見了怎麼辦 win10滑鼠游標恢復的方法Win10筆記
- STM32F207DAC實驗記錄
- css 滑鼠游標設定CSS
- 【Swing】JTextField設定游標
- (12)mysql 中的游標MySql
- 阻止游標預設事件事件
- cad游標大小怎麼調 cad游標中心正方形大小設定
- win10游標怎麼縮放_win10游標縮放方法Win10
- SEO 經驗記錄
- CoreDNS解析異常記錄DNS
- 《learn to count everything》論文閱讀、實驗記錄
- overlay網路隔離實驗失敗記錄
- 【CSS: cursor】滑鼠游標指標樣式大全CSS指標
- Oracle實驗(04):floatOracle
- 個人實驗程式碼記錄 | 數字影像處理實驗3·影像直方圖與均衡化處理直方圖
- 《Web前端設計與開發》實驗一:HTML基本標籤實驗3Web前端HTML
- win10如何換滑鼠游標 win10更換滑鼠游標怎麼操作Win10
- WebView與APP互動實戰記錄WebViewAPP
- win10 更改游標顏色方法 win10 滑鼠游標顏色怎麼改Win10
- monolog 日誌記錄器解析Mono
- 執子之手,與子長安:探祕華為運動健康實驗室