library cache: mutex X
来源:互联网 发布:网络用语 丫丫 编辑:程序博客网 时间:2024/05/22 09:05
发现数据库存在 ;library cache: mutex X 等待事件 (ID 1357946.1)
Top 5 Timed Foreground Events
下面我们通过awr 报告来进行诊断:
1、First look for high parsing and high version counts from AWR.
SQL ordered by Parse Calls
- Total Parse Calls: 171,846
- Captured SQL account for 26.8% of Total
可以看出,没有parse 异常的sql,下面是正常情况下的parse call 情况:
SQL ordered by Version Count
No data exists for this section of the report.
Back to SQL Statistics
Back to Top
也不存在多个版本的sql
2、进入“ load profile” ,查看hard parsing的值,他可能造成reload 在sql area。
Load Profile
Hard parses:53.80.1 W/A MB processed:3.30.0 Logons:2.30.0 Executes:1,293.61.7 Rollbacks:27.20.0 Transactions:743.8
每秒的硬解析多达53,说明硬解析很严重,
Library Cache Activity
- "Pct Misses" should be very low
可以看到reload 也挺高的。
问题的原因找到了,下面就是找出为什么hard parse 超高的原因:
Avoid Invalidations
Some specific orders will change the state of cursors to INVALIDATE. These orders modify directly the context of related objects associated with cursors. That's orders are TRUNCATE, ANALYZE or DBMS_STATS.GATHER_XXX on tables or indexes, grants changes on underlying objects. The associated cursors will stay in the SQLAREA but when it will be reference next time, it should be reloaded and reparsed fully, so the global performance will be impacted.
The following query could help us to better identify the concerned cursors:
记得当天有几个表重建了
SELECT SUBSTR(sql_text, 1, 40) "SQL",invalidationsFROM v$sqlareaORDER BY invalidations DESC;
- library cache: mutex X
- library cache: mutex X
- Oracle wait event --- library cache: mutex X
- Troubleshooting 'library cache: mutex X' waits. (文档 ID 1357946.1)
- WAITEVENT: "library cache: mutex X" (文档 ID 727400.1)
- 11g等待事library cache: mutex X
- Troubleshooting 'library cache: mutex X' Waits. (文档 ID 1357946.1)
- WAITEVENT: "library cache: mutex X" (文档 ID 727400.1)
- Troubleshooting 'library cache: mutex X' waits. (文档 ID 1357946.1)
- 11g等待事件之library cache: mutex X
- 11g等待事件之library cache: mutex X
- 关于Oracle 数据库等待事件library cache: mutex X
- oracle 11gR2 rac library cache: mutex X引发的故障
- Bug 9239863 - Excessive "library cache:mutex X" contention on hot objects (文档 ID 9239863.8)
- Bug 7307972 - Excessive waits on 'library cache: mutex x' (文档 ID 7307972.8)
- " Library Cache: Mutex X " On Koka Cursors (LOBs) Non-Shared : (文档 ID 758674.1)
- Database Performance: How to reduce "library cache: mutex X" waits for scalability in the Oracle dat
- cursor:mutex S和library cache lock 等待事件
- Mongodb常见的问题
- iOS下载网络图片
- 股票什么时候买进什么时候卖出收益最大----求最大子数组(算法导论第四章 4.1-3)
- Java读取properties文件中文乱码问题解决
- PHP发送POST请求的三种方式 分别使用curl file_get_content fsocket 来实现post提交数据
- library cache: mutex X
- spring编程式事务
- JavaScript 字符串与数字的相互转换
- Stl 中vector
- 7 种将字符串反转的 Java 方法
- iOS 键盘第一响应
- 使用MediaStore.ACTION_IMAGE_CAPTURE,拍照到指定目录
- Android Studio 一见钟情(1)
- cocos2dx 3.x 移植android