博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
<<Oracle Applications DBA 基础(第二期)>>Week 11 exercise
阅读量:4177 次
发布时间:2019-05-26

本文共 1579 字,大约阅读时间需要 5 分钟。

1. JVM garbage collection 的情况能在
哪里看到 ?

$LOG_HOME/ora/10.1.3/opmn/default_group~oacore~default_group~1.log

$LOG_HOME/ora/10.1.3/opmn/default_group~forms~default_group~1.log

$LOG_HOME/ora/10.1.3/opmn/default_group~oafm~default_group~1.log

--EOF

2. 如果用户来说, 他的concurrent request 很慢,跑了很久,都没跑出来 ,他摆 concurrent request ID 给了你,
他让你看一看, 你会看什么 ?
( hint: please review the PPT in week 7 and week 11)

根据request id去查查session, 看看具体在等待什么或者是否有其他争用:

select fcr.request_id, vs.SID, vs.SERIAL#, vs.EVENT

  from fnd_concurrent_requests  fcr,
       fnd_concurrent_processes fcp,
       v$process                vp,
       v$session                vs
 where fcr.controlling_manager = fcp.concurrent_process_id
   and fcp.oracle_process_id = vp.PID
   and vp.ADDR = vs.PADDR
   and fcr.phase_code='R';

--EOF--

3. 接着上题, 过了 5 分钟, 用户的经理又来说 , 以前的 这个request 跑 20分钟 就出来了, 现在 跑了 4 个小时 还没完。
你听了 ,你怎么确定他说的对不对 ? 如果是对的, 会怎么办 ?
( hint: please review the PPT in week5 ,week 7 and week 11)

可用如下SQL查看某个program的历史request运行时间:

select request_id,

       program,
       phase,
       status,
       (actual_completion_date - actual_start_date)*24*60 mins
  from fnd_amp_requests_v
 where program = 'Active Users' order by request_id desc;

也可以通过System Administrator -> OAM > Site Map > Monitoring > Concurrent Requests来查看以往request的运行时间.

如果同一个program的request确实由20分钟变成4小时, 可以检查下两个request的参数是否一样, 当前DB或者OS是否有其他负载.

--EOF--

4. 接着上题,又过了 20 分钟, Application Support 的人员 来说, 这个 concurrent request 中的一个 SQL ( 他给你 SQL ID)

比以前慢多了, 你怎么确认 这个 SQL 的 性能 比以前慢多了, 如果确实 慢多了, 你会怎么办 ?

可以通过比较该SQL的历史执行时间来确定是否比以前慢了.

select * from DBA_SQL_PLAN_BASELINES;

select * from dba_hist_sql_plan;

如果确实慢了,可以比较下执行计划是否改变,检查历史数据是否大了许多,统计信息是否更新等.

--EOF--

转载地址:http://gwtai.baihongyu.com/

你可能感兴趣的文章
搭建Tomcat
查看>>
在MyEclipse中运行tomcat出现Error initializing endpoint错误
查看>>
JSP文件中的上传功能(JSP中的相对路径)------JSP
查看>>
jsp中上传文件的源代码
查看>>
使用SQL语句查询表中重复记录并删除
查看>>
将xml中的数据导入到数据库
查看>>
Qt容器测试
查看>>
自定义插件
查看>>
编译数据库ODBC
查看>>
无法解析的外部符号的 3 种可能
查看>>
webalizer流量分析软件windows下的配置与使用
查看>>
Java的数组(Array)、Vector、ArrayList、HashMap的异同
查看>>
Apache的使用方法
查看>>
PHP环境配置:Apach+Tomcat+mysql+php
查看>>
CVE-2019-0708漏洞影响面分析及采用多种规则的检测方法
查看>>
拿走不谢!固件逆向分析过程中的工具和技巧(上)
查看>>
整理网络安全措施的5个小技巧
查看>>
入侵win10(下)--渗透系统
查看>>
烦请解释一下“驱动表”的概念
查看>>
IPAide(IP助手) v1.01
查看>>