AWR报告解读
创始人
2024-05-30 21:43:39
0

WORKLOAD REPOSITORY PDB report (PDB snapshots)

AWR报告需要关心以下方面
1)数据库的参数,重点看:
Initialization Parameters
2)SQL执行时间和执行次数,请看
SQL Statistics
3)TOP等待事件,请看
Top 10 Foreground Events by Total Wait Time&Wait Classes by Total Wait Time
Top SQL with Top Events
4)看CPU是否为瓶颈,请看
WORKLOAD REPOSITORY report for中的session分析
SQL ordered by CPU Time
5)看IO是否为瓶颈,请监控服务器的iowait,如大于5%的,请分析SQL或者等待事件log file sync。
若IO为瓶颈,重点看
SQL ordered by User I/O Wait Time
Segment Statistics
6)数据库锁,请重点看:
Segments by Row Lock Waits
Segments by Buffer Busy Waits
Segments by Table Scans
Top SQL with Top Row SourcesAWR全称叫Automatic Workload Repository-自动负载信息库, AWR 是通过对比两次快照(snapshot)收集到的统计信息,来生成报表数据。
本节需要关注:
1)CPU负载
2)Sessions
其中具体解释如下:
1)CPU负载参考计算公式:DB CPU(s)/CPU Cores = (38.2/24)*100% =159%>= 80%  ##38.2和24取自AWR中真实的数据
Oracle指标说明:CPU负载大于70%,说明CPU比较繁忙;OLTP系统CPU负载使用率建议最大在60%~65%。OLAP/AW系统CPU负载使用率最大可以使用到100%;Oracle数据库模式是负载均衡或应用隔离时,两个实例的CPU负载的差异大于50%,需要关注。若主备模式或读写分离模式,差异大于50%,可能是正常的。
2)Cursors/Session,见当出现以下几种情况时,需要重点关注:Oracle数据库模式是负载均衡或应用隔离时,两个实例的session的差异值大于50%;session值是并发用户数的两倍。自动数据库性能监视器(ADDM)自动检查和报告数据库的性能问题,ADDM是构建在Oracle数据库内部的自我诊断软件,ADDM检查并分析自动工作量仓库(AWR)
捕获到的数据,确定Oracle数据库可能存在的性能问题,然后它定位性能问题的根本原因,为纠正这些性能问题提供建议,并量化预计的性能收益。 
本节需要关注:
    1)Finding Name里的事项,数据库需要重点关注的项;2)结合Main Report里的ADDM Reports一起分析。Load Profile显示数据库负载概况,将之与基线数据比较才具有更多的意义,如果每秒或每事务的负载变化不大,说明应用运行比较稳定。
如果DB Time(s) 远远大于DB CPU(s),说明CPU很大部分时间在等待,需要关注等待事件
本节需要关注
    1)Redo size:每秒/每事务产生的redo大小(单位字节),可标志数据库任务的繁重程度;2)Logical read (blocks):每秒/每事务逻辑读的块数,值过高,可能索引的效率不高;3)Physical read (blocks)/ Physical write (blocks):每秒/每事务物理读/写的块数,值过高,有可能表少索引;4)Parses (SQL)/ Hard parses (SQL):解析次数/硬解析次数,参考下面解释,硬解析过多,需要考虑是否使用绑定变量;5)Sorts:每秒/每事务的排序次数:排序在PGA中进行,如果值很大,需要检查PGA的值是否合适;6)Executes:每秒/每事务SQL执行次数7)Transactions:每秒事务数,反映数据库任务繁重与否
Oracle的硬解析和软解析说明
当你发出一条sql语句交付Oracle,在执行和获取结果前,Oracle对此sql将进行几个步骤的处理过程:1、语法检查(syntax check):检查此sql的拼写是否语法。2、语义检查(semantic check) :诸如检查sql语句中的访问对象是否存在及该用户是否具备相应的权限。3、对sql语句进行解析(parse):利用内部算法对sql进行解析,生成解析树(parse tree)及执行计划(execution plan)。4、执行sql,返回结果(execute and return)
其中,软、硬解析就发生在第三个过程里。 Oracle利用内部的hash算法来取得该sql的hash值,然后在library cache里查找是否存在该hash值;
假设存在,则将此sql与cache中的进行比较; 假设“相同”,就将利用已有的解析树与执行计划,而省略了优化器的相关工作。这也就是软解析的过程。
诚然,如果上面的2个假设中任有一个不成立,那么优化器都将进行创建解析树、生成执行计划的动作。这个过程就叫硬解析。
创建解析树、生成执行计划对于sql的执行来说是开销昂贵的动作,所以,应当极力避免硬解析,尽量使用软解析。Oracle指标说明:
    1.Buffer Nowait:说明在从内存取数据的时候,没有经历等待的比例,期望值是100%;2.Buffer Hit:说明从内存取数据的时候,buffer的命中率的比例,期望值是100%,但100%并不代表性能就好,因为这只是一个比例而已,举个例子,执行一条sql语句,
执行计划是需要取10000个数据块,结果内存中还真有这10000个数据块,
那么比例是100%,表面上看是性能最高的,还有一个执行计划是需要500个数据块,内存中有250个,另外250个需要在物理磁盘中取,这种情况下,buffer hit是50%,
结果呢,第二个执行计划性能才是最高的,所以说100%并不代表性能最好;3.Library Hit:说明sql在Shared Pool的命中率,期望值是100%;4.Execute to Parse:说明解析sql和执行sql之间的比例,越高越好,说明一次解析,到处执行,如果parse多,execute少的话,还会出现负数,
因为计算公式是100*(1-parse/execute);5.Parse CPU to Parse Elapsd:说明在解析sql语句过程中,cpu占整个的解析时间比例,期望值是100%,说明没有产生等待。需要说明的是,即使有硬解析,
只要cpu没有出现性能问题,也是可以容忍的,毕竟硬解析也有它的好处的;6.Redo NoWait:说明在产生日志的时候,没有产生等待,期望值是100% ;7.Soft Parse:说明软解析的比例,期望值是100%,有一点要说明的是,不要单方面的追求软解析的高比例,而去绑定变量,要看性能的瓶颈在哪里;8. Latch Hit:说明latch的命中率,期望值是100%,latch类似锁,是一种内存锁,但只会产生等待,不会产生阻塞,和lock还是有区别的,latch是在并发的情况下产生的;9.Non-Parse CPU:说明非解析cpu的比例,越高越好,用100减去这个比例,可以看出解析sql所花费的cpu,100-99.30=0.7,说明花费在解析sql上的cpu很少 。Oracle等待事件,是Oracle性能诊断的专利。
    1.等待事件主要可以分为两类,即空闲(IDLE)等待事件和非空闲(NON-IDLE)等待事件。1) 空闲等待事件指ORACLE正等待某种工作,在诊断和优化数据库的时候,不用过多注意这部分事件。2) 非空闲等待事件专门针对ORACLE的活动,指数据库任务或应用运行过程中发生的等待,这些等待事件是在调整数据库的时候需要关注与研究的。在Oracle 10g中的等待事件有872个,11g中等待事件1116个,19c中有1920个。 我们可以通过v$event_name 视图来查看等待事件的相关信息。这里我们关注Oracle的非空闲等待事件。2.常见的TOP 10等待事件和一般解决方法1)DB CPU,这个排在TOP1,是正常情况2)log file sync,会话发出的commit指令后,需要等待LGWR将这个事务产生的redo 成功写入到磁盘之后,才可以继续进行后续的操作,这个等待事件就叫作log file sync。高log file sync等待事件的3个主要原因: ①高提交频率②缓慢的I/O子系统③过大的日志缓冲区_LOG_IO_SIZE。一般是提交频率太高,比如建议单笔提交为批量提交。
        3)gc buffer busy acquire/gc buffer busy release,出现GC事件排在TOP1,一般来说数据库请求并发分布在两台数据库服务器节点上,竞争部分共享资源时,2个节点会互相争抢对方缓存的最新版本的数据块,导致节点间大量传输数据块,数据库阻塞在Global Cache Busy。这种情况下建议检查数据库的服务模式是否合理,比如是负载均衡模式改为主备模式试试。4)resmgr:cpu quantum,这个是Resource Manager特性导致的等待事件,当resource manager控制CPU调度时,需要控制对应进程暂时不使用CPU而进程到内部运行队列中,以保证该进程对应的consumer group (消费组)没有消耗比指定resource manager指令更多的CPU。这种情况下建议检查数据库的CPU是否够用,检查CPU_COUNT或者performance的值是否过小。5)buffer busy waits,从本质上讲,这个等待事件的产生仅说明了一个会话在等待一个Buffer(数据块)。它常见于数据库中存在热块的时候,当多个用户频繁地读取或者修改同样的数据块时,这个等待事件就会产生。建议检查数据库的热点Segments by Buffer Busy Waits再进一步分析哪块有问题。6)enq: TX - row lock contention: TX等待分为4类,分别是:1. enq:TX - row lock contention;2. enq:TX - index contention;3. enq:TX - ITL;4. enq:TX - contention,前三种的含义比较明显,第4种是表示其它类型的transaction contention,即除了前三种之外的都包含在其中。建议关注Segment Statistics中的Segments by Row Lock Waits和Segments by ITL Waits。7)db file sequential read,当Oracle 需要每次I/O只读取单个数据块这样的操作时,会产生这个等待事件。最常见的情况有索引的访问(除IFFS外的方式),回滚操作,以ROWID的方式访问表中的数据,重建控制文件,对文件头做DUMP等。这个等待事件是由于糟糕的SQL使用了太多索引,读取了更多的块造成的。这个等待事件通常指单块读操作(例如索引的读取)。该值过大说明表的连接顺序很糟糕,或者使用了选择率不高的索引。建议检查SQL的索引使用情况,还有关联表的连接顺序。8)log file switch(checkpoint incomplete),当一个在线日志切换到下一个在线日志时,必须保证要切换到的在线日志上的记录的信息(比如一些脏数据块产生的redo log)被写到磁盘上(checkpoint),这样做的原因是,如果一个在线日志文件的信息被覆盖,而依赖这些redo 信息做恢复的数据块尚未被写到磁盘上(checkpoint),此时系统down掉的话,Oracle将没有办法进行实例恢复。如果系统中出现大量的log file switch(checkpoint incomplete)等待事件,原因可能是日志文件太小或者日志组太少,所以解决的方法是,建议增加日志文件的大小或者增加日志组的数量。9)reliable message,也就是说当跨实例发送消息时,发送者期望收到订阅者的回复信息,如果得不到可信回复,就会一直处于等待。等待以3秒为周期进行反复尝试,直到收到所有订阅者的回复或者被唤醒。这个一般是和result cache有关,建议去查一下result_cache_max_size参数,设置为0,禁用Result cache,貌似是11g的bug,生产上是禁用这个参数的。10)direct path read,这个等待事件发生在会话将数据块直接读取到PGA当中而不是SGA中的情况,这些被读取的数据通常是这个会话私有的数据,所以不需要放到SGA作为共享数据,因为这样做没有意义。这些数据通常是来自于临时段上的数据,比如一个会话中SQL的排序数据,并行执行过程中间产生的数据,以及Hash Join,merge join产生的排序数据,因为这些数据只对当前的会话的SQL操作有意义,所以不需要放到SGA当中。当发生direct path read等待事件时,意味着磁盘上有大量的临时数据产生,比如排序,并行执行等操作。或者意味着PGA中空闲空间不足,建议增加PGA的值。Host CPU是数据库服务器的CPU资源配置及使用情况,若%User+%System超过80%,说明服务器CPU出现了瓶颈,请关注。Instance CPU是本实例占的数据库CPU的使用情况,若%Busy CPU超过80%,也请关注。IO Profile是数据库IO负载情况,只用关注第一行即行,比如每秒读写次数(Read+Write Per Second),每秒读次数(Read per Second),每秒写次数(Write Per Second)。Memory Statistics是数据库的内存负载情况,第一行是本数据库内存容量,后面是数据库SGA和PGA的使用情况,及两者占总内存的使用率。如占到总内存的80%以上,需要关注。看数据库的关键参数是否设置合理,(Database Resource Limits、Cache Sizes、Shared Pool Statistics)看这里的三项就行了这里可以看SGA,PGA及shared_pool_size等参数的情况。Main Report本节重点关注:1)Report Summary2)Wait Events Statistics3)SQL Statistics4)Segment Statistics5)Initialization Parameters6)Active Session History (ASH) Report7)ADDM Reports
DB NameDB IdUnique NameRoleEditionReleaseRACCDB
H01U08PF1924087814H01U08PFPRIMARYEE19.0.0.0.0YESYES

InstanceInst NumStartup TimeUser NameSystem Data Visible
H01U08PF1103-Feb-23 14:08APPHIGH1YES

Container DB IdContainer NameOpen Time
1924087814WCMMNG0003-Feb-23 14:10

Host NamePlatformCPUsCoresSocketsMemory (GB)
racuat2f2ch01u08Linux x86 64-bit643221258.02

Snap IdSnap TimeSessionsCursors/SessionInstances
Begin Snap:56008-Mar-23 14:58:5363.32
End Snap:56108-Mar-23 15:13:451311.62
Elapsed:14.87 (mins)
DB Time:21.49 (mins)

Report Summary

Top ADDM Findings by Average Active Sessions

Finding NameAvg active sessions of the taskPercent active sessions of findingTask NameBegin Snap TimeEnd Snap Time
Top SQL Statements1.4581.97ADDM:1924087814_1_56108-Mar-23 14:5808-Mar-23 15:13
Session Connect and Disconnect1.453.60ADDM:1924087814_1_56108-Mar-23 14:5808-Mar-23 15:13

Load Profile

Per SecondPer TransactionPer ExecPer Call
DB Time(s):1.544.50.000.00
DB CPU(s):1.444.20.000.00
Background CPU(s):0.00.00.000.00
Redo size (bytes):5,276.6162,298.8
Logical read (blocks):239,008.37,351,466.4
Block changes:23.2712.5
Physical read (blocks):0.14.0
Physical write (blocks):0.00.0
Read IO requests:0.14.0
Write IO requests:0.00.0
Read IO (MB):0.00.0
Write IO (MB):0.00.0
IM scan rows:0.00.0
Session Logical Read IM:0.00.0
Global Cache blocks received:1.339.9
Global Cache blocks served:0.00.1
User calls:1,185.536,464.7
Parses (SQL):26.0798.4
Hard parses (SQL):0.00.4
SQL Work Area (MB):17.1525.3
Logons:3.194.2
User logons:3.093.7
Executes (SQL):604.918,605.2
Rollbacks:0.00.0
Transactions:0.0

Top 10 Foreground Events by Total Wait Time

EventWaitsTotal Wait Time (sec)Avg Wait% DB timeWait Class
DB CPU1283.199.5
resmgr:cpu quantum3114.313.71ms.3Scheduler
PGA memory operation148,9231.811.76us.1Other
SQL*Net message to client1,048,4331.11.09us.1Network
log file sync207.94.55ms.1Commit
DLM cross inst call completion5,410.9162.37us.1Other
db file sequential read122.21.25ms.0User I/O
control file sequential read1,296.1103.96us.0System I/O
latch free103.1765.74us.0Other
gc cr block 2-way576.1121.66us.0Cluster

Wait Classes by Total Wait Time

Wait ClassWaitsTotal Wait Time (sec)Avg Wait Time% DB timeAvg Active Sessions
DB CPU1,28399.51.4
Scheduler311413.71ms.30.0
Other161,260318.03us.20.0
Network1,056,71911.10us.10.0
Commit20714.55ms.10.0
User I/O1,2170213.11us.00.0
Cluster1,5410112.84us.00.0
System I/O1,2960103.96us.00.0
Concurrency1850207.40us.00.0
Configuration202.31ms.00.0
Application20183.00us.00.0

IO Profile

