CURSOR_SHARING=SIMILAR
CURSOR_SHARING=SIMILAR
With CURSOR_SHARING=SIMILAR whenever the optimizer looks at a replaced bind value to make a decision then that bind is checked to see if it should be considered unsafe. The check made is :
Is the operator NEITHER of ‘=’ or ‘!=’
OR
Are there Column Histograms present on the column.
If either of these are true then the bind is deemed to be unsafe and a new cursor will be created (So binds used in non equality predicates (eg >, =, <=, LIKE) are unsafe). To check for whether a bind is considered unsafe see
SQL> select count(*) from dba_objects where object_id>3;
COUNT(*)
----------
50363
SQL> select count(*) from dba_objects where object_id>5;
COUNT(*)
----------
50361
SQL> select count(*) from dba_objects where object_id>6;
COUNT(*)
----------
50360
SQL> select count(*) from dba_objects where object_id>4;
COUNT(*)
----------
50362
SQL> select sql_id,child_number from v$sql where sql_text like '%dba_objects%';
SQL_ID CHILD_NUMBER
------------- ------------
bg5mpjkmsjg7h 0
bg5mpjkmsjg7h 1
bg5mpjkmsjg7h 2
bg5mpjkmsjg7h 3
bg5mpjkmsjg7h 4
bg5mpjkmsjg7h 5
bg5mpjkmsjg7h 6
bg5mpjkmsjg7h 7
2r3tjryp06xfx 0:
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/22034023/viewspace-710434/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 關於 cursor_sharing = similarMILA
- cursor_sharing=similar深度剖析MILA
- cursor_sharing : exact , force , similarMILA
- 關於cursor_sharing=similarMILA
- 關於cursor_sharing = similar(ZT)MILA
- ANNOUNCEMENT: Deprecating the cursor_sharing = ‘SIMILAR’MILA
- 關於cursor_sharing = similar (zt)MILA
- cursor_sharing = similar , exact 區別MILA
- cursor_sharing=similar 與 直方圖MILA直方圖
- cursor_sharing設定為similar 的弊端MILA
- Cursor_sharing=SIMILAR取值與直方圖(上)MILA直方圖
- Cursor_sharing=SIMILAR取值與直方圖(下)MILA直方圖
- oracle實驗記錄 (cursor_sharing(2)SIMILAR)OracleMILA
- 有關引數cursor_sharing=similar的測試MILA
- [20140802]cursor_sharing=similar.txtMILA
- Oracle 11g 中 cursor_sharing 設定為SIMILAR 導致的問題OracleMILA
- 10203設定CURSOR_SHARING為SIMILAR導致物化檢視重新整理失敗MILA
- oracle cursor_sharing [轉]Oracle
- oracle引數-cursor_sharingOracle
- 【Leetcode】800. Similar RGB ColorLeetCodeMILA
- AtCoder Beginner Contest 282 G - Similar PermutationMILA
- Oracle 的 cursor_sharing引數Oracle
- LeetCode之Leaf-Similar Trees(Kotlin)LeetCodeMILAKotlin
- NJUST 1746 Similar Number(南京邀請賽 J題)MILA
- 繫結變數和cursor_sharing變數
- cursor_sharing和substr函式索引函式索引
- ORACLE中Cursor_sharing引數詳解Oracle
- 小心設定cursor_sharing=force引數
- 『類自然數教室:1~8』(A similar Natural number classroom:1~8)MILAOOM
- ursor_sharing=SIMILAR 引發大量的 cursor: mutex SMILAMutex
- zt_繫結變數和cursor_sharing變數
- Cursor_sharing,Histogram,Analyze之間的關係Histogram
- cursor_sharing=force導致sql profile部分hint失效SQL
- 補充:小心設定cursor_sharing=force引數
- Cursor_sharing,Histogram,Analyze之間的關係(轉)Histogram
- Oracle一些引數的理解 cursor_sharingOracle
- oracle實驗記錄 (cursor_sharing(1)exact&force)Oracle
- [LeetCode] 1750. Minimum Length of String After Deleting Similar EndsLeetCodeMILA