WORKLOAD REPOSITORY report for

DB NameDB IdInstanceInst numStartup TimeReleaseRAC
MAC797696270MAC_1107-Jul-13 08:0712.1.0.1.0YES

Host NamePlatformCPUsCoresSocketsMemory (GB)
maclean1.oracle.comLinux x86 64-bit 4 4 1 9.55

Snap IdSnap TimeSessionsCursors/SessionInstancesPluggable Databases Open
Begin Snap:11607-Jul-13 08:36:4755 1.110
End Snap:11707-Jul-13 08:41:4956 .911
Elapsed:  5.03 (mins)    
DB Time:  13.94 (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 Statements2.7787.36ADDM:797696270_1_11707-Jul-13 08:3607-Jul-13 08:41

Load Profile

Per SecondPer TransactionPer ExecPer Call
DB Time(s): 2.8 0.0 0.00 0.34
DB CPU(s): 2.6 0.0 0.00 0.32
Redo size (bytes): 8,155,843.5 545.0  
Logical read (blocks): 46,550.1 3.1  
Block changes: 60,036.7 4.0  
Physical read (blocks): 32.0 0.0  
Physical write (blocks): 81.1 0.0  
Read IO requests: 27.7 0.0  
Write IO requests: 35.8 0.0  
Read IO (MB): 0.3 0.0  
Write IO (MB): 0.6 0.0  
Global Cache blocks received: 0.0 0.0  
Global Cache blocks served: 0.0 0.0  
User calls: 8.2 0.0  
Parses (SQL): 14.1 0.0  
Hard parses (SQL): 1.6 0.0  
SQL Work Area (MB): 0.3 0.0  
Logons: 1.5 0.0  
Executes (SQL): 15,006.7 1.0  
Rollbacks: 0.0 0.0  
Transactions: 14,965.2   

Instance Efficiency Percentages (Target 100%)

Buffer Nowait %: 99.27Redo NoWait %: 100.00
Buffer Hit %: 99.93In-memory Sort %: 100.00
Library Hit %: 99.97Soft Parse %: 88.57
Execute to Parse %: 99.91Latch Hit %: 98.41
Parse CPU to Parse Elapsd %: 29.18% Non-Parse CPU: 99.90

Top 10 Foreground Events by Total Wait Time

EventWaitsTotal Wait Time (sec)Wait Avg(ms)% DB timeWait Class
DB CPU 783 93.6 
db file sequential read2,63110.641.3User I/O
enq: HW - contention3359.5281.1Configuration
library cache: mutex X82,1706.30.8Concurrency
buffer busy waits96,8954.40.5Concurrency
control file sequential read1,2702.72.3System I/O
log file switch completion81.7208.2Configuration
latch: ges resource hash list25,1071.50.2Other
sort segment request111000.1Configuration
name-service call wait12181.1Other

Wait Classes by Total Wait Time

Wait ClassWaitsTotal Wait Time (sec)Avg Wait (ms)% DB timeAvg Active Sessions
DB CPU 783 93.62.6
System I/O5,0131703420.40.6
User I/O9,0561521.70.0
Concurrency189,9901201.50.0
Configuration43512281.50.0
Other70,93670.80.0
Commit3051.00.0
Cluster1018.00.0
Application8000.00.0
Scheduler1201.00.0
Network20900.00.0

Host CPU

CPUsCoresSocketsLoad Average BeginLoad Average End%User%System%WIO%Idle
4 4 1 0.83 2.48 18.2 50.0 11.4 31.5

Instance CPU

%Total CPU%Busy CPU%DB time waiting for CPU (Resource Manager)
65.5 95.6 0.0

IO Profile

Read+Write Per SecondRead per SecondWrite Per Second
Total Requests: 103.2 38.0 65.2
Database Requests: 63.5 27.7 35.8
Optimized Requests: 0.0 0.0 0.0
Redo Requests: 25.3 0.0 25.3
Total (MB): 18.8 0.4 18.4
Database (MB): 0.9 0.3 0.6
Optimized Total (MB): 0.0 0.0 0.0
Redo (MB): 16.2 0.0 16.2
Database (blocks): 113.1 32.0 81.1
Via Buffer Cache (blocks): 112.9 31.9 81.0
Direct (blocks): 0.2 0.1 0.1

Memory Statistics

BeginEnd
Host Mem (MB): 9,777.7 9,777.7
SGA use (MB): 6,000.0 6,000.0
PGA use (MB): 308.8 327.6
% Host Mem used for SGA+PGA: 64.52 64.72

Cache Sizes

BeginEnd
Buffer Cache: 4,848M 4,544MStd Block Size: 8K
Shared Pool Size: 1,040M 1,040MLog Buffer: 19,460K

Shared Pool Statistics

BeginEnd
Memory Usage %: 55.14 59.73
% SQL with executions>1: 56.96 88.51
% Memory for SQL w/exec>1: 45.72 84.72

Main Report

RAC Statistics


Back to Top

Wait Events Statistics

Back to Top

Time Model Statistics

Statistic NameTime (s)% of DB Time
sql execute elapsed time834.7899.84
DB CPU782.9893.64
PL/SQL execution elapsed time69.598.32
parse time elapsed4.760.57
hard parse elapsed time4.490.54
hard parse (sharing criteria) elapsed time1.270.15
PL/SQL compilation elapsed time0.610.07
sequence load elapsed time0.100.01
hard parse (bind mismatch) elapsed time0.040.00
repeated bind elapsed time0.040.00
connection management call elapsed time0.030.00
failed parse elapsed time0.000.00
DB time836.12 
background elapsed time179.10 
background cpu time12.54 


Back to Wait Events Statistics
Back to Top

Operating System Statistics

StatisticValueEnd Value
FREE_MEMORY_BYTES386,162,688356,106,240
INACTIVE_MEMORY_BYTES6,614,806,5286,463,188,992
SWAP_FREE_BYTES6,241,116,160 
BUSY_TIME83,213 
IDLE_TIME38,180 
IOWAIT_TIME13,820 
SYS_TIME60,750 
USER_TIME22,064 
LOAD12
PHYSICAL_MEMORY_BYTES10,252,619,776 
NUM_CPUS4 
NUM_CPU_CORES4 
NUM_CPU_SOCKETS1 
GLOBAL_RECEIVE_SIZE_MAX4,194,304 
GLOBAL_SEND_SIZE_MAX1,048,576 
TCP_RECEIVE_SIZE_DEFAULT87,380 
TCP_RECEIVE_SIZE_MAX4,194,304 
TCP_RECEIVE_SIZE_MIN4,096 
TCP_SEND_SIZE_DEFAULT16,384 
TCP_SEND_SIZE_MAX4,194,304 
TCP_SEND_SIZE_MIN4,096 


Back to Wait Events Statistics
Back to Top

Operating System Statistics - Detail

Snap TimeLoad%busy%user%sys%idle%iowait
07-Jul 08:36:470.83     
07-Jul 08:41:492.4868.5518.1850.0431.4511.38


Back to Wait Events Statistics
Back to Top

Foreground Wait Class

Wait ClassWaits%Time -outsTotal Wait Time (s)Avg wait (ms)%DB time
DB CPU  783 93.64
Configuration435112281.46
Concurrency182,70801201.46
User I/O2,97101141.31
Other34,9270500.58
System I/O1,4660320.33
Commit200760.02
Cluster100180.00
Scheduler120010.00
Application630000.00
Network1920000.00


Back to Wait Events Statistics
Back to Top

Foreground Wait Events

EventWaits%Time -outsTotal Wait Time (s)Avg wait (ms)Waits /txn% DB time
db file sequential read2,631 1140.001.27
enq: HW - contention335 10280.001.14
library cache: mutex X82,170 600.020.75
buffer busy waits96,895 400.020.52
control file sequential read1,270 320.000.32
log file switch completion8 22080.000.20
latch: ges resource hash list25,107 200.010.18
sort segment request1100110000.000.12
name-service call wait12 1810.000.12
KSV master wait588 120.000.11
row cache lock2,619 100.000.08
cursor: pin S591 110.000.08
latch: enqueue hash chains6,749 100.000.07
PX Deq: Slave Session Stats459 010.000.04
read by other session28 080.000.03
DFS lock handle49 040.000.02
log file sync2 0760.000.02
cursor: mutex X110 010.000.01
SGA: allocation forcing component growth1 0890.000.01
latch free1,286 000.000.01
cursor: pin S wait on X5 0110.000.01
enq: SQ - contention89 010.000.01
kksfbc child completion11000500.000.01
reliable message125 000.000.00
Data file init write54 010.000.00
Disk file operations I/O202 000.000.00
control file parallel write147 000.000.00
gc buffer busy release1 0180.000.00
enq: US - contention89 000.000.00
latch: cache buffers chains302 000.000.00
enq: FB - contention67 000.000.00
db file scattered read7 020.000.00
CSS initialization6 020.000.00
kfk: async disk IO49 000.000.00
CSS operation: action6 010.000.00
ASM file metadata operation196 000.000.00
db file single write49 000.000.00
resmgr:cpu quantum12 010.000.00
CSS operation: query18 000.000.00
latch: shared pool14 000.000.00
enq: TX - contention17 000.000.00
latch: undo global data69 000.000.00
PX Deq: Signal ACK EXT42 000.000.00
SQL*Net break/reset to client63 000.000.00
enq: IV - contention8 000.000.00
SQL*Net message to client192 000.000.00
SQL*Net message from client191 60831850.00 
jobq slave wait180100905010.00 
PX Deq: Execution Msg1,836 310.00 
PX Deq: Table Q Sample180 010.00 
PX Deq Credit: send blkd340 000.00 
PX Deq: Parse Reply42 020.00 
PX Deq: Execute Reply63 000.00 
PX Deq: Join ACK84 000.00 


Back to Wait Events Statistics
Back to Top

Background Wait Events

EventWaits%Time -outsTotal Wait Time (s)Avg wait (ms)Waits /txn% bg time
log file parallel write1,52101541010.0086.17
control file sequential read1,6540960.005.23
db file sequential read5,9280310.001.69
db file parallel write10702230.001.39
control file parallel write1820170.000.68
ASM file metadata operation1,1940110.000.63
db file scattered read5001110.000.31
row cache process16,5820000.000.15
oracle thread bootstrap1100190.000.12
row cache lock4980000.000.08
log file sequential read1200120.000.08
KSV master wait31458000.000.07
PX Deq: Slave Join Frag4170000.000.07
CGS wait for IPC msg2,862100000.000.03
PX Deq: Slave Session Stats3750000.000.03
PX Deq: reap credit3,035100000.000.03
row cache cleanup10,0520000.000.03
PX Deq: Signal ACK EXT3750000.000.02
libcache interrupt action by LCK6,7590000.000.02
os thread creation110020.000.01
PX Deq: Table Q qref1800000.000.01
read by other session100010.000.01
direct path write temp160010.000.01
reliable message230000.000.01
CSS initialization40020.000.01
CSS operation: action80010.000.00
latch: gc element10080.000.00
direct path read10070.000.00
CSS operation: data update60010.000.00
enq: RO - fast object reuse170000.000.00
ksxr poll remote instances376100000.000.00
Parameter File I/O320000.000.00
Disk file operations I/O440000.000.00
DFS lock handle10040.000.00
CSS operation: data query50010.000.00
log file single write120000.000.00
CSS operation: query120000.000.00
enq: IV - contention100000.000.00
enq: PS - contention130000.000.00
Data file init write10010.000.00
LGWR wait for redo copy90000.000.00
PX Idle Wait42106,611157020.00 
rdbms ipc message13,649375,8524290.00 
class slave wait55,428982,003360.01 
ges remote message6,014966031000.00 
wait for unread message on broadcast channel1629960337200.00 
gcs remote message19,544100602310.00 
DIAG idle wait3,0841006021950.00 
GCR sleep12010060050010.00 
PING723331043070.00 
ASM background timer75503044020.00 
pmon timer10110030330010.00 
lreg timer1029930329710.00 
heartbeat redo informer302030210000.00 
AQPC idle10100300300100.00 
Streams AQ: load balancer idle15100300200060.00 
shared server idle wait10100300300050.00 
dispatcher timer5100300600060.00 
smon timer192030015620.00 
Space Manager: slave idle wait151029919790.00 
Streams AQ: qmn slave idle wait100280280080.00 
Streams AQ: qmn coordinator idle wait2050280140040.00 
PX Deq: Join ACK7410000.00 
PX Deq: Execute Reply1,2900000.00 
PX Deq: Parse Reply3750000.00 
SQL*Net message from client220010.00 


Back to Wait Events Statistics
Back to Top

Wait Event Histogram

  % of Waits
EventTotal Waits <1ms <2ms <4ms <8ms<16ms<32ms <=1s >1s
ASM background starting5100.0       
ASM file metadata operation141179.711.34.83.0.6.4.2 
CGS wait for IPC msg2867100.0       
CSS initialization1050.0 20.030.0    
CSS operation: action1435.750.014.3     
CSS operation: data query5100.0       
CSS operation: data update616.783.3      
CSS operation: query3083.316.7      
DFS lock handle51  78.421.6    
Data file init write5691.13.61.83.6    
Disk file operations I/O24999.6.4      
KSV master wait91669.114.89.94.81.0.2.1 
LGWR wait for redo copy9100.0       
PX Deq: Signal ACK EXT41799.5.2.2     
PX Deq: Slave Join Frag41799.5.2.2     
PX Deq: Slave Session Stats83482.715.81.4     
PX Deq: Table Q qref180100.0       
PX Deq: reap credit3033100.0       
PX qref latch6100.0       
Parameter File I/O32100.0       
SGA: allocation forcing component growth1      100.0 
SQL*Net break/reset to client61100.0       
SQL*Net message to client205100.0       
asynch descriptor resize16100.0       
buffer busy waits97.3K100.0.0.0.0.0 .0 
control file parallel write33193.4 .3.3.61.83.6 
control file sequential read293993.8.1.2.51.01.13.2 
cursor: mutex X11090.9   9.1   
cursor: pin S592 99.7.2.2    
cursor: pin S wait on X5   20.080.0   
db file async I/O submit61100.0       
db file parallel write11267.04.52.7.96.31.817.0 
db file scattered read5752.65.3 10.515.87.08.8 
db file sequential read841091.4.4.61.84.1.8.9 
db file single write51100.0       
direct path read1   100.0    
direct path write2100.0       
direct path write temp1693.8   6.3   
enq: FB - contention68100.0       
enq: HW - contention33668.52.1.9  12.516.1 
enq: IV - contention1894.45.6      
enq: PS - contention19100.0       
enq: RO - fast object reuse1794.15.9      
enq: SQ - contention8997.82.2      
enq: TX - contention1794.15.9      
enq: US - contention8998.91.1      
gc buffer busy release1     100.0  
kfk: async disk IO51100.0       
kksfbc child completion1      100.0 
ksxr poll remote instances378100.0       
latch free131099.5.3.2     
latch: cache buffers chains30299.7.3      
latch: call allocation14100.0       
latch: enqueue hash chains676899.6.3.0.0    
latch: gc element1   100.0    
latch: ges resource hash list25.2K99.7.1.1.0.0   
latch: redo allocation3100.0       
latch: row cache objects1100.0       
latch: session allocation9100.0       
latch: shared pool1788.211.8      
latch: undo global data69100.0       
libcache interrupt action by LCK5108100.0       
library cache load lock1100.0       
library cache: mutex X82.4K99.4.0.0 .6.0  
log file parallel write15267.5.6.2.31.66.683.2 
log file sequential read1283.3    8.38.3 
log file single write12100.0       
log file switch completion8    25.0 75.0 
log file sync333.3     66.7 
name-service call wait12     16.783.3 
oracle thread bootstrap11    36.463.6  
os thread creation1163.69.1 27.3    
read by other session3876.35.35.3 5.3 7.9 
reliable message14899.3.7      
resmgr:cpu quantum1291.78.3      
row cache cleanup7574100.0       
row cache lock227999.4.5.1     
row cache process12.5K100.0.0      
sort segment request1      100.0 
undo segment extension2100.0       
AQPC idle10       100.0
ASM background timer76851.610.95.114.84.4.82.310.0
DIAG idle wait3090    4.6 95.4 
GCR sleep121       100.0
PING7266.7      33.3
PX Deq Credit: send blkd34398.51.5      
PX Deq: Execute Reply135398.61.0.4     
PX Deq: Execution Msg183650.125.818.55.6  .1 
PX Deq: Join ACK82599.4.5.1     
PX Deq: Parse Reply41790.43.45.3.2.5 .2 
PX Deq: Table Q Sample18076.120.63.3     
PX Idle Wait4176.54.3 .7 .71.486.3
SQL*Net message from client20970.81.4.5   4.822.5
Space Manager: slave idle wait153.7     23.575.8
Streams AQ: load balancer idle15       100.0
Streams AQ: qmn coordinator idle wait2245.54.5     50.0
Streams AQ: qmn slave idle wait11       100.0
class slave wait55.5K.7.2.0.198.5.1.1.3
dispatcher timer6       100.0
gcs remote message19.6K.3    98.51.3 
ges remote message60231.2.0.1.2.2.298.0 
heartbeat redo informer302      100.0 
jobq slave wait180      100.0 
lreg timer100       100.0
pmon timer100       100.0
rdbms ipc message12K39.03.01.5.71.21.240.612.8
shared server idle wait10       100.0
smon timer19420.6     19.659.8
wait for unread message on broadcast channel161       100.0


Back to Wait Events Statistics
Back to Top

Wait Event Histogram Detail (64 msec to 2 sec)

  % of Total Waits
EventWaits 64ms to 2s<32ms<64ms<1/8s<1/4s<1/2s <1s <2s>=2s
ASM file metadata operation399.8.1.1     
KSV master wait199.9 .1     
SGA: allocation forcing component growth1  100.0     
buffer busy waits1100.0.0      
control file parallel write1296.41.81.2.6    
control file sequential read9596.81.11.3.7.2   
db file parallel write1983.03.67.15.4.9   
db file scattered read591.27.0 1.8    
db file sequential read7899.1.3.5.1    
enq: HW - contention5483.93.36.04.52.4   
kksfbc child completion1 100.0      
log file parallel write127016.817.638.423.14.1   
log file sequential read191.7 8.3     
log file switch completion625.0  37.537.5   
log file sync233.333.333.3     
name-service call wait1016.78.375.0     
read by other session392.15.32.6     
sort segment request1     100.0  


Back to Wait Events Statistics
Back to Top

Wait Event Histogram Detail (4 sec to 2 min)

No data exists for this section of the report.

Back to Wait Events Statistics
Back to Top

Wait Event Histogram Detail (4 min to 1 hr)

No data exists for this section of the report.

Back to Wait Events Statistics
Back to Top

Service Statistics

Service NameDB Time (s)DB CPU (s)Physical Reads (K)Logical Reads (K)
SYS$USERS834782214,079
SYS$BACKGROUND11731
MAC0000
MACXDB0000
macc0000


Back to Wait Events Statistics
Back to Top

Service Wait Class Stats

Service NameUser I/O Total WtsUser I/O Wt TimeConcurcy Total WtsConcurcy Wt TimeAdmin Total WtsAdmin Wt TimeNetwork Total WtsNetwork Wt Time
SYS$USERS 27161218294612001890
SYS$BACKGROUND 60894445500000


Back to Wait Events Statistics
Back to Top

SQL Statistics

Back to Top

SQL ordered by Elapsed Time

Elapsed Time (s)Executions Elapsed Time per Exec (s) %Total%CPU%IO SQL IdSQL ModulePDB NameSQL Text
824.413274.8098.6095.160.0773kc99v9699nm sqlplus@maclean1.oracle.com (TNS V1-V3)   begin loop insert into lgwr_pr...
435.124,550,6340.0052.04102.160.13cfrfu4058yard sqlplus@maclean1.oracle.com (TNS V1-V3)   INSERT INTO LGWR_PRESS VALUES(...
6.3816.380.7613.6982.131uk5m5qbzj1vt sqlplus@maclean1.oracle.com (TNS V1-V3)   BEGIN dbms_workload_repository...
3.2050.640.3849.2446.67fhf8upax5cxsz MMON_SLAVE   BEGIN sys.dbms_auto_report_int...
2.2550.450.2754.7141.420w26sk6t6gq98 MMON_SLAVE   SELECT XMLTYPE(DBMS_REPORT.GET...
2.1512.150.262.2351.120qbzfjt00pbsx DBMS_SCHEDULER MACC BEGIN dbms_isched.log_dbms_out...
1.8211.820.223.9596.0039k4gf5t0831y DBMS_SCHEDULER   call WWV_FLOW_MAIL.PUSH_QUEUE_...
1.8050.360.2156.5639.447r24h5ucyjggz MMON_SLAVE   WITH MONITOR_DATA AS (SELECT I...
1.5811.580.194.8893.8239k4gf5t0831y DBMS_SCHEDULER MACC call WWV_FLOW_MAIL.PUSH_QUEUE_...
1.50920.020.184.1997.68cvn54b7yz0s8u     select /*+ index(idl_ub1$ i_id...


Back to SQL Statistics
Back to Top

SQL ordered by CPU Time

CPU Time (s)Executions CPU per Exec (s)%TotalElapsed Time (s)%CPU%IO SQL IdSQL ModulePDB NameSQL Text
784.513261.50100.20824.4195.160.0773kc99v9699nm sqlplus@maclean1.oracle.com (TNS V1-V3)   begin loop insert into lgwr_pr...
444.524,550,6340.0056.77435.12102.160.13cfrfu4058yard sqlplus@maclean1.oracle.com (TNS V1-V3)   INSERT INTO LGWR_PRESS VALUES(...
1.5850.320.203.2049.2446.67fhf8upax5cxsz MMON_SLAVE   BEGIN sys.dbms_auto_report_int...
1.2350.250.162.2554.7141.420w26sk6t6gq98 MMON_SLAVE   SELECT XMLTYPE(DBMS_REPORT.GET...
1.0250.200.131.8056.5639.447r24h5ucyjggz MMON_SLAVE   WITH MONITOR_DATA AS (SELECT I...
0.8710.870.116.3813.6982.131uk5m5qbzj1vt sqlplus@maclean1.oracle.com (TNS V1-V3)   BEGIN dbms_workload_repository...
0.51600.010.070.6283.040.04fnq8p3fj3r5as     select /*+ no_monitor */ job, ...
0.28220.010.040.3189.110.9707vdtsr7c56qr sqlplus@maclean1.oracle.com (TNS V1-V3)   select count(*) from lgwr_pres...
0.1450.030.020.2849.1448.517tchj0bmt6tn1 MMON_SLAVE   select xmlagg( xmlelement("ope...
0.13100.010.020.1495.180.005yv7yvjgjxugg     select TIME_WAITED_MICRO from ...


Back to SQL Statistics
Back to Top

SQL ordered by User I/O Wait Time

User I/O Time (s)Executions UIO per Exec (s)%TotalElapsed Time (s)%CPU%IO SQL IdSQL ModulePDB NameSQL Text
5.2415.2436.006.3813.6982.131uk5m5qbzj1vt sqlplus@maclean1.oracle.com (TNS V1-V3)   BEGIN dbms_workload_repository...
1.7511.7512.041.823.9596.0039k4gf5t0831y DBMS_SCHEDULER   call WWV_FLOW_MAIL.PUSH_QUEUE_...
1.4950.3010.283.2049.2446.67fhf8upax5cxsz MMON_SLAVE   BEGIN sys.dbms_auto_report_int...
1.4811.4810.181.584.8893.8239k4gf5t0831y DBMS_SCHEDULER MACC call WWV_FLOW_MAIL.PUSH_QUEUE_...
1.47920.0210.091.504.1997.68cvn54b7yz0s8u     select /*+ index(idl_ub1$ i_id...
1.2611.268.631.303.3796.250qbzfjt00pbsx DBMS_SCHEDULER   BEGIN dbms_isched.log_dbms_out...
1.1011.107.572.152.2351.120qbzfjt00pbsx DBMS_SCHEDULER MACC BEGIN dbms_isched.log_dbms_out...
0.9350.196.422.2554.7141.420w26sk6t6gq98 MMON_SLAVE   SELECT XMLTYPE(DBMS_REPORT.GET...
0.83210.045.710.852.6098.023un99a0zwp4vd   MACC select owner#, name, namespace...
0.7410.745.100.774.4296.3232qq8k1n8ynn9     Select BYTES, extents from db...
0.7150.144.871.8056.5639.447r24h5ucyjggz MMON_SLAVE   WITH MONITOR_DATA AS (SELECT I...
0.63920.014.320.643.8997.61ga9j9xk5cy9s0     select /*+ index(idl_sb4$ i_id...
0.5830.194.01824.4195.160.0773kc99v9699nm sqlplus@maclean1.oracle.com (TNS V1-V3)   begin loop insert into lgwr_pr...
0.584,550,6340.004.00435.12102.160.13cfrfu4058yard sqlplus@maclean1.oracle.com (TNS V1-V3)   INSERT INTO LGWR_PRESS VALUES(...
0.581010.014.000.627.9294.143un99a0zwp4vd     select owner#, name, namespace...
0.5710.573.910.571.0599.27bw0vhwxp8wwhj     insert into WRH$_SERVICE_STAT ...
0.4510.453.110.473.6496.787jym7hfjdq0ra     insert into WRH$_SYSSTAT (dbid...
0.401010.002.740.426.4895.778swypbbr0m372     select order#, columns, types ...
0.3710.372.560.370.5499.54gzakc6gfjzc2j     insert into WRH$_SERVICE_WAIT_...
0.35920.002.440.372.7397.063y6pgnk2ubw7g     insert into wrm$_snapshot_deta...
0.28920.001.900.281.7697.401p5grz1gs7fjq   MACC select obj#, type#, ctime, mti...
0.2810.281.900.293.4495.0919x1189chq3xd DBMS_SCHEDULER MACC SELECT LOCKID FROM DBMS_LOCK_A...
0.26210.011.790.262.6498.218swypbbr0m372   MACC select order#, columns, types ...
0.2410.241.660.252.8196.8919x1189chq3xd DBMS_SCHEDULER   SELECT LOCKID FROM DBMS_LOCK_A...
0.21390.011.410.211.9298.6353saa2zkr6wc3     select intcol#, nvl(pos#, 0), ...
0.1910.191.300.215.6789.648dbc2434s93x0 DBMS_SCHEDULER MACC SELECT ID, MAIL_SEND_COUNT, LA...
0.16350.001.100.2327.3269.51d1dumhajv2rr5 MMON_SLAVE   SELECT COMPONENT_ID FROM SYS. ...
0.15620.001.030.157.1096.27b1wc53ddd6h3p     select audit$, options from pr...
0.15920.001.010.1612.4591.0239m4sx9k63ba2     select /*+ index(idl_ub2$ i_id...


Back to SQL Statistics
Back to Top

SQL ordered by Gets

Buffer Gets ExecutionsGets per Exec %TotalElapsed Time (s) %CPU %IO SQL IdSQL ModulePDB NameSQL Text
14,017,98934,672,663.0099.75824.4195.2.173kc99v9699nm sqlplus@maclean1.oracle.com (TNS V1-V3)   begin loop insert into lgwr_pr...
9,466,7454,550,6342.0867.36435.12102.2.1cfrfu4058yard sqlplus@maclean1.oracle.com (TNS V1-V3)   INSERT INTO LGWR_PRESS VALUES(...
69,756223,170.730.500.3189.1107vdtsr7c56qr sqlplus@maclean1.oracle.com (TNS V1-V3)   select count(*) from lgwr_pres...
18,91053,782.000.133.2049.246.7fhf8upax5cxsz MMON_SLAVE   BEGIN sys.dbms_auto_report_int...
14,123114,123.000.106.3813.782.11uk5m5qbzj1vt sqlplus@maclean1.oracle.com (TNS V1-V3)   BEGIN dbms_workload_repository...
12,22952,445.800.092.2554.741.40w26sk6t6gq98 MMON_SLAVE   SELECT XMLTYPE(DBMS_REPORT.GET...
9,89151,978.200.071.8056.639.47r24h5ucyjggz MMON_SLAVE   WITH MONITOR_DATA AS (SELECT I...
4,09631313.090.030.1130.370.132hbap2vtmf53     select position#, sequence#, l...
1,9273555.060.010.2327.369.5d1dumhajv2rr5 MMON_SLAVE   SELECT COMPONENT_ID FROM SYS. ...
1,88210118.630.010.627.994.13un99a0zwp4vd     select owner#, name, namespace...


Back to SQL Statistics
Back to Top

SQL ordered by Reads

Physical ReadsExecutionsReads per Exec %TotalElapsed Time (s)%CPU%IO SQL IdSQL ModulePDB NameSQL Text
1,32411,324.0013.726.3813.6982.131uk5m5qbzj1vt sqlplus@maclean1.oracle.com (TNS V1-V3)   BEGIN dbms_workload_repository...
1,31811,318.0013.650.774.4296.3232qq8k1n8ynn9     Select BYTES, extents from db...
8175163.408.463.2049.2446.67fhf8upax5cxsz MMON_SLAVE   BEGIN sys.dbms_auto_report_int...
5115102.205.292.2554.7141.420w26sk6t6gq98 MMON_SLAVE   SELECT XMLTYPE(DBMS_REPORT.GET...
373574.603.861.8056.5639.447r24h5ucyjggz MMON_SLAVE   WITH MONITOR_DATA AS (SELECT I...
269922.922.791.504.1997.68cvn54b7yz0s8u     select /*+ index(idl_ub1$ i_id...
1711171.001.771.823.9596.0039k4gf5t0831y DBMS_SCHEDULER   call WWV_FLOW_MAIL.PUSH_QUEUE_...
1641011.621.700.627.9294.143un99a0zwp4vd     select owner#, name, namespace...
1401140.001.450.1828.9274.686ajkhukk78nsr     begin prvt_hdm.auto_execute( :...
1391139.001.441.584.8893.8239k4gf5t0831y DBMS_SCHEDULER MACC call WWV_FLOW_MAIL.PUSH_QUEUE_...
1051105.001.091.303.3796.250qbzfjt00pbsx DBMS_SCHEDULER   BEGIN dbms_isched.log_dbms_out...
101214.811.050.852.6098.023un99a0zwp4vd   MACC select owner#, name, namespace...


Back to SQL Statistics
Back to Top

SQL ordered by Physical Reads (UnOptimized)

UnOptimized Read ReqsPhysical Read ReqsExecutionsUnOptimized Reqs per Exec%Opt%Total SQL IdSQL ModulePDB NameSQL Text
1,6801,68011,680.000.0020.121uk5m5qbzj1vt sqlplus@maclean1.oracle.com (TNS V1-V3)   BEGIN dbms_workload_repository...
1,1151,1153371.670.0013.3573kc99v9699nm sqlplus@maclean1.oracle.com (TNS V1-V3)   begin loop insert into lgwr_pr...
1,1131,1134,550,6340.000.0013.33cfrfu4058yard sqlplus@maclean1.oracle.com (TNS V1-V3)   INSERT INTO LGWR_PRESS VALUES(...
8658655173.000.0010.36fhf8upax5cxsz MMON_SLAVE   BEGIN sys.dbms_auto_report_int...
5245245104.800.006.280w26sk6t6gq98 MMON_SLAVE   SELECT XMLTYPE(DBMS_REPORT.GET...
406406581.200.004.867r24h5ucyjggz MMON_SLAVE   WITH MONITOR_DATA AS (SELECT I...
186186922.020.002.23cvn54b7yz0s8u     select /*+ index(idl_ub1$ i_id...
1711711171.000.002.0539k4gf5t0831y DBMS_SCHEDULER   call WWV_FLOW_MAIL.PUSH_QUEUE_...
1481481011.470.001.773un99a0zwp4vd     select owner#, name, namespace...
1391391139.000.001.6639k4gf5t0831y DBMS_SCHEDULER MACC call WWV_FLOW_MAIL.PUSH_QUEUE_...
1361361136.000.001.636ajkhukk78nsr     begin prvt_hdm.auto_execute( :...
1311311131.000.001.57c8yhu3pmcjddw     insert into wrh$_tablespace_st...
1051051105.000.001.260qbzfjt00pbsx DBMS_SCHEDULER   BEGIN dbms_isched.log_dbms_out...
101101214.810.001.213un99a0zwp4vd   MACC select owner#, name, namespace...


Back to SQL Statistics
Back to Top

SQL ordered by Executions

Executions Rows ProcessedRows per ExecElapsed Time (s) %CPU %IO SQL IdSQL ModulePDB NameSQL Text
4,550,6344,550,6611.00435.12102.2.1cfrfu4058yard sqlplus@maclean1.oracle.com (TNS V1-V3)   INSERT INTO LGWR_PRESS VALUES(...
3131,5805.050.1130.370.132hbap2vtmf53     select position#, sequence#, l...
2682681.000.02110.91.386708bvah4akq     select name from undo$ where f...
2131870.880.1414.885.31p5grz1gs7fjq     select obj#, type#, ctime, mti...
1017357.280.627.994.13un99a0zwp4vd     select owner#, name, namespace...
1016416.350.426.595.88swypbbr0m372     select order#, columns, types ...
96961.000.0612.386.39tgj4g8y4rwy8     select type#, blocks, extents,...
92890.970.281.897.41p5grz1gs7fjq   MACC select obj#, type#, ctime, mti...
92600.650.1612.49139m4sx9k63ba2     select /*+ index(idl_ub2$ i_id...
92921.000.372.797.13y6pgnk2ubw7g     insert into wrm$_snapshot_deta...


Back to SQL Statistics
Back to Top

SQL ordered by Parse Calls

Parse CallsExecutions % Total Parses SQL IdSQL ModulePDB NameSQL Text
419609.85fnq8p3fj3r5as     select /*+ no_monitor */ job, ...
2682686.3086708bvah4akq     select name from undo$ where f...
1011012.383un99a0zwp4vd     select owner#, name, namespace...
1011012.388swypbbr0m372     select order#, columns, types ...
92922.1639m4sx9k63ba2     select /*+ index(idl_ub2$ i_id...
92922.163y6pgnk2ubw7g     insert into wrm$_snapshot_deta...
92922.16c6awqs517jpj0     select /*+ index(idl_char$ i_i...
92922.16cvn54b7yz0s8u     select /*+ index(idl_ub1$ i_id...
92922.16ga9j9xk5cy9s0     select /*+ index(idl_sb4$ i_id...
76761.7904kug40zbu4dm     select policy#, action# from a...
72721.692tkw12w5k68vd     select user#, password, datats...
72721.692tkw12w5k68vd   MACC select user#, password, datats...
72721.694kt3cun8s5fp5   MACC select name, password, datats#...
72721.69cm5vu20fhtnq1     select /*+ connect_by_filterin...
72721.69cm5vu20fhtnq1   MACC select /*+ connect_by_filterin...
71711.674kt3cun8s5fp5     select name, password, datats#...
62621.46b1wc53ddd6h3p     select audit$, options from pr...
60601.410qc1hv1q61pu6 oraagent.bin@maclean1.oracle.com (TNS V1-V3)   BEGIN DBMS_SESSION.USE_DEFAULT...
60601.415sg7mjrpj21z7     SELECT JOB, LAST_DATE, THIS_DA...
60601.415sg7mjrpj21z7   MACC SELECT JOB, LAST_DATE, THIS_DA...
50501.186xvp6nxs4a9n4     select nvl(sum(space), 0) from...
50501.18csnp95dz2r8ss     select file#, block# from recy...
45451.06gngtvs38t0060 sqlplus@maclean1.oracle.com (TNS V1-V3)   SELECT /*+ CONNECT_BY_FILTERIN...


Back to SQL Statistics
Back to Top

SQL ordered by Sharable Memory

Sharable Mem (b)Executions % Total SQL IdSQL ModulePDB NameSQL Text
4,088,10150.377r24h5ucyjggz MMON_SLAVE   WITH MONITOR_DATA AS (SELECT I...


Back to SQL Statistics
Back to Top

SQL ordered by Version Count

No data exists for this section of the report.

Back to SQL Statistics
Back to Top

SQL ordered by Cluster Wait Time

Cluster Wait Time (s)Executions%TotalElapsed Time(s)%Clu%CPU%IO SQL IdSQL ModulePDB NameSQL Text
0.021100.006.380.2813.6982.131uk5m5qbzj1vt sqlplus@maclean1.oracle.com (TNS V1-V3)   BEGIN dbms_workload_repository...


Back to SQL Statistics
Back to Top

Complete List of SQL Text

SQL IdSQL Text
04kug40zbu4dmselect policy#, action# from aud_object_opt$ where object# = :1 and type = 2
07vdtsr7c56qrselect count(*) from lgwr_press
0qbzfjt00pbsxBEGIN dbms_isched.log_dbms_output( :logid, :errs, :outputWasEnabled ); END;
0qc1hv1q61pu6BEGIN DBMS_SESSION.USE_DEFAULT_EDITION_DEFERRED; END;
0w26sk6t6gq98SELECT XMLTYPE(DBMS_REPORT.GET_REPORT_WITH_SUMMARY(:B1 )) FROM DUAL
19x1189chq3xdSELECT LOCKID FROM DBMS_LOCK_ALLOCATED WHERE NAME = :B1 FOR UPDATE
1p5grz1gs7fjqselect obj#, type#, ctime, mtime, stime, status, dataobj#, flags, oid$, spare1, spare2, spare3, signature, spare7, spare8, spare9 from obj$ where owner#=:1 and name=:2 and namespace=:3 and remoteowner is null and linkname is null and subname is null
1uk5m5qbzj1vtBEGIN dbms_workload_repository.create_snapshot; END;
2tkw12w5k68vdselect user#, password, datats#, tempts#, type#, defrole, resource$, ptime, decode(defschclass, NULL, 'DEFAULT_CONSUMER_GROUP', defschclass), spare1, spare4, ext_username, spare2 from user$ where name=:1
32hbap2vtmf53select position#, sequence#, level#, argument, type#, charsetid, charsetform, properties, nvl(length, 0), nvl(precision#, 0), nvl(scale, 0), nvl(radix, 0), type_owner, type_name, type_subname, type_linkname, pls_type from argument$ where obj#=:1 and procedure#=:2 order by sequence# desc
32qq8k1n8ynn9 Select BYTES, extents from dba_segments where OWNER = :1 and PARTITION_NAME = :2
39k4gf5t0831ycall WWV_FLOW_MAIL.PUSH_QUEUE_IMMEDIATE ( )
39m4sx9k63ba2select /*+ index(idl_ub2$ i_idl_ub21) +*/ piece#, length, piece from idl_ub2$ where obj#=:1 and part=:2 and version=:3 order by piece#
3un99a0zwp4vdselect owner#, name, namespace, remoteowner, linkname, p_timestamp, p_obj#, nvl(property, 0), subname, type#, flags, d_attrs from dependency$ d, obj$ o where d_obj#=:1 and p_obj#=obj#(+) order by order#
3y6pgnk2ubw7ginsert into wrm$_snapshot_details (snap_id, dbid, instance_number, table_id, begin_time, end_time) values (:snap_id, :dbid, :instance_number, :bind1, :bind2, :bind3)
4kt3cun8s5fp5select name, password, datats#, tempts#, type#, defrole, resource$, ptime, decode(defschclass, NULL, 'DEFAULT_CONSUMER_GROUP', defschclass), spare1, spare4, ext_username, spare2 from user$ where user#=:1
53saa2zkr6wc3select intcol#, nvl(pos#, 0), col#, nvl(spare1, 0) from ccol$ where con#=:1
5sg7mjrpj21z7SELECT JOB, LAST_DATE, THIS_DATE, NEXT_DATE, FIELD1 FROM SYS."JOB$_REDUCED" "JOB$_REDUCED" WHERE "JOB$_REDUCED"."THIS_DATE" IS NULL AND ("JOB$_REDUCED"."LAST_DATE" IS NULL AND "JOB$_REDUCED"."NEXT_DATE"<:1 OR "JOB$_REDUCED"."NEXT_DATE">=:2 AND "JOB$_REDUCED"."NEXT_DATE"<=:3) AND ("JOB$_REDUCED"."FIELD1"=:4 OR "JOB$_REDUCED"."FIELD1"=0 AND 'Y'=:5) AND ("JOB$_REDUCED"."JOB"<1000000000 AND "SYS"."DBMS_LOGSTDBY"."DB_IS_LOGSTDBY"()=0 OR "JOB$_REDUCED"."JOB">=1000000000 AND "SYS"."DBMS_LOGSTDBY"."DB_IS_LOGSTDBY"()=1)
5yv7yvjgjxuggselect TIME_WAITED_MICRO from V$SYSTEM_EVENT where event = 'Shared IO Pool Memory'
6ajkhukk78nsrbegin prvt_hdm.auto_execute( :dbid, :inst_num , :end_snap_id ); end;
6xvp6nxs4a9n4select nvl(sum(space), 0) from recyclebin$ where ts# = :1
73kc99v9699nmbegin loop insert into lgwr_press values(lgwr_seq.nextval) ; commit; end loop; end;
7jym7hfjdq0rainsert into WRH$_SYSSTAT (dbid, con_dbid, snap_id, instance_number, stat_id, value) select :dbid, (select con_dbid from x$kewpdbinsnap where con_id = :con_id_01) con_dbid, :snap_id, :instance_number, stat_id, value from (select * from v$sysstat where con_id = :con_id_02 or ( (:con_id_03 = 1 and con_id = 0) or (:con_id_04 = 0 and con_id = 1)) )
7r24h5ucyjggz WITH MONITOR_DATA AS (SELECT INST_ID, KEY, NVL2(PX_QCSID, NULL, STATUS) STATUS, FIRST_REFRESH_TIME, LAST_REFRESH_TIME, REFRESH_COUNT, PROCESS_NAME, SID, SQL_ID, SQL_EXEC_START, SQL_EXEC_ID, DBOP_NAME, DBOP_EXEC_ID, SQL_PLAN_HASH_VALUE, SESSION_SERIAL#, SQL_TEXT, IS_FULL_SQLTEXT, PX_SERVER#, PX_SERVER_GROUP, PX_SERVER_SET, PX_QCINST_ID, PX_QCSID, CASE WHEN ELAPSED_TIME < (CPU_TIME+ APPLICATION_WAIT_TIME+ CONCURRENCY_WAIT_TIME+ CLUSTER_WAIT_TIME+ USER_IO_WAIT_TIME+ QUEUING_TIME) THEN (CPU_TIME+ APPLICATION_WAIT_TIME+ CONCURRENCY_WAIT_TIME+ CLUSTER_WAIT_TIME+ USER_IO_WAIT_TIME+ QUEUING_TIME) ELSE ELAPSED_TIME END ELAPSED_TIME, QUEUING_TIME, CPU_TIME, APPLICATION_WAIT_TIME, CONCURRENCY_WAIT_TIME, CLUSTER_WAIT_TIME, USER_IO_WAIT_TIME, CASE WHEN ELAPSED_TIME < (CPU_TIME+ APPLICATION_WAIT_TIME+ CONCURRENCY_WAIT_TIME+ CLUSTER_WAIT_TIME+ USER_IO_WAIT_TIME+ QUEUING_TIME) THEN 0 ELSE ELAPSED_TIME - (CPU_TIME+ APPLICATION_WAIT_TIME+ CONCURRENCY_WAIT_TIME+ CLUST ER_WAIT_TIME+ USER_IO_WAIT_TIME+ QUEUING_TIME) END OTHER_WAIT_TIME, PLSQL_EXEC_TIME, JAVA_EXEC_TIME, FETCHES, BUFFER_GETS, IO_INTERCONNECT_BYTES IO_INTER_BYTES, PHYSICAL_READ_REQUESTS READ_REQS, PHYSICAL_READ_BYTES READ_BYTES, PHYSICAL_WRITE_REQUESTS WRITE_REQS, PHYSICAL_WRITE_BYTES WRITE_BYTES, NVL(PHYSICAL_READ_BYTES, 0) + NVL(PHYSICAL_WRITE_BYTES, 0) IO_BYTES, NVL(PHYSICAL_READ_REQUESTS, 0) + NVL(PHYSICAL_WRITE_REQUESTS, 0) IO_REQS, USER# USERID, USERNAME, MODULE, ACTION, SERVICE_NAME, CLIENT_IDENTIFIER, CLIENT_INFO, PROGRAM, PLSQL_OBJECT_ID PL_OID, PLSQL_SUBPROGRAM_ID PL_PROGID, PLSQL_ENTRY_OBJECT_ID PL_ENTRY_OID, PLSQL_ENTRY_SUBPROGRAM_ID PL_ENTRY_PROGID, PX_MAXDOP MAX_DOP, PX_IS_CROSS_INSTANCE, PX_MAXDOP_INSTANCES MAX_DOP_INSTANCES, PX_SERVERS_REQUESTED SERVERS_REQUESTED, PX_SERVERS_ALLOCATED SERVERS_ALLOCATED, ERROR_NUMBER, ERROR_FACILITY, ERROR_MESSAGE, NVL2(OTHER_XML, 'Y', NULL) HAS_OTHER_XML, NVL2(BINDS_XML, 'Y', NULL) HAS_BINDS_XML, NVL2(RM_CONSUMER_GROUP, NVL2(RM_LAST_ACTION_TIME, TO_CHAR(RM_LAST_ACTION_TIME, :B12 ), '00/00/0000 00:00:01') || XMLELEMENT( "rminfo", XMLATTRIBUTES( RM_LAST_ACTION AS "rmlastact", RM_LAST_ACTION_REASON AS "rmlastreason", TO_CHAR(RM_LAST_ACTION_TIME, :B12 ) AS "rmlasttime", RM_CONSUMER_GROUP AS "rmcg")).GETSTRINGVAL(), '00/00/0000 00:00:00') RM_INFO, CON_NAME, CON_ID FROM GV$SQL_MONITOR MO1 WHERE MO1.INST_ID BETWEEN :B11 AND :B10 AND MO1.SQL_ID = NVL(:B9 , MO1.SQL_ID) AND MO1.SQL_EXEC_START = NVL(:B8 , MO1.SQL_EXEC_START) AND MO1.SQL_EXEC_ID = NVL(:B7 , MO1.SQL_EXEC_ID) OR (MO1.DBOP_NAME = NVL(:B6 , MO1.DBOP_NAME) AND MO1.DBOP_EXEC_ID = NVL(:B5 , MO1.DBOP_EXEC_ID)) AND ((:B4 = 1 AND MO1.PX_QCSID IS NULL) OR (MO1.PX_SERVER_GROUP = NVL(:B3 , MO1.PX_SERVER_GROUP) AND MO1.PX_SERVER_SET = NVL(:B2 , MO1.PX_SERVER_SET) AND MO1.PX_SERVER# = NVL(:B1 , MO1.PX_SERVER#)))), MONITOR_AGG AS (SELECT MAX_PX_QCSID, MAX_KEY, MAX_IN ST_ID, MAX_SESSION_ID, MAX_SESSION_SERIAL, MAX_PX_DOP, MAX_PX_DOP_INSTANCES, MAX_PX_IS_CROSS_INSTANCE, SUM_SERVERS_REQUESTED, SUM_SERVERS_ALLOCATED, DIST_INST_COUNT, DIST_PX_GROUP_COUNT, DIST_PX_SET_COUNT, MAX_PLAN_HASH_VALUE, MAX_USERID, MAX_PROGRAM, MAX_USERNAME, MAX_MODULE, MAX_ACTION, MAX_SERVICE_NAME, MAX_CLIENT_ID, MAX_CLIENT_INFO, MAX_ERROR_NUMBER, MAX_ERROR_FACILITY, MAX_ERROR_MESSAGE, QC_HAS_OTHER_XML, QC_HAS_BINDS_XML, MAX_PL_OID, MAX_PL_PROGID, MAX_PL_ENTRY_OID, MAX_PL_ENTRY_PROGID, MAX_SQL_ID, MAX_SQL_EXEC_START, MAX_SQL_EXEC_ID, MAX_LAST_REFRESH_TIME, MAX_DBOP_NAME, MAX_DBOP_EXEC_ID, CASE WHEN MAX_PL_OID IS NOT NULL THEN NVL((SELECT P.OWNER || '.' || P.OBJECT_NAME || DECODE(P.PROCEDURE_NAME, NULL, '', '.' || P.PROCEDURE_NAME) FROM DBA_PROCEDURES P WHERE P.OBJECT_ID = MAX_PL_OID AND P.SUBPROGRAM_ID = MAX_PL_PROGID), 'Unavailable') END MAX_PL_NAME, CASE WHEN MAX_PL_ENTRY_OID IS NOT NULL THEN NVL((SELECT P.OWNER || '.' || P.OBJECT_NAME || DECODE(P.PROCEDURE_NAME, NULL, '', '.' || P.PROCEDURE_NAME) FROM DBA_PROCEDURES P WHERE P.OBJECT_ID = MAX_PL_ENTRY_OID AND P.SUBPROGRAM_ID = MAX_PL_ENTRY_PROGID), 'Unavailable') END MAX_PL_ENTRY_NAME, MAX_STATUS, SUM_REFRESH_COUNT, MIN_FIRST_REFRESH_TIME, IS_FULL_TEXT, SQLMON_TEXT, SUM_ELAPSED_TIME, MAX_ELAPSED_TIME, MAX_QUEUING_TIME, SUM_CPU_TIME, SUM_USER_IO_WAIT_TIME, SUM_APPLICATION_WAIT_TIME, SUM_CONCURRENCY_WAIT_TIME, SUM_CLUSTER_WAIT_TIME, SUM_PLSQL_EXEC_TIME, SUM_JAVA_EXEC_TIME, SUM_OTHER_WAIT_TIME, SUM_FETCHES, SUM_BUFFER_GETS, SUM_READ_REQS, SUM_READ_BYTES, SUM_WRITE_REQS, SUM_WRITE_BYTES, SUM_IO_BYTES, SUM_IO_INTER_BYTES, DECODE(:B14 , 1, 'db_name', DB.DB_UNIQUE_NAME) DB_UNIQUE_NAME, DECODE(:B14 , 1, 'platform_name', DB.PLATFORM_NAME) PLATFORM_NAME, DECODE(:B14 , 1, 'host_name', INST.HOST_NAME) HOST_NAME, AGG_RM_INFO MAX_RM_INFO, MAX_CON_NAME, DECODE(MAX_CON_ID, 0, NULL, MAX_CON_ID) MAX_CON_ID FROM (SELECT MAX(PX_QCSID) MAX_PX _QCSID, MAX(CASE WHEN PX_QCSID IS NULL THEN KEY ELSE NULL END) MAX_KEY, MAX(CASE WHEN PX_QCSID IS NULL THEN INST_ID ELSE NULL END) MAX_INST_ID, MAX(CASE WHEN PX_QCSID IS NULL THEN SID ELSE NULL END) MAX_SESSION_ID, MAX(CASE WHEN PX_QCSID IS NULL THEN SESSION_SERIAL# ELSE NULL END) MAX_SESSION_SERIAL, MAX(MAX_DOP) MAX_PX_DOP, MAX(MAX_DOP_INSTANCES) MAX_PX_DOP_INSTANCES, MAX(PX_IS_CROSS_INSTANCE) MAX_PX_IS_CROSS_INSTANCE, SUM(SERVERS_REQUESTED) SUM_SERVERS_REQUESTED, SUM(SERVERS_ALLOCATED) SUM_SERVERS_ALLOCATED, COUNT(DISTINCT INST_ID) DIST_INST_COUNT, COUNT(DISTINCT PX_SERVER_GROUP) DIST_PX_GROUP_COUNT, COUNT(DISTINCT PX_SERVER_SET) DIST_PX_SET_COUNT, MAX(SQL_PLAN_HASH_VALUE) MAX_PLAN_HASH_VALUE, MAX(USERID) MAX_USERID, MAX(PROGRAM) MAX_PROGRAM, MAX(USERNAME) MAX_USERNAME, MAX(MODULE) MAX_MODULE, MAX(ACTION) MAX_ACTION, MAX(SERVICE_NAME) MAX_SERVICE_NAME, MAX(CLIENT_IDENTIFIER) MAX_CLIENT_ID, MAX(CLIENT_INFO) MAX_CLIENT_INFO, MAX(ERROR_NUMBER) MAX_ERROR_NUMBER, MA X(ERROR_FACILITY) MAX_ERROR_FACILITY, MAX(ERROR_MESSAGE) MAX_ERROR_MESSAGE, MAX(NVL2(PX_QCSID, HAS_OTHER_XML, NULL)) QC_HAS_OTHER_XML, MAX(HAS_BINDS_XML) QC_HAS_BINDS_XML, MAX(PL_OID) MAX_PL_OID, MAX(PL_PROGID) MAX_PL_PROGID, MAX(PL_ENTRY_OID) MAX_PL_ENTRY_OID, MAX(PL_ENTRY_PROGID) MAX_PL_ENTRY_PROGID, MAX(SQL_ID) MAX_SQL_ID, MAX(SQL_EXEC_START) MAX_SQL_EXEC_START, MAX(SQL_EXEC_ID) MAX_SQL_EXEC_ID, MAX(LAST_REFRESH_TIME) MAX_LAST_REFRESH_TIME, MAX(STATUS) MAX_STATUS, SUM(REFRESH_COUNT) SUM_REFRESH_COUNT, MIN(FIRST_REFRESH_TIME) MIN_FIRST_REFRESH_TIME, MAX(DBOP_NAME) MAX_DBOP_NAME, MAX(DBOP_EXEC_ID) MAX_DBOP_EXEC_ID, CASE WHEN :B13 = 0 THEN NULL ELSE MAX(SQL_TEXT) END SQLMON_TEXT, MAX(IS_FULL_SQLTEXT) IS_FULL_TEXT, SUM(ELAPSED_TIME) SUM_ELAPSED_TIME, MAX(ELAPSED_TIME) MAX_ELAPSED_TIME, MAX(QUEUING_TIME) MAX_QUEUING_TIME, SUM(CPU_TIME) SUM_CPU_TIME, SUM(USER_IO_WAIT_TIME) SUM_USER_IO_WAIT_TIME, SUM(APPLICATION_WAIT_TIME) SUM_APPLICATION_WAIT_TIME, SUM(CONCURREN CY_WAIT_TIME) SUM_CONCURRENCY_WAIT_TIME, SUM(CLUSTER_WAIT_TIME) SUM_CLUSTER_WAIT_TIME, SUM(PLSQL_EXEC_TIME) SUM_PLSQL_EXEC_TIME, SUM(JAVA_EXEC_TIME) SUM_JAVA_EXEC_TIME, SUM(OTHER_WAIT_TIME) SUM_OTHER_WAIT_TIME, SUM(FETCHES) SUM_FETCHES, SUM(BUFFER_GETS) SUM_BUFFER_GETS, SUM(READ_REQS) SUM_READ_REQS, SUM(READ_BYTES) SUM_READ_BYTES, SUM(WRITE_REQS) SUM_WRITE_REQS, SUM(WRITE_BYTES) SUM_WRITE_BYTES, NVL(SUM(READ_BYTES), 0) + NVL(SUM(WRITE_BYTES), 0) SUM_IO_BYTES, SUM(IO_INTER_BYTES) SUM_IO_INTER_BYTES, MAX(RM_INFO) AGG_RM_INFO, MAX(CON_NAME) MAX_CON_NAME, MAX(CON_ID) MAX_CON_ID FROM MONITOR_DATA) MD, (SELECT HOST_NAME FROM V$INSTANCE) INST, (SELECT DB_UNIQUE_NAME, PLATFORM_NAME FROM V$DATABASE) DB), ASH_DATA AS (SELECT AD0.INST_ID, AD0.SESSION_ID, AD0.PLAN_LINE_ID, AD0.PLSQL_OBJECT_ID, AD0.PLSQL_SUBPROGRAM_ID, AD0.ACTIVITY_BUCKET_NUM, AD0.PLAN_ACTIVITY_BUCKET_NUM, AD0.SQL, AD0.TOP_LEVEL_SQL_ID, AD0.DBOP_NAME, AD0.IS_MONITORED_SQL, AD0.IS_PX_SLAVE, AD0.BUCKE T_ACTIVITY_START, AD0.ACTIVITY_START, AD0.BUCKET_ACTIVITY_END, AD0.ACTIVITY_END, AD0.ACTIVITY_COUNT, AD0.ACTIVITY_TYPE, AD0.OTHER_SQL_ACTIVITY_TYPE, AD0.EVENT_NAME, AD0.WAIT_COUNT, AD0.CPU_COUNT, AD0.OTHER_SQL_COUNT, AD0.PX_SERVER_SET, AD0.PX_DFO_ACTIVITY_COUNT, AD0.DFO_MOST_ACTIVE_IID, AD0.DFO_MOST_ACTIVE_SID, (CASE WHEN AD0.DFO_MOST_ACTIVE_IID = AD0.INST_ID AND AD0.DFO_MOST_ACTIVE_SID = AD0.SESSION_ID AND (((AD0.PX_DFO_ACTIVITY_COUNT / AD0.DFO_MOST_ACTIVE_COUNT) >= AD0.PX_DOP * 1.05) OR ((AD0.PX_DFO_ACTIVITY_COUNT / AD0.DFO_MOST_ACTIVE_COUNT) <= AD0.PX_DOP *0.95)) AND (AD0.DFO_DURATION * 100) > :B32 THEN AD0.ACTIVITY_COUNT ELSE NULL END) DFO_MOST_ACTIVE_COUNT, AD0.BUCKET_DISTINCT_SAMPLES, AD0.SQL_BUCKET_DISTINCT_SAMPLES, CASE WHEN AD0.PX_SERVER_GROUP IS NULL AND AD0.IS_PX_SLAVE = 1 THEN 1 ELSE AD0.PX_SERVER_GROUP END PX_SERVER_GROUP, AD0.PX_STEP_ID, AD0.PX_DFO_PAIR_TYPE, AD0.PX_DFO_PAIR_ID, AD0.PX_STEP_ARG, AD0.PX_DOP, CASE WHEN AD0.PX_DOP IS NOT NULL AND AD0.PX_DOP <> AD0.PX_MIN_DOP AND AD0.PX_MIN_DOP != 0 THEN PX_MIN_DOP ELSE NULL END PX_MIN_DOP FROM (SELECT /*+ use_hash(ash) leading(mo) */ ASH.INST_ID, ASH.IS_PX_SLAVE, ASH.SESSION_ID, ASH.PLAN_LINE_ID, ASH.PLSQL_OBJECT_ID, ASH.PLSQL_SUBPROGRAM_ID, ASH.ACTIVITY_BUCKET_NUM, ASH.PLAN_ACTIVITY_BUCKET_NUM, ASH.SQL, ASH.TOP_LEVEL_SQL_ID, ASH.DBOP_NAME, ASH.IS_MONITORED_SQL, ASH.BUCKET_ACTIVITY_START, ASH.ACTIVITY_START, ASH.BUCKET_ACTIVITY_END, ASH.ACTIVITY_END, ASH.ACTIVITY_COUNT, ASH.ACTIVITY_TYPE, ASH.OTHER_SQL_ACTIVITY_TYPE, ASH.EVENT_NAME, ASH.WAIT_COUNT, ASH.CPU_COUNT, ASH.OTHER_SQL_COUNT, MO.PX_SERVER_SET, ASH.PX_DFO_ACTIVITY_COUNT, TRUNC(ASH.MOST_ACTIVE_IN_DFO / 10000000000) DFO_MOST_ACTIVE_COUNT, MOD(TRUNC(ASH.MOST_ACTIVE_IN_DFO / 1000000), 10000) DFO_MOST_ACTIVE_IID, MOD(ASH.MOST_ACTIVE_IN_DFO, 1000000) DFO_MOST_ACTIVE_SID, ASH.DFO_DURATION, ASH.BUCKET_DISTINCT_SAMPLES, ASH.SQL_BUCKET_DISTINCT_SAMPLES, MO.PX_SERVER_GROUP, ASH.PX_STEP_I D, ASH.PX_DFO_PAIR_TYPE, ASH.PX_DFO_PAIR_ID, ASH.PX_STEP_ARG, ASH.PX_DOP, ASH.PX_MIN_DOP FROM (SELECT /*+ no_merge */ MD.INST_ID, MD.SID, MD.SESSION_SERIAL#, MD.PX_SERVER_SET, MD.PX_SERVER_GROUP FROM MONITOR_DATA MD WHERE MD.SID IS NOT NULL OR :B31 = 1) MO, (SELECT /*+ no_merge */ GVTF.INST_ID, GVTF.GLOBAL_SAMPLE_ID, GVTF.IS_PX_SLAVE, GVTF.SESSION_ID, GVTF.PLAN_LINE_ID, GVTF.PLSQL_OBJECT_ID, GVTF.PLSQL_SUBPROGRAM_ID, GVTF.ACTIVITY_BUCKET_NUM, GVTF.PLAN_ACTIVITY_BUCKET_NUM, GVTF.SQL, GVTF.TOP_LEVEL_SQL_ID, GVTF.DBOP_NAME, GVTF.IS_MONITORED_SQL, GVTF.BUCKET_ACTIVITY_START, GVTF.ACTIVITY_START, GVTF.BUCKET_ACTIVITY_END, GVTF.ACTIVITY_END, GVTF.ACTIVITY_COUNT, GVTF.ACTIVITY_TYPE, GVTF.OTHER_SQL_ACTIVITY_TYPE, GVTF.EVENT_NAME, GVTF.WAIT_COUNT, GVTF.CPU_COUNT, GVTF.OTHER_SQL_COUNT, MAX(GVTF.PER_SERVER_DFO_COUNT * 10000000000 + GVTF.INST_ID * 1000000 + GVTF.SESSION_ID) OVER(PARTITION BY GVTF.PX_DFO_PAIR_TYPE, GVTF.PX_DFO_PAIR_ID) MOST_ACTIVE_IN_DFO, SUM(GVT F.ACTIVITY_COUNT) OVER(PARTITION BY GVTF.PX_DFO_PAIR_TYPE, GVTF.PX_DFO_PAIR_ID) PX_DFO_ACTIVITY_COUNT, GVTF.DFO_DURATION, GVTF.PX_STEP_ID, GVTF.PX_DFO_PAIR_TYPE, GVTF.PX_DFO_PAIR_ID, GVTF.PX_STEP_ARG, GVTF.PX_DOP, GVTF.PX_MIN_DOP, COUNT(DISTINCT GVTF.GLOBAL_SAMPLE_ID) OVER(PARTITION BY GVTF.ACTIVITY_BUCKET_NUM) BUCKET_DISTINCT_SAMPLES, COUNT(DISTINCT GVTF.GLOBAL_SAMPLE_ID) OVER(PARTITION BY GVTF.SQL, GVTF.ACTIVITY_BUCKET_NUM) SQL_BUCKET_DISTINCT_SAMPLES FROM TABLE(GV$(CURSOR( (SELECT USERENV('INSTANCE') INST_ID, ASH2.GLOBAL_SAMPLE_ID, CASE WHEN :B30 = 1 AND :B27 > 1 THEN BUCKET_NUM ELSE NULL END ACTIVITY_BUCKET_NUM, CASE WHEN :B29 = 1 AND :B27 > 1 THEN BUCKET_NUM ELSE NULL END PLAN_ACTIVITY_BUCKET_NUM, ASH2.SQL, ASH2.TOP_LEVEL_SQL_ID, ASH2.DBOP_NAME, ASH2.IS_MONITORED_SQL, ASH2.PLAN_LINE_ID, ASH2.PLSQL_OBJECT_ID, ASH2.PLSQL_SUBPROGRAM_ID, ASH2.ACTIVITY_TYPE, ASH2.OTHER_SQL_ACTIVITY_TYPE, ASH2.EVENT_NAME, ASH2.IS_PX_SLAVE, ASH2.SESSION_ID, ASH2.PX_STEP_I D, ASH2.PX_DFO_PAIR_TYPE, ASH2.PX_DFO_PAIR_ID, ASH2.PX_STEP_ARG, CASE WHEN ASH2.PX_DFO_PAIR_ID IS NOT NULL THEN DECODE(ASH2.PX_DOP, 0, :B28 , ASH2.PX_DOP) ELSE NULL END PX_DOP, ASH2.PX_MIN_DOP, :B20 + NUMTODSINTERVAL(:B26 * (ASH2.BUCKET_NUM-1), 'SECOND') BUCKET_ACTIVITY_START, :B20 + NUMTODSINTERVAL( :B26 * ASH2.BUCKET_NUM - 1, 'SECOND') BUCKET_ACTIVITY_END, ASH2.ACTIVITY_START, ASH2.ACTIVITY_END, ASH2.ACTIVITY_COUNT, ASH2.WAIT_COUNT, ASH2.CPU_COUNT, ASH2.OTHER_SQL_COUNT, SUM(ASH2.ACTIVITY_COUNT) OVER(PARTITION BY ASH2.PX_DFO_PAIR_ID, ASH2.PX_DFO_PAIR_TYPE, DECODE(ASH2.PX_DFO_PAIR_ID, NULL, NULL, ASH2.SESSION_ID)) PER_SERVER_DFO_COUNT, CEIL((MAX(ASH2.MAX_SAMPLE_DATE) OVER(PARTITION BY ASH2.PX_DFO_PAIR_ID, ASH2.PX_DFO_PAIR_TYPE) - MIN(ASH2.MIN_SAMPLE_DATE) OVER(PARTITION BY ASH2.PX_DFO_PAIR_ID, ASH2.PX_DFO_PAIR_TYPE)) * 3600 * 24) DFO_DURATION FROM (SELECT ASH1.BUCKET_NUM, ASH1.GLOBAL_SAMPLE_ID, ASH1.PLAN_LINE_ID, ASH1.PLSQL_OBJECT_ID, ASH1.PLSQL_SUBPROGRA M_ID, ASH1.ACTIVITY_TYPE, ASH1.OTHER_SQL_ACTIVITY_TYPE, ASH1.EVENT_NAME, ASH1.SESSION_ID, ASH1.PX_STEP_ID, ASH1.PX_STEP_ARG, MAX(ASH1.SQL) SQL, MAX(ASH1.IS_MONITORED_SQL) IS_MONITORED_SQL, MAX(ASH1.PX_DFO_PAIR_TYPE) PX_DFO_PAIR_TYPE, MAX(ASH1.PX_DFO_PAIR_ID) PX_DFO_PAIR_ID, MIN(SAMPLE_DATE) MIN_SAMPLE_DATE, MAX(SAMPLE_DATE) MAX_SAMPLE_DATE, MAX(ASH1.IS_PX_SLAVE) IS_PX_SLAVE, MAX(ASH1.PX_DOP) PX_DOP, MIN(ASH1.PX_DOP) PX_MIN_DOP, MIN(ASH1.SAMPLE_DATE) ACTIVITY_START, MAX(ASH1.SAMPLE_DATE) ACTIVITY_END, COUNT(ASH1.SQL) ACTIVITY_COUNT, COUNT(CASE WHEN ASH1.ACTIVITY_TYPE != 'Other SQL Execution' AND ASH1.ACTIVITY_TYPE != 'Non SQL' AND ASH1.ACTIVITY_TYPE != 'Cpu' THEN 1 ELSE NULL END) WAIT_COUNT, COUNT(CASE WHEN ASH1.ACTIVITY_TYPE = 'Cpu' THEN 1 ELSE NULL END) CPU_COUNT, COUNT(CASE WHEN ASH1.ACTIVITY_TYPE = 'Other SQL Execution' AND ASH1.ACTIVITY_TYPE != 'Non SQL' THEN 1 ELSE NULL END) OTHER_SQL_COUNT, MAX(ASH1.TOP_LEVEL_SQL_ID) TOP_LEVEL_SQL_ID, MAX(ASH1.DBOP_NAME) DB OP_NAME FROM ( SELECT (CASE WHEN :B27 > 1 THEN (TRUNC(DELTA_TIME_SECONDS/ :B26 ) + 1) ELSE 1 END) BUCKET_NUM, ASH00.SQL, ASH00.SAMPLE_DATE, NVL2(DUP.C2, TRUNC(DELTA_TIME_SECONDS/ (:B25 )) + 1, NULL) GLOBAL_SAMPLE_ID, NVL2(DUP.C2, NULL, ASH00.IS_MONITORED_SQL) IS_MONITORED_SQL, NVL2(DUP.C2, NULL, ASH00.WAIT_CLASS) WAIT_CLASS, NVL2(DUP.C2, NULL, ASH00.ACTIVITY_TYPE) ACTIVITY_TYPE, NVL2(DUP.C2, NULL, ASH00.OTHER_SQL_ACTIVITY_TYPE) OTHER_SQL_ACTIVITY_TYPE, NVL2(DUP.C2, NULL, ASH00.EVENT_NAME) EVENT_NAME, NVL2(DUP.C2, NULL, ASH00.TOP_LEVEL_SQL_ID) TOP_LEVEL_SQL_ID, NVL2(DUP.C2, NULL, ASH00.DBOP_NAME) DBOP_NAME, NVL2(DUP.C2, NULL, ASH00.IS_PX_SLAVE) IS_PX_SLAVE, NVL2(DUP.C2, NULL, ASH00.SESSION_ID) SESSION_ID, NVL2(DUP.C2, NULL, ASH00.PLSQL_OBJECT_ID) PLSQL_OBJECT_ID, NVL2(DUP.C2, NULL, ASH00.PLSQL_SUBPROGRAM_ID) PLSQL_SUBPROGRAM_ID, NVL2(DUP.C2, NULL, ASH00.PLAN_LINE_ID) PLAN_LINE_ID, NVL2(DUP.C2, NULL, ASH00.PX_STEP_ID) PX_STEP_ID, NVL2(DUP.C 2, NULL, ASH00.PX_STEP_ARG) PX_STEP_ARG, NVL2(DUP.C2, NULL, ASH00.PX_DFO_PAIR_ID) PX_DFO_PAIR_ID, NVL2(DUP.C2, NULL, ASH00.PX_DFO_PAIR_TYPE) PX_DFO_PAIR_TYPE, NVL2(DUP.C2, NULL, ASH00.PX_DOP) PX_DOP FROM (SELECT 1 C1, NULL C2 FROM V$TIMER UNION ALL SELECT 1 C1, 1 C2 FROM V$TIMER) DUP, (SELECT /*+ no_merge */ 1 C1, ASH000.SAMPLE_DATE, ASH000.IS_MONITORED_SQL, ((EXTRACT(SECOND FROM(DELTA_TIME)) + EXTRACT(MINUTE FROM(DELTA_TIME)) * 60 + EXTRACT(HOUR FROM(DELTA_TIME)) * 3600 + EXTRACT(DAY FROM(DELTA_TIME)) * 86400)) DELTA_TIME_SECONDS, ASH000.WAIT_CLASS, DECODE(ASH000.IS_MONITORED_SQL, 1, NVL(ASH000.WAIT_CLASS, 'Cpu'), DECODE(SQL_ID, NULL, 'Non SQL', 'Other SQL Execution')) ACTIVITY_TYPE, NVL(ASH000.WAIT_CLASS, 'Cpu') OTHER_SQL_ACTIVITY_TYPE, DECODE(:B24 , 1, CASE WHEN ASH000.IS_MONITORED_SQL = 1 THEN ASH000.EVENT WHEN ASH000.SQL_ID IS NOT NULL THEN 'sql_id: ' || ASH000.SQL_ID WHEN ASH000.CALL_NAME IS NOT NULL THEN 'call: ' || ASH000.CALL_NAME ELSE 'anonymous : '|| ASH000.EVENT END, NULL) EVENT_NAME, CASE WHEN ASH000.IS_MONITORED_SQL = 1 AND (NVL(ASH000.SQL_ID, :B9 ) = :B9 OR NVL(ASH000.DBOP_NAME, :B6 ) = :B6 ) THEN 'this' WHEN ASH000.IS_PX_SLAVE = 1 AND ASH000.SQL_ID IS NOT NULL AND ASH000.TOP_LEVEL_SQL_ID != ASH000.SQL_ID THEN ASH000.TOP_LEVEL_SQL_ID WHEN ASH000.SQL_ID IS NOT NULL THEN ASH000.SQL_ID ELSE NVL(CALL_NAME, 'anonymous') END SQL, CASE WHEN ASH000.IS_PX_SLAVE = 0 AND (ASH000.SQL_ID IS NULL OR ASH000.TOP_LEVEL_SQL_ID != ASH000.SQL_ID) THEN ASH000.TOP_LEVEL_SQL_ID END TOP_LEVEL_SQL_ID, ASH000.DBOP_NAME, ASH000.IS_PX_SLAVE, CASE WHEN ASH000.IS_PX_SLAVE = 1 AND ASH000.IS_MONITORED_SQL != 1 THEN 65536 ELSE ASH000.SESSION_ID END SESSION_ID, DECODE(ASH000.IS_MONITORED_SQL, 1, ASH000.PLSQL_OBJECT_ID, NULL) PLSQL_OBJECT_ID, DECODE(ASH000.IS_MONITORED_SQL, 1, ASH000.PLSQL_SUBPROGRAM_ID, NULL) PLSQL_SUBPROGRAM_ID, DECODE(ASH000.IS_MONITORED_SQL, 1, ASH000.SQL_PLAN_LINE_ID, NULL) PLAN_LINE_ID, DECODE(ASH000.IS_MONITORE D_SQL, 1, ASH000.PX_STEP_ID, NULL) PX_STEP_ID, CASE WHEN ASH000.IS_PX_SLAVE = 1 AND ASH000.IS_MONITORED_SQL = 1 AND ASH000.PX_STEP_ID IN (1, 2, 3) THEN ASH000.PX_STEP_ARG ELSE NULL END PX_DFO_PAIR_ID, CASE WHEN ASH000.IS_PX_SLAVE = 0 OR ASH000.IS_MONITORED_SQL != 1 THEN NULL WHEN ASH000.PX_STEP_ID = 1 THEN 1 WHEN ASH000.PX_STEP_ID IN (2, 3) THEN 0 ELSE NULL END PX_DFO_PAIR_TYPE, DECODE(ASH000.IS_MONITORED_SQL, 1, ASH000.PX_STEP_ARG, NULL) PX_STEP_ARG, DECODE(ASH000.IS_MONITORED_SQL, 1, ASH000.PX_DOP, NULL) PX_DOP FROM (SELECT ASH0.*, CASE WHEN ASH0.IS_TARGET_SQL = 1 OR (ASH0.IS_PX_SLAVE = 1 AND ((NVL(ASH0.TOP_LEVEL_SQL_ID, ASH0.SQL_ID) IS NOT NULL AND NVL(ASH0.TOP_LEVEL_SQL_ID, ASH0.SQL_ID) = :B9 ) OR (SQL_ID IS NULL AND :B23 = 'Y'))) THEN 1 ELSE 0 END IS_MONITORED_SQL FROM (SELECT (CASE WHEN (ASH.SQL_ID = :B9 AND ASH.SQL_EXEC_ID = :B7 AND ASH.SQL_EXEC_START = :B8 ) THEN 1 ELSE 0 END) IS_TARGET_SQL, ASH.SQL_ID, ASH.SQL_PLAN_LINE_ID, ASH.PLSQL_OBJECT_ID, ASH.PLSQL _SUBPROGRAM_ID, ASH.TOP_LEVEL_SQL_ID, DECODE(ASH.SQL_ID, NULL, ASH.TOP_LEVEL_CALL_NAME, NULL) CALL_NAME, ASH.EVENT, ASH.WAIT_CLASS, ASH.SQL_EXEC_ID, ASH.SQL_EXEC_START, ASH.DBOP_NAME, ASH.DBOP_EXEC_ID, ASH.SESSION_ID, ASH.SESSION_SERIAL#, CASE WHEN QC_INSTANCE_ID IS NOT NULL AND (ASH.SESSION_ID != ASH.QC_SESSION_ID OR ASH.SESSION_SERIAL# != ASH.QC_SESSION_SERIAL# OR USERENV('instance') != ASH.QC_INSTANCE_ID) THEN 1 ELSE 0 END IS_PX_SLAVE, SAMPLE_TIME - CAST(:B20 AS TIMESTAMP) DELTA_TIME, CAST(FROM_TZ(ASH.SAMPLE_TIME, DBTIMEZONE) AS DATE) SAMPLE_DATE, TRUNC(MOD(PX_FLAGS/65536, 32)) PX_STEP_ID, MOD(PX_FLAGS, 65536) PX_STEP_ARG, TRUNC(PX_FLAGS/2097152) PX_DOP FROM V$ACTIVE_SESSION_HISTORY ASH WHERE ((ASH.SESSION_ID = :B19 AND ASH.SESSION_SERIAL# = :B18 AND USERENV('INSTANCE') = :B17 ) OR (ASH.QC_SESSION_ID IS NOT NULL AND ASH.QC_SESSION_ID = :B19 AND ASH.QC_SESSION_SERIAL# = :B18 AND ASH.QC_INSTANCE_ID = :B17 )) AND SAMPLE_TIME BETWEEN :B16 AND :B15 ) ASH0 WHERE (ASH 0.SAMPLE_DATE BETWEEN :B20 + 1/24/3600 AND :B22 - 1/24/3600 OR (ASH0.SQL_ID = :B9 AND ASH0.SQL_EXEC_START = :B8 AND ASH0.SQL_EXEC_ID = :B7 ) OR (ASH0.DBOP_NAME = :B6 AND ASH0.DBOP_EXEC_ID = :B5 )) AND (:B21 IS NULL OR ASH0.SQL_PLAN_LINE_ID = :B21 ) AND (ASH0.IS_PX_SLAVE = 0 OR ASH0.SQL_ID IS NOT NULL)) ASH000 ) ASH00 WHERE ASH00.C1 = DUP.C1) ASH1 WHERE ASH1.BUCKET_NUM > 0 AND ASH1.BUCKET_NUM <= :B27 GROUP BY USERENV('INSTANCE'), ASH1.GLOBAL_SAMPLE_ID, ASH1.BUCKET_NUM, ASH1.SESSION_ID, ASH1.PLAN_LINE_ID, ASH1.PLSQL_OBJECT_ID, ASH1.PLSQL_SUBPROGRAM_ID, ASH1.ACTIVITY_TYPE, ASH1.EVENT_NAME, ASH1.OTHER_SQL_ACTIVITY_TYPE, ASH1.PX_STEP_ID, ASH1.PX_STEP_ARG) ASH2)))) GVTF WHERE GVTF.INST_ID BETWEEN :B11 AND :B10 ) ASH WHERE ASH.GLOBAL_SAMPLE_ID IS NULL AND ASH.SESSION_ID = MO.SID(+) AND ASH.INST_ID = MO.INST_ID(+)) AD0), RESPONSE_TIME_DATA AS (SELECT ADH.BUCKET_NUM, ADH.SQL_ROWNUM, ADH.SQL, ADH.TOP_LEVEL_SQL_ID, ADH.DBOP_NAME, ADH.PX_ID, DECODE( ADH.PX_STEP_ID, NULL, NULL, 0, NULL, 1, 'PX Server(s) - Executing Parent DFO', 2, 'PX Server(s) - Executing Child DFO', 3, 'PX Server(s) - Sampling Child DFO', 4, 'PX Server(s) - Joining Group', 5, 'QC - Scheduling Child DFO', 6, 'QC - Scheduling Parent DFO', 7, 'QC - Initializing Objects', 8, 'QC - Flushing Objects', 9, 'QC - Allocating Slaves', 10, 'QC - Initializing Granules', 11, 'PX Server(s) - Parsing Cursor', 12, 'PX Server(s) - Executing Cursor', 13, 'PX Server(s) - Preparing Transaction', 14, 'PX Server(s) - Joining Transaction', 15, 'PX Server(s) - Load Commit', 16, 'PX Server(s) - Aborting Transaction', 17, 'QC - Executing Child DFO', 18, 'QC - Executing Parent DFO', 'PX Step - ' || PX_STEP_ID) PX_STEP_ID, ADH.PX_STEP_ARG, ADH.PX_DFO_PAIR_ID, ADH.PX_DOP, ADH.PX_MIN_DOP, ADH.DFO_MOST_ACTIVE_IID, ADH.DFO_MOST_ACTIVE_SID, ADH.DFO_MOST_ACTIVE_COUNT, ADH.ACTIVITY_START, ADH.ACTIVITY_END, ADH.ACTIVITY_TYPE, ADH.OTHER_SQL_ACTIVITY_TYPE, ADH.EVENT_NAME, ADH.PLAN_LINE_ID, ADH.PLSQL_OBJECT_ID, ADH.PLSQL_SUBPROGRAM_ID, CASE WHEN PLSQL_ROWNUM = 1 AND ADH.PLSQL_OBJECT_ID IS NOT NULL THEN NVL((SELECT P.OWNER || '.' || P.OBJECT_NAME || DECODE(P.PROCEDURE_NAME, NULL, '', '.' || P.PROCEDURE_NAME) FROM DBA_PROCEDURES P WHERE P.OBJECT_ID = ADH.PLSQL_OBJECT_ID AND P.SUBPROGRAM_ID = ADH.PLSQL_SUBPROGRAM_ID), 'Unavailable') ELSE NULL END PLSQL_NAME, ADH.ACTIVITY_COUNT, ADH.BUCKET_ACTIVE_SECONDS, ADH.BUCKET_IDLE_SECONDS, (CASE WHEN ADH.IS_MONITORED_SQL = 0 THEN ADH.ACTIVE_SECONDS WHEN ADH.PX_DFO_PAIR_ID IS NOT NULL AND ADH.DFO_PAIR_CPU_HEIGHT >= :B34 THEN DECODE(ADH.ACTIVITY_TYPE, 'Cpu', (ADH.DFO_PAIR_ACTIVITY_HEIGHT / ADH.DFO_PAIR_CPU_HEIGHT) * ADH.DFO_PAIR_TOTAL_SECONDS, 0) WHEN ADH.PX_DFO_PAIR_ID IS NOT NULL AND ADH.PX_DOP > :B34 THEN (ADH.DFO_PAIR_TOTAL_SECONDS * DECODE(ADH.ACTIVITY_TYPE, 'Cpu', ADH.DFO_PAIR_ACTIVITY_HEIGHT, (ADH.DFO_PAIR_ACTIVITY_HEIGHT * (:B34 - ADH.DFO_PAIR_CPU_HEIGHT)) / (ADH.DFO_PAIR_TOTAL_HEIGHT_ADJ - ADH.DFO_PAIR_CPU_HEIGHT))) / :B34 WHEN ADH.PX_DFO_PAIR_ID IS NOT NULL THEN (ADH.DFO_PAIR_TOTAL_SECONDS * ADH.DFO_PAIR_ACTIVITY_HEIGHT) / ADH.PX_DOP ELSE ADH.ACTIVE_SECONDS END) RESP_TIME, (CASE WHEN ADH.PX_DFO_PAIR_ID IS NOT NULL AND ADH.DFO_PAIR_IDLE_HEIGHT > 0 AND ADH.PX_DOP > :B34 THEN (ADH.DFO_PAIR_TOTAL_SECONDS * (ADH.DFO_PAIR_IDLE_HEIGHT * (:B34 - ADH.DFO_PAIR_CPU_HEIGHT)) / (ADH.DFO_PAIR_TOTAL_HEIGHT_ADJ - ADH.DFO_PAIR_CPU_HEIGHT)) / :B34 WHEN ADH.PX_DFO_PAIR_ID IS NOT NULL AND ADH.DFO_PAIR_IDLE_HEIGHT > 0 THEN (ADH.DFO_PAIR_TOTAL_SECONDS * ADH.DFO_PAIR_IDLE_HEIGHT) / ADH.PX_DOP ELSE 0 END) DFO_PAIR_IDLE_RESP_TIME, ADH.DFO_PAIR_ACTIVITY_HEIGHT, ADH.DFO_PAIR_CPU_HEIGHT, ADH.DFO_PAIR_IDLE_HEIGHT, ADH.DFO_PAIR_TOTAL_HEIGHT, ADH.DFO_PAIR_CPU_ACTIVITY, ADH.DFO_PAIR_TOTAL_SECONDS FROM (SELECT ADH_1.*, (ROW_NUMBER() OVER(PARTITION BY ADH_1.PLSQL_OBJECT_ID, ADH_1.PLSQL_SUBPROGRAM_ID ORDER BY ADH_1.BUCKET_NUM, ADH_1.ACTIVITY_TYPE, ADH_1.EVENT_NAME)) PLSQL_ROWNUM, (ROW_NUMBER() OVER(PARTITION BY ADH_1.SQL ORDER BY ADH_1.BUCKET_NUM, ADH_1.ACTIVITY_TYPE, ADH_1.EVENT_NAME)) SQL_ROWNUM, (CASE WHEN ADH_1.PX_DFO_PAIR_ID IS NOT NULL AND (ADH_1.DFO_PAIR_TOTAL_HEIGHT < ADH_1.PX_DOP) AND (ADH_1.DFO_PAIR_CPU_HEIGHT < :B34 ) THEN ADH_1.PX_DOP - ADH_1.DFO_PAIR_TOTAL_HEIGHT ELSE 0 END) DFO_PAIR_IDLE_HEIGHT, (CASE WHEN ADH_1.PX_DFO_PAIR_ID IS NOT NULL AND (ADH_1.DFO_PAIR_TOTAL_HEIGHT < ADH_1.PX_DOP) AND (ADH_1.DFO_PAIR_CPU_HEIGHT < :B34 ) THEN ADH_1.PX_DOP ELSE ADH_1.DFO_PAIR_TOTAL_HEIGHT END) DFO_PAIR_TOTAL_HEIGHT_ADJ FROM (SELECT ADH_0.*, (CASE WHEN ADH_0.DFO_PAIR_TOTAL_SECONDS > 0 THEN (ADH_0.DFO_PAIR_TOTAL_ACTIVITY * :B25 ) / ADH_0.DFO_PAIR_TOTAL_SECONDS ELSE 0 END) DFO_PAIR_TOTAL_HEIGHT, (CASE WHEN ADH_0.DFO_PAIR_TOTAL_SECONDS > 0 THEN (ADH_0.DFO_PAIR_CPU_ACTIVITY * :B25 ) / ADH_0.DFO_PAIR_TOTAL_SECONDS ELSE 0 END) DFO_PAIR_CPU_HEIGHT, (CASE WHEN ADH_0.PX_DFO_PAIR_ID IS NOT NULL AND ADH_0.DFO_PAIR_TOTAL_SECONDS > 0 THEN (ADH_0. ACTIVITY_COUNT * :B25 ) / ADH_0.DFO_PAIR_TOTAL_SECONDS ELSE 0 END) DFO_PAIR_ACTIVITY_HEIGHT FROM (SELECT AD3.*, (SUM(DECODE(AD3.PX_DFO_PAIR_ID, NULL, 0, AD3.ACTIVE_SECONDS)) OVER(PARTITION BY DECODE(AD3.PX_DFO_PAIR_ID, NULL, NULL, AD3.BUCKET_NUM), DECODE(AD3.PX_DFO_PAIR_ID, NULL, NULL, AD3.PX_STEP_ARG))) DFO_PAIR_TOTAL_SECONDS FROM (SELECT AD2.*, CASE WHEN AD2.IS_MONITORED_SQL = 0 THEN SQL_BUCKET_DISTINCT_SAMPLES * :B25 WHEN AD2.PX_ID IS NULL THEN AD2.ACTIVITY_COUNT * :B25 WHEN AD2.BUCKET_PARALLEL_MON_ACTIVITY > 0 THEN (AD2.ACTIVITY_COUNT * AD2.BUCKET_PARALLEL_MON_SECONDS) / AD2.BUCKET_PARALLEL_MON_ACTIVITY ELSE 0 END ACTIVE_SECONDS, CASE WHEN AD2.BUCKET_INTERVAL > BUCKET_ACTIVE_SECONDS THEN AD2.BUCKET_INTERVAL - BUCKET_ACTIVE_SECONDS ELSE 0 END BUCKET_IDLE_SECONDS FROM (SELECT AD1.*, (AD1.BUCKET_SERIAL_MON_ACTIVITY * :B25 ) BUCKET_SERIAL_MON_SECONDS, (AD1.BUCKET_TOTAL_MON_ACTIVITY - AD1.BUCKET_SERIAL_MON_ACTIVITY) BUCKET_PARALLEL_MON_ACTIVITY, (AD1.BUCKET_ACTIVE_ SECONDS - (AD1.BUCKET_OTHER_ACTIVITY + AD1.BUCKET_SERIAL_MON_ACTIVITY) * :B25 ) BUCKET_PARALLEL_MON_SECONDS, (AD1.BUCKET_OTHER_ACTIVITY * :B25 ) BUCKET_OTHER_SECONDS, DECODE(AD1.PX_DFO_PAIR_ID, NULL, NULL, SUM(AD1.ACTIVITY_COUNT) OVER(PARTITION BY DECODE(AD1.PX_DFO_PAIR_ID, NULL, NULL, AD1.BUCKET_NUM), AD1.PX_DFO_PAIR_ID)) DFO_PAIR_TOTAL_ACTIVITY, DECODE(AD1.PX_DFO_PAIR_ID, NULL, NULL, SUM(DECODE(AD1.ACTIVITY_TYPE, 'Cpu', AD1.ACTIVITY_COUNT, 0)) OVER(PARTITION BY DECODE(AD1.PX_DFO_PAIR_ID, NULL, NULL, AD1.BUCKET_NUM), AD1.PX_DFO_PAIR_ID)) DFO_PAIR_CPU_ACTIVITY FROM (SELECT AD01.*, NVL((SUM(DECODE(AD01.IS_MONITORED_SQL, 1, AD01.ACTIVITY_COUNT, NULL)) OVER(PARTITION BY AD01.BUCKET_NUM)), 0) BUCKET_TOTAL_MON_ACTIVITY, (NVL(SUM(CASE WHEN AD01.IS_MONITORED_SQL = 1 AND AD01.PX_ID IS NULL THEN AD01.ACTIVITY_COUNT ELSE NULL END) OVER(PARTITION BY AD01.BUCKET_NUM), 0)) BUCKET_SERIAL_MON_ACTIVITY, (NVL((SUM(DECODE(AD01.IS_MONITORED_SQL, 0, AD01.SQL_BUCKET_DISTINCT_S AMPLES, NULL)) OVER(PARTITION BY AD01.BUCKET_NUM)), 0)) BUCKET_OTHER_ACTIVITY, (NVL(AD01.BUCKET_DISTINCT_SAMPLES, 0) * :B25 ) BUCKET_ACTIVE_SECONDS, DECODE(AD01.BUCKET_NUM, :B27 , MOD(:B32 , :B26 ), :B26 ) BUCKET_INTERVAL FROM (SELECT AD0.ACTIVITY_BUCKET_NUM BUCKET_NUM, AD0.PX_ID, AD0.ACTIVITY_TYPE, AD0.OTHER_SQL_ACTIVITY_TYPE, AD0.EVENT_NAME, AD0.PLAN_LINE_ID, AD0.PX_STEP_ID, AD0.PX_STEP_ARG, AD0.PLSQL_OBJECT_ID, AD0.PLSQL_SUBPROGRAM_ID, SUM(AD0.ACTIVITY_COUNT) ACTIVITY_COUNT, MIN(AD0.ACTIVITY_START) ACTIVITY_START, MAX(AD0.ACTIVITY_END) ACTIVITY_END, MAX(AD0.IS_MONITORED_SQL) IS_MONITORED_SQL, MAX(AD0.SQL) SQL, MAX(AD0.TOP_LEVEL_SQL_ID) TOP_LEVEL_SQL_ID, MAX(AD0.DBOP_NAME) DBOP_NAME, MAX(DECODE(AD0.DFO_MOST_ACTIVE_COUNT, NULL, NULL, AD0.DFO_MOST_ACTIVE_IID)) DFO_MOST_ACTIVE_IID, MAX(DECODE(AD0.DFO_MOST_ACTIVE_COUNT, NULL, NULL, AD0.DFO_MOST_ACTIVE_SID)) DFO_MOST_ACTIVE_SID, SUM(AD0.DFO_MOST_ACTIVE_COUNT) DFO_MOST_ACTIVE_COUNT, MAX(PX_DFO_PAIR_TYPE) PX_DFO_PAIR_TYPE, MAX(PX_DFO_PAIR_ID) PX_DFO_PAIR_ID, MAX(AD0.PX_DOP) PX_DOP, MIN(AD0.PX_MIN_DOP) PX_MIN_DOP, MAX(AD0.BUCKET_DISTINCT_SAMPLES) BUCKET_DISTINCT_SAMPLES, MAX(AD0.SQL_BUCKET_DISTINCT_SAMPLES) SQL_BUCKET_DISTINCT_SAMPLES FROM (SELECT AD00.*, (CASE WHEN AD00.IS_MONITORED_SQL = 1 AND (AD00.SESSION_ID != :B19 OR AD00.INST_ID != :B17 ) THEN AD00.PX_SERVER_GROUP END) PX_ID FROM ASH_DATA AD00 WHERE :B33 = 1 ) AD0 GROUP BY AD0.ACTIVITY_BUCKET_NUM, AD0.PX_ID, AD0.ACTIVITY_TYPE, AD0.EVENT_NAME, AD0.OTHER_SQL_ACTIVITY_TYPE, AD0.PLAN_LINE_ID, AD0.PLSQL_OBJECT_ID, AD0.PLSQL_SUBPROGRAM_ID, AD0.PX_STEP_ID, AD0.PX_STEP_ARG ) AD01) AD1) AD2) AD3) ADH_0) ADH_1) ADH) SELECT /*+ no_monitor no_xml_query_rewrite */ XMLELEMENT( "sql_monitor_report", XMLATTRIBUTES(:B59 AS "version", TO_CHAR(:B58 , :B12 ) AS "sysdate"), XMLELEMENT( "report_parameters", NULL, CASE WHEN :B57 IS NOT NULL THEN XMLFOREST( :B57 AS "dbop_name", :B56 AS "dbop_exec_id") ELSE XMLFOREST( :B55 AS "sql_id", :B54 AS "sql_exec_id") END, XMLFOREST( :B53 AS "session_id", :B52 AS "session_serial", TO_CHAR(:B51 , :B12 ) AS "sql_exec_start", :B27 AS "bucket_count", TO_CHAR(:B50 , :B12 ) AS "interval_start", TO_CHAR(:B22 , :B12 ) AS "interval_end", DECODE(:B49 , 'Y', :B48 , NULL) AS "auto_refresh", :B47 AS "base_path"), CASE WHEN :B23 = 'Y' AND :B46 IS NOT NULL AND NOT (:B4 = 1 AND :B3 IS NULL AND :B2 IS NULL AND :B1 IS NULL) THEN XMLELEMENT( "parallel_filter", NULL, XMLFOREST( DECODE(:B4 , 1, 'yes', 'no') AS "qc", :B3 AS "server_group", :B2 AS "server_set", :B1 AS "server_number")) ELSE NULL END), CASE WHEN :B14 = 1 THEN XMLELEMENT( "derived_parameters_testing", NULL, XMLFOREST(:B11 AS "instance_id_low", :B10 AS "instance_id_high ", :B26 AS "bucket_interval_sec", :B32 AS "interval_second", :B27 AS "bucket_calc_count", :B45 AS "bucket_calc_max_count", :B13 AS "sel_sqltext")) ELSE NULL END, (SELECT XMLCONCAT( CASE WHEN :B46 IS NULL AND :B60 IS NULL THEN XMLELEMENT( "target", XMLATTRIBUTES(:B17 AS "instance_id", :B19 AS "session_id", :B18 AS "session_serial", NVL2(:B6 , NULL, :B9 ) AS "sql_id", NVL2(:B6 , NULL, TO_CHAR(:B8 , :B12 )) AS "sql_exec_start", NVL2(:B6 , NULL, :B7 ) AS "sql_exec_id", NVL2(:B6 , :B6 , NULL) AS "dbop_name", NVL2(:B6 , :B5 , NULL) AS "dbop_exec_id", NVL2(:B6 , TO_CHAR(:B8 , :B12 ), NULL) AS "dbop_exec_start", NVL2(:B6 , NULL, MAX_PLAN_HASH_VALUE) AS "sql_plan_hash", MAGG.DB_UNIQUE_NAME AS "db_unique_name", MAGG.PLATFORM_NAME AS "db_platform_name", MAGG.HOST_NAME AS "rep ort_host_name"), NVL2(SUM_SERVERS_REQUESTED, XMLELEMENT( "servers_requested", NULL, SUM_SERVERS_REQUESTED), NULL), NVL2(SUM_SERVERS_ALLOCATED, XMLELEMENT( "servers_allocated", NULL, SUM_SERVERS_ALLOCATED), NULL), NVL2(MAX_USERID, XMLELEMENT( "user_id", NULL, MAX_USERID), NULL), NVL2(MAX_USERNAME, XMLELEMENT( "user", NULL, MAX_USERNAME), NULL), NVL2(MAX_CON_ID, XMLELEMENT( "con_id", NULL, MAX_CON_ID), NULL), NVL2(MAX_CON_NAME, XMLELEMENT( "con_name", NULL, MAX_CON_NAME), NULL), NVL2(MAX_PROGRAM, XMLELEMENT( "program", NULL, MAX_PROGRAM), NULL), NVL2(MAX_MODULE, XMLELEMENT( "module", NULL, MAX_MODULE), NULL), NVL2(MAX_ACTION, XMLELEMENT( "action", NULL, MAX_ACTION), NULL), NVL2(MAX_SERVICE_NAME, XMLELEMENT( "service", NULL, MAX_SERVICE_NAME), NULL), NVL2(MAX_CLIENT_ID, XMLELEMENT( "client_id", NULL, MAX_CLIENT_ID), NULL) , NVL2(MAX_CLIENT_INFO, XMLELEMENT( "client_info", NULL, MAX_CLIENT_INFO), NULL), NVL2(MAX_PL_ENTRY_OID, XMLELEMENT( "plsql_entry_object_id", NULL, MAX_PL_ENTRY_OID), NULL), NVL2(MAX_PL_ENTRY_PROGID, XMLELEMENT( "plsql_entry_subprogram_id", NULL, MAX_PL_ENTRY_PROGID), NULL), NVL2(MAX_PL_ENTRY_NAME, XMLELEMENT( "plsql_entry_name", NULL, MAX_PL_ENTRY_NAME), NULL), NVL2(MAX_PL_OID, XMLELEMENT( "plsql_object_id", NULL, MAX_PL_OID), NULL), NVL2(MAX_PL_PROGID, XMLELEMENT( "plsql_subprogram_id", NULL, MAX_PL_PROGID), NULL), NVL2(MAX_PL_NAME, XMLELEMENT( "plsql_name", NULL, MAX_PL_NAME), NULL), CASE WHEN (:B13 = 0 OR :B6 IS NOT NULL) THEN NULL ELSE XMLELEMENT( "sql_fulltext", XMLATTRIBUTES(NVL2(SQL_VTEXT, 'Y', IS_FULL_TEXT) AS "is_full"), NVL2(SQL_VTEXT, SQL_VTEXT, SQLMON_TEXT)) END, XMLELEMENT( "status", NULL, MAX_STATUS), XMLELEMENT( "refresh_ count", NULL, SUM_REFRESH_COUNT), XMLELEMENT( "first_refresh_time", NULL, TO_CHAR(MIN_FIRST_REFRESH_TIME, :B12 )), XMLELEMENT( "last_refresh_time", NULL, TO_CHAR(:B58 , :B12 )), XMLELEMENT( "duration", NULL, GREATEST(:B63 , LEAST(MAX_ELAPSED_TIME/1000000, 1), CEIL(MAX_QUEUING_TIME/1000000))), DECODE(MAX_RM_INFO, '00/00/0000 00:00:00', NULL, XMLTYPE(SUBSTR(MAX_RM_INFO, 20))), NVL((SELECT XMLFOREST( XMLAGG( XMLELEMENT( "param", XMLATTRIBUTES(E.NAME AS "name"), DECODE(:B14 , 1, 'XXXX', E.VALUE)) ORDER BY E.NAME) AS "optimizer_env") SQL_ENV FROM GV$SQL_OPTIMIZER_ENV E WHERE E.INST_ID = :B17 AND E.SQL_ID = :B9 AND E.CHILD_ADDRESS = HEXTORAW(:B64 ) AND (DECODE(:B14 , 1, 'YES', E.ISDEFAULT) = 'NO' OR E.ID IN (2, 12, 24, 35, 36, 37, 246, 256, 257, 274, 275, 289, 290))), (SELECT XMLELEMENT( "optimizer_env", XMLATTRIBUTES('sys' AS "type"), XMLAGG( XMLELEMENT( "pa ram", XMLATTRIBUTES(E.NAME AS "name"), DECODE(:B14 , 1, 'XXXX', E.VALUE)) ORDER BY E.NAME)) SYS_ENV FROM V$SYS_OPTIMIZER_ENV E WHERE (DECODE(:B14 , 1, 'YES', E.ISDEFAULT) = 'NO' OR E.ID IN (2, 12, 24, 35, 36, 37, 246, 256, 257, 274, 275, 289, 290)))) ) END, XMLELEMENT( "stats", XMLATTRIBUTES('monitor' AS "type"), DECODE(NVL(SUM_ELAPSED_TIME, 0), 0, NULL, XMLELEMENT( "stat", XMLATTRIBUTES('elapsed_time' AS "name"), SUM_ELAPSED_TIME)), DECODE(NVL(MAX_QUEUING_TIME, 0), 0, NULL, XMLELEMENT( "stat", XMLATTRIBUTES('queuing_time' AS "name"), MAX_QUEUING_TIME)), DECODE(NVL(SUM_CPU_TIME, 0), 0, NULL, XMLELEMENT( "stat", XMLATTRIBUTES('cpu_time' AS "name"), SUM_CPU_TIME)), DECODE(NVL(SUM_USER_IO_WAIT_TIME, 0), 0, NULL, XMLELEMENT( "stat", XMLATTRIBUTES('user_io_wait_time' AS "name"), SUM_USER_IO_WAIT_TIME)), DECODE(NVL(SUM_APPLICATI ON_WAIT_TIME, 0), 0, NULL, XMLELEMENT( "stat", XMLATTRIBUTES('application_wait_time' AS "name"), SUM_APPLICATION_WAIT_TIME)), DECODE(NVL(SUM_CONCURRENCY_WAIT_TIME, 0), 0, NULL, XMLELEMENT( "stat", XMLATTRIBUTES('concurrency_wait_time' AS "name"), SUM_CONCURRENCY_WAIT_TIME)), DECODE(NVL(SUM_CLUSTER_WAIT_TIME, 0), 0, NULL, XMLELEMENT( "stat", XMLATTRIBUTES('cluster_wait_time' AS "name"), SUM_CLUSTER_WAIT_TIME)), DECODE(NVL(SUM_PLSQL_EXEC_TIME, 0), 0, NULL, XMLELEMENT( "stat", XMLATTRIBUTES('plsql_exec_time' AS "name"), SUM_PLSQL_EXEC_TIME)), DECODE(NVL(SUM_JAVA_EXEC_TIME, 0), 0, NULL, XMLELEMENT( "stat", XMLATTRIBUTES('java_exec_time' AS "name"), SUM_JAVA_EXEC_TIME)), DECODE(NVL(SUM_OTHER_WAIT_TIME, 0), 0, NULL, XMLELEMENT( "stat", XMLATTRIBUTES('other_wait_time' AS "name"), SUM_OTHER_WAIT_TIME)), DECODE(NVL(SUM_FETCHES, 0), 0 , NULL, XMLELEMENT( "stat", XMLATTRIBUTES('user_fetch_count' AS "name"), SUM_FETCHES)), DECODE(NVL(SUM_BUFFER_GETS, 0), 0, NULL, XMLELEMENT( "stat", XMLATTRIBUTES('buffer_gets' AS "name"), SUM_BUFFER_GETS)), DECODE(NVL(SUM_READ_REQS, 0), 0, NULL, XMLELEMENT( "stat", XMLATTRIBUTES('disk_reads' AS "name"), SUM_READ_REQS)), DECODE(NVL(SUM_WRITE_REQS, 0), 0, NULL, XMLELEMENT( "stat", XMLATTRIBUTES('direct_writes' AS "name"), SUM_WRITE_REQS)), DECODE(NVL(SUM_READ_REQS, 0), 0, NULL, XMLELEMENT( "stat", XMLATTRIBUTES('read_reqs' AS "name"), SUM_READ_REQS)), DECODE(NVL(SUM_READ_BYTES, 0), 0, NULL, XMLELEMENT( "stat", XMLATTRIBUTES('read_bytes' AS "name"), SUM_READ_BYTES)), DECODE(NVL(SUM_WRITE_REQS, 0), 0, NULL, XMLELEMENT( "stat", XMLATTRIBUTES('write_reqs' AS "name"), SUM_WRITE_REQS)), DECODE(NVL(SUM_WRITE_B YTES, 0), 0, NULL, XMLELEMENT( "stat", XMLATTRIBUTES('write_bytes' AS "name"), SUM_WRITE_BYTES)), CASE WHEN SUM_IO_INTER_BYTES IS NULL OR SUM_IO_BYTES = 0 OR SUM_IO_INTER_BYTES = SUM_IO_BYTES THEN NULL ELSE XMLELEMENT( "stat", XMLATTRIBUTES('cell_offload_efficiency' AS "name"), ROUND(SUM_IO_BYTES / DECODE(SUM_IO_INTER_BYTES, 0, 1, SUM_IO_INTER_BYTES), 2)) END), NVL2(MAX_ERROR_NUMBER, XMLELEMENT( "error", XMLATTRIBUTES(MAX_ERROR_NUMBER AS "number", MAX_ERROR_FACILITY AS "facility"), MAX_ERROR_MESSAGE), NULL), CASE WHEN :B62 = 1 AND MAGG.QC_HAS_BINDS_XML = 'Y' THEN (SELECT XMLTYPE(BINDS_XML) FROM GV$SQL_MONITOR MON WHERE MON.INST_ID = :B17 AND MON.KEY = MAGG.MAX_KEY AND MON.SID = MAGG.MAX_SESSION_ID AND MON.SQL_ID = :B9 AND MON.SQL_EXEC_START = :B8 AND MON.SQL_EXEC_ID = :B7 AND ROWNUM = 1) ELSE NULL END, CASE WHEN :B61 = 1 AND MAGG.QC_HAS_OTHER_XML = 'Y' THEN (SELECT XMLTYPE(OTHER_XML) FROM GV$SQL_ MONITOR MON WHERE MON.INST_ID = MAGG.MAX_INST_ID AND MON.KEY = MAGG.MAX_KEY AND MON.SID = MAGG.MAX_SESSION_ID AND MON.SQL_ID = :B9 AND MON.SQL_EXEC_START = :B8 AND MON.SQL_EXEC_ID = :B7 AND ROWNUM = 1) ELSE NULL END) FROM (SELECT V.*, CASE WHEN :B13 = 2 AND IS_FULL_TEXT = 'N' AND :B46 IS NULL AND :B60 IS NULL THEN (SELECT SQL_FULLTEXT FROM GV$SQL SQ WHERE SQ.INST_ID BETWEEN :B11 AND :B10 AND SQ.SQL_ID = :B9 AND ROWNUM = 1) ELSE NULL END SQL_VTEXT FROM MONITOR_AGG V) MAGG), CASE WHEN :B44 = 1 THEN (SELECT CASE WHEN AT.ACTIVITY_COUNT > 0 THEN XMLELEMENT( "activity_sampled", XMLATTRIBUTES( :B41 AS "ash_missing_seconds", TO_CHAR(AT.ACTIVITY_START, :B12 ) AS "first_sample_time", TO_CHAR(AT.ACTIVITY_END, :B12 ) AS "last_sample_time", ROUND((AT.ACTIVITY_END - AT.ACTIVITY_START) * 3600 * 24) + 1 AS "duration", AT.ACTIVITY_COUNT AS "count", AT.WAIT_COUNT AS "wait_count", AT.CPU_COUNT AS "cpu_count", D ECODE(AT.OTHER_SQL_COUNT, 0, NULL, AT.OTHER_SQL_COUNT) AS "other_sql_count", :B40 AS "cpu_cores", :B39 AS "hyperthread"), AT.ACTIVITY_TOTAL, AH.GLOB_ACTIVITY_HISTO) WHEN :B41 IS NOT NULL THEN XMLELEMENT( "activity_sampled", XMLATTRIBUTES( DECODE( :B41 , -1, 'all', TO_CHAR( :B41 )) AS "ash_missing_seconds")) ELSE NULL END FROM (SELECT MIN(AD1.ACTIVITY_START) ACTIVITY_START, MAX(AD1.ACTIVITY_END) ACTIVITY_END, SUM(AD1.ACTIVITY_COUNT) ACTIVITY_COUNT, SUM(AD1.WAIT_COUNT) WAIT_COUNT, SUM(AD1.CPU_COUNT) CPU_COUNT, SUM(AD1.OTHER_SQL_COUNT) OTHER_SQL_COUNT, SUBSTR(MAX(LPAD(AD1.ACTIVITY_COUNT, 10)|| AD1.ACTIVITY_TYPE), 11) MOST_ACTIVE, XMLAGG( XMLELEMENT( "activity", XMLATTRIBUTES( AD1.ACTIVITY_TYPE AS "class", AD1.EVENT_NAME AS "event"), AD1.ACTIVITY_COUNT) ORDER BY AD1.ACTIVITY_TYPE, AD1.EVENT_NAME) ACTIVITY_TOTAL FROM (SELECT AD0.ACTIVITY_TYPE, AD0.EVENT_NAME, MIN(AD0.ACTIVITY_START) ACTI VITY_START, MAX(AD0.ACTIVITY_END) ACTIVITY_END, SUM(AD0.ACTIVITY_COUNT) ACTIVITY_COUNT, SUM(AD0.WAIT_COUNT) WAIT_COUNT, SUM(AD0.CPU_COUNT) CPU_COUNT, SUM(AD0.OTHER_SQL_COUNT) OTHER_SQL_COUNT FROM ASH_DATA AD0 GROUP BY AD0.ACTIVITY_TYPE, AD0.EVENT_NAME) AD1) AT, (SELECT CASE WHEN :B30 = 1 AND :B27 > 1 THEN XMLELEMENT( "activity_histogram", XMLATTRIBUTES( :B26 AS "bucket_interval", :B27 AS "bucket_count", TO_CHAR( :B20 , :B12 ) AS "start_time", TO_CHAR( :B22 , :B12 ) AS "end_time", ROUND(( :B22 - :B20 ) *3600*24) + 1 AS "duration"), XMLAGG( XMLELEMENT( "bucket", XMLATTRIBUTES( AD2.BUCKET_NUM AS "number"), ACTIVITY_BUCKET) ORDER BY AD2.BUCKET_NUM)) ELSE NULL END GLOB_ACTIVITY_HISTO FROM (SELECT AD1.BUCKET_NUM, SUM(ACTIVITY_COUNT) ACTIVITY_COUNT, SUM(WAIT_COUNT) WAIT_COUNT, SUM(CPU_COUNT) CPU_COUNT, SUM(OTHER_SQL_COUNT) OTHER_SQL_COUNT, MIN(AD1.ACTIVITY_START) ACTIVITY_START, MAX(AD1.A CTIVITY_END) ACTIVITY_END, MIN(AD1.BUCKET_ACTIVITY_START) BUCKET_ACTIVITY_START, MAX(AD1.BUCKET_ACTIVITY_END) BUCKET_ACTIVITY_END, SUBSTR(MAX(LPAD(AD1.ACTIVITY_COUNT, 10)|| AD1.ACTIVITY_TYPE), 11) MOST_ACTIVE, XMLAGG( XMLELEMENT( "activity", XMLATTRIBUTES( AD1.ACTIVITY_TYPE AS "class", AD1.EVENT_NAME AS "event"), AD1.ACTIVITY_COUNT) ORDER BY AD1.ACTIVITY_TYPE, AD1.EVENT_NAME) ACTIVITY_BUCKET FROM (SELECT AD0.ACTIVITY_BUCKET_NUM BUCKET_NUM, AD0.ACTIVITY_TYPE, AD0.EVENT_NAME, MIN(AD0.ACTIVITY_START) ACTIVITY_START, MAX(AD0.ACTIVITY_END) ACTIVITY_END, SUM(AD0.ACTIVITY_COUNT) ACTIVITY_COUNT, SUM(AD0.WAIT_COUNT) WAIT_COUNT, SUM(AD0.CPU_COUNT) CPU_COUNT, SUM(AD0.OTHER_SQL_COUNT) OTHER_SQL_COUNT, MIN(AD0.BUCKET_ACTIVITY_START) BUCKET_ACTIVITY_START, MAX(AD0.BUCKET_ACTIVITY_END) BUCKET_ACTIVITY_END FROM ASH_DATA AD0 GROUP BY AD0.ACTIVITY_BUCKET_NUM, AD0.ACTIVITY_TYPE, AD0.EVENT_NAME) AD1 GROUP BY AD1.BUCKET_NUM) AD2) AH) ELSE NULL END, CASE W HEN :B33 = 1 THEN (SELECT CASE WHEN AH.ACTIVITY_COUNT > 0 THEN XMLELEMENT( "activity_detail", XMLATTRIBUTES( TO_CHAR( :B20 , :B12 ) AS "start_time", TO_CHAR( :B22 , :B12 ) AS "end_time", :B41 AS "ash_missing_seconds", TO_CHAR(AH.ACTIVITY_START, :B12 ) AS "first_sample_time", TO_CHAR(AH.ACTIVITY_END, :B12 ) AS "last_sample_time", ROUND((AH.ACTIVITY_END - AH.ACTIVITY_START) * 3600 * 24) + 1 AS "duration", :B25 AS "sample_interval", :B26 AS "bucket_interval", :B27 AS "bucket_count", ROUND((:B22 - :B20 ) *3600*24) + 1 AS "bucket_duration", :B40 AS "cpu_cores", :B34 AS "total_cpu_cores", :B39 AS "hyperthread"), AH.GLOB_ACTIVITY_HISTO) WHEN :B41 IS NOT NULL THEN XMLELEMENT( "activity_detail", XMLATTRIBUTES( DECODE( :B41 , -1, 'all', TO_CHAR( :B41 )) AS "ash_missing_seconds")) ELSE NULL END FROM (SELECT MIN(AD2 .ACTIVITY_START) ACTIVITY_START, MAX(AD2.ACTIVITY_END) ACTIVITY_END, SUM(AD2.ACTIVITY_COUNT) ACTIVITY_COUNT, XMLAGG( XMLELEMENT( "bucket", XMLATTRIBUTES( AD2.BUCKET_NUM AS "number"), ACTIVITY_BUCKET_XML) ORDER BY AD2.BUCKET_NUM) GLOB_ACTIVITY_HISTO FROM (SELECT AD1.BUCKET_NUM, MIN(AD1.ACTIVITY_START) ACTIVITY_START, MAX(AD1.ACTIVITY_END) ACTIVITY_END, SUM(AD1.ACTIVITY_COUNT) ACTIVITY_COUNT, MAX(AD1.BUCKET_IDLE_SECONDS) BUCKET_IDLE_SECONDS, XMLAGG( XMLCONCAT( CASE WHEN AD1.DFO_PAIR_IDLE_RESP_TIME != 0 AND DFO_PAIR_ROWNUM = 1 THEN XMLELEMENT( "activity", XMLATTRIBUTES( 'Parallel Skew' AS "class", AD1.PX_STEP_ARG AS "line", AD1.PX_ID AS "px", ROUND(AD1.DFO_PAIR_IDLE_RESP_TIME, 2) AS "rt"), 0) ELSE NULL END, XMLELEMENT( "activity", XMLATTRIBUTES( NVL(AD1.OTHER_SQL, AD1.RPI) AS "sql", AD1.NON_SQL AS "non_sql", AD1.CLASS AS "class", AD1.OTHER_SQL_CLASS AS " other_sql_class", AD1.EVENT AS "event", AD1.PLAN_LINE_ID AS "line", NVL2(AD1.PLSQL_OBJECT_ID, AD1.PLSQL_OBJECT_ID||'.'|| AD1.PLSQL_SUBPROGRAM_ID, NULL) AS "plsql_id", AD1.PLSQL_NAME AS "plsql_name", CASE WHEN AD1.SQL_ROWNUM = 1 THEN AD1.TOP_LEVEL_SQL_ID END AS "top_sql_id", CASE WHEN AD1.DBOP_NAME IS NOT NULL THEN AD1.DBOP_NAME END AS "dbop_name", CASE WHEN AD1.DFO_MOST_ACTIVE_IID IS NOT NULL AND :B65 = 'Y' THEN AD1.DFO_MOST_ACTIVE_IID END AS "skew_iid", DECODE(AD1.DFO_MOST_ACTIVE_COUNT, NULL, NULL, AD1.DFO_MOST_ACTIVE_SID) AS "skew_sid", AD1.DFO_MOST_ACTIVE_COUNT AS "skew_count", DECODE(AD1.PX_DOP, :B28 , NULL, AD1.PX_DOP) AS "dop", DECODE(AD1.PX_DOP, AD1.PX_MIN_DOP, NULL, AD1.PX_MIN_DOP) AS "min_dop", AD1.PX_ID AS "px", AD1.PX_STEP_ID AS "step", AD1.PX_STEP_ARG AS "arg", DECODE(AD1.ACTIVITY_COUNT, AD1.RESP_TIME, NU LL, ROUND(AD1.RESP_TIME, 2)) AS "rt"), AD1.ACTIVITY_COUNT)) ORDER BY AD1.PX_STEP_ID, AD1.PX_STEP_ARG, AD1.DFO_PAIR_ROWNUM) ACTIVITY_BUCKET_XML FROM (SELECT AD01.*, CASE WHEN AD01.ACTIVITY_TYPE != 'Other SQL Execution' AND AD01.ACTIVITY_TYPE != 'Non SQL' THEN AD01.ACTIVITY_TYPE END CLASS, CASE WHEN (AD01.ACTIVITY_TYPE = 'Other SQL Execution' OR AD01.ACTIVITY_TYPE = 'Non SQL') THEN AD01.OTHER_SQL_ACTIVITY_TYPE END OTHER_SQL_CLASS, CASE WHEN AD01.ACTIVITY_TYPE != 'Other SQL Execution' AND AD01.ACTIVITY_TYPE != 'Non SQL' THEN AD01.EVENT_NAME END EVENT, CASE WHEN AD01.SQL IN ('this', 'anonymous') THEN NULL ELSE AD01.SQL END RPI, DECODE(AD01.ACTIVITY_TYPE, 'Other SQL Execution', SUBSTR(AD01.EVENT_NAME, 9), NULL) OTHER_SQL, DECODE(AD01.ACTIVITY_TYPE, 'Non SQL', AD01.EVENT_NAME, NULL) NON_SQL, ROW_NUMBER() OVER(PARTITION BY AD01.BUCKET_NUM, AD01.PX_DFO_PAIR_ID ORDER BY AD01.ACTIVITY_TYPE, AD01.EVENT_NAME, AD01.PLAN_LINE_ID) DFO_PAIR_ROWNUM FROM RESPONSE_TIME_DA TA AD01) AD1 GROUP BY AD1.BUCKET_NUM) AD2) AH) ELSE NULL END, CASE WHEN :B23 = 'Y' THEN (SELECT XMLELEMENT( "parallel_info", XMLATTRIBUTES( :B17 AS "qc_instance_id", MAX_PX_QCSID AS "qc_session_id", MAX_PX_IS_CROSS_INSTANCE AS "is_cross_instance", MAX_PX_DOP AS "dop", MAX_PX_DOP_INSTANCES AS "max_dop_instances", DIST_INST_COUNT AS "inst_count", DIST_PX_GROUP_COUNT AS "server_group_count", DIST_PX_SET_COUNT AS "server_set_count"), CASE WHEN :B67 = 1 THEN PX_SESSIONS ELSE NULL END, CASE WHEN :B65 = 'Y' THEN DECODE(:B66 , 1, PX_INSTANCES, NULL) ELSE NULL END) FROM (SELECT MAX_PX_QCSID, MAX_PX_DOP, MAX_PX_DOP_INSTANCES, MAX_PX_IS_CROSS_INSTANCE, SUM_SERVERS_REQUESTED, SUM_SERVERS_ALLOCATED, DIST_INST_COUNT, DIST_PX_GROUP_COUNT, DIST_PX_SET_COUNT, (SELECT XMLELEMENT( "sessions", XMLATTRIBUTES(MAX(PX_SESSION.ACTIVITY_COUNT) AS "max_activity_count", MAX(PX_SES SION.CPU_COUNT) AS "max_cpu_count", MAX(PX_SESSION.WAIT_COUNT) AS "max_wait_count", MAX(PX_SESSION.OTHER_SQL_COUNT) AS "max_other_sql_count", MAX(PX_SESSION.MAX_IO_REQS) AS "max_io_reqs", MAX(PX_SESSION.MAX_IO_BYTES) AS "max_io_bytes", MAX(PX_SESSION.MAX_BUFFER_GETS) AS "max_buffer_gets", MAX(PX_SESSION.MAX_ELAPSED_TIME) AS "max_elapsed_time"), XMLAGG(PX_SESSION.PX_SESSION_XML ORDER BY PX_SERVER_GROUP NULLS FIRST, PX_SERVER_SET, PX_SERVER#)) FROM (SELECT PX_SERVER_GROUP, PX_SERVER_SET, PX_SERVER#, MAX(PI.MAX_ELAPSED_TIME) MAX_ELAPSED_TIME, MAX(PI.MAX_IO_REQS) MAX_IO_REQS, MAX(PI.MAX_IO_BYTES) MAX_IO_BYTES, MAX(PI.MAX_BUFFER_GETS) MAX_BUFFER_GETS, SUM(PI.ACTIVITY_COUNT) ACTIVITY_COUNT, SUM(PI.WAIT_COUNT) WAIT_COUNT, SUM(PI.CPU_COUNT) CPU_COUNT, SUM(PI.OTHER_SQL_COUNT) OTHER_SQL_COUNT, XMLELEMENT( "session", XMLATTRIBUTES( INST_ID AS "inst_id", PROCESS_NAME AS "process_nam e", SID AS "session_id", SESSION_SERIAL# AS "session_serial", PX_SERVER_GROUP AS "server_group", PX_SERVER_SET AS "server_set", PX_SERVER# AS "server_num"), XMLELEMENT( "stats", XMLATTRIBUTES( 'monitor' AS "type"), NVL2(MAX(ELAPSED_TIME), XMLELEMENT( "stat", XMLATTRIBUTES('elapsed_time' AS "name"), MAX(ELAPSED_TIME)), NULL), NVL2(MAX(QUEUING_TIME), XMLELEMENT( "stat", XMLATTRIBUTES('queuing_time' AS "name"), MAX(QUEUING_TIME)), NULL), NVL2(MAX(CPU_TIME), XMLELEMENT( "stat", XMLATTRIBUTES('cpu_time' AS "name"), MAX(CPU_TIME)), NULL), NVL2(MAX(USER_IO_WAIT_TIME), XMLELEMENT( "stat", XMLATTRIBUTES('user_io_wait_time' AS "name"), MAX(USER_IO_WAIT_TIME)), NULL), NVL2(MAX(APPLICATION_WAIT_TIME), XMLELEMENT( "stat", XMLATTRIBUTES('application_wait_time' AS "name"), MAX(APPLICATION_WAIT_TIME )), NULL), NVL2(MAX(CONCURRENCY_WAIT_TIME), XMLELEMENT( "stat", XMLATTRIBUTES('concurrency_wait_time' AS "name"), MAX(CONCURRENCY_WAIT_TIME)), NULL), NVL2(MAX(CLUSTER_WAIT_TIME), XMLELEMENT( "stat", XMLATTRIBUTES('cluster_wait_time' AS "name"), MAX(CLUSTER_WAIT_TIME)), NULL), NVL2(MAX(PLSQL_EXEC_TIME), XMLELEMENT( "stat", XMLATTRIBUTES('plsql_exec_time' AS "name"), MAX(PLSQL_EXEC_TIME)), NULL), NVL2(MAX(JAVA_EXEC_TIME), XMLELEMENT( "stat", XMLATTRIBUTES('java_exec_time' AS "name"), MAX(JAVA_EXEC_TIME)), NULL), NVL2(MAX(OTHER_WAIT_TIME), XMLELEMENT( "stat", XMLATTRIBUTES( 'other_wait_time' AS "name"), MAX(OTHER_WAIT_TIME)), NULL), NVL2(MAX(FETCHES), XMLELEMENT( "stat", XMLATTRIBUTES('user_fetch_count' AS "name"), MAX(FETCHES)), NULL), NVL2(MAX(BUFFER_GETS), XMLELEMENT( "stat", XMLATTRIBUTES('buffer_gets' AS "name"), MAX(BUFFER_GETS)), NULL), NVL2(MAX(READ_REQS), XMLELEMENT( "stat", XMLATTRIBUTES('disk_reads' AS "name"), MAX(READ_REQS)), NULL), NVL2(MAX(WRITE_REQS), XMLELEMENT( "stat", XMLATTRIBUTES('direct_writes' AS "name"), MAX(WRITE_REQS)), NULL), NVL2(MAX(READ_REQS), XMLELEMENT( "stat", XMLATTRIBUTES('read_reqs' AS "name"), MAX(READ_REQS)), NULL), NVL2(MAX(READ_BYTES), XMLELEMENT( "stat", XMLATTRIBUTES('read_bytes' AS "name"), MAX(READ_BYTES)), NULL), NVL2(MAX(WRITE_REQS), XMLELEMENT( "stat", XMLATTRIBUTES('write_reqs' AS "name"), MAX(WRITE_REQS)), NULL), NVL2(MAX(WRITE_BYTES), XMLELEMENT( "stat", XMLATTRIBUTES('write_bytes' AS "name"), MAX(WRITE_BYTES)), NULL), CASE WHEN MAX(IO_INTER_BYTES) IS NULL OR NVL(MAX(IO_BYTES), 0) = 0 OR MAX(IO_INTER_BYTES) = MAX(IO_BYTES) THEN NULL ELSE XMLELEMENT( "stat", XMLATTRIBUTES('cell_offload_ef ficiency' AS "name"), ROUND(MAX(IO_BYTES) / DECODE(MAX(IO_INTER_BYTES), 0, 1, MAX(IO_INTER_BYTES)), 2)) END), CASE WHEN SUM(PI.ACTIVITY_COUNT) > 0 AND :B33 = 1 THEN XMLELEMENT( "activity_sampled", XMLATTRIBUTES( TO_CHAR(MIN(PI.ACTIVITY_START), :B12 ) AS "first_sample_time", TO_CHAR(MAX(PI.ACTIVITY_END), :B12 ) AS "last_sample_time", ROUND((MAX(PI.ACTIVITY_END) - MIN(PI.ACTIVITY_START)) * 3600 * 24) + 1 AS "duration", SUM(PI.ACTIVITY_COUNT) AS "count", SUM(PI.CPU_COUNT) AS "cpu_count", SUM(PI.WAIT_COUNT) AS "wait_count", SUM(PI.OTHER_SQL_COUNT)AS "other_sql_count", :B40 AS "cpu_cores", :B39 AS "hyperthread"), XMLAGG( NVL2(ACTIVITY_TYPE, XMLELEMENT( "activity", XMLATTRIBUTES( PI.ACTIVITY_TYPE AS "class", PI.EVENT_NAME AS "event"), ACTIVITY_COUNT), NULL) ORDER BY PI.ACTIVITY_TYPE, PI.EVENT_NAME)) ELSE NULL END, CASE WHEN :B 61 = 1 AND PI.HAS_OTHER_XML = 'Y' THEN (SELECT XMLTYPE(OTHER_XML) FROM GV$SQL_MONITOR MON WHERE MON.INST_ID = PI.INST_ID AND MON.KEY = PI.KEY AND MON.SID = PI.SID AND MON.SQL_ID = :B9 AND MON.SQL_EXEC_START = :B8 AND MON.SQL_EXEC_ID = :B7 AND ROWNUM = 1) ELSE NULL END) PX_SESSION_XML FROM (SELECT MO.HAS_OTHER_XML, MO.KEY, MO.INST_ID, DECODE(MO.PROCESS_NAME, 'ora', 'PX Coordinator', MO.PROCESS_NAME) PROCESS_NAME, MO.SID, MO.SESSION_SERIAL#, MO.PX_SERVER_GROUP, MO.PX_SERVER_SET, MO.PX_SERVER#, ASH0.ACTIVITY_TYPE, ASH0.EVENT_NAME, MAX(MO.IO_REQS) MAX_IO_REQS, MAX(MO.IO_BYTES) MAX_IO_BYTES, MAX(MO.BUFFER_GETS) MAX_BUFFER_GETS, MAX(MO.ELAPSED_TIME) MAX_ELAPSED_TIME, SUM(DECODE(ASH0.ACTIVITY_TYPE, NULL, NULL, ASH0.ACTIVITY_COUNT)) ACTIVITY_COUNT, SUM(DECODE(ASH0.ACTIVITY_TYPE, NULL, NULL, ASH0.WAIT_COUNT)) WAIT_COUNT, SUM(DECODE(ASH0.ACTIVITY_TYPE, NULL, NULL, ASH0.CPU_COUNT)) CPU_COUNT, SUM(DECODE(ASH0.ACTIVITY_TYPE, NULL, NULL, ASH0.OTHER_SQL_COUNT)) OTHER_ SQL_COUNT, MIN(ASH0.ACTIVITY_START) ACTIVITY_START, MAX(ASH0.ACTIVITY_END) ACTIVITY_END, MAX(DECODE(MO.ELAPSED_TIME, 0, NULL, MO.ELAPSED_TIME)) ELAPSED_TIME, MAX(DECODE(MO.QUEUING_TIME, 0, NULL, MO.QUEUING_TIME)) QUEUING_TIME, MAX(DECODE(MO.CPU_TIME, 0, NULL, CPU_TIME)) CPU_TIME, MAX(DECODE(MO.FETCHES, 0, NULL, FETCHES)) FETCHES, MAX(DECODE(MO.BUFFER_GETS, 0, NULL, MO.BUFFER_GETS)) BUFFER_GETS, MAX(DECODE(MO.IO_INTER_BYTES, 0, NULL, MO.IO_INTER_BYTES)) IO_INTER_BYTES, MAX(DECODE(MO.READ_REQS, 0, NULL, MO.READ_REQS)) READ_REQS, MAX(DECODE(MO.READ_BYTES, 0, NULL, MO.READ_BYTES)) READ_BYTES, MAX(DECODE(MO.WRITE_REQS, 0, NULL, MO.WRITE_REQS)) WRITE_REQS, MAX(DECODE(MO.WRITE_BYTES, 0, NULL, MO.WRITE_BYTES)) WRITE_BYTES, MAX(DECODE(MO.IO_BYTES, 0, NULL, MO.IO_BYTES)) IO_BYTES, MAX(DECODE(MO.APPLICATION_WAIT_TIME, 0, NULL, MO.APPLICATION_WAIT_TIME)) APPLICATION_WAIT_TIME, MAX(DECODE(MO.CONCURRENCY_WAIT_TIME, 0, NULL, MO.CONCURRENCY_WAIT_TI ME)) CONCURRENCY_WAIT_TIME, MAX(DECODE(MO.CLUSTER_WAIT_TIME, 0, NULL, MO.CLUSTER_WAIT_TIME)) CLUSTER_WAIT_TIME, MAX(DECODE(MO.USER_IO_WAIT_TIME, 0, NULL, MO.USER_IO_WAIT_TIME)) USER_IO_WAIT_TIME, MAX(DECODE(PLSQL_EXEC_TIME, 0, NULL, PLSQL_EXEC_TIME)) PLSQL_EXEC_TIME, MAX(DECODE(MO.JAVA_EXEC_TIME, 0, NULL, MO.JAVA_EXEC_TIME)) JAVA_EXEC_TIME, MAX(DECODE(MO.OTHER_WAIT_TIME, 0, NULL, MO.OTHER_WAIT_TIME)) OTHER_WAIT_TIME FROM MONITOR_DATA MO, (SELECT ASH1.INST_ID, ASH1.SESSION_ID, ASH1.ACTIVITY_TYPE, ASH1.EVENT_NAME, SUM(ASH1.ACTIVITY_COUNT) ACTIVITY_COUNT, SUM(ASH1.WAIT_COUNT) WAIT_COUNT, SUM(ASH1.CPU_COUNT) CPU_COUNT, SUM(ASH1.OTHER_SQL_COUNT)OTHER_SQL_COUNT, MIN(ASH1.ACTIVITY_START) ACTIVITY_START, MAX(ASH1.ACTIVITY_END) ACTIVITY_END FROM ASH_DATA ASH1 GROUP BY ASH1.INST_ID, ASH1.SESSION_ID, ASH1.ACTIVITY_TYPE, ASH1.EVENT_NAME) ASH0 WHERE MO.INST_ID = ASH0.INST_ID(+) AND MO.SID = ASH0.SESSION_ID(+) AND (:B67 = 1 OR :B66 = 1) GROUP BY MO.INST_ID, MO.KEY, MO.HAS_OTHER_XML, MO.PROCESS_NAME, MO.SID, MO.SESSION_SERIAL#, MO.PX_SERVER_GROUP, MO.PX_SERVER_SET, MO.PX_SERVER#, ASH0.ACTIVITY_TYPE, ASH0.EVENT_NAME) PI WHERE (:B67 = 1) GROUP BY PI.INST_ID, PI.KEY, PI.HAS_OTHER_XML, PI.SID, PI.PROCESS_NAME, PI.SESSION_SERIAL#, PI.PX_SERVER_GROUP, PI.PX_SERVER_SET, PI.PX_SERVER#) PX_SESSION) PX_SESSIONS, (SELECT XMLELEMENT( "instances", XMLATTRIBUTES( MAX(PX_INSTANCE.ACTIVITY_COUNT) AS "max_activity_count", MAX(PX_INSTANCE.CPU_COUNT) AS "max_cpu_count", MAX(PX_INSTANCE.WAIT_COUNT) AS "max_wait_count", MAX(PX_INSTANCE.OTHER_SQL_COUNT) AS "max_other_sql_count", MAX(PX_INSTANCE.ELAPSED_TIME) AS "max_elapsed_time", MAX(PX_INSTANCE.BUFFER_GETS) AS "max_buffer_gets", MAX(PX_INSTANCE.IO_REQS) AS "max_io_reqs", MAX(PX_INSTANCE.IO_BYTES) AS "max_io_bytes"), XMLAGG(PX_INSTANCE.PX_INSTANCES_XML ORDER BY INST_ID)) FROM (SELECT PI.INST_ID, MAX(PI .ELAPSED_TIME) ELAPSED_TIME, MAX(PI.IO_REQS) IO_REQS, MAX(PI.IO_BYTES) IO_BYTES, MAX(PI.BUFFER_GETS) BUFFER_GETS, SUM(PI.ACTIVITY_COUNT) ACTIVITY_COUNT, SUM(PI.WAIT_COUNT) WAIT_COUNT, SUM(PI.CPU_COUNT) CPU_COUNT, SUM(PI.OTHER_SQL_COUNT) OTHER_SQL_COUNT, XMLELEMENT( "instance", XMLATTRIBUTES( INST_ID AS "inst_id"), XMLELEMENT( "stats", XMLATTRIBUTES( 'monitor' AS "type"), NVL2(MAX(ELAPSED_TIME), XMLELEMENT( "stat", XMLATTRIBUTES('elapsed_time' AS "name"), MAX(ELAPSED_TIME)), NULL), NVL2(MAX(QUEUING_TIME), XMLELEMENT( "stat", XMLATTRIBUTES('queuing_time' AS "name"), MAX(QUEUING_TIME)), NULL), NVL2(MAX(CPU_TIME), XMLELEMENT( "stat", XMLATTRIBUTES('cpu_time' AS "name"), MAX(CPU_TIME)), NULL), NVL2(MAX(USER_IO_WAIT_TIME), XMLELEMENT( "stat", XMLATTRIBUTES('user_io_wait_time' AS "name"), MAX(USER_IO_WAIT_TIME)), NULL), NVL2(MAX(APPLICATION_WA IT_TIME), XMLELEMENT( "stat", XMLATTRIBUTES('application_wait_time' AS "name"), MAX(APPLICATION_WAIT_TIME)), NULL), NVL2(MAX(CONCURRENCY_WAIT_TIME), XMLELEMENT( "stat", XMLATTRIBUTES('concurrency_wait_time' AS "name"), MAX(CONCURRENCY_WAIT_TIME)), NULL), NVL2(MAX(CLUSTER_WAIT_TIME), XMLELEMENT( "stat", XMLATTRIBUTES('cluster_wait_time' AS "name"), MAX(CLUSTER_WAIT_TIME)), NULL), NVL2(MAX(PLSQL_EXEC_TIME), XMLELEMENT( "stat", XMLATTRIBUTES('plsql_exec_time' AS "name"), MAX(PLSQL_EXEC_TIME)), NULL), NVL2(MAX(JAVA_EXEC_TIME), XMLELEMENT( "stat", XMLATTRIBUTES('java_exec_time' AS "name"), MAX(JAVA_EXEC_TIME)), NULL), NVL2(MAX(OTHER_WAIT_TIME), XMLELEMENT( "stat", XMLATTRIBUTES( 'other_wait_time' AS "name"), MAX(OTHER_WAIT_TIME)), NULL), NVL2(MAX(FETCHES), XMLELEMENT( "stat", XMLATTRIBUTES('user_fetch_count' AS "name"), MAX(FETCHES)), NULL), NVL2(MAX(BUFFER_GETS), XMLELEMENT( "stat", XMLATTRIBUTES('buffer_gets' AS "name"), MAX(BUFFER_GETS)), NULL), NVL2(MAX(READ_REQS), XMLELEMENT( "stat", XMLATTRIBUTES('disk_reads' AS "name"), MAX(READ_REQS)), NULL), NVL2(MAX(WRITE_REQS), XMLELEMENT( "stat", XMLATTRIBUTES('direct_writes' AS "name"), MAX(WRITE_REQS)), NULL), NVL2(MAX(READ_REQS), XMLELEMENT( "stat", XMLATTRIBUTES('read_reqs' AS "name"), MAX(READ_REQS)), NULL), NVL2(MAX(READ_BYTES), XMLELEMENT( "stat", XMLATTRIBUTES('read_bytes' AS "name"), MAX(READ_BYTES)), NULL), NVL2(MAX(WRITE_REQS), XMLELEMENT( "stat", XMLATTRIBUTES('write_reqs' AS "name"), MAX(WRITE_REQS)), NULL), NVL2(MAX(WRITE_BYTES), XMLELEMENT( "stat", XMLATTRIBUTES('write_bytes' AS "name"), MAX(WRITE_BYTES)), NULL), CASE WHEN MAX(IO_INTER_BYTES) IS NULL OR NVL(MAX(IO_BYT ES), 0) = 0 OR MAX(IO_INTER_BYTES) = MAX(IO_BYTES) THEN NULL ELSE XMLELEMENT( "stat", XMLATTRIBUTES('cell_offload_efficiency' AS "name"), ROUND(MAX(IO_BYTES)/ DECODE(MAX(IO_INTER_BYTES), 0, 1, MAX(IO_INTER_BYTES)), 2)) END), CASE WHEN :B33 = 1 AND SUM(PI.ACTIVITY_COUNT) > 0 THEN XMLELEMENT( "activity_sampled", XMLATTRIBUTES( TO_CHAR(MIN(PI.ACTIVITY_START), :B12 ) AS "start_time", TO_CHAR(MAX(PI.ACTIVITY_END), :B12 ) AS "end_time", ROUND((MAX(PI.ACTIVITY_END) - MIN(PI.ACTIVITY_START)) * 3600 * 24) + 1 AS "duration", SUM(PI.ACTIVITY_COUNT) AS "count", SUM(PI.WAIT_COUNT) AS "wait_count", SUM(PI.CPU_COUNT) AS "cpu_count", SUM(PI.OTHER_SQL_COUNT) AS "other_sql_count", :B40 AS "cpu_cores", :B39 AS "hyperthread"), XMLAGG( NVL2(ACTIVITY_TYPE, XMLELEMENT( "activity", XMLATTRIBUTES( PI.ACTIVITY_TYPE AS "class", PI.EVENT_NAME AS "event"), ACTIVITY_COUNT), NULL) ORDER BY PI.ACTIVITY_TYPE, PI.EVENT_NAME)) ELSE NULL END) PX_INSTANCES_XML FROM (SELECT MO.INST_ID, ASH.ACTIVITY_TYPE, ASH.EVENT_NAME, ASH.ACTIVITY_COUNT, ASH.WAIT_COUNT, ASH.CPU_COUNT, ASH.OTHER_SQL_COUNT, ASH.ACTIVITY_START, ASH.ACTIVITY_END, MO.ELAPSED_TIME, MO.QUEUING_TIME, MO.CPU_TIME, MO.APPLICATION_WAIT_TIME, MO.CONCURRENCY_WAIT_TIME, MO.CLUSTER_WAIT_TIME, MO.USER_IO_WAIT_TIME, MO.PLSQL_EXEC_TIME, MO.JAVA_EXEC_TIME, MO.OTHER_WAIT_TIME, MO.FETCHES, MO.BUFFER_GETS, MO.IO_INTER_BYTES, MO.IO_BYTES, MO.READ_REQS, MO.READ_BYTES, MO.WRITE_REQS, MO.WRITE_BYTES, MO.IO_REQS FROM (SELECT MO0.INST_ID, SUM(MO0.ELAPSED_TIME) ELAPSED_TIME, SUM(MO0.QUEUING_TIME) QUEUING_TIME, SUM(MO0.CPU_TIME) CPU_TIME, SUM(MO0.FETCHES) FETCHES, SUM(MO0.BUFFER_GETS) BUFFER_GETS, SUM(MO0.IO_INTER_BYTES) IO_INTER_BYTES, SUM(MO0.IO_BYTES) IO_BYTES, SUM(MO0.READ_REQS) READ_REQS, SUM(MO0.READ_BYTES) READ_BYTES, SUM(MO0.WRITE_REQS) WRI TE_REQS, SUM(MO0.WRITE_BYTES) WRITE_BYTES, SUM(MO0.IO_REQS) IO_REQS, SUM(MO0.APPLICATION_WAIT_TIME) APPLICATION_WAIT_TIME, SUM(MO0.CONCURRENCY_WAIT_TIME) CONCURRENCY_WAIT_TIME, SUM(MO0.CLUSTER_WAIT_TIME) CLUSTER_WAIT_TIME, SUM(MO0.USER_IO_WAIT_TIME) USER_IO_WAIT_TIME, SUM(MO0.PLSQL_EXEC_TIME) PLSQL_EXEC_TIME, SUM(MO0.JAVA_EXEC_TIME) JAVA_EXEC_TIME, SUM(MO0.OTHER_WAIT_TIME) OTHER_WAIT_TIME FROM MONITOR_DATA MO0 GROUP BY MO0.INST_ID) MO, (SELECT ASH0.INST_ID, ASH0.ACTIVITY_TYPE, ASH0.EVENT_NAME, SUM(ASH0.ACTIVITY_COUNT) ACTIVITY_COUNT, SUM(ASH0.WAIT_COUNT) WAIT_COUNT, SUM(ASH0.CPU_COUNT) CPU_COUNT, SUM(ASH0.OTHER_SQL_COUNT) OTHER_SQL_COUNT, MIN(ASH0.ACTIVITY_START) ACTIVITY_START, MAX(ASH0.ACTIVITY_END) ACTIVITY_END FROM ASH_DATA ASH0 GROUP BY ASH0.INST_ID, ASH0.ACTIVITY_TYPE, ASH0.EVENT_NAME) ASH, MONITOR_AGG WHERE MO.INST_ID = ASH.INST_ID(+) AND MONITOR_AGG.DIST_INST_COUNT > 0 ) PI GROUP BY PI.INST_ID)PX_INSTANCE) PX_INSTANCES FROM MONITOR_AGG)) ELSE NULL END, XPLAN_XML, CASE WHEN :B43 = 1 THEN (SELECT XMLELEMENT( "plan_monitor", XMLATTRIBUTES(MAX(PLI.MAX_LINE_ACTIVITY_COUNT) AS "max_activity_count", MAX(PLI.OVERALL_MAX_IO_REQS) AS "max_io_reqs", MAX(PLI.OVERALL_MAX_IO_BYTES) AS "max_io_bytes", MAX(PLI.MAX_LINE_CPU_COUNT) AS "max_cpu_count", MAX(PLI.MAX_LINE_WAIT_COUNT) AS "max_wait_count", MAX(PLI.MAX_LINE_OTHER_SQL_COUNT) AS "max_other_sql_count"), XMLAGG( XMLELEMENT( "operation", XMLATTRIBUTES( PLI.PLAN_LINE_ID AS "id", PLI.PARENT_ID AS "parent_id", PLI.OPERATION AS "name", PLI.OPTIONS AS "options", PLI.DEPTH AS "depth", PLI.POSITION AS "position", PLI.PX_TYPE AS "px_type"), NVL2(PLI.OBJECT_NAME, XMLELEMENT( "object", XMLATTRIBUTES(PLI.OBJECT_TYPE AS "type"), XMLFOREST(PLI.OBJECT_OWNER AS "owner"), XMLFOREST(PLI.OBJECT_NAME AS "name ")), NULL), XMLFOREST(PLI.PARTITION_START AS "partition_start", PLI.PARTITION_STOP AS "partition_stop"), CASE WHEN PLI.CARDINALITY IS NULL AND PLI.BYTES IS NULL AND PLI.COST IS NULL AND PLI.TEMP_SPACE IS NULL AND PLI.TIME IS NULL THEN NULL ELSE XMLELEMENT( "optimizer", NULL, NVL2(PLI.CARDINALITY, XMLFOREST(PLI.CARDINALITY AS "cardinality"), NULL), NVL2(PLI.BYTES, XMLFOREST(PLI.BYTES AS "bytes"), NULL), NVL2(PLI.COST, XMLFOREST(PLI.COST AS "cost"), NULL), NVL2(PLI.CPU_COST, XMLFOREST(PLI.CPU_COST AS "cpu_cost"), NULL), NVL2(PLI.IO_COST, XMLFOREST(PLI.IO_COST AS "io_cost"), NULL), NVL2(PLI.TEMP_SPACE, XMLFOREST(PLI.TEMP_SPACE AS "temp"), NULL), NVL2(PLI.TIME, XMLFOREST(PLI.TIME AS "time"), NULL)) END, XMLELEMENT( "stats", XMLATTRIBUTES('plan_monitor' AS "type"), NVL2(PLI.FIRST_MOVE_TIME, XMLELEMENT( "stat", XMLATTRIBUTES('fi rst_active' AS "name"), TO_CHAR(FIRST_MOVE_TIME, :B12 )), NULL), CASE WHEN PLI.FIRST_MOVE_TIME != PLI.FIRST_CHANGE_TIME THEN XMLELEMENT( "stat", XMLATTRIBUTES('first_row' AS "name"), TO_CHAR(FIRST_CHANGE_TIME, :B12 )) ELSE NULL END, NVL2(PLI.LAST_MOVE_TIME, XMLELEMENT( "stat", XMLATTRIBUTES('last_active' AS "name"), TO_CHAR(LAST_MOVE_TIME, :B12 )), NULL), CASE WHEN (PLI.FIRST_MOVE_TIME IS NULL OR PLI.LAST_MOVE_TIME IS NULL) THEN NULL ELSE XMLELEMENT( "stat", XMLATTRIBUTES('duration' AS "name"), ROUND((LAST_MOVE_TIME - FIRST_MOVE_TIME) * 3600 * 24)+1) END, CASE WHEN (PLI.OVERALL_LAST_MOVE_TIME IS NULL OR PLI.LAST_MOVE_TIME IS NULL) THEN NULL ELSE XMLELEMENT( "stat", XMLATTRIBUTES('from_most_recent' AS "name"), ROUND((PLI.OVERALL_LAST_MOVE_TIME - PLI.LAST_MOVE_TIME) * 3600 * 24)) END, NVL2(PLI.LAST_MOVE_TIME, XMLELEMENT( "stat", XMLATTRIBUTES( 'from_sql_exec_start' AS "name"), ROUND( (FIRST_MOVE_TIME - :B8 ) * 3600*24)), NULL), NVL2(PLI.PERCENT_COMPLETE, XMLELEMENT( "stat", XMLATTRIBUTES('percent_complete' AS "name"), PLI.PERCENT_COMPLETE), NULL), NVL2(PLI.TIME_REMAINING, XMLELEMENT( "stat", XMLATTRIBUTES('time_left' AS "name"), PLI.TIME_REMAINING), NULL), CASE WHEN PLI.HAS_EXECUTED = 1 THEN XMLELEMENT( "stat", XMLATTRIBUTES('starts' AS "name"), PLI.STARTS) ELSE NULL END, CASE WHEN PLI.DOP > 0 AND PLI.HAS_EXECUTED = 1 THEN XMLELEMENT( "stat", XMLATTRIBUTES( 'max_starts' AS "name", DECODE(:B65 , 'Y', MOD(TRUNC(MAX_STARTS/1000000), 10000), NULL) AS "iid", MOD(MAX_STARTS, 1000000) AS "sid"), TRUNC(PLI.MAX_STARTS/10000000000)) ELSE NULL END, CASE WHEN PLI.DOP > 0 AND PLI.HAS_EXECUTED = 1 THEN XMLELEMENT( "stat", XMLATTRIBUTES('dop' AS "name"), PLI.DOP) ELSE NULL END, CASE WHEN NEED_ROWS IS NOT NULL AND PLI.FIRST_MOVE_TIME IS NOT NULL THEN XMLELEMENT( "stat", XMLATTRIBUTES('cardinality' AS "name"), PLI.OUTPUT_ROWS) ELSE NULL END, CASE WHEN PLI.NEED_ROWS IS NOT NULL AND PLI.DOP > 0 AND PLI.MAX_OUTPUT_ROWS IS NOT NULL AND (PLI.FIRST_MOVE_TIME IS NOT NULL) THEN XMLELEMENT( "stat", XMLATTRIBUTES( 'max_card' AS "name", DECODE(:B65 , 'Y', MOD(TRUNC(MAX_OUTPUT_ROWS/1000000), 10000), NULL) AS "iid", MOD(MAX_OUTPUT_ROWS, 1000000) AS "sid"), TRUNC(PLI.MAX_OUTPUT_ROWS/10000000000)) ELSE NULL END, CASE WHEN PLI.MEM > 0 THEN XMLELEMENT( "stat", XMLATTRIBUTES('memory' AS "name"), PLI.MEM) ELSE NULL END, CASE WHEN PLI.MAX_MEM > 0 THEN XMLELEMENT( "stat", XMLATTRIBUTES('max_memory' AS "name"), PLI.MAX_MEM) ELSE NULL END, CASE WHEN PLI.DOP > 0 AND PLI.MIN_MAX_MEM IS NOT NULL AND PLI.MAX_MEM > 0 THEN XMLELEMENT( "stat", XMLATTRIBUTES( 'min_max_mem ' AS "name", DECODE(:B65 , 'Y', MOD(TRUNC(MIN_MAX_MEM/1000000), 10000), NULL) AS "iid", MOD(MIN_MAX_MEM, 1000000) AS "sid"), TRUNC(PLI.MIN_MAX_MEM/10000000000)) ELSE NULL END, CASE WHEN PLI.TEMP > 0 THEN XMLELEMENT( "stat", XMLATTRIBUTES('temp' AS "name"), PLI.TEMP) ELSE NULL END, CASE WHEN PLI.MAX_TEMP > 0 THEN XMLELEMENT( "stat", XMLATTRIBUTES('max_temp' AS "name"), PLI.MAX_TEMP) ELSE NULL END, CASE WHEN PLI.MAX_TEMP > 0 THEN XMLELEMENT( "stat", XMLATTRIBUTES('spill_count' AS "name"), PLI.SPILL_COUNT) ELSE NULL END, CASE WHEN PLI.DOP > 0 AND PLI.MAX_MAX_TEMP IS NOT NULL AND PLI.MAX_TEMP > 0 THEN XMLELEMENT( "stat", XMLATTRIBUTES( 'max_max_temp' AS "name", DECODE(:B65 , 'Y', MOD(TRUNC(MAX_MAX_TEMP/1000000), 10000), NULL) AS "iid", MOD(MAX_MAX_TEMP, 1000000) AS "sid"), TRUNC(PLI.MAX_MAX_TEMP/10000000000)) ELSE NULL E ND, CASE WHEN PLI.READ_REQS > 0 THEN XMLELEMENT( "stat", XMLATTRIBUTES('read_reqs' AS "name"), PLI.READ_REQS) ELSE NULL END, CASE WHEN PLI.DOP > 0 AND PLI.MAX_READ_REQS IS NOT NULL AND PLI.READ_REQS > 0 THEN XMLELEMENT( "stat", XMLATTRIBUTES( 'max_read_reqs' AS "name", DECODE(:B65 , 'Y', MOD(TRUNC(PLI.MAX_READ_REQS/1000000), 10000), NULL) AS "iid", MOD(PLI.MAX_READ_REQS, 1000000) AS "sid"), TRUNC(PLI.MAX_READ_REQS/10000000000)) ELSE NULL END, CASE WHEN PLI.READ_BYTES > 0 THEN XMLELEMENT( "stat", XMLATTRIBUTES('read_bytes' AS "name"), PLI.READ_BYTES) ELSE NULL END, CASE WHEN PLI.DOP > 0 AND PLI.MAX_READ_BYTES IS NOT NULL AND PLI.READ_BYTES > 0 THEN XMLELEMENT( "stat", XMLATTRIBUTES( 'max_read_bytes' AS "name", DECODE(:B65 , 'Y', MOD(TRUNC(PLI.MAX_READ_BYTES/1000000), 10000), NULL) AS "iid", MOD(PLI.MAX_READ_BYTES, 1000000) AS "sid "), TRUNC(PLI.MAX_READ_BYTES/10000000000)) ELSE NULL END, CASE WHEN PLI.WRITE_REQS > 0 THEN XMLELEMENT( "stat", XMLATTRIBUTES('write_reqs' AS "name"), PLI.WRITE_REQS) ELSE NULL END, CASE WHEN PLI.DOP > 0 AND PLI.MAX_WRITE_REQS IS NOT NULL AND PLI.WRITE_REQS > 0 THEN XMLELEMENT( "stat", XMLATTRIBUTES( 'max_write_reqs' AS "name", DECODE(:B65 , 'Y', MOD(TRUNC(PLI.MAX_WRITE_REQS/1000000), 10000), NULL) AS "iid", MOD(PLI.MAX_WRITE_REQS, 1000000) AS "sid"), TRUNC(PLI.MAX_WRITE_REQS/10000000000)) ELSE NULL END, CASE WHEN PLI.WRITE_BYTES > 0 THEN XMLELEMENT( "stat", XMLATTRIBUTES('write_bytes' AS "name"), PLI.WRITE_BYTES) ELSE NULL END, CASE WHEN PLI.DOP > 0 AND PLI.MAX_WRITE_BYTES IS NOT NULL AND PLI.WRITE_BYTES > 0 THEN XMLELEMENT( "stat", XMLATTRIBUTES( 'max_write_bytes' AS "name", DECODE(:B65 , 'Y', MOD(TRUNC(PLI.MAX_WRITE_BYTES/1000000), 10000), NULL) AS "iid", MOD(PLI.MAX_WRITE_BYTES, 1000000) AS "sid"), TRUNC(PLI.MAX_WRITE_BYTES/10000000000)) ELSE NULL END, CASE WHEN PLI.IO_INTER_BYTES IS NOT NULL AND PLI.IO_BYTES > 0 AND PLI.IO_BYTES != PLI.IO_INTER_BYTES THEN XMLELEMENT( "stat", XMLATTRIBUTES('io_inter_bytes' AS "name"), PLI.IO_INTER_BYTES) ELSE NULL END, CASE WHEN PLI.DOP > 0 AND PLI.MAX_IO_INTER_BYTES IS NOT NULL AND PLI.IO_BYTES > 0 AND PLI.IO_BYTES != PLI.IO_INTER_BYTES THEN XMLELEMENT( "stat", XMLATTRIBUTES( 'max_io_inter_bytes' AS "name", DECODE(:B65 , 'Y', MOD(TRUNC(MAX_IO_INTER_BYTES/1000000), 10000), NULL) AS "iid", MOD(MAX_IO_INTER_BYTES, 1000000) AS "sid"), TRUNC(PLI.MAX_IO_INTER_BYTES/10000000000)) ELSE NULL END, CASE WHEN PLI.IO_INTER_BYTES IS NOT NULL AND PLI.IO_BYTES > 0 AND PLI.IO_BYTES != PLI.IO_INTER_BYTES THEN XMLELEMENT( "stat", XMLATTRIBUTES('cell_offload_efficiency' AS "name "), ROUND(PLI.IO_BYTES / DECODE(PLI.IO_INTER_BYTES, 0, 1, PLI.IO_INTER_BYTES), 2)) ELSE NULL END), NVL2(STAT_GID, XMLELEMENT( "rwsstats", XMLATTRIBUTES( PLI.STAT_GID AS "group_id"), DECODE(GID_ROWNUM, 1, (SELECT XMLELEMENT( "metadata", NULL, XMLAGG( XMLELEMENT( "stat", XMLATTRIBUTES( ROWNUM AS "id", NAME AS "name", DESCRIPTION AS "desc", TYPE AS "type", DECODE(FLAGS, 0, NULL, FLAGS) AS "flags"), NULL) ORDER BY ID)) FROM V$SQL_MONITOR_STATNAME WHERE GROUP_ID = PLI.STAT_GID), NULL), NVL2(STAT1_VALUE, XMLELEMENT( "stat", XMLATTRIBUTES(1 AS "id"), STAT1_VALUE), NULL), NVL2(STAT2_VALUE, XMLELEMENT( "stat", XMLATTRIBUTES(2 AS "id"), STAT2_VALUE), NULL), NVL2(STAT3_VALUE, XMLELEMENT( "stat", XMLATTRIBUTES(3 AS "id"), STAT3_VALUE), NULL), NVL2(STAT4_VALUE, XMLELEMENT( "stat", XMLATTRIBUTES(4 AS "id"), STAT4_VALUE), NULL), NVL2(STAT5_VALUE, XMLELEMENT( "stat", XMLATTRIBUTES(5 AS "id"), STAT5_VALUE), NULL), NVL2(STAT6_VALUE, XMLELEMENT( "stat", XMLATTRIBUTES(6 AS "id"), STAT6_VALUE), NULL), NVL2(STAT7_VALUE, XMLELEMENT( "stat", XMLATTRIBUTES(7 AS "id"), STAT7_VALUE), NULL), NVL2(STAT8_VALUE, XMLELEMENT( "stat", XMLATTRIBUTES(8 AS "id"), STAT8_VALUE), NULL), NVL2(STAT9_VALUE, XMLELEMENT( "stat", XMLATTRIBUTES(9 AS "id"), STAT9_VALUE), NULL), NVL2(STAT10_VALUE, XMLELEMENT( "stat", XMLATTRIBUTES(10 AS "id"), STAT10_VALUE), NULL)), NULL), CASE WHEN PLI.LINE_ACTIVITY_COUNT > 0 AND :B33 = 1 THEN XMLELEMENT( "activity_sampled", XMLATTRIBUTES( TO_CHAR(PLI.LINE_ACTIVITY_START, :B12 ) AS "start_time", TO_CHAR(PLI.LINE_ACTIVITY_END, :B12 ) AS "end_time", ROUND((PLI.LINE_ACTIVITY_END - P LI.LINE_ACTIVITY_START) * 3600*24) + 1 AS "duration", PLI.LINE_ACTIVITY_COUNT AS "count", PLI.LINE_WAIT_COUNT AS "wait_count", PLI.LINE_CPU_COUNT AS "cpu_count", PLI.LINE_OTHER_SQL_COUNT AS "other_sql_count", :B40 AS "cpu_cores", :B39 AS "hyperthread"), PLI.ACTIVITY_TOTAL, PLI.PLAN_ACTIVITY_HISTO) ELSE NULL END) ORDER BY PLI.PLAN_LINE_ID) ) FROM (SELECT AT.MAX_LINE_ACTIVITY_COUNT, PM.OVERALL_MAX_IO_REQS, PM.OVERALL_MAX_IO_BYTES, AT.MAX_LINE_CPU_COUNT, AT.MAX_LINE_WAIT_COUNT, AT.LINE_OTHER_SQL_COUNT, AT.MAX_LINE_OTHER_SQL_COUNT, PM.PLAN_LINE_ID, PM.PARENT_ID, PM.OPERATION, PM.OPTIONS, PM.DEPTH, PM.POSITION, CASE WHEN PM.OPERATION = 'PX COORDINATOR' AND :B23 = 'Y' AND (PM.PX_SERVER_SET IS NOT NULL OR AH.PX_SERVER_SET IS NOT NULL) THEN 'QC' WHEN PM.PX_SERVER_SET IS NOT NULL THEN TO_CHAR(PM.PX_SERVER_SET) WHEN AH.PX_SERVER_SET IS NOT NULL THEN TO_CHAR(AH.PX_SERVER_SET) WHEN (:B23 = 'N' OR (PM.LAST_CH ANGE_TIME IS NULL AND AT.LINE_ACTIVITY_END IS NULL)) THEN NULL ELSE 'QC' END PX_TYPE, PM.FIRST_CHANGE_TIME, AT.LINE_ACTIVITY_START, PM.LAST_CHANGE_TIME, PM.OVERALL_LAST_CHANGE_TIME, AT.LINE_ACTIVITY_END, AT.OVERALL_LINE_ACTIVITY_END, LEAST(NVL(AT.LINE_ACTIVITY_START, PM.FIRST_CHANGE_TIME), NVL(PM.FIRST_CHANGE_TIME, AT.LINE_ACTIVITY_START)) FIRST_MOVE_TIME, GREATEST(NVL(AT.LINE_ACTIVITY_END, PM.LAST_CHANGE_TIME), NVL(PM.LAST_CHANGE_TIME, AT.LINE_ACTIVITY_END)) LAST_MOVE_TIME, GREATEST(NVL(AT.OVERALL_LINE_ACTIVITY_END, PM.OVERALL_LAST_CHANGE_TIME), NVL(PM.OVERALL_LAST_CHANGE_TIME, AT.OVERALL_LINE_ACTIVITY_END)) OVERALL_LAST_MOVE_TIME, CASE WHEN PM.STARTS IS NOT NULL AND PM.STARTS > 0 THEN 1 ELSE 0 END HAS_EXECUTED, PM.OBJECT_NAME, PM.OBJECT_TYPE, PM.OBJECT_OWNER, PM.PARTITION_START, PM.PARTITION_STOP, PM.CARDINALITY, PM.BYTES, PM.COST, PM.TEMP_SPACE, PM.TIME, PM.CPU_COST, PM.IO_COST, LO.PERCENT_COMPLETE, LO.TIME_REMAINING, PM.STARTS, PM.DOP, PM.MAX_ STARTS, PM.OUTPUT_ROWS, PM.NEED_ROWS, PM.MAX_OUTPUT_ROWS, PM.MEM, PM.MAX_MEM, PM.MIN_MAX_MEM, PM.TEMP, PM.MAX_TEMP, PM.SPILL_COUNT, PM.MAX_MAX_TEMP, PM.READ_REQS, PM.MAX_READ_REQS, PM.READ_BYTES, PM.MAX_READ_BYTES, PM.WRITE_REQS, PM.MAX_WRITE_REQS, PM.WRITE_BYTES, PM.MAX_WRITE_BYTES, PM.IO_INTER_BYTES, PM.IO_BYTES, PM.MAX_IO_INTER_BYTES, AT.LINE_ACTIVITY_COUNT, AT.LINE_WAIT_COUNT, AT.LINE_CPU_COUNT, AT.ACTIVITY_TOTAL, AH.PLAN_ACTIVITY_HISTO, PM.STAT_GID, PM.GID_ROWNUM, PM.STAT1_VALUE, PM.STAT2_VALUE, PM.STAT3_VALUE, PM.STAT4_VALUE, PM.STAT5_VALUE, PM.STAT6_VALUE, PM.STAT7_VALUE, PM.STAT8_VALUE, PM.STAT9_VALUE, PM.STAT10_VALUE FROM (SELECT AT0.*, MAX(LINE_ACTIVITY_END) OVER() OVERALL_LINE_ACTIVITY_END, MAX(LINE_ACTIVITY_COUNT) OVER() MAX_LINE_ACTIVITY_COUNT, MAX(LINE_CPU_COUNT) OVER() MAX_LINE_CPU_COUNT, MAX(LINE_WAIT_COUNT) OVER() MAX_LINE_WAIT_COUNT, MAX(LINE_OTHER_SQL_COUNT) OVER() MAX_LINE_OTHER_SQL_COUNT FROM (SELECT AD1.PLAN_LINE_ID, MIN (AD1.LINE_ACTIVITY_START) LINE_ACTIVITY_START, MAX(AD1.LINE_ACTIVITY_END) LINE_ACTIVITY_END, SUM(AD1.ACTIVITY_COUNT) LINE_ACTIVITY_COUNT, SUM(AD1.WAIT_COUNT) LINE_WAIT_COUNT, SUM(AD1.OTHER_SQL_COUNT) LINE_OTHER_SQL_COUNT, SUM(AD1.CPU_COUNT) LINE_CPU_COUNT, SUBSTR(MAX(LPAD(AD1.ACTIVITY_COUNT, 10)|| AD1.ACTIVITY_TYPE), 11) MOST_ACTIVE, XMLAGG(XMLELEMENT( "activity", XMLATTRIBUTES( AD1.ACTIVITY_TYPE AS "class", AD1.EVENT_NAME AS "event"), AD1.ACTIVITY_COUNT) ORDER BY AD1.ACTIVITY_TYPE, AD1.EVENT_NAME) ACTIVITY_TOTAL FROM (SELECT AD0.PLAN_LINE_ID, AD0.ACTIVITY_TYPE, AD0.EVENT_NAME, MIN(AD0.ACTIVITY_START) LINE_ACTIVITY_START, MAX(AD0.ACTIVITY_END) LINE_ACTIVITY_END, SUM(AD0.ACTIVITY_COUNT) ACTIVITY_COUNT, SUM(AD0.WAIT_COUNT) WAIT_COUNT, SUM(AD0.CPU_COUNT) CPU_COUNT, SUM(AD0.OTHER_SQL_COUNT) OTHER_SQL_COUNT, MAX(AD0.DFO_MOST_ACTIVE_IID) DFO_MOST_ACTIVE_IID, MAX(AD0.DFO_MOST_ACTIVE_SID) DFO_MOST_ACTIVE_SID, SUM(AD0.DFO_MOST_ACTIVE_COUNT) D FO_MOST_ACTIVE_COUNT FROM ASH_DATA AD0 WHERE AD0.PLAN_LINE_ID IS NOT NULL GROUP BY AD0.PLAN_LINE_ID, AD0.ACTIVITY_TYPE, AD0.EVENT_NAME) AD1 GROUP BY AD1.PLAN_LINE_ID) AT0) AT, (SELECT AD2.PLAN_LINE_ID, MIN(AD2.PX_SERVER_SET) PX_SERVER_SET, MIN(AD2.LINE_ACTIVITY_START) LINE_ACTIVITY_START, MAX(AD2.LINE_ACTIVITY_END) LINE_ACTIVITY_END, SUM(AD2.ACTIVITY_COUNT) ACTIVITY_COUNT, SUM(AD2.WAIT_COUNT) WAIT_COUNT, SUM(AD2.CPU_COUNT) CPU_COUNT, SUM(AD2.OTHER_SQL_COUNT) OTHER_SQL_COUNT, CASE WHEN :B29 = 1 AND SUM(AD2.ACTIVITY_COUNT) > 0 THEN XMLELEMENT( "activity_histogram", XMLATTRIBUTES( :B26 AS "bucket_interval", :B27 AS "bucket_count", TO_CHAR( :B20 , :B12 ) AS "start_time", TO_CHAR(:B22 , :B12 ) AS "end_time", ROUND((:B22 -:B20 ) *3600*24) + 1 AS "duration"), XMLAGG(XMLELEMENT( "bucket", XMLATTRIBUTES( AD2.BUCKET_NUM AS "number"), AD2.ACTIVITY_BUCKET) ORDER BY AD2.BUCKET_NUM)) ELSE NULL END PLAN_ACTIVITY_HISTO FROM (SELECT AD1.PLAN_LINE_ID, AD1.BUCKET_NUM, MIN(AD1.PX_SERVER_SET) PX_SERVER_SET, MIN(AD1.LINE_ACTIVITY_START) LINE_ACTIVITY_START, MAX(AD1.LINE_ACTIVITY_END) LINE_ACTIVITY_END, MIN(AD1.BUCKET_ACTIVITY_START) BUCKET_ACTIVITY_START, MAX(AD1.BUCKET_ACTIVITY_END) BUCKET_ACTIVITY_END, SUM(AD1.ACTIVITY_COUNT) ACTIVITY_COUNT, SUM(AD1.WAIT_COUNT) WAIT_COUNT, SUM(AD1.CPU_COUNT) CPU_COUNT, SUM(AD1.OTHER_SQL_COUNT) OTHER_SQL_COUNT, SUBSTR(MAX(LPAD(AD1.ACTIVITY_COUNT, 10)|| AD1.ACTIVITY_TYPE), 11) MOST_ACTIVE, XMLAGG(NVL2(AD1.ACTIVITY_TYPE, XMLELEMENT( "activity", XMLATTRIBUTES( AD1.ACTIVITY_TYPE AS "class", AD1.EVENT_NAME AS "event"), AD1.ACTIVITY_COUNT), NULL) ORDER BY AD1.ACTIVITY_TYPE, AD1.EVENT_NAME) ACTIVITY_BUCKET FROM (SELECT AD0.PLAN_LINE_ID, AD0.PLAN_ACTIVITY_BUCKET_NUM BUCKET_NUM, AD0.ACTIVITY_TYPE, AD0.EVENT_NAME, MIN(NVL2(AD0.ACTIVITY_START, AD0.PX_SERVER_SET, NULL)) PX_SERVER_SET, MIN(AD0.ACTIVITY_START) LINE_ACTIVITY_START, MAX(AD0.ACTIVITY_END) LINE_ACTIVITY_END, MIN(AD0.BUCKET_ACTIVITY_START) BUCKET_ACTIVITY_START, MAX(AD0.BUCKET_ACTIVITY_END) BUCKET_ACTIVITY_END, SUM(AD0.CPU_COUNT) CPU_COUNT, SUM(AD0.WAIT_COUNT) WAIT_COUNT, SUM(AD0.OTHER_SQL_COUNT) OTHER_SQL_COUNT, SUM(AD0.ACTIVITY_COUNT) ACTIVITY_COUNT FROM ASH_DATA AD0 GROUP BY AD0.PLAN_LINE_ID, AD0.PLAN_ACTIVITY_BUCKET_NUM, AD0.ACTIVITY_TYPE, AD0.EVENT_NAME) AD1 GROUP BY AD1.PLAN_LINE_ID, AD1.BUCKET_NUM) AD2 GROUP BY AD2.PLAN_LINE_ID) AH, (SELECT LO.SQL_PLAN_LINE_ID PLAN_LINE_ID, DECODE(SUM(LO.TOTALWORK), 0, NULL, ROUND(SUM(LO.SOFAR)*100/SUM(LO.TOTALWORK))) PERCENT_COMPLETE, MAX(LO.TIME_REMAINING) TIME_REMAINING FROM GV$SESSION_LONGOPS LO, MONITOR_DATA MO WHERE (:B49 = 'Y' OR :B68 = 'DONE (ERROR)') AND LO.SQL_ID = :B9 AND LO.SQL_EXEC_START = :B8 AND LO.SQL_EXEC_ID = :B7 AND LO.INST_ID = MO.INST_ID AND LO.SID = MO.SID GROUP BY LO.SQL_PLAN_LINE_ID) LO, (SELECT PM0.*, CASE WHEN PM0.STARTS IS NULL OR PM0.STARTS = 0 OR PM0.OUTPUT_ROWS IS NULL THEN NULL ELSE 1 END NEED_ROWS, ROW_NUMBER() OVER(PARTITION BY PM0.STAT_GID ORDER BY PM0.PLAN_LINE_ID ) GID_ROWNUM, MAX(LAST_CHANGE_TIME) OVER() OVERALL_LAST_CHANGE_TIME, MAX(MAX_IO_REQS) OVER() OVERALL_MAX_IO_REQS, MAX(MAX_IO_BYTES) OVER() OVERALL_MAX_IO_BYTES FROM (SELECT /*+ leading(mo) use_hash(plm) */ PLM.PLAN_LINE_ID PLAN_LINE_ID, PLM.PLAN_OPERATION OPERATION, PLM.PLAN_OPTIONS OPTIONS, MAX(PLM.PLAN_PARENT_ID) PARENT_ID, MAX(PLM.PLAN_DEPTH) DEPTH, MAX(PLM.PLAN_POSITION) POSITION, MAX(PLM.PLAN_OBJECT_OWNER) OBJECT_OWNER, MAX(PLM.PLAN_OBJECT_NAME) OBJECT_NAME, MAX(PLM.PLAN_OBJECT_TYPE) OBJECT_TYPE, MAX(PLM.PLAN_COST) COST, MAX(PLM.PLAN_CARDINALITY) CARDINALITY, MAX(PLM.PLAN_BYTES) BYTES, MAX(PLM.PLAN_CPU_COST) CPU_COST, MAX(PLM.PLAN_IO_COST) IO_COST, MAX(PLM.PLAN_TEMP_SPACE) TEMP_SPACE, MAX(PLM.PLAN_TIME) TIME, MAX(PLM.PLAN_PARTITION_START) PARTITION_START, MAX(PLM.PLAN_PARTITION_STOP) PARTITION_STOP, MIN(PLM.FIRST_CHANGE_TIME) FI RST_CHANGE_TIME, MAX(PLM.LAST_CHANGE_TIME) LAST_CHANGE_TIME, MIN(PLM.LAST_CHANGE_TIME) MIN_LAST_CHANGE_TIME, MIN(NVL2(PLM.FIRST_CHANGE_TIME, MO.PX_SERVER_SET, NULL)) PX_SERVER_SET, COUNT(CASE WHEN PLM.PAR IS NOT NULL AND PLM.STARTS IS NOT NULL AND PLM.STARTS > 0 AND PLM.PLAN_LINE_ID != 0 AND PLM.PLAN_OPERATION != 'PX COORDINATOR' THEN 1 ELSE NULL END) DOP, SUM(PLM.STARTS) STARTS, MAX(NVL2(PAR, PLM.STARTS * 10000000000 + PLM.ES, NULL)) MAX_STARTS, SUM(PLM.OUTPUT_ROWS) OUTPUT_ROWS, MAX(NVL2(PAR, PLM.OUTPUT_ROWS * 10000000000 +PLM.ES, NULL)) MAX_OUTPUT_ROWS, SUM(PLM.WORKAREA_MEM) MEM, SUM(PLM.WORKAREA_MAX_MEM) MAX_MEM, MIN(NVL2(PAR, PLM.WORKAREA_MAX_MEM * 10000000000 + PLM.ES, NULL)) MIN_MAX_MEM, SUM(PLM.WORKAREA_TEMPSEG) TEMP, SUM(PLM.WORKAREA_MAX_TEMPSEG) MAX_TEMP, MAX(NVL2(PAR, PLM.WORKAREA_MAX_TEMPSEG * 10000000000 + PLM.ES, NULL)) MAX_MAX_TEMP, COUNT(PLM.WORKAREA_MAX_TEMPSEG) SPILL_COUNT, SUM(PLM.PHYSICAL_READ_REQUESTS) READ_REQS, MAX(NVL2(PAR, PLM.PHYS ICAL_READ_REQUESTS * 10000000000 + PLM.ES, NULL)) MAX_READ_REQS, SUM(PLM.PHYSICAL_READ_BYTES) READ_BYTES, MAX(NVL2(PAR, PLM.PHYSICAL_READ_BYTES * 10000000000 + PLM.ES, NULL)) MAX_READ_BYTES, SUM(PLM.PHYSICAL_WRITE_REQUESTS) WRITE_REQS, MAX(NVL2(PAR, PLM.PHYSICAL_WRITE_REQUESTS * 10000000000 + PLM.ES, NULL)) MAX_WRITE_REQS, SUM(PLM.PHYSICAL_WRITE_BYTES) WRITE_BYTES, MAX(NVL2(PAR, PLM.PHYSICAL_WRITE_BYTES * 10000000000 + PLM.ES, NULL)) MAX_WRITE_BYTES, NVL(SUM(PLM.PHYSICAL_READ_BYTES), 0) + NVL(SUM(PLM.PHYSICAL_WRITE_BYTES), 0) IO_BYTES, SUM(NVL(PLM.PHYSICAL_READ_REQUESTS, 0) + NVL(PLM.PHYSICAL_WRITE_REQUESTS, 0)) MAX_IO_REQS, SUM(NVL(PLM.PHYSICAL_READ_BYTES, 0) + NVL(PLM.PHYSICAL_WRITE_BYTES, 0)) MAX_IO_BYTES, SUM(PLM.IO_INTERCONNECT_BYTES) IO_INTER_BYTES, MAX(NVL2(PAR, PLM.IO_INTERCONNECT_BYTES * 10000000000 + PLM.ES, NULL)) MAX_IO_INTER_BYTES, MAX(OTHERSTAT_GROUP_ID) STAT_GID, NVL(DECODE(MAX(OTHERSTAT_1_TYPE), 3, MAX(OTHERSTAT_1_VALUE), 4, MAX(OTHERSTAT _1_VALUE), 6, MIN(OTHERSTAT_1_VALUE), 7, MIN(OTHERSTAT_1_VALUE), NULL), SUM(DECODE(OTHERSTAT_1_TYPE, 1, OTHERSTAT_1_VALUE, 2, OTHERSTAT_1_VALUE, NULL))) STAT1_VALUE, NVL(MOD((DECODE(MAX(OTHERSTAT_2_TYPE), 3, MAX(OTHERSTAT_2_VALUE), 5, DECODE(MAX(OTHERSTAT_1_TYPE), 4, MAX(RMAX1 + OTHERSTAT_2_VALUE), 7, MIN(RMAX1 + OTHERSTAT_2_VALUE), NULL), 6, MIN(OTHERSTAT_2_VALUE), NULL)), 10000000000000000), SUM(DECODE(OTHERSTAT_2_TYPE, 1, OTHERSTAT_2_VALUE, 2, OTHERSTAT_2_VALUE, NULL))) STAT2_VALUE, NVL(MOD((DECODE(MAX(OTHERSTAT_3_TYPE), 3, MAX(OTHERSTAT_3_VALUE), 5, DECODE(MAX(OTHERSTAT_1_TYPE), 4, MAX(RMAX1 + OTHERSTAT_3_VALUE), 7, MIN(RMAX1 + OTHERSTAT_3_VALUE), NULL), 6, MIN(OTHERSTAT_3_VALUE), NULL)), 10000000000000000), SUM(DECODE(OTHERSTAT_3_TYPE, 1, OTHERSTAT_3_VALUE, 2, OTHERSTAT_3_VALUE, NULL))) STAT3_VALUE, NVL(MOD((DECODE(MAX(OTHERSTAT_4_TYPE), 3, MAX(OTHERSTAT_4_VALUE), 5, DECODE(MAX(OTHERSTAT_1_TYPE), 4, MAX(RMAX1 + OTHERSTAT_4_ VALUE), 7, MIN(RMAX1 + OTHERSTAT_4_VALUE), NULL), 6, MIN(OTHERSTAT_4_VALUE), NULL)), 10000000000000000), SUM(DECODE(OTHERSTAT_4_TYPE, 1, OTHERSTAT_4_VALUE, 2, OTHERSTAT_4_VALUE, NULL))) STAT4_VALUE, NVL(MOD((DECODE(MAX(OTHERSTAT_5_TYPE), 3, MAX(OTHERSTAT_5_VALUE), 5, DECODE(MAX(OTHERSTAT_1_TYPE), 4, MAX(RMAX1 + OTHERSTAT_5_VALUE), 7, MIN(RMAX1 + OTHERSTAT_5_VALUE), NULL), 6, MIN(OTHERSTAT_5_VALUE), NULL)), 10000000000000000), SUM(DECODE(OTHERSTAT_5_TYPE, 1, OTHERSTAT_5_VALUE, 2, OTHERSTAT_5_VALUE, NULL))) STAT5_VALUE, NVL(MOD((DECODE(MAX(OTHERSTAT_6_TYPE), 3, MAX(OTHERSTAT_6_VALUE), 5, DECODE(MAX(OTHERSTAT_1_TYPE), 4, MAX(RMAX1 + OTHERSTAT_6_VALUE), 7, MIN(RMAX1 + OTHERSTAT_6_VALUE), NULL), 6, MIN(OTHERSTAT_6_VALUE), NULL)), 10000000000000000), SUM(DECODE(OTHERSTAT_6_TYPE, 1, OTHERSTAT_6_VALUE, 2, OTHERSTAT_6_VALUE, NULL))) STAT6_VALUE, NVL(MOD((DECODE(MAX(OTHERSTAT_7_TYPE), 3, MAX(OTHERSTAT_7_VALUE), 5, DECODE(MAX(OTHERSTAT_1_T YPE), 4, MAX(RMAX1 + OTHERSTAT_7_VALUE), 7, MIN(RMAX1 + OTHERSTAT_7_VALUE), NULL), 6, MIN(OTHERSTAT_7_VALUE), NULL)), 10000000000000000), SUM(DECODE(OTHERSTAT_7_TYPE, 1, OTHERSTAT_7_VALUE, 2, OTHERSTAT_7_VALUE, NULL))) STAT7_VALUE, NVL(MOD((DECODE(MAX(OTHERSTAT_8_TYPE), 3, MAX(OTHERSTAT_8_VALUE), 5, DECODE(MAX(OTHERSTAT_1_TYPE), 4, MAX(RMAX1 + OTHERSTAT_8_VALUE), 7, MIN(RMAX1 + OTHERSTAT_8_VALUE), NULL), 6, MIN(OTHERSTAT_8_VALUE), NULL)), 10000000000000000), SUM(DECODE(OTHERSTAT_8_TYPE, 1, OTHERSTAT_8_VALUE, 2, OTHERSTAT_8_VALUE, NULL))) STAT8_VALUE, NVL(MOD((DECODE(MAX(OTHERSTAT_9_TYPE), 3, MAX(OTHERSTAT_9_VALUE), 5, DECODE(MAX(OTHERSTAT_1_TYPE), 4, MAX(RMAX1 + OTHERSTAT_9_VALUE), 7, MIN(RMAX1 + OTHERSTAT_9_VALUE), NULL), 6, MIN(OTHERSTAT_9_VALUE), NULL)), 10000000000000000), SUM(DECODE(OTHERSTAT_9_TYPE, 1, OTHERSTAT_9_VALUE, 2, OTHERSTAT_9_VALUE, NULL))) STAT9_VALUE, NVL(MOD((DECODE(MAX(OTHERSTAT_10_TYPE), 3, MAX(OTHERSTAT_10_ VALUE), 5, DECODE(MAX(OTHERSTAT_1_TYPE), 4, MAX(RMAX1 + OTHERSTAT_10_VALUE), 7, MIN(RMAX1 + OTHERSTAT_10_VALUE), NULL), 6, MIN(OTHERSTAT_10_VALUE), NULL)), 10000000000000000), SUM(DECODE(OTHERSTAT_10_TYPE, 1, OTHERSTAT_10_VALUE, 2, OTHERSTAT_10_VALUE, NULL))) STAT10_VALUE FROM (SELECT A.*, OTHERSTAT_1_VALUE * 10000000000000000 RMAX1, A.INST_ID * 1000000 + A.SID ES, DECODE(A.PROCESS_NAME, 'ora', NULL, 1) PAR FROM GV$SQL_PLAN_MONITOR A) PLM, MONITOR_DATA MO WHERE PLM.SQL_ID = :B9 AND PLM.SQL_EXEC_START = :B8 AND PLM.SQL_EXEC_ID = :B7 AND PLM.INST_ID = MO.INST_ID AND PLM.INST_ID BETWEEN :B11 AND :B10 AND PLM.KEY = MO.KEY GROUP BY PLM.PLAN_LINE_ID, PLM.PLAN_OPERATION, PLM.PLAN_OPTIONS) PM0) PM WHERE AH.PLAN_LINE_ID(+) = PM.PLAN_LINE_ID AND AT.PLAN_LINE_ID(+) = PM.PLAN_LINE_ID AND LO.PLAN_LINE_ID(+) = PM.PLAN_LINE_ID AND (:B21 IS NULL OR PM.PLAN_LINE_ID = :B21 )) PLI) ELSE NULL END, CASE WHEN :B42 = 1 THEN DBMS_SQLTUNE.BUILD_STASH_XML( SESSION_ID=>:B19 , SESSI ON_SERIAL=>:B18 , SESSION_INST_ID=>:B17 , PX_MODE=>'yes', START_TIME=>:B20 , END_TIME=>:B22 , MISSING_SECONDS=> :B41 , INSTANCE_LOW_FILTER=>:B11 , INSTANCE_HIGH_FILTER=>:B10 , BUCKET_MAX_COUNT=>NULL, BUCKET_INTERVAL=>:B26 , REPORT_LEVEL=>'typical', CPU_CORES=>:B40 , IS_HYPER=>:B39 ) ELSE NULL END), (CASE WHEN :B38 = 1 THEN (SELECT XMLELEMENT( "skewed_sessions", XMLATTRIBUTES( DECODE(MIN(INST_ID), NULL, :B17 , MIN(INST_ID)) AS "min_iid", DECODE(MAX(INST_ID), NULL, :B17 , MAX(INST_ID)) AS "max_iid"), XMLAGG( XMLELEMENT( "s", XMLATTRIBUTES( INST_ID AS "i"), SESSION_ID) ORDER BY INST_ID, SESSION_ID)) FROM (SELECT SESS.* FROM (SELECT DECODE(AD.DFO_MOST_ACTIVE_IID, :B17 , NULL, AD.DFO_MOST_ACTIVE_IID) INST_ID, AD.DFO_MOST_ACTIVE_SID SESSION_ID FROM ASH_DATA AD WHERE AD.DFO_MOST_ACTIVE_COUNT IS NOT NULL GROUP BY AD.DFO_MOST_ACTIVE_IID, AD.DFO_MOST_ACTIVE_SID ORDER BY MAX(AD.D FO_MOST_ACTIVE_COUNT) DESC) SESS WHERE ROWNUM <= 100)) ELSE NULL END), (CASE WHEN :B37 = 1 THEN (SELECT XMLELEMENT( "report_repository_summary", CASE WHEN MA.MAX_DBOP_NAME IS NOT NULL THEN XMLELEMENT( "dbop", XMLATTRIBUTES('F' AS "detail", MA.MAX_DBOP_NAME AS "dbop_name", TO_CHAR(MA.MIN_FIRST_REFRESH_TIME, :B12 ) AS "dbop_exec_start", MA.MAX_DBOP_EXEC_ID AS "dbop_exec_id"), XMLFOREST( MA.MAX_STATUS AS "status", TO_CHAR(NVL(MA.MAX_SQL_EXEC_START, MA.MIN_FIRST_REFRESH_TIME), :B12 )AS "first_refresh_time", TO_CHAR(MA.MAX_LAST_REFRESH_TIME, :B12 )AS "last_refresh_time", MA.SUM_REFRESH_COUNT AS "refresh_count", MA.MAX_INST_ID AS "inst_id", MA.MAX_SESSION_ID AS "session_id", MA.MAX_SESSION_SERIAL AS "session_serial", MA.MAX_USERID AS "user_id", MA.MAX_USERNAME AS "user", MA.MAX_CON_ID AS "con_id", MA.MAX_CON_NA ME AS "con_name", MA.MAX_MODULE AS "module", MA.MAX_ACTION AS "action", MA.MAX_SERVICE_NAME AS "service", MA.MAX_CLIENT_ID AS "client_id", MA.MAX_CLIENT_INFO AS "client_info", MA.MAX_PROGRAM AS "program", MA.MAX_PL_ENTRY_OID AS "plsql_entry_object_id", MA.MAX_PL_ENTRY_PROGID AS "plsql_entry_subprogram_id", MA.MAX_PL_OID AS "plsql_object_id", MA.MAX_PL_PROGID AS "plsql_subprogram_id", MA.MAX_PX_IS_CROSS_INSTANCE AS "is_cross_instance", MA.MAX_PX_DOP AS "dop", MA.MAX_PX_DOP_INSTANCES AS "instances"), CASE WHEN MA.MAX_ERROR_NUMBER IS NULL THEN NULL ELSE XMLELEMENT( "error", XMLATTRIBUTES(MA.MAX_ERROR_NUMBER AS "number", MA.MAX_ERROR_FACILITY AS "facility"), MA.MAX_ERROR_MESSAGE) END, XMLELEMENT( "stats", XMLATTRIBUTES('monitor' AS "type"), XMLELEMENT( "stat", XMLATTRIBUTE S('duration' AS "name"), GREATEST(ROUND((MA.MAX_LAST_REFRESH_TIME- NVL(MA.MAX_SQL_EXEC_START, MA.MIN_FIRST_REFRESH_TIME))*86400), LEAST(MA.SUM_ELAPSED_TIME/1000000, 1), CEIL(MA.MAX_QUEUING_TIME/1000000))), DECODE(MA.SUM_ELAPSED_TIME, 0, NULL, XMLELEMENT( "stat", XMLATTRIBUTES('elapsed_time' AS "name"), MA.SUM_ELAPSED_TIME)), DECODE(MA.MAX_QUEUING_TIME, 0, NULL, XMLELEMENT( "stat", XMLATTRIBUTES('queuing_time' AS "name"), MA.MAX_QUEUING_TIME)), DECODE(MA.SUM_CPU_TIME, 0, NULL, XMLELEMENT( "stat", XMLATTRIBUTES('cpu_time' AS "name"), MA.SUM_CPU_TIME)), DECODE(MA.SUM_USER_IO_WAIT_TIME, 0, NULL, XMLELEMENT( "stat", XMLATTRIBUTES('user_io_wait_time' AS "name"), MA.SUM_USER_IO_WAIT_TIME)), DECODE(MA.SUM_APPLICATION_WAIT_TIME, 0, NULL, XMLELEMENT( "stat", XMLATTRIBUTES('application_wait_time' AS "name"), MA.SUM_APPLICATION_WAIT_TIME)), DECODE(MA.SUM _CONCURRENCY_WAIT_TIME, 0, NULL, XMLELEMENT( "stat", XMLATTRIBUTES('concurrency_wait_time' AS "name"), MA.SUM_CONCURRENCY_WAIT_TIME)), DECODE(MA.SUM_CLUSTER_WAIT_TIME, 0, NULL, XMLELEMENT( "stat", XMLATTRIBUTES('cluster_wait_time' AS "name"), MA.SUM_CLUSTER_WAIT_TIME)), DECODE(MA.SUM_PLSQL_EXEC_TIME, 0, NULL, XMLELEMENT( "stat", XMLATTRIBUTES('plsql_exec_time' AS "name"), MA.SUM_PLSQL_EXEC_TIME)), DECODE(MA.SUM_JAVA_EXEC_TIME, 0, NULL, XMLELEMENT( "stat", XMLATTRIBUTES('java_exec_time' AS "name"), MA.SUM_JAVA_EXEC_TIME)), DECODE(MA.SUM_OTHER_WAIT_TIME, 0, NULL, XMLELEMENT( "stat", XMLATTRIBUTES('other_wait_time' AS "name"), MA.SUM_OTHER_WAIT_TIME)), DECODE(MA.SUM_FETCHES, 0, NULL, XMLELEMENT( "stat", XMLATTRIBUTES('user_fetch_count' AS "name"), MA.SUM_FETCHES)), DECODE(MA.SUM_BUFFER_GETS, 0, NULL, XMLELEMENT( "stat", X MLATTRIBUTES('buffer_gets' AS "name"), MA.SUM_BUFFER_GETS)), DECODE(MA.SUM_READ_REQS, 0, NULL, XMLELEMENT( "stat", XMLATTRIBUTES('read_reqs' AS "name"), MA.SUM_READ_REQS)), DECODE(MA.SUM_READ_BYTES, 0, NULL, XMLELEMENT( "stat", XMLATTRIBUTES('read_bytes' AS "name"), MA.SUM_READ_BYTES)), DECODE(MA.SUM_WRITE_REQS, 0, NULL, XMLELEMENT( "stat", XMLATTRIBUTES('write_reqs' AS "name"), MA.SUM_WRITE_REQS)), DECODE(MA.SUM_WRITE_BYTES, 0, NULL, XMLELEMENT( "stat", XMLATTRIBUTES('write_bytes' AS "name"), MA.SUM_WRITE_BYTES)), CASE WHEN MA.SUM_IO_INTER_BYTES IS NULL OR MA.SUM_IO_INTER_BYTES = MA.SUM_IO_BYTES OR MA.SUM_IO_BYTES = 0 THEN NULL ELSE XMLELEMENT( "stat", XMLATTRIBUTES('cell_offload_efficiency' AS "name"), ROUND(MA.SUM_IO_BYTES / DECODE(MA.SUM_IO_INTER_BYTES, 0, 1, MA.SUM_IO_INTER_BYTES), 2)) END) ) ELSE XMLELEMENT( "sql", XMLATTRIBUTES( MA.MAX_SQL_ID AS "sql_id", TO_CHAR(MA.MAX_SQL_EXEC_START, :B12 ) AS "sql_exec_start", MA.MAX_SQL_EXEC_ID AS "sql_exec_id"), XMLFOREST(MA.MAX_STATUS AS "status", SUBSTR(MA.SQLMON_TEXT, 1, 100) AS "sql_text", TO_CHAR(MA.MIN_FIRST_REFRESH_TIME, :B12 ) AS "first_refresh_time", TO_CHAR(MA.MAX_LAST_REFRESH_TIME, :B12 ) AS "last_refresh_time", MA.SUM_REFRESH_COUNT AS "refresh_count", MA.MAX_INST_ID AS "inst_id", MA.MAX_SESSION_ID AS "session_id", MA.MAX_SESSION_SERIAL AS "session_serial", MA.MAX_USERID AS "user_id", MA.MAX_USERNAME AS "user", MA.MAX_CON_ID AS "con_id", MA.MAX_CON_NAME AS "con_name", MA.MAX_MODULE AS "module", MA.MAX_ACTION AS "action", MA.MAX_SERVICE_NAME AS "service", MA.MAX_CLIENT_ID AS "client_id", MA.MAX_CLIENT_INFO AS "client_info", MA.MAX_PROGRAM A S "program", MA.MAX_PLAN_HASH_VALUE AS "plan_hash", MA.MAX_PL_ENTRY_OID AS "plsql_entry_object_id", MA.MAX_PL_ENTRY_PROGID AS "plsql_entry_subprogram_id", MA.MAX_PL_OID AS "plsql_object_id", MA.MAX_PL_PROGID AS "plsql_subprogram_id", MA.MAX_PX_IS_CROSS_INSTANCE AS "is_cross_instance", MA.MAX_PX_DOP AS "dop", MA.MAX_PX_DOP_INSTANCES AS "instances", MA.SUM_SERVERS_REQUESTED AS "px_servers_requested", MA.SUM_SERVERS_ALLOCATED AS "px_servers_allocated"), XMLELEMENT( "stats", XMLATTRIBUTES('monitor' AS "type"), XMLELEMENT( "stat", XMLATTRIBUTES('duration' AS "name"), GREATEST(ROUND((MA.MAX_LAST_REFRESH_TIME- MA.MAX_SQL_EXEC_START)*86400), LEAST(MA.SUM_ELAPSED_TIME/1000000, 1), CEIL(MA.MAX_QUEUING_TIME/1000000))), DECODE(MA.SUM_ELAPSED_TIME, 0, NULL, XMLELEMENT( "stat", XMLATTRIBUTES('elapsed_time' AS "name "), MA.SUM_ELAPSED_TIME)), DECODE(MA.MAX_QUEUING_TIME, 0, NULL, XMLELEMENT( "stat", XMLATTRIBUTES('queuing_time' AS "name"), MA.MAX_QUEUING_TIME)), DECODE(MA.SUM_CPU_TIME, 0, NULL, XMLELEMENT( "stat", XMLATTRIBUTES('cpu_time' AS "name"), MA.SUM_CPU_TIME)), DECODE(MA.SUM_USER_IO_WAIT_TIME, 0, NULL, XMLELEMENT( "stat", XMLATTRIBUTES('user_io_wait_time' AS "name"), MA.SUM_USER_IO_WAIT_TIME)), DECODE(MA.SUM_APPLICATION_WAIT_TIME, 0, NULL, XMLELEMENT( "stat", XMLATTRIBUTES('application_wait_time' AS "name"), MA.SUM_APPLICATION_WAIT_TIME)), DECODE(MA.SUM_CONCURRENCY_WAIT_TIME, 0, NULL, XMLELEMENT( "stat", XMLATTRIBUTES('concurrency_wait_time' AS "name"), MA.SUM_CONCURRENCY_WAIT_TIME)), DECODE(MA.SUM_CLUSTER_WAIT_TIME, 0, NULL, XMLELEMENT( "stat", XMLATTRIBUTES('cluster_wait_time' AS "name"), MA.SUM_CLUSTER_WAIT_TIME)), DECODE(MA.SU M_PLSQL_EXEC_TIME, 0, NULL, XMLELEMENT( "stat", XMLATTRIBUTES('plsql_exec_time' AS "name"), MA.SUM_PLSQL_EXEC_TIME)), DECODE(MA.SUM_JAVA_EXEC_TIME, 0, NULL, XMLELEMENT( "stat", XMLATTRIBUTES('java_exec_time' AS "name"), MA.SUM_JAVA_EXEC_TIME)), DECODE(MA.SUM_OTHER_WAIT_TIME, 0, NULL, XMLELEMENT( "stat", XMLATTRIBUTES('other_wait_time' AS "name"), MA.SUM_OTHER_WAIT_TIME)), DECODE(MA.SUM_FETCHES, 0, NULL, XMLELEMENT( "stat", XMLATTRIBUTES('user_fetch_count' AS "name"), MA.SUM_FETCHES)), DECODE(MA.SUM_BUFFER_GETS, 0, NULL, XMLELEMENT( "stat", XMLATTRIBUTES('buffer_gets' AS "name"), MA.SUM_BUFFER_GETS)), DECODE(MA.SUM_READ_REQS, 0, NULL, XMLELEMENT( "stat", XMLATTRIBUTES('read_reqs' AS "name"), MA.SUM_READ_REQS)), DECODE(MA.SUM_READ_BYTES, 0, NULL, XMLELEMENT( "stat", XMLATTRIBUTES('read_bytes' AS "name"), MA.SU M_READ_BYTES)), DECODE(MA.SUM_WRITE_REQS, 0, NULL, XMLELEMENT( "stat", XMLATTRIBUTES('write_reqs' AS "name"), MA.SUM_WRITE_REQS)), DECODE(MA.SUM_WRITE_BYTES, 0, NULL, XMLELEMENT( "stat", XMLATTRIBUTES('write_bytes' AS "name"), MA.SUM_WRITE_BYTES)), CASE WHEN MA.SUM_IO_INTER_BYTES IS NULL OR MA.SUM_IO_INTER_BYTES = MA.SUM_IO_BYTES OR MA.SUM_IO_BYTES = 0 THEN NULL ELSE XMLELEMENT( "stat", XMLATTRIBUTES('cell_offload_efficiency' AS "name"), ROUND(MA.SUM_IO_BYTES / DECODE(MA.SUM_IO_INTER_BYTES, 0, 1, MA.SUM_IO_INTER_BYTES), 2)) END) ) END) FROM MONITOR_AGG MA) ELSE NULL END) FROM (SELECT CASE WHEN V1.XPLAN_XML IS NULL OR V1.XPLAN_XML.EXISTSNODE('/error') > 0 THEN NULL ELSE V1.XPLAN_XML END XPLAN_XML FROM (SELECT CASE WHEN :B36 = 1 THEN DBMS_XPLAN.BUILD_PLAN_XML(TABLE_NAME=>'gv$sql_plan', PLAN_TAG=>'plan', FILTER_PREDS=>:B35 , FORMAT=>'+PROJECTION +ALIAS') ELSE NULL END XPLAN_XML FROM DUAL) V1) CONST_VIEW
7tchj0bmt6tn1 select xmlagg( xmlelement("operation", xmlattributes(operation as "name", options as "options", id as "id", depth as "depth", position as "pos"), nvl2(object_name, xmlelement("object", object_name), NULL), decode(:format, 'BASIC', null, nvl2(cardinality, xmlelement("card", cardinality), NULL)), decode(:format, 'BASIC', null, nvl2(bytes, xmlelement("bytes", bytes), NULL)), nvl2(temp_space, xmlelem ent("temp_space", temp_space), NULL), decode(:format, 'BASIC', null, nvl2(cost, xmlelement("cost", cost), NULL)), nvl2(io_cost, xmlelement("io_cost", io_cost), NULL), nvl2(cpu_cost, xmlelement("cpu_cost", cpu_cost), NULL), decode(:format, 'BASIC', null, nvl2(time, xmlelement("time", sys.dbms_xplan.format_time_s(time)), NULL)), nvl2(partition_start, xmlelement("partition", xmlattributes(partition_start as "start", partition_stop as "stop")), NULL), nvl2(object_node, xmlelement("node", object_node), NULL), nvl2(distribution, xmlelement("distrib", distribution), NULL), nvl2(projection, xmlelement("project", projection), NULL), nvl2(access_predicates, xmlelement("predicates", xmlattributes(decode(substr(options, 1, 8), 'STORAGE ', 'storage', 'access') as "type"), access_predicates), NULL), nvl2(filter_predicates, xmlelement("predicates ", xmlattributes('filter' as "type"), filter_predicates), NULL), nvl2(qblock_name, xmlelement("qblock", qblock_name), NULL), nvl2(object_alias, xmlelement("object_alias", object_alias), NULL), (case when other_xml is null then null else xmltype(other_xml) end) ) ) plan from (select id, parent_id, position, depth, operation, options, object_name, cardinality, bytes, temp_space, cost, io_cost, cpu_cost, time, pstart as partition_start, pstop as partition_s top, object_node, other_tag, distrib as distribution, projection, access_pred as access_predicates, filter_pred as filter_predicates, other, qblock_name, object_alias, other_xml, sql_profile, sql_plan_baseline, starts, outrows, crgets, cugets, reads, writes, etime, mem_opt, mem_one, last_mem_used, last_mem_usage, mem_opt_cnt, mem_one_cnt, mem_multi_cnt, max_tmp_used, last_tmp_used from table(dbms_xplan.get_plan_rows(:tab_name, :stmt_id, :plan_id, :format, :fpreds, 1)))
86708bvah4akqselect name from undo$ where file#=:1 and block#=:2 and ts#=:3 and status$ != 1
8dbc2434s93x0SELECT ID, MAIL_SEND_COUNT, LAST_UPDATED_ON FROM WWV_FLOW_MAIL_QUEUE ORDER BY MAIL_SEND_COUNT, LAST_UPDATED_ON
8swypbbr0m372select order#, columns, types from access$ where d_obj#=:1
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
b1wc53ddd6h3pselect audit$, options from procedure$ where obj#=:1
bw0vhwxp8wwhjinsert into WRH$_SERVICE_STAT (dbid, con_dbid, snap_id, instance_number, service_name_hash, stat_id, value) select /*+ opt_param('_optimizer_mjc_enabled', 'false') */ :dbid, aw$sys.con_dbid con_dbid, :snap_id, :instance_number, stat.service_name_hash, stat.stat_id, stat.value FROM x$kewpdbinsnap aw$sys, v$active_services asvc, v$service_stats stat WHERE ((asvc.con_id = stat.con_id) OR (asvc.con_id = 0 AND stat.con_id = 1) OR (asvc.con_id = 1 AND stat.con_id = 0)) AND ((asvc.con_id = aw$sys.con_id) OR (asvc.con_id = 0 AND aw$sys.con_id = 1)) AND (aw$sys.con_id <> 0) and asvc.name_hash = stat.service_name_hash
c6awqs517jpj0select /*+ index(idl_char$ i_idl_char1) +*/ piece#, length, piece from idl_char$ where obj#=:1 and part=:2 and version=:3 order by piece#
c8yhu3pmcjddw insert into wrh$_tablespace_stat (dbid, con_dbid, snap_id, instance_number, ts#, tsname, contents, status, segment_space_management, extent_management, is_backup) select /*+ opt_param('_optimizer_mjc_enabled', 'false') */ :dbid, aw$sys.con_dbid con_dbid, :snap_id, :instance_number, ts.ts#, ts.name as tsname, decode(ts.contents$, 0, (decode(bitand(ts.flags, 16), 16, 'UNDO', 'PERMANENT')), 1, 'TEMPORARY') as contents, decode(ts.online$, 1, 'ONLINE', 2, 'OFFLINE', 4, 'READ ONLY', 'UNDEFINED') as status, decode(bitand(ts.flags, 32), 32, 'AUTO', 'MANUAL') as segspace_mgmt, decode(ts.bitmapped, 0, 'DICTIONARY', 'LOCAL') as extent_management, (case when b.active_count > 0 then 'TRUE' else 'FALSE' end) as is_backup FROM x$kewpdbinsnap aw$sys, awri$_cdb_ts$ ts, (select aw$awr2.con_id con_id, dfile.ts#, sum( case when bkup.status = ' ACTIVE' then 1 else 0 end ) as active_count FROM x$kewpdbinsnap aw$awr2, v$backup bkup, v$datafile dfile WHERE ((bkup.con_id = dfile.con_id) OR (bkup.con_id = 0 AND dfile.con_id = 1) OR (bkup.con_id = 1 AND dfile.con_id = 0)) AND ((bkup.con_id = aw$awr2.con_id) OR (bkup.con_id = 0 AND aw$awr2.con_id = 1)) AND (aw$awr2.con_id <> 0) and bkup.file# = dfile.file# and dfile.status in ('ONLINE', 'SYSTEM') group by aw$awr2.con_id, dfile.ts#) b WHERE ((ts.con_id = b.con_id) OR (ts.con_id = 0 AND b.con_id = 1) OR (ts.con_id = 1 AND b.con_id = 0)) AND ((ts.con_id = aw$sys.con_id) OR (ts.con_id = 0 AND aw$sys.con_id = 1)) AND (aw$sys.con_id <> 0) and ts.online$ != 3 and b.ts# = ts.ts# and bitand(ts.flags, 2048) != 2048
cfrfu4058yardINSERT INTO LGWR_PRESS VALUES(LGWR_SEQ.NEXTVAL)
cm5vu20fhtnq1select /*+ connect_by_filtering */ privilege#, level from sysauth$ connect by grantee#=prior privilege# and privilege#>0 start with grantee#=:1 and privilege#>0
csnp95dz2r8ssselect file#, block# from recyclebin$ where ts# = :1 and file# != 0 and block# != 0 and space = 0
cvn54b7yz0s8uselect /*+ index(idl_ub1$ i_idl_ub11) +*/ piece#, length, piece from idl_ub1$ where obj#=:1 and part=:2 and version=:3 order by piece#
d1dumhajv2rr5SELECT COMPONENT_ID FROM SYS. "_REPORT_COMPONENT_OBJECTS" WHERE COMPONENT_NAME = LOWER(:B1 )
fhf8upax5cxszBEGIN sys.dbms_auto_report_internal.i_save_report (:rep_ref, :snap_id, :pr_class, :rep_id, :suc); END;
fnq8p3fj3r5asselect /*+ no_monitor */ job, nvl2(last_date, 1, 0), con_id from sys.job$_cdb where (((:1 <= next_date) and (next_date <= :2)) or ((last_date is null) and (next_date < :3))) and (field1 = :4 or (field1 = 0 and 'Y' = :5)) and (this_date is null) and ((dbms_logstdby.db_is_logstdby = 0 and job < 1000000000) or (dbms_logstdby.db_is_logstdby = 1 and job >= 1000000000)) order by next_date, job
ga9j9xk5cy9s0select /*+ index(idl_sb4$ i_idl_sb41) +*/ piece#, length, piece from idl_sb4$ where obj#=:1 and part=:2 and version=:3 order by piece#
gngtvs38t0060SELECT /*+ CONNECT_BY_FILTERING */ s.privilege# FROM sys.sysauth$ s CONNECT BY s.grantee# = PRIOR s.privilege# AND (s.privilege# > 0 OR s.privilege# = -352) START WITH (s.privilege# > 0 OR s.privilege# = -352) AND s.grantee# IN (SELECT c1.privilege# FROM sys.codeauth$ c1 WHERE c1.obj# = :1) UNION SELECT c2.privilege# FROM sys.codeauth$ c2 WHERE c2.obj# = :2 ORDER BY 1 ASC
gzakc6gfjzc2jinsert into WRH$_SERVICE_WAIT_CLASS (dbid, con_dbid, snap_id, instance_number, service_name_hash, wait_class_id, wait_class, total_waits, time_waited ) select :dbid, aw$sys.con_dbid con_dbid, :snap_id, :instance_number, stat.service_name_hash, stat.wait_class_id, stat.wait_class, stat.total_waits, stat.time_waited FROM x$kewpdbinsnap aw$sys, v$active_services asvc, v$service_wait_class stat WHERE ((asvc.con_id = stat.con_id) OR (asvc.con_id = 0 AND stat.con_id = 1) OR (asvc.con_id = 1 AND stat.con_id = 0)) AND ((asvc.con_id = aw$sys.con_id) OR (asvc.con_id = 0 AND aw$sys.con_id = 1)) AND (aw$sys.con_id <> 0) AND asvc.name_hash = stat.service_name_hash

Back to SQL Statistics
Back to Top

Instance Activity Statistics

Back to Top

Key Instance Activity Stats

StatisticTotalper Secondper Trans
db block changes18,124,78060,036.704.01
execute count4,530,44015,006.671.00
logons cumulative4411.460.00
opened cursors cumulative9,044,68929,959.722.00
parse count (total)4,25214.080.00
parse time elapsed2810.930.00
physical reads9,65331.970.00
physical writes24,49281.130.01
redo size2,462,208,3808,155,843.52544.99
session cursor cache hits71,102235.520.02
session logical reads14,053,24246,550.103.11
user calls2,4618.150.00
user commits4,517,93214,965.241.00
workarea executions - optimal1,3764.560.00


Back to Instance Activity Statistics
Back to Top

Other Instance Activity Stats

StatisticTotalper Secondper Trans
Batched IO (bound) vector count00.000.00
Batched IO block miss count10.000.00
Batched IO buffer defrag count00.000.00
Batched IO double miss count10.000.00
Batched IO same unit count00.000.00
Batched IO single block count10.000.00
Batched IO slow jump count00.000.00
Batched IO vector block count00.000.00
Batched IO vector read count00.000.00
Block Cleanout Optim referenced90.030.00
CCursor + sql area evicted110.040.00
CLI BG ENQ1000.330.00
CLI BG Fls done50.020.00
CLI BG attempt Flush1000.330.00
CLI Flstask create1000.330.00
CLI Flush1000.330.00
CLI SGA Alloc1280.420.00
CLI Thru Wrt50.020.00
CLI bytes fls to table3,44011.390.00
CPU used by this session78,630260.450.02
CPU used when call started26,45487.630.01
CR blocks created3801.260.00
Commit SCN cached20.010.00
DBWR checkpoint buffers written24,06679.720.01
DBWR checkpoints200.070.00
DBWR object drop buffers written190.060.00
DBWR thread checkpoint buffers written24,06679.720.01
DBWR transaction table writes210.070.00
DBWR undo block writes21,85872.400.00
DFO trees parallelized680.230.00
HSC Heap Segment Block Changes4,521,18714,976.021.00
Heap Segment Array Inserts1210.400.00
Heap Segment Array Updates130.040.00
KTFB alloc req3161.050.00
KTFB alloc space (block)974,061,5683,226,491.22215.60
KTFB alloc time (ms)5,062,16516,767.971.12
KTFB apply req3951.310.00
KTFB apply time (ms)8,53228.260.00
KTFB commit req00.000.00
KTFB commit time (ms)00.000.00
KTFB free req1490.490.00
KTFB free space (block)49,280163.240.01
KTFB free time (ms)7,07223.430.00
LOB table id lookup cache misses00.000.00
PX local messages recv'd3,55311.770.00
PX local messages sent3,56411.810.00
Parallel operations not downgraded790.260.00
Requests to/from client1850.610.00
SQL*Net roundtrips to/from client1880.620.00
TBS Extension: bytes extended2,621,4408,683.280.58
TBS Extension: files extended10.000.00
TBS Extension: tasks created500.170.00
TBS Extension: tasks executed10.000.00
active txn count during cleanout43,015142.480.01
auto extends on undo tablespace490.160.00
background checkpoints completed20.010.00
background checkpoints started30.010.00
background timeouts2,2157.340.00
buffer is not pinned count39,882132.110.01
buffer is pinned count4,92216.300.00
bytes received via SQL*Net from client220,543730.530.05
bytes sent via SQL*Net to client46,470153.930.01
calls to get snapshot scn: kcmgss9,049,81629,976.702.00
calls to kcmgas4,518,90214,968.461.00
calls to kcmgcs23,65478.350.01
cell physical IO interconnect bytes5,942,658,04819,684,519.611,315.35
change write time3,27010.830.00
cleanout - number of ktugct calls179,641595.040.04
cleanouts only - consistent read gets50.020.00
cluster key scan block gets2,5658.500.00
cluster key scans1,7965.950.00
commit batch performed4,518,78814,968.081.00
commit batch requested4,518,78814,968.081.00
commit batch/immediate performed4,518,79114,968.091.00
commit batch/immediate requested4,518,79114,968.091.00
commit cleanout failures: block lost40.010.00
commit cleanout failures: callback failure2370.790.00
commit cleanout failures: cannot pin159,662528.870.04
commit cleanouts4,518,55614,967.311.00
commit cleanouts successfully completed4,358,65314,437.650.96
commit immediate performed30.010.00
commit immediate requested30.010.00
commit nowait performed4,518,78814,968.081.00
commit nowait requested4,518,78814,968.081.00
commit txn count during cleanout159,984529.930.04
commit wait/nowait performed4,518,78814,968.081.00
commit wait/nowait requested4,518,78814,968.081.00
consistent changes6,14120.340.00
consistent gets341,4351,130.970.08
consistent gets examination226,151749.100.05
consistent gets examination (fastpath)217,247719.610.05
consistent gets from cache341,4351,130.970.08
consistent gets pin115,284381.870.03
consistent gets pin (fastpath)108,091358.040.02
cursor authentications1690.560.00
data blocks consistent reads - undo records applied5,07216.800.00
db block gets13,711,82145,419.173.03
db block gets direct180.060.00
db block gets from cache13,711,80345,419.113.03
db block gets from cache (fastpath)15,46951.240.00
deferred (CURRENT) block cleanout applications2,250,3277,454.010.50
enqueue conversions3,27410.840.00
enqueue releases9,054,36229,991.762.00
enqueue requests9,054,36629,991.772.00
enqueue timeouts00.000.00
enqueue waits6332.100.00
file io service time3241.070.00
free buffer inspected4401.460.00
free buffer requested96,714320.360.02
gc force cr disk read5,05216.730.00
gc local grants96,283318.930.02
global enqueue get time13,77345.620.00
global enqueue gets async2,9999.930.00
global enqueue gets sync9,058,73830,006.252.01
global enqueue releases9,055,53529,995.642.00
global undo segment hints helped20.010.00
heap block compress30.010.00
immediate (CR) block cleanout applications50.020.00
immediate (CURRENT) block cleanout applications890.290.00
index crx upgrade (positioned)350.120.00
index fast full scans (full)00.000.00
index fetch by key5,45518.070.00
index scans kdiixs16,57221.770.00
leaf node 90-10 splits20.010.00
leaf node splits330.110.00
lob reads1980.660.00
lob writes2470.820.00
lob writes unaligned2470.820.00
logical read bytes from cache115,124,158,464381,338,407.2725,481.60
max cf enq hold time8902.950.00
messages received4,73315.680.00
messages sent4,73315.680.00
min active SCN optimization applied on CR550.180.00
no work - consistent read gets90,279299.040.02
non-idle wait count386,9811,281.840.09
parse count (failures)10.000.00
parse count (hard)4861.610.00
parse time cpu820.270.00
physical read IO requests8,34927.660.00
physical read bytes79,077,376261,936.6917.50
physical read total IO requests11,46237.970.00
physical read total bytes128,258,048424,843.2328.39
physical read total multi block requests130.040.00
physical reads cache9,63131.900.00
physical reads cache prefetch1,3044.320.00
physical reads direct220.070.00
physical reads direct temporary tablespace00.000.00
physical reads prefetch warmup180.060.00
physical write IO requests10,81435.820.00
physical write bytes200,638,464664,596.8444.41
physical write total IO requests19,68665.210.00
physical write total bytes5,814,400,00019,259,676.381,286.96
physical write total multi block requests7,50724.870.00
physical writes direct420.140.00
physical writes direct (lob)60.020.00
physical writes direct temporary tablespace180.060.00
physical writes from cache24,45080.990.01
physical writes non checkpoint24,49281.130.01
prefetched blocks aged out before use120.040.00
queries parallelized680.230.00
recovery blocks read00.000.00
recursive calls13,599,39945,046.783.01
recursive cpu usage65,378216.560.01
redo KB read00.000.00
redo blocks checksummed by FG (exclusive)3,99713.240.00
redo blocks read for recovery00.000.00
redo blocks written4,971,84816,468.801.10
redo buffer allocation retries80.030.00
redo entries9,084,13630,090.382.01
redo k-bytes read for recovery00.000.00
redo log space requests330.110.00
redo subscn max counts1690.560.00
redo synch time160.050.00
redo synch time (usec)152,674505.720.03
redo synch time overhead (usec)179,917595.960.04
redo synch time overhead count ( 2ms)30.010.00
redo synch time overhead count ( 32ms)00.000.00
redo synch time overhead count (inf)10.000.00
redo synch writes40.010.00
redo wastage713,7762,364.320.16
redo write info find40.010.00
redo write size count ( 4KB)640.210.00
redo write size count ( 8KB)160.050.00
redo write size count ( 16KB)290.100.00
redo write size count ( 32KB)70.020.00
redo write size count ( 128KB)120.040.00
redo write size count ( 256KB)130.040.00
redo write size count ( 512KB)390.130.00
redo write size count (1024KB)1240.410.00
redo write size count (inf)1,2184.030.00
redo write time15,47551.260.00
redo writes1,5225.040.00
rollback changes - undo records applied30.010.00
rollbacks only - consistent read gets1100.360.00
rows fetched via callback3,32411.010.00
securefile allocation bytes49,152162.810.01
securefile allocation chunks50.020.00
securefile bytes non-transformed38,554127.710.01
securefile direct write bytes49,152162.810.01
securefile direct write ops50.020.00
securefile number of non-transformed flushes150.050.00
segment cfs allocations340.110.00
segment chunks allocation from disepnser50.020.00
segment dispenser allocations50.020.00
segment dispenser load tasks20.010.00
segment prealloc ops510.170.00
segment prealloc tasks510.170.00
segment prealloc time (ms)1,0353.430.00
segment total chunk allocation340.110.00
shared hash latch upgrades - no wait14,62648.450.00
shared io pool buffer get success50.020.00
sorts (memory)2,6288.710.00
sorts (rows)20,58768.190.00
sql area evicted100.030.00
sql area purged100.030.00
switch current to new buffer160.050.00
table fetch by rowid13,68145.320.00
table fetch continued row2490.820.00
table scan blocks gotten67,196222.580.01
table scan rows gotten42,085,323139,403.849.32
table scans (short tables)7472.470.00
total cf enq hold time2,1207.020.00
total number of cf enq holders2140.710.00
total number of times SMON posted2020.670.00
transaction lock background gets00.000.00
transaction lock foreground requests00.000.00
transaction rollbacks30.010.00
undo change vector size615,024,3282,037,212.70136.13
write clones created in background00.000.00
write clones created in foreground100.030.00


Back to Instance Activity Statistics
Back to Top

Instance Activity Stats - Absolute Values

StatisticBegin ValueEnd Value
logons current5556
opened cursors current6252
session cursor cache count3,5624,495
session pga memory247,620,016263,161,800
session pga memory max295,102,192295,177,480
session uga memory107,169,688145,473,016
session uga memory max479,175,560637,114,648


Back to Instance Activity Statistics
Back to Top

Instance Activity Stats - Thread Activity

StatisticTotalper Hour
log switches (derived)335.77


Back to Instance Activity Statistics
Back to Top

IO Stats

Back to Top

IOStat by Function summary

Function NameReads: DataReqs per secData per secWrites: DataReqs per secData per secWaits: CountAvg Tm(ms)
LGWR1M0.13.003M4.8G25.4916.141M161195.97
Others42M9.26.139M503M4.081.666M31664.20
DBWR5M1.01.017M198M37.09.656M3060.00
Buffer Cache Reads74M27.42.245M0M0.000M82791.58
Direct Reads0M0.070M0M0.030M0 
Direct Writes0M0.000M0M0.040M0 
TOTAL:122M37.90.404M5.4G66.7418.463M13.4K13.54


Back to IO Stats
Back to Top

IOStat by Filetype summary

Filetype NameReads: DataReqs per secData per secWrites: DataReqs per secData per secSmall ReadLarge Read
Log File0M0.040M4.8G25.2916.151M11.25 
Data File72M26.40.238M199M37.25.659M1.2229.54
Control File46M9.74.152M10M2.19.033M3.97 
Other0M0.040M0M0.070M0.00 
Temp File0M0.180M0M0.120M0.00 
TOTAL:118M36.40.391M5G64.9216.844M1.9629.54


Back to IO Stats
Back to Top

IOStat by Function/Filetype summary

Function/File NameReads: DataReqs per secData per secWrites: DataReqs per secData per secWaits: CountAvg Tm(ms)
LGWR 1M0.13.003M4.8G25.6016.201M512.98
LGWR (Log File) 0M0.040M4.8G25.3816.198M245.63
LGWR (Control File) 1M0.09.003M1M0.22.003M270.63
Others 42M9.23.139M503M4.011.666M28364.35
Others (Data File) 1M0.59.003M494M2.041.636M2302.03
Others (Control File) 41M8.63.136M9M1.97.03M26064.55
DBWR 5M1.01.017M203M37.68.672M3060.00
DBWR (Data File) 0M0.000M203M37.68.672M0 
DBWR (Control File) 5M1.01.017M0M0.000M3060.00
Buffer Cache Reads 74M26.92.245M0M0.000M81281.74
Buffer Cache Reads (Data File) 74M26.92.245M0M0.000M81281.74
TOTAL: 122M37.29.404M5.5G67.2918.54M11.3K2.35


Back to IO Stats
Back to Top

Tablespace IO Stats

TablespaceReadsAv Rds/sAv Rd(ms)Av Blks/Rd 1-bk Rds/sAv 1-bk Rd(ms)WritesWrites avg/sBuffer WaitsAv Buf Wt(ms)PDB Name
UNDOTBS1 1500.001.0000.009,423316,9760.04  
SYSAUX 6,163200.721.00200.724141180.56  
USERS 901.111.0001.111,328494,3880.09  
TEMP 5500.181.0400.1937000.00  
SYSAUX 1501.332.2001.822000.00 MACC
UNDOTBS2 300.001.0000.002000.00  
EXAMPLE 200.001.0000.002000.00 MACC
USERS 200.001.0000.002000.00 MACC


Back to IO Stats
Back to Top

File IO Stats

TablespaceFilenameReadsAv Rds/sAv Rd(ms)Av Blks/Rd 1-bk Rds/sAv 1-bk Rd(ms)WritesWrites avg/sBuffer WaitsAv Buf Wt(ms)PDB Name
EXAMPLE+DATADG/MAC/DD7D8C1D4C234B38E04325AAE80AF577/DATAFILE/example.278.819692585 200.001.0000.002000.00 MACC
SYSAUX+DATADG/MAC/DATAFILE/sysaux.257.819691725 6,163200.721.00200.724141180.56  
SYSAUX+DATADG/MAC/DD7D8C1D4C234B38E04325AAE80AF577/DATAFILE/sysaux.277.819692585 1501.332.2001.822000.00 MACC
TEMP+DATADG/MAC/TEMPFILE/temp.267.819691865 5500.181.0400.193700   
UNDOTBS1+DATADG/MAC/DATAFILE/undotbs1.260.819691817 1500.001.0000.009,423316,9760.04  
UNDOTBS2+DATADG/MAC/DATAFILE/undotbs2.271.819692307 300.001.0000.002000.00  
USERS+DATADG/MAC/DATAFILE/users.259.819691817 901.111.0001.111,328494,3880.09  
USERS+DATADG/MAC/DD7D8C1D4C234B38E04325AAE80AF577/DATAFILE/users.280.819692587 200.001.0000.002000.00 MACC


Back to IO Stats
Back to Top

Buffer Pool Statistics

Back to Top

Buffer Pool Statistics

PNumber of BuffersPool Hit%Buffer GetsPhysical ReadsPhysical WritesFree Buff WaitWrit Comp WaitBuffer Busy Waits
D532,78410014,043,6759,71524,45000100,598


Back to Buffer Pool Statistics
Back to Top

Checkpoint Activity

MTTR WritesLog Size WritesLog Ckpt WritesOther Settings WritesAutotune Ckpt WritesThread Ckpt Writes
024,0660000


Back to Buffer Pool Statistics
Back to Top

Advisory Statistics

Back to Top

Instance Recovery Stats

Targt MTTR (s) Estd MTTR (s)Recovery Estd IOsActual RedoBlksTarget RedoBlksLog Sz RedoBlksLog Ckpt Timeout RedoBlksLog Ckpt Interval RedoBlksOpt Log Sz(M)Estd RAC Avail Time
B0022674735632713563271   0
E026362801360762335632713563271   82


Back to Advisory Statistics
Back to Top

MTTR Advisory

No data exists for this section of the report.

Back to Advisory Statistics
Back to Top

Buffer Pool Advisory

PSize for Est (M)Size FactorBuffers (thousands)Est Phys Read FactorEstimated Phys Reads (thousands)Est Phys Read TimeEst %DBtime for Rds
D4480.10531.02251105.00
D8960.201051.00241102.00
D1,3440.301581.00241102.00
D1,7920.392101.00241102.00
D2,2400.492631.00241102.00
D2,6880.593151.00241102.00
D3,1360.693681.00241102.00
D3,5840.794201.00241102.00
D4,0320.894731.00241102.00
D4,4800.995251.00241102.00
D4,5441.005331.00241102.00
D4,9281.085781.00241102.00
D5,3761.186301.00241102.00
D5,8241.286831.00241102.00
D6,2721.387351.00241102.00
D6,7201.487881.00241102.00
D7,1681.588401.00241102.00
D7,6161.688931.00241102.00
D8,0641.779461.00241102.00
D8,5121.879981.00241102.00
D8,9601.971,0511.00241102.00


Back to Advisory Statistics
Back to Top

PGA Aggr Summary

PGA Cache Hit %W/A MB ProcessedExtra W/A MB Read/Written
100.00830


Back to Advisory Statistics
Back to Top

PGA Aggr Target Stats

PGA Aggr Target(M)Auto PGA Target(M)PGA Mem Alloc(M) W/A PGA Used(M) %PGA W/A Mem%Auto W/A Mem%Man W/A MemGlobal Mem Bound(K)
B1,5001,134308.840.000.000.000.00153,600
E1,5001,124327.630.000.000.000.00153,600


Back to Advisory Statistics
Back to Top

PGA Aggr Target Histogram

Low Optimal High OptimalTotal ExecsOptimal Execs1-Pass ExecsM-Pass Execs
2K4K1,3001,30000
64K128K6600
128K256K3300
512K1024K707000
1M2M242400


Back to Advisory Statistics
Back to Top

PGA Memory Advisory

PGA Target Est (MB)Size FactrW/A MB ProcessedEstd Extra W/A MB Read/ Written to Disk Estd PGA Cache Hit %Estd PGA Overalloc CountEstd Time
1880.13162.0438.0881.004513,795
3750.25162.040.00100.000416,022
7500.50162.040.00100.000416,022
1,1250.75162.040.00100.000416,022
1,5001.00162.040.00100.000416,022
1,8001.20162.040.00100.000416,022
2,1001.40162.040.00100.000416,022
2,4001.60162.040.00100.000416,022
2,7001.80162.040.00100.000416,022
3,0002.00162.040.00100.000416,022
4,5003.00162.040.00100.000416,022
6,0004.00162.040.00100.000416,022
9,0006.00162.040.00100.000416,022
12,0008.00162.040.00100.000416,022


Back to Advisory Statistics
Back to Top

Shared Pool Advisory

Shared Pool Size(M)SP Size FactrEst LC Size (M)Est LC Mem ObjEst LC Time Saved (s)Est LC Time Saved FactrEst LC Load Time (s)Est LC Load Time FactrEst LC Mem Obj Hits (K)
5920.57382,3732,2600.99381.523,993
7040.68693,9302,2621.00361.443,993
8160.78693,9302,2621.00361.443,993
8800.85693,9302,2621.00361.443,993
8960.86693,9302,2621.00361.443,993
9120.88693,9302,2621.00361.443,993
9280.89693,9302,2621.00361.443,993
9440.91693,9302,2621.00361.443,993
9600.92693,9302,2621.00361.443,993
9760.94693,9302,2621.00361.443,993
9920.95693,9302,2621.00361.443,993
1,0080.97693,9302,2631.00351.403,993
1,0240.98693,9302,2661.00321.283,993
1,0401.00693,9302,2731.00251.003,993
1,0561.02693,9302,2731.00251.003,993
1,0721.03693,9302,2731.00251.003,993
1,0881.05693,9302,2731.00251.003,993
1,1041.06693,9302,2731.00251.003,993
1,1201.08693,9302,2731.00251.003,993
1,1361.09693,9302,2731.00251.003,993
1,1521.11693,9302,2731.00251.003,993
1,1681.12693,9302,2731.00251.003,993
1,1841.14693,9302,2731.00251.003,993
1,2641.22693,9302,2731.00251.003,993
1,3761.32693,9302,2731.00251.003,993
1,4881.43693,9302,2731.00251.003,993
1,6001.54693,9302,2731.00251.003,993
1,7121.65693,9302,2731.00251.003,993
1,8241.75693,9302,2731.00251.003,993
1,9361.86693,9302,2731.00251.003,993
2,0481.97693,9302,2731.00251.003,993
2,1602.08693,9302,2731.00251.003,993


Back to Advisory Statistics
Back to Top

SGA Target Advisory

SGA Target Size (M)SGA Size FactorEst DB Time (s)Est Physical Reads
1,5000.2590524,486
2,2500.3889224,486
3,0000.5088924,060
3,7500.6388924,060
4,5000.7588924,060
5,2500.8888924,060
6,0001.0088924,060
6,7501.1388924,060
7,5001.2588924,060
8,2501.3888924,060
9,0001.5088924,060
9,7501.6388924,060
10,5001.7588924,060
11,2501.8888924,060
12,0002.0088924,060


Back to Advisory Statistics
Back to Top

Streams Pool Advisory

No data exists for this section of the report.

Back to Advisory Statistics
Back to Top

Java Pool Advisory

No data exists for this section of the report.

Back to Advisory Statistics
Back to Top

Wait Statistics

Back to Top

Buffer Wait Statistics

ClassWaitsTotal Wait Time (s)Avg Time (ms)
data block94,92390
undo header6,86900
file header block10701
3rd level bmb1801
1st level bmb3600
undo block2700
segment header1400
2nd level bmb100


Back to Wait Statistics
Back to Top

Enqueue Activity

Enqueue Type (Request Reason)RequestsSucc GetsFailed GetsWaitsWt Time (s)Av Wt Time(ms)
HW-Segment High Water Mark 4,2964,29603361028.87
SQ-Sequence Cache 13913908901.12
US-Undo Segment 1,6221,62208900.45
RO-Multiple Object Reuse (fast object reuse) 17017001700.59
FB-Format Block 52152106800.00
PS-PX Process Reservation 1,6981,69801900.00
TX-Transaction 4,548,2854,548,06501700.00
TM-DML 4,548,2024,548,201000 
JS-Job Scheduler (queue lock) 2,5862,586000 
JS-Job Scheduler 2,5862,586000 
TT-Tablespace 2,5322,532000 
CF-Controlfile Transaction 1,0691,069000 
CR-Reuse Block Range (block range reuse ckpt) 894894000 
SE-Session Migration 452452000 
SJ-KTSJ Slave Task Cancel (Slave Task Cancel) 386386000 
CU-Cursor 311311000 
JS-Job Scheduler (q mem clnup lck) 246246000 
DD-ASM Local Disk Group 211211000 
MC-SGA Log Operation (Securefile log) 111111000 
MF-SGA Log-Bkt Flush (flush bkgnd periodic) 100100000 
AE-Edition Lock (lock) 7979000 
JD-Job Queue Date 6161000 
XL-ASM Extent Fault Lock (fault extent map) 5252000 
CT-Block Change Tracking (state) 5151000 
CT-Block Change Tracking (CTWR process start/stop) 5151000 
DW-In memory Dispenser 5151000 
FD-Flashback Database (Flashback logical operations) 5151000 
FP-File Object (global fob contention) 5151000 
MV-Online Datafile Move (datafile move) 5151000 
SW-Suspend Writes 5151000 
MR-Media Recovery 4646000 
WF-AWR Flush 3030000 
IS-Instance State 1919000 
TO-Temp Object 1616000 
PR-Process Startup 1111000 
IT-In-Mem Temp Table Meta Creation 1010000 
PE-Parameter 88000 
PV-KSV slave startup (syncstart) 88000 
TH-Threshold Chain (metric threshold evaluation) 55000 
TS-Temporary Segment 55000 
PG-Global Parameter 44000 
JS-Job Scheduler (job run lock - synchronize) 22000 
TA-Instance Undo 22000 
UL-User-defined 22000 
SH-Active Session History Flushing 11000 
SS-Sort Segment 11000 


Back to Wait Statistics
Back to Top

Undo Statistics

Back to Top

Undo Segment Summary

No data exists for this section of the report.

Back to Undo Statistics
Back to Top

Undo Segment Stats

No data exists for this section of the report.

Back to Undo Statistics
Back to Top

Latch Statistics

Back to Top

Latch Activity

Latch NameGet RequestsPct Get MissAvg Slps /MissWait Time (s)NoWait RequestsPct NoWait Miss
AQ Background: interrupt command latch10.00 0100.00
AQ Coord jobx_kwsbgsgn latch100.00 00 
AQ Sharded master pool latch100.00 00 
AQ deq hash table latch10.00 00 
AQ dequeue txn counter latch700.00 00 
ASM Keyed state latch370.00 00 
ASM allocation4570.00 00 
ASM db client latch4160.00 00 
ASM map headers1,1250.00 00 
ASM map load waiting list2550.00 00 
ASM map operation freelist2420.00 00 
ASM map operation hash table835,3630.00 00 
ASM network background latch1,7380.00 00 
ASM network state latch5430.00 00 
ASM remote client latch50.00 00 
AWR Alerted Metric Element list2,2690.00 00 
Consistent RBA1,5250.00 00 
DML lock allocation9,026,1360.030.0100 
Event Group Locks4580.00 00 
FIB s.o chain latch1080.00 00 
FOB s.o list latch2500.00 00 
File State Object Pool Parent Latch10.00 00 
Hang Manager wait event statistics200.00 00 
I/O Staticstics latch10.00 00 
ILM Stats Stripe Latch10.00 00 
ILM access tracking extent10.00 00 
ILM activity tracking latch10.00 00 
IPC other latch40.00 00 
IPC stats buffer allocation latch1290.00 01110.00
In memory undo latch10.00 00 
Init msg cache10.00 00 
JS Sh mem access10.00 00 
JS broadcast add buf latch1300.00 00 
JS broadcast drop buf latch1300.00 00 
JS broadcast load blnc latch90.00 00 
JS mem alloc latch40.00 00 
JS queue access latch50.00 00 
JS queue state obj latch5,0880.00 00 
JS slv state obj latch70.00 00 
KCNIBR - invalid block range tree10.00 00 
KFC FX Hash Latch10.00 00 
KFC Hash Latch10.00 00 
KFCL LE Freelist10.00 00 
KFK SGA Libload latch480.00 00 
KFMD SGA50.00 00 
KGNFS-NFS:SHM structure60.00 00 
KGNFS-NFS:SVR LIST1010.00 00 
KJC message pool free list10.00 00 
KJCT flow control latch10.00 00 
KMG MMAN ready and startup request latch1070.00 00 
KMG resize request state object freelist30.00 00 
KSFS OFS ctx level parent latch10.00 00 
KSFS OFS req layer parent latch10.00 00 
KSFS OFS sess layer parent latch10.00 00 
KSFS id table parent latch10.00 00 
KSFS ksfs_node latch10.00 00 
KSFSD name cache parent latch10.00 00 
KSXR large replies110.00 00 
KTF sga latch30.00 01000.00
KTILM latch10.00 00 
KWQMN job cache list latch200.00 00 
Locator state objects pool parent latch10.00 00 
Lsod array latch550.00 00 
MQL Tracking Latch0  080.00
Memory Management Latch550.00 01060.00
Memory Queue10.00 00 
Memory Queue Message Subscriber #110.00 00 
Memory Queue Message Subscriber #210.00 00 
Memory Queue Message Subscriber #310.00 00 
Memory Queue Message Subscriber #410.00 00 
Memory Queue Subscriber10.00 00 
MinActiveScn Latch1050.00 00 
Mutex10.00 00 
Mutex Stats10.00 00 
NLS data objects20.00 00 
OS process1350.00 00 
OS process allocation6810.00 00 
OS process: request allocation370.00 00 
PL/SQL warning settings5190.00 00 
PX hash array latch10.00 00 
Parent latch for dependency tracking10.00 00 
QMT10.00 00 
Real-time descriptor latch4150.240.0000 
Report Request stats latch250.00 00 
Report Request struct latch100.00 00 
Request holder compeltion list latch230.00 00 
Retry Ht elm latch10.00 00 
Retry bkt latch10.00 00 
SGA Blackbox latch10.00 00 
SGA IO buffer pool latch2790.00 04270.00
SGA Logging Bkt Latch7410.00 00 
SGA Logging Log Latch1,0550.00 03050.00
SGA blob parent10.00 00 
SGA bucket locks10.00 00 
SGA heap locks10.00 00 
SGA pool locks10.00 00 
SQL memory manager latch10.00 0990.00
SQL memory manager workarea list latch7,2030.00 00 
Sched IM Job latch60.00 00 
Sched InMem Job Cache10.00 00 
Shared B-Tree110.00 00 
Streams Generic10.00 00 
Subscriber Ht elm latch10.00 00 
Testing10.00 00 
Token Manager10.00 00 
Txn Ht elm latch10.00 00 
Txn bkt latch10.00 00 
Undo Hint Latch0  04000.25
WCR: sync10.00 00 
Write State Object Pool Parent Latch10.00 00 
X$KSFQP10.00 00 
XDB NFS Security Latch10.00 00 
XDB unused session pool10.00 00 
XDB used session pool10.00 00 
active checkpoint queue latch3890.00 00 
active service list4,6820.320.0001,6740.00
affinity stats hash tables freelist100.00 00 
affinity stats objects freelist40.00 00 
begin backup scn array50.00 00 
buffer pool220.00 00 
business card10.00 00 
cache buffer handles4,9990.080.0000 
cache buffers chains55,373,7240.060.010174,3560.00
cache buffers lru chain72,2440.060.000145,9390.07
cache table scan latch530.00 0530.00
call allocation2,4591.220.5300 
cas latch10.00 00 
change notification client cache latch10.00 00 
channel handle pool latch490.00 00 
channel operations parent latch1,5320.070.0000 
checkpoint queue latch27,4850.010.000102,0850.01
client/application info2,5610.00 00 
compile environment latch4460.00 00 
corrupted undo seg latch120.00 00 
cp handoff latch10.00 00 
cp pool latch10.00 00 
cp server hash latch10.00 00 
cp sga latch50.00 00 
cp srv type state latch160.00 00 
cp srv type wait latch10.00 00 
cvmap freelist lock10.00 00 
deferred cleanup latch50.00 00 
dispatcher info240.00 00 
dml lock allocation50.00 00 
done queue latch10.00 00 
dtp latch210.00 00 
dummy allocation8820.110.0000 
eleventh spare latch - children10.00 00 
enqueue freelist latch10.00 033,4840.02
enqueue hash chains27,135,5092.790.011140.00
enqueues9870.00 00 
error message lists9130.770.0000 
event stats latch4400.00 00 
fast space usage latch60.00 00 
file cache latch1,4800.00 00 
flashback copy10.00 00 
fourth Audit Vault latch10.00 00 
gc bast context freelist10.00 00 
gc element77,0790.180.01077,4790.78
gcs commit scn state10.00 00 
gcs opaque info freelist10.00 00 
gcs partitioned table hash9,506,9450.060.00079,2950.04
gcs pcm hashed value bucket hash10.00 00 
gcs remaster request queue220.00 00 
gcs resource freelist26,8760.030.0000 
gcs resource hash116,5990.010.0000 
gcs resource scan list10.00 00 
gcs resource validate list10.00 00 
gcs shadows freelist10.00 00 
ges cached resource lists3,880,5270.000.2005,9960.27
ges deadlock list340.00 00 
ges domain table19,280,7890.000.0000 
ges enqueue table freelist19,278,9910.800.0100 
ges group table18,691,4870.000.0000 
ges process hash list1750.00 00 
ges process parent latch37,378,0290.000.2900 
ges process table freelist370.00 00 
ges resource hash list32,865,1609.610.0121052.86
ges resource scan list2140.00 00 
ges resource table freelist7,764,1830.020.0700 
ges timeout list390.00 00 
ges value block free list640.00 00 
global KZLD latch for auth type mem in SGA50.00 00 
global tx hash mapping10.00 00 
granule from data transfer cache10.00 00 
granule operation10.00 00 
hash table Sql Plan Finding latch0  0400.00
hash table column usage latch0  029,0790.01
hash table modification latch800.00 00 
heartbeat check10.00 01050.00
heartbeat structure management0  0600.00
internal temp table object number allocation latch80.00 00 
interrupt manipulation2,6240.270.0000 
intra txn parallel recovery10.00 00 
io pool granule list300.00 00 
io pool granule metadata list210.00 00 
job workq parent latch30.00 020.00
job_queue_processes free list latch130.00 00 
job_queue_processes parameter latch50.00 00 
k2q global data latch2000.00 00 
k2q lock allocation10.00 00 
kcb DW scan objtemp hash table latch10.00 00 
kcbtsemkid latch30.00 00 
kcn buffer chains10.00 00 
kdlx hb parent latch10.00 00 
kgb parent10.00 00 
kgnfs mount latch10.00 00 
kjci objects freelist latch10.00 00 
kjci process context latch10.00 08560.00
kjoedcso state object freelist latch50.00 00 
kjoeq omni enqueue hash bucket latch10.00 00 
kjoer owner hash bucket10.00 00 
kokc descriptor allocation latch1300.00 00 
krso process latch100.00 00 
ksbxic instance latch20.00 00 
ksfv messages10.00 00 
ksi resource reuse count10.00 00 
ksim group membership cache9,7230.00 00 
ksim membership request latch0  01120.00
kss move lock170.00 00 
ksuosstats global area380.00 00 
ksv allocation latch390.00 00 
ksv class latch4,7830.290.0000 
ksv instance latch100.00 00 
ksv msg queue latch2060.00 02050.00
ksxp shared latch370.00 00 
ksxp so latch370.00 00 
ksz_so allocation latch370.00 00 
ktfbn latch10.00 00 
ktm global data7880.00 00 
kwqbsn:qsga100.00 00 
kwslbmdl: metadata latch300.00 00 
kwslbql: queue latch10.00 00 
lgwr LWN SCN1,5310.520.0000 
list of block allocation320.00 00 
loader state object freelist600.00 00 
lob segment dispenser latch2130.00 00 
lob segment hash table latch1330.00 00 
lob segment query latch30.00 00 
lock DBA buffer during media recovery10.00 00 
log write info0  01,5240.00
log write slave phase10.00 00 
logical standby cache10.00 00 
logminer context allocation10.00 00 
logminer work area10.00 00 
longop free list parent10.00 00 
managed standby latch100.00 00 
mapped buffers lru chain10.00 00 
message bitmap latch10.00 00 
message pool operations parent latch5340.00 00 
messages32,9130.060.0000 
mostly latch-free SCN1,5631.600.0000 
msg queue latch10.00 00 
multiblock read objects1440.00 00 
name-service memory objects2320.00 00 
name-service namespace bucket1,9950.00 00 
name-service namespace objects10.00 00 
name-service pending queue2200.00 00 
name-service request240.00 00 
name-service request queue2,9810.00 00 
ncodef allocation latch50.00 00 
object queue header freelist1,9870.00 015,1600.00
object queue header operation238,0380.000.00015,1600.01
object queue memory3600.00 00 
object stats modification8780.00 00 
parallel query alloc buffer7,3670.030.0000 
parallel query stats6440.620.0000 
parallel txn reco latch420.00 00 
parameter table management9850.00 00 
peshm10.00 00 
pesom_free_list10.00 00 
pesom_hash_node10.00 00 
pkey global statistics10.00 00 
post/wait queue6,4820.00 06,2640.00
process allocation480.00 0160.00
process group creation370.00 00 
process pkey statistics list110.00 00 
process queue3,9940.00 00 
process queue reference110,3540.010.0007,4620.08
qmn task queue latch400.00 00 
query server freelists4,0720.020.0000 
query server process6260.00 060.00
queued dump request10.00 00 
queuing load statistics10.00 00 
recovery domain hash list10.00 00 
redo allocation6,5043.350.0109,073,1560.33
redo copy10.00 09,073,4870.00
redo writing6,5500.00 00 
resmgr group change latch4560.00 00 
resmgr:active threads9340.00 01060.00
resmgr:actses change group4570.00 00 
resmgr:actses change state980.00 00 
resmgr:free threads list8970.110.0000 
resmgr:plan CPU method10.00 00 
resmgr:resource group CPU method3611.110.0000 
resmgr:schema config170.00 050.00
resmgr:session queuing10.00 00 
resumable state object5370.00 00 
rm cas latch10.00 00 
row cache objects149,9240.180.0000 
second Audit Vault latch10.00 00 
segmented array pool1080.00 00 
sequence cache13,538,2062.400.0000 
session allocation4,514,0340.040.0004,513,1540.04
session idle bit4,517,6330.000.0100 
session queue latch10.00 00 
session state list latch9020.00 00 
session statistics8820.112.0000 
session switching270.00 00 
session timer1010.00 00 
seventh spare latch - X parent10.00 00 
sga hash table parent latch10.00 00 
shard latch10.00 00 
shared pool1,071,5250.070.0300 
shared pool sim alloc380.00 00 
shared pool simulator1,2370.00 00 
sim partition latch10.00 00 
simulator hash latch325,2130.00 00 
simulator lru latch7020.00 0307,5540.02
sixth spare latch - X parent10.00 00 
sort extent pool3310.00 00 
space background task latch1,4090.00 02020.00
state object free list20.00 00 
statistics aggregation50.00 00 
subscriber Ht bkt10.00 00 
tablespace key chain10.00 00 
temp lob duration state obj allocation60.00 00 
temporary table state object allocation30.00 00 
test excl. parent l010.00 00 
test excl. parent2 l010.00 00 
test excl. parent2 lmid cln10.00 00 
threshold alerts latch50.00 00 
trace latch50.00 00 
transaction allocation1,2740.080.0000 
twelfth spare latch - children10.00 00 
twenty-first spare latch - S par10.00 00 
twenty-second spare latch - S par10.00 00 
undo global data13,843,5930.070.0100 
virtual circuit buffers10.00 00 
virtual circuit holder10.00 00 
virtual circuit queues10.00 00 


Back to Latch Statistics
Back to Top

Latch Sleep Breakdown

Latch NameGet RequestsMissesSleepsSpin Gets
ges resource hash list32,865,1603,158,99726,7453,133,917
enqueue hash chains27,135,509757,5257,217750,781
sequence cache13,538,206325,539241325,313
ges enqueue table freelist19,278,991154,453996153,499
cache buffers chains55,373,72432,48930632,187
undo global data13,843,5939,015708,946
DML lock allocation9,026,1362,971262,946
session allocation4,514,0341,81691,807
ges resource table freelist7,764,1831,284841,209
shared pool1,071,52574820731
row cache objects149,9242711270
redo allocation6,5042183215
session idle bit4,517,6332132211
gc element77,0791401139
ges cached resource lists3,880,527491040
call allocation2,459301616
ges process parent latch37,378,02924717
session statistics882120


Back to Latch Statistics
Back to Top

Latch Miss Sources

Latch NameWhereNoWait Misses SleepsWaiter Sleeps
DML lock allocationktaiam01315
DML lock allocationktaidm01311
cache buffers chainskcbnlc017087
cache buffers chainskcbgcur_20160159
cache buffers chainskcbchg: change complete03657
cache buffers chainskcbgtcr: fast path exam03616
cache buffers chainskcbchg: cur pin change02692
cache buffers chainskcbgtcr: fast path pin0120
cache buffers chainskcbzwb01122
cache buffers chainskcbgcur_40918
cache buffers chainskcbchg: cr pin change012
cache buffers chainskcbchg: cr pin cleanout010
cache buffers chainskcbrls_2013
call allocationksuxds01616
enqueue hash chainsksqgtl302,2272,275
enqueue hash chainsksqcmi: if lk mode not requested01,962781
enqueue hash chainsksqrcl01,6672,052
enqueue hash chainsksqcmi: if lk mode requested01,3612,106
enqueue hash chainsksqcnl016
gc elementkclevict010
ges cached resource listskjruref: directly free local master01010
ges enqueue table freelistkjlfr: remove lock from parent object0824436
ges enqueue table freelistkjlalc: lock allocation0173562
ges process parent latchkjata_fg070
ges resource hash listkjakoca: search for resp by resname09,575363
ges resource hash listkjlrlr: remove lock from resource queue08,1431,644
ges resource hash listkjrref: find matched resource05,82524,537
ges resource hash listkjrmas1: lookup master node03,199194
ges resource hash listkjcvscn: remove from scan queue010
ges resource hash listkjucvl: lock convert request016
ges resource table freelistkjralc: resource allocation06856
ges resource table freelistkjrfr: remove from resource table01628
redo allocationkcrfw_redo_gen: redo allocation 1030
row cache objectskqrbtm: pop parent010
sequence cachekdnssd019011
sequence cachekdnnxt: cached seq0389
sequence cachekdnss013221
session allocationksucri_int : SSO050
session allocationksuxds049
session idle bitksuxds022
session statisticsksu_allocate_session_stats022
shared poolkghalo0115
shared poolkghfre067
shared poolkghupr1028
shared poolkghalp010
undo global dataktudba: KSLBEGIN0444
undo global dataktudnx:child01731
undo global dataktufrbs_20935


Back to Latch Statistics
Back to Top

Mutex Sleep Summary

Mutex TypeLocationSleepsWait Time (ms)
Library Cachekglpnal2 9160,1912,673
Library Cachekglpin1 418,9703,106
Library Cachekglpnal1 903,54782
Library Cachekglpndl1 952,466401
Cursor Pinkksfbc [KKSCHLFSP2]486548
Cursor Parentkksfbc [KKSPRTLOC32]149110
Cursor PinkksLockDelete [KKSCHLPIN6]106119
Cursor Pinkkslce [KKSCHLPIN2]4444
Library Cachekglhdgn2 106117
Library Cachekgllkdl1 85101
Library Cachekglget2 264
Library Cachekgllkal1 8054
Library Cachekglini1 3240
Library Cachekgllkc1 5730
Library Cachekglhdgc1 10220
Library Cachekglrdtin1 4411
Cursor ParentkksLoadChild [KKSPRTLOC4]10
Cursor ParentkkscsCheckCursor [KKSPRTLOC37]10
Cursor Parentkksfbc [KKSPRTLOC3]10


Back to Latch Statistics
Back to Top

Parent Latch Statistics

No data exists for this section of the report.

Back to Latch Statistics
Back to Top

Child Latch Statistics

No data exists for this section of the report.

Back to Latch Statistics
Back to Top

Segment Statistics

Back to Top

Segments by Logical Reads

OwnerTablespace NameObject NameSubobject NameObj. TypeLogical Reads%TotalPDB Name
SYSUSERSLGWR_PRESS TABLE4,682,94433.32  
SYSSYSAUXSYS_LOB0000007458C00038$$ LOB11,8560.08  
SYSSYSTEMI_ARGUMENT2 INDEX2,8000.02  
SYSSYSTEMOBJ$ TABLE2,5280.02  
** MISSING **TEMP** TRANSIENT: 4195200** MISSING **UNDEFINED2,3840.02  


Back to Segment Statistics
Back to Top

Segments by Physical Reads

OwnerTablespace NameObject NameSubobject NameObj. TypePhysical Reads%TotalPDB Name
SYSSYSAUXSYS_LOB0000007458C00038$$ LOB5,04752.28  
SYSSYSTEMOBJ$ TABLE1,40414.54  
SYSSYSTEMIDL_UB1$ TABLE2672.77  
SYSSYSAUXWRH$_SQL_PLAN TABLE1471.52  
SYSSYSAUXWRH$_SQL_PLAN_PK INDEX1351.40  


Back to Segment Statistics
Back to Top

Segments by Physical Read Requests

OwnerTablespace NameObject NameSubobject NameObj. TypePhys Read Requests%TotalPDB Name
SYSSYSAUXSYS_LOB0000007458C00038$$ LOB5,04760.45  
SYSSYSTEMIDL_UB1$ TABLE2673.20  
SYSSYSTEMOBJ$ TABLE1561.87  
SYSSYSAUXWRH$_SQL_PLAN TABLE1471.76  
SYSSYSAUXWRH$_SQL_PLAN_PK INDEX1351.62  


Back to Segment Statistics
Back to Top

Segments by UnOptimized Reads

OwnerTablespace NameObject NameSubobject NameObj. TypeUnOptimized Reads%TotalPDB Name
SYSSYSAUXSYS_LOB0000007458C00038$$ LOB5,04760.45  
SYSSYSTEMIDL_UB1$ TABLE2673.20  
SYSSYSTEMOBJ$ TABLE1561.87  
SYSSYSAUXWRH$_SQL_PLAN TABLE1471.76  
SYSSYSAUXWRH$_SQL_PLAN_PK INDEX1351.62  


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

OwnerTablespace NameObject NameSubobject NameObj. TypePhysical Writes%TotalPDB Name
SYSUSERSLGWR_PRESS TABLE2,1248.67  
SYSSYSAUXSYS_LOB0000007458C00038$$ LOB810.33  
SYSSYSAUXWRH$_SQLSTAT_INDEXWRH$_SQLSTA_797696270_0INDEX PARTITION540.22  
SYSSYSAUXWRH$_SQL_PLAN TABLE290.12  
SYSSYSAUXWRH$_SEG_STAT_OBJ TABLE130.05  


Back to Segment Statistics
Back to Top

Segments by Physical Write Requests

OwnerTablespace NameObject NameSubobject NameObj. TypePhys Write Requests%TotalPDB Name
SYSUSERSLGWR_PRESS TABLE1,32212.22  
SYSSYSAUXWRH$_SQLSTAT_INDEXWRH$_SQLSTA_797696270_0INDEX PARTITION350.32  
SYSSYSAUXWRH$_SQL_PLAN TABLE130.12  
SYSSYSAUXSYS_LOB0000007458C00038$$ LOB100.09  
SYSSYSAUXWRH$_LATCH_PKWRH$_LATCH_797696270_0INDEX PARTITION90.08  


Back to Segment Statistics
Back to Top

Segments by Direct Physical Writes

OwnerTablespace NameObject NameSubobject NameObj. TypeDirect Writes%TotalPDB Name
SYSSYSAUXSYS_LOB0000007458C00038$$ LOB24.76  


Back to Segment Statistics
Back to Top

Segments by Table Scans

No data exists for this section of the report.

Back to Segment Statistics
Back to Top

Segments by DB Blocks Changes

OwnerTablespace NameObject NameSubobject NameObj. TypeDB Block Changes% of CapturePDB Name
SYSUSERSLGWR_PRESS TABLE4,597,52099.91  
SYSSYSAUXWRH$_SEG_STAT_OBJ TABLE8640.02  
** MISSING **TEMP** TRANSIENT: 4195200** MISSING **UNDEFINED6880.01  
SYSSYSAUXWRH$_SYSSTAT_PKWRH$_SYSSTA_797696270_0INDEX PARTITION5440.01  
SYSSYSAUXSYS_LOB0000007458C00038$$ LOB4480.01  


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

OwnerTablespace NameObject NameSubobject NameObj. TypeBuffer Busy Waits% of CapturePDB Name
SYSUSERSLGWR_PRESS TABLE94,933100.00  


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

No data exists for this section of the report.

Back to Segment Statistics
Back to Top

Segments by Current Blocks Received

No data exists for this section of the report.

Back to Segment Statistics
Back to Top

Dictionary Cache Statistics

Back to Top

Dictionary Cache Stats

CacheGet RequestsPct MissScan ReqsPct MissMod ReqsFinal Usage
dc_awr_control130.000 21
dc_global_oids5365.970 065
dc_histogram_data5,76314.450 03,451
dc_histogram_defs11,17518.470 2456,384
dc_object_grants6100.000 012
dc_objects4,9029.750 222,310
dc_profiles633.330 02
dc_props2890.000 099
dc_rollback_segments7,7770.000 025
dc_segments2,22110.900 11,131
dc_sequences5510.910 559
dc_tablespaces7,3430.010 014
dc_users4,9713.06200.000180
sch_lj_oids425.000 020


Back to Dictionary Cache Statistics
Back to Top

Dictionary Cache Stats (RAC)

CacheGES RequestsGES ConflictsGES Releases
dc_awr_control400
dc_global_oids3200
dc_histogram_defs2,06400
dc_objects47200
dc_profiles200
dc_segments24400
dc_sequences11000
dc_tablespaces100
dc_users14400
sch_lj_oids100


Back to Dictionary Cache Statistics
Back to Top

Library Cache Statistics

Back to Top

Library Cache Activity

NamespaceGet RequestsPct MissPin RequestsPct MissReloadsInvali- dations
AUDIT POLICY50.0050.0000
BODY6456.2532512.3110
CLUSTER560.00560.0000
DBLINK100.000 00
EDITION751.331502.0000
INDEX2792.592792.5900
OBJECT ID5100.000 00
QUEUE600.00700.0000
SCHEMA6760.440 00
SQL AREA2,26034.914,527,1110.02510
SQL AREA BUILD37585.870 00
SQL AREA STATS37498.6637498.6600
TABLE/PROCEDURE2,63724.994,519,1830.0270
TRANSFORMATION300.00300.0000


Back to Library Cache Statistics
Back to Top

Library Cache Activity (RAC)

NamespaceGES Lock RequestsGES Pin RequestsGES Pin ReleasesGES Inval RequestsGES Invali- dations
AUDIT POLICY55500
BODY031031000
CLUSTER56565600
DBLINK100000
EDITION75777700
INDEX27272700
QUEUE30707000
SCHEMA70000
TABLE/PROCEDURE3,6594,517,4344,517,43400
TRANSFORMATION30303000


Back to Library Cache Statistics
Back to Top

Memory Statistics

Back to Top

Memory Dynamic Components

ComponentBegin Snap Size (Mb)Current Size (Mb)Min Size (Mb)Max Size (Mb)Oper CountLast Op Typ/Mod
ASM Buffer Cache0.000.000.000.000STA/
DEFAULT 16K buffer cache0.000.000.000.000STA/
DEFAULT 2K buffer cache0.000.000.000.000STA/
DEFAULT 32K buffer cache0.000.000.000.000STA/
DEFAULT 4K buffer cache0.000.000.000.000STA/
DEFAULT 8K buffer cache0.000.000.000.000STA/
DEFAULT buffer cache4,848.004,544.004,544.004,848.002SHR/IMM
Data Transfer Cache0.000.000.000.000STA/
KEEP buffer cache0.000.000.000.000STA/
PGA Target1,504.001,504.001,504.001,504.000STA/
RECYCLE buffer cache0.000.000.000.000STA/
SGA Target6,000.006,000.006,000.006,000.000STA/
Shared IO Pool0.00304.000.00304.002GRO/IMM
java pool16.0016.0016.0016.000STA/
large pool48.0048.0048.00144.000SHR/DEF
shared pool1,040.001,040.001,040.001,040.000STA/
streams pool0.000.000.000.000STA/


Back to Memory Statistics
Back to Top

Memory Resize Operations Summary

ComponentMin Size (Mb)Max Size (Mb)Avg Size (Mb)Re- SizesGrowsShrinks
DEFAULT buffer cache4,544.004,544.004,544.00101


Back to Memory Statistics
Back to Top

Memory Resize Ops

StartEla (s)ComponentOper Typ/ModInit Size (M)DeltaTarget DeltaFinal (M)Sta
07/07 08:36:530bufcacheSHR/IMM4,640-96-3044,544COM


Back to Memory Statistics
Back to Top

Process Memory Summary

CategoryAlloc (MB)Used (MB)Avg Alloc (MB)Std Dev Alloc (MB)Max Alloc (MB)Hist Max Alloc (MB)Num ProcNum Alloc
BOther279.75 3.547.3860607979
Freeable26.690.001.211.626 2222
SQL1.931.130.080.23152414
PL/SQL0.590.430.010.03006459
EOther289.19 3.917.6460607474
Freeable36.440.001.521.938 2424
SQL1.470.730.050.12152817
PL/SQL0.570.400.010.03006562


Back to Memory Statistics
Back to Top

SGA Memory Summary

SGA regionsBegin Size (Bytes)End Size (Bytes) (if different)
Database Buffers5,083,496,448 
Fixed Size2,302,296 
Redo Buffers19,927,040 
Variable Size1,157,631,656 

Back to Memory Statistics
Back to Top

SGA breakdown difference

PoolNameBegin MBEnd MB% Diff
javafree memory16.0016.000.00
largePX msg pool15.0015.000.00
largefree memory28.4828.480.00
sharedKGLH012.4018.2947.52
sharedKGLS 10.22 
sharedSQLA17.5732.0182.23
shareddb_block_hash_buckets44.0044.000.00
sharedfree memory466.56418.84-10.23
sharedgc name table12.0012.000.00
sharedgcs resources133.73133.730.00
sharedgcs shadows82.3082.300.00
sharedges big msg buffers10.7610.760.00
sharedwrite state object14.6014.600.00
 buffer_cache4,848.004,544.00-6.27
 fixed_sga2.202.200.00
 log_buffer19.0019.000.00
 shared_io_pool 304.00 


Back to Memory Statistics
Back to Top

Replication Statistics (GoldenGate, XStream)

Back to Top

Replication System Resource Usage

No data exists for this section of the report.

Back to Replication Statistics (GoldenGate, XStream)
Back to Top

Replication SGA Usage

No data exists for this section of the report.

Back to Replication Statistics (GoldenGate, XStream)
Back to Top

GoldenGate Capture

No data exists for this section of the report.

Back to Replication Statistics (GoldenGate, XStream)
Back to Top

GoldenGate Capture Rate

No data exists for this section of the report.

Back to Replication Statistics (GoldenGate, XStream)
Back to Top

GoldenGate Apply Reader

No data exists for this section of the report.

Back to Replication Statistics (GoldenGate, XStream)
Back to Top

GoldenGate Apply Coordinator

No data exists for this section of the report.

Back to Replication Statistics (GoldenGate, XStream)
Back to Top

GoldenGate Apply Server

No data exists for this section of the report.

Back to Replication Statistics (GoldenGate, XStream)
Back to Top

GoldenGate Apply Coordinator Rate

No data exists for this section of the report.

Back to Replication Statistics (GoldenGate, XStream)
Back to Top

GoldenGate Apply Reader and Server Rate

No data exists for this section of the report.

Back to Replication Statistics (GoldenGate, XStream)
Back to Top

XStream Capture

No data exists for this section of the report.

Back to Replication Statistics (GoldenGate, XStream)
Back to Top

XStream Capture Rate

No data exists for this section of the report.

Back to Replication Statistics (GoldenGate, XStream)
Back to Top

XStream Apply Reader

No data exists for this section of the report.

Back to Replication Statistics (GoldenGate, XStream)
Back to Top

XStream Apply Coordinator

No data exists for this section of the report.

Back to Replication Statistics (GoldenGate, XStream)
Back to Top

XStream Apply Server

No data exists for this section of the report.

Back to Replication Statistics (GoldenGate, XStream)
Back to Top

XStream Apply Coordinator Rate

No data exists for this section of the report.

Back to Replication Statistics (GoldenGate, XStream)
Back to Top

XStream Apply Reader and Server Rate

No data exists for this section of the report.

Back to Replication Statistics (GoldenGate, XStream)
Back to Top

Table Statistics by DML Operations

No data exists for this section of the report.

Back to Replication Statistics (GoldenGate, XStream)
Back to Top

Table Statistics by Conflict Resolutions

No data exists for this section of the report.

Back to Replication Statistics (GoldenGate, XStream)
Back to Top

Replication Large Transaction Statistics

No data exists for this section of the report.

Back to Replication Statistics (GoldenGate, XStream)
Back to Top

Replication Long Running Transaction Statistics

No data exists for this section of the report.

Back to Replication Statistics (GoldenGate, XStream)
Back to Top

Streams Statistics

Back to Top

Streams CPU/IO Usage

No data exists for this section of the report.

Back to Streams Statistics
Back to Top

Streams Capture

No data exists for this section of the report.

Back to Streams Statistics
Back to Top

Streams Capture Rate

No data exists for this section of the report.

Back to Streams Statistics
Back to Top

Streams Apply

No data exists for this section of the report.

Back to Streams Statistics
Back to Top

Streams Apply Rate

No data exists for this section of the report.

Back to Streams Statistics
Back to Top

Buffered Queues

No data exists for this section of the report.

Back to Streams Statistics
Back to Top

Buffered Queue Subscribers

No data exists for this section of the report.

Back to Streams Statistics
Back to Top

Rule Set

No data exists for this section of the report.

Back to Streams Statistics
Back to Top

Persistent Queues

No data exists for this section of the report.

Back to Streams Statistics
Back to Top

Persistent Queues Rate

No data exists for this section of the report.

Back to Streams Statistics
Back to Top

Persistent Queue Subscribers

No data exists for this section of the report.

Back to Streams Statistics
Back to Top

Resource Limit Stats

No data exists for this section of the report.


Back to Top

Shared Server Statistics

Back to Top

Shared Servers Activity

Avg Total ConnectionsAvg Active ConnectionsAvg Total Shared SrvrsAvg Active Shared SrvrsAvg Total DispatchersAvg Active Dispatchers
001010


Back to Shared Server Statistics
Back to Top

Shared Servers Rates

Common Queue Per SecDisp Queue Per SecServer Msgs/SecServer KB/SecCommon Queue TotalDisp Queue TotalServer Total MsgsServer Total(KB)
0000.000000


Back to Shared Server Statistics
Back to Top

Shared Servers Utilization

Total Server Time (s)%Busy%IdleIncoming Net %Outgoing Net %
3020.00100.000.000.00


Back to Shared Server Statistics
Back to Top

Shared Servers Common Queue

No data exists for this section of the report.

Back to Shared Server Statistics
Back to Top

Shared Servers Dispatchers

NameAvg ConnsTotal Disp Time (s)%Busy%IdleTotal QueuedTotal Queue Wait (s)Avg Queue Wait (ms)
D0000.003020.00100.0000 


Back to Shared Server Statistics
Back to Top

init.ora Parameters

Back to Top

init.ora Parameters

Parameter NameBegin valueEnd value (if different)PDB Name
_use_single_log_writerTRUE    
audit_file_dest/s01/admin/MAC/adump    
audit_trailDB    
cluster_databaseTRUE    
commit_writeBatch, nowait    
compatible12.1.0.0.0    
control_files+DATADG/MAC/CONTROLFILE/current.262.819691855, +DATADG/MAC/CONTROLFILE/current.261.819691855    
db_block_size8192    
db_create_file_dest+DATADG    
db_domain      
db_nameMAC    
db_recovery_file_dest+DATADG    
db_recovery_file_dest_size5269094400    
diagnostic_dest/s01    
dispatchers(PROTOCOL=TCP) (SERVICE=MACXDB)    
enable_pluggable_databaseTRUE    
local_listener(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.1.172)(PORT=1521))    
lock_sgaTRUE    
open_cursors300    
pga_aggregate_target1572864000    
processes300    
remote_listenermaclean-cluster-scan:1521    
remote_login_passwordfileEXCLUSIVE    
sga_target6291456000    


Back to init.ora Parameters
Back to Top

init.ora Multi-Valued Parameters

Parameter NameBegin valueEnd value (if different)PDB Name
control_files+DATADG/MAC/CONTROLFILE/current.261.819691855    
+DATADG/MAC/CONTROLFILE/current.262.819691855    


Back to init.ora Parameters
Back to Top

ADDM Task ADDM:797696270_1_117

          ADDM Report for Task 'ADDM:797696270_1_117'
          -------------------------------------------

Analysis Period
---------------
AWR snapshot range from 116 to 117.
Time period starts at 07-JUL-13 08.36.48 AM
Time period ends at 07-JUL-13 08.41.50 AM

Analysis Target
---------------
Database 'MAC' with DB ID 797696270.
Database version 12.1.0.1.0.
ADDM performed an analysis of instance MAC_1, numbered 1 and hosted at
maclean1.oracle.com.

Activity During the Analysis Period
-----------------------------------
Total database time was 836 seconds.
The average number of active sessions was 2.77.

Summary of Findings
-------------------
   Description         Active Sessions      Recommendations
                       Percent of Activity
   ------------------  -------------------  ---------------
1  Top SQL Statements  2.42 | 87.36         2


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


          Findings and Recommendations
          ----------------------------

Finding 1: Top SQL Statements
Impact is 2.42 active sessions, 87.36% 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 1.21 active sessions, 43.68% of total activity.
   --------------------------------------------------------------------
   Action
      Run SQL Tuning Advisor on the INSERT statement with SQL_ID
      "cfrfu4058yard".
      Related Object
         SQL statement with SQL_ID cfrfu4058yard.
         INSERT INTO LGWR_PRESS VALUES(LGWR_SEQ.NEXTVAL)
   Rationale
      The SQL statement executed in the root container.
   Rationale
      The SQL spent 88% 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 "cfrfu4058yard" was executed 4550634 times and
      had an average elapsed time of 0.000095 seconds.
   Rationale
      Top level calls to execute the PL/SQL statement with SQL_ID
      "73kc99v9699nm" are responsible for 100% of the database time spent on
      the INSERT statement with SQL_ID "cfrfu4058yard".
      Related Object
         SQL statement with SQL_ID 73kc99v9699nm.
         begin
         loop
         insert into lgwr_press values(lgwr_seq.nextval) ;
         commit;
         end loop;
         end;

   Recommendation 2: SQL Tuning
   Estimated benefit is 1.05 active sessions, 37.93% of total activity.
   --------------------------------------------------------------------
   Action
      Investigate the PL/SQL statement with SQL_ID "73kc99v9699nm" for
      possible performance improvements. You can supplement the information
      given here with an ASH report for this SQL_ID.
      Related Object
         SQL statement with SQL_ID 73kc99v9699nm.
         begin
         loop
         insert into lgwr_press values(lgwr_seq.nextval) ;
         commit;
         end loop;
         end;
   Rationale
      The SQL statement executed in the root container.
   Rationale
      The SQL Tuning Advisor cannot operate on PL/SQL statements.
   Rationale
      Database time for this SQL was divided as follows: 94% for SQL
      execution, 0% for parsing, 6% for PL/SQL execution and 0% for Java
      execution.
   Rationale
      SQL statement with SQL_ID "73kc99v9699nm" was executed 3 times and had
      an average elapsed time of 274 seconds.



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

          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 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.
Session connect and disconnect calls were not consuming significant database
time.
Hard parsing of SQL statements was not consuming significant database time.

The database's maintenance windows were active during 100% of the analysis
period.


Back to Top

RAC Statistics

BeginEnd
Number of Instances: 1 1

Global Cache Load Profile

Per SecondPer Transaction
Global Cache blocks received: 0.01 0.00
Global Cache blocks served: 0.01 0.00
GCS/GES messages received: 0.00 0.00
GCS/GES messages sent: 0.00 0.00
DBWR Fusion writes: 0.00 0.00
Estd Interconnect traffic (KB) 0.11 

Global Cache Efficiency Percentages (Target local+remote 100%)

Buffer access - local cache %: 99.93
Buffer access - remote cache %: 0.00
Buffer access - disk %: 0.07

Global Cache and Enqueue Services - Workload Characteristics

Avg global enqueue get time (ms): 0.0
Avg global cache cr block receive time (ms): 0.0
Avg global cache current block receive time (ms): 0.0
Avg global cache cr block build time (ms): 0.0
Avg global cache cr block send time (ms): 0.0
Global cache log flushes for cr blocks served %: 0.0
Avg global cache cr block flush time (ms): 
Avg global cache current block pin time (ms): 0.0
Avg global cache current block send time (ms): 0.0
Global cache log flushes for current blocks served %: 0.0
Avg global cache current block flush time (ms): 

Global Cache and Enqueue Services - Messaging Statistics

Avg message sent queue time (ms): 
Avg message sent queue time on ksxp (ms): 
Avg message received queue time (ms): 
Avg GCS message process time (ms): 
Avg GES message process time (ms): 
% of direct sent messages: 
% of indirect sent messages: 
% of flow controlled messages: 


Cluster Interconnect

 Begin End
InterfaceIP AddressPubSourcePubSrc
eth1:1169.254.137.242N   

RAC Statistics


Back to Top


Back to Top

Global Messaging Statistics

StatisticTotalper Secondper Trans
KA messages received actual00.000.00
KA messages received logical00.000.00
acks for commit broadcast(actual)00.000.00
acks for commit broadcast(logical)00.000.00
broadcast msgs on commit(actual)00.000.00
broadcast msgs on commit(logical)00.000.00
broadcast msgs on commit(wasted)00.000.00
dynamically allocated gcs resources00.000.00
dynamically allocated gcs shadows00.000.00
flow control messages received00.000.00
flow control messages sent00.000.00
gcs apply delta00.000.00
gcs assume cvt00.000.00
gcs assume no cvt00.000.00
gcs ast xid00.000.00
gcs blocked converts00.000.00
gcs blocked cr converts00.000.00
gcs compatible basts00.000.00
gcs compatible cr basts (global)00.000.00
gcs compatible cr basts (local)00.000.00
gcs cr basts to PIs00.000.00
gcs cr serve without current lock00.000.00
gcs dbwr flush pi msgs00.000.00
gcs dbwr write request msgs00.000.00
gcs delta msgs sent00.000.00
gcs delta push aborted by cancel00.000.00
gcs delta push aborted by remastering00.000.00
gcs delta push cancelled00.000.00
gcs delta push cancelled at master00.000.00
gcs delta push cancelled by close00.000.00
gcs delta push cancelled by consign00.000.00
gcs delta push cancelled by cvt ping00.000.00
gcs delta push cancelled by dwncvt00.000.00
gcs delta push create pi00.000.00
gcs delta update master msgs sent00.000.00
gcs delta wait aborted by remastering00.000.00
gcs delta wait cancelled00.000.00
gcs error msgs00.000.00
gcs force cr block only00.000.00
gcs force cr grant00.000.00
gcs force cr no current00.000.00
gcs forward cr to pinged instance00.000.00
gcs immediate (compatible) converts2020.670.00
gcs immediate (null) converts7,77525.750.00
gcs immediate cr (compatible) converts00.000.00
gcs immediate cr (null) converts3,87812.850.00
gcs indirect ast00.000.00
gcs indirect bidless ast00.000.00
gcs indirect fg ast00.000.00
gcs lms flush pi msgs00.000.00
gcs lms write request msgs00.000.00
gcs msgs process time(ms)00.000.00
gcs msgs received00.000.00
gcs new served by master7,05923.380.00
gcs out-of-order msgs00.000.00
gcs pings refused00.000.00
gcs pkey conflicts retry00.000.00
gcs push delta00.000.00
gcs queued converts00.000.00
gcs reader bypass N->Xw ping local00.000.00
gcs reader bypass N->Xw ping remote00.000.00
gcs reader bypass grant X on assume00.000.00
gcs reader bypass grant ast00.000.00
gcs reader bypass grant fg ast00.000.00
gcs reader bypass grant immediate00.000.00
gcs recovery claim msgs00.000.00
gcs refuse xid00.000.00
gcs regular cr00.000.00
gcs retry convert request00.000.00
gcs share recovery bast00.000.00
gcs side channel msgs actual00.000.00
gcs side channel msgs logical00.000.00
gcs stale cr5,05216.730.00
gcs undo cr00.000.00
gcs write notification msgs00.000.00
gcs writes refused00.000.00
ges msgs process time(ms)00.000.00
ges msgs received00.000.00
global posts dropped00.000.00
global posts queue time00.000.00
global posts queued00.000.00
global posts requested00.000.00
global posts sent00.000.00
implicit batch messages received00.000.00
implicit batch messages sent00.000.00
lmd msg send time(ms)00.000.00
lms(s) msg send time(ms)00.000.00
messages flow controlled00.000.00
messages queue sent actual00.000.00
messages queue sent logical00.000.00
messages received actual00.000.00
messages received logical00.000.00
messages sent directly00.000.00
messages sent indirectly00.000.00
messages sent not implicit batched00.000.00
messages sent pbatched00.000.00
msgs causing lmd to send msgs00.000.00
msgs causing lms(s) to send msgs00.000.00
msgs received queue time (ms)00.000.00
msgs received queued00.000.00
msgs sent queue time (ms)00.000.00
msgs sent queue time on ksxp (ms)00.000.00
msgs sent queued00.000.00
msgs sent queued on ksxp00.000.00
number of broadcasted resources00.000.00
number of directly freed master res3,896,60112,907.140.86
number of ges deadlock detected00.000.00
number of lock borrowed by LMD00.000.00
number of received ODPS messages00.000.00
number of resource borrowed by LMD00.000.00
number of sent ODPS messages00.000.00
process batch messages received00.000.00
process batch messages sent00.000.00



Back to Top

Global CR Served Stats

StatisticTotal
CR Block Requests0
CURRENT Block Requests0
Data Block Requests0
Undo Block Requests0
TX Block Requests0
Current Results0
Private results0
Zero Results0
Disk Read Results0
Fail Results0
Fairness Down Converts0
Fairness Clears0
Free GC Elements0
Flushes0
Flushes Queued0
Flush Queue Full0
Flush Max Time (us)0
Light Works0
Errors0



Back to Top

Global CURRENT Served Stats

StatisticTotal% <1ms% <10ms% <100ms% <1s% <10s
Pins0     
Flushes0     
Writes0     



Back to Top

Global Cache Transfer Stats

Back to Top

Global Cache Transfer Stats

No data exists for this section of the report.

Back to Global Cache Transfer Stats
Back to Top

Global Cache Transfer Times (ms)

No data exists for this section of the report.

Back to Global Cache Transfer Stats
Back to Top

Global Cache Transfer (Immediate)

No data exists for this section of the report.

Back to Global Cache Transfer Stats
Back to Top

Global Cache Times (Immediate)

No data exists for this section of the report.

Back to Global Cache Transfer Stats
Back to Top

Interconnect Stats

Back to Top

Interconnect Ping Latency Stats

Target Instance500B Ping CountAvg Latency 500B msgStddev 500B msg8K Ping CountAvg Latency 8K msgStddev 8K msg
1240.210.06240.210.05
200.000.0000.000.00


Back to Interconnect Stats
Back to Top

Interconnect Throughput by Client

Used BySend Mbytes/secReceive Mbytes/sec
Global Cache0.000.00
Parallel Query0.000.00
DB Locks0.000.00
DB Streams0.000.00
Other0.000.00


Back to Interconnect Stats
Back to Top

Interconnect Device Statistics

Device NameIP AddressPublicSourceSend Mbytes/secSend ErrorsSend DroppedSend Buffer OverrunSend Carrier LostReceive Mbytes/secReceive ErrorsReceive DroppedReceive Buffer OverrunReceive Frame Errors
eth1:1169.254.137.242NO  0.000000 0.000000


Back to Interconnect Stats
Back to Top

Dynamic Remastering Stats

No data exists for this section of the report.


Back to Top

End of Report