Read+Write Per SecondRead per SecondWrite Per Second
Total Requests:1.61.60.0
Database Requests:0.10.10.0
Optimized Requests:0.00.00.0
Redo Requests:
Total (MB):0.00.00.0
Database (MB):0.00.00.0
Optimized Total (MB):0.00.00.0
Redo (MB):
Database (blocks):0.10.10.0
Via Buffer Cache (blocks):0.10.10.0
Direct (blocks):0.00.00.0

Database Resource Limits

BeginEnd
CPUs:44
SGA Target:8,388,608,0008,388,608,000
PGA Target:2,097,152,0002,097,152,000
Memory Target00

Main Report

  • Report Summary
  • Wait Events Statistics
  • SQL Statistics
  • Instance Activity Statistics
  • IO Stats
  • Wait Statistics
  • Undo Statistics
  • Segment Statistics
  • Dictionary Cache Statistics
  • Library Cache Statistics
  • Initialization Parameters
  • Active Session History (ASH) Report
  • ADDM Reports


Back to Top


本节不用格外关注,分析等待事件Foreground Events的时候可以结合这个一起来分析。
回到顶部

Wait Events Statistics

  • Time Model Statistics
  • Foreground Wait Class
  • Foreground Wait Events
  • Service Statistics
  • Service Wait Class Stats
  • Top Process Types by Wait Class
  • Top Process Types by CPU Used

Back to Top

本节是数据库的时间模型,可以看一下,如果DB CPU排在第一位的话,那一般sql耗时最高。
回到顶部

Time Model Statistics

  • DB Time represents total time in user calls
  • DB CPU represents CPU time of foreground processes
  • Total CPU Time represents foreground and background processes
  • Statistics including the word "background" measure background process time, therefore do not contribute to the DB time statistic
  • Ordered by % of DB time in descending order, followed by Statistic Name
Statistic NameTime (s)% of DB Time% of Total CPU Time
DB CPU1,283.0899.52100.00
sql execute elapsed time1,191.6192.42
connection management call elapsed time46.383.60
PL/SQL execution elapsed time2.340.18
parse time elapsed1.690.13
hard parse elapsed time0.290.02
hard parse (sharing criteria) elapsed time0.010.00
repeated bind elapsed time0.000.00
DB time1,289.29
total CPU time1,283.08


Back to Wait Events Statistics
Back to Top

此八节不用格外关注,分析等待事件Foreground Events的时候可以结合这些一起来分析。
(Foreground Wait Class、Foreground Wait Events、Background Wait Events、Wait Event Histogram、Wait Event Histogram (up to 64 us)、
Wait Event Histogram (up to 32 ms))、Wait Event Histogram (up to 2 sec)、Wait Event Histogram (up to 2 min)、Wait Event Histogram (up to 1 hr)
回到顶部

Foreground Wait Class

  • s - second, ms - millisecond, us - microsecond, ns - nanosecond
  • ordered by wait time desc, waits desc
  • %Timeouts: value of 0 indicates value was < .5%. Value of null is truly 0
  • Captured Time accounts for 100.3% of Total DB time 1,289.29 (s)
  • Total FG Wait Time: 9.79 (s) DB CPU time: 1,283.08 (s)
Wait ClassWaits%Time -outsTotal Wait Time (s)Avg wait%DB time
DB CPU1,28399.52
Scheduler3110413.71ms0.33
Other158,1002317.92us0.22
Network1,051,291011.11us0.09
Commit207014.55ms0.07
User I/O1,19600214.81us0.02
Cluster1,28400122.91us0.01
System I/O1,29600103.96us0.01
Concurrency167750216.43us0.00
Configuration2002.31ms0.00
Application200183.00us0.00


Back to Wait Events Statistics
Back to Top

Foreground Wait Events

  • s - second, ms - millisecond, us - microsecond, ns - nanosecond
  • Only events with Total Wait Time (s) >= .001 are shown
  • ordered by wait time desc, waits desc (idle events last)
  • %Timeouts: value of 0 indicates value was < .5%. Value of null is truly 0
EventWaits%Time -outsTotal Wait Time (s)Avg waitWaits /txn% DB time
resmgr:cpu quantum311413.71ms10.720.33
PGA memory operation148,923211.76us5,135.280.14
SQL*Net message to client1,048,43311.09us36,152.860.09
log file sync20714.55ms7.140.07
DLM cross inst call completion5,410501162.37us186.550.07
db file sequential read12201.25ms4.210.01
control file sequential read1,2960103.96us44.690.01
latch free1030765.74us3.550.01
gc cr block 2-way5760121.66us19.860.01
Sync ASM rebalance5011.63ms0.170.00
Disk file operations I/O713078.19us24.590.00
ASM file metadata operation1042.52ms0.030.00
gc current block busy3420119.44us11.790.00
Disk file Mirror Read3070122.48us10.590.00
library cache lock122990233.43us4.210.00
IPC group service call2,85807.29us98.550.00
gc cr block busy340559.32us1.170.00
gc current block 2-way152090.34us5.240.00
direct path read180579.06us0.620.00
gc current grant busy101064.88us3.480.00
PX Deq: reap credit305100016.46us10.520.00
PX Deq: Join ACK120403.50us0.410.00
ges enter server mode50608.70us17.450.00
log file switch completion104.38ms0.030.00
enq: TX - index contention300131.73us1.030.00
gc current grant 2-way56063.77us1.930.00
gc cr multi block mixed140189.43us0.480.00
enq: WF - contention180121.17us0.620.00
library cache load lock20734.00us0.070.00
row cache lock51000270.60us0.170.00
ges resource directory to be unfrozen2,7140498.16ns93.590.00
enq: WT - contention90148.56us0.310.00
enq: PS - contention90133.89us0.310.00
SQL*Net message from client1,047,6884,7344.52ms36,127.17
PX Deq: Execution Msg6318.13ms2.17
PX Deq: Execute Reply3504.49ms1.21
PX Deq: Parse Reply1201.65ms0.41
PX Deq Credit: send blkd135010.91us4.66


Back to Wait Events Statistics
Back to Top

若本AWR报告是CDB级别的话,通过这两节可以看到哪个PDB比较消耗资源,并且可以看到是哪种类型的比较消耗资源,比如是读还是写,还是网络方面。
回到顶部

Service Statistics

  • ordered by DB Time
Service NameDB Time (s)DB CPU (s)Physical Reads (K)Logical Reads (K)
WCMMNG00_S17897880212,863
wcmmng005014960330
WCMMNG00_S20000


Back to Wait Events Statistics
Back to Top

Service Wait Class Stats

  • Wait Class info for services in the Service Statistics section.
  • Total Waits and Time Waited displayed for the following wait classes: User I/O, Concurrency, Administrative, Network
  • Time Waited (Wt Time) in seconds
Service NameUser I/O Total WtsUser I/O Wt TimeConcurcy Total WtsConcurcy Wt TimeAdmin Total WtsAdmin Wt TimeNetwork Total WtsNetwork Wt Time
WCMMNG00_S1100500010378541
wcmmng0011640161000142840


Back to Wait Events Statistics
Back to Top

Top Process Types by Wait Class,Top Process Types by CPU Used 此2节可以看到Oracle自身的哪个进程比较耗时,可以参考看一下。
回到顶部

Top Process Types by Wait Class

No data exists for this section of the report.

Back to Wait Events Statistics
Back to Top

Top Process Types by CPU Used

No data exists for this section of the report.

Back to Wait Events Statistics
Back to Top

SQL Statistics按各种资源分别列出对资源消耗最严重的SQL语句,并显示它们所占统计期内全部资源的比例,是给我们的一个调优指南。例如在一个系统中,
CPU资源是系统性能瓶颈所在,那么优化buffer gets最多的SQL语句将获得最大效果。在一个I/O等待是最严重事件的系统中,调优的目标应该是physical IO最多的SQL语句。
在AWR报告中,如果SQL显示不全,可使用报告中的SQL Id通过下面语句从数据库中查到:
eg: select SQL_TEXT from v$sqltext where SQL_ID='44g3f0b82000k' order by piece asc;
一般关注以下维度:
1)执行时间:Elapsed Time;
2)执行次数:Executions
3)CPU维度:CPU Time
4)IO维度:User I/O Wait Time和Physical Reads(UnOptimized)
回到顶部

SQL Statistics

  • SQL ordered by Elapsed Time
  • SQL ordered by CPU Time
  • SQL ordered by User I/O Wait Time
  • SQL ordered by Gets
  • SQL ordered by Reads
  • SQL ordered by Physical Reads (UnOptimized)
  • SQL ordered by Executions
  • SQL ordered by Parse Calls
  • SQL ordered by Sharable Memory
  • SQL ordered by Version Count
  • SQL ordered by Cluster Wait Time
  • Complete List of SQL Text

Back to Top

•Elapsed Time(S):SQL语句执行用总时长,此排序就是按照这个字段进行的。注意该时间不是单个SQL跑的时间,
而是监控范围内SQL执行次数的总和时间。单位时间为秒。ElapsedTime= CPUTime+Wait Time.
•Executions: SQL语句在监控范围内的执行次数总计,一般每次交易SQL执行次数应不超过5-8次。
•Elapsed Time per Exec (s):执行一次SQL的平均时间,单位时间为秒,时间过长时可能是出现了慢SQL。 
•%Total: 为SQL的Elapsed Time时间占数据库总时间的百分比。
•%CPU: 为SQL的Elapsed Time时间占数据库CPU总时间的百分比。
•%IO: 为SQL的Elapsed Time时间占数据库IO总时间的百分比。 
•SQL ID: SQL语句的ID编号,点击之后就能导航到下边的SQL详细列表中,点击IE的返回可以回到当前SQL ID的地方。 
•SQL Module: 显示该SQL是用什么方式连接到数据库执行的,如果是用SQL*Plus或者PL/SQL链接上来的那基本上都是
有人在调试程序。一般用前台应用链接过来执行的sql该位置为空。
•PDB Name: 该SQL所在的PDB的名称。
•SQL Text: 简单的sql提示,详细的需要点击SQL ID。
本节需要关注:
1)执行时间Elapsed Time超过10ms的SQL,建议分析sql看否有优化空间;
2)执行次数Elapsed Time per Exec大于TPS的5倍,建议咨询开发从业务层面来分析是否合理
回到顶部

SQL ordered by Elapsed Time

  • Resources reported for PL/SQL code includes the resources used by all SQL statements called by the code.
  • % Total DB Time is the Elapsed Time of the SQL statement divided into the Total Database Time multiplied by 100
  • %Total - Elapsed Time as a percentage of Total DB time
  • %CPU - CPU Time as a percentage of Elapsed Time
  • %IO - User I/O Time as a percentage of Elapsed Time
  • Captured SQL account for 92.0% of Total DB Time (s): 1,289
  • Captured PL/SQL account for 0.6% of Total DB Time (s): 1,289
