上一页 1 ··· 35 36 37 38 39 40 41 42 43 ··· 47 下一页

关于等待事件cursor: pin S

摘要: 问题背景:客户cpu居高不下, 1> 查看top10 sql发现大量的等待事件SQL> / USERNAME PROGRAM EVENT SQL_ID CPU_TIME SUM CPU_USAGE ECOLOGY latch: cache buffers chains 33hkpmf3gpvd2 2 阅读全文
posted @ 2020-06-17 10:46 数据与人文 阅读(346) 评论(0) 推荐(0)

队列等待之enq: TX - row lock contention

摘要: 【性能优化】队列等待之enq: TX - row lock contention问题背景:客户反映某条sql DELETE SHAREINNERDOC WHERE SOURCEID=:B1<br/>这个执行时间太长 问题解决1>查看awr报告:有队列等待之enq: TX - row lock con 阅读全文
posted @ 2020-06-17 10:42 数据与人文 阅读(959) 评论(0) 推荐(0)

library cache lock等待事件

摘要: 问题背景,客户反馈DB服务器cpu异常高 1> 查看AWR报告 大量library cache lock等待 大量library cache lock导致登陆hang住,时间全部消耗在了 connection management call elapsed 先查杀等待会话 1 select 'alt 阅读全文
posted @ 2020-06-17 10:35 数据与人文 阅读(971) 评论(0) 推荐(0)

ORACLE优化查询资源消耗的语句

摘要: 1> SQL ordered by Gets 1 select * from 2 (select substr(sql_text,1,40) sql, buffer_gets, 3 executions, buffer_gets/executions "Gets/Exec", 4 hash_valu 阅读全文
posted @ 2020-06-17 10:33 数据与人文 阅读(244) 评论(0) 推荐(0)

oracle参数open_cursors和session_cached_cursor详解

摘要: oracle参数open_cursors和session_cached_cursor详解 SQL> show parameter open_cursors --每个session(会话)最多能同时打开多少个cursor(游标) NAME TYPE VALUE open_cursors integer 阅读全文
posted @ 2020-06-17 10:32 数据与人文 阅读(416) 评论(0) 推荐(0)

RAC性能分析 - gc buffer busy acquire 等待事件

摘要: 问题背景:客户反馈cpu负载较高,协助查看原因 1> awr报告概述 gc buffer busy是RAC数据库中常见的等待事件,11g开始gc buffer busy分为gc buffer busy acquire和gc buffer busyrelease。 gc buffer busy acq 阅读全文
posted @ 2020-06-17 10:31 数据与人文 阅读(2308) 评论(0) 推荐(0)

oracle参数open_cursors和session_cached_cursor详解

摘要: oracle参数open_cursors和session_cached_cursor详解 SQL> show parameter open_cursors --每个session(会话)最多能同时打开多少个cursor(游标)NAME TYPE VALUE open_cursors integer 阅读全文
posted @ 2020-06-16 14:53 数据与人文 阅读(479) 评论(0) 推荐(0)

Streams AQ: enqueue blocked on low memory等待事件导致expdp导出缓慢问题

摘要: 问题背景:客户反馈2g的数据导出需要2.5小时,采用expdp方式导出 (12c) 问题解决: 获取备份时间的awr报告根据awr报告显示异常如下 参考EXPDP And IMPDP Slow Performance In 11gR2 and 12cR1 And Waits On Streams A 阅读全文
posted @ 2020-06-16 14:44 数据与人文 阅读(697) 评论(0) 推荐(0)

latch free等待问题之Result Cache:RC Latch优化案例

摘要: 问题背景: 客户反馈数据库运行缓慢,DB (12c) 问题解决 1> 查看相关时间段的AWR报告 查看DB的整体负载情况看出数据库已经比较繁忙 AWR报告中存在大量异常sql(不属于业务模块) 例如 1 select chainviewi0_.id as id1_112_, 2 chainviewi 阅读全文
posted @ 2020-06-16 14:42 数据与人文 阅读(489) 评论(0) 推荐(0)

一次sql改写优化案例

摘要: 问题背景: 客户反馈有条sql执行时间要30s左右,需要优化,sql如下 (一次改写案例) (涉及相关表以及重要字段隐去) 原sql: 问题背景: 客户反馈有条sql执行时间要30s左右,需要优化,sql如下 (一次改写案例,引以为戒) 1 select r.* 2 from (select my_ 阅读全文
posted @ 2020-06-16 14:41 数据与人文 阅读(273) 评论(0) 推荐(0)

BEGIN SYS.KUPW$WORKER.MAIN('SYS_EXPORT_SCHEMA_02', 'SYS'); END;

摘要: 问题背景: 客户反馈系统突然很慢,查询awr报告 1 658whw2n7xkd2 BEGIN SYS.KUPW$WORKER.MAIN('SYS_EXPORT_SCHEMA_02', 'SYS'); END; 数据库在取数据块时为了保护内存的数据结构而加了latch(一种锁,很短暂),当SQL逻辑读 阅读全文
posted @ 2020-06-16 14:40 数据与人文 阅读(1702) 评论(0) 推荐(0)

read by other session导致oracle性能低

摘要: 问题背景:客户反应oracle库很慢很慢 (read by other session可以结合db file sequential read等待事件一块优化) 1检查等待事件: 1 set linesize 200 2 col username for a15 3 col event for a35 阅读全文
posted @ 2020-06-16 10:46 数据与人文 阅读(480) 评论(0) 推荐(0)

db file sequential read等待事件

摘要: db file sequential read: 官方说明如下: 1 This event signifies that the user process is reading a buffer into the SGA buffer cache and is waiting for a physi 阅读全文
posted @ 2020-06-16 10:40 数据与人文 阅读(378) 评论(0) 推荐(0)

禁用sql tuning advisor功能

摘要: 1.查看自动收集统计信息的任务及状态 1 sys@ora11g> select client_name,status from dba_autotask_client; 2 3 CLIENT_NAME STATUS 4 5 auto optimizer stats collection ENABLE 阅读全文
posted @ 2020-06-15 16:53 数据与人文 阅读(959) 评论(0) 推荐(0)

latch: cache buffers chains故障处理总结

摘要: 客户说数据库的CPU使用率为100%,应用相应迟缓。发现是latch: cache buffers chains 作祟故障分析思路 查看等待事件,判断故障起因 1 SQL>select * from (select sid,event,p1,p2,p3,p1text,WAIT_TIME,SECOND 阅读全文
posted @ 2020-06-15 16:52 数据与人文 阅读(1089) 评论(0) 推荐(0)
上一页 1 ··· 35 36 37 38 39 40 41 42 43 ··· 47 下一页