不同使用者同樣環境同樣的SQL執行計劃不共享問題(AUTH_CHECK_MISMATCH)
Cursor not shared for different users
My colleague Peter Kramsu came to me and wanted to discuss an interesting problem. This is a summary of his findings.
Problem Details:
Same query executed by two different users where the query for the owner/creator of the data ran quick and for the other users the query was slow.
We saw two different execution plans, the owner of the tables/views had the better plan and the other user had the poor plan.
The other user accessed the views using synonyms.
The version of the database is 11.2.0.3.0 and it is running on Redhat Linux.
Analyze:
We checked the view V$SQL_SHARED_CURSOR to see if we could get some information why the cursor wasn’t shared
select * from v$sql_shared_cursor where sql_id=’fbryy8xmxc51z’;
We could see that there were some columns that differed:
AUTH_CHECK_MISMATCH (Y|N) Authorization/translation check failed for the existing child cursor
INSUFF_PRIVS (Y|N) Insufficient privileges on objects referenced by the existing child cursor
We searched My Oracle Support and found BUG 11930680
Description
This problem is introduced in 10.2.0.5 and 11.2.0.2 .
If optimizer_secure_view_merging is enabled then some SQL statements may
not be shared due to AUTH_CHECK_MISMATCH / INSUFF_PRIVS even if the
SQL is issued repeatedly by the same user. This can cause excess shared
pool memory use and other contention issues due to the high child cursor
count.
Workaround
The only workaround is to set optimizer_secure_view_merging=false
which may not be acceptable in many cases
This bug talked about the same user and we had different users and also it was listed as fixed for 11.2.0.3.0 that we are running.
So we continued to search on Oracle support.
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/35489/viewspace-772489/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 故障分析 | MySQL 相同 SQL 不同環境執行時間不一樣案例分析MySql
- [20221104]執行計劃一樣Plan hash value不同.txt
- 同樣的SQL,怎麼突然就慢了?SQL
- SQL執行計劃異常引起的效能問題SQL
- SQL執行計劃異常 引起的效能問題SQL
- 為啥同樣的邏輯在不同前端框架中效果不同前端框架
- SQL優化案例-從執行計劃定位SQL問題(三)SQL優化
- 小米10ultra 同樣亮度 ISO不同導致的解析度不同
- 同樣的工作、同樣的做需求,為什麼他們能進阿里阿里
- SQL最佳化案例-從執行計劃定位SQL問題(三)SQL
- 協同平臺新增的sql指令碼, 同步後不生效問題SQL指令碼
- Oracle優化案例-從執行計劃定位SQL問題(三)Oracle優化SQL
- 同樣 3 年前端程式設計師,為什麼結局截然不同?前端程式設計師
- 越南的遊戲市場同樣遭遇了嚴重的“盜版問題”遊戲
- Oracle sql執行計劃OracleSQL
- 同義詞相似度可以怎樣計算
- 同樣是改需求,高手和菜鳥究竟有什麼不同?
- 不賣知識賣服務同樣能賺大錢
- 同樣是學程式設計,別人成功轉行Python,你卻失敗選擇放棄,問題在哪?程式設計Python
- 同樣是智慧語音,雲訊雲雀哪裡與眾不同?
- 給numpy陣列賦同樣的值陣列
- 如何檢視SQL的執行計劃SQL
- 生產環境使用10053分析Oracle的執行計劃Oracle
- mysql主從庫執行計劃不同MySql
- 中軟卓越:設計合理的障礙,同樣可以成就優秀的使用者體驗
- 2021ChinaJoy盛趣遊戲 同樣的N1-06“不同FUN享”的期待遊戲
- httprunner測試框架(一):支援不同環境執行HTTP框架
- 同時使用執行緒本地變數以及物件快取的問題執行緒變數物件快取
- Oracle SQL Profile固定執行計劃的方法OracleSQL
- Hive SQL必刷練習題:同時線上人數問題(*****)HiveSQL
- iis和tomcat同時執行,完美解決80埠衝突問題Tomcat
- 同樣是黑客少年,但他們可能有不一樣的命運黑客
- element UI前端樣式不生效問題UI前端
- c# 多執行緒環境下控制對共享資源訪問的辦法C#執行緒
- MySQL——通過EXPLAIN分析SQL的執行計劃MySqlAI
- SAP分析雲及協同計劃
- selenium 的 submit 遇到問題。同樣的程式碼在 a 頁面奏效,在 b 頁面報錯。求解。MIT
- 【YashanDB知識庫】繫結引數,同一個sql多個執行計劃的問題SQL
- 兩張同樣解析度和尺寸的圖片,為什麼所佔的空間不同