Elapsed Time (s)ExecutionsElapsed Time per Exec (s)%Total%CPU%IOSQL IdSQL ModulePDB NameSQL Text
261.679500.2820.3098.900.00dprdzbty156uxJDBC Thin ClientWCMMNG00SELECT info.CARD_NUMBER, info....
237.23253,1850.0018.4095.430.005b64sq2g9zj1aJDBC Thin ClientWCMMNG00SELECT info.CARD_NUMBER, info....
227.782011.1317.6799.230.00b2cxpv2ah9j3fJDBC Thin ClientWCMMNG00SELECT * FROM (SELECT user_nam...
133.619990.1310.3698.960.003y2d7rgcy1959JDBC Thin ClientWCMMNG00SELECT info.CARD_NUMBER, info....
128.78252,5770.009.9993.500.00gjq63nfm9bd6uJDBC Thin ClientWCMMNG00SELECT info.CARD_NUMBER, info....
46.092010.233.5799.250.006fyytvcmzzaxqJDBC Thin ClientWCMMNG00select ( (select value from v$...
23.342010.121.8198.940.006tvb8fxmgrkstJDBC Thin ClientWCMMNG00SELECT value as table_scans FR...
23.222010.121.8099.010.0033hkvdfmk3uh9JDBC Thin ClientWCMMNG00SELECT value as parse_count FR...
23.172010.121.8098.980.00f424nh2d912f9JDBC Thin ClientWCMMNG00SELECT value as sorts FROM v$s...
22.992010.111.7899.010.00b8unvt854zu6kJDBC Thin ClientWCMMNG00SELECT value as physical_reads...
22.972010.111.7899.030.0010g91b26jxck2JDBC Thin ClientWCMMNG00SELECT name, value FROM v$syss...


Back to SQL Statistics
Back to Top

本节SQL按照CPU维度进行排序,如果数据库CPU有瓶颈的,建议关注这节。
回到顶部

SQL ordered by CPU Time

  • Resources reported for PL/SQL code includes the resources used by all SQL statements called by the code.
  • %Total - CPU Time as a percentage of Total DB CPU
  • %CPU - CPU Time as a percentage of Elapsed Time
  • %IO - User I/O Time as a percentage of Elapsed Time
  • Captured SQL account for 90.2% of Total CPU Time (s): 1,283
  • Captured PL/SQL account for 0.6% of Total CPU Time (s): 1,283
CPU Time (s)ExecutionsCPU per Exec (s)%TotalElapsed Time (s)%CPU%IOSQL IdSQL ModulePDB NameSQL Text
258.809500.2720.17261.6798.900.00dprdzbty156uxJDBC Thin ClientWCMMNG00SELECT info.CARD_NUMBER, info....
226.38253,1850.0017.64237.2395.430.005b64sq2g9zj1aJDBC Thin ClientWCMMNG00SELECT info.CARD_NUMBER, info....
226.022011.1217.62227.7899.230.00b2cxpv2ah9j3fJDBC Thin ClientWCMMNG00SELECT * FROM (SELECT user_nam...
132.229990.1310.30133.6198.960.003y2d7rgcy1959JDBC Thin ClientWCMMNG00SELECT info.CARD_NUMBER, info....
120.41252,5770.009.38128.7893.500.00gjq63nfm9bd6uJDBC Thin ClientWCMMNG00SELECT info.CARD_NUMBER, info....
45.742010.233.5646.0999.250.006fyytvcmzzaxqJDBC Thin ClientWCMMNG00select ( (select value from v$...
23.092010.111.8023.3498.940.006tvb8fxmgrkstJDBC Thin ClientWCMMNG00SELECT value as table_scans FR...
22.992010.111.7923.2299.010.0033hkvdfmk3uh9JDBC Thin ClientWCMMNG00SELECT value as parse_count FR...
22.932010.111.7923.1798.980.00f424nh2d912f9JDBC Thin ClientWCMMNG00SELECT value as sorts FROM v$s...
22.772010.111.7722.9999.010.00b8unvt854zu6kJDBC Thin ClientWCMMNG00SELECT value as physical_reads...
22.752010.111.7722.9799.030.0010g91b26jxck2JDBC Thin ClientWCMMNG00SELECT name, value FROM v$syss...


Back to SQL Statistics
Back to Top

本节SQL按照I/O维度进行排序,如果数据库I/O有瓶颈的,建议关注这节。
回到顶部

SQL ordered by User I/O Wait Time

  • Resources reported for PL/SQL code includes the resources used by all SQL statements called by the code.
  • %Total - User I/O Time as a percentage of Total User I/O Wait time
  • %CPU - CPU Time as a percentage of Elapsed Time
  • %IO - User I/O Time as a percentage of Elapsed Time
  • Captured SQL account for 26.6% of Total User I/O Wait Time (s): 0
  • Captured PL/SQL account for 42.0% of Total User I/O Wait Time (s): 0
User I/O Time (s)ExecutionsUIO per Exec (s)%TotalElapsed Time (s)%CPU%IOSQL IdSQL ModulePDB NameSQL Text
0.1110.1142.037.8796.521.39a0t0a12gyqm20JDBC Thin ClientWCMMNG00call DBMS_WORKLOAD_REPOSITORY....
0.032,7130.0011.920.5994.015.25865qwpcdyggkkWCMMNG00select spare6 from user$ where...
0.0320.0110.601.4994.971.859rrvf7y1ftb98JDBC Thin ClientWCMMNG00select OUTPUT from table(dbms_...
0.011030.002.950.0268.4231.99f7xnvp44nukp7WCMMNG00insert into wrm$_snapshot_deta...
0.002,7080.000.733.1696.630.069zg9qd9bm4spuJDBC Thin ClientWCMMNG00update user$ set spare6=DECODE...
0.00253,1850.000.15237.2395.430.005b64sq2g9zj1aJDBC Thin ClientWCMMNG00SELECT info.CARD_NUMBER, info....
0.009500.000.15261.6798.900.00dprdzbty156uxJDBC Thin ClientWCMMNG00SELECT info.CARD_NUMBER, info....
0.009990.000.13133.6198.960.003y2d7rgcy1959JDBC Thin ClientWCMMNG00SELECT info.CARD_NUMBER, info....
0.001140.000.000.0198.680.073dbzmtf9ahvztWCMMNG00merge /* KSXM:OPTIM_DML_INF */...
0.0040.000.000.00100.000.649tgj4g8y4rwy8WCMMNG00select type#, blocks, extents,...


Back to SQL Statistics
Back to Top

本节SQL按照Buffer Gets对SQL语句进行排序,即通过它执行了多少个逻辑I/O来排序。
顶端的注释表明一个PL/SQL单元的缓存获得(Buffer Gets)包括被这个代码块执行的所有SQL语句的Buffer Gets。
因此将经常在这个列表的顶端看到PL/SQL过程,因为存储过程执行的单独的语句的数目被总计出来。
在这里的Buffer Gets是一个累积值,所以这个值大并不一定意味着这条语句的性能存在问题。
通常我们可以通过对比该条语句的Buffer Gets和physical reads值,如果这两个比较接近,肯定这条语句是存在
问题的,可以通过执行计划来分析,为什么physical reads的值如此之高。另外,也可以关注gets per exec的值,
这个值如果太大,表明这条语句可能使用了一个比较差的索引或者使用了不当的表连接。另外说明一点:大量的逻辑读
往往伴随着较高的CPU消耗。所以很多时候我们看到的系统CPU将近100%的时候,很多时候就是SQL语句造成的,这时候
我们可以分析一下这里逻辑读大的SQL。select * from	(select substr(sql_text,1,40) sql,buffer_gets,
executions, buffer_gets/executions "Gets/Exec",hash_value,address from v$sqlarea where buffer_gets > 0 and executions>0 order by buffer_gets desc)
where rownum <= 10 ;
回到顶部

SQL ordered by Gets

  • Resources reported for PL/SQL code includes the resources used by all SQL statements called by the code.
  • %Total - Buffer Gets as a percentage of Total Buffer Gets
  • %CPU - CPU Time as a percentage of Elapsed Time
  • %IO - User I/O Time as a percentage of Elapsed Time
  • Total Buffer Gets: 213,192,525
  • Captured SQL account for 99.9% of Total
Buffer GetsExecutionsGets per Exec%TotalElapsed Time (s)%CPU%IOSQL IdSQL ModulePDB NameSQL Text
160,800,421253,185635.1175.42237.2395.405b64sq2g9zj1aJDBC Thin ClientWCMMNG00SELECT info.CARD_NUMBER, info....
21,845,72495022,995.5010.25261.6798.90dprdzbty156uxJDBC Thin ClientWCMMNG00SELECT info.CARD_NUMBER, info....
15,147,38699915,162.557.11133.619903y2d7rgcy1959JDBC Thin ClientWCMMNG00SELECT info.CARD_NUMBER, info....
14,810,936252,57758.646.95128.7893.50gjq63nfm9bd6uJDBC Thin ClientWCMMNG00SELECT info.CARD_NUMBER, info....
168,7642,72262.000.083.7768.105dqz0hqtp9fruWCMMNG00select /*+ connect_by_filterin...
102,448251,224.000.051.49951.89rrvf7y1ftb98JDBC Thin ClientWCMMNG00select OUTPUT from table(dbms_...
48,34099048.830.020.3421.701ss9v49tfudvyJDBC Thin ClientWCMMNG00SELECT bus_type, apply_req_id,...
19,352119,352.000.017.8796.51.4a0t0a12gyqm20JDBC Thin ClientWCMMNG00call DBMS_WORKLOAD_REPOSITORY....
13,6102,7225.000.010.6396.400k8522rmdzg4kWCMMNG00select privilege# from sysauth...
10,8902,7084.020.013.1696.6.19zg9qd9bm4spuJDBC Thin ClientWCMMNG00update user$ set spare6=DECODE...


Back to SQL Statistics
Back to Top

本节SQL按照Reads维度进行排序,如果数据库I/O有瓶颈的,建议关注这节。
和上一节的SQL ordered by Gets一起结合分析,详细分析见上节。
回到顶部

SQL ordered by Reads

  • %Total - Physical Reads as a percentage of Total Disk Reads
  • %CPU - CPU Time as a percentage of Elapsed Time
  • %IO - User I/O Time as a percentage of Elapsed Time
  • Total Disk Reads: 116
  • Captured SQL account for 25.0% of Total
Physical ReadsExecutionsReads per Exec%TotalElapsed Time (s)%CPU%IOSQL IdSQL ModulePDB NameSQL Text
79179.0068.107.8796.521.39a0t0a12gyqm20JDBC Thin ClientWCMMNG00call DBMS_WORKLOAD_REPOSITORY....
1829.0015.521.4994.971.859rrvf7y1ftb98JDBC Thin ClientWCMMNG00select OUTPUT from table(dbms_...
111030.119.480.0268.4231.99f7xnvp44nukp7WCMMNG00insert into wrm$_snapshot_deta...
02010.000.000.2755.510.0001davw5xnh2vgJDBC Thin ClientWCMMNG00SELECT * FROM (SELECT event, t...
02010.000.000.0185.420.000b639nx4zdzxrWCMMNG00select domain# from sys.im_dom...
02,7220.000.000.6396.430.000k8522rmdzg4kWCMMNG00select privilege# from sysauth...
050.000.000.0041.430.000kkhhb2w93cx0WCMMNG00update seg$ set type#=:4, bloc...
02010.000.0022.9799.030.0010g91b26jxck2JDBC Thin ClientWCMMNG00SELECT name, value FROM v$syss...
0250.000.003.9799.330.001238ttd8y24zwJDBC Thin ClientWCMMNG00select a.username, a.lockwait,...
09900.000.000.3421.650.001ss9v49tfudvyJDBC Thin ClientWCMMNG00SELECT bus_type, apply_req_id,...


Back to SQL Statistics
Back to Top

本节SQL按照物理读维度进行排序。这显示引起大部分对这个系统进行读取活动的SQL,即物理I/O。
当我们的系统如果存在I/O瓶颈时,需要关注这里I/O操作比较多的语句。select * from (select substr(sql_text,1,40) sql,
disk_reads, executions, disk_reads/executions, "Reads/Exec",hash_value,address
from v$sqlarea where disk_reads > 0 and executions >0 order by disk_reads desc) where rownum <= 10;
回到顶部

SQL ordered by Physical Reads (UnOptimized)

  • UnOptimized Read Reqs = Physical Read Reqs - (Optimized Read Reqs - Cell Flash Cache Read Hits for Controlfile)
  • %Opt - Optimized Reads as percentage of SQL Read Requests
  • %Total - UnOptimized Read Reqs as a percentage of Total UnOptimized Read Reqs
  • Total Physical Read Requests: 116
  • Captured SQL account for 44.8% of Total
  • Total UnOptimized Read Requests: 116
  • Captured SQL account for 44.8% of Total
  • Total Optimized Read Requests: 1
  • Captured SQL account for 0.0% of Total
UnOptimized Read ReqsPhysical Read ReqsExecutionsUnOptimized Reqs per Exec%Opt%TotalSQL IdSQL ModulePDB NameSQL Text
1,2151,21511,215.000.001047.41a0t0a12gyqm20JDBC Thin ClientWCMMNG00call DBMS_WORKLOAD_REPOSITORY....
5252226.000.0044.839rrvf7y1ftb98JDBC Thin ClientWCMMNG00select OUTPUT from table(dbms_...
002010.000.0001davw5xnh2vgJDBC Thin ClientWCMMNG00SELECT * FROM (SELECT event, t...
002010.000.000b639nx4zdzxrWCMMNG00select domain# from sys.im_dom...
002,7220.000.000k8522rmdzg4kWCMMNG00select privilege# from sysauth...
0050.000.000kkhhb2w93cx0WCMMNG00update seg$ set type#=:4, bloc...
002010.000.0010g91b26jxck2JDBC Thin ClientWCMMNG00SELECT name, value FROM v$syss...
00250.000.001238ttd8y24zwJDBC Thin ClientWCMMNG00select a.username, a.lockwait,...
009900.000.001ss9v49tfudvyJDBC Thin ClientWCMMNG00SELECT bus_type, apply_req_id,...
0030.000.002ajc7pwz9jsx3WCMMNG00select max(scn) from smon_scn_...


Back to SQL Statistics
Back to Top

本节SQL按照执行次数维度进行排序,可以和上一节的SQL ordered by Elapsed Time一起结合分析,
详细分析见上节SQL ordered by Elapsed Time。建议执行次数Elapsed Time per Exec不大于TPS的5倍,
如是建议咨询开发从业务层面来分析是否合理,为了隔离某些频繁执行的查询,以观察是否有某些更改逻辑的方法以避免
必须如此频繁的执行这些查询,这可能是很有用的。或许一个查询正在一个循环的内部执行,而且它可能在循环的外部执行一次,
可以设计简单的算法更改以减少必须执行这个查询的次数。即使它运行的飞快,任何被执行几百万次的操作都将会耗尽大量的时间。
select * from (select substr(sql_text,1,40) sql, executions, rows_processed, rows_processed/executions
"Rows/Exec",hash_value,address from v$sqlarea where executions > 0 order by executions desc) where rownum<=10
回到顶部

SQL ordered by Executions

  • %CPU - CPU Time as a percentage of Elapsed Time
  • %IO - User I/O Time as a percentage of Elapsed Time
  • Total Executions: 539,551
  • Captured SQL account for 98.0% of Total
ExecutionsRows ProcessedRows per ExecElapsed Time (s)%CPU%IOSQL IdSQL ModulePDB NameSQL Text
253,18528,2300.11237.2395.405b64sq2g9zj1aJDBC Thin ClientWCMMNG00SELECT info.CARD_NUMBER, info....
252,57727,8400.11128.7893.50gjq63nfm9bd6uJDBC Thin ClientWCMMNG00SELECT info.CARD_NUMBER, info....
2,7222,7221.000.6396.400k8522rmdzg4kWCMMNG00select privilege# from sysauth...
2,722114,32442.003.7768.105dqz0hqtp9fruWCMMNG00select /*+ connect_by_filterin...
2,72260.000.2862.70d9q2q82g1tuzxWCMMNG00select decode(upper(failover_m...
2,7222,7221.000.8197.70f0h5rpzmhju11WCMMNG00select SYS_CONTEXT('USERENV', ...
2,7132,7131.000.59945.2865qwpcdyggkkWCMMNG00select spare6 from user$ where...
2,7082,7081.003.1696.6.19zg9qd9bm4spuJDBC Thin ClientWCMMNG00update user$ set spare6=DECODE...
99929,97030.00133.619903y2d7rgcy1959JDBC Thin ClientWCMMNG00SELECT info.CARD_NUMBER, info....
99029,70030.000.3421.701ss9v49tfudvyJDBC Thin ClientWCMMNG00SELECT bus_type, apply_req_id,...


Back to SQL Statistics
Back to Top

本节SQL按照分析调用维度进行排序。在这一部分,主要显示PARSE与EXECUTIONS的对比情况。
如果PARSE/EXECUTIONS>1,往往说明这个语句可能存在问题:没有使用绑定变量,共享池设置太小,
cursor_sharing被设置为exact,没有设置session_cached_cursors等等问题。
select * from (select substr(sql_text,1,40) sql, parse_calls, 
executions, hash_value,address from v$sqlarea where parse_calls > 0
order by parse_calls desc) where rownum <= 10
回到顶部

SQL ordered by Parse Calls

  • Total Parse Calls: 23,154
  • Captured SQL account for 86.9% of Total
Parse CallsExecutions% Total ParsesSQL IdSQL ModulePDB NameSQL Text
2,7222,72211.760k8522rmdzg4kWCMMNG00select privilege# from sysauth...
2,7222,72211.765dqz0hqtp9fruWCMMNG00select /*+ connect_by_filterin...
2,7222,72211.76d9q2q82g1tuzxWCMMNG00select decode(upper(failover_m...
2,7222,72211.76f0h5rpzmhju11WCMMNG00select SYS_CONTEXT('USERENV', ...
2,7132,71311.72865qwpcdyggkkWCMMNG00select spare6 from user$ where...
2,7082,70811.709zg9qd9bm4spuJDBC Thin ClientWCMMNG00update user$ set spare6=DECODE...
5615612.422p9fv35c7zxtgWCMMNG00select /* KSXM:LOAD_DML_INF */...
2012010.8701davw5xnh2vgJDBC Thin ClientWCMMNG00SELECT * FROM (SELECT event, t...
2012010.870b639nx4zdzxrWCMMNG00select domain# from sys.im_dom...
2012010.8710g91b26jxck2JDBC Thin ClientWCMMNG00SELECT name, value FROM v$syss...


Back to SQL Statistics
Back to Top

本节SQL按照共享内面维度进行排序。在这一部分,主要是针对shared memory占用的情况进行排序。
select * from
(select substr(sql_text,1,40) sql, sharable_mem,
executions, hash_value,address
from v$sqlarea where sharable_mem > 1048576
回到顶部

SQL ordered by Sharable Memory

  • Only Statements with Sharable Memory greater than 1048576 are displayed
Sharable Mem (b)Executions% TotalSQL IdSQL ModulePDB NameSQL Text
18,529,18310.09586577qpbkgnkWCMMNG00select 1 from DBA_SCHEDULER_JO...
10,137,51600.053kqrku32p6sfnWCMMNG00MERGE /*+ OPT_PARAM('_parallel...
6,101,0885610.032p9fv35c7zxtgWCMMNG00select /* KSXM:LOAD_DML_INF */...
5,706,7081140.033dbzmtf9ahvztWCMMNG00merge /* KSXM:OPTIM_DML_INF */...
3,363,63550.020kkhhb2w93cx0WCMMNG00update seg$ set type#=:4, bloc...
2,721,97940.019tgj4g8y4rwy8WCMMNG00select type#, blocks, extents,...
2,206,97930.012ajc7pwz9jsx3WCMMNG00select max(scn) from smon_scn_...
1,936,880180.016n2qqv1brfhppWCMMNG00select ind.type#, ind.property...
1,786,34910.01fy8bgmw8b2swbWCMMNG00select a.dbid, a.status_flag f...
1,166,70430.0176cckj4yysvuaWCMMNG00select time_mp, scn, num_mappi...


Back to SQL Statistics
Back to Top

本节SQL按照多版本维度进行排序。在这一部分,主要是针对SQL语句的多版本进行排序。相同的SQL文本,但是不同属性,
比如对象owner不同,会话优化模式不同、类型不同、长度不同和绑定变量不同等等的语句,他们是不能共享的,
所以在缓存中会存在多个不同的版本。这当然就造成了资源上的更多的消耗
回到顶部

SQL ordered by Version Count

  • Only Statements with Version Count greater than 20 are displayed
Version CountExecutionsSQL IdSQL ModulePDB NameSQL Text
4950kkhhb2w93cx0WCMMNG00update seg$ set type#=:4, bloc...
4549tgj4g8y4rwy8WCMMNG00select type#, blocks, extents,...
3432ajc7pwz9jsx3WCMMNG00select max(scn) from smon_scn_...
341fy8bgmw8b2swbWCMMNG00select a.dbid, a.status_flag f...
31186n2qqv1brfhppWCMMNG00select ind.type#, ind.property...


Back to SQL Statistics
Back to Top

本节SQL按照集群等待时间维度进行排序,如果数据库等待事件TOP5有关集群的等待事件的,建议关注这节。
回到顶部

SQL ordered by Cluster Wait Time

  • %Total - Cluster Time as a percentage of Total Cluster Wait Time
  • %Clu - Cluster Time as a percentage of Elapsed Time
  • %CPU - CPU Time as a percentage of Elapsed Time
  • %IO - User I/O Time as a percentage of Elapsed Time
  • Only SQL with Cluster Wait Time > .005 seconds is reported
  • Total Cluster Wait Time (s): 0
  • Captured SQL account for 65.3% of Total
Cluster Wait Time (s)Executions%TotalElapsed Time(s)%Clu%CPU%IOSQL IdSQL ModulePDB NameSQL Text
0.05229.211.493.4294.971.859rrvf7y1ftb98JDBC Thin ClientWCMMNG00select OUTPUT from table(dbms_...
0.04124.777.870.5596.521.39a0t0a12gyqm20JDBC Thin ClientWCMMNG00call DBMS_WORKLOAD_REPOSITORY....
0.032,71315.230.594.5094.015.25865qwpcdyggkkWCMMNG00select spare6 from user$ where...
0.022,70811.053.160.6196.630.069zg9qd9bm4spuJDBC Thin ClientWCMMNG00update user$ set spare6=DECODE...
0.019503.40261.670.0098.900.00dprdzbty156uxJDBC Thin ClientWCMMNG00SELECT info.CARD_NUMBER, info....
0.011032.890.0221.0368.4231.99f7xnvp44nukp7WCMMNG00insert into wrm$_snapshot_deta...


Back to SQL Statistics
Back to Top

本节是根据SQL_ID可以从前面的链接到这里查看完整的SQL,分析SQL需要用到完整的SQL信息。
回到顶部

Complete List of SQL Text

SQL IdSQL Text
01davw5xnh2vgSELECT * FROM (SELECT event, total_waits, time_waited, average_wait, wait_class FROM v$system_event WHERE wait_class <> 'Idle' ORDER BY time_waited DESC ) WHERE rownum < 6
0b639nx4zdzxrselect domain# from sys.im_domain$ where objn = :1 and col# = :2
0k8522rmdzg4kselect privilege# from sysauth$ where (grantee#=:1 or grantee#=1) and privilege#>0
0kkhhb2w93cx0update seg$ set type#=:4, blocks=:5, extents=:6, minexts=:7, maxexts=:8, extsize=:9, extpct=:10, user#=:11, iniexts=:12, lists=decode(:13, 65535, NULL, :13), groups=decode(:14, 65535, NULL, :14), cachehint=:15, hwmincr=:16, spare1=DECODE(:17, 0, NULL, :17), scanhint=:18, bitmapranges=:19 where ts#=:1 and file#=:2 and block#=:3
10g91b26jxck2SELECT name, value FROM v$sysstat WHERE name='execute count'
1238ttd8y24zwselect a.username, a.lockwait, a.status, a.machine, a.program from v$session a, v$locked_object b where a.SQL_EXEC_START > SYSDATE-1 and a.sid = b.session_id
1ss9v49tfudvySELECT bus_type, apply_req_id, fill_type, card_number, client_id, card_internal_nbr, verify_date, verify_teller1_type, verify_teller1, verify_teller1_nam, verfiy_teller1_tel, verify_teller2_type, verify_teller2, verify_teller2_nam, verify_teller2_tel, verify_flag, tel_check, dlg_type, dlg_rst, pic_id, spec_code, tech_business_id, tech_trace_id, tech_db_name, tech_mnt_time, tech_version, tech_resv FROM WCM_INFO_VERIFY_T WHERE (CARD_NUMBER IN (:1 , :2 , :3 , :4 , :5 , :6 , :7 , :8 , :9 , :10 , :11 , :12 , :13 , :14 , :15 , :16 , :17 , :18 , :19 , :20 , :21 , :22 , :23 , :24 , :25 , :26 , :27 , :28 , :29 , :30 ))
2ajc7pwz9jsx3select max(scn) from smon_scn_time
2p9fv35c7zxtgselect /* KSXM:LOAD_DML_INF *//*+ leading(o) index(m) use_nl(m) */ nvl(m.inserts, 0) ins, nvl(m.updates, 0) upd, nvl(m.deletes, 0) del, nvl(m.drop_segments, 0) dropseg, nvl(m.flags, 0) flags, nvl(rowcnt, 0) rowcnt, o.pobjn pobjn from (select :objn objn, 0 pobjn, rowcnt from tab$ t where t.obj# = :objn union all select :objn objn, tp.bo# pobjn, rowcnt from tabpart$ tp where tp.obj# = :objn union all select :objn objn, tcp.bo# pobjn, rowcnt from tabcompart$ tcp where tcp.obj# = :objn union all select :objn objn, tsp.pobj# pobjn, rowcnt from tabsubpart$ tsp where tsp.obj# = :objn) o, sys.mon_mods_all$ m where o.objn = m.obj#(+) and rownum < 2
33hkvdfmk3uh9SELECT value as parse_count FROM v$sysstat WHERE name = 'parse count (hard)'
3dbzmtf9ahvztmerge /* KSXM:OPTIM_DML_INF */ into sys.mon_mods_all$ m using dual on (m.obj# = :objn and (:pobjn = 0 or m.obj# = :pobjn or m.obj# in (select obj# from tabpart$ where bo# = :pobjn and obj# = :objn union all select obj# from tabcompart$ where bo# = :pobjn and obj# = :objn union all select tsp.obj# from tabsubpart$ tsp, tabcompart$ tcp where tsp.pobj# = tcp.obj# and (tcp.bo# = :pobjn or tcp.obj# = :pobjn) and tsp.obj# = :objn))) when matched then update set inserts = decode(:reset, 1, 0, inserts) + :ins, updates = decode(:reset, 1, 0, updates) + :upd, deletes = decode(:reset, 1, 0, deletes) + :del, flags = decode(:reset, 1, 0, flags - bitand(flags, :flag)) + :flag, drop_segments = decode(:reset, 1, 0, drop_segments) + :dropseg, timestamp = :time when NOT matched then insert (obj#, inserts, updates, deletes, timestamp, flags, drop_segments) values (:objn, :ins, :upd, :del, :time, :flag, :dropseg) where :ins != 0 or :upd != 0 or :del != 0 or :flag != 0 or :dropseg !=0
3kqrku32p6sfnMERGE /*+ OPT_PARAM('_parallel_syspls_obey_force' 'false') */ INTO OPTSTAT_USER_PREFS$ D USING ( SELECT * FROM (SELECT O.OBJ#, SYSTIMESTAMP CHGTIME, ROUND(MAX(S.DELTA_READ_IO_BYTES/S.DELTA_TIME), 3) SCANRATE FROM GV$ACTIVE_SESSION_HISTORY S, GV$SQL_PLAN P, OBJ$ O, USER$ U WHERE S.INST_ID = P.INST_ID AND S.SQL_ID = P.SQL_ID AND S.SQL_PLAN_HASH_VALUE = P.PLAN_HASH_VALUE AND S.SQL_PLAN_LINE_ID = P.ID AND P.OBJECT_NAME = O.NAME AND (:B4 IS NULL OR O.OBJ# = :B4 ) AND O.OWNER# = U.USER# AND P.OBJECT_OWNER = U.NAME AND O.TYPE# = 2 AND S.CON_ID = SYS_CONTEXT('userenv', 'con_id') AND P.CON_ID = SYS_CONTEXT('userenv', 'con_id') AND S.SQL_PLAN_OPERATION = 'TABLE ACCESS' AND P.OPERATION = 'TABLE ACCESS' AND S.DELTA_TIME > 0 AND S.DELTA_READ_IO_BYTES > 0 AND FROM_TZ(S.SAMPLE_TIME, :B3 ) > :B2 AND (:B1 = 'ON' OR (:B1 = 'HADOOP_ONLY' AND EXISTS ( SELECT NULL FROM SYS.EXTERNAL_TAB$ ET WHERE ET.OBJ# = O.OBJ# AND TYPE$ IN ('ORACLE_HIVE', 'ORACLE_HDFS', 'ORACLE_BIGDATA')))) GROUP BY O.OBJ#) C WHERE NOT EXISTS (SELECT NULL FROM OPTSTAT_USER_PREFS$ PR WHERE PNAME = 'SCAN_RATE' AND C.OBJ# = PR.OBJ# AND (PR.SPARE1 IS NULL OR C.SCANRATE <= TO_NUMBER(PR.VALCHAR))) ) SRC ON (D.OBJ#=SRC.OBJ# AND D.PNAME = 'SCAN_RATE') WHEN MATCHED THEN UPDATE SET D.VALCHAR= TO_CHAR(SRC.SCANRATE), D.CHGTIME=SRC.CHGTIME, D.SPARE1=1 WHEN NOT MATCHED THEN INSERT (OBJ#, PNAME, VALCHAR, CHGTIME, SPARE1) VALUES(SRC.OBJ#, 'SCAN_RATE', TO_CHAR(SRC.SCANRATE), SRC.CHGTIME, 1)
3y2d7rgcy1959SELECT info.CARD_NUMBER, info.CARD_NAME, info.CARD_CODE, info.OPEN_BRANCH, info.OPEN_BANK, 'P' as OPR_RESULT, info.ACTIVE_FLAG, info.OPEN_DATE, info.EFFECT_DATE, info.EXPIRE_DATE, info.CLIENT_ID, info.CARD_INTERNAL_NBR, info.OPEN_OPERATE_TELLER, info.OPEN_AUTH_TELLER FROM WCM_MNG_MAININFO_T info WHERE ( (info.OPEN_DATE = :1 and info.OPEN_BRANCH = :2 and info.CARD_NUMBER > :3 ) or (info.OPEN_DATE = :4 and info.OPEN_BRANCH > :5 ) or info.OPEN_DATE > :6 ) and info.OPEN_BANK = :7 and info.OPEN_DATE >= :8 and info.OPEN_DATE <= :9 and info.CARD_CODE in ( :10 ) and info.ACTIVE_FLAG='Y' ORDER BY info.OPEN_BANK, info.OPEN_DATE, info.OPEN_BRANCH, info.CARD_NUMBER FETCH FIRST :11 ROWS ONLY
586577qpbkgnkselect 1 from DBA_SCHEDULER_JOBS where JOB_NAME like 'KWQICPOSTMSGDEL_1_%' and JOB_ACTION = 'DBMS_AQADM_SYS.REMOVE_ORPHMSGS'
5b64sq2g9zj1aSELECT info.CARD_NUMBER, info.CARD_NAME, info.CARD_CODE, info.OPEN_BRANCH, info.OPEN_BANK, audi.OPR_RESULT, info.ACTIVE_FLAG, info.OPEN_DATE, info.EFFECT_DATE, info.EXPIRE_DATE, info.CLIENT_ID, info.CARD_INTERNAL_NBR, info.OPEN_OPERATE_TELLER, info.OPEN_AUTH_TELLER FROM WCM_MNG_MAININFO_T info LEFT JOIN WCM_APPLY_VERIFY_AUDIT_T audi on audi.APPLY_REQ_ID=info.CARD_NUMBER and audi.AUDI_CODE='OPENCARDAUDIT' and audi.AUDI_DESC='开户审核标记' WHERE info.OPEN_BANK = :1 and info.OPEN_DATE >= :2 and info.OPEN_DATE <= :3 and info.CARD_CODE in ( :4 ) and info.ACTIVE_FLAG='N' ORDER BY info.OPEN_BANK, info.OPEN_DATE, info.OPEN_BRANCH, info.CARD_NUMBER FETCH FIRST :5 ROWS ONLY
5dqz0hqtp9fruselect /*+ connect_by_filtering index(sysauth$ i_sysauth1) */ privilege#, bitand(nvl(option$, 0), 72), grantee#, level from sysauth$ connect by grantee#=prior privilege# and privilege#>0 start with grantee#=:1 and privilege#>0
6fyytvcmzzaxqselect ( (select value from v$sysstat where name='user commits' )+ (select value from v$sysstat where name='user rollbacks' )) as value from dual
6n2qqv1brfhppselect ind.type#, ind.property, base_obj.obj#, base_owner.name, base_obj.name from sys.ind$ ind, sys.user$ base_owner, sys.obj$ base_obj where ind.obj# = :oid and ind.dataobj# = :doid and ind.bo# = base_obj.obj# and base_obj.owner# = base_owner.user#
6tvb8fxmgrkstSELECT value as table_scans FROM v$sysstat WHERE name = 'table scans (long tables)'
76cckj4yysvuaselect time_mp, scn, num_mappings, tim_scn_map from smon_scn_time where scn = (select max(scn) from smon_scn_time where scn <= :1)
865qwpcdyggkkselect spare6 from user$ where user#=:1
9rrvf7y1ftb98select OUTPUT from table(dbms_workload_repository.awr_report_html(:1 , :2 , :3 , :4 , 0))
9tgj4g8y4rwy8select type#, blocks, extents, minexts, maxexts, extsize, extpct, user#, iniexts, NVL(lists, 65535), NVL(groups, 65535), cachehint, hwmincr, NVL(spare1, 0), NVL(scanhint, 0), NVL(bitmapranges, 0) from seg$ where ts#=:1 and file#=:2 and block#=:3
9zg9qd9bm4spuupdate user$ set spare6=DECODE(to_char(:2, 'YYYY-MM-DD'), '0000-00-00', to_date(NULL), :2) where user#=:1
a0t0a12gyqm20call DBMS_WORKLOAD_REPOSITORY.CREATE_SNAPSHOT()
b2cxpv2ah9j3fSELECT * FROM (SELECT user_name, sql_id, count(1) as num from v$open_cursor where user_name is NOT NULL group by user_name, sql_id ORDER BY num DESC) WHERE rownum<=3
b8unvt854zu6kSELECT value as physical_reads FROM v$sysstat WHERE name = 'physical reads'
d9q2q82g1tuzxselect decode(upper(failover_method), NULL, 0 , 'BASIC', 1, 'PRECONNECT', 2 , 'PREPARSE', 4 , 0), decode(upper(failover_type), NULL, 1, 'NONE', 1, 'SESSION', 2, 'SELECT', 4, 'TRANSACTION', 8, 'AUTO' , 32, 1 ), failover_retries, failover_delay, flags, nvl(replay_initiation_timeout, 900), decode(upper(session_state_consistency), 'STATIC', 16, 0), failover_restore from sys.service$ where name = :1
dprdzbty156uxSELECT info.CARD_NUMBER, info.CARD_NAME, info.CARD_CODE, info.OPEN_BRANCH, info.OPEN_BANK, audi.OPR_RESULT, info.ACTIVE_FLAG, info.OPEN_DATE, info.EFFECT_DATE, info.EXPIRE_DATE, info.CLIENT_ID, info.CARD_INTERNAL_NBR, info.OPEN_OPERATE_TELLER, info.OPEN_AUTH_TELLER FROM WCM_MNG_MAININFO_T info LEFT JOIN WCM_APPLY_VERIFY_AUDIT_T audi on audi.APPLY_REQ_ID=info.CARD_NUMBER and audi.AUDI_CODE='OPENCARDAUDIT' and audi.AUDI_DESC='开户审核标记' WHERE ( (info.OPEN_DATE = :1 and info.OPEN_BRANCH = :2 and info.CARD_NUMBER > :3 ) or (info.OPEN_DATE = :4 and info.OPEN_BRANCH > :5 ) or info.OPEN_DATE > :6 ) and info.OPEN_BANK = :7 and info.OPEN_DATE >= :8 and info.OPEN_DATE <= :9 and info.CARD_CODE in ( :10 ) and info.ACTIVE_FLAG='N' ORDER BY info.OPEN_BANK, info.OPEN_DATE, info.OPEN_BRANCH, info.CARD_NUMBER FETCH FIRST :11 ROWS ONLY
f0h5rpzmhju11select SYS_CONTEXT('USERENV', 'SERVER_HOST'), SYS_CONTEXT('USERENV', 'DB_UNIQUE_NAME'), SYS_CONTEXT('USERENV', 'INSTANCE_NAME'), SYS_CONTEXT('USERENV', 'INSTANCE'), STARTUP_TIME, SYS_CONTEXT('USERENV', 'DB_DOMAIN'), SYS_CONTEXT('USERENV', 'SERVICE_NAME') from v$instance
f424nh2d912f9SELECT value as sorts FROM v$sysstat WHERE name = 'sorts (disk)'
f7xnvp44nukp7insert into wrm$_snapshot_details (snap_id, dbid, instance_number, table_id, begin_time, end_time, step_id) values (:snap_id, :dbid, :instance_number, :bind1, :bind2, :bind3, :step_id)
fy8bgmw8b2swbselect a.dbid, a.status_flag from wrm$_wr_control a, (select distinct dbid from wrm$_database_instance) b where a.dbid = b.dbid
gjq63nfm9bd6uSELECT info.CARD_NUMBER, info.CARD_NAME, info.CARD_CODE, info.OPEN_BRANCH, info.OPEN_BANK, 'P' as OPR_RESULT, info.ACTIVE_FLAG, info.OPEN_DATE, info.EFFECT_DATE, info.EXPIRE_DATE, info.CLIENT_ID, info.CARD_INTERNAL_NBR, info.OPEN_OPERATE_TELLER, info.OPEN_AUTH_TELLER FROM WCM_MNG_MAININFO_T info WHERE info.OPEN_BANK = :1 and info.OPEN_DATE >= :2 and info.OPEN_DATE <= :3 and info.CARD_CODE in ( :4 ) and info.ACTIVE_FLAG='Y' ORDER BY info.OPEN_BANK, info.OPEN_DATE, info.OPEN_BRANCH, info.CARD_NUMBER FETCH FIRST :5 ROWS ONLY

Back to SQL Statistics
Back to Top

Instance Activity Statistics

  • Key Instance Activity Stats
  • Instance Activity Stats
  • Instance Activity Stats - Absolute Values

Back to Top

Key Instance Activity Stats

  • Ordered by statistic name
StatisticTotalper Secondper Trans
db block changes20,66323.17712.52
execute count539,551604.8918,605.21
gc cr block receive time30.000.10
gc cr blocks received6460.7222.28
gc current block receive time30.000.10
gc current blocks received5120.5717.66
logons cumulative2,7333.0694.24
opened cursors cumulative23,56226.42812.48
parse count (total)23,15425.96798.41
parse time elapsed1490.175.14
physical reads1160.134.00
physical writes00.000.00
redo size4,706,6645,276.60162,298.76
session cursor cache hits6420.7222.14
session logical reads213,192,525239,008.297,351,466.38
user calls1,057,4771,185.5336,464.72
user commits280.030.97
user rollbacks10.000.03
workarea executions - multipass00.000.00
workarea executions - onepass00.000.00
workarea executions - optimal34,39338.561,185.97


Back to Instance Activity Statistics
Back to Top

本节是实例活动统计。有三个方面需要关注
1)由consistent gets,db block gets和physical reads这三个值,也可以计算得到buffer hit ratio,计算的公式如下:
buffer hit ratio = 100*(1-physical reads /(consistent gets+ db block gets));
2)dirty buffers inspected,脏数据从LRU列表中老化,如果dirty buffers inspected这个值大于0,就需要考虑增加DBWRs;
3)free buffer inspected这个值包含dirty,pinned,busy的buffer区域,
如果free buffer inspected - dirty buffers inspected - buffer is pinned count的值还是比较大,表明不能被重用的内存块比较多,
这将导致latch争用,需要增大buffer cache;
4)sorts(disk)磁盘排序一般不能超过5%。如果超过5%,需要设置参数PGA_AGGREGATE_TARGET或者 SORT_AREA_SIZE,注意,
这里SORT_AREA_SIZE是分配给每个用户的,PGA_AGGREGATE_TARGET则是针对所有的session的一个总数设置;
5)table fetch by rowid通过索引或者where rowid=语句来取得的行数,这个值越大越好;
6)table fetch continued row这是发生行迁移的行。当行迁移的情况比较严重时,需要对这部分进行优化。
检查行迁移的方法:
a)	运行$ORACLE_HOME/rdbms/admin/utlchain.sql
b)	analyze table table_name list chained rows into CHAINED_ROWS
c)	select * from CHAINED_ROWS where table_name='table_name';
清除的方法:
方法1:create table table_name_tmp as select * from table_name where rowed in (select head_rowid from chained_rows);Delete from table_name where rowed in (select head_rowid from chained_rows);Insert into table_name select * from table_name_tmp;
方法2:create table table_name_tmp select * from table_name ;
truncate table table_name
insert into table_name select * from table_name_tmp
方法3:用exp工具导出表,然后删除这个表,最后用imp工具导入这表
方法4:alter table table_name move tablespace tablespace_name,然后再重新表的索引
上面的4种方法可以用以消除已经存在的行迁移现象,但是行迁移的产生很多情况下时由于PCT_FREE参数设置的太小所导致,所以需要调整PCT_FREE参数的值
7)table scans (long tables)就是表的大小超过buffer buffer* _SMALL_TABLE_THRESHOLD的表。如果一个数据库的大表扫描过多,
那么db file scattered read等待事件可能同样非常显著。如果table scans (long tables)的per Trans值大于0,你可能需要增加适当的索引来优化你的SQL语句;
8)table scans (short tables)是指表的长度低于buffer chache 2%(2%是有隐含参数_SMALL_TABLE_THRESHOLD定义的,
这个参数在oracle不同的版本中,有不同的含义。在9i和10g中,该参数值定义为2%,在8i中,该参数值为20个blocks,在v7中,该参数为5个blocks)的表。
这些表将优先使用全表扫描。一般不使用索引。_SMALL_TABLE_THRESHOLD值的计算方法如下(9i,8K): (db_cache_size/8192)*2%。
注意:_SMALL_TABLE_THRESHOLD参数修改是相当危险的操作。
回到顶部

Instance Activity Stats

  • Ordered by statistic name
StatisticTotalper Secondper Trans
ASSM cbk:blocks examined3880.4313.38
ASSM cbk:blocks marked full950.113.28
ASSM gsp:L1 bitmaps examined3160.3510.90
ASSM gsp:L2 bitmap full50.010.17
ASSM gsp:L2 bitmaps examined1100.123.79
ASSM gsp:Optimized reject DB00.000.00
ASSM gsp:Optimized reject l100.000.00
ASSM gsp:Search all50.010.17
ASSM gsp:Search hint50.010.17
ASSM gsp:Search steal40.000.14
ASSM gsp:bump HWM40.000.14
ASSM gsp:get free block2930.3310.10
ASSM gsp:get free data block00.000.00
ASSM gsp:good hint1930.226.66
ASSM gsp:reject L100.000.00
ASSM gsp:reject db00.000.00
ASSM rsv:fill reserve00.000.00
ASSM wasted db state change10.000.03
Batched IO (bound) vector count30.000.10
Batched IO block miss count240.030.83
Batched IO double miss count10.000.03
Batched IO same unit count130.010.45
Batched IO single block count30.000.10
Batched IO vector block count80.010.28
Batched IO vector read count10.000.03
Block Cleanout Optim referenced260.030.90
CCursor + sql area evicted40.000.14
CPU used by this session119,255133.704,112.24
CPU used when call started119,258133.704,112.34
CR blocks created60.010.21
Cached Commit SCN referenced2,502,4982,805.5386,293.03
Commit SCN cached140.020.48
DFO trees parallelized40.000.14
Effective IO time12,18213.66420.07
HSC Heap Segment Block Changes3,3273.73114.72
Heap Segment Array Inserts1470.165.07
Heap Segment Array Updates2,7023.0393.17
KTFB alloc req60.010.21
KTFB alloc space (block)4,325,3764,849.14149,150.90
KTFB alloc time (ms)9011.0131.07
KTFB apply req20.000.07
KTFB apply time (ms)140.020.48
KTFB commit req00.000.00
KTFB commit time (ms)00.000.00
KTFB free req00.000.00
KTFB free space (block)00.000.00
KTFB free time (ms)00.000.00
LOB table id lookup cache misses00.000.00
Number of read IOs issued00.000.00
PX local messages recv'd890.103.07
PX local messages sent900.103.10
PX remote messages recv'd80.010.28
PX remote messages sent1430.164.93
Parallel operations downgraded to serial00.000.00
Parallel operations not downgraded40.000.14
Requests to/from client1,049,2441,176.3036,180.83
RowCR attempts00.000.00
RowCR hits00.000.00
SQL*Net roundtrips to/from client1,049,3151,176.3836,183.28
active txn count during cleanout1890.216.52
blocks cleaned out using minact1480.175.10
branch node splits00.000.00
buffer is not pinned count121,357,980136,053.384,184,757.93
buffer is pinned count715,212,470801,818.4924,662,498.97
bytes received via SQL*Net from client30,399,63934,080.771,048,263.41
bytes sent via SQL*Net to client70,402,21478,927.312,427,662.55
calls to get snapshot scn: kcmgss551,276618.0319,009.52
calls to kcmgas6,2066.96214.00
calls to kcmgcs22,93625.71790.90
cell physical IO interconnect bytes22,355,96825,063.08770,895.45
change write time250.030.86
cleanout - number of ktugct calls3290.3711.34
cleanouts and rollbacks - consistent read gets00.000.00
cleanouts only - consistent read gets1690.195.83
cluster key scan block gets5,4966.16189.52
cluster key scans5,4966.16189.52
commit batch/immediate performed00.000.00
commit batch/immediate requested00.000.00
commit cleanout failures: block lost60.010.21
commit cleanout failures: buffer being written00.000.00
commit cleanout failures: callback failure160.020.55
commit cleanout failures: cannot pin00.000.00
commit cleanouts3,2763.67112.97
commit cleanouts successfully completed3,2543.65112.21
commit immediate performed00.000.00
commit immediate requested00.000.00
commit txn count during cleanout2920.3310.07
consistent changes1690.195.83
consistent gets213,171,694238,984.937,350,748.07
consistent gets direct00.000.00
consistent gets examination154,465,195173,169.595,326,386.03
consistent gets examination (fastpath)154,464,845173,169.205,326,373.97
consistent gets from cache213,171,694238,984.937,350,748.07
consistent gets pin58,706,49965,815.352,024,362.03
consistent gets pin (fastpath)58,705,76265,814.522,024,336.62
cursor authentications00.000.00
cursor reload failures00.000.00
data blocks consistent reads - undo records applied120.010.41
db block changes20,66323.17712.52
db block gets20,83123.35718.31
db block gets direct00.000.00
db block gets from cache20,83123.35718.31
db block gets from cache (fastpath)14,11615.83486.76
deferred (CURRENT) block cleanout applications2,9173.27100.59
dirty buffers inspected00.000.00
enqueue conversions290.031.00
enqueue releases11,73513.16404.66
enqueue requests11,74213.16404.90
enqueue timeouts00.000.00
enqueue waits760.092.62
exchange deadlocks00.000.00
execute count539,551604.8918,605.21
failed probes on index block reclamation00.000.00
file io service time140.020.48
free buffer inspected3,3093.71114.10
free buffer requested4,0774.57140.59
gc cleanout applied00.000.00
gc cleanout saved60.010.21
gc cr block receive time30.000.10
gc cr blocks received6460.7222.28
gc cr multiblock grant time00.000.00
gc cr multiblock grants received00.000.00
gc current block receive time30.000.10
gc current blocks received5120.5717.66
gc force cr read cr30.000.10
gc force cr read current00.000.00
gc local grants1400.164.83
gc merge pi fg1450.165.00
gc reader bypass grants70.010.24
gc reader bypass waits10.000.03
gc remote grants2830.329.76
gc status messages received1510.175.21
gcs affinity lock failures00.000.00
gcs affinity lock grants70.010.24
gcs data block access records1,0021.1234.55
gcs messages sent1,4291.6049.28
gcs stats management (SCM) process posts40.000.14
ges messages sent2,9473.30101.62
global enqueue gets sync160,478179.915,533.72
global enqueue releases160,414179.845,531.52
heap block compress80.010.28
hot buffers moved to head of LRU63,44971.132,187.90
immediate (CR) block cleanout applications1690.195.83
immediate (CURRENT) block cleanout applications2120.247.31
index crx upgrade (positioned)00.000.00
index crx upgrade (prefetch)00.000.00
index fast full scans (full)160.020.55
index fetch by key56,949,94663,846.091,963,791.24
index range scans598,262670.7120,629.72
index reclamation/extension switch00.000.00
index split cancel wait clean70.010.24
index split cancel wait noclean300.031.03
leaf node 90-10 splits00.000.00
leaf node splits550.061.90
lob reads4,8165.40166.07
lob writes760.092.62
lob writes unaligned760.092.62
logical read bytes from cache1,746,473,164,8001,957,955,897.1660,223,212,579.31
logons cumulative2,7333.0694.24
max cf enq hold time00.000.00
messages sent2,7613.1095.21
min active SCN optimization applied on CR00.000.00
no work - consistent read gets58,682,92965,788.922,023,549.28
non-idle wait count1,227,8501,376.5342,339.66
opened cursors cumulative23,56226.42812.48
parse count (describe)00.000.00
parse count (failures)00.000.00
parse count (hard)110.010.38
parse count (total)23,15425.96798.41
parse time cpu1250.144.31
parse time elapsed1490.175.14
physical read IO requests1160.134.00
physical read bytes950,2721,065.3432,768.00
physical read total IO requests1,4331.6149.41
physical read total bytes22,355,96825,063.08770,895.45
physical read total multi block requests00.000.00
physical reads1160.134.00
physical reads cache980.113.38
physical reads cache prefetch00.000.00
physical reads direct180.020.62
physical reads direct (lob)180.020.62
physical reads direct temporary tablespace00.000.00
physical reads prefetch warmup00.000.00
physical write IO requests00.000.00
physical write bytes00.000.00
physical write total IO requests00.000.00
physical write total bytes00.000.00
physical write total multi block requests00.000.00
physical writes00.000.00
physical writes direct00.000.00
physical writes direct (lob)00.000.00
physical writes direct temporary tablespace00.000.00
physical writes non checkpoint00.000.00
pinned buffers inspected210.020.72
pinned cursors current10.000.03
prefetched blocks aged out before use00.000.00
process last non-idle time8931.0030.79
queries parallelized30.000.10
recursive calls757,489849.2126,120.31
recursive cpu usage1,3371.5046.10
redo buffer allocation retries10.000.03
redo entries10,63811.93366.83
redo log space requests10.000.03
redo ordering marks00.000.00
redo size4,706,6645,276.60162,298.76
redo size for direct writes00.000.00
redo subscn max counts2170.247.48
redo synch poll writes00.000.00
redo synch polls00.000.00
redo synch time720.082.48
redo synch time (usec)945,0141,059.4532,586.69
redo synch time overhead (usec)3,4583.88119.24
redo synch time overhead count ( 2ms)2070.237.14
redo synch time overhead count ( 8ms)00.000.00
redo synch writes2,7053.0393.28
redo write broadcast ack count00.000.00
redo write broadcast ack time00.000.00
redo write info find2070.237.14
rollback changes - undo records applied00.000.00
rollbacks only - consistent read gets60.010.21
root node splits00.000.00
rows fetched via callback39,707,27644,515.481,369,216.41
saved cleanout failures: callback failure00.000.00
saved cleanouts00.000.00
saved cleanouts successfully completed00.000.00
securefile allocation bytes00.000.00
securefile allocation chunks00.000.00
securefile bytes non-transformed00.000.00
securefile direct read bytes147,456165.315,084.69
securefile direct read ops180.020.62
securefile direct write bytes00.000.00
securefile direct write ops00.000.00
securefile number of non-transformed flushes00.000.00
segment chunks allocation from dispenser00.000.00
segment dispenser allocations00.000.00
session connect time00.000.00
session cursor cache hits6420.7222.14
session logical reads213,192,525239,008.297,351,466.38
shared hash latch upgrades - no wait2,3212.6080.03
shared hash latch upgrades - wait00.000.00
shared io pool buffer get success180.020.62
sorts (disk)00.000.00
sorts (memory)781,461876.0926,946.93
sorts (rows)348,679,723390,901.8112,023,438.72
sql area evicted40.000.14
sql area purged40.000.14
switch current caused by our pin2,5992.9189.62
switch current to new buffer2,5992.9189.62
table fetch by rowid389,572,881436,746.7713,433,547.62
table fetch continued row00.000.00
table scan blocks gotten15,057,92416,881.31519,238.76
table scan disk non-IMC rows gotten219,570,816246,158.937,571,407.45
table scan rows gotten219,570,816246,158.937,571,407.45
table scans (direct read)00.000.00
table scans (long tables)00.000.00
table scans (short tables)3,8854.36133.97
temp space allocated (bytes)00.000.00
total cf enq hold time00.000.00
total number of cf enq holders00.000.00
transaction rollbacks00.000.00
undo change vector size1,507,8521,690.4451,994.90
user calls1,057,4771,185.5336,464.72
user commits280.030.97
user logons cumulative2,7163.0493.66
user logouts cumulative2,7093.0493.41
user rollbacks10.000.03
workarea executions - multipass00.000.00
workarea executions - onepass00.000.00
workarea executions - optimal34,39338.561,185.97
write clones created in foreground00.000.00


Back to Instance Activity Statistics
Back to Top

本节不用关注。
回到顶部

Instance Activity Stats - Absolute Values

  • Statistics with absolute values (should not be diffed)
StatisticBegin ValueEnd Value
logons current613
opened cursors current20151
session cursor cache count3,653,5403,673,610
session pga memory42,746,83273,630,648
session pga memory max657,163,888866,567,768
session uga memory117,584,104,912118,228,340,880
session uga memory max1,225,451,381,7761,231,951,850,592


Back to Instance Activity Statistics
Back to Top

通常,在这里期望在各设备上的读取和写入操作是均匀分布的。要找出什么文件可能非常“热”。一旦DBA了解了如何读取和写入这些数据,
他们也许能够通过磁盘间更均匀的分配I/O而得到某些性能提升。在这里主要关注Av Rd(ms)列 (reads per millisecond)的值,
一般来说,大部分的磁盘系统的这个值都能调整到14ms以下,oracle认为该值超过20ms都是不必要的。如果该值超过1000ms,
基本可以肯定存在I/O的性能瓶颈。如果在这一列上出现######,可能是系统存在严重的I/O问题,也可能是格式的显示问题。
当出现上面的问题,可以考虑以下的方法:
1)优化操作该表空间或者文件的相关的语句。
2)如果该表空间包含了索引,可以考虑压缩索引,是索引的分布空间减小,从而减小I/O。
3)将该表空间分散在多个逻辑卷中,平衡I/O的负载。
4)可以通过设置参数DB_FILE_MULTIBLOCK_READ_COUNT来调整读取的并行度,这将提高全表扫描的效率。但是也会带来一个问题,
就是oracle会因此更多的使用全表扫描而放弃某些索引的使用。为解决这个问题,需要设置另外一个参数OPTIMIZER_INDEX_COST_ADJ=30(一般建议设置10-50)。
关于OPTIMIZER_INDEX_COST_ADJ=n:该参数是一个百分比值,缺省值为100,可以理解为FULL SCAN COST/INDEX SCAN COST。
当n%* INDEX SCAN COST
回到顶部

