随笔分类 -  oracle性能优化,故障处理

摘要:ORA-1157 Troubleshooting (Doc ID 184327.1) To Bottom In this Document Purpose Scope Details Oracle Error: ORA-1157 Common Causes and Solutions for ORA 阅读全文
posted @ 2020-06-12 09:06 阿西吧li 阅读(227) 评论(0) 推荐(0) 编辑
摘要:服务器cpu告警: 登录服务器top如下: 用户进程cpu使用率高,登录数据库,发现活动会话的等待事件多为log file sync。 查看lgwr进程trace文件 怀疑io问题,写入速度慢。 Iostat查看磁盘信息 Logfile使用的是Dm-23 我们可以观察到时常await变大,io响应时 阅读全文
posted @ 2020-06-09 10:47 阿西吧li 阅读(220) 评论(0) 推荐(0) 编辑
摘要:select * from gv$instance查看startup_time, 发现4节点自动重启过,导致service漂移到其他节点。未及时发现,导致一节点负载异常。 alert及trace文件发现ora-600错误。 Bug 20505778 Private memory corruption 阅读全文
posted @ 2020-06-03 09:17 阿西吧li 阅读(279) 评论(0) 推荐(0) 编辑
摘要:Event Monitor (EMON) slave process is consuming CPU. Multiple stacks from the process obtained via connect / as sysdba oradebug setospid 1379 or use t 阅读全文
posted @ 2020-01-15 14:23 阿西吧li 阅读(189) 评论(0) 推荐(0) 编辑
摘要:Hard parse time may be impacted when there are a high number of parse errors.This may be noted in the ADDM report as follows: FINDING 2: 62% impact (2 阅读全文
posted @ 2020-01-13 11:20 阿西吧li 阅读(442) 评论(0) 推荐(0) 编辑
摘要:表的连接方式 USE_NL Hint For example: USE_HASH Hint For example: USE_MERGE Hint For example: 表的访问路径 FULL Hint For example: INDEX Hint For example: INDEX_FFS 阅读全文
posted @ 2020-01-02 11:04 阿西吧li 阅读(486) 评论(0) 推荐(0) 编辑
摘要:SYMPTOMS 1. There is a performance slow down with a large number of waits for 'enq HW - contention'. 2. ASH Reports shows the wait event 'enq HW - con 阅读全文
posted @ 2019-12-30 15:45 阿西吧li 阅读(407) 评论(0) 推荐(0) 编辑
摘要:When running an OLTP systems, it i€™s possible to see high TX enqueue contention on index associated with tables, which are having high concurrency fr 阅读全文
posted @ 2019-12-27 13:56 阿西吧li 阅读(387) 评论(0) 推荐(0) 编辑
摘要:最消耗 PGA 的 sql_id: select *from (select instance_number, sql_id, max(pga_sum_mb) pga_max from (select instance_number, sample_time, sql_id, round(sum(n 阅读全文
posted @ 2019-11-29 14:16 阿西吧li 阅读(304) 评论(0) 推荐(0) 编辑
摘要:收集10046 trace Event 10046是为Oracle session收集扩展的sql_trace信息的标准方法。关于这个event的详细描述请参见以下文档: Note 21154.1 EVENT: 10046 "enable SQL statement tracing (includi 阅读全文
posted @ 2019-11-26 14:26 阿西吧li 阅读(198) 评论(0) 推荐(0) 编辑
摘要:When Oracle detects a deadlock, the current SQL in the session detecting the deadlock is cancelled and 'statement-level rollback' is performed so as t 阅读全文
posted @ 2019-11-26 10:19 阿西吧li 阅读(279) 评论(0) 推荐(0) 编辑
摘要:什么是'log file sync'等待事件? 当一个用户会话提交,那个用户产生的所有redo需要从内存刷新到重做日志文件,使事务对数据库的修改永久化。 在提交时,用户会话会通知 LGWR 把日志缓冲区中的信息写到重做日志文件(当前所有未被写入磁盘的 redo 信息,包括本次会话的 redo 信息) 阅读全文
posted @ 2019-11-26 10:08 阿西吧li 阅读(510) 评论(0) 推荐(0) 编辑
摘要:对于数据库整体的性能问题,AWR的报告是一个非常有用的诊断工具。一般来说,当检测到性能问题时,我们会收集覆盖了发生问题的时间段的AWR报告-但是最好只收集覆盖1个小时时间段的AWR报告-如果时间过长,那么AWR报告就不能很好的反映出问题所在。 还应该收集一份没有性能问题的时间段的AWR报告,作为一个 阅读全文
posted @ 2019-11-20 15:04 阿西吧li 阅读(1711) 评论(0) 推荐(0) 编辑
摘要:查看sql是否被执行计划绑定select sql_profile,sql_plan_baseline from v$sql where sql_id='xx' declare v_hints sys.sqlprof_attr; cl_sql_text clob; wrong_sql_id varch 阅读全文
posted @ 2019-11-19 15:17 阿西吧li 阅读(222) 评论(0) 推荐(0) 编辑
摘要:APPLIES TO: Oracle Database - Enterprise Edition - Version 11.2.0.4 to 11.2.0.4 [Release 11.2]Information in this document applies to any platform. SY 阅读全文
posted @ 2019-11-19 12:41 阿西吧li 阅读(358) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示