WORKLOAD REPOSITORY report for

DB NameDB IdUnique NameRoleEditionReleaseRACCDB
ORCL1550963227orclPRIMARYEE19.0.0.0.0YESNO

InstanceInst NumStartup Time
orcl1101-Stu-19 19:52

Host NamePlatformCPUsCoresSocketsMemory (GB)
rac1.example.comLinux x86 64-bit 8 4 1 30.48

Snap IdSnap TimeSessionsCursors/SessionInstances
Begin Snap:3602-Stu-19 13:22:50106 2.12
End Snap:3702-Stu-19 13:41:04115 2.12
Elapsed:  18.22 (mins)   
DB Time:  1,677.63 (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 Statements92.0195.51ADDM:1550963227_1_3702-Stu-19 13:2202-Stu-19 13:41
Undersized SGA92.0185.26ADDM:1550963227_1_3702-Stu-19 13:2202-Stu-19 13:41
Top Segments by "User I/O" and "Cluster"92.0121.01ADDM:1550963227_1_3702-Stu-19 13:2202-Stu-19 13:41
I/O Throughput92.011.52ADDM:1550963227_1_3702-Stu-19 13:2202-Stu-19 13:41

Load Profile

Per SecondPer TransactionPer ExecPer Call
DB Time(s): 92.1 7.8 0.25 1.64
DB CPU(s): 0.7 0.1 0.00 0.01
Background CPU(s): 0.1 0.0 0.00 0.00
Redo size (bytes): 60,767.6 5,137.5  
Logical read (blocks): 76,894.5 6,500.9  
Block changes: 753.1 63.7  
Physical read (blocks): 8,115.2 686.1  
Physical write (blocks): 84.1 7.1  
Read IO requests: 8,107.0 685.4  
Write IO requests: 75.7 6.4  
Read IO (MB): 63.4 5.4  
Write IO (MB): 0.7 0.1  
IM scan rows: 0.0 0.0  
Session Logical Read IM: 0.0 0.0  
Global Cache blocks received: 144.1 12.2  
Global Cache blocks served: 95.2 8.0  
User calls: 56.0 4.7  
Parses (SQL): 13.0 1.1  
Hard parses (SQL): 0.2 0.0  
SQL Work Area (MB): 15.7 1.3  
Logons: 0.9 0.1  
User logons: 0.2 0.0  
Executes (SQL): 368.3 31.1  
Rollbacks: 0.0 0.0  
Transactions: 11.8   

Instance Efficiency Percentages (Target 100%)

Buffer Nowait %: 99.98Redo NoWait %: 100.00
Buffer Hit %: 89.45In-memory Sort %: 100.00
Library Hit %: 99.92Soft Parse %: 98.25
Execute to Parse %: 96.48Latch Hit %: 99.99
Parse CPU to Parse Elapsd %: 67.17% Non-Parse CPU: 99.62
Flash Cache Hit %: 0.00

Top 10 Foreground Events by Total Wait Time

EventWaitsTotal Wait Time (sec)Avg Wait% DB timeWait Class
db file parallel read158,52088,7K559.54ms88.1User I/O
db file sequential read364,9155851,116.03ms5.8User I/O
read by other session13,9264201,8301.72ms4.2User I/O
DB CPU 737,7 .7 
log file sync13,463722,953.69ms.7Commit
control file sequential read14,889315,421.18ms.3System I/O
gc cr multi block mixed19,68893,94.77ms.1Cluster
Disk file Mirror Read3,08878,625.46ms.1User I/O
gc cr grant 2-way123,49736,7296.87us.0Cluster
resmgr:cpu quantum89830,433.87ms.0Scheduler

Wait Classes by Total Wait Time

Wait ClassWaitsTotal Wait Time (sec)Avg Wait Time% DB timeAvg Active Sessions
User I/O554,59398,898178.33ms98.390.5
System I/O35,0241,49042.55ms1.51.4
DB CPU 738 .70.7
Commit13,46472353.69ms.70.7
Application1743381940.53ms.30.3
Cluster341,948301879.56us.30.3
Scheduler8993033.86ms.00.0
Other200,99930147.89us.00.0
Concurrency8,948111.18ms.00.0
Configuration179528.77ms.00.0
Network57,19502.55us.00.0

Host CPU

CPUsCoresSocketsLoad Average BeginLoad Average End%User%System%WIO%Idle
8 4 1 0.29 38.54 6.9 4.3 82.3 88.5

Instance CPU

%Total CPU%Busy CPU%DB time waiting for CPU (Resource Manager)
9.4 81.4 0.0

IO Profile

Read+Write Per SecondRead per SecondWrite Per Second
Total Requests: 8,210.5 8,124.5 86.0
Database Requests: 8,182.7 8,107.0 75.7
Optimized Requests: 0.0 0.0 0.0
Redo Requests: 9.9 0.0 9.8
Total (MB): 64.4 63.7 0.7
Database (MB): 64.1 63.4 0.7
Optimized Total (MB): 0.0 0.0 0.0
Redo (MB): 0.1 0.0 0.1
Database (blocks): 8,199.3 8,115.2 84.1
Via Buffer Cache (blocks): 8,197.1 8,114.9 82.1
Direct (blocks): 2.2 0.3 2.0

Memory Statistics

BeginEnd
Host Mem (MB): 31,211.5 31,211.5
SGA use (MB): 18,048.0 18,048.0
PGA use (MB): 3,193.7 3,289.7
% Host Mem used for SGA+PGA: 68.06 68.36

Cache Sizes

BeginEnd
Buffer Cache: 15,552M 15,552MStd Block Size: 8K
Shared Pool Size: 1,750M 1,747MLog Buffer: 53,380K
In-Memory Area: 0M 0M

Shared Pool Statistics

BeginEnd
Memory Usage %: 83.45 85.65
% SQL with executions>1: 71.98 76.51
% Memory for SQL w/exec>1: 64.93 70.79

Main Report

RAC Statistics


Back to Top

Wait Events Statistics

Back to Top

Time Model Statistics

Statistic NameTime (s)% of DB Time% of Total CPU Time
sql execute elapsed time99,896.1999.24 
DB CPU737.700.7391.75
PL/SQL execution elapsed time20.590.02 
connection management call elapsed time5.050.01 
parse time elapsed4.780.00 
hard parse elapsed time4.350.00 
hard parse (sharing criteria) elapsed time0.510.00 
PL/SQL compilation elapsed time0.230.00 
repeated bind elapsed time0.190.00 
hard parse (bind mismatch) elapsed time0.060.00 
sequence load elapsed time0.010.00 
failed parse elapsed time0.000.00 
DB time100,657.88  
background elapsed time1,615.37  
background cpu time66.37 8.25
total CPU time804.08  


Back to Wait Events Statistics
Back to Top

Operating System Statistics

StatisticValueEnd Value
FREE_MEMORY_BYTES5,094,825,9844,934,569,984
INACTIVE_MEMORY_BYTES800,903,168777,809,920
BUSY_TIME98,760 
IDLE_TIME757,299 
IOWAIT_TIME704,643 
NICE_TIME0 
SYS_TIME36,652 
USER_TIME59,445 
LOAD039
RSRC_MGR_CPU_WAIT_TIME3,039 
PHYSICAL_MEMORY_BYTES32,727,650,304 
NUM_CPUS8 
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_MAX6,291,456 
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
02-Stu 13:22:500.29     
02-Stu 13:41:0438.5411.546.944.2888.4682.31


Back to Wait Events Statistics
Back to Top

Foreground Wait Class

Wait ClassWaits%Time -outsTotal Wait Time (s)Avg wait%DB time
User I/O549,396098,860179.94ms98.21
DB CPU  738 0.73
Commit13,463072353.69ms0.72
System I/O14,889031521.18ms0.31
Cluster341,2130300879.84us0.30
Scheduler89803033.87ms0.03
Configuration11459793.36ms0.01
Other111,45854759.23us0.01
Concurrency516647.37ms0.00
Application110146.71ms0.00
Network54,848001.94us0.00


Back to Wait Events Statistics
Back to Top

Foreground Wait Events

EventWaits%Time -outsTotal Wait Time (s)Avg waitWaits /txn% DB time
db file parallel read158,520 88,699559.54ms12.2688.12
db file sequential read364,915 5,85116.03ms28.225.81
read by other session13,926 4,202301.72ms1.084.17
log file sync13,463 72353.69ms1.040.72
control file sequential read14,889 31521.18ms1.150.31
gc cr multi block mixed19,688 944.77ms1.520.09
Disk file Mirror Read3,088 7925.46ms0.240.08
gc cr grant 2-way123,497 37296.87us9.550.04
resmgr:cpu quantum898 3033.87ms0.070.03
gc current grant busy10,111 232.32ms0.780.02
gc cr multi block grant39,428 22561.23us3.050.02
direct path write temp1,081 2119.86ms0.080.02
gc current block busy10,974 191.73ms0.850.02
gc buffer busy acquire282 1965.92ms0.020.02
gc current block 2-way62,080 18290.39us4.800.02
gc current grant read-mostly invalidation4,902 142.92ms0.380.01
gc current grant 2-way37,289 13349.23us2.880.01
gc cr block lost11 10875.49ms0.000.01
gc cr grant busy4,307 92.10ms0.330.01
write complete waits2 94361.64ms0.000.01
gc index operation38 8208.71ms0.000.01
gc cr block 2-way28,154 8269.64us2.180.01
gc cr block busy139 642.31ms0.010.01
db file scattered read251 518.32ms0.020.00
direct path read temp155 317.14ms0.010.00
library cache: mutex X182 211.17ms0.010.00
enq: PS - contention744522.34ms0.060.00
Disk file operations I/O3,889 1336.84us0.300.00
PX Deq: Join ACK1,341 1814.47us0.100.00
PGA memory operation42,781 119.10us3.310.00
cursor: pin S wait on X46 116.58ms0.000.00
gc current block lost1 1545.18ms0.000.00
library cache lock108114.81ms0.010.00
SQL*Net break/reset to client10 046.90ms0.000.00
reliable message678 0558.30us0.050.00
PX Deq: Slave Session Stats2,064 0176.95us0.160.00
KJC: Wait for msg sends to complete247 01.25ms0.020.00
PX Deq: reap credit32,83210007.83us2.540.00
Parameter File I/O8 029.06ms0.000.00
DLM cross inst call completion150 01.51ms0.010.00
latch: ges resource hash list158 01.42ms0.010.00
latch: shared pool13 013.74ms0.000.00
IPC send completion sync766 0227.18us0.060.00
gc current multi block request110 01.56ms0.010.00
Sync ASM rebalance40 04.23ms0.000.00
gc buffer busy release13 011.61ms0.000.00
enq: FB - contention218 0663.81us0.020.00
gc current split3 044.60ms0.000.00
ASM file metadata operation12 09.93ms0.000.00
CSS initialization22 04.86ms0.000.00
SQL*Net message to client54,321 01.82us4.200.00
latch: MGA shared context latch8 011.94ms0.000.00
latch free38 02.47ms0.000.00
oracle thread bootstrap5 015.51ms0.000.00
PX qref latch27,32810002.72us2.110.00
row cache mutex8 08.48ms0.000.00
gc cr disk read178 0355.92us0.010.00
buffer busy waits30 01.77ms0.000.00
kksfbc child completion1100049.88ms0.000.00
enq: TX - row lock contention1 044.83ms0.000.00
PX Deq: Signal ACK EXT1,341 029.28us0.100.00
enq: TS - contention1171000295.45us0.010.00
library cache: bucket mutex X4 08.17ms0.000.00
KSV master wait8 03.71ms0.000.00
CSS operation: action22 01.29ms0.000.00
gc current block congested1 027.19ms0.000.00
latch: cache buffers chains57 0417.84us0.000.00
gc cr grant congested6 03.15ms0.000.00
latch: gc element11 01.57ms0.000.00
library cache load lock19 0840.16us0.000.00
gc cr block congested1 012.41ms0.000.00
row cache lock281000430.43us0.000.00
ASM IO for non-blocking poll3,562 02.38us0.280.00
latch: cache buffers lru chain36 0208.56us0.000.00
direct path write1 06.09ms0.000.00
enq: WF - contention16 0304.13us0.000.00
CSS operation: data query36 0123.64us0.000.00
cursor: pin S3 01.42ms0.000.00
enq: HW - contention9560414.33us0.000.00
IPC group service call423 08.72us0.030.00
SQL*Net more data to client104 033.57us0.010.00
library cache pin7 0402.71us0.000.00
CSS group membership query18 0121.06us0.000.00
buffer deadlock31000626.33us0.000.00
enq: WT - contention5 0329.20us0.000.00
enq: TO - contention2 0559.00us0.000.00
enq: TX - index contention3 0368.67us0.000.00
SQL*Net message from client54,441 6,387117.33ms4.21 
watchdog main loop1,460 4,3803000.02ms0.11 
PX Deq: Execution Msg2,169 376173.26ms0.17 
PX Deq Credit: send blkd6,310 8212.96ms0.49 
PX Deq: Execute Reply12,622 7565.39us0.98 
PX Deq Credit: need buffer116 325.01ms0.01 
PX Deq: Parse Reply1,341 21.65ms0.10 
PX Deq: Msg Fragment410 0257.43us0.03 


Back to Wait Events Statistics
Back to Top

Background Wait Events

EventWaits%Time -outsTotal Wait Time (s)Avg waitWaits /txn% bg time
db file async I/O submit2,9640830280.01ms0.2351.38
enq: RO - fast object reuse16003362100.64ms0.0120.81
log file parallel write10,368024924.05ms0.8015.44
control file sequential read4,14506114.64ms0.323.76
db file parallel write2,1830209.00ms0.171.22
Disk file Mirror Read1,43801712.15ms0.111.08
gcs log flush sync20,361017818.11us1.571.03
db file sequential read96601616.67ms0.071.00
control file parallel write46501532.70ms0.040.94
row cache lock82100449.78ms0.010.25
IMR slave acknowledgement msg3,279041.09ms0.250.22
latch: MGA shared context latch790331.98ms0.010.16
direct path write temp1360215.99ms0.010.13
db file scattered read870116.35ms0.010.09
enq: TM - contention201517.37ms0.000.06
reliable message85018.65ms0.010.05
oracle thread bootstrap40077.05ms0.000.02
gc current block busy74003.68ms0.010.02
write complete waits200130.33ms0.000.02
Sync ASM rebalance45005.62ms0.000.02
oradebug request completion40060.02ms0.000.01
direct path write150014.99ms0.000.01
latch free1,48000127.96us0.110.01
ASM file metadata operation1,29300133.32us0.100.01
enq: CF - contention929801.81ms0.010.01
DLM cross inst call completion59200279.68us0.050.01
PX Deq: reap credit31,91410004.14us2.470.01
latch: shared pool40019.68ms0.000.00
read by other session50014.00ms0.000.00
gc current block 2-way31100224.41us0.020.00
gc cr block busy30022.69ms0.000.00
AQ: RAC AQ Network10,92010006.07us0.840.00
DFS lock handle2401000258.01us0.020.00
CGS wait for IPC msg12,54310004.87us0.970.00
latch: MGA shared context root latch10005.43ms0.000.00
os thread creation9006.01ms0.000.00
log file sequential read10004.89ms0.000.00
PX Deq: Join ACK5100897.98us0.000.00
ASM IO for non-blocking poll2,0800021.14us0.160.00
PGA memory operation9410044.58us0.070.00
gc cr disk read15500256.31us0.010.00
IPC group service call1,8020021.86us0.140.00
LGWR wait for redo copy5400640.07us0.000.00
latch: cache buffers lru chain28001.16ms0.000.00
gc cr multi block grant4007.40ms0.000.00
gc buffer busy acquire8002.78ms0.000.00
log file sync10020.56ms0.000.00
gc cr grant 2-way7200273.32us0.010.00
resmgr:cpu quantum10019.54ms0.000.00
ges inquiry response4300348.44us0.000.00
CSS operation: data query3400432.79us0.000.00
PX Deq: Signal ACK EXT5100283.33us0.000.00
enq: PS - contention30130435.43us0.000.00
KSV master wait81598015.94us0.060.00
CSS operation: data update3800309.00us0.000.00
IPC send completion sync1,12198010.23us0.090.00
Disk file operations I/O4690023.57us0.040.00
ksxr poll remote instances3,13510003.44us0.240.00
gc cr block 2-way3800277.66us0.000.00
gc current grant 2-way3600253.19us0.000.00
enq: CO - master slave det181000392.22us0.000.00
library cache lock1900360.16us0.000.00
gc current grant busy2200238.14us0.000.00
library cache pin1900274.00us0.000.00
KJC: Wait for msg sends to complete2900166.66us0.000.00
PX Deq: Slave Session Stats510084.53us0.000.00
gc cr multi block mixed1100369.55us0.000.00
enq: DW - contention61000362.33us0.000.00
enq: FB - contention600343.67us0.000.00
libcache interrupt action by LCK8,21300229.51ns0.640.00
name-service call wait400399.75us0.000.00
enq: CR - block range reuse ckpt600261.67us0.000.00
enq: HW - contention400367.50us0.000.00
enq: SM - contention400306.00us0.000.00
enq: TT - contention3670369.67us0.000.00
enq: TA - contention300358.67us0.000.00
enq: WF - contention300340.33us0.000.00
rdbms ipc message50,8233925,770507.05ms3.93 
PX Idle Wait727020,27027.88 s0.06 
Space Manager: slave idle wait4,628017,2453726.32ms0.36 
class slave wait12,317887,295592.31ms0.95 
EMON slave idle wait1,0951005,4704995.42ms0.08 
Streams AQ: qmn slave idle wait35503,2859254.21ms0.03 
wait for unread message on broadcast channel1,6761003,2811957.60ms0.13 
pmon timer7291002,1872999.97ms0.06 
ges remote message42,83802,18651.03ms3.31 
GCR sleep7,28502,186300.00ms0.56 
gcs yield cpu72,8361002,18429.98ms5.63 
DIAG idle wait13,880812,184157.33ms1.07 
gcs remote message609,75902,1563.54ms47.15 
PING932231,1011180.80ms0.07 
Streams AQ: emn coordinator idle wait1101001,10010.00 s0.01 
ASM cluster membership changes626921,0961750.25ms0.05 
Streams AQ: qmn coordinator idle wait34601,0953165.05ms0.03 
pman timer3651001,0952999.83ms0.03 
REPL Capture/Apply: RAC AQ qmn coordinator181001,09360.74 s0.00 
heartbeat redo informer1,09301,0931000.07ms0.08 
lreg timer3641001,0933002.58ms0.03 
OFS idle3641001,0923000.02ms0.03 
ASM background timer1,18501,092921.27ms0.09 
SCM slave idle10,96001,09199.55ms0.85 
dispatcher timer181001,08060.01 s0.00 
AQPC idle361001,08030.00 s0.00 
Data Guard: Gap Manager1801,08060.00 s0.00 
smon timer3100900300.00 s0.00 
Data Guard: Timer10600600.00 s0.00 
SQL*Net message from client7590911.34ms0.06 
PX Deq: Execute Reply510472.23ms0.00 
PX Deq: Parse Reply51004.70ms0.00 
PX Deq Credit: send blkd26200709.37us0.02 
heartbeat monitor sleep10018.19ms0.00 
RMA: IPC0 completion sync2,162003.11us0.17 


Back to Wait Events Statistics
Back to Top

Wait Event Histogram

  % of Total Waits
EventTotal Waits<8us<16us<32us<64us<128us<256us<512us>=512us
AQ: RAC AQ Network10,9K94.54.4.9.1.1   
ASM IO for non-blocking poll567586.95.8.6.34.91.5 .0
ASM background starting1100.0       
ASM file metadata operation130510.667.710.23.16.4.5.11.4
AWR Flush14100.0       
CGS wait for IPC msg12,6K97.21.11.3.4.0   
CSS group membership query18    72.227.8  
CSS initialization229.1      90.9
CSS operation: action22      13.686.4
CSS operation: data query70    31.441.44.322.9
CSS operation: data update38     2.697.4 
CSS operation: query4895.8     4.2 
DFS lock handle240     50.050.0 
DLM cross inst call completion7416.52.3.3.5.314.259.116.9
Data Guard Broker Wait1100.0       
Disk file Mirror Read4526       100.0
Disk file operations I/O438611.610.031.338.51.2.83.33.5
GCR CSS group query34100.0       
GCR CSS group update34100.0       
IMR slave acknowledgement msg32792.74.527.330.41.6.15.627.9
IPC group service call222515.546.914.121.81.7.1.0 
IPC send completion sync188856.11.6.4.1 37.14.5.3
KJC: Wait for msg sends to complete278 9.465.87.21.414.41.4.4
KSV master wait82388.1.42.95.61.5.1.11.3
LGWR wait for redo copy541.913.035.231.53.73.71.99.3
PGA memory operation43,7K31.358.07.21.8.4.2.2.8
PX Deq: Join ACK1398 .1   .244.155.7
PX Deq: Signal ACK EXT139624.441.94.912.811.92.81.1.2
PX Deq: Slave Session Stats212132.9.0.2.82.232.530.11.2
PX Deq: reap credit64,9K88.12.95.63.2.2.0.0.0
PX qref latch27,3K99.7.1.1.0   .0
Parameter File I/O8       100.0
SQL*Net break/reset to client1050.0   20.0  30.0
SQL*Net message to client55K99.3.4.2.1.0.0.0.0
SQL*Net more data to client1041.013.524.058.71.01.9  
Sync ASM rebalance8530.67.12.44.710.68.211.824.7
asynch descriptor resize22997.42.2.4     
buffer busy waits3511.4 11.414.320.014.3 28.6
buffer deadlock333.333.3     33.3
control file parallel write465       100.0
control file sequential read19K19.53.9.3.1.0.027.049.2
cursor: pin S3       100.0
cursor: pin S wait on X46       100.0
db file async I/O submit296649.7.1.713.64.8.8.230.1
db file parallel read158,5K      .999.1
db file parallel write2176.42.68.86.84.65.212.259.4
db file scattered read344      13.486.6
db file sequential read366,1K     .016.783.3
direct path read temp155      14.285.8
direct path write18      5.694.4
direct path write temp1229       100.0
enq: AF - task serialization1      100.0 
enq: CF - contention92      97.82.2
enq: CO - master slave det18      100.0 
enq: CR - block range reuse ckpt4     50.050.0 
enq: DR - contention1      100.0 
enq: DW - contention6      100.0 
enq: FB - contention219     .963.535.6
enq: HW - contention13      84.615.4
enq: PE - contention1      100.0 
enq: PF - contention1       100.0
enq: PG - contention1      100.0 
enq: PS - contention776      95.94.1
enq: PW - flush prewarm buffers1      100.0 
enq: RO - fast object reuse166     1.268.130.7
enq: SM - contention4      100.0 
enq: TA - contention3      100.0 
enq: TD - KTF dump entries1      100.0 
enq: TK - Auto Task Serialization1      100.0 
enq: TM - contention2       100.0
enq: TO - contention2      50.050.0
enq: TS - contention117     30.867.51.7
enq: TT - contention4      100.0 
enq: TX - index contention3      100.0 
enq: TX - row lock contention1       100.0
enq: WF - contention19     10.589.5 
enq: WT - contention5     20.080.0 
gc buffer busy acquire2901.4  .3.3.74.592.8
gc buffer busy release12   8.3   91.7
gc cr block 2-way28,2K  .0.0.061.936.71.3
gc cr block busy135       100.0
gc cr block congested1       100.0
gc cr block lost11       100.0
gc cr disk read333     31.267.01.8
gc cr grant 2-way123,6K  .0.0.054.844.01.2
gc cr grant busy4308     10.471.618.0
gc cr grant congested6       100.0
gc cr multi block grant39,4K   .0.055.541.23.3
gc cr multi block mixed19,7K   .0 2.773.423.9
gc current block 2-way62,4K  .0.0.043.854.71.5
gc current block busy11K   .0.035.358.95.8
gc current block congested1       100.0
gc current block lost1       100.0
gc current grant 2-way37,4K  .0.0.064.332.72.9
gc current grant busy10,1K.0.0.71.92.735.544.614.5
gc current grant read-mostly invalidation4902  .0  1.556.542.0
gc current multi block request107      81.318.7
gc current split3     33.3 66.7
gc index operation38      2.697.4
gcs log flush sync20,3K4.33.26.78.510.322.713.630.7
ges inquiry response42      100.0 
ges resource directory to be unfrozen22399.6.4      
kksfbc child completion1       100.0
ksxr poll remote instances314396.12.9.7.3.1   
latch free1523.1 .32.474.219.52.01.4
latch: MGA shared context latch872.3  4.6   93.1
latch: MGA shared context root latch10  10.0  10.0 80.0
latch: cache buffers chains581.75.212.137.925.910.35.21.7
latch: cache buffers lru chain643.11.614.140.620.36.33.110.9
latch: call allocation1   100.0    
latch: enqueue hash chains4 25.0 25.025.025.0  
latch: gc element128.3    8.38.375.0
latch: gcs resource hash7  71.428.6    
latch: ges resource hash list1586.32.515.812.013.35.79.534.8
latch: kjci process context latch2   100.0    
latch: messages5    100.0   
latch: object queue header operation2    50.0 50.0 
latch: redo allocation1   100.0    
latch: shared pool17  5.9 11.8  82.4
libcache interrupt action by LCK822399.9.1.0     
library cache load lock19    36.831.6 31.6
library cache lock127  .8  5.515.078.7
library cache pin26     53.842.33.8
library cache: bucket mutex X425.0      75.0
library cache: mutex X1817.27.714.92.84.41.74.456.9
log file parallel write10,4K       100.0
log file sequential read1010.0 30.0   30.030.0
log file sync13,5K  .0.0.1.3.499.1
name-service call wait6     16.783.3 
oracle thread bootstrap9       100.0
oradebug request completion4       100.0
os thread creation9       100.0
read by other session13,9K.0 .0.0.0.1.499.5
reliable message768      72.127.9
resmgr:cpu quantum899       100.0
row cache lock110      54.545.5
row cache mutex8     12.5 87.5
transaction1     100.0  
undo_retention publish retry4100.0       
write complete waits4       100.0
AQPC idle36       100.0
ASM background timer1185  2.04.4.8.83.188.9
ASM cluster membership changes625       100.0
DIAG idle wait13,9K  .3.6.23.62.393.1
Data Guard: Gap Manager18       100.0
Data Guard: Timer1       100.0
EMON slave idle wait1094       100.0
GCR sleep7286       100.0
OFS idle365       100.0
PING9321.32.024.211.42.722.3.835.3
PX Deq Credit: need buffer1163.4.9 1.7 .928.464.7
PX Deq Credit: send blkd65923.71.3.2.41.26.919.866.6
PX Deq: Execute Reply12,7K70.813.12.71.22.11.52.16.6
PX Deq: Execution Msg2176.0   .67.830.860.8
PX Deq: Msg Fragment42813.61.25.12.63.55.867.8.5
PX Deq: Parse Reply13961.1.1.1.32.420.651.024.6
PX Idle Wait726       100.0
REPL Capture/Apply: RAC AQ qmn coordinator18       100.0
RMA: IPC0 completion sync216297.1.91.4.5.1   
SCM slave idle11K     .0.099.9
SQL*Net message from client55,2K.1.1.03.257.921.02.814.9
Space Manager: slave idle wait46361.1.11.8.6.2.1.096.0
Streams AQ: emn coordinator idle wait110       100.0
Streams AQ: qmn coordinator idle wait3462.9.32.97.240.51.2 45.1
Streams AQ: qmn slave idle wait3565.6      94.4
class slave wait12,3K.7.51.31.4.2.0.195.9
dispatcher timer18       100.0
gcs remote message610,1K2.41.52.74.75.121.38.753.6
gcs yield cpu72,8K.0.0 .0 .0 100.0
ges remote message42,7K.6.92.63.13.610.17.072.1
heartbeat monitor sleep1       100.0
heartbeat redo informer1094       100.0
lreg timer364       100.0
pman timer364       100.0
pmon timer730       100.0
rdbms ipc message50,9K4.91.911.52.75.39.22.861.7
smon timer3       100.0
wait for unread message on broadcast channel1676       100.0
watchdog main loop1456       100.0


Back to Wait Events Statistics
Back to Top

Wait Event Histogram (up to 64 us)

  % of Total Waits
EventWaits 1us - 64us <1us <2us <4us<8us<16us<32us<64us>=64us
AQ: RAC AQ Network10,9K  4.689.94.4.9.1.1
ASM IO for non-blocking poll531128.235.717.85.25.8.6.36.4
ASM background starting1100.0       
ASM file metadata operation11964.44.41.2.667.710.23.18.4
AWR Flush14 64.335.7     
CGS wait for IPC msg12,5K.610.810.875.01.11.3.4.0
CSS initialization2   9.1   90.9
CSS operation: query4635.441.78.310.4   4.2
DLM cross inst call completion71   6.52.3.3.590.4
Data Guard Broker Wait1  100.0     
Disk file operations I/O4006 .21.59.910.031.338.58.7
GCR CSS group query34  64.735.3    
GCR CSS group update34 8.888.22.9    
IMR slave acknowledgement msg2129.2.71.5.34.527.330.435.1
IPC group service call2185  7.67.946.914.121.81.8
IPC send completion sync1098  27.029.11.6.4.141.8
KJC: Wait for msg sends to complete229    9.465.87.217.6
KSV master wait798 34.453.5.2.42.95.63.0
LGWR wait for redo copy441.9   13.035.231.518.5
PGA memory operation43K .48.022.958.07.21.81.7
PX Deq: Join ACK1    .1  99.9
PX Deq: Signal ACK EXT1173  3.021.441.94.912.816.0
PX Deq: Slave Session Stats720.57.522.12.8.0.2.866.1
PX Deq: reap credit64,8K.510.842.734.22.95.63.2.2
PX qref latch27,3K.032.467.3.0.1.1.0.0
SQL*Net break/reset to client5 10.020.020.0   50.0
SQL*Net message to client55K7.538.552.9.4.4.2.1.0
SQL*Net more data to client101   1.013.524.058.72.9
Sync ASM rebalance38  2.428.27.12.44.755.3
asynch descriptor resize229 31.017.948.52.2.4  
buffer busy waits132.92.95.7  11.414.362.9
buffer deadlock2   33.333.3  33.3
control file sequential read4522 .21.617.63.9.3.176.2
db file async I/O submit190225.324.3.0.1.1.713.635.9
db file parallel write404   .42.68.86.881.4
gc buffer busy acquire5  1.0.3  .398.3
gc buffer busy release1      8.391.7
gc cr block 2-way9     .0.0100.0
gc cr grant 2-way31     .0.0100.0
gc cr multi block grant5      .0100.0
gc cr multi block mixed1      .0100.0
gc current block 2-way13     .0.0100.0
gc current block busy1      .0100.0
gc current grant 2-way17     .0.0100.0
gc current grant busy270  .0.0.0.71.997.3
gc current grant read-mostly invalidation1     .0 100.0
gcs log flush sync4632.11.41.91.03.26.78.577.2
ges resource directory to be unfrozen22343.554.3.41.3.4   
ksxr poll remote instances3140.115.250.730.12.9.7.3.1
latch free43  .1  .32.497.2
latch: MGA shared context latch6  1.11.1  4.693.1
latch: MGA shared context root latch1     10.0 90.0
latch: cache buffers chains33   1.75.212.137.943.1
latch: cache buffers lru chain38  3.1 1.614.140.640.6
latch: call allocation1      100.0 
latch: enqueue hash chains2    25.0 25.050.0
latch: gc element1 8.3     91.7
latch: gcs resource hash7     71.428.6 
latch: ges resource hash list58 1.34.4.62.515.812.063.3
latch: kjci process context latch2      100.0 
latch: redo allocation1      100.0 
latch: shared pool1     5.9 94.1
libcache interrupt action by LCK822379.220.6.0.0.1.0  
library cache lock1     .8 99.2
library cache: bucket mutex X1   25.0   75.0
library cache: mutex X59   7.27.714.92.867.4
log file sequential read4  10.0  30.0 60.0
log file sync7     .0.099.9
read by other session6  .0  .0.0100.0
undo_retention publish retry4 100.0      


Back to Wait Events Statistics
Back to Top

Wait Event Histogram (up to 32 ms)

  % of Total Waits
EventWaits 1ms to 32ms <512us <1ms <2ms <4ms<8ms<16ms<32ms>=32ms
ASM IO for non-blocking poll1100.0 .0     
ASM file metadata operation1698.6.3.3.1.1 .5.2
CSS initialization209.1   90.9   
CSS operation: action1913.64.581.8     
CSS operation: data query1677.122.9      
DLM cross inst call completion12583.110.13.61.6.8.5.1 
Disk file Mirror Read3509 52.32.4.3.21.021.422.5
Disk file operations I/O14796.51.4.5.6.3.1.5.1
IMR slave acknowledgement msg88672.123.22.1.1.0.21.5.9
IPC send completion sync599.7.2 .1    
KSV master wait1198.7.5.5.1.1 .1 
LGWR wait for redo copy590.73.73.7   1.9 
PGA memory operation33699.2.6.1.1.0.0  
PX Deq: Join ACK77844.312.542.4.7    
PX Deq: Signal ACK EXT399.8  .1.1   
PX Deq: Slave Session Stats2698.81.0.0.1.0   
PX Deq: reap credit1100.0 .0     
PX qref latch5100.0 .0 .0.0  
Parameter File I/O6      75.025.0
SQL*Net message to client3100.0.0  .0   
Sync ASM rebalance1975.33.5 1.2 10.67.12.4
buffer busy waits1071.48.614.3   5.7 
buffer deadlock166.7 33.3     
control file parallel write298 2.236.6.6.2.424.135.9
control file sequential read594950.8.7.3.3.32.027.617.9
cursor: pin S3  66.733.3    
cursor: pin S wait on X42   4.317.447.821.78.7
db file async I/O submit23469.9.5.3.91.12.02.922.3
db file parallel read37,1K.910.11.51.81.1.97.975.7
db file parallel write115240.615.44.32.63.16.221.36.5
db file scattered read24713.430.59.313.73.2.614.514.8
db file sequential read248,9K16.740.53.22.81.31.318.915.3
direct path read temp13314.2  .6 3.281.9 
direct path write165.638.95.65.65.65.627.85.6
direct path write temp1092 33.83.7.5.43.147.411.1
enq: CF - contention197.8 1.1    1.1
enq: FB - contention7864.431.12.71.4  .5 
enq: HW - contention284.615.4      
enq: PF - contention1 100.0      
enq: PS - contention3195.93.6.4    .1
enq: RO - fast object reuse1569.31.2  .61.26.021.7
enq: TO - contention150.050.0      
enq: TS - contention298.3.9.9     
gc buffer busy acquire1377.214.13.83.44.12.819.045.5
gc buffer busy release98.3 33.316.716.7 8.316.7
gc cr block 2-way36298.7.9.3.1.0.0.0.0
gc cr block busy73 .79.67.45.211.120.045.9
gc cr block congested1     100.0  
gc cr disk read698.21.5  .3   
gc cr grant 2-way147698.8.7.3.1.1.0.0.0
gc cr grant busy76082.02.9.92.43.95.22.4.3
gc cr grant congested6  66.7 16.716.7  
gc cr multi block grant127296.7.8.3.3.4.9.5.1
gc cr multi block mixed434176.118.61.0.4.6.4.91.9
gc current block 2-way94598.51.0.3.1.1.0.0.0
gc current block busy51194.22.1.7.3.3.6.61.1
gc current block congested1      100.0 
gc current grant 2-way106597.11.7.5.2.1.2.1.0
gc current grant busy133185.52.01.01.52.53.32.71.4
gc current grant read-mostly invalidation198558.026.32.32.33.13.53.01.5
gc current multi block request2081.35.61.91.9.95.62.8 
gc index operation42.62.6 2.6  5.386.8
gcs log flush sync623869.312.49.24.92.81.1.3 
latch free2298.6.1.4.5.1.4  
latch: MGA shared context latch376.91.12.3 5.76.926.450.6
latch: MGA shared context root latch820.010.010.020.0 40.0  
latch: cache buffers chains198.3     1.7 
latch: cache buffers lru chain789.1 3.14.71.6 1.6 
latch: gc element925.08.350.08.38.3   
latch: ges resource hash list5565.213.95.72.56.36.3  
latch: shared pool1317.65.911.811.8  47.15.9
library cache load lock668.45.315.85.35.3   
library cache lock10021.39.410.218.122.816.51.6 
library cache pin196.2 3.8     
library cache: bucket mutex X325.0    75.0  
library cache: mutex X8343.11.7.61.1 27.115.511.0
log file parallel write7859 38.210.21.11.01.623.724.3
log file sequential read370.0   10.0 20.0 
log file sync6509.919.610.22.21.41.613.350.7
oracle thread bootstrap8     77.811.111.1
oradebug request completion2      50.050.0
os thread creation8  88.9    11.1
read by other session1444.5.6.3.61.22.55.189.1
reliable message21072.118.57.4.8.1.5 .5
resmgr:cpu quantum362 .21.0.91.33.333.559.7
row cache lock3754.518.21.82.710.9  11.8
row cache mutex712.5 25.012.512.512.525.0 
write complete waits1      25.075.0


Back to Wait Events Statistics
Back to Top

Wait Event Histogram (up to 2 sec)

  % of Total Waits
EventWaits 64ms to 2s<32ms<64ms<1/8s<1/4s<1/2s <1s <2s>=2s
ASM file metadata operation299.8.2      
Disk file Mirror Read101777.515.65.01.5.2.1  
Disk file operations I/O599.9.0.1     
IMR slave acknowledgement msg2899.1.7.1.0    
KJC: Wait for msg sends to complete199.6   .4   
Parameter File I/O275.025.0      
SQL*Net break/reset to client370.0  30.0    
Sync ASM rebalance297.61.2 1.2    
control file parallel write16764.123.78.82.6.6.2  
control file sequential read340882.110.35.91.5.1   
cursor: pin S wait on X491.36.52.2     
db file async I/O submit49377.73.63.72.71.61.73.35.6
db file parallel read118,9K24.35.66.17.211.623.920.5.7
db file parallel write14193.55.7.6.1    
db file scattered read5185.26.45.52.6.3   
db file sequential read56,1K84.78.95.11.3.1.0  
direct path write194.4 5.6     
direct path write temp13788.96.82.81.4.1   
enq: CF - contention198.9  1.1    
enq: PS - contention199.9     .1 
enq: RO - fast object reuse1478.33.02.42.4.6  13.3
enq: TM - contention2   50.0 50.0  
enq: TX - row lock contention1 100.0      
gc buffer busy acquire13254.518.315.57.62.81.4  
gc buffer busy release283.316.7      
gc cr block 2-way1100.0.0      
gc cr block busy6254.121.520.04.4    
gc cr block lost11     54.545.5 
gc cr grant 2-way3100.0.0     .0
gc cr grant busy1599.7.3.0  .0  
gc cr multi block grant4799.9.1.0     
gc cr multi block mixed37098.1.6.6.3.1.2.1 
gc current block 2-way6100.0.0      
gc current block busy12398.9.6.3.2.0.0.0 
gc current block lost1     100.0  
gc current grant 2-way5100.0.0.0  .0  
gc current grant busy14198.61.2.2 .0.0  
gc current grant read-mostly invalidation7498.51.3.1.0  .0 
gc current split233.333.333.3     
gc index operation3313.213.218.423.723.77.9  
kksfbc child completion1 100.0      
latch: MGA shared context latch4449.450.6      
latch: shared pool194.15.9      
library cache: mutex X2089.011.0      
log file parallel write252175.714.87.12.2.2.0  
log file sync682149.321.718.09.11.8.1.0 
oracle thread bootstrap188.9   11.1   
oradebug request completion250.025.0 25.0    
os thread creation188.911.1      
read by other session12,4K10.98.913.921.927.214.52.7.0
reliable message499.5.1 .4    
resmgr:cpu quantum53740.359.7      
row cache lock1388.2  7.34.5   
write complete waits225.0  25.0 25.0 25.0


Back to Wait Events Statistics
Back to Top

Wait Event Histogram (up to 2 min)

  % of Total Waits
EventWaits 4s to 2m<2s <4s <8s<16s<32s< 1m< 2m>=2m
db file async I/O submit16794.44.7.6.3    
db file parallel read118199.3.7.0     
enq: RO - fast object reuse2286.72.46.0 2.42.4  
gc cr grant 2-way1100.0.0      
read by other session3100.0.0      
write complete waits175.0 25.0     


Back to Wait Events Statistics
Back to Top

Wait Event Histogram (up 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)
orcl.example.com100,6497318,87183,172
SYS$BACKGROUND761939
SYS$USERS3000
SYS.SCHEDULER$_EVENT_QUEUE0000
orclXDB0000


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
orcl.example.com 54957698870512400549690
SYS$BACKGROUND 532238834640018030
SYS$USERS 11610000400


Back to Wait Events Statistics
Back to Top

Top 10 Channel Waits

ChannelWaitsTotal Wait Time (s)Avg Wait
parameters to cluster db instances - broadcast channel 101.26ms
kxfp remote slave spawn channel 2015.31ms
kxfp control signal channel 6950471.87us
obj broadcast channel 62111.72ms


Back to Wait Events Statistics
Back to Top

Top Process Types by Wait Class

Process TypeDescriptionWait Class TypeWait Time (sec)
 Others (foregrounds + unclassified backgrounds)User I/O98,869.39
DBW0db writer process 0System I/O849.60
 Others (foregrounds + unclassified backgrounds)Commit724.59
MMMON slave class 1Application337.12
 Others (foregrounds + unclassified backgrounds)System I/O313.05
 Others (foregrounds + unclassified backgrounds)Cluster300.21
LGWRRedo etc.System I/O249.38
CKPTcheckpointSystem I/O57.70
 Others (foregrounds + unclassified backgrounds)Scheduler30.42
LMglobal cache service processOther16.67
RMS0rac management serverSystem I/O13.81
CKPTcheckpointUser I/O12.93
MMMON slave class 1User I/O8.90
 Others (foregrounds + unclassified backgrounds)Configuration8.73
Wspace management slave poolUser I/O7.53
 Others (foregrounds + unclassified backgrounds)Other6.23
Wspace management slave poolConcurrency4.07
 Others (foregrounds + unclassified backgrounds)Concurrency3.90
LMONglobal enqueue service monitorOther3.63
TT*Redo TransportSystem I/O3.31


Back to Wait Events Statistics
Back to Top

Top Process Types by CPU Used

Process TypeDescriptionCPU Time (sec)
 Others (foregrounds + unclassified backgrounds)723.80
LMglobal cache service process33.32
PParallel query slave13.87
VKTMVirtual Keeper of TiMe process8.01
MMMON slave class 16.75
DBW0db writer process 05.71
GCRGCR Slaves (LMHB)2.86
RS*GCS RM Slave2.85
DIA0diagnosibility process 02.64
VKRMVirtual sKeduler for Resource Manager2.14
LGWRRedo etc.2.14
SCMDLM Statistics Collection and Management Slave1.43
IPC0IPC Service 01.15
LMD0global enqueue service daemon 01.11
LMHBlm heartbeat monitor0.97
LMONglobal enqueue service monitor0.83
IMRCGS IMR Slave0.79
LMD1global enqueue service daemon 10.73
MMNLManageability Monitor Process 20.56
FENCIOServer fence monitor0.51


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 ModuleSQL Text
36,399.93143254.5436.160.5799.7456pwkjspvmg3h Warehouse Activity Query WITH STAGE1 AS (SELECT /*+ mat...
36,398.44143254.5336.160.5799.7689b7r2pg1cn4a   BEGIN :1 := orderentry.Warehou...
32,072.36127252.5431.860.5799.74b5dk0t95fhyd7   BEGIN :1 := orderentry.Warehou...
32,072.32127252.5431.860.5799.74gkxxkghxubh1a Warehouse Orders Query SELECT ORDER_MODE, ORDERS.WARE...
27,877.16261106.8127.690.7799.0929qp10usqkqh0 Sales Rep Query SELECT TT.ORDER_TOTAL, TT.SALE...
27,869.79261106.7827.690.7999.18cj9v3ynkm7uuy Update Customer Details BEGIN :1 := orderentry.SalesRe...
1,799.465,2650.341.792.5691.790w2qpuc6u2zsp JDBC Thin Client BEGIN :1 := orderentry.neworde...
591.9642,4210.010.590.9898.185ckxyqfvu60pj New Order SELECT CUSTOMER_ID, CUST_FIRST...
524.9915,4350.030.521.1297.05f7rxuxzt64k87 New Order INSERT INTO ORDER_ITEMS ( ORDE...
427.4311,9490.040.424.6191.75147a57cxq3w5y JDBC Thin Client BEGIN :1 := orderentry.browsep...


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 ModuleSQL Text
219.682610.8429.7827,869.790.7999.18cj9v3ynkm7uuy Update Customer Details BEGIN :1 := orderentry.SalesRe...
213.332610.8228.9227,877.160.7799.0929qp10usqkqh0 Sales Rep Query SELECT TT.ORDER_TOTAL, TT.SALE...
208.671431.4628.2936,398.440.5799.7689b7r2pg1cn4a   BEGIN :1 := orderentry.Warehou...
208.621431.4628.2836,399.930.5799.7456pwkjspvmg3h Warehouse Activity Query WITH STAGE1 AS (SELECT /*+ mat...
181.351271.4324.5832,072.360.5799.74b5dk0t95fhyd7   BEGIN :1 := orderentry.Warehou...
181.311271.4324.5832,072.320.5799.74gkxxkghxubh1a Warehouse Orders Query SELECT ORDER_MODE, ORDERS.WARE...
46.005,2650.016.241,799.462.5691.790w2qpuc6u2zsp JDBC Thin Client BEGIN :1 := orderentry.neworde...
19.6911,9490.002.67427.434.6191.75147a57cxq3w5y JDBC Thin Client BEGIN :1 := orderentry.browsep...
17.4062,5890.002.36241.187.2175.89c13sma6rkr27c New Order SELECT PRODUCTS.PRODUCT_ID, PR...
11.50810.141.5612.0095.810.00a4akgk9g69h83 SQL Developer SELECT d.* FROM ( SELECT d.*, ...
9.82270.361.33352.842.781.579yv5dwv8k0awg   WITH MONITOR_DATA AS (SELECT I...
7.49143,0490.001.0219.6838.0624.960y1prvxqc2ra9 Browse Products SELECT PRODUCTS.PRODUCT_ID, PR...


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 ModuleSQL Text
36,310.78143253.9236.7236,398.440.5799.7689b7r2pg1cn4a   BEGIN :1 := orderentry.Warehou...
36,306.51143253.8936.7136,399.930.5799.7456pwkjspvmg3h Warehouse Activity Query WITH STAGE1 AS (SELECT /*+ mat...
31,988.56127251.8832.3432,072.360.5799.74b5dk0t95fhyd7   BEGIN :1 := orderentry.Warehou...
31,988.56127251.8832.3432,072.320.5799.74gkxxkghxubh1a Warehouse Orders Query SELECT ORDER_MODE, ORDERS.WARE...
27,641.65261105.9127.9527,869.790.7999.18cj9v3ynkm7uuy Update Customer Details BEGIN :1 := orderentry.SalesRe...
27,624.60261105.8427.9327,877.160.7799.0929qp10usqkqh0 Sales Rep Query SELECT TT.ORDER_TOTAL, TT.SALE...
1,651.685,2650.311.671,799.462.5691.790w2qpuc6u2zsp JDBC Thin Client BEGIN :1 := orderentry.neworde...
581.2042,4210.010.59591.960.9898.185ckxyqfvu60pj New Order SELECT CUSTOMER_ID, CUST_FIRST...
509.5115,4350.030.52524.991.1297.05f7rxuxzt64k87 New Order INSERT INTO ORDER_ITEMS ( ORDE...
392.1611,9490.030.40427.434.6191.75147a57cxq3w5y JDBC Thin Client BEGIN :1 := orderentry.browsep...


Back to SQL Statistics
Back to Top

SQL ordered by Gets

Buffer Gets ExecutionsGets per Exec %TotalElapsed Time (s) %CPU %IO SQL IdSQL ModuleSQL Text
38,823,396261148,748.6446.1827,869.79,899,2cj9v3ynkm7uuy Update Customer Details BEGIN :1 := orderentry.SalesRe...
38,747,375261148,457.3846.0927,877.16,899,129qp10usqkqh0 Sales Rep Query SELECT TT.ORDER_TOTAL, TT.SALE...
20,371,943143142,461.1424.2336,398.44,699,889b7r2pg1cn4a   BEGIN :1 := orderentry.Warehou...
20,369,295143142,442.6224.2336,399.93,699,756pwkjspvmg3h Warehouse Activity Query WITH STAGE1 AS (SELECT /*+ mat...
18,059,454127142,200.4321.4832,072.36,699,7b5dk0t95fhyd7   BEGIN :1 := orderentry.Warehou...
18,059,454127142,200.4321.4832,072.32,699,7gkxxkghxubh1a Warehouse Orders Query SELECT ORDER_MODE, ORDERS.WARE...
3,728,3195,265708.134.431,799.462,691,80w2qpuc6u2zsp JDBC Thin Client BEGIN :1 := orderentry.neworde...
2,977,65462,58947.573.54241.187,275,9c13sma6rkr27c New Order SELECT PRODUCTS.PRODUCT_ID, PR...
1,562,02511,949130.721.86427.434,691,7147a57cxq3w5y JDBC Thin Client BEGIN :1 := orderentry.browsep...
1,440,848143,04910.071.7119.6838,1250y1prvxqc2ra9 Browse Products SELECT PRODUCTS.PRODUCT_ID, PR...
905,3732733,532.331.08352.842,81,69yv5dwv8k0awg   WITH MONITOR_DATA AS (SELECT I...


Back to SQL Statistics
Back to Top

SQL ordered by Reads

Physical ReadsExecutionsReads per Exec %TotalElapsed Time (s)%CPU%IO SQL IdSQL ModuleSQL Text
3,347,52714323,409.2837.7336,398.440.5799.7689b7r2pg1cn4a   BEGIN :1 := orderentry.Warehou...
3,347,14414323,406.6037.7336,399.930.5799.7456pwkjspvmg3h Warehouse Activity Query WITH STAGE1 AS (SELECT /*+ mat...
2,973,40112723,412.6133.5132,072.360.5799.74b5dk0t95fhyd7   BEGIN :1 := orderentry.Warehou...
2,973,40112723,412.6133.5132,072.320.5799.74gkxxkghxubh1a Warehouse Orders Query SELECT ORDER_MODE, ORDERS.WARE...
2,363,4512619,055.3726.6427,869.790.7999.18cj9v3ynkm7uuy Update Customer Details BEGIN :1 := orderentry.SalesRe...
2,362,1812619,050.5026.6227,877.160.7799.0929qp10usqkqh0 Sales Rep Query SELECT TT.ORDER_TOTAL, TT.SALE...
107,1755,26520.361.211,799.462.5691.790w2qpuc6u2zsp JDBC Thin Client BEGIN :1 := orderentry.neworde...
35,54842,4210.840.40591.960.9898.185ckxyqfvu60pj New Order SELECT CUSTOMER_ID, CUST_FIRST...
31,88315,4352.070.36524.991.1297.05f7rxuxzt64k87 New Order INSERT INTO ORDER_ITEMS ( ORDE...
24,04411,9492.010.27427.434.6191.75147a57cxq3w5y JDBC Thin Client BEGIN :1 := orderentry.browsep...


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 ModuleSQL Text
3,347,3953,347,39514323,408.360.0037.7789b7r2pg1cn4a   BEGIN :1 := orderentry.Warehou...
3,346,9433,346,94314323,405.200.0037.7656pwkjspvmg3h Warehouse Activity Query WITH STAGE1 AS (SELECT /*+ mat...
2,973,4012,973,40112723,412.610.0033.55b5dk0t95fhyd7   BEGIN :1 := orderentry.Warehou...
2,973,4012,973,40112723,412.610.0033.55gkxxkghxubh1a Warehouse Orders Query SELECT ORDER_MODE, ORDERS.WARE...
2,363,3132,363,3132619,054.840.0026.66cj9v3ynkm7uuy Update Customer Details BEGIN :1 := orderentry.SalesRe...
2,363,1642,363,1642619,054.270.0026.6629qp10usqkqh0 Sales Rep Query SELECT TT.ORDER_TOTAL, TT.SALE...
107,174107,1745,26520.360.001.210w2qpuc6u2zsp JDBC Thin Client BEGIN :1 := orderentry.neworde...
35,54835,54842,4210.840.000.405ckxyqfvu60pj New Order SELECT CUSTOMER_ID, CUST_FIRST...
31,88331,88315,4352.070.000.36f7rxuxzt64k87 New Order INSERT INTO ORDER_ITEMS ( ORDE...
24,04424,04411,9492.010.000.27147a57cxq3w5y JDBC Thin Client BEGIN :1 := orderentry.browsep...


Back to SQL Statistics
Back to Top

SQL ordered by Executions

Executions Rows ProcessedRows per ExecElapsed Time (s) %CPU %IO SQL IdSQL ModuleSQL Text
143,0492,002,64414.0019.6838,1250y1prvxqc2ra9 Browse Products SELECT PRODUCTS.PRODUCT_ID, PR...
62,589280,3674.48241.187,275,9c13sma6rkr27c New Order SELECT PRODUCTS.PRODUCT_ID, PR...
42,42142,4611.00591.96198,25ckxyqfvu60pj New Order SELECT CUSTOMER_ID, CUST_FIRST...
17,08215,4350.9010.2911,582,48z3542ffmp562 New Order SELECT QUANTITY_ON_HAND FROM P...
15,43515,4351.00524.991,197,1f7rxuxzt64k87 New Order INSERT INTO ORDER_ITEMS ( ORDE...
11,94911,9491.00427.434,691,7147a57cxq3w5y JDBC Thin Client BEGIN :1 := orderentry.browsep...
7,25010,5661.46294.84197,2g81cbrq5yamf5 New Order SELECT ADDRESS_ID, CUSTOMER_ID...
7,0647,0641.0050.672,395,6gzhkw1qu6fwxm Browse and Update Orders INSERT INTO LOGON (LOGON_ID, C...
5,2655,2651.001,799.462,691,80w2qpuc6u2zsp JDBC Thin Client BEGIN :1 := orderentry.neworde...
5,2655,2651.00345.341,490,13fw75k1snsddx New Order INSERT INTO ORDERS ( ORDER_ID,...
5,2655,2651.0040.072,4965mddt5kt45rg3 New Order UPDATE ORDERS SET ORDER_MODE =...
5,2657,6481.45229.02,996,77ws837zynp1zv New Order SELECT CARD_ID, CUSTOMER_ID, C...
4,96715,4353.118.4218,37r7636982atn9 New Order UPDATE INVENTORIES SET QUANTIT...


Back to SQL Statistics
Back to Top

SQL ordered by Parse Calls

Parse CallsExecutions % Total Parses SQL IdSQL ModuleSQL Text
1,3961,3969.8524djtk7r8fz33   update svcobj_access$ set acce...
4004002.825dqz0hqtp9fru   select /*+ connect_by_filterin...
3681842.60ffb1nv5k5adkg DBO SELECT systimestamp "SNAPSHOT_...
3463462.443dbzmtf9ahvzt   merge /* KSXM:OPTIM_DML_INF */...
243811.72a4akgk9g69h83 SQL Developer SELECT d.* FROM ( SELECT d.*, ...
2152161.52f0h5rpzmhju11   select SYS_CONTEXT('USERENV', ...
2122161.509s5cdq3h4nfbj   select dummy from dual where u...
2072081.465x2x7y2umr3y7   select decode(upper(failover_m...
2002001.410k8522rmdzg4k   select privilege# from sysauth...
1731731.22bxpcry2tpc217   select /*+ opt_param('parallel...
1611611.14grwydz59pu6mc   select text from view$ where r...


Back to SQL Statistics
Back to Top

SQL ordered by Sharable Memory

Sharable Mem (b)Executions % Total SQL IdSQL ModuleSQL Text
14,082,937270.779yv5dwv8k0awg   WITH MONITOR_DATA AS (SELECT I...
2,147,324230.12atwuyuvqkf27w   SELECT /*+ OPT_PARAM('_fix_con...


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 ModuleSQL Text
126.4426142.0427,869.790.450.7999.18cj9v3ynkm7uuy Update Customer Details BEGIN :1 := orderentry.SalesRe...
126.4126142.0327,877.160.450.7799.0929qp10usqkqh0 Sales Rep Query SELECT TT.ORDER_TOTAL, TT.SALE...
82.035,26527.281,799.464.562.5691.790w2qpuc6u2zsp JDBC Thin Client BEGIN :1 := orderentry.neworde...
28.975,2659.63345.348.391.4290.103fw75k1snsddx New Order INSERT INTO ORDERS ( ORDER_ID,...
24.3262,5898.09241.1810.097.2175.89c13sma6rkr27c New Order SELECT PRODUCTS.PRODUCT_ID, PR...
23.422,0327.79407.705.741.5192.4001jzc2mg6cg92   BEGIN :1 := orderentry.newcust...
22.431277.4632,072.360.070.5799.74b5dk0t95fhyd7   BEGIN :1 := orderentry.Warehou...
22.431277.4632,072.320.070.5799.74gkxxkghxubh1a Warehouse Orders Query SELECT ORDER_MODE, ORDERS.WARE...
19.221436.3936,398.440.050.5799.7689b7r2pg1cn4a   BEGIN :1 := orderentry.Warehou...
19.221436.3936,399.930.050.5799.7456pwkjspvmg3h Warehouse Activity Query WITH STAGE1 AS (SELECT /*+ mat...
12.042,0324.00205.635.861.2892.61gh2g2tynpcpv1 Update Customer Details INSERT INTO CUSTOMERS ( CUSTOM...
9.5515,4353.18524.991.821.1297.05f7rxuxzt64k87 New Order INSERT INTO ORDER_ITEMS ( ORDE...
9.122,0323.0375.0712.151.2586.41budtrjayjnvw3 Update Customer Details INSERT INTO CARD_DETAILS ( CAR...
8.7511,9492.91427.432.054.6191.75147a57cxq3w5y JDBC Thin Client BEGIN :1 := orderentry.browsep...
7.034,9672.348.4283.4817.960.317r7636982atn9 New Order UPDATE INVENTORIES SET QUANTIT...
5.86143,0491.9519.6829.7838.0624.960y1prvxqc2ra9 Browse Products SELECT PRODUCTS.PRODUCT_ID, PR...
5.547,2501.84294.841.881.0597.15g81cbrq5yamf5 New Order SELECT ADDRESS_ID, CUSTOMER_ID...
4.965,2651.65229.022.160.8896.707ws837zynp1zv New Order SELECT CARD_ID, CUSTOMER_ID, C...
4.856961.6196.095.051.2993.29a9gvfh5hx9u98   BEGIN :1 := orderentry.process...
4.671,9851.55238.931.951.3796.29apgb2g9q2zjh1 Update Customer Details BEGIN :1 := orderentry.browsea...
3.9842,4211.32591.960.670.9898.185ckxyqfvu60pj New Order SELECT CUSTOMER_ID, CUST_FIRST...
2.182,0320.72120.761.801.1196.849t3n2wpr7my63 Update Customer Details INSERT INTO ADDRESSES ( ADDRES...
1.406960.4777.641.810.8997.157hk2m2702ua0g Process Orders WITH NEED_TO_PROCESS AS (SELEC...
1.0317,0820.3410.2910.0311.5482.368z3542ffmp562 New Order SELECT QUANTITY_ON_HAND FROM P...
0.827,0640.2750.671.612.3295.65gzhkw1qu6fwxm Browse and Update Orders INSERT INTO LOGON (LOGON_ID, C...
0.705,2650.2340.071.752.3996.055mddt5kt45rg3 New Order UPDATE ORDERS SET ORDER_MODE =...
0.651,9850.2255.431.180.9297.447t0959msvyt5g Browse and Update Orders SELECT ORDER_ID, ORDER_DATE, O...
0.4930.1638.391.271.1891.44a6ufvpa02fgag SQL Developer select a.total as MAX_BYTES, b...
0.2030.075.553.663.3148.96586dxjwv2gc11 SQL Developer select a.total as MAX_BYTES, b...
0.041090.010.1625.568.5569.43f7xnvp44nukp7   insert into wrm$_snapshot_deta...
0.031240.010.0478.9413.897.69fn5s5p6hr6702   INSERT INTO wri$_adv_message_g...
0.0310.010.545.3439.4255.1534c33fxsr8czq DBO SELECT concat (concat (p.OBJEC...
0.03260.01349.450.011.352.01fhf8upax5cxsz   BEGIN sys.dbms_auto_report_int...
0.014000.000.129.2253.6817.245dqz0hqtp9fru   select /*+ connect_by_filterin...
0.0110.000.0155.094.8641.50fh5ufah919kun   select /*+ index(idl_sb4$ i_id...
0.011610.000.521.403.7696.41grwydz59pu6mc   select text from view$ where r...
0.01270.00347.600.001.261.590w26sk6t6gq98   SELECT XMLTYPE(DBMS_REPORT.GET...
0.011110.000.183.584.6894.069tgj4g8y4rwy8   select type#, blocks, extents,...


Back to SQL Statistics
Back to Top

Complete List of SQL Text

SQL IdSQL Text
01jzc2mg6cg92BEGIN :1 := orderentry.newcustomer(:2 , :3 , :4 , :5 , :6 , :7 , :8 , :9 , :10 ); END;
0k8522rmdzg4kselect privilege# from sysauth$ where (grantee#=:1 or grantee#=1) and privilege#>0
0w26sk6t6gq98SELECT XMLTYPE(DBMS_REPORT.GET_REPORT_WITH_SUMMARY(:B1 )) FROM DUAL
0w2qpuc6u2zspBEGIN :1 := orderentry.neworder(:2 , :3 , :4 ); END;
0y1prvxqc2ra9SELECT PRODUCTS.PRODUCT_ID, PRODUCT_NAME, PRODUCT_DESCRIPTION, CATEGORY_ID, WEIGHT_CLASS, WARRANTY_PERIOD, SUPPLIER_ID, PRODUCT_STATUS, LIST_PRICE, MIN_PRICE, CATALOG_URL, QUANTITY_ON_HAND FROM PRODUCTS, INVENTORIES WHERE PRODUCTS.PRODUCT_ID = :B2 AND INVENTORIES.PRODUCT_ID = PRODUCTS.PRODUCT_ID AND ROWNUM < :B1
147a57cxq3w5yBEGIN :1 := orderentry.browseproducts(:2 , :3 , :4 ); END;
24djtk7r8fz33update svcobj_access$ set accesses = :5, inc_no = :6 where name = :1 AND pdb = :2 AND tsn = :3 AND objid = :4
29qp10usqkqh0SELECT TT.ORDER_TOTAL, TT.SALES_REP_ID, TT.ORDER_DATE, CUSTOMERS.CUST_FIRST_NAME, CUSTOMERS.CUST_LAST_NAME FROM (SELECT ORDERS.ORDER_TOTAL, ORDERS.SALES_REP_ID, ORDERS.ORDER_DATE, ORDERS.CUSTOMER_ID, RANK() OVER (ORDER BY ORDERS.ORDER_TOTAL DESC) SAL_RANK FROM ORDERS WHERE ORDERS.SALES_REP_ID = :B1 ) TT, CUSTOMERS WHERE TT.SAL_RANK <= 10 AND CUSTOMERS.CUSTOMER_ID = TT.CUSTOMER_ID
34c33fxsr8czqSELECT concat (concat (p.OBJECT_ID, '_'), p.SUBPROGRAM_ID) "DS_PROCEDURE_ID", p.OWNER, p.OBJECT_NAME, p.PROCEDURE_NAME, s.LINE "SQL_CHUNK_NUM", s.TEXT "SQL_CHUNK" FROM dba_procedures p, dba_source s WHERE ( ( p.OBJECT_ID = 7638 AND p.SUBPROGRAM_ID = 1 ) ) AND p.OWNER = s.OWNER AND p.OBJECT_NAME = s.NAME AND s.TYPE <> 'PACKAGE BODY' -- to avoid duplicate DDL from both PACKAGE and PACKAGEBODY ORDER BY p.OBJECT_ID, p.SUBPROGRAM_ID, s.LINE
3dbzmtf9ahvztmerge /* KSXM:OPTIM_DML_INF */ into sys.mon_mods_all$ m using dual on (m.obj# = :objn and (:pobjn = 0 or m.obj# = :pobjn or m.obj# in (select obj# from tabpart$ where bo# = :pobjn and obj# = :objn union all select obj# from tabcompart$ where bo# = :pobjn and o bj# = :objn union all select tsp.obj# from tabsubpart$ tsp, tabcompart$ tcp where tsp.pobj# = tcp.obj# and (tcp.bo# = :pobjn or tcp.obj# = :pobjn) and tsp.obj# = :objn))) when matched then update set inserts = decode(:reset, 1, 0, inserts) + :ins, updates = decode(:reset, 1, 0, updates) + :upd, deletes = decode(:reset, 1, 0, deletes) + :del, flags = decode(:reset, 1, 0, flags - bitand(flags, :flag)) + :flag, drop_segments = decode(:reset, 1, 0, d rop_segments) + :dropseg, timestamp = :time when NOT matched then insert (obj#, inserts, updates, deletes, timestamp, flags, drop_segments) values (:objn, :ins, :upd, :del, :time, :flag, :dropseg) where :ins != 0 or :upd != 0 or :del != 0 or :flag != 0 or :dropseg !=0
3fw75k1snsddxINSERT INTO ORDERS ( ORDER_ID, ORDER_DATE, ORDER_MODE, CUSTOMER_ID, ORDER_STATUS, WAREHOUSE_ID, DELIVERY_TYPE, DELIVERY_ADDRESS_ID, COST_OF_DELIVERY, WAIT_TILL_ALL_AVAILABLE, CUSTOMER_CLASS, CARD_ID, INVOICE_ADDRESS_ID ) VALUES ( ORDERS_SEQ.NEXTVAL + :B8 , SYSTIMESTAMP , 'online', :B7 , 1, :B6 , 'Standard', :B1 , DBMS_RANDOM.VALUE(:B5 , :B4 ), 'ship_asap', :B2 , :B3 , :B1 ) RETURNING ORDER_ID INTO :O0
56pwkjspvmg3hWITH STAGE1 AS (SELECT /*+ materialize CARDINALITY(12) */ (ROWNUM*(1/288)) OFFSET FROM DUAL CONNECT BY ROWNUM <= 12 ), STAGE2 AS (SELECT /*+ materialize CARDINALITY(12) */ LAG(OFFSET, 1, 0) OVER (ORDER BY ROWNUM) OSTART, OFFSET OEND FROM STAGE1 ), STAGE3 AS (SELECT /*+ materialize CARDINALITY(12) */ (SYSTIMESTAMP - OSTART) DATE1, (SYSTIMESTAMP - OEND) DATE2 FROM STAGE2 ) SELECT WAREHOUSE_ID, DATE1, DATE2, SUM(ORDERS.ORDER_TOTAL) "Value of Orders", COUNT(1) "Number of Orders" FROM STAGE3, ORDERS WHERE ORDER_DATE BETWEEN DATE2 AND DATE1 AND WAREHOUSE_ID = :B1 GROUP BY WAREHOUSE_ID, DATE1, DATE2 ORDER BY DATE1, DATE2 DESC
586dxjwv2gc11select a.total as MAX_BYTES, b.used as USED_BYTES from ( select sum(user_bytes) total from dba_data_files d, DBA_TABLESPACES t where d.TABLESPACE_NAME(+) = t.tablespace_name and contents <> 'PERMANENT' ) a, ( select sum(bytes) used from dba_segments s, DBA_TABLESPACES t where s.TABLESPACE_NAME(+) = t.tablespace_name and contents <> 'PERMANENT' ) b
5ckxyqfvu60pjSELECT CUSTOMER_ID, CUST_FIRST_NAME, CUST_LAST_NAME, NLS_LANGUAGE, NLS_TERRITORY, CREDIT_LIMIT, CUST_EMAIL, ACCOUNT_MGR_ID, CUSTOMER_SINCE, CUSTOMER_CLASS, SUGGESTIONS, DOB, MAILSHOT, PARTNER_MAILSHOT, PREFERRED_ADDRESS, PREFERRED_CARD FROM CUSTOMERS WHERE CUSTOMER_ID = :B2 AND ROWNUM < :B1
5dqz0hqtp9fruselect /*+ connect_by_filtering index(sysauth$ i_sysauth1) */ privilege#, bitand(nvl(option$, 0), 72), grantee#, level from sysauth$ connect by grantee#=prior privilege# and privilege#>0 start with grantee#=:1 and privilege#>0
5mddt5kt45rg3UPDATE ORDERS SET ORDER_MODE = 'online', ORDER_STATUS = FLOOR(DBMS_RANDOM.VALUE(0, :B3 )), ORDER_TOTAL = :B2 WHERE ORDER_ID = :B1
5x2x7y2umr3y7select decode(upper(failover_method), NULL, 0 , 'BASIC', 1, 'PRECONNECT', 2 , 'PREPARSE', 4 , 0), decode(upper(failover_type), NULL, 1, 'NONE', 1, 'SESSION', 2, 'SELECT', 4, 'TRANSACTION', 8, 'AUTO' , 8, 1 ), failover_retries, failover_delay, flags, nvl(replay_initiation_timeout, 900), decode(upper(session_state_consistency), 'STATIC', 16, 0), failover_restore from sys.service$ where name = :1
7hk2m2702ua0gWITH NEED_TO_PROCESS AS (SELECT ORDER_ID, CUSTOMER_ID FROM ORDERS WHERE ORDER_STATUS <= 4 AND WAREHOUSE_ID = :B1 AND ROWNUM < 10 ) SELECT O.ORDER_ID, OI.LINE_ITEM_ID, OI.PRODUCT_ID, OI.UNIT_PRICE, OI.QUANTITY, O.ORDER_MODE, O.ORDER_STATUS, O.ORDER_TOTAL, O.SALES_REP_ID, O.PROMOTION_ID, C.CUSTOMER_ID, C.CUST_FIRST_NAME, C.CUST_LAST_NAME, C.CREDIT_LIMIT, C.CUST_EMAIL, O.ORDER_DATE FROM ORDERS O, NEED_TO_PROCESS NTP, CUSTOMERS C, ORDER_ITEMS OI WHERE NTP.ORDER_ID = O.ORDER_ID AND C.CUSTOMER_ID = O.CUSTOMER_ID AND OI.ORDER_ID (+) = O.ORDER_ID
7r7636982atn9UPDATE INVENTORIES SET QUANTITY_ON_HAND = QUANTITY_ON_HAND - :B1 WHERE PRODUCT_ID = :B3 AND WAREHOUSE_ID = :B2
7t0959msvyt5gSELECT ORDER_ID, ORDER_DATE, ORDER_MODE, CUSTOMER_ID, ORDER_STATUS, ORDER_TOTAL, SALES_REP_ID, PROMOTION_ID, WAREHOUSE_ID, DELIVERY_TYPE, COST_OF_DELIVERY, WAIT_TILL_ALL_AVAILABLE, DELIVERY_ADDRESS_ID, CUSTOMER_CLASS, CARD_ID, INVOICE_ADDRESS_ID FROM ORDERS WHERE CUSTOMER_ID = :B2 AND ROWNUM < :B1
7ws837zynp1zvSELECT CARD_ID, CUSTOMER_ID, CARD_TYPE, CARD_NUMBER, EXPIRY_DATE, IS_VALID, SECURITY_CODE FROM CARD_DETAILS WHERE CUSTOMER_ID = :B2 AND ROWNUM < :B1
89b7r2pg1cn4aBEGIN :1 := orderentry.WarehouseActivityQuery(:2 , :3 , :4 ); END;
8z3542ffmp562SELECT QUANTITY_ON_HAND FROM PRODUCT_INFORMATION P, INVENTORIES I WHERE I.PRODUCT_ID = :B2 AND I.PRODUCT_ID = P.PRODUCT_ID AND I.WAREHOUSE_ID = :B1
9s5cdq3h4nfbjselect dummy from dual where user = 'SYS' or user = 'SYSTEM'
9t3n2wpr7my63INSERT INTO ADDRESSES ( ADDRESS_ID, CUSTOMER_ID, DATE_CREATED, HOUSE_NO_OR_NAME, STREET_NAME, TOWN, COUNTY, COUNTRY, POST_CODE, ZIP_CODE ) VALUES ( :B6 , :B5 , TRUNC(SYSDATE, 'MI'), FLOOR(DBMS_RANDOM.VALUE(1, :B4 )), 'Street Name', :B3 , :B2 , :B1 , 'Postcode', NULL )
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
9yv5dwv8k0awgWITH 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, SQL_FULL_PLAN_HASH_VALUE, SESSION_SERIAL#, SQL_TEXT, 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+ CLUSTER_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, IO_CELL_UNCOMPRESSED_BYTES IO_UNC_BYTES, IO_CELL_OFFLOAD_ELIGIBLE_BYTES IO_ELIG_BYTES, IO_CELL_OFFLOAD_RETURNED_BYTES IO_RET_BYTES, 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$ALL_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_INST_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_FULL_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.O WNER || '.' || P.OBJECT_NAME || DECODE(P.PROCEDURE_NAME, NULL, '', '.' || P.PROCEDURE_NAME) FROM ALL_PROCEDURES P WHERE P.OBJECT_ID = MAX_PL_OID AND P.SUBPROGRAM_ID = MAX_PL_PROGID AND ROWNUM = 1), '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 ALL_PROCEDURES P WHERE P.OBJECT_ID = MAX_PL_ENTRY_OID AND P.SUBPROGRAM_ID = MAX_PL_ENTRY_PROGID AND ROWNUM = 1), 'Unavailable') END MAX_PL_ENTRY_NAME, MAX_STATUS, SUM_REFRESH_COUNT, MIN_FIRST_REFRESH_TIME, 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, SUM_ IO_UNC_BYTES, SUM_IO_ELIG_BYTES, SUM_IO_RET_BYTES, DECODE(:B14 , 1, 'db_name', SYS_CONTEXT('userenv', 'db_unique_name')) DB_UNIQUE_NAME, DECODE(:B14 , 1, 'platform_name', SYS.DBMS_UTILITY.PORT_STRING) PLATFORM_NAME, DECODE(:B14 , 1, 'host_name', SYS_CONTEXT('userenv', 'server_host')) 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(SQL_FULL_PLAN_HASH_VALUE) MAX_FULL_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, MAX(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_COU NT) 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, 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(CONCURRENCY_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, SUM(IO_UNC_BYTES) S UM_IO_UNC_BYTES, SUM(IO_ELIG_BYTES) SUM_IO_ELIG_BYTES, SUM(IO_RET_BYTES) SUM_IO_RET_BYTES, MAX(RM_INFO) AGG_RM_INFO, MAX(CON_NAME) MAX_CON_NAME, MAX(CON_ID) MAX_CON_ID FROM MONITOR_DATA) MD), 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.BUCKET_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.IMQ_COUNT, 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, A SH.ACTIVITY_TYPE, ASH.OTHER_SQL_ACTIVITY_TYPE, ASH.EVENT_NAME, ASH.IMQ_COUNT, 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_ID, 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.IMQ_COUNT, 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(GVTF.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 (SYS.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_ID, 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.IMQ_COUNT, ASH2.WAIT_COUNT, AS H2.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_SUBPROGRAM_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.S AMPLE_DATE) ACTIVITY_START, MAX(ASH1.SAMPLE_DATE) ACTIVITY_END, COUNT(ASH1.SQL) ACTIVITY_COUNT, COUNT(CASE WHEN ASH1.ACTIVITY_TYPE = 'Cpu' AND ASH1.EVENT_NAME = 'in memory' THEN 1 ELSE NULL END) IMQ_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' AND ASH1.EVENT_NAME IS NULL 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) DBOP_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.IN _INMEMORY_QUERY) IN_INMEMORY_QUERY, 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.C2, 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$DUAL UNI ON ALL SELECT 1 C1, 1 C2 FROM V$DUAL) 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.IN_INMEMORY_QUERY, 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 NVL(ASH000.EVENT, DECODE(ASH000.IN_INMEMORY_QUERY, 'Y', 'in memory', 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_MONITORED_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.IN_INMEMORY_QUERY, ASH.WA IT_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$ALL_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 (ASH0.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 ALL_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_ACTI VITY_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_OTH ER_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_SAMPLES, NULL)) OVER(PARTITION BY AD01.BUCKET_NUM)), 0)) BUCKET_OTHER_ACTIVITY, (NVL(AD01.BUCKET_DISTINCT_SAMPLES, 0) * :B 25 ) 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.BUC KET_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 opt_param('_gby_hash_aggregation_enabled', 'false') */ 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 :B67 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", NVL2(:B6 , NULL, MAX_FULL_PLAN_HASH_VALUE) AS "sql_full_plan_hash", MAGG.DB_UNIQUE_NAME AS "db_unique_name", MAGG.PLATFORM_NAME AS "db_platform_name", MAGG .HOST_NAME AS "report_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(:B65 , 'Y', :B66 ) AS "is_full"), NVL2(:B65 , :B65 , SQLMON_TEXT)) END, XMLELEMENT( "status", NULL, MAX_STATUS), XMLELEMENT( "ref resh_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(:B64 , 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))), CASE WHEN (:B62 = 'Y') THEN XMLELEMENT( "adaptive_plan", XMLATTRIBUTES(:B63 AS "is_final"), :B62 ) ELSE NULL END ) 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, NUL L, 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_APPLICATION_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, XMLELEMEN T( "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_B YTES, 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_BYTES, 0), 0, NULL, XMLELEMENT( "stat", XMLATTRIBUTES('write_bytes' AS "name"), SUM_WRITE_BYTES)), DECODE(NVL(SUM_IO_UNC_BYTES, 0), 0, NULL, XMLELEMENT( "stat", XMLATTRIBUTES('unc_bytes' AS "name"), SUM_IO_UNC_BYTES)), DECODE(NVL(SUM_IO_ELIG_BYTES, 0), 0, NULL, XMLELEMENT( "stat", XMLATTRIBUTES('elig_bytes' AS "name"), SUM_IO_ELIG_BYTES)), DECODE(NVL(SUM_IO_RET_BYTES, 0), 0, NULL, XMLELEMENT( "stat", XMLATTRIBUTES('ret_bytes' AS "name"), SUM_IO_RET_BYTES)), CASE WHEN SUM_IO_INTER_BYTES IS NULL OR SUM_IO_BYTES = 0 OR SUM_IO_INTER_BYTES = SUM_IO_BYTES OR NVL(SUM_IO_ELIG_BYTES, 0) = 0 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, CASE WHEN NVL(SUM_IO_ELIG_BYTES, 0) = 0 OR SUM_IO_BYTES = 0 OR SUM_IO_UNC_BYTES = SUM_IO_RET_BYTES THEN NULL ELSE XMLELEMENT( "stat", XMLATTRIBUTES('cell_offload_efficiency2' AS "name"), GREATEST(0, ROUND(100* (GREATEST(SUM_IO_UNC_BYTES, SUM_IO_ELIG_BYTES) - SUM_IO_RET_BYTES) / SUM_IO_ELIG_BYTES, 2))) END), CASE WHEN :B33 = 1 THEN (SELECT CASE WHEN SUM(ACTIVITY_COUNT) > 0 THEN XMLELEMENT( "activity_sampled", 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)) ELSE NULL END FROM (SELECT AD0.ACTIVITY_TYPE, AD0.EVENT_NAME, SUM(AD0.ACTIVITY_COUNT) ACTIVITY_COUNT FROM ASH_DATA AD0 GROUP BY AD0.ACTIVITY_TYPE, AD0.EVENT _NAME) AD1) ELSE NULL END, NVL2(MAX_ERROR_NUMBER, XMLELEMENT( "error", XMLATTRIBUTES(MAX_ERROR_NUMBER AS "number", MAX_ERROR_FACILITY AS "facility"), MAX_ERROR_MESSAGE), NULL), CASE WHEN :B61 = 1 AND MAGG.QC_HAS_BINDS_XML = 'Y' THEN (SELECT XMLTYPE(BINDS_XML) FROM GV$ALL_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 :B60 = 1 AND MAGG.QC_HAS_OTHER_XML = 'Y' THEN (SELECT XMLTYPE(OTHER_XML) FROM GV$ALL_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 MONITOR_AGG 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.IMQ_COUNT AS "imq_count", AT.WAIT_COUNT AS "wait_count", AT.CPU_COUNT AS "cpu_count", DECODE(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.IMQ_COUNT) IMQ_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) ACTIVITY_START, MAX(AD0.ACTIVITY_END) ACTIVITY_END, SUM(AD0.ACTIVITY_COUNT) ACTIVITY_COUNT, SUM(AD0.IMQ_COUNT) IMQ_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(IMQ_COUNT) IMQ_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.ACTIVITY_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.A CTIVITY_TYPE, AD0.EVENT_NAME, MIN(AD0.ACTIVITY_START) ACTIVITY_START, MAX(AD0.ACTIVITY_END) ACTIVITY_END, SUM(AD0.ACTIVITY_COUNT) ACTIVITY_COUNT, SUM(AD0.IMQ_COUNT) IMQ_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 WHEN :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 * 2 4) + 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 :B68 = '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, NULL, 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 WH EN 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_DATA 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 "serv er_group_count", DIST_PX_SET_COUNT AS "server_set_count"), CASE WHEN :B70 = 1 THEN PX_SESSIONS ELSE NULL END, CASE WHEN :B68 = 'Y' THEN DECODE(:B69 , 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_SESSION.IMQ_COUNT) AS "max_imq_count", MAX(PX_SESSION.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.IMQ_COUNT) IMQ_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_name", 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('el apsed_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_req s' 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), NVL2(MAX(IO_UNC_BYTES), XMLELEMENT( "stat", XMLATTRIBUTES('unc_bytes' AS "name"), MAX(IO_UNC_BYTES)), NULL), NVL2(MAX(IO_ELIG_BYTES), XMLELEMENT( "stat", XMLATTRIBUTES('elig_bytes' AS "name"), MAX(IO_ELIG_BYTES)), NULL), NVL2(MAX(IO_RET_BYTES), XMLELEMENT( "stat", XMLATTRIBUTES('ret_bytes' AS "name"), MAX(IO_RET_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) OR NVL(MAX(IO_ELIG_BYTES), 0) = 0 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 NVL(MAX(IO_ELIG_BYTES), 0) = 0 OR NVL(MAX(IO_BYTES), 0) = 0 OR MAX(IO_UNC_BYTES) = MAX(IO_RET_BYTES) THEN NULL ELSE XMLELEMENT( "stat", XMLATTRIBUTES('cell_offload_efficiency2' AS "name"), GREATEST(0, ROUND(100* (GREATEST( NVL(MAX(IO_UNC_BYTES), 0), NVL(MAX(IO_ELIG_BYTES), 0)) - MAX(IO_RET_BYTES)) / MAX(IO_ELIG_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.IMQ_COUNT) AS "i mq_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 :B60 = 1 AND PI.HAS_OTHER_XML = 'Y' THEN (SELECT XMLTYPE(OTHER_XML) FROM GV$ALL_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#, AS H0.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.IMQ_COUNT)) IMQ_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.I O_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.IO_UNC_BYTES, 0, NULL, MO.IO_UNC_BYTES)) IO_UNC_BYTES, MAX(DECODE(MO.IO_ELIG_BYTES, 0, NULL, MO.IO_ELIG_BYTES)) IO_ELIG_BYTES, MAX(DECODE(MO.IO_RET_BYTES, 0, NULL, MO.IO_RET_BYTES)) IO_RET_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_TIME)) 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(DECOD E(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.IMQ_COUNT) IMQ_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 (:B70 = 1 OR :B69 = 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 (:B70 = 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.IMQ_COUNT) AS "max_imq_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.IMQ_COUNT) IMQ_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_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), NVL2(MAX(IO_UNC_BYTES), XMLELEMENT( "stat", XMLATTRIBUTES('unc_bytes' AS "name"), MAX(IO_UNC_BYTES)), NULL), NVL2(MAX(IO_EL IG_BYTES), XMLELEMENT( "stat", XMLATTRIBUTES('elig_bytes' AS "name"), MAX(IO_ELIG_BYTES)), NULL), NVL2(MAX(IO_RET_BYTES), XMLELEMENT( "stat", XMLATTRIBUTES('ret_bytes' AS "name"), MAX(IO_RET_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) OR NVL(MAX(IO_ELIG_BYTES), 0) = 0 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 NVL(MAX(IO_ELIG_BYTES), 0) = 0 OR NVL(MAX(IO_BYTES), 0) = 0 OR MAX(IO_UNC_BYTES) = MAX(IO_RET_BYTES) THEN NULL ELSE XMLELEMENT( "stat", XMLATTRIBUTES('cell_offload_efficiency2' AS "name"), GREATEST(0, ROUND(100* (GREATEST( NVL(MAX(IO_UNC_BYTES), 0), NVL(MAX(IO_ELIG_BYTES), 0)) - MAX(IO_RET_BYTES)) / MAX(IO_ELIG_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.IMQ_COUNT) AS "imq_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.IMQ_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, MO.IO_UNC_BYTES, MO.IO_ELIG_BYTES, MO.IO_RET_BYTES 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) WRITE_REQS, SUM(MO0.WRITE_BYTES) WRITE_BYTES, SUM(MO0.IO_REQS) IO_REQS, SUM(MO0.IO_UNC_BYTES) IO_UNC_BYTES, SUM(MO0.IO_ELIG_BYTES) IO_ELIG_BYTES, SUM(MO0.IO_RET_BYTES) IO_RET_BYTES, 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.IMQ_COUNT) IMQ_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 :B4 3 = 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_IMQ_COUNT) AS "max_imq_count", 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.INACTIVE AS "skp", 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.FIR ST_MOVE_TIME, XMLELEMENT( "stat", XMLATTRIBUTES('first_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, XMLELEM ENT( "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(:B68 , '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(:B68 , '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(:B68 , '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(:B68 , '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 END, 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(:B68 , '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(:B68 , '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(:B68 , '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(:B68 , '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(:B68 , '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 - PLI.LINE_ACTIVITY_START) * 3600*24) + 1 AS "duration", PLI.LINE_ACTIVITY_COUNT AS "count", PLI.LINE_IMQ_COUNT AS "imq_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_IMQ_COUNT, 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, PM.INACTIVE, 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_CHANGE_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.CARDINAL ITY, 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_IMQ_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_IMQ_COUNT) O VER() MAX_LINE_IMQ_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.IMQ_COUNT) LINE_IMQ_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) ACTI VITY_COUNT, SUM(AD0.IMQ_COUNT) IMQ_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) DFO_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.IMQ_COUNT) IMQ_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", T O_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.IMQ_COUNT) IMQ_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 "cl ass", 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.IMQ_COUNT) IMQ_COUNT, 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 :B71 = '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_OPERATION_INACTIVE) INACTIVE, MAX(PLM.PLAN_OBJECT_OWNER) OBJECT_OWNER, MAX(P LM.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) FIRST_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.PHYSICAL_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.PHYSICA L_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(OTHERST AT_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_TYPE), 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$ALL_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 , SESSION_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.DFO_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_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 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", XMLATTRIBUTES('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( "s tat", 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", 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.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", XMLATTRI BUTES('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 OR NVL(MA.SUM_IO_ELIG_BYTES, 0) = 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, CASE WHEN NVL(MA.SUM_IO_ELIG_BYTES, 0) = 0 OR MA.SUM_IO_BYTES = 0 OR MA.SUM_IO_UNC_BYTES = MA.SUM_IO_RET_BYTES THEN NULL ELSE XMLELEMENT( "stat", XMLATTRIBUTES('cell_offload_efficiency2' AS "name"), GREATEST(0, ROUND(100 * (GREATEST(MA.SUM_IO_UNC_BYTES, MA.SUM_IO_ELIG_BYTES) - MA.SUM_IO_RET_BYTES) / MA.SUM_IO_ELIG_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.MA X_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 AS "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_ent ry_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.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", 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.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)), DECODE(MA.SUM_IO_UNC_BYTES, 0, NULL, XMLELEMENT( "stat", XMLATTRIBUTES('unc_bytes' AS "name"), MA.SUM_IO_UNC_BYTES)), DECODE(MA.SUM_IO_ELIG_BYTES, 0, NULL, XMLELEMENT( "stat", XMLATTRIBUTES('elig_bytes' AS "name"), MA.SUM_IO_ELIG_BYTES)), DECODE(MA.SUM_IO_RET_BYTES, 0, NULL, XMLELEMENT( "stat", XMLATTRIBUTES('ret_bytes' AS "name"), MA.SUM_IO_RET_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 OR NVL(MA.SUM_IO_ELIG_BYTES, 0) = 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, CASE WHEN NVL(MA.SUM_IO_ELIG_BYTES, 0) = 0 OR MA.SUM_IO_BYTES = 0 OR MA.SUM_IO_UNC_B YTES = MA.SUM_IO_RET_BYTES THEN NULL ELSE XMLELEMENT( "stat", XMLATTRIBUTES('cell_offload_efficiency2' AS "name"), GREATEST(0, ROUND(100 * (GREATEST(MA.SUM_IO_UNC_BYTES, MA.SUM_IO_ELIG_BYTES) - MA.SUM_IO_RET_BYTES) / MA.SUM_IO_ELIG_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$all_sql_plan', PLAN_TAG=>'plan', FILTER_PREDS=>:B35 , FORMAT=>'-PROJECTION +ALIAS +ADAPTIVE') ELSE NULL END XPLAN_XML FROM DUAL) V1) CONST_VIEW
a4akgk9g69h83SELECT d.* FROM ( SELECT d.*, ROWNUM ROW# FROM (SELECT d.* FROM (select sql_text AS SQL, s.cpu_time/1000 AS CPU_MSECONDS, CASE WHEN s.cpu_time < 1000 THEN '< 1 ms' WHEN s.cpu_time < 1000000 THEN to_char(round(s.cpu_time/1000, 1)) || ' ms' WHEN s.cpu_time < 60000000 THEN to_char(round(s.cpu_time/1000000, 1)) || ' s' ELSE to_char(round(s.cpu_time/60000000, 1)) || ' m' END AS CPU_SECONDS_FORM, DECODE(l.max_cpu_time, 0, 0, s.cpu_time/l.max_cpu_time) AS CPU_SECONDS_PROP, s.elapsed_time/1000 AS ELAPSED_MSECONDS, CASE WHEN s.elapsed_time < 1000 THEN '< 1 ms' WHEN s.elapsed_time < 1000000 THEN to_char(round(s.elapsed_time/1000, 1)) || ' ms' WHEN s.elapsed_time < 60000000 THEN to_char(round(s.elapsed_time/1000000, 1)) || ' s' ELSE to_char(round(s.elapsed_time/60000000, 1)) || ' m' END AS ELAPSED_SECONDS_FORM, DECODE(l.max_elapse d_time, 0, 0, s.elapsed_time/l.max_elapsed_time) AS ELAPSED_SECONDS_PROP, s.disk_reads AS DISK_READS, CASE WHEN s.disk_reads < 1000 THEN to_char(s.disk_reads) WHEN s.disk_reads < 1000000 THEN to_char(round(s.disk_reads/1000, 1)) || 'K' WHEN s.disk_reads < 1000000000 THEN to_char(round(s.disk_reads/1000000, 1)) || 'M' ELSE to_char(round(s.disk_reads/1000000000, 1)) || 'G' END AS DISK_READS_FORM, DECODE(l.max_disk_reads , 0, 0, s.disk_reads/l.max_disk_reads ) AS DISK_READS_PROP, s.buffer_gets AS BUFFER_GETS, CASE WHEN s.buffer_gets < 1000 THEN to_char(s.buffer_gets) WHEN s.buffer_gets < 1000000 THEN to_char(round(s.buffer_gets/1000, 1)) || 'K' WHEN s.buffer_gets < 1000000000 THEN to_char(round(s.buffer_gets/1000000, 1)) || 'M' ELSE to_char(round(s.buffer_gets/1000000000, 1)) || 'G' END AS BUFFER_GETS_FORM, DECODE(l.max_buffer_gets , 0, 0, s.buffer_gets/l.max_buffer_gets ) AS BUFFER_GETS_PROP, s.executions AS EXECUTIONS, CASE WHEN s.executions < 1000 THEN to_char(s.executions) WHEN s.executions < 1000000 THEN to_char(round(s.executions/1000, 1)) || 'K' WHEN s.executions < 1000000000 THEN to_char(round(s.executions/1000000, 1)) || 'M' ELSE to_char(round(s.executions/1000000000, 1)) || 'G' END AS EXECUTIONS_FORM, DECODE(l.max_executions , 0, 0, s.executions/l.max_executions ) AS EXECUTIONS_PROP, decode(s.module, null, ' ', s.module) AS MODULE, s.last_active_time AS LAST_ACTIVE_TIME, decode(s.last_active_time, null, ' ', to_char(s.last_active_time, 'DD-Mon-YYYY HH24:MI:SS')) AS LAST_ACTIVE_TIME_FORM, s.sql_id AS SQL_ID, s.child_number AS CHILD_NUMBER, s.inst_id as INST_ID from gv$sql s, ( select max(cpu_time) as max_cpu_time, max(elapsed_time) as max_elapsed_time, max(disk_reads) as max_disk_reads, max(buffer_gets) as max_buffer_gets, max(executions) as max_executions from gv$sql ) l ) d ORDER BY CPU_MSECONDS DESC, SQL, DISK_READS DESC, BUFFER_GETS DESC, EXECUTIONS DESC, ELAPSED_MSECONDS DESC, INST_ID DESC, MODULE DESC, LAST_ACTIVE_TIME DESC ) d ) d WHERE ROW# >= :minRowNo AND ROW# <= :maxRowNo
a6ufvpa02fgagselect a.total as MAX_BYTES, b.used as USED_BYTES from ( select sum(user_bytes) total from dba_data_files d, DBA_TABLESPACES t where d.TABLESPACE_NAME(+) = t.tablespace_name and contents = 'PERMANENT' ) a, ( select sum(bytes) used from dba_segments s, DBA_TABLESPACES t where s.TABLESPACE_NAME(+) = t.tablespace_name and contents = 'PERMANENT' ) b
a9gvfh5hx9u98BEGIN :1 := orderentry.processorders(:2 , :3 , :4 ); END;
apgb2g9q2zjh1BEGIN :1 := orderentry.browseandupdateorders(:2 , :3 , :4 ); END;
atwuyuvqkf27wSELECT /*+ OPT_PARAM('_fix_control' '16391176:1') */ GROUP_TYPE, BUCKET_START, BUCKET_END, TM_GROUP_TYPE, TM_BUCKET_START, TM_BUCKET_END, SUM(TM_CPU_FIRST_BUCKET_VALUE) TM_CPU_FIRST_BUCKET_VALUE, SUM(TM_CPU_MIDDLE_BUCKETS_VALUE) TM_CPU_MIDDLE_BUCKETS_VALUE, SUM(TM_CPU_LAST_BUCKET_VALUE) TM_CPU_LAST_BUCKET_VALUE, SUM(TM_DB_FIRST_BUCKET_VALUE) TM_DB_FIRST_BUCKET_VALUE, SUM(TM_DB_MIDDLE_BUCKETS_VALUE) TM_DB_MIDDLE_BUCKETS_VALUE, SUM(TM_DB_LAST_BUCKET_VALUE) TM_DB_LAST_BUCKET_VALUE, SUM(RREQS_FIRST_BUCKET_VALUE) RREQS_FIRST_BUCKET_VALUE, SUM(RREQS_MIDDLE_BUCKETS_VALUE) RREQS_MIDDLE_BUCKETS_VALUE, SUM(RREQS_LAST_BUCKET_VALUE) RREQS_LAST_BUCKET_VALUE, SUM(WREQS_FIRST_BUCKET_VALUE) WREQS_FIRST_BUCKET_VALUE, SUM(WREQS_MIDDLE_BUCKETS_VALUE) WREQS_MIDDLE_BUCKETS_VALUE, SUM(WREQS_LAST_BUCKET_VALUE) WREQS_LAST_BUCKET_VALUE, SUM(RBYTES_FIRST_BUCKET _VALUE) RBYTES_FIRST_BUCKET_VALUE, SUM(RBYTES_MIDDLE_BUCKETS_VALUE) RBYTES_MIDDLE_BUCKETS_VALUE, SUM(RBYTES_LAST_BUCKET_VALUE) RBYTES_LAST_BUCKET_VALUE, SUM(WBYTES_FIRST_BUCKET_VALUE) WBYTES_FIRST_BUCKET_VALUE, SUM(WBYTES_MIDDLE_BUCKETS_VALUE) WBYTES_MIDDLE_BUCKETS_VALUE, SUM(WBYTES_LAST_BUCKET_VALUE) WBYTES_LAST_BUCKET_VALUE, SUM(IBYTES_FIRST_BUCKET_VALUE) IBYTES_FIRST_BUCKET_VALUE, SUM(IBYTES_MIDDLE_BUCKETS_VALUE) IBYTES_MIDDLE_BUCKETS_VALUE, SUM(IBYTES_LAST_BUCKET_VALUE) IBYTES_LAST_BUCKET_VALUE, SUM(CRBYTES_FIRST_BUCKET_VALUE) CRBYTES_FIRST_BUCKET_VALUE, SUM(CRBYTES_MIDDLE_BUCKETS_VALUE) CRBYTES_MIDDLE_BUCKETS_VALUE, SUM(CRBYTES_LAST_BUCKET_VALUE) CRBYTES_LAST_BUCKET_VALUE, SUM(PGA_ALLOC_FIRST_BUCKET_VALUE) PGA_ALLOC_FIRST_BUCKET_VALUE, SUM(PGA_ALLOC_MIDDLE_BUCKETS_VALUE) PGA_ALLOC_MIDDLE_BUCKETS_VALUE, SUM(PGA_ALLOC_LAST_BUCKET_VALUE) PGA_ALLOC_LAST_BUCKET_VALUE, SUM(TMP_ALLOC_FIRST_BUCKET_VALUE) TMP_ALLOC_FIRST_BUCKET_VALUE, SUM(TMP_ALLOC_MIDDLE_BUCKETS_VALUE) TMP _ALLOC_MIDDLE_BUCKETS_VALUE, SUM(TMP_ALLOC_LAST_BUCKET_VALUE) TMP_ALLOC_LAST_BUCKET_VALUE FROM ( SELECT GROUP_TYPE, BUCKET_START, TM_BUCKET_START, TM_BUCKET_END, BUCKET_END, TM_GROUP_TYPE, SUM(GVTF.TM_CPU_FIRST_BUCKET_VALUE) TM_CPU_FIRST_BUCKET_VALUE, SUM(GVTF.TM_CPU_MIDDLE_BUCKETS_VALUE) TM_CPU_MIDDLE_BUCKETS_VALUE, SUM(GVTF.TM_CPU_LAST_BUCKET_VALUE) TM_CPU_LAST_BUCKET_VALUE, SUM(GVTF.TM_DB_FIRST_BUCKET_VALUE) TM_DB_FIRST_BUCKET_VALUE, SUM(GVTF.TM_DB_MIDDLE_BUCKETS_VALUE) TM_DB_MIDDLE_BUCKETS_VALUE, SUM(GVTF.TM_DB_LAST_BUCKET_VALUE) TM_DB_LAST_BUCKET_VALUE, SUM(GVTF.RREQS_FIRST_BUCKET_VALUE) RREQS_FIRST_BUCKET_VALUE, SUM(GVTF.RREQS_MIDDLE_BUCKETS_VALUE) RREQS_MIDDLE_BUCKETS_VALUE, SUM(GVTF.RREQS_LAST_BUCKET_VALUE) RREQS_LAST_BUCKET_VALUE, SUM(GVTF.WREQS_FIRST_BUCKET_VALUE) WREQS_FIRST_BUCKET_VALUE, SUM(GVTF.WREQS_MIDDLE_BUCKETS_VALUE) WREQS_MIDDLE_BUCKETS_VALUE, SUM(GVTF.WREQS_LAST_BUCKET_VALUE) WREQS_LAST_BUCKET_VALUE, SUM(GVTF.RBYTES_FIRST_BUCKET_VALUE) RBYTES_FIR ST_BUCKET_VALUE, SUM(GVTF.RBYTES_MIDDLE_BUCKETS_VALUE) RBYTES_MIDDLE_BUCKETS_VALUE, SUM(GVTF.RBYTES_LAST_BUCKET_VALUE) RBYTES_LAST_BUCKET_VALUE, SUM(GVTF.WBYTES_FIRST_BUCKET_VALUE) WBYTES_FIRST_BUCKET_VALUE, SUM(GVTF.WBYTES_MIDDLE_BUCKETS_VALUE) WBYTES_MIDDLE_BUCKETS_VALUE, SUM(GVTF.WBYTES_LAST_BUCKET_VALUE) WBYTES_LAST_BUCKET_VALUE, SUM(GVTF.IBYTES_FIRST_BUCKET_VALUE) IBYTES_FIRST_BUCKET_VALUE, SUM(GVTF.IBYTES_MIDDLE_BUCKETS_VALUE) IBYTES_MIDDLE_BUCKETS_VALUE, SUM(GVTF.IBYTES_LAST_BUCKET_VALUE) IBYTES_LAST_BUCKET_VALUE, SUM(GVTF.CRBYTES_FIRST_BUCKET_VALUE) CRBYTES_FIRST_BUCKET_VALUE, SUM(GVTF.CRBYTES_MIDDLE_BUCKETS_VALUE) CRBYTES_MIDDLE_BUCKETS_VALUE, SUM(GVTF.CRBYTES_LAST_BUCKET_VALUE) CRBYTES_LAST_BUCKET_VALUE, SUM(GVTF.PGA_ALLOC_FIRST_BUCKET_VALUE) PGA_ALLOC_FIRST_BUCKET_VALUE, SUM(GVTF.PGA_ALLOC_MIDDLE_BUCKETS_VALUE) PGA_ALLOC_MIDDLE_BUCKETS_VALUE, SUM(GVTF.PGA_ALLOC_LAST_BUCKET_VALUE) PGA_ALLOC_LAST_BUCKET_VALUE, SUM(GVTF.TMP_ALLOC_FIRST_BUCKET_VALUE) TMP_ALLOC_FIR ST_BUCKET_VALUE, SUM(GVTF.TMP_ALLOC_MIDDLE_BUCKETS_VALUE) TMP_ALLOC_MIDDLE_BUCKETS_VALUE, SUM(GVTF.TMP_ALLOC_LAST_BUCKET_VALUE) TMP_ALLOC_LAST_BUCKET_VALUE FROM TABLE(SYS.GV$(CURSOR( SELECT INST_ID, GROUP_TYPE, BUCKET_START, TM_BUCKET_START, TM_BUCKET_END, BUCKET_END, TM_GROUP_TYPE, SUM(TM_DELTA_CPU_TIME * TM_FIRST_BUCKET_RATIO) TM_CPU_FIRST_BUCKET_VALUE, SUM(TM_DELTA_CPU_TIME * TM_MIDDLE_BUCKETS_RATIO) TM_CPU_MIDDLE_BUCKETS_VALUE, SUM(TM_DELTA_CPU_TIME * TM_LAST_BUCKET_RATIO) TM_CPU_LAST_BUCKET_VALUE, SUM(TM_DELTA_DB_TIME * TM_FIRST_BUCKET_RATIO) TM_DB_FIRST_BUCKET_VALUE, SUM(TM_DELTA_DB_TIME * TM_MIDDLE_BUCKETS_RATIO) TM_DB_MIDDLE_BUCKETS_VALUE, SUM(TM_DELTA_DB_TIME * TM_LAST_BUCKET_RATIO) TM_DB_LAST_BUCKET_VALUE, SUM(DELTA_READ_REQUESTS * FIRST_BUCKET_RATIO) RREQS_FIRST_BUCKET_VALUE, SUM(DELTA_READ_REQUESTS * MIDDLE_BUCKETS_RATIO) RREQS_MIDDLE_BUCKETS_VALUE, SUM(DELTA_READ_REQUESTS * LAST_BUCKET_RATIO) RREQS_LAST_BUCKET_VALUE, SUM(DELTA_WRITE_REQUESTS * FIRST_BUCKE T_RATIO) WREQS_FIRST_BUCKET_VALUE, SUM(DELTA_WRITE_REQUESTS * MIDDLE_BUCKETS_RATIO) WREQS_MIDDLE_BUCKETS_VALUE, SUM(DELTA_WRITE_REQUESTS * LAST_BUCKET_RATIO) WREQS_LAST_BUCKET_VALUE, SUM(DELTA_READ_BYTES * FIRST_BUCKET_RATIO) RBYTES_FIRST_BUCKET_VALUE, SUM(DELTA_READ_BYTES * MIDDLE_BUCKETS_RATIO) RBYTES_MIDDLE_BUCKETS_VALUE, SUM(DELTA_READ_BYTES * LAST_BUCKET_RATIO) RBYTES_LAST_BUCKET_VALUE, SUM(DELTA_WRITE_BYTES * FIRST_BUCKET_RATIO) WBYTES_FIRST_BUCKET_VALUE, SUM(DELTA_WRITE_BYTES * MIDDLE_BUCKETS_RATIO) WBYTES_MIDDLE_BUCKETS_VALUE, SUM(DELTA_WRITE_BYTES * LAST_BUCKET_RATIO) WBYTES_LAST_BUCKET_VALUE, SUM(DELTA_INTERCONNECT_BYTES * FIRST_BUCKET_RATIO) IBYTES_FIRST_BUCKET_VALUE, SUM(DELTA_INTERCONNECT_BYTES * MIDDLE_BUCKETS_RATIO) IBYTES_MIDDLE_BUCKETS_VALUE, SUM(DELTA_INTERCONNECT_BYTES * LAST_BUCKET_RATIO) IBYTES_LAST_BUCKET_VALUE, SUM(DELTA_READ_MEM_BYTES * FIRST_BUCKET_RATIO) CRBYTES_FIRST_BUCKET_VALUE, SUM(DELTA_READ_MEM_BYTES * MIDDLE_BUCKETS_RATIO) CRBYTES_MIDDLE_BU CKETS_VALUE, SUM(DELTA_READ_MEM_BYTES * LAST_BUCKET_RATIO) CRBYTES_LAST_BUCKET_VALUE, SUM(PGA_ALLOCATED * LENGTH_SEG * FIRST_BUCKET_RATIO) PGA_ALLOC_FIRST_BUCKET_VALUE, SUM(PGA_ALLOCATED * LENGTH_SEG * MIDDLE_BUCKETS_RATIO) PGA_ALLOC_MIDDLE_BUCKETS_VALUE, SUM(PGA_ALLOCATED * LENGTH_SEG * LAST_BUCKET_RATIO) PGA_ALLOC_LAST_BUCKET_VALUE, SUM(TEMP_SPACE_ALLOCATED * LENGTH_SEG * FIRST_BUCKET_RATIO) TMP_ALLOC_FIRST_BUCKET_VALUE, SUM(TEMP_SPACE_ALLOCATED * LENGTH_SEG * MIDDLE_BUCKETS_RATIO) TMP_ALLOC_MIDDLE_BUCKETS_VALUE, SUM(TEMP_SPACE_ALLOCATED * LENGTH_SEG * LAST_BUCKET_RATIO) TMP_ALLOC_LAST_BUCKET_VALUE FROM ( SELECT USERENV('INSTANCE') INST_ID, ROW_ID, SID, SAMPLE_TIME, CASE WHEN BUCKET_END IS NULL OR BUCKET_START IS NULL THEN NULL WHEN BUCKET_START = TM_BUCKET_START AND BUCKET_START = BUCKET_END THEN 'CO' WHEN BUCKET_START = TM_BUCKET_START THEN 'CM' WHEN BUCKET_START = BUCKET_END THEN 'SO' ELSE 'SM' END GROUP_TYPE, CASE WHEN TM_BUCKET_START IS NULL OR BUCKET_END IS NULL OR (TM_BUCKET_START = BUCKET_START) THEN NULL WHEN TM_BUCKET_START = BUCKET_END THEN 'O' ELSE 'M' END TM_GROUP_TYPE, START_SEG, BUCKET_START, BUCKET_START_OFFSET, TM_START_SEG, CASE WHEN TM_BUCKET_START IS NULL OR (TM_BUCKET_START = BUCKET_START) THEN NULL ELSE TM_BUCKET_START END TM_BUCKET_START, CASE WHEN TM_BUCKET_START IS NULL OR (TM_BUCKET_START = BUCKET_START) THEN NULL ELSE BUCKET_END END TM_BUCKET_END, TM_BUCKET_START_OFFSET, LENGTH_SEG, TM_LENGTH_SEG, END_SEG, BUCKET_END, BUCKET_END_OFFSET, CASE WHEN BUCKET_START != BUCKET_END THEN (:B9 - BUCKET_START_OFFSET) / LENGTH_SEG ELSE 1 END FIRST_BUCKET_RATIO, CASE WHEN BUCKET_END >= BUCKET_START + 2 THEN :B9 / LENGTH_SEG ELSE NULL END MIDDLE_BUCKETS_RATIO, CASE WHEN BUCKET_START != BUCKET_END THEN BUCKET_END_OFFSET / LENGTH_SEG ELSE NULL END LAST_BUCKET_RATIO, CASE WHEN TM_BUCKET_START != BUCKET_END THEN (:B9 - TM_BUCKET_START_OFFSET) / TM_LENGTH_SEG ELSE 1 END TM_FIRST_BUCKET_RATIO, CASE WHEN BUCKET_END >= TM_BUC KET_START + 2 THEN :B9 / TM_LENGTH_SEG ELSE NULL END TM_MIDDLE_BUCKETS_RATIO, CASE WHEN TM_BUCKET_START != BUCKET_END THEN BUCKET_END_OFFSET / TM_LENGTH_SEG ELSE NULL END TM_LAST_BUCKET_RATIO, TM_DELTA_CPU_TIME, TM_DELTA_DB_TIME, DELTA_READ_IO_REQUESTS DELTA_READ_REQUESTS, DELTA_WRITE_IO_REQUESTS DELTA_WRITE_REQUESTS, DELTA_READ_IO_BYTES DELTA_READ_BYTES, DELTA_WRITE_IO_BYTES DELTA_WRITE_BYTES, DELTA_INTERCONNECT_IO_BYTES DELTA_INTERCONNECT_BYTES, DELTA_READ_MEM_BYTES DELTA_READ_MEM_BYTES, PGA_ALLOCATED, TEMP_SPACE_ALLOCATED FROM (SELECT ROW_ID, SID, SAMPLE_TIME, START_SEG, TRUNC(START_SEG / :B9 ) BUCKET_START, MOD(START_SEG, :B9 ) BUCKET_START_OFFSET, TM_START_SEG, TRUNC(TM_START_SEG/:B9 ) TM_BUCKET_START, MOD(TM_START_SEG, :B9 ) TM_BUCKET_START_OFFSET, TRUNC(END_SEG/:B9 ) BUCKET_END, MOD(END_SEG, :B9 ) BUCKET_END_OFFSET, END_SEG, LENGTH_SEG, TM_LENGTH_SEG, TM_DELTA_CPU_TIME, TM_DELTA_DB_TIME, DELTA_READ_IO_REQUESTS, DELTA_WRITE_IO_REQUESTS, DELTA_READ_ IO_BYTES, DELTA_WRITE_IO_BYTES, DELTA_INTERCONNECT_IO_BYTES, DELTA_READ_MEM_BYTES, PGA_ALLOCATED, TEMP_SPACE_ALLOCATED FROM (SELECT ROW_ID, SID, SAMPLE_TIME, TIME_INTERVAL, CASE WHEN START_SEG < 0 THEN 0 ELSE START_SEG END START_SEG, CASE WHEN TM_START_SEG < 0 THEN 0 ELSE TM_START_SEG END TM_START_SEG, CASE WHEN END_SEG > TIME_INTERVAL THEN TIME_INTERVAL ELSE END_SEG END END_SEG, (LENGTH_SEG - (CASE WHEN START_SEG < 0 THEN -START_SEG ELSE 0 END + CASE WHEN END_SEG > TIME_INTERVAL THEN END_SEG - TIME_INTERVAL ELSE 0 END)) LENGTH_SEG, (TM_LENGTH_SEG - (CASE WHEN TM_START_SEG < 0 THEN -TM_START_SEG ELSE 0 END + CASE WHEN END_SEG > TIME_INTERVAL THEN END_SEG - TIME_INTERVAL ELSE 0 END)) TM_LENGTH_SEG, TM_DELTA_CPU_TIME, TM_DELTA_DB_TIME, DELTA_READ_IO_REQUESTS, DELTA_WRITE_IO_REQUESTS, DELTA_READ_IO_BYTES, DELTA_WRITE_IO_BYTES, DELTA_INTERCONNECT_IO_BYTES, DELTA_READ_MEM_BYTES, PGA_ALLOCATED, TEMP_SPACE_ALLOCATED FROM (SELECT ROW_ID, SID, SAMPL E_TIME, TIME_INTERVAL, LENGTH_SEG, TM_LENGTH_SEG, END_SEG - TM_LENGTH_SEG TM_START_SEG, END_SEG - LENGTH_SEG START_SEG, END_SEG, TM_DELTA_CPU_TIME, TM_DELTA_DB_TIME, DELTA_READ_IO_REQUESTS, DELTA_WRITE_IO_REQUESTS, DELTA_READ_IO_BYTES, DELTA_WRITE_IO_BYTES, DELTA_INTERCONNECT_IO_BYTES, DELTA_READ_MEM_BYTES, PGA_ALLOCATED, TEMP_SPACE_ALLOCATED FROM (SELECT ROW_ID, SID, SAMPLE_TIME, EXTRACT(SECOND FROM REL_SAMPLE_TIME_INT) + EXTRACT(MINUTE FROM REL_SAMPLE_TIME_INT)*60 + EXTRACT(HOUR FROM REL_SAMPLE_TIME_INT)*3600 + EXTRACT(DAY FROM REL_SAMPLE_TIME_INT)*3600*24 END_SEG, TIME_INTERVAL, DELTA_TIME/1000000 LENGTH_SEG, TM_DELTA_TIME/1000000 TM_LENGTH_SEG, TM_DELTA_CPU_TIME, TM_DELTA_DB_TIME, DELTA_READ_IO_REQUESTS, DELTA_WRITE_IO_REQUESTS, DELTA_READ_IO_BYTES, DELTA_WRITE_IO_BYTES, DELTA_INTERCONNECT_IO_BYTES, DELTA_READ_MEM_BYTES, PGA_ALLOCATED, TEMP_SPACE_ALLOCATED FROM (SELECT ROWNUM ROW_ID, SESSION_ID SID, CAST(FROM_TZ(SAMPLE_TIME, DBTIMEZONE) AS DATE) S AMPLE_DATE, SAMPLE_TIME, (SAMPLE_TIME - CAST(:B8 AS TIMESTAMP)) REL_SAMPLE_TIME_INT, TRUNC((:B7 - :B8 ) * 3600 * 24) TIME_INTERVAL, :B8 AS BND_START_INTERVAL , :B7 AS BND_END_INTERVAL , TM_DELTA_TIME, TM_DELTA_CPU_TIME, TM_DELTA_DB_TIME, DELTA_TIME, DELTA_READ_IO_REQUESTS, DELTA_WRITE_IO_REQUESTS, DELTA_READ_IO_BYTES, DELTA_WRITE_IO_BYTES, DELTA_INTERCONNECT_IO_BYTES, DELTA_READ_MEM_BYTES, PGA_ALLOCATED, TEMP_SPACE_ALLOCATED FROM (SELECT ASH0.* FROM V$ACTIVE_SESSION_HISTORY ASH0 WHERE SAMPLE_TIME BETWEEN :B6 AND :B5 AND ( (SESSION_ID = :B2 AND SESSION_SERIAL# = :B1 AND USERENV('INSTANCE') = :B3 ) OR (:B4 = 'yes' AND QC_INSTANCE_ID = :B3 AND QC_SESSION_ID = :B2 AND QC_SESSION_SERIAL# = :B1 ))) ) ASH1 WHERE SAMPLE_DATE >= BND_START_INTERVAL AND SAMPLE_DATE <= BND_END_INTERVAL + 120/3600/24 ) ) WHERE START_SEG <= TIME_INTERVAL ) WHERE (LENGTH_SEG IS NOT NULL AND LENGTH_SEG > 0) OR (TM_LENGTH_SEG IS NOT NULL AND TM_LENGTH_SEG > 0)) ) GROUP BY INST_ID, GROUP _TYPE, BUCKET_START, BUCKET_END, TM_GROUP_TYPE, TM_BUCKET_START, TM_BUCKET_END))) GVTF WHERE INST_ID >= :B11 AND INST_ID <= :B10 GROUP BY GROUP_TYPE, BUCKET_START, BUCKET_END, TM_GROUP_TYPE, TM_BUCKET_START, TM_BUCKET_END ) GROUP BY GROUPING SETS ( (GROUP_TYPE, BUCKET_START, BUCKET_END), (TM_GROUP_TYPE, TM_BUCKET_START, TM_BUCKET_END) )
b5dk0t95fhyd7BEGIN :1 := orderentry.WarehouseOrdersQuery(:2 , :3 , :4 ); END;
budtrjayjnvw3INSERT INTO CARD_DETAILS ( CARD_ID, CUSTOMER_ID, CARD_TYPE, CARD_NUMBER, EXPIRY_DATE, IS_VALID, SECURITY_CODE ) VALUES ( :B2 , :B1 , 'Visa(Debit)', FLOOR(DBMS_RANDOM.VALUE(1111111111, 9999999999)), TRUNC(SYSDATE + (DBMS_RANDOM.VALUE(365, 1460))), 'Y', FLOOR(DBMS_RANDOM.VALUE(1111, 9999)) )
bxpcry2tpc217select /*+ opt_param('parallel_execution_enabled', 'false') EXEC_FROM_DBMS_XPLAN */ * from gv$all_sql_plan where 1=0
c13sma6rkr27cSELECT PRODUCTS.PRODUCT_ID, PRODUCT_NAME, PRODUCT_DESCRIPTION, CATEGORY_ID, WEIGHT_CLASS, WARRANTY_PERIOD, SUPPLIER_ID, PRODUCT_STATUS, LIST_PRICE, MIN_PRICE, CATALOG_URL, QUANTITY_ON_HAND FROM PRODUCTS, INVENTORIES WHERE PRODUCTS.CATEGORY_ID = :B3 AND INVENTORIES.PRODUCT_ID = PRODUCTS.PRODUCT_ID AND INVENTORIES.WAREHOUSE_ID = :B2 AND ROWNUM < :B1
cj9v3ynkm7uuyBEGIN :1 := orderentry.SalesRepsQuery(:2 , :3 , :4 ); END;
f0h5rpzmhju11select SYS_CONTEXT('USERENV', 'SERVER_HOST'), SYS_CONTEXT('USERENV', 'DB_UNIQUE_NAME'), SYS_CONTEXT('USERENV', 'INSTANCE_NAME'), SYS_CONTEXT('USERENV', 'INSTANCE'), STARTUP_TIME, SYS_CONTEXT('USERENV', 'DB_DOMAIN'), SYS_CONTEXT('USERENV', 'SERVICE_NAME') from v$instance
f7rxuxzt64k87INSERT INTO ORDER_ITEMS ( ORDER_ID, LINE_ITEM_ID, PRODUCT_ID, UNIT_PRICE, QUANTITY, GIFT_WRAP, CONDITION, ESTIMATED_DELIVERY ) VALUES ( :B4 , :B3 , :B2 , :B1 , 1, 'None', 'New', (SYSDATE + 3) )
f7xnvp44nukp7insert into wrm$_snapshot_details (snap_id, dbid, instance_number, table_id, begin_time, end_time, step_id) values (:snap_id, :dbid, :instance_number, :bind1, :bind2, :bind3, :step_id)
ffb1nv5k5adkgSELECT systimestamp "SNAPSHOT_TIME", concat(concat(s.sid, concat(', ', s.serial#)), concat(', ', s.inst_id)) "SESSION_ID", s.sid "SID", ( CASE WHEN s.sql_id is NULL THEN '0' ELSE s.sql_id END ) "SQL_ID", decode(s.WAIT_TIME, 0, 'WAITING', 'ON CPU') "WAIT_CLASS", s.serial# "SESSION_SERIAL", s.inst_id "INSTANCE_ID", s.user# "USER_ID", s.username "USER_NAME", s.schemaname "SCHEMA_NAME", s.machine "HOSTN AME", s.sql_address "SQL_ADDRESS", s.command "SQL_OPCODE", s.type "SESSION_TYPE", decode(s.WAIT_TIME, 0, s.event, 'ON CPU') "WAIT_EVENT", s.p1 "P1", s.p2 "P2", s.p3 "P3", s.paddr "PADDR", s.ROW_WAIT_OBJ# "CURRENT_OBJ", s.ROW_WAIT_FILE# "CURRENT_FILE", s.ROW_WAIT_BLOCK# "CURRENT_BLOCK", s.ROW_WAIT_ROW# "CURRENT_ROW", s.program "APPLICATION", s.module "MODULE", s.act ion "ACTION", s.sql_child_number "CHILD_NUMBER", s.logon_time "LOGIN_TIME", s.server "CONNECTION_TYPE", s.RESOURCE_CONSUMER_GROUP "RESOURCE_GROUP", s.osuser "OS_USER", s.process "OS_PID", s.terminal "TERMINAL", s.client_info "CLIENT_INFO", s.client_identifier "CLIENT_ID", s.last_call_et "LAST_CALL_ELAPSED_TIME", s.sql_trace "SQL_TRACE", s.PLSQL_ENTRY_OBJECT_ID "ENTRY_OBJECT_ID", s.PLSQL_ENTRY_SUBPROGRAM_ID "ENTRY_SUBPROGRAM_ID ", s.PLSQL_OBJECT_ID "OBJECT_ID", s.PLSQL_SUBPROGRAM_ID "SUBPROGRAM_ID", s.BLOCKING_SESSION_STATUS "BLOCKING_SESSION_STATUS", s.BLOCKING_INSTANCE "BLOCKING_INSTANCE", s.BLOCKING_SESSION "BLOCKING_SESSION" FROM gv$session s WHERE ( s.inst_id != ( SELECT CAST(value AS INTEGER) FROM v$parameter WHERE name = 'instance_number' ) OR s.sid != ( SELECT DISTINCT sid FROM v$mystat WHERE rownum < 2 ) ) AND ( ( s.wait_time != 0 AND /* on CPU */ s.status = 'ACTIVE' /* ACTIVE */ ) OR s.wait_class !='Idle' ) --##IGNORE_THIS##
fh5ufah919kunselect /*+ index(idl_sb4$ i_idl_sb41) */ piece#, length, piece from idl_sb4$ where obj#=:1 and part=:2 and version=:3 order by piece#
fhf8upax5cxszBEGIN sys.dbms_auto_report_internal.i_save_report (:rep_ref, :snap_id, :pr_class, :rep_id, :suc); END;
fn5s5p6hr6702INSERT INTO wri$_adv_message_groups (task_id, id, seq, message#, fac, hdr, lm, nl, p1, p2, p3, p4, p5) VALUES (:1, :2, :3, :4, :5, :6, :7, :8, :9, :10, :11, :12, :13)
g81cbrq5yamf5SELECT ADDRESS_ID, CUSTOMER_ID, DATE_CREATED, HOUSE_NO_OR_NAME, STREET_NAME, TOWN, COUNTY, COUNTRY, POST_CODE, ZIP_CODE FROM ADDRESSES WHERE CUSTOMER_ID = :B2 AND ROWNUM < :B1
gh2g2tynpcpv1INSERT INTO CUSTOMERS ( CUSTOMER_ID , CUST_FIRST_NAME , CUST_LAST_NAME , NLS_LANGUAGE , NLS_TERRITORY , CREDIT_LIMIT , CUST_EMAIL , ACCOUNT_MGR_ID, CUSTOMER_SINCE, CUSTOMER_CLASS, SUGGESTIONS, DOB, MAILSHOT, PARTNER_MAILSHOT, PREFERRED_ADDRESS, PREFERRED_CARD ) VALUES ( :B11 , :B6 , :B5 , :B10 , :B9 , FLOOR(DBMS_RANDOM.VALUE(:B8 , :B7 )), :B6 ||'.' ||:B5 ||'@' ||'oracle.com', FLOOR(DBMS_RANDOM.VALUE(:B4 , :B3 )), TRUNC(SYSDATE), 'Occasional', 'Music', TRUNC(SYSDATE - (365*DBMS_RANDOM.VALUE(20, 60))), 'Y', 'N', :B2 , :B1 )
gkxxkghxubh1aSELECT ORDER_MODE, ORDERS.WAREHOUSE_ID, SUM(ORDER_TOTAL), COUNT(1) FROM ORDERS, WAREHOUSES WHERE ORDERS.WAREHOUSE_ID = WAREHOUSES.WAREHOUSE_ID AND WAREHOUSES.WAREHOUSE_ID = :B1 GROUP BY CUBE(ORDERS.ORDER_MODE, ORDERS.WAREHOUSE_ID)
grwydz59pu6mcselect text from view$ where rowid=:1
gzhkw1qu6fwxmINSERT INTO LOGON (LOGON_ID, CUSTOMER_ID, LOGON_DATE) VALUES (LOGON_SEQ.NEXTVAL, :B2 , :B1 )

Back to SQL Statistics
Back to Top

Instance Activity Statistics

Back to Top

Key Instance Activity Stats

StatisticTotalper Secondper Trans
db block changes823,316753.0563.67
execute count402,618368.2631.13
gc cr block receive time1,3811.260.11
gc cr blocks received29,93127.382.31
gc current block receive time29,68927.162.30
gc current blocks received127,651116.769.87
logons cumulative9450.860.07
opened cursors cumulative355,409325.0827.48
parse count (total)14,16812.961.10
parse time elapsed4600.420.04
physical reads8,872,4308,115.19686.08
physical writes91,95984.117.11
redo size66,437,84860,767.575,137.48
session cursor cache hits347,101317.4826.84
session logical reads84,069,62776,894.526,500.90
user calls61,26156.034.74
user commits12,93211.831.00
user rollbacks00.000.00
workarea executions - onepass00.000.00
workarea executions - optimal18,47616.901.43


Back to Instance Activity Statistics
Back to Top

Instance Activity Stats

StatisticTotalper Secondper Trans
ASSM bg: segment fix monitor20.000.00
ASSM cbk:blocks examined24,28222.211.88
ASSM cbk:blocks marked full4910.450.04
ASSM gsp:L1 bitmaps examined24,14122.081.87
ASSM gsp:L2 bitmap full1520.140.01
ASSM gsp:L2 bitmaps examined12,12911.090.94
ASSM gsp:L3 bitmaps examined1090.100.01
ASSM gsp:Optimized reject DB00.000.00
ASSM gsp:Optimized reject l100.000.00
ASSM gsp:Optimized reject l200.000.00
ASSM gsp:Search all210.020.00
ASSM gsp:Search hint300.030.00
ASSM gsp:Search steal140.010.00
ASSM gsp:bump HWM140.010.00
ASSM gsp:get free block23,79121.761.84
ASSM gsp:get free data block23,30021.311.80
ASSM gsp:get free index block4910.450.04
ASSM gsp:good hint11,84910.840.92
ASSM gsp:reject L100.000.00
ASSM gsp:reject L21020.090.01
ASSM gsp:reject db00.000.00
ASSM rsv:fill reserve30.000.00
ASSM wasted db state change210.020.00
Batched IO (bound) vector count1,4171.300.11
Batched IO (full) vector count112,528102.928.70
Batched IO (space) vector count50,96146.613.94
Batched IO block miss count14,874,99813,605.461,150.25
Batched IO buffer defrag count75,16768.755.81
Batched IO double miss count2,550,7392,333.04197.24
Batched IO same unit count486,814445.2737.64
Batched IO single block count3,1302.860.24
Batched IO slow jump count00.000.00
Batched IO vector block count14,546,92813,305.391,124.88
Batched IO vector read count166,582152.3612.88
Block Cleanout Optim referenced1400.130.01
CCursor + sql area evicted50.000.00
CPU used by this session77,17770.595.97
CPU used when call started72,69566.495.62
CR blocks created2,3532.150.18
Cached Commit SCN referenced00.000.00
Client Advertised Receive Window00.000.00
Client Advertised Send Window00.000.00
Client Path Maximum Transmission Unit(MTU)00.000.00
Client Send Congestion Window00.000.00
Client Time (usec) Last Ack Received00.000.00
Client Time (usec) Last Data Received00.000.00
Client Time (usec) Last Data Sent00.000.00
Client Time (usec) Round Trip Time00.000.00
Client Time (usec) Round Trip Time Variance00.000.00
Client Total Bytes Acked00.000.00
Client Total Bytes Received00.000.00
Commit SCN cached00.000.00
DBWR checkpoint buffers written1,7321.580.13
DBWR checkpoints1020.090.01
DBWR fusion writes10,4369.550.81
DBWR object drop buffers written920.080.01
DBWR parallel query checkpoint buffers written00.000.00
DBWR thread checkpoint buffers written00.000.00
DBWR transaction table writes2570.240.02
DBWR undo block writes3,9373.600.30
DDL statements parallelized00.000.00
DFO trees parallelized5360.490.04
DML statements retried00.000.00
Effective IO time2,656,3212,429.61205.41
HSC Heap Segment Block Changes58,76553.754.54
Heap Segment Array Deletes00.000.00
Heap Segment Array Inserts1990.180.02
Heap Segment Array Updates310.030.00
Heatmap BlkLevel Flushed00.000.00
Heatmap BlkLevel Flushed to BF00.000.00
Heatmap BlkLevel Ranges Flushed00.000.00
Heatmap Blklevel Flush Task Count00.000.00
KTFB alloc req3210.290.02
KTFB alloc space (block)30,867,45628,233.012,386.91
KTFB alloc time (ms)733,528670.9256.72
KTFB apply req3020.280.02
KTFB apply time (ms)1,7491.600.14
KTFB commit req00.000.00
KTFB commit time (ms)00.000.00
KTFB free req00.000.00
KTFB free space (block)00.000.00
KTFB free time (ms)00.000.00
LOB table id lookup cache misses00.000.00
Number of read IOs issued1610.150.01
OS Block input operations00.000.00
OS Block output operations00.000.00
OS Involuntary context switches00.000.00
OS Maximum resident set size00.000.00
OS Page faults00.000.00
OS Page reclaims00.000.00
OS System time used00.000.00
OS User time used00.000.00
OS Voluntary context switches00.000.00
PX local messages recv'd9,7318.900.75
PX local messages sent9,7318.900.75
PX remote messages recv'd6,2045.670.48
PX remote messages sent2,0651.890.16
Parallel operations not downgraded7000.640.05
Requests to/from client54,36849.734.20
RowCR attempts80.010.00
RowCR hits50.000.00
SMON posted for undo segment shrink00.000.00
SQL*Net roundtrips to/from client54,47849.834.21
TBS Extension: bytes extended00.000.00
TBS Extension: files extended00.000.00
TBS Extension: tasks created00.000.00
TBS Extension: tasks executed00.000.00
active txn count during cleanout6920.630.05
auto extends on undo tablespace00.000.00
background checkpoints completed00.000.00
background checkpoints started00.000.00
background timeouts9,4638.660.73
blocks cleaned out using minact25,29923.141.96
branch node splits690.060.01
buffer is not pinned count107,766,08498,568.558,333.29
buffer is pinned count81,646,31674,678.036,313.51
bytes received via SQL*Net from client5,063,7794,631.60391.57
bytes sent via SQL*Net to client9,312,0618,517.30720.08
calls to get snapshot scn: kcmgss603,713552.1946.68
calls to kcmgas48,29144.173.73
calls to kcmgcs184,574168.8214.27
cell physical IO interconnect bytes74,692,660,22468,317,853.045,775,801.13
change write time1330.120.01
cleanout - number of ktugct calls8370.770.06
cleanouts and rollbacks - consistent read gets760.070.01
cleanouts only - consistent read gets980.090.01
cluster key scan block gets82,97675.896.42
cluster key scans58,08853.134.49
commit batch performed00.000.00
commit batch requested00.000.00
commit batch/immediate performed1000.090.01
commit batch/immediate requested1000.090.01
commit cleanout failures: block lost1090.100.01
commit cleanout failures: buffer being written70.010.00
commit cleanout failures: callback failure170.020.00
commit cleanout failures: cannot pin80.010.00
commit cleanouts111,509101.998.62
commit cleanouts successfully completed111,368101.868.61
commit immediate performed1000.090.01
commit immediate requested1000.090.01
commit nowait performed00.000.00
commit nowait requested00.000.00
commit txn count during cleanout5870.540.05
commit wait/nowait performed00.000.00
commit wait/nowait requested00.000.00
consistent changes438,798401.3533.93
consistent gets82,406,94975,373.756,372.33
consistent gets direct2810.260.02
consistent gets examination7,377,9086,748.22570.52
consistent gets examination (fastpath)7,205,1146,590.18557.15
consistent gets from cache82,406,66875,373.496,372.31
consistent gets pin75,028,76068,625.275,801.79
consistent gets pin (fastpath)74,673,32068,300.165,774.31
cumulative begin requests1000.090.01
cumulative end requests00.000.00
cursor authentications1180.110.01
cursor reload failures20.000.00
data blocks consistent reads - undo records applied4,3153.950.33
db block changes823,316753.0563.67
db block gets1,662,6811,520.78128.57
db block gets direct2,1261.940.16
db block gets from cache1,660,5551,518.83128.41
db block gets from cache (fastpath)1,350,0781,234.85104.40
deferred (CURRENT) block cleanout applications29,97827.422.32
dirty buffers inspected87,10879.676.74
enqueue conversions10,4509.560.81
enqueue releases156,252142.9212.08
enqueue requests156,846143.4612.13
enqueue timeouts5850.540.05
enqueue waits1,4551.330.11
exchange deadlocks120.010.00
execute count402,618368.2631.13
failed probes on index block reclamation00.000.00
file io service time92,128,20384,265.327,124.05
free buffer inspected12,965,63711,859.061,002.60
free buffer requested9,178,0318,394.71709.71
gc blocks compressed62,79157.434.86
gc blocks lost800.070.01
gc cleanout applied830.080.01
gc cleanout saved1050.100.01
gc cr anti locks created8,5277.800.66
gc cr anti locks expanded1,8131.660.14
gc cr anti locks shrunk1,8851.720.15
gc cr block build time120.010.00
gc cr block flush time1,0941.000.08
gc cr block receive time1,3811.260.11
gc cr blocks built27,86625.492.15
gc cr blocks flushed1940.180.02
gc cr blocks received29,93127.382.31
gc cr blocks served29,99727.442.32
gc cr multiblock grant time11,88110.870.92
gc cr multiblock grants received201,375184.1915.57
gc current block flush time9990.910.08
gc current block pin time330.030.00
gc current block receive time29,68927.162.30
gc current blocks flushed1790.160.01
gc current blocks pinned20.000.00
gc current blocks received127,651116.769.87
gc current blocks served74,03167.715.72
gc force cr read cr3090.280.02
gc force cr read current140.010.00
gc kbytes saved363,101332.1128.08
gc kbytes sent469,123429.0836.28
gc local grants8,594,3507,860.85664.58
gc merge pi bg10.000.00
gc merge pi fg3,3333.050.26
gc no change made120.010.00
gc read time waited53,85649.264.16
gc read wait failures10.000.00
gc read waits1,2201.120.09
gc reader bypass grants4,4754.090.35
gc reader bypass waits1,0160.930.08
gc remote grants300,592274.9423.24
gc status messages received212,346194.2216.42
gc status messages sent197,791180.9115.29
gc undo block disk read20.000.00
gcs affinity lock failures00.000.00
gcs affinity lock grants3,5853.280.28
gcs anti-locks created8,4997.770.66
gcs data block access record drops00.000.00
gcs data block access records9,023,4758,253.35697.76
gcs messages sent1,001,033915.6077.41
gcs read-mostly lock failures70,45264.445.45
gcs read-mostly lock grants8,297,8457,589.65641.65
gcs stats management (SCM) process posts240.020.00
ges messages sent13,99912.801.08
global enqueue gets async00.000.00
global enqueue gets sync516,344472.2839.93
global enqueue releases505,158462.0439.06
global undo segment hints helped00.000.00
global undo segment hints were stale00.000.00
heap block compress970.090.01
hot buffers moved to head of LRU14,792,70213,530.191,143.88
immediate (CR) block cleanout applications1740.160.01
immediate (CURRENT) block cleanout applications5,7595.270.45
index crx upgrade (positioned)00.000.00
index fast full scans (direct read)00.000.00
index fast full scans (full)20.000.00
index fast full scans (rowid ranges)00.000.00
index fetch by key2,313,0632,115.65178.86
index range scans571,342522.5844.18
index reclamation/extension switch00.000.00
index split cancel wait noclean360.030.00
leaf node 90-10 splits70.010.00
leaf node splits3790.350.03
lob reads1,8201.660.14
lob writes75,37868.945.83
lob writes unaligned75,37868.945.83
logical read bytes from cache688,678,690,816629,901,913.3853,253,842.47
logons cumulative9450.860.07
max cf enq hold time00.000.00
messages received14,44113.211.12
messages sent14,44113.211.12
min active SCN optimization applied on CR8,1987.500.63
no work - consistent read gets74,857,07768,468.245,788.52
non-idle wait count1,706,2671,560.64131.94
opened cursors cumulative355,409325.0827.48
parse count (describe)00.000.00
parse count (failures)10.000.00
parse count (hard)2480.230.02
parse count (total)14,16812.961.10
parse time cpu3090.280.02
parse time elapsed4600.420.04
physical read IO requests8,863,5058,107.03685.39
physical read bytes72,682,946,56066,479,662.755,620,394.88
physical read total IO requests8,882,6338,124.53686.87
physical read total bytes73,020,219,39266,788,150.305,646,475.36
physical read total multi block requests850.080.01
physical reads8,872,4308,115.19686.08
physical reads cache8,872,1478,114.93686.06
physical reads cache prefetch8,347,3937,634.97645.48
physical reads direct2810.260.02
physical reads direct (lob)1770.160.01
physical reads direct temporary tablespace1770.160.01
physical write IO requests82,75275.696.40
physical write bytes753,328,128689,033.7058,253.03
physical write total IO requests93,97885.967.27
physical write total bytes832,418,304761,373.7664,368.88
physical write total multi block requests1010.090.01
physical writes91,95984.117.11
physical writes direct2,1521.970.17
physical writes direct (lob)4620.420.04
physical writes direct temporary tablespace1,6221.480.13
physical writes from cache89,80782.146.94
physical writes non checkpoint85,58778.286.62
pinned buffers inspected5,7475.260.44
pinned cursors current120.010.00
prefetched blocks aged out before use10.000.00
process last non-idle time1,0941.000.08
queries parallelized40.000.00
recovery blocks read20.000.00
recursive calls2,190,4052,003.46169.38
recursive cpu usage73,25667.005.66
redo KB read12,28811.240.95
redo blocks checksummed by FG (exclusive)22,16920.281.71
redo blocks written139,597127.6810.79
redo blocks written (group 0)00.000.00
redo blocks written (group 1)00.000.00
redo buffer allocation retries00.000.00
redo entries210,664192.6816.29
redo log space requests00.000.00
redo ordering marks00.000.00
redo size66,437,84860,767.575,137.48
redo size for direct writes4800.440.04
redo subscn max counts4,6004.210.36
redo synch long waits920.080.01
redo synch time72,51866.335.61
redo synch time (usec)725,164,687663,273.9356,075.22
redo synch time overhead (usec)2,158,0681,973.88166.88
redo synch time overhead count ( 2ms)13,33012.191.03
redo synch time overhead count ( 8ms)1090.100.01
redo synch time overhead count ( 32ms)190.020.00
redo synch time overhead count (128ms)110.010.00
redo synch writes13,99812.801.08
redo wastage2,713,5202,481.93209.83
redo write active strands10,7459.830.83
redo write broadcast ack count2360.220.02
redo write broadcast ack time752,903688.6458.22
redo write finish time249,904,920228,576.2419,324.54
redo write gather time378,072345.8029.24
redo write info find13,46912.321.04
redo write schedule time434,378397.3133.59
redo write size count ( 4KB)5,2984.850.41
redo write size count ( 8KB)2,6872.460.21
redo write size count ( 16KB)1,6451.500.13
redo write size count ( 32KB)5000.460.04
redo write size count ( 128KB)2180.200.02
redo write size count ( 256KB)70.010.00
redo write size count ( 512KB)30.000.00
redo write size count (1024KB)50.000.00
redo write size count (inf)00.000.00
redo write time24,99222.861.93
redo write time (usec)249,914,287228,584.8119,325.26
redo write total time250,150,265228,800.6519,343.51
redo write worker delay (usec)00.000.00
redo write worker delay count00.000.00
redo writes10,3639.480.80
redo writes (group 0)00.000.00
redo writes (group 1)00.000.00
redo writes adaptive all10,3639.480.80
redo writes adaptive worker00.000.00
remote Oradebug requests40.000.00
rollback changes - undo records applied1890.170.01
rollbacks only - consistent read gets2,3262.130.18
root node splits00.000.00
rows fetched via callback2,194,8752,007.55169.72
saved cleanout failures: callback failure90.010.00
saved cleanouts920.080.01
saved cleanouts successfully completed830.080.01
securefile allocation bytes221,184202.3117.10
securefile allocation chunks240.020.00
securefile bytes non-transformed166,172151.9912.85
securefile direct read bytes00.000.00
securefile direct read ops00.000.00
securefile direct write bytes221,184202.3117.10
securefile direct write ops240.020.00
securefile number of non-transformed flushes370.030.00
segment cfs allocations00.000.00
segment chunks allocation from dispenser240.020.00
segment dispenser allocations240.020.00
segment dispenser load empty00.000.00
segment dispenser load tasks00.000.00
segment prealloc bytes00.000.00
segment prealloc ops60.010.00
segment prealloc tasks00.000.00
segment prealloc time (ms)7,5496.900.58
segment total chunk allocation00.000.00
session cursor cache hits347,101317.4826.84
session logical reads84,069,62776,894.526,500.90
shared hash latch upgrades - no wait8,632,1477,895.42667.50
shared hash latch upgrades - wait5,4735.010.42
shared io pool buffer get success240.020.00
sorts (disk)00.000.00
sorts (memory)4,3673.990.34
sorts (rows)74,170,29067,840.075,735.41
sql area evicted70.010.00
sql area purged40.000.00
summed dirty queue length2,657,8642,431.02205.53
switch current caused by our pin2610.240.02
switch current to new buffer3550.320.03
table fetch by rowid93,192,57385,238.857,206.35
table fetch continued row900.080.01
table scan blocks gotten1,123,8891,027.9786.91
table scan disk non-IMC rows gotten33,254,54130,416.362,571.49
table scan rows gotten33,254,54130,416.362,571.49
table scans (direct read)00.000.00
table scans (long tables)00.000.00
table scans (rowid ranges)00.000.00
table scans (short tables)41,18137.673.18
temp space allocated (bytes)3,145,7282,877.25243.25
total cf enq hold time11,96710.950.93
total number of cf enq holders1530.140.01
total number of times SMON posted00.000.00
transaction lock background get time00.000.00
transaction lock background gets00.000.00
transaction lock foreground requests00.000.00
transaction rollbacks960.090.01
transaction tables consistent read rollbacks00.000.00
transaction tables consistent reads - undo records applied00.000.00
undo change vector size20,600,41218,842.231,592.98
user calls61,26156.034.74
user commits12,93211.831.00
user logons cumulative2160.200.02
user logouts cumulative2070.190.02
user rollbacks00.000.00
workarea executions - onepass00.000.00
workarea executions - optimal18,47616.901.43
write clones created in background00.000.00
write clones created in foreground2,1651.980.17


Back to Instance Activity Statistics
Back to Top

Instance Activity Stats - Absolute Values

StatisticBegin ValueEnd Value
logons current106115
opened cursors current219237
session cursor cache count32,25537,083
session pga memory733,526,312781,431,440
session pga memory max1,087,471,8801,170,831,984
session uga memory2,252,709,2802,494,971,816
session uga memory max69,831,356,84873,021,813,136


Back to Instance Activity Statistics
Back to Top

Instance Activity Stats - Thread Activity

StatisticTotalper Hour
log switches (derived)00.00


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 Time
Buffer Cache Reads67,7G8105.4963,388M0M0.000M524,9K49.28ms
DBWR0M0.000M702M74.55,642M29.54ms
Others322M17.59,295M24M1.58,022M15,2K26.23ms
LGWR0M0.000M68M9.85,062M10,4K24.03ms
Direct Reads1M0.15,001M0M0.000M0 
Direct Writes0M0.000M1M0.02,001M0 
Streams AQ0M0.010M0M0.000M611.50ms
TOTAL:68G8123.2363,684M795M85.99,727M550,5K48.16ms


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
Data File67,7G8105.7063,386M707M74.47,647M10.17ms36.52ms
Control File297M17.41,272M7M0.43,006M19.41ms 
Log File24M0.02,022M68M9.84,062M.00ns27.43 s
Temp File13M1.33,012M14M1.24,013M22.54ms 
Other0M0.000M0M0.010M19.67ms 
TOTAL:68G8124.4663,692M796M85.99,728M10.19ms7772.51ms


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 Time
Buffer Cache Reads 67,7G8105.5063,388M0M0.000M366,4K16.06ms
Buffer Cache Reads (Data File) 67,7G8104.4363,378M0M0.000M365,2K16.05ms
Buffer Cache Reads (Temp File) 11M1.07,01M0M0.000M116818.69ms
DBWR 0M0.000M702M74.55,642M29.54ms
DBWR (Data File) 0M0.000M701M74.44,641M210.00ms
DBWR (Temp File) 0M0.000M1M0.11,001M0 
Others 322M17.56,295M23M1.56,021M14,6K26.08ms
Others (Control File) 297M17.41,272M7M0.43,006M14,5K25.93ms
Others (Log File) 24M0.02,022M0M0.000M3333.33us
Others (Temp File) 1M0.11,001M13M1.13,012M12247.71ms
Others (Data File) 0M0.010M3M0.01,003M10458.10us
LGWR (Log File) 0M0.000M68M9.85,062M0 
LGWR 0M0.000M68M9.85,062M0 
Direct Writes (Data File) 0M0.000M1M0.02,001M0 
Direct Writes 0M0.000M1M0.02,001M0 
Direct Reads (Temp File) 1M0.15,001M0M0.000M0 
Direct Reads 1M0.15,001M0M0.000M0 
Streams AQ (Data File) 0M0.010M0M0.000M611.50ms
Streams AQ 0M0.010M0M0.000M611.50ms
TOTAL: 68G8123.2163,684M794M85.98,726M381,1K16.44ms


Back to IO Stats
Back to Top

Tablespace IO Stats

No data exists for this section of the report.

Back to IO Stats
Back to Top

File IO Stats

No data exists for this section of the report.

Back to IO Stats
Back to Top

Buffer Pool Statistics

Back to Top

Buffer Pool Statistics

PNumber of BuffersPool Hit%Buffer GetsPhysical ReadsPhysical WritesFree Buff WaitWrit Comp WaitBuffer Busy Waits
D1,812,4858984,012,9638,871,53089,90302314,853


Back to Buffer Pool Statistics
Back to Top

Checkpoint Activity

MTTR WritesLog Size WritesLog Ckpt WritesOther Settings WritesAutotune Ckpt WritesThread Ckpt Writes
00001,7320


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
B0197875221638831698651163883  0
E01623292601951881698651195188  1


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
D1,5360.101793.78183,6241861869.00
D3,0720.203583.44167,4001781775.00
D4,6080.305373.13152,0311705908.00
D6,1440.407162.82137,3101633233.00
D7,6800.498952.53122,9001562099.00
D9,2160.591,0742.24109,1441494192.00
D10,7520.691,2531.9695,1141424929.00
D12,2880.791,4321.6781,3911357187.00
D13,8240.891,6111.3866,9941286110.00
D15,3600.991,7901.0450,7991206163.00
D15,5521.001,8131.0048,6261195436.00
D16,8961.091,9690.6933,5011120769.00
D18,4321.192,1480.4521,946163729.00
D19,9681.282,3270.3718,165145064.00
D21,5041.382,5060.3717,806143293.00
D23,0401.482,6850.3617,506141808.00
D24,5761.582,8640.3517,228140437.00
D26,1121.683,0430.3516,956139097.00
D27,6481.783,2220.3416,683137745.00
D29,1841.883,4010.3416,387136288.00
D30,7201.983,5800.3316,040134574.00


Back to Advisory Statistics
Back to Top

PGA Aggr Summary

PGA Cache Hit %W/A MB ProcessedExtra W/A MB Read/Written
100.0017,1460


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)
B5,9984,3103,193.710.000.000.000.00614,190
E5,9984,2883,289.691.220.0416.5183.49614,190


Back to Advisory Statistics
Back to Top

PGA Aggr Target Histogram

Low Optimal High OptimalTotal ExecsOptimal Execs1-Pass ExecsM-Pass Execs
2K4K4,7464,74600
64K128K14014000
128K256K11711700
256K512K626200
512K1024K11,23011,23000
1M2M1,4351,43500
2M4M515100
4M8M48848800
8M16M11411400
16M32M909000


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
7500.13166,254.21262,784.2539.00911176,479,205
1,5000.25166,254.2175,092.2869.0030599,274,635
2,9990.50166,254.2152,602.4776.00090,023,753
4,4990.75166,254.2120,765.2789.00076,927,948
5,9981.00166,254.2117,661.3090.00075,651,175
7,1981.20166,254.2117,661.3090.00075,651,175
8,3971.40166,254.2117,661.3090.00075,651,175
9,5971.60166,254.2117,661.3090.00075,651,175
10,7961.80166,254.2117,661.3090.00075,651,175
11,9962.00166,254.2117,661.3090.00075,651,175
17,9943.00166,254.2117,661.3090.00075,651,175
23,9924.00166,254.2117,661.3090.00075,651,175
35,9886.00166,254.2117,661.3090.00075,651,175
47,9848.00166,254.2117,661.3090.00075,651,175


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)
2,0481.002526,028449,9371.002461.006,337
2,1121.033167,118449,9461.002370.966,339
2,1761.063798,932449,9761.002070.846,343
2,2401.0944310,401449,9791.002040.836,344
2,3041.1350711,715449,9811.002020.826,344
2,3681.1657113,186449,9831.002000.816,345
2,4321.1963514,308449,9851.001980.806,345
2,4961.2269815,437449,9851.001980.806,345
2,5601.2576216,371449,9861.001970.806,345
2,6241.2880117,596449,9861.001970.806,345
2,8161.3880117,596449,9861.001970.806,345
3,0721.5080117,596449,9861.001970.806,345
3,3281.6380117,596449,9861.001970.806,345
3,5841.7580117,596449,9861.001970.806,345
3,8401.8880117,596449,9861.001970.806,345
4,0962.0080117,596449,9861.001970.806,345


Back to Advisory Statistics
Back to Top

SGA Target Advisory

SGA Target Size (M)SGA Size FactorEst DB Time (s)Est Physical Reads
4,5120.25887,886183,623,803
6,7680.38807,756167,397,534
9,0240.50659,182137,308,184
11,2800.63520,122109,144,398
13,5360.75450,83695,111,130
15,7920.88311,99866,991,106
18,0481.00221,29148,625,322
20,3041.1389,55621,944,608
22,5601.2570,88018,166,420
24,8161.3867,62717,505,116
27,0721.5064,97116,955,650
29,3281.6363,57716,683,348
31,5841.7560,41216,041,494
33,8401.8860,39016,041,494
36,0962.0060,39016,041,494


Back to Advisory Statistics
Back to Top

Streams Pool Advisory

Size for Est (MB)Size FactorEst Spill CountEst Spill Time (s)Est Unspill CountEst Unspill Time (s)
640.500000
1281.000000
1921.500000
2562.000000
3202.500000
3843.000000
4483.500000
5124.000000
5764.500000
6405.000000
7045.500000
7686.000000
8326.500000
8967.000000
9607.500000
1,0248.000000
1,0888.500000
1,1529.000000
1,2169.500000
1,28010.000000


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 block14,8244,226285
1st level bmb7024
2nd level bmb2025
undo block2020
segment header1010


Back to Wait Statistics
Back to Top

Enqueue Activity

Enqueue Type (Request Reason)RequestsSucc GetsFailed GetsWaitsWt Time (s)Av Wt Time(ms)
RO-Multiple Object Reuse (fast object reuse) 80080001703361,977.12
PS-PX Process Reservation 5,4854,92156477722.48
TM-DML 75,23775,236021517.50
FB-Format Block 226226021500.93
CF-Controlfile Transaction 2,2592,25729201.51
TX-Transaction (row lock contention) 1101045.00
TS-Temporary Segment 601601011700.35
HW-Segment High Water Mark 25,51225,51201100.45
WF-AWR Flush 383531500.27
DW-In memory Dispenser 660600.50
TA-Instance Undo 330300.67
CO-KTUCLO Master Slave enq (master slave det) 180181800.06
WT-AWR CDB-Wide Table Lock 30300400.25
CR-Reuse Block Range (block range reuse ckpt) 880400.25
TX-Transaction (index contention) 330300.33
TO-Temp Object 9799790200.50
PF-Password File 990101.00
TD-KTF map table enqueue (KTF dump entries) 110101.00
TT-Tablespace 26,41526,4150300.00
AF-Advisor Framework (task serialization) 13130100.00
PW-Buffer Cache PreWarm (flush prewarm buffers) 440100.00
PE-Parameter 220100.00
DR-Distributed Recovery 110100.00
PG-Global Parameter 110100.00
TK-Auto Task Serialization (Auto Task Serialization) 110100.00
TX-Transaction 16,55616,554000 
JG-Job Scheduler1 5,2565,256000 
JG-Job Scheduler1 (queue lock) 5,2565,256000 
SE-Session Migration 1,0631,063000 
SJ-KTSJ Slave Task Cancel (Slave Task Cancel) 814815000 
MR-Media Recovery 769769000 
DA-Instance DP Array (Slave Process Array) 696696000 
JG-Job Scheduler1 (q mem clnup lck) 438438000 
DD-ASM Local Disk Group 373373000 
CU-Cursor 250250000 
AE-Edition Lock (lock) 219219000 
SR-Synchronized Replication 137137000 
BU-Buddy Instance Context (recovery set construct) 122122000 
IS-Instance State 106106000 
PZ-Password File Metadata Cache (load passwordfile metadata) 1818000 
TH-Threshold Chain (metric threshold evaluation) 1818000 
SQ-Sequence Cache 1111000 
PR-Process Startup 99000 
PV-KSV slave startup (syncstart) 55000 
FP-File Object (global fob contention) 44000 
SH-Active Session History Flushing 44000 
XR-Quiesce / Force Logging (database force logging) 44000 
IT-In-Mem Temp Table Meta Creation 22000 
XL-ASM Extent Fault Lock (fault extent map) 11000 


Back to Wait Statistics
Back to Top

Undo Statistics

Back to Top

Undo Segment Summary

Undo TS#Num Undo Blocks (K)Number of TransactionsMax Qry Len (s)Max Tx ConcurcyMin/Max TR (mins)STO/ OOS uS/uR/uU/ eS/eR/eU
22.2211,2281,6515439,5/39,50/00/0/0/0/0/0


Back to Undo Statistics
Back to Top

Undo Segment Stats

End TimeNum Undo BlocksNumber of TransactionsMax Qry Len (s)Max Tx ConcyTun Ret (mins)STO/ OOS uS/uR/uU/ eS/eR/eU
02-Stu 13:322,21611,2281,65154400/00/0/0/0/0/0


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 01890.00
AQ Coord jobx_kwsbgsgn latch360.00 00 
AQ Message drive state object latch10.00 00 
AQ Sharded master pool latch360.00 00 
AQ deq hash table latch10.00 00 
ASM Keyed state latch4380.00 00 
ASM allocation62,3620.00 00 
ASM connection state latch2,8920.00 00 
ASM db client latch1,0090.00 00 
ASM map headers310.00 00 
ASM map load waiting list80.00 00 
ASM map operation freelist25,7870.000.0000 
ASM map operation hash table17,963,6920.000.0000 
ASM network background latch2,8580.00 00 
ASM network state latch410.00 00 
ASM remote client latch170.00 00 
AWR Alerted Metric Element list11,5960.00 00 
Autotask management180.00 00 
Change Notification Hash table latch1,3500.00 00 
Column stats entry latch10.00 00 
Consistent RBA10,3680.010.0000 
DML lock allocation136,4830.010.0000 
Event Group Locks1,1710.00 00 
FIB s.o chain latch450.00 00 
FOB consolidated s.o list latch450.00 00 
File State Object Pool Parent Latch10.00 00 
GCS logfile block10.00 00 
GCS logfile write queue10.00 00 
Hang Manager wait event statistics730.00 012,8510.00
I/O Staticstics latch10.00 00 
ILM Stats Stripe Latch10.00 00 
ILM Stats main anchor latch1,6540.00 00 
ILM access tracking extent10.00 00 
ILM activity tracking latch10.00 00 
IM Global dictionary latch10.00 00 
IM Global dictionary queue latch10.00 00 
IM Global dictionary rw latch10.00 00 
IM area sb latch10.00 00 
IM area scb latch10.00 00 
IM emb latch10.00 00 
IM seg hdr latch10.00 00 
IMFS defer write list10.00 00 
IMXT hash table latch10.00 00 
IPC other latch120.00 00 
IPC stats buffer allocation latch10.00 00 
In memory undo latch10.00 00 
JS Sh mem access2190.00 00 
JS broadcast add buf latch2490.00 00 
JS broadcast drop buf latch2490.00 00 
JS broadcast load blnc latch2490.00 00 
JS mem alloc latch40.00 00 
JS queue access latch50.00 00 
JS queue state obj latch10,4640.00 00 
JS slv state obj latch10.00 00 
KCNIBR - invalid block range tree10.00 00 
KDCStatHash latch10.00 00 
KDFI Buffer Latch10.00 00 
KDFI Hash Bucket Latch10.00 00 
KDFI Hash Elem Latch10.00 00 
KDMADO action list latch10.00 00 
KDMADO bll latch10.00 00 
KDMADO latch10.00 00 
KFC FX Hash Latch10.00 00 
KFC Hash Latch10.00 00 
KFCL LE Freelist10.00 00 
KFIAS client latch10.00 00 
KFIAS cluster latch10.00 00 
KFIAS endpoint latch10.00 00 
KFIAS node latch10.00 00 
KFIAS process latch10.00 00 
KFIAS queue latch10.00 00 
KFK SGA Libload latch5,9760.00 00 
KFMD SGA6280.00 00 
KGNFS-NFS:SHM structure30.00 00 
KGNFS-NFS:SVR LIST3660.00 00 
KJC message pool KGH calls10.00 00 
KJC message pool free list99,6170.110.06076,4070.05
KJC message pool pending avail list10.00 00 
KJCT flow control latch1,028,3800.020.0200 
KMG MMAN ready and startup request latch3650.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 Receive and Send Queue latch10.00 00 
KSFS id table parent latch10.00 00 
KSFS ksfs_node latch10.00 00 
KSFSD name cache parent latch10.00 00 
KSGL LS Segment latch10.00 00 
KSGL SGA anchor latch10.00 00 
KSIPC ASPC anchor latch10.00 00 
KSIPC SGA allocation parent latch9510.00 00 
KSIPCGSN Hash Table latch10.00 00 
KSIPCGSN Namespace latch10.00 00 
KSK PDB IO STAT10.00 00 
KSRMA SGA anchor latch10.00 00 
KSRMF SGA anchor latch10.00 00 
KSWL SGA anchor latch10.00 00 
KSXR hang analysis phase 1 latch1,7880.00 020.00
KSXR hang analysis phase 2 latch1890.00 00 
KSXR large replies40.00 00 
KTF sga latch20.00 03390.00
KTILM latch10.00 00 
KTU in-memory txn table latch10.00 00 
KTURMA ODPSCN latch10.00 00 
KTURMA SGA allocation parent latch10.00 00 
KWQMN job cache list latch6930.00 00 
KWQP Prop Status1370.00 00 
KWQS pqsubs latch20.00 00 
KWQS pqueue ctx latch100.00 00 
Latch for NonceHistory10.00 00 
Locator state objects pool parent latch10.00 00 
Lost write change tracking10.00 00 
Lsod array latch5650.00 00 
MGA asr alloc latch180.00 00 
MGA heap latch6640.450.0000 
MGA shared context latch19,6320.530.8430 
MGA shared context root latch8944.360.2600 
MQL Tracking Latch0  0220.00
Memory Management Latch0  03650.00
Memory Queue1400.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 
Message cache latch10.00 00 
MinActiveScn Latch540.00 00 
Mutex10.00 00 
Mutex Stats10.00 00 
Nologging Standby SCN Time Map cache3380.00 00 
OS process1,6460.00 00 
OS process allocation2,6520.150.0000 
OS process: request allocation4380.230.0000 
PDB Hash Table Latch10.00 00 
PDB LRU structure10.00 00 
PL/SQL warning settings9450.00 00 
PX hash array latch10.00 00 
Parent latch for dependency tracking10.00 00 
Parent latch for query hash table access10.00 00 
Parent latch for segments scanning10.00 00 
QMT10.00 00 
Real-time descriptor latch29,6250.000.0000 
Report Request stats latch450.00 00 
Report Request struct latch670.00 00 
Request holder compeltion list latch190.00 00 
Retry Ht elm latch10.00 00 
Retry bkt latch10.00 00 
SGA Blackbox latch50.00 00 
SGA IO buffer pool latch2870.00 03090.00
SGA Logging Bkt Latch10.00 00 
SGA Logging Log Latch5,1530.00 00 
SGA blob parent10.00 00 
SGA bucket locks10.00 00 
SGA heap locks10.00 00 
SGA pool locks10.00 00 
SO private so latch4160.00 05470.00
SQL memory manager latch10.00 03640.00
SQL memory manager workarea list latch121,6990.00 00 
SR Stats Stripe Latch10.00 00 
Sched IM Job latch180.00 00 
Sched InMem Job Cache10.00 00 
Shared B-Tree8710.570.0000 
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 
UM object latch10.00 00 
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 latch4,1830.00 00 
active service list16,4650.050.000607,6140.01
archive destination360.00 00 
begin backup scn array310.00 00 
bq:time manger info latch390.00 00 
buffer pool10.00 00 
bufq statistics1400.00 00 
business card1,3990.00 00 
cache buffer handles2,6630.00 00 
cache buffers chains197,147,9010.010.00023,763,4980.01
cache buffers lru chain1,045,6210.190.0309,542,5930.42
cache table scan latch3390.00 03390.00
call allocation3,0420.200.1700 
change notification client cache latch10.00 00 
channel handle pool latch8890.220.0000 
channel operations parent latch11,1870.030.00020.00
checkpoint queue latch216,8750.000.00098,9970.00
client/application info657,0400.040.0300 
compile environment latch9690.00 00 
corrupted undo seg latch6490.00 00 
cp handoff latch10.00 00 
cp pool latch10.00 00 
cp server hash latch10.00 00 
cp sga latch170.00 00 
cp srv type state latch1,0960.00 00 
cp srv type wait latch10.00 00 
cr slave free list10.00 00 
cvmap freelist lock10.00 00 
deferred cleanup latch170.00 00 
dispatcher info440.00 00 
dml lock allocation170.00 00 
done queue latch10.00 00 
dtp latch2220.450.0000 
dummy allocation1,8820.110.0000 
eighth spare latch - X parent10.00 00 
eleventh spare latch - children10.00 00 
enqueue freelist latch10.00 0142,0260.00
enqueue hash chains580,5600.020.0408720.00
enqueues420.00 00 
error message lists3,4830.00 00 
fast space usage latch230.00 00 
fifteenth spare latch - children10.00 00 
file cache latch6670.00 00 
first Audit Vault latch2090.480.0000 
flash file access latch10.00 00 
flashback copy10.00 00 
fourteenth spare latch - children10.00 00 
fourth Audit Vault latch10.00 00 
gc element6,134,3390.010.030609,4920.00
gc xid list7850.250.0000 
gcr global ctx50.00 00 
gcs commit scn state10.00 00 
gcs lock state resolution latch10.00 00 
gcs nodemap pool30,2550.00 00 
gcs opaque info freelist264,6850.000.0000 
gcs partitioned table hash11,419,0880.010.0008,371,6470.02
gcs pcm hashed value bucket hash10.00 00 
gcs remaster request queue30.00 00 
gcs resource freelist717,7570.010.130272,1240.02
gcs resource hash11,935,8900.000.020490.00
gcs resource scan list50.00 00 
gcs resource timerq list10.00 00 
gcs resource validate list10.00 00 
gcs shadows freelist397,5160.00 00 
ges cached resource lists237,2140.000.00045,4220.01
ges deadlock list3160.00 00 
ges domain table1,012,3310.000.0000 
ges enqueue table freelist247,7800.010.1100 
ges group table1,031,7310.00 00 
ges process hash list13,0330.00 00 
ges process parent latch2,038,3180.001.0000 
ges process table freelist4380.00 00 
ges remote lock freelist4,3280.00 00 
ges resource hash list1,450,2460.300.0402,6570.04
ges resource scan list30.00 00 
ges resource table freelist9,8260.00 00 
ges s-lock bitvec freelist4,8540.100.0000 
ges timeout list1,7350.00 0740.00
ges value block free list10.00 00 
global KZLD latch for auth type mem in SGA2000.00 00 
global tx hash mapping10.00 00 
granule from data transfer cache10.00 00 
gws:Sharding global descriptor latch740.00 00 
hash table Sql Plan Finding latch260.00 0710.00
hash table column usage latch3370.00 0266,4410.00
hash table expression usage tracking latch10.00 00 
hash table sql contorl latch10.00 00 
heartbeat check10.00 04320.00
heartbeat structure management0  05470.00
imc buf hdl lat10.00 00 
imc cr clone buf10.00 00 
imc hash lat10.00 00 
imc sj lat10.00 00 
imc srchsp lat10.00 00 
imc-txn-wrk-lat10.00 00 
in-memory area latch10.00 00 
in-memory columnar segment hash table latch10.00 00 
in-memory columnar ts extent map chunk latch10.00 00 
in-memory global pool latch10.00 00 
internal temp table object number allocation latch190.00 00 
interrupt manipulation3,3900.00 00 
intra txn parallel recovery10.00 00 
io pool granule list520.00 00 
io pool granule metadata list990.00 00 
job workq parent latch10.00 00 
job_queue_processes parameter latch180.00 00 
k2q global data latch7300.00 00 
k2q lock allocation10.00 00 
kKCN Cqn SGA10.00 00 
kcb DW scan objtemp hash table latch10.00 00 
kcn buffer chains10.00 00 
kdlx hb parent latch10.00 00 
kgb parent10.00 00 
kgnfs mount latch10.00 00 
kjbr roi instance map10.00 00 
kjci objects freelist latch13,3070.090.0800 
kjci process context latch9,0390.250.09023,5300.01
kjci process list latch6,1550.00 010.00
kjci request sequence latch7420.00 00 
kjcipctx state object freelist latch2440.00 00 
kjoedcso state object freelist latch170.00 00 
kjoeq omni enqueue hash bucket latch10.00 00 
kjoer owner hash bucket10.00 00 
kjpm my inst data360.00 00 
kjsc Request obj freelist latch4340.00 00 
kjsc Ring Buffer obj freelist latch2170.00 00 
kjsc protect control request queue2170.00 010,9670.00
kjsc protect warm up context2560.00 00 
kjsca pkey obj freelist latch320.00 00 
kjsca protect pkey hash table bucket7,8330.00 00 
kjsca protect service hash table bucket7,1800.00 00 
kjscpss state object freelist latch2170.00 00 
kokc descriptor allocation latch2260.00 00 
kpoxft latch0  01023.92
krso process380.00 00 
ksevn object root latch3650.00 00 
ksfv messages10.00 00 
ksi resource reuse count10.00 00 
ksim group membership cache6,0290.00 00 
ksim membership request latch0  06850.00
ksns object latch10.00 00 
kss move lock110.00 00 
ksuosstats global area810.00 04180.00
ksutcpistat latch10.00 00 
ksv allocation latch370.00 00 
ksv class latch23,9230.040.0000 
ksv instance latch40.00 00 
ksv msg queue latch850.00 0840.00
ksxp shared latch4380.00 00 
ksxp so latch4380.00 00 
ksz_so allocation latch4380.230.0000 
ktfbn latch1290.00 00 
ktm adg jrnls10.00 00 
ktm adg lookuptable level 110.00 00 
ktm adg lookuptable level 210.00 00 
ktm adg space10.00 00 
ktm adg stages10.00 00 
ktm adg worklink10.00 00 
ktm global data170.00 00 
ktm prv jrnls10.00 00 
ktmpj HT ls10.00 00 
kwqbsn:qsga6750.740.0000 
kwslbmdl: metadata latch410.00 00 
kwslbql: queue latch10.00 00 
kwslbutl: uncommitted txn latch10.00 00 
kwsptQcachLt: queue cache latch10.00 00 
kwsptTrncTsksLt: trunc task latch10.00 00 
kwsptjobAdPtLt: AdPt list latch1160.00 00 
kwsslLat: skiplist latch10.00 00 
kxfxscanrate_latch10.00 00 
lgwr LWN SCN10,4130.00 00 
list of block allocation4950.00 00 
loader state object freelist3,2280.00 00 
lob segment dispenser latch680.00 00 
lob segment hash table latch1060.00 00 
lob segment query latch10.00 00 
lock DBA buffer during media recovery10.00 00 
log write info0  011,0580.14
log write worker phase10.00 00 
logical standby cache10.00 00 
logminer context allocation10.00 00 
logminer local10.00 00 
logminer work area10.00 00 
longop free list parent10.00 00 
managed standby370.00 00 
message bitmap latch10.00 00 
message pool operations parent latch3,3680.00 00 
messages121,9780.100.0400 
msg queue latch10.00 00 
multiblock read objects334,0560.020.0000 
name-service memory objects2,1710.00 00 
name-service namespace bucket10,9690.00 00 
name-service pending queue1,5100.00 00 
name-service request120.00 00 
name-service request queue14,2550.00 00 
ncodef allocation latch170.00 00 
ninth spare latch - X parent10.00 00 
object queue header freelist266,9080.000.0000 
object queue header operation18,723,6370.000.030214,4440.00
object queue memory10.00 00 
object stats modification360.00 00 
parallel query alloc buffer11,3100.00 01650.00
parallel query stats2,3500.00 00 
parallel txn reco latch4800.00 00 
parameter table management6,2940.00 00 
pdb enqueue hash chains10.00 00 
peshm10.00 00 
pesom_free_list10.00 00 
pesom_hash_node10.00 00 
pkey global statistics10.00 00 
pmon dead latch170.00 00 
post/wait queue106,5790.190.000103,8470.22
process allocation5,8610.00 00 
process group creation4380.00 00 
process memory detail10.00 00 
process pkey statistics list10.00 00 
process queue4,9650.00 00 
process queue reference226,2840.020.00028,37496.32
qmn task queue latch1,3373.440.0000 
quarantine object180.00 00 
query server freelists6,3330.00 00 
query server process7670.00 010.00
queued dump request40.00 00 
queuing load statistics10.00 00 
read-moslty lock queue under pkey10.00 00 
recovery domain hash bucket5650.00 00 
redo allocation31,6520.130.020210,7580.11
redo copy10.00 0210,8350.06
redo transport task10.00 00 
redo writing35,6200.00 00 
remote tool request latch9360.00 00 
resmgr group change latch1,1460.00 00 
resmgr:active threads2,1760.050.00010,7670.00
resmgr:actses change group1,0260.00 00 
resmgr:actses change state40.00 00 
resmgr:free threads list2,0310.100.0000 
resmgr:plan CPU method10.00 00 
resmgr:plan change alloc latch10.00 00 
resmgr:plan change latch10.00 00 
resmgr:pq event array10.00 00 
resmgr:resource group CPU method1,8190.330.0000 
resmgr:schema config1580.00 0180.00
resmgr:session queuing10.00 00 
row cache objects10.00 00 
rt rmv count latch0  05470.00
rules engine rule set statistics1000.00 00 
second Audit Vault latch10.00 00 
segmented array pool90.00 00 
sequence cache56,2960.050.1000 
service drain list1,0930.00 00 
session allocation27,7820.150.00025,9100.00
session idle bit173,3820.020.0000 
session queue latch10.00 00 
session state list latch2,3450.260.0000 
session statistics1,8900.00 00 
session switching2310.870.0000 
session timer3650.00 00 
seventh spare latch - X parent10.00 00 
sga hash table parent latch10.00 00 
shard latch10.00 00 
shardgroup list latch2420.00 00 
shared pool120,1990.360.0400 
shared pool sim alloc160.00 00 
shared pool simulator4000.00 00 
shared server configuration3660.00 00 
sim partition latch10.00 00 
simulator hash latch5,948,2020.000.0000 
simulator lru latch10.00 05,911,2450.21
sixth spare latch - X parent10.00 00 
sort extent pool125,5540.000.0000 
space background task latch2,89756.540.9107513.99
state object free list20.00 00 
statistics aggregation1740.00 00 
subscriber Ht bkt10.00 00 
tablespace key chain10.00 00 
temp lob duration state obj allocation47,8610.00 00 
temporary table state object allocation1610.00 00 
tenth spare latch - X parent10.00 00 
test excl. parent l010.00 00 
test excl. parent2 l010.00 00 
test excl. parent2 lmid cln10.00 00 
test mixed exclusive10.00 00 
test mode exclusive10.00 00 
test open exclusive10.00 00 
test pdb exclusive10.00 00 
test shared parent2 lmid10.00 00 
thirteenth spare latch - children10.00 00 
threshold alerts latch320.00 00 
trace latch20.00 00 
transaction allocation1,3160.081.0000 
twelfth spare latch - children10.00 00 
twenty-fifth spare latch - S par10.00 00 
twenty-first spare latch - S par10.00 00 
twenty-fourth spare latch - S par10.00 00 
twenty-second spare latch - S par10.00 00 
twenty-third spare latch - S par10.00 00 
undo global data59,7310.010.0000 
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
cache buffers chains197,147,90119,3745819,316
ges resource hash list1,450,2464,3121604,155
cache buffers lru chain1,045,6211,993641,929
space background task latch2,8971,6381,483162
shared pool120,19942717410
gc element6,134,33938712375
ASM map operation hash table17,963,6923641363
gcs resource hash11,935,8903357328
client/application info657,0402628254
KJCT flow control latch1,028,3801953193
messages121,9781285123
enqueue hash chains580,5601084104
KJC message pool free list99,6171066100
MGA shared context latch19,6321058818
object queue header operation18,723,63779277
gcs resource freelist717,75761853
redo allocation31,65241140
MGA shared context root latch894391029
sequence cache56,29629327
kjci process context latch9,03923221
ges enqueue table freelist247,78018216
kjci objects freelist latch13,30712111
ges process parent latch2,038,31811110
call allocation3,042615
transaction allocation1,316110


Back to Latch Statistics
Back to Top

Latch Miss Sources

Latch NameWhereNoWait Misses SleepsWaiter Sleeps
ASM map operation hash tablekffmTranslate010
KJC message pool free listkjcspfmbq: free vector of msg buffers040
KJC message pool free listkjcsmpav: allocate a msg buffer026
KJCT flow control latchkjcts_sqenq: queue a message020
KJCT flow control latchkjctcsnd: send normal message011
MGA shared context latchksm_mga_sync_whr1070126
MGA shared context latchksm_mga_detach_whr201220
MGA shared context latchksm_mga_attach_whr2070
MGA shared context root latchksm_mga_detach_whr1067
MGA shared context root latchksm_mga_attach_whr1043
cache buffers chainskcbzibmlt: multi-block read: nowait0360
cache buffers chainskcbgtcr: convert latch0180
cache buffers chainskcbgtcr: slow path excl083
cache buffers chainskcbzwb042
cache buffers chainskclcls_3020
cache buffers chainskcbchg: change complete010
cache buffers chainskcbgtcr: convert latch 4010
cache buffers chainskcbgtcr: fast path exam014
cache buffers chainskcbrls: fast pin exclusive011
cache buffers chainskcbrls: fast pin release014
cache buffers chainskcbzgb: scan from tail nowait010
cache buffers chainskcbzibmlt: finish free bufs011
cache buffers lru chainkcbzgws0540
cache buffers lru chainkcbzgb_20824
cache buffers lru chainkcbbwlru017
cache buffers lru chainkcbbxsv: move to being written010
call allocationksuxds011
client/application infoksuinfos_modact088
gc elementkclnfndnewm0111
gc elementkclnfndx022
gc elementKCLUNLNK012
gcs resource freelistkjbralc: check freelist nowait040
gcs resource freelistkjbralc add resource038
gcs resource freelistkjbrralc: reserve allocation010
gcs resource hashkjblocalobj_nolock031
gcs resource hashkjbcrcomplete021
gcs resource hashkjbassume010
gcs resource hashkjbcropen011
ges enqueue table freelistkjlalc: lock allocation022
ges process parent latchkjata_fg0110
ges resource hash listkjrmas1: lookup master node0996
ges resource hash listkjlrlr: remove lock from resource queue05333
ges resource hash listkjrref: find matched resource08121
kjci objects freelist latchkjcibfr_cln (free)010
kjci process context latchkjci_finish_int020
messagesksarcv032
messagesksarcv: after wait022
object queue header operationkcbo_link_q011
object queue header operationkcbo_switch_cq010
redo allocationkcrfw_redo_gen: redo allocation 1010
sequence cachekdnssd020
sequence cachekdnnxt: cached seq010
space background task latchktsj_grab_task09191,472
space background task latchktsj_detach_task055511
space background task latchktsj_smco_purgeexpired080
space background task latchktsj_smco_movetasks010
transaction allocationktcxbr011
unknown latchkghalo01717
unknown latchksqgtl3024
unknown latchksqcmi: if lk mode requested010
unknown latchksqcnl010


Back to Latch Statistics
Back to Top

Mutex Sleep Summary

Mutex TypeLocationSleepsWait Time (ms)
Cursor Pinkkslce [KKSCHLPIN2]425763
Library Cachekglget2 21871,379
Library Cachekglpin1 4105201
Library Cachekglpndl1 9555242
Library Cachekglhdgn2 10649156
Library Cachekglpnal2 914351
Row Cache[19] kqrpre1468
Library Cachekglhdgn1 62833
Library Cachekglpnal1 9060
Library Cachekgllkc1 5739
Cursor Pinkksfbc [KKSCHLFSP2]34
Library Cachekgllkdl1 8510
Library Cachekglobpn1 7113


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. TypeObj#Dataobj#Logical Reads%Total
SOESOE CUSTOMERS_PK INDEX74279742794,982,4165.93
SOESOE ORDERSSYS_P552TABLE PARTITION74012740122,209,5522.63
SOESOE ORDERSSYS_P551TABLE PARTITION74011740112,208,6082.63
SOESOE ORDERSSYS_P559TABLE PARTITION74019740192,207,6322.63
SOESOE ORDERSSYS_P554TABLE PARTITION74014740142,207,3762.63


Back to Segment Statistics
Back to Top

Segments by Physical Reads

OwnerTablespace NameObject NameSubobject NameObj. TypeObj#Dataobj#Physical Reads%Total
SOESOE ORDERSSYS_P576TABLE PARTITION7403674036360,7654.07
SOESOE ORDERSSYS_P578TABLE PARTITION7403874038356,2064.01
SOESOE ORDERSSYS_P577TABLE PARTITION7403774037352,6133.97
SOESOE ORDERSSYS_P574TABLE PARTITION7403474034350,9163.96
SOESOE ORDERSSYS_P573TABLE PARTITION7403374033342,3993.86


Back to Segment Statistics
Back to Top

Segments by Physical Read Requests

OwnerTablespace NameObject NameSubobject NameObj. TypeObj#Dataobj#Phys Read Requests%Total
SOESOE ORDERSSYS_P576TABLE PARTITION7403674036360,7594.07
SOESOE ORDERSSYS_P578TABLE PARTITION7403874038356,2064.02
SOESOE ORDERSSYS_P577TABLE PARTITION7403774037352,6133.98
SOESOE ORDERSSYS_P574TABLE PARTITION7403474034350,9173.96
SOESOE ORDERSSYS_P573TABLE PARTITION7403374033342,3993.86


Back to Segment Statistics
Back to Top

Segments by UnOptimized Reads

OwnerTablespace NameObject NameSubobject NameObj. TypeObj#Dataobj#UnOptimized Reads%Total
SOESOE ORDERSSYS_P576TABLE PARTITION7403674036360,7594.07
SOESOE ORDERSSYS_P578TABLE PARTITION7403874038356,2064.02
SOESOE ORDERSSYS_P577TABLE PARTITION7403774037352,6133.98
SOESOE ORDERSSYS_P574TABLE PARTITION7403474034350,9173.96
SOESOE ORDERSSYS_P573TABLE PARTITION7403374033342,3993.86


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. TypeObj#Dataobj#Physical Writes%Total
SOESOE ITEM_PRODUCT_IX INDEX743297432913,44214.62
SOESOE INVENTORIES TABLE740397403910,70511.64
SOESOE ORD_WAREHOUSE_IX INDEX74333743335,8996.41
SOESOE ORD_CUSTOMER_IX INDEX74331743315,2565.72
SOESOE ITEM_ORDER_IX INDEX74328743284,9705.40


Back to Segment Statistics
Back to Top

Segments by Physical Write Requests

OwnerTablespace NameObject NameSubobject NameObj. TypeObj#Dataobj#Phys Write Requests%Total
SOESOE ITEM_PRODUCT_IX INDEX743297432912,77415.44
SOESOE INVENTORIES TABLE74039740399,33811.28
SOESOE ORD_WAREHOUSE_IX INDEX74333743335,5156.66
SOESOE ORD_CUSTOMER_IX INDEX74331743315,2486.34
SOESOE ITEM_ORDER_IX INDEX74328743284,9706.01


Back to Segment Statistics
Back to Top

Segments by Direct Physical Writes

OwnerTablespace NameObject NameSubobject NameObj. TypeObj#Dataobj#Direct Writes%Total
SYSSYSAUX WRH$_ACTIVE_SESSION_HISTORYWRH$_ACTIVE_SESSION_HISTORY_1550963227_27TABLE PARTITION744647446450423.42


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. TypeObj#Dataobj#DB Block Changes% of Capture
SOESOE ORD_WAREHOUSE_IX INDEX743337433320,27216.40
SOESOE ITEM_PRODUCT_IX INDEX743297432915,98412.93
SOESOE INVENTORIES TABLE740397403915,58412.61
SOESOE ITEM_ORDER_IX INDEX743287432814,94412.09
SOESOE ORD_ORDER_DATE_IX INDEX74332743326,1925.01


Back to Segment Statistics
Back to Top

Segments by Row Lock Waits

OwnerTablespace NameObject NameSubobject NameObj. TypeObj#Dataobj#Row Lock Waits% of Capture
SOESOE CUST_ACCOUNT_MANAGER_IX INDEX7433474334250.00
SOESOE ORDERSSYS_P551TABLE PARTITION7401174011125.00
SYSSYSAUX WRI$_ADV_MSG_GRPS_IDX_01 INDEX87558755125.00


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. TypeObj#Dataobj#Buffer Busy Waits% of Capture
SOESOE CARDDETAILS_CUST_IX INDEX74366743662261.11
SOESOE ORD_ORDER_DATE_IX INDEX7433274332616.67
SYSSYSTEM SEG$ TABLE148513.89
SOESOE ADDRESSESSYS_P464TABLE PARTITION739207392012.78
SOESOE ADDRESSESSYS_P471TABLE PARTITION739277392712.78


Back to Segment Statistics
Back to Top

Segments by Global Cache Buffer Busy

OwnerTablespace NameObject NameSubobject NameObj. TypeObj#Dataobj#GC Buffer Busy% of Capture
SOESOE ORD_ORDER_DATE_IX INDEX74332743327226.57
SOESOE INVENTORIES TABLE74039740396323.25
SOESOE ORD_SALES_REP_IX INDEX74330743305921.77
SOESOE ORD_WAREHOUSE_IX INDEX74333743335219.19
SOESOE CUSTOMERSSYS_P443TABLE PARTITION738987389841.48


Back to Segment Statistics
Back to Top

Segments by CR Blocks Received

OwnerTablespace NameObject NameSubobject NameObj. TypeObj#Dataobj#CR Blocks Received%Total
SOESOE INVENTORIES TABLE740397403925,31284.57
SOESOE ORD_WAREHOUSE_IX INDEX74333743335631.88
SOESOE CUST_FUNC_LOWER_NAME_IX INDEX74360743603481.16
SOESOE CUSTOMERS_PK INDEX74279742791650.55
SOESOE ORDERSSYS_P547TABLE PARTITION7400774007990.33


Back to Segment Statistics
Back to Top

Segments by Current Blocks Received

OwnerTablespace NameObject NameSubobject NameObj. TypeObj#Dataobj#Current Blocks Received%Total
SOESOE INVENTORIES TABLE740397403928,16022.06
SOESOE ORD_WAREHOUSE_IX INDEX74333743336,8025.33
SOESOE ORD_SALES_REP_IX INDEX74330743306,4115.02
SOESOE ORDERSSYS_P548TABLE PARTITION74008740083,1912.50
SOESOE ITEM_PRODUCT_IX INDEX74329743293,0212.37


Back to Segment Statistics
Back to Top

Segments by Global Cache Remote Grants

OwnerTablespace NameObject NameSubobject NameObj. TypeObj#Dataobj#GC Remote Grants%Total
SOESOE ORD_WAREHOUSE_IX INDEX743337433356,58118.82
SOESOE ORD_SALES_REP_IX INDEX743307433039,98913.30
SOESOE INVENTORIES TABLE740397403915,8335.27
SOESOE ITEM_PRODUCT_IX INDEX74329743298,6072.86
SOESOE ADDRESS_CUST_IX INDEX74327743276,0492.01


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_control4912.240 21
dc_cdbprops140.000 06
dc_files900.000 010
dc_global_oids2,2890.000 072
dc_histogram_data23,2980.030 03,761
dc_histogram_defs38,6160.080 36,648
dc_object_grants425.000 03
dc_objects20,3900.100 41,986
dc_profiles4000.000 01
dc_props1,6670.000 084
dc_rollback_segments6869.480 0163
dc_segments1,4787.650 32815
dc_sequences3534.290 354
dc_tablespaces24,3900.000 08
dc_users11,8770.018640.00029
outstanding_alerts366.670 03


Back to Dictionary Cache Statistics
Back to Top

Dictionary Cache Stats (RAC)

No data exists for this section of the report.

Back to Dictionary Cache Statistics
Back to Top

Library Cache Statistics

Back to Top

Library Cache Activity

NamespaceGet RequestsPct MissPin RequestsPct MissReloadsInvali- dations
ACCOUNT_STATUS8000.000 00
AUDIT POLICY4320.004320.0000
BODY24,8310.00130,7320.0000
CLUSTER610.00610.0000
DBLINK8580.000 00
EDITION2190.004380.0000
INDEX170.00170.0000
OBJECT ID1100.000 00
QUEUE3190.003190.0000
SCHEMA2140.470 00
SQL AREA4,8827.76408,0380.09424
SQL AREA BUILD25082.400 00
SQL AREA STATS23094.7823094.7800
TABLE/PROCEDURE2,3150.09276,4500.01290
TRIGGER2220.002220.0000


Back to Library Cache Statistics
Back to Top

Library Cache Activity (RAC)

NamespaceGES Lock RequestsGES Pin RequestsGES Pin ReleasesGES Inval RequestsGES Invali- dations
ACCOUNT_STATUS8000000
AUDIT POLICY43243243200
BODY122125,302125,30200
CLUSTER61616100
DBLINK8580000
EDITION21921821800
INDEX17171700
QUEUE31931531500
SCHEMA2100000
TABLE/PROCEDURE2,959150,402150,40200
TRIGGER022222200


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 cache15,552.0015,552.0015,424.0015,552.000GRO/DEF
Data Transfer Cache0.000.000.000.000STA/
In Memory RO Extension Area0.000.000.000.000STA/
In Memory RW Extension Area0.000.000.000.000STA/
In-Memory Area0.000.000.000.000STA/
KEEP buffer cache0.000.000.000.000STA/
PGA Target6,016.006,016.006,016.006,016.000STA/
RECYCLE buffer cache0.000.000.000.000STA/
SGA Target18,048.0018,048.0018,048.0018,048.000STA/
Shared IO Pool128.00128.00128.00128.000STA/
java pool0.000.000.000.000STA/
large pool128.00128.00128.00128.000STA/
memoptimize buffer cache0.000.000.000.000STA/
shared pool2,048.002,048.002,048.002,176.000SHR/DEF
streams pool128.00128.00128.00128.000SHR/DEF
unified pga pool0.000.000.000.000STA/


Back to Memory Statistics
Back to Top

Memory Resize Operations Summary

No data exists for this section of the report.

Back to Memory Statistics
Back to Top

Memory Resize Ops

No data exists for this section of the report.

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
BFreeable1,895.440.0033.2569.18237 5757
Other750.73 6.018.934472125125
PL/SQL22.464.140.181.151215123107
SQL13.1410.340.180.3523827348
Total2,681.7614.4839.6279.61295468378337
EFreeable1,920.190.0028.2464.26237 6868
Other806.09 5.888.774772137137
PL/SQL23.794.950.181.101215135116
SQL27.6724.680.331.0983828557
Total2,777.7529.6334.6275.22304468425378


Back to Memory Statistics
Back to Top

SGA Memory Summary

SGA regionsBegin Size (Bytes)End Size (Bytes) (if different)
Database Buffers16,441,671,680 
Fixed Size12,444,968 
Redo Buffers54,661,120 
Variable Size2,415,919,104 

Back to Memory Statistics
Back to Top

SGA breakdown difference by Pool and Name

PoolNameBegin MBEnd MB% Diff
largePX msg pool15.0015.000.00
largefree memory112.63112.630.00
sharedKGH: NO ACCESS127.78127.780.00
sharedKGLH049.3355.8013.13
sharedKJSC rnb slots27.2529.819.38
sharedSO private sga31.0231.020.00
sharedSQLA141.70168.8519.16
shareddb_block_hash_buckets64.0064.000.00
sharedfree memory289.59250.82-13.39
sharedgc name table64.0064.000.00
sharedgcs resources522.74522.740.00
sharedgcs resv res hash bucket96.0096.000.00
sharedgcs shadows285.13285.130.00
sharedges big msg buffers26.2926.290.00
sharedksunfy_meta 125.0325.030.00
sharedrow cache0.020.020.00
streamsfree memory127.99127.990.00
 buffer_cache15,552.0015,552.000.00
 fixed_sga11.8711.870.00
 log_buffer52.1352.130.00
 shared_io_pool128.00128.000.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

Advanced Queuing

Back to Top

Advanced Queue CPU/IO Usage

Session TypeFirst LogonCPU time(s)User IO Wait time(s)SYS IO Wait time(s)
QMON Slave01-Stu-19 19:52:400.060.070.00
EMON Regular Slave01-Stu-19 21:18:480.040.000.00
QMON Coordinator01-Stu-19 19:52:400.010.000.00
EMON Reliable Slave01-Stu-19 21:18:48