IO Stats

  • IOStat by Filetype summary
  • Tablespace IO Stats
  • File IO Stats

Back to Top

IOStat by Filetype summary

  • 'Data' columns suffixed with M,G,T,P are in multiples of 1024 other columns suffixed with K,M,G,T,P are in multiples of 1000
  • Small Read and Large Read are average service times
  • Ordered by (Data Read + Write) desc
Filetype NameReads: DataReqs per secData per secWrites: DataReqs per secData per secSmall ReadLarge Read
Data File1M0.45.001M7M0.72.008M518.80us
TOTAL:1M0.45.001M7M0.72.008M518.80us


Back to IO Stats
Back to Top

显示每个表空间的I/O统计。根据Oracle经验,Av Rd(ms) [Average Reads in milliseconds]不应该超过30,否则认为有I/O争用。
回到顶部

Tablespace IO Stats

No data exists for this section of the report.

Back to IO Stats
Back to Top

本节不用关注。
回到顶部

File IO Stats

No data exists for this section of the report.

Back to IO Stats
Back to Top

本节不用关注。
回到顶部

Buffer Wait Statistics

No data exists for this section of the report.


Back to Top

Undo从9i开始,回滚段一般都是自动管理的,一般情况下,不需要太重点关注。
这里,主要关注pct waits,如果出现比较多的pct waits,那就需要增加回滚段的数量或者增大回滚段的空间。
另外,观察一下各个回滚段使用的情况,比较理想的是各个回滚段上Avg Active比较均衡。在oracle 9i之前,
回滚段是手工管理的,可以通过指定optimal值来设定一个回滚段收缩的值,如果不设定,默认也应当为
initial+(minextents-1)*next extents ,这个指定的结果,就是限制了回滚段不能无限制的增长,
当超过optimal的设定值后,在适当的时候,oracle会shrinks到optimal大小。但是9i之后,
undo一般都设置为auto模式,在这种模式下,无法指定optimal值,好像也没有默认值,所以无法shrinks,
回滚段就会无限制的增长,一直到表空间利用率达到为100%,如果表空间设置为自动扩展的方式,这种情况下,
就更糟糕,undo将无限制的增长。shrinks的值为0表明从来就没收缩过。
回到顶部

