2017年(38)
发布时间:2017-12-07 13:48:12
Oracle 10.2.0.4+windows 2003 R2 Enterprise Edition Service Pack 2 異常現象:NBE2DB突然宕機,檢查alert發現instance down,之前有ORA-040301.alert文件內容:Instance terminated by CKPT, pid = 2900--在這時instance宕掉 2.DB參數為:sga_max_size=1504M, sga_target=1304M在這里show sga;.........【阅读全文】
发布时间:2017-12-07 13:48:12
select name,value from v$sysstat where name like 'parse%';我的方法找出多次沒有綁定變量的sql:select count exe_count,module,SQL_TEXT from (select ROW_NUMBER()over(partition by substr(SQL_TEXT,1,50) order by SQL_TEXT) num,a.* from (select count(*)over(partition by substr(SQL_TEXT,1,50)) count ,SQL_TE.........【阅读全文】
发布时间:2017-12-07 13:48:12
[root@DB ~]# crontab -l0,30 * * * * sh /data/run/ntp 1>/data/run/log/ntp.log 2>>/data/run/log/ntp.bad* * * * * sh /data/run/loadavg 1>/data/run/log/loadavg.log 2>>/data/run/log/loadavg.bad[root@DB ~]# more /data/run/loadavg# record cpu avg loading .date >>/data/run/loadavg.txtcat /proc/loada.........【阅读全文】
发布时间:2017-12-07 13:48:12
案例:2011/10/26 Oracle9i Enterprise Edition Release 9.2.0.8.0 - 64bit Production+Red Hat Enterprise Linux AS release 4 (Nahant Update 5)產線反映掃描緩慢:top:發現負載達到10,cpu :60%(us)查看v$session_wait很多latch free等待可以看下這個:select sid,event,p1 as file_id, p2 as "block_id/latch", p3 .........【阅读全文】