Undo Statistics

  • Undo Segment Summary
  • Undo Segment Stats

Back to Top

Undo Segment Summary

  • Min/Max TR (mins) - Min and Max Tuned Retention (minutes)
  • STO - Snapshot Too Old count, OOS - Out of Space count
  • Undo segment block stats:
  • uS - unexpired Stolen, uR - unexpired Released, uU - unexpired reUsed
  • eS - expired Stolen, eR - expired Released, eU - expired reUsed
Undo TS#Num Undo Blocks (K)Number of TransactionsMax Qry Len (s)Max Tx ConcurcyMin/Max TR (mins)STO/ OOSuS/uR/uU/ eS/eR/eU
20.444,08449315/150/00/0/0/0/0/694


Back to Undo Statistics
Back to Top

Undo Segment Stats

  • Most recent 35 Undostat rows, ordered by Time desc
End TimeNum Undo BlocksNumber of TransactionsMax Qry Len (s)Max Tx ConcyTun Ret (mins)STO/ OOSuS/uR/uU/ eS/eR/eU
08-Mar 15:10421,836491150/00/0/0/0/0/264
08-Mar 15:004002,24803150/00/0/0/0/0/430


Back to Undo Statistics
Back to Top

本节Segment章节是如果数据库I/O有瓶颈,建议关注这些segment章节,从不同维度来分析的,
比如逻辑读,物理读,没有优化的读,有优化的读,直接物理读,物理写,直接写,表扫,数据块,ITL等待。
建议关注以下章节:
1)逻辑读和物理读;
2)逻辑写和物理写;
3)缓冲忙等待
4)表扫
5)行锁等待
需要考虑以下三方面的使用情况:
1)表
2)索引
3)分区
回到顶部

Segment Statistics

  • Segments by Logical Reads
  • Segments by Physical Reads
  • Segments by Physical Read Requests
  • Segments by UnOptimized Reads
  • Segments by Optimized Reads
  • Segments by Direct Physical Reads
  • Segments by Physical Writes
  • Segments by Physical Write Requests
  • Segments by Direct Physical Writes
  • Segments by Table Scans
  • Segments by DB Blocks Changes
  • Segments by Row Lock Waits
  • Segments by ITL Waits
  • Segments by Buffer Busy Waits
  • Segments by Global Cache Buffer Busy
  • Segments by CR Blocks Received
  • Segments by Current Blocks Received
  • Segments by Global Cache Remote Grants

Back to Top

Segments by Logical Reads

  • Total Logical Reads: 213,192,525
  • Captured Segments account for 100.0% of Total
  • When ** MISSING ** occurs, some of the object attributes may not be available
OwnerTablespace NameObject NameSubobject NameObj. TypeObj#Dataobj#Logical Reads%TotalPDB Name
WCMMNG00TBS_CUR_IDXWCM_APPLY_VERIFY_AUDIT_IDX_1INDEX2490424904113,587,42453.28WCMMNG00
WCMMNG00TBS_CUR_DATWCM_APPLY_VERIFY_AUDIT_TTABLE247712477154,731,84025.67WCMMNG00
WCMMNG00TBS_CUR_DATWCM_MNG_MAININFO_TTABLE246882468841,063,69619.26WCMMNG00
APPHIGH1SYSTEMWCM_MNG_MAININFO_T_CARD_CODE_IDXINDEX75583755833,172,2241.49WCMMNG00
SYSSYSTEMSYSAUTH$TABLE145145130,6560.06WCMMNG00


Back to Segment Statistics
Back to Top

Segments by Physical Reads

  • Total Physical Reads: 116
  • Captured Segments account for 60.3% of Total
  • When ** MISSING ** occurs, some of the object attributes may not be available
OwnerTablespace NameObject NameSubobject NameObj. TypeObj#Dataobj#Physical Reads%TotalPDB Name
SYSSYSAUXSYS_LOB0000011151C00038$$LOB11152111521815.52WCMMNG00
SYSSYSAUXWRM$_SNAPSHOT_DETAILS_INDEXINDEX115861158686.90WCMMNG00
SYSSYSAUXWRH$_ENQUEUE_STAT_PKINDEX111861118676.03WCMMNG00
SYSSYSAUXWRH$_MUTEX_SLEEP_PKINDEX112181121865.17WCMMNG00
SYSSYSAUXWRH$_BG_EVENT_SUMMARY_PKINDEX111761117643.45WCMMNG00


Back to Segment Statistics
Back to Top

Segments by Physical Read Requests

  • Total Physical Read Requests: 116
  • Captured Segments account for 61.2% of Total
  • When ** MISSING ** occurs, some of the object attributes may not be available
OwnerTablespace NameObject NameSubobject NameObj. TypeObj#Dataobj#Phys Read Requests%TotalPDB Name
SYSSYSAUXSYS_LOB0000011151C00038$$LOB11152111521815.52WCMMNG00
SYSSYSAUXWRM$_SNAPSHOT_DETAILS_INDEXINDEX115861158697.76WCMMNG00
SYSSYSAUXWRH$_ENQUEUE_STAT_PKINDEX111861118676.03WCMMNG00
SYSSYSAUXWRH$_MUTEX_SLEEP_PKINDEX112181121865.17WCMMNG00
SYSSYSAUXWRH$_BG_EVENT_SUMMARY_PKINDEX111761117643.45WCMMNG00


Back to Segment Statistics
Back to Top

Segments by UnOptimized Reads

  • Total UnOptimized Read Requests: 116
  • Captured Segments account for 61.2% of Total
  • When ** MISSING ** occurs, some of the object attributes may not be available
OwnerTablespace NameObject NameSubobject NameObj. TypeObj#Dataobj#UnOptimized Reads%TotalPDB Name
SYSSYSAUXSYS_LOB0000011151C00038$$LOB11152111521815.52WCMMNG00
SYSSYSAUXWRM$_SNAPSHOT_DETAILS_INDEXINDEX115861158697.76WCMMNG00
SYSSYSAUXWRH$_ENQUEUE_STAT_PKINDEX111861118676.03WCMMNG00
SYSSYSAUXWRH$_MUTEX_SLEEP_PKINDEX112181121865.17WCMMNG00
SYSSYSAUXWRH$_BG_EVENT_SUMMARY_PKINDEX111761117643.45WCMMNG00


Back to Segment Statistics
Back to Top

Segments by Optimized Reads

No data exists for this section of the report.

Back to Segment Statistics
Back to Top

Segments by Direct Physical Reads

No data exists for this section of the report.

Back to Segment Statistics
Back to Top

Segments by Physical Writes

  • Total Physical Writes: 1
  • Captured Segments account for 4.6E+04% of Total
  • When ** MISSING ** occurs, some of the object attributes may not be available
OwnerTablespace NameObject NameSubobject NameObj. TypeObj#Dataobj#Physical Writes%TotalPDB Name
SYSSYSAUXWRH$_SYSSTAT_PKWRH$_SYSSTAT_1924087814_MXSNINDEX PARTITION7527375273686800.00WCMMNG00
SYSSYSAUXWRH$_SQLSTAT_INDEXWRH$_SQLSTAT_1924087814_MXSNINDEX PARTITION7523975239424200.00WCMMNG00
SYSSYSAUXWRH$_PARAMETERWRH$_PARAMETER_1924087814_MXSNTABLE PARTITION6564475276343400.00WCMMNG00
SYSSYSAUXWRH$_LATCHWRH$_LATCH_1924087814_MXSNTABLE PARTITION6561275252262600.00WCMMNG00
SYSSYSAUXWRH$_LATCH_PKWRH$_LATCH_1924087814_MXSNINDEX PARTITION7525375253202000.00WCMMNG00


Back to Segment Statistics
Back to Top

Segments by Physical Write Requests

  • Total Physical Write Requests: 1
  • Captured Segments account for 3.1E+04% of Total
  • When ** MISSING ** occurs, some of the object attributes may not be available
OwnerTablespace NameObject NameSubobject NameObj. TypeObj#Dataobj#Phys Write Requests%TotalPDB Name
SYSSYSAUXWRH$_SYSSTAT_PKWRH$_SYSSTAT_1924087814_MXSNINDEX PARTITION7527375273343400.00WCMMNG00
SYSSYSAUXWRH$_SQLSTAT_INDEXWRH$_SQLSTAT_1924087814_MXSNINDEX PARTITION7523975239262600.00WCMMNG00
SYSSYSAUXWRH$_LATCH_PKWRH$_LATCH_1924087814_MXSNINDEX PARTITION7525375253171700.00WCMMNG00
SYSSYSAUXWRH$_SEG_STAT_OBJTABLE1134311343131300.00WCMMNG00
SYSSYSAUXWRH$_SYSSTATWRH$_SYSSTAT_1924087814_MXSNTABLE PARTITION6564075272121200.00WCMMNG00


Back to Segment Statistics
Back to Top

Segments by Direct Physical Writes

No data exists for this section of the report.

Back to Segment Statistics
Back to Top

Segments by Table Scans

  • Total Table Scans: 16
  • Captured Segments account for 37.5% of Total
  • When ** MISSING ** occurs, some of the object attributes may not be available
OwnerTablespace NameObject NameSubobject NameObj. TypeObj#Dataobj#Table Scans%TotalPDB Name
SYSSYSAUXWRH$_EVENT_NAME_PKINDEX1117211172637.50WCMMNG00


Back to Segment Statistics
Back to Top

Segments by DB Blocks Changes

  • % of Capture shows % of DB Block Changes for each top segment compared
  • with total DB Block Changes for all segments captured by the Snapshot
  • When ** MISSING ** occurs, some of the object attributes may not be available
OwnerTablespace NameObject NameSubobject NameObj. TypeObj#Dataobj#DB Block Changes% of CapturePDB Name
SYSSYSTEMUSER$TABLE221043,34489.88WCMMNG00
SYSSYSAUXWRH$_SYSSTAT_PKWRH$_SYSSTAT_1924087814_MXSNINDEX PARTITION75273752731,9043.95WCMMNG00
SYSSYSAUXWRH$_LATCH_PKWRH$_LATCH_1924087814_MXSNINDEX PARTITION75253752537521.56WCMMNG00
SYSSYSAUXWRH$_LATCH_MISSES_SUMMARY_PKWRH$_LATCH_MISSES_SUMMARY_1924087814_MXSNINDEX PARTITION75257752572400.50WCMMNG00
SYSSYSAUXWRH$_PARAMETER_PKWRH$_PARAMETER_1924087814_MXSNINDEX PARTITION75277752772240.46WCMMNG00


Back to Segment Statistics
Back to Top

Segments by Row Lock Waits

No data exists for this section of the report.

Back to Segment Statistics
Back to Top

Segments by ITL Waits

No data exists for this section of the report.

Back to Segment Statistics
Back to Top

Segments by Buffer Busy Waits

No data exists for this section of the report.

Back to Segment Statistics
Back to Top

Segments by Global Cache Buffer Busy

No data exists for this section of the report.

Back to Segment Statistics
Back to Top

Segments by CR Blocks Received

  • Total CR Blocks Received: 646
  • Captured Segments account for 87.2% of Total
  • When ** MISSING ** occurs, some of the object attributes may not be available
OwnerTablespace NameObject NameSubobject NameObj. TypeObj#Dataobj#CR Blocks Received%TotalPDB Name
SYSSYSTEMUSER$TABLE221021533.28WCMMNG00
SYSSYSAUXWRH$_SYSSTAT_PKWRH$_SYSSTAT_1924087814_MXSNINDEX PARTITION7527375273426.50WCMMNG00
SYSSYSAUXWRH$_SEG_STAT_OBJTABLE1134311343335.11WCMMNG00
SYSSYSAUXWRH$_SYSSTATWRH$_SYSSTAT_1924087814_MXSNTABLE PARTITION6564075272324.95WCMMNG00
SYSSYSAUXWRH$_LATCH_PKWRH$_LATCH_1924087814_MXSNINDEX PARTITION7525375253264.02WCMMNG00


Back to Segment Statistics
Back to Top

Segments by Current Blocks Received

  • Total Current Blocks Received: 512
  • Captured Segments account for 82.0% of Total
  • When ** MISSING ** occurs, some of the object attributes may not be available
OwnerTablespace NameObject NameSubobject NameObj. TypeObj#Dataobj#Current Blocks Received%TotalPDB Name
SYSSYSTEMUSER$TABLE221010720.90WCMMNG00
SYSSYSAUXWRH$_SQLSTAT_INDEXWRH$_SQLSTAT_1924087814_MXSNINDEX PARTITION7523975239407.81WCMMNG00
SYSSYSAUXWRH$_SYSSTAT_PKWRH$_SYSSTAT_1924087814_MXSNINDEX PARTITION7527375273397.62WCMMNG00
SYSSYSAUXWRH$_SYSSTATWRH$_SYSSTAT_1924087814_MXSNTABLE PARTITION6564075272214.10WCMMNG00
SYSSYSAUXWRH$_LATCH_PKWRH$_LATCH_1924087814_MXSNINDEX PARTITION7525375253193.71WCMMNG00


Back to Segment Statistics
Back to Top

Segments by Global Cache Remote Grants

  • Total Global Cache Remote Grants: 283
  • Captured Segments account for 100.4% of Total
  • When ** MISSING ** occurs, some of the object attributes may not be available
OwnerTablespace NameObject NameSubobject NameObj. TypeObj#Dataobj#GC Remote Grants%TotalPDB Name
SYSSYSAUXWRH$_SYSSTAT_PKWRH$_SYSSTAT_1924087814_MXSNINDEX PARTITION75273752735920.85WCMMNG00
SYSSYSAUXWRH$_LATCH_MISSES_SUMMARY_PKWRH$_LATCH_MISSES_SUMMARY_1924087814_MXSNINDEX PARTITION75257752573412.01WCMMNG00
SYSSYSAUXWRH$_PARAMETERWRH$_PARAMETER_1924087814_MXSNTABLE PARTITION65644752763211.31WCMMNG00
SYSSYSAUXWRH$_LATCH_PKWRH$_LATCH_1924087814_MXSNINDEX PARTITION7525375253279.54WCMMNG00
SYSSYSAUXWRH$_CON_SYSSTATWRH$_CON_SYSSTAT_1924087814_MXSNTABLE PARTITION6574475376196.71WCMMNG00


Back to Segment Statistics
Back to Top

本节不用关注。
回到顶部

Dictionary Cache Statistics

  • Dictionary Cache Stats
  • Dictionary Cache Stats (RAC)

Back to Top

本节不用关注。
回到顶部

Dictionary Cache Stats

  • "Pct Misses" should be very low (< 2% in most cases)
  • "Final Usage" is the number of cache entries being used
CacheGet RequestsPct MissScan ReqsPct MissMod ReqsFinal Usage
dc_awr_control6800.0001548
dc_files340.0000144
dc_global_oids1400.0000601
dc_histogram_data4,7180.1700282,286
dc_histogram_defs1,3915.6800235,813
dc_objects53,5010.0101875,018
dc_profiles10,8040.000026
dc_rollback_segments49,0670.00002,918
dc_segments1607.5003741,207
dc_sequences825.0008127
dc_tablespaces15,0180.0000245
dc_users280,4550.00002,896
outstanding_alerts1291.670095
sch_lj_oids240.0000516


Back to Dictionary Cache Statistics
Back to Top

本节不用关注。
回到顶部

Dictionary Cache Stats (RAC)

CacheGES RequestsGES ConflictsGES Releases
dc_awr_control68000
dc_files3400
dc_global_oids14000
dc_histogram_defs1,39100
dc_objects10,31700
dc_profiles10,80400
dc_rollback_segments49,06700
dc_segments16000
dc_sequences800
dc_tablespaces15,03100
dc_users161,13200
outstanding_alerts1200
sch_lj_oids2400


Back to Dictionary Cache Statistics
Back to Top

本节不用关注。
回到顶部

Library Cache Statistics

  • Library Cache Activity
  • Library Cache Activity (RAC)

Back to Top

本节为词典缓存统计
Get Requests:get表示一种类型的锁,语法分析锁
pin requests:pin也表示一种类型的锁,是在执行发生的加锁
reloads:reloads列显示一条已执行过的语句因Library Cache使该语句的已语法分析版本
过期或作废而需要被重新语法分析的次数pct miss应该不高于1%。
Reloads /pin requests <1%,否则应该考虑增大SHARED_POOL_SIZE
该部分信息通过v$librarycache视图统计得到:
select namespace,gethitratio,pinhitratio,reloads,invalidations
from v$librarycache
where namespace in ('SQL AREA','TABLE/PROCEDURE','BODY','TRIGGER', 'INDEX');
回到顶部

Library Cache Activity

  • "Pct Misses" should be very low
NamespaceGet RequestsPct MissPin RequestsPct MissReloadsInvali- dations
ACCOUNT_STATUS21,6000.00000
BODY2620.001,4360.0000
DBLINK31,3700.00000
EDITION7,8640.007,8640.0000
INDEX1520.001520.6610
SCHEMA8,1120.10000
SQL AREA57,0890.09816,3480.04172131
SQL AREA BUILD21336.15000
SQL AREA STATS17222.0917222.0900
TABLE/PROCEDURE14,8600.4617,8351.06220
TRIGGER520.00520.0000


Back to Library Cache Statistics
Back to Top

本节不用关注。
回到顶部

Library Cache Activity (RAC)

NamespaceGES Lock RequestsGES Pin RequestsGES Pin ReleasesGES Inval RequestsGES Invali- dations
ACCOUNT_STATUS21,6000000
BODY01,4321,43200
DBLINK31,3700000
EDITION7,8637,8637,86300
INDEX15215215200
SCHEMA7,8610000
TABLE/PROCEDURE8,89116,17416,17400
TRIGGER0525200


Back to Library Cache Statistics
Back to Top

本节需要重点关注。
回到顶部

Initialization Parameters

  • Parameters modified by this container
  • Parameters modified by other containers
  • Multi-Valued Parameters modified by this container
  • Multi-Valued Parameters modified by other containers

Back to Top

本节需要重点关注。CDB级别的参数,需要和《招商银行开放平台Oracle数据库参数配置指导书19cV1.6.doc》
中的第7节数据库参数对照着看,看是否符合标准。
回到顶部

Parameters modified by this container

  • This section shows all the modified initialization parameters that were in effect during the entire snapshot interval
  • End Value is displayed only if the parameter value was modified within the snapshot interval
Parameter NameBegin valueEnd value (if different)PDB Name
_rollback_segment_count0  WCMMNG00
cpu_count4  WCMMNG00
db_cache_size4194304000  WCMMNG00
db_securefilePREFERRED  WCMMNG00
job_queue_processes20  WCMMNG00
parallel_max_servers1280  WCMMNG00
pga_aggregate_limit8388608000  WCMMNG00
pga_aggregate_target2097152000  WCMMNG00
resource_manager_plan    WCMMNG00
result_cache_max_size0  WCMMNG00
sessions750  WCMMNG00
sga_target8388608000  WCMMNG00
shared_pool_size2097152000  WCMMNG00
undo_retention900  WCMMNG00
undo_tablespaceUNDOTBS1  WCMMNG00


Back to Initialization Parameters
Back to Top

本节需要重点关注。CDB级别的参数,需要和《招商银行开放平台Oracle数据库参数配置指导书19cV1.6.doc》
中的第7节数据库参数对照着看,看是否符合标准。
回到顶部

Parameters modified by other containers

  • This section shows all the modified initialization parameters that were in effect during the snapshot interval
  • End Value is displayed only if the parameter value was changed within the snapshot interval
Parameter NameBegin valueEnd value (if different)PDB Name
_PX_use_large_poolTRUE  
_adg_parselock_timeout3000  
_autotask_max_window11520  
_b_tree_bitmap_plansFALSE  
_cursor_obsolete_threshold1024  
_enable_shared_pool_durationsFALSE  
_fast_index_maintenanceFALSE  
_gc_policy_minimum15000  
_max_spacebg_slaves10  
_optimizer_batch_table_access_by_rowidFALSE  
_optimizer_gather_feedbackFALSE  
_optimizer_gather_stats_on_loadFALSE  
_optimizer_use_feedbackFALSE  
_redo_transport_async_mode1  
_report_capture_cycle_time0  
_reuse_dropped_pdbid_time1800  
_sys_logon_delay0  
_trace_files_publicTRUE  
_use_single_log_writerTRUE  
archive_lag_target900  
audit_file_dest/u01/app/oracle/admin/H01U08PF/adump  
audit_trailNONE  
awr_snapshot_time_offset1000000  
backup_tape_io_slavesTRUE  
cluster_databaseTRUE  
compatible19.0.0  
control_file_record_keep_time7  
control_files+DATADG/H01U08PF/CONTROLFILE/current.257.1122562155, +FRADG/H01U08PF/CONTROLFILE/current.256.1122562157  
db_block_size8192  
db_create_file_dest+DATADG  
db_files6000  
db_flashback_retention_target1440  
db_nameH01U08PF  
db_recovery_file_dest+FRADG  
db_recovery_file_dest_size96636764160  
deferred_segment_creationFALSE  
diagnostic_dest/diaglog  
dispatchers(PROTOCOL=TCP) (SERVICE=H01U08PFXDB)  
enable_ddl_loggingTRUE  
enable_pluggable_databaseTRUE  
fast_start_mttr_target300  
instance_number1  
listener_networks((NAME=network1)(LOCAL_LISTENER=local_net1) (REMOTE_LISTENER=remote_net1))  
local_listenerlocal_net1  
lock_sgaTRUE  
log_archive_dest_1LOCATION=USE_DB_RECOVERY_FILE_DEST  
nls_languageAMERICAN  
nls_territoryAMERICA  
open_cursors1000  
optimizer_capture_sql_plan_baselinesFALSE  
parallel_force_localTRUE  
parallel_min_servers0  
pre_page_sgaFALSE  
processes10000  
remote_listener    
remote_login_passwordfileEXCLUSIVE  
session_cached_cursors300  
sga_max_size294205259776  
sql92_securityFALSE  
standby_file_managementAUTO  
target_pdbs60  
thread1  
timed_statisticsTRUE  
undo_managementAUTO  


Back to Initialization Parameters
Back to Top

本节不用关注。
回到顶部

Multi-Valued Parameters modified by this container

No data exists for this section of the report.

Back to Initialization Parameters
Back to Top

本节不用关注。
回到顶部

Multi-Valued Parameters modified by other containers

  • This section only displays parameters that have more than one value
  • '(NULL)' indicates a missing parameter value
  • A blank in the 'End Snapshot' indicates the same value as the 'Begin Snapshot'
Parameter NameBegin valueEnd value (if different)PDB Name
control_files+DATADG/H01U08PF/CONTROLFILE/current.257.1122562155  

control_files

+FRADG/H01U08PF/CONTROLFILE/current.256.1122562157  


Back to Initialization Parameters
Back to Top

Active Session History (ASH) Report

  • Top SQL with Top Events
  • Top SQL with Top Row Sources
  • Top Sessions
  • Top Blocking Sessions
  • Top PL/SQL Procedures
  • Top Events
  • Top Event P1/P2/P3 Values
  • Top DB Objects
  • Activity Over Time

Back to Top

本节需要关注,分析SQL的时候可以结合一起分析
回到顶部

Top SQL with Top Events

  • Top SQL statements by DB Time along with the top events by DB Time for those SQLs.
  • % Activity is the percentage of DB Time due to the SQL.
  • % Event is the percentage of DB Time due to the event that the SQL is waiting on.
  • % Row Source is the percentage of DB Time due to the row source for the SQL waiting on the event.
  • Executions is the number of executions of the SQL that were sampled in ASH.
SQL IDPlan HashExecutions% ActivityEvent% EventTop Row Source% Row SourceSQL TextContainer Name
5b64sq2g9zj1a4368764153427.87CPU + Wait for CPU27.87INDEX - UNIQUE SCAN9.84SELECT info.CARD_NUMBER, info....WCMMNG00
dprdzbty156ux41313940112923.77CPU + Wait for CPU23.77HASH JOIN - OUTER10.66SELECT info.CARD_NUMBER, info....WCMMNG00
b2cxpv2ah9j3f10237527132218.03CPU + Wait for CPU18.03FIXED TABLE - FULL17.21SELECT * FROM (SELECT user_nam...WCMMNG00
3y2d7rgcy19593238011603108.20CPU + Wait for CPU8.20TABLE ACCESS - BY INDEX ROWID4.92SELECT info.CARD_NUMBER, info....WCMMNG00
6fyytvcmzzaxq384765852954.10CPU + Wait for CPU4.10FIXED TABLE - FULL3.28select ( (select value from v$...WCMMNG00


Back to Active Session History (ASH) Report
Back to Top

本节需要关注,分析SQL的时候可以结合一起分析
回到顶部

Top SQL with Top Row Sources

  • Top SQL statements by DB Time along with the top row sources by DB Time for those SQLs.
  • % Activity is the percentage of DB Time due to the SQL.
  • % Row Source is the percentage of DB Time spent on the row source by that SQL.
  • % Event is the percentage of DB Time spent on the event by the SQL executing the row source.
  • Executions is the number of executions of the SQL that were sampled in ASH.
SQL IDPlan HashExecutions% ActivityRow Source% Row SourceTop Event% EventSQL TextContainer Name
5b64sq2g9zj1a4368764153427.87INDEX - UNIQUE SCAN9.84CPU + Wait for CPU9.84SELECT info.CARD_NUMBER, info....WCMMNG00

5b64sq2g9zj1a

436876415

34

27.86885245901639344262295081967213114754

WINDOW - SORT PUSHED RANK8.20CPU + Wait for CPU8.20

WCMMNG00

5b64sq2g9zj1a

436876415

34

27.86885245901639344262295081967213114754

TABLE ACCESS - BY INDEX ROWID4.10CPU + Wait for CPU4.10

WCMMNG00

dprdzbty156ux41313940112923.77HASH JOIN - OUTER10.66CPU + Wait for CPU10.66SELECT info.CARD_NUMBER, info....WCMMNG00

dprdzbty156ux

4131394011

29

23.7704918032786885245901639344262295082

TABLE ACCESS - BY INDEX ROWID5.74CPU + Wait for CPU5.74

WCMMNG00

dprdzbty156ux

4131394011

29

23.7704918032786885245901639344262295082

TABLE ACCESS - FULL3.28CPU + Wait for CPU3.28

WCMMNG00

b2cxpv2ah9j3f10237527132218.03FIXED TABLE - FULL17.21CPU + Wait for CPU17.21SELECT * FROM (SELECT user_nam...WCMMNG00
3y2d7rgcy19593238011603108.20TABLE ACCESS - BY INDEX ROWID4.92CPU + Wait for CPU4.92SELECT info.CARD_NUMBER, info....WCMMNG00

3y2d7rgcy1959

3238011603

10

8.19672131147540983606557377049180327869

WINDOW - SORT PUSHED RANK1.64CPU + Wait for CPU1.64

WCMMNG00

3y2d7rgcy1959

3238011603

10

8.19672131147540983606557377049180327869

INDEX - RANGE SCAN1.64CPU + Wait for CPU1.64

WCMMNG00

6fyytvcmzzaxq384765852954.10FIXED TABLE - FULL3.28CPU + Wait for CPU3.28select ( (select value from v$...WCMMNG00


Back to Active Session History (ASH) Report
Back to Top

本节需要关注,分析等待事件的时候可以结合一起分析
回到顶部

Top Sessions

  • '# Samples Active' shows the number of ASH samples in which the session was found waiting for that particular event. The percentage shown in this column is calculated with respect to wall clock time and not total database activity.
  • 'XIDs' shows the number of distinct transaction IDs sampled in ASH when the session was waiting for that particular event
Sid, Serial#% ActivityEvent% EventUserProgram# Samples ActiveXIDs
2606,6285913.93CPU + Wait for CPU13.93APPHIGH1JDBC Thin Client17/89 [ 19%]0
3999,3910111.48CPU + Wait for CPU11.48APPHIGH1JDBC Thin Client14/89 [ 16%]0
6602,376109.02CPU + Wait for CPU9.02APPHIGH1JDBC Thin Client11/89 [ 12%]0
12695,115589.02CPU + Wait for CPU9.02APPHIGH1JDBC Thin Client11/89 [ 12%]0
1894,128638.20CPU + Wait for CPU8.20APPHIGH1JDBC Thin Client10/89 [ 11%]0


Back to Active Session History (ASH) Report
Back to Top

本节需要关注,分析等待事件的时候可以结合一起分析
回到顶部

Top Blocking Sessions

No data exists for this section of the report.

Back to Active Session History (ASH) Report
Back to Top

本节需要关注,分析等待事件的时候可以结合一起分析
回到顶部

Top PL/SQL Procedures

No data exists for this section of the report.

Back to Active Session History (ASH) Report
Back to Top

本节需要关注,分析等待事件的时候可以结合一起分析
回到顶部

Top Events

  • Top Events by DB Time
  • % Activity is the percentage of DB Time due to the event
EventEvent ClassSession Type% ActivityAvg Active Sessions
CPU + Wait for CPUCPUFOREGROUND100.001.37


Back to Active Session History (ASH) Report
Back to Top

本节需要关注,分析等待事件的时候可以结合一起分析
回到顶部

Top Event P1/P2/P3 Values

No data exists for this section of the report.

Back to Active Session History (ASH) Report
Back to Top

本节需要关注,分析等待事件的时候可以结合一起分析
回到顶部

Top DB Objects

No data exists for this section of the report.

Back to Active Session History (ASH) Report
Back to Top

本节需要关注,分析等待事件的时候可以结合一起分析
回到顶部

Activity Over Time

  • Analysis period is divided into smaller time slots as indicated in the 'Slot Time (Duration)'.
  • Top 3 events are reported in each of those slots
  • 'Slot Count' shows the number of ASH samples in that slot
  • 'Event Count' shows the number of ASH samples waiting for that event in that slot
  • '% Event' is 'Event Count' over all ASH samples in the analysis period
Slot Time (Duration)Slot CountEventEvent Count% Event
14:58:53 (1.1 min)6CPU + Wait for CPU64.92
15:00:00 (5.0 min)14CPU + Wait for CPU1411.48
15:05:00 (5.0 min)78CPU + Wait for CPU7863.93
15:10:00 (3.8 min)24CPU + Wait for CPU2419.67


Back to Active Session History (ASH) Report
Back to Top

本节需要重点关注,可以对数据库整体分析。
回到顶部

ADDM Task ADDM:1924087814_1_561

          ADDM Report for Task 'ADDM:1924087814_1_561'          -------------------------------------------- Analysis Period---------------AWR snapshot range from 560 to 561.Time period starts at 08-MAR-23 02.58.53 PMTime period ends at 08-MAR-23 03.13.45 PM Analysis Target---------------Database 'H01U08PF' with DB ID 1924087814.Database version 19.0.0.0.0.ADDM performed an analysis of instance H01U08PF1, numbered 1 and hosted at racuat2f2ch01u08.ADDM detected that the system is a PDB. Activity During the Analysis Period-----------------------------------Total database time was 1289 seconds.The average number of active sessions was 1.45. Summary of Findings-------------------   Description                     Active Sessions      Recommendations                                   Percent of Activity      ------------------------------  -------------------  ---------------1  Top SQL Statements              1.18 | 81.97         52  Session Connect and Disconnect  .05 | 3.6            1  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~            Findings and Recommendations          ---------------------------- Finding 1: Top SQL StatementsImpact is 1.18 active sessions, 81.97% of total activity.---------------------------------------------------------SQL statements consuming significant database time were found. These statements offer a good opportunity for performance improvement.    Recommendation 1: SQL Tuning   Estimated benefit is .4 active sessions, 27.87% of total activity.   ------------------------------------------------------------------   Action      Run SQL Tuning Advisor on the SELECT statement with SQL_ID       "5b64sq2g9zj1a".      Related Object         SQL statement with SQL_ID 5b64sq2g9zj1a.         SELECT info.CARD_NUMBER,info.CARD_NAME,info.CARD_CODE,info.OPEN_BRANC         H,info.OPEN_BANK,audi.OPR_RESULT,         info.ACTIVE_FLAG,info.OPEN_DATE,info.EFFECT_DATE,info.EXPIRE_DATE,inf         o.CLIENT_ID,info.CARD_INTERNAL_NBR,         info.OPEN_OPERATE_TELLER,info.OPEN_AUTH_TELLER         FROM WCM_MNG_MAININFO_T info         LEFT JOIN WCM_APPLY_VERIFY_AUDIT_T audi on          audi.APPLY_REQ_ID=info.CARD_NUMBER and audi.AUDI_CODE='OPENCARDAUDIT'          and audi.AUDI_DESC='开户审核标记'         WHERE  info.OPEN_BANK = :1          and info.OPEN_DATE >= :2          and info.OPEN_DATE <= :3          and info.CARD_CODE in         (         :4          )         and info.ACTIVE_FLAG='N'          ORDER BY info.OPEN_BANK,info.OPEN_DATE,info.OPEN_BRANCH,info.CARD_NUM         BER         FETCH FIRST :5  ROWS ONLY   Rationale      The SQL spent 100% of its database time on CPU, I/O and Cluster waits.       This part of database time may be improved by the SQL Tuning Advisor.   Rationale      Database time for this SQL was divided as follows: 100% for SQL       execution, 0% for parsing, 0% for PL/SQL execution and 0% for Java       execution.   Rationale      SQL statement with SQL_ID "5b64sq2g9zj1a" was executed 253185 times and       had an average elapsed time of 0.00093 seconds.    Recommendation 2: SQL Tuning   Estimated benefit is .34 active sessions, 23.77% of total activity.   -------------------------------------------------------------------   Action      Run SQL Tuning Advisor on the SELECT statement with SQL_ID       "dprdzbty156ux".      Related Object         SQL statement with SQL_ID dprdzbty156ux.         SELECT info.CARD_NUMBER,info.CARD_NAME,info.CARD_CODE,info.OPEN_BRANC         H,info.OPEN_BANK,audi.OPR_RESULT,         info.ACTIVE_FLAG,info.OPEN_DATE,info.EFFECT_DATE,info.EXPIRE_DATE,inf         o.CLIENT_ID,info.CARD_INTERNAL_NBR,         info.OPEN_OPERATE_TELLER,info.OPEN_AUTH_TELLER         FROM WCM_MNG_MAININFO_T info         LEFT JOIN WCM_APPLY_VERIFY_AUDIT_T audi on          audi.APPLY_REQ_ID=info.CARD_NUMBER and audi.AUDI_CODE='OPENCARDAUDIT'          and audi.AUDI_DESC='开户审核标记'         WHERE  (         (info.OPEN_DATE = :1  and info.OPEN_BRANCH = :2  and info.CARD_NUMBER          > :3 )         or (info.OPEN_DATE = :4  and info.OPEN_BRANCH > :5 )         or info.OPEN_DATE > :6          )         and info.OPEN_BANK = :7          and info.OPEN_DATE >= :8          and info.OPEN_DATE <= :9          and info.CARD_CODE in         (         :10          )         and info.ACTIVE_FLAG='N'          ORDER BY info.OPEN_BANK,info.OPEN_DATE,info.OPEN_BRANCH,info.CARD_NUM         BER         FETCH FIRST :11  ROWS ONLY   Rationale      The SQL spent 100% of its database time on CPU, I/O and Cluster waits.       This part of database time may be improved by the SQL Tuning Advisor.   Rationale      Database time for this SQL was divided as follows: 100% for SQL       execution, 0% for parsing, 0% for PL/SQL execution and 0% for Java       execution.   Rationale      SQL statement with SQL_ID "dprdzbty156ux" was executed 950 times and had       an average elapsed time of 0.27 seconds.    Recommendation 3: SQL Tuning   Estimated benefit is .26 active sessions, 18.03% of total activity.   -------------------------------------------------------------------   Action      Run SQL Tuning Advisor on the SELECT statement with SQL_ID       "b2cxpv2ah9j3f".      Related Object         SQL statement with SQL_ID b2cxpv2ah9j3f.         SELECT * FROM (SELECT user_name,sql_id,count(1) as num from          v$open_cursor where user_name is NOT NULL group by user_name,sql_id          ORDER BY num DESC) WHERE rownum<=3   Rationale      The SQL spent 100% of its database time on CPU, I/O and Cluster waits.       This part of database time may be improved by the SQL Tuning Advisor.   Rationale      Database time for this SQL was divided as follows: 100% for SQL       execution, 0% for parsing, 0% for PL/SQL execution and 0% for Java       execution.   Rationale      SQL statement with SQL_ID "b2cxpv2ah9j3f" was executed 201 times and had       an average elapsed time of 1.1 seconds.    Recommendation 4: SQL Tuning   Estimated benefit is .12 active sessions, 8.2% of total activity.   -----------------------------------------------------------------   Action      Run SQL Tuning Advisor on the SELECT statement with SQL_ID       "3y2d7rgcy1959".      Related Object         SQL statement with SQL_ID 3y2d7rgcy1959.         SELECT info.CARD_NUMBER,info.CARD_NAME,info.CARD_CODE,info.OPEN_BRANC         H,info.OPEN_BANK,'P' as OPR_RESULT,         info.ACTIVE_FLAG,info.OPEN_DATE,info.EFFECT_DATE,info.EXPIRE_DATE,inf         o.CLIENT_ID,info.CARD_INTERNAL_NBR,         info.OPEN_OPERATE_TELLER,info.OPEN_AUTH_TELLER         FROM WCM_MNG_MAININFO_T info         WHERE  (         (info.OPEN_DATE = :1  and info.OPEN_BRANCH = :2  and info.CARD_NUMBER          > :3 )         or (info.OPEN_DATE = :4  and info.OPEN_BRANCH > :5 )         or info.OPEN_DATE > :6          )         and info.OPEN_BANK = :7          and info.OPEN_DATE >= :8          and info.OPEN_DATE <= :9          and info.CARD_CODE in         (         :10          )         and info.ACTIVE_FLAG='Y'          ORDER BY info.OPEN_BANK,info.OPEN_DATE,info.OPEN_BRANCH,info.CARD_NUM         BER         FETCH FIRST :11  ROWS ONLY   Rationale      The SQL spent 100% of its database time on CPU, I/O and Cluster waits.       This part of database time may be improved by the SQL Tuning Advisor.   Rationale      Database time for this SQL was divided as follows: 100% for SQL       execution, 0% for parsing, 0% for PL/SQL execution and 0% for Java       execution.   Rationale      SQL statement with SQL_ID "3y2d7rgcy1959" was executed 999 times and had       an average elapsed time of 0.13 seconds.    Recommendation 5: SQL Tuning   Estimated benefit is .06 active sessions, 4.1% of total activity.   -----------------------------------------------------------------   Action      Run SQL Tuning Advisor on the SELECT statement with SQL_ID       "6fyytvcmzzaxq".      Related Object         SQL statement with SQL_ID 6fyytvcmzzaxq.         select (             (select value from v$sysstat where name='user commits' )+         (select value from v$sysstat where name='user rollbacks' )) as value         from dual   Rationale      The SQL spent 100% of its database time on CPU, I/O and Cluster waits.       This part of database time may be improved by the SQL Tuning Advisor.   Rationale      Database time for this SQL was divided as follows: 100% for SQL       execution, 0% for parsing, 0% for PL/SQL execution and 0% for Java       execution.   Rationale      SQL statement with SQL_ID "6fyytvcmzzaxq" was executed 201 times and had       an average elapsed time of 0.22 seconds.  Finding 2: Session Connect and DisconnectImpact is .05 active sessions, 3.6% of total activity.------------------------------------------------------Session connect and disconnect calls were consuming significant database time.    Recommendation 1: Application Analysis   Estimated benefit is .05 active sessions, 3.6% of total activity.   -----------------------------------------------------------------   Action      Investigate application logic for possible reduction of connect and       disconnect calls. For example, you might use a connection pool scheme in       the middle tier.   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~           Additional Information          ---------------------- Miscellaneous Information-------------------------Wait class "Application" was not consuming significant database time.Wait class "Cluster" was not consuming significant database time.Wait class "Commit" was not consuming significant database time.Wait class "Concurrency" was not consuming significant database time.Wait class "Configuration" was not consuming significant database time.CPU was not a bottleneck for the DB on this instance.Wait class "Network" was not consuming significant database time.Wait class "User I/O" was not consuming significant database time.The network latency of the cluster interconnect was within acceptable limits of 1 milliseconds.Hard parsing of SQL statements was not consuming significant database time. 


Back to Top

End of Report

相关内容

热门资讯

AWSECS:访问外部网络时出... 如果您在AWS ECS中部署了应用程序,并且该应用程序需要访问外部网络,但是无法正常访问,可能是因为...
AWSElasticBeans... 在Dockerfile中手动配置nginx反向代理。例如,在Dockerfile中添加以下代码:FR...
AWR报告解读 WORKLOAD REPOSITORY PDB report (PDB snapshots) AW...
AWS管理控制台菜单和权限 要在AWS管理控制台中创建菜单和权限,您可以使用AWS Identity and Access Ma...
​ToDesk 远程工具安装及... 目录 前言 ToDesk 优势 ToDesk 下载安装 ToDesk 功能展示 文件传输 设备链接 ...
北信源内网安全管理卸载 北信源内网安全管理是一款网络安全管理软件,主要用于保护内网安全。在日常使用过程中,卸载该软件是一种常...
Azure构建流程(Power... 这可能是由于配置错误导致的问题。请检查构建流程任务中的“发布构建制品”步骤,确保正确配置了“Arti...
AWSECS:哪种网络模式具有... 使用AWS ECS中的awsvpc网络模式来获得最佳性能。awsvpc网络模式允许ECS任务直接在V...
群晖外网访问终极解决方法:IP... 写在前面的话 受够了群晖的quickconnet的小水管了,急需一个新的解决方法&#x...
不同的输入格式导致R的diff... 此问题的原因是,对于日期/时间的不同输入格式,difftime函数的输出会有所不同,因为格式不同会影...