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:3402-Stu-19 13:01:52106 2.02
End Snap:3502-Stu-19 13:15:23108 2.02
Elapsed:  13.52 (mins)   
DB Time:  1,231.42 (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 Statements91.1095.35ADDM:1550963227_1_3502-Stu-19 13:0102-Stu-19 13:15
Undersized SGA91.1078.16ADDM:1550963227_1_3502-Stu-19 13:0102-Stu-19 13:15
Top Segments by "User I/O" and "Cluster"91.1019.25ADDM:1550963227_1_3502-Stu-19 13:0102-Stu-19 13:15

Load Profile

Per SecondPer TransactionPer ExecPer Call
DB Time(s): 91.1 7.0 0.21 1.47
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): 68,628.5 5,235.6  
Logical read (blocks): 75,611.0 5,768.3  
Block changes: 730.3 55.7  
Physical read (blocks): 8,256.0 629.8  
Physical write (blocks): 110.3 8.4  
Read IO requests: 8,240.4 628.7  
Write IO requests: 98.5 7.5  
Read IO (MB): 64.5 4.9  
Write IO (MB): 0.9 0.1  
IM scan rows: 0.0 0.0  
Session Logical Read IM: 0.0 0.0  
Global Cache blocks received: 245.0 18.7  
Global Cache blocks served: 2.1 0.2  
User calls: 61.9 4.7  
Parses (SQL): 19.9 1.5  
Hard parses (SQL): 1.3 0.1  
SQL Work Area (MB): 8.9 0.7  
Logons: 1.1 0.1  
User logons: 0.3 0.0  
Executes (SQL): 425.9 32.5  
Rollbacks: 0.0 0.0  
Transactions: 13.1   

Instance Efficiency Percentages (Target 100%)

Buffer Nowait %: 99.99Redo NoWait %: 100.00
Buffer Hit %: 89.08In-memory Sort %: 100.00
Library Hit %: 99.49Soft Parse %: 93.62
Execute to Parse %: 95.32Latch Hit %: 99.99
Parse CPU to Parse Elapsd %: 17.37% Non-Parse CPU: 99.22
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 read127,93665,2K509.31ms88.2User I/O
db file sequential read285,6514610,316.14ms6.2User I/O
read by other session8,5972709,6315.18ms3.7User I/O
DB CPU 550,5 .7 
log file sync11,266303,826.96ms.4Commit
control file sequential read13,14128321.54ms.4System I/O
enq: US - contention2,889215,374.53ms.3Other
row cache lock4,25242,810.06ms.1Concurrency
gc cr multi block mixed19,41839,52.03ms.1Cluster
gc current grant read-mostly invalidation3,46930,38.74ms.0Cluster

Wait Classes by Total Wait Time

Wait ClassWaitsTotal Wait Time (sec)Avg Wait Time% DB timeAvg Active Sessions
User I/O439,19572,542165.17ms98.289.4
System I/O27,6141,19143.13ms1.61.5
DB CPU 550 .70.7
Application1724552646.90ms.60.6
Commit11,26730426.96ms.40.4
Other138,8782351.69ms.30.3
Cluster212,828185868.10us.30.2
Configuration45821821.12ms.10.1
Concurrency9,972565.65ms.10.1
Scheduler373411.49ms.00.0
Network46,16502.16us.00.0
Administrative10305.00us.00.0

Host CPU

CPUsCoresSocketsLoad Average BeginLoad Average End%User%System%WIO%Idle
8 4 1 0.12 49.05 7.0 4.0 83.1 88.7

Instance CPU

%Total CPU%Busy CPU%DB time waiting for CPU (Resource Manager)
9.3 82.3 0.0

IO Profile

Read+Write Per SecondRead per SecondWrite Per Second
Total Requests: 8,372.3 8,260.6 111.7
Database Requests: 8,338.9 8,240.4 98.5
Optimized Requests: 0.0 0.0 0.0
Redo Requests: 12.7 0.0 12.7
Total (MB): 65.8 64.8 1.0
Database (MB): 65.4 64.5 0.9
Optimized Total (MB): 0.0 0.0 0.0
Redo (MB): 0.1 0.0 0.1
Database (blocks): 8,366.3 8,256.0 110.3
Via Buffer Cache (blocks): 8,362.4 8,255.4 107.0
Direct (blocks): 3.9 0.6 3.3

Memory Statistics

BeginEnd
Host Mem (MB): 31,211.5 31,211.5
SGA use (MB): 18,048.0 18,048.0
PGA use (MB): 4,272.7 3,221.7
% Host Mem used for SGA+PGA: 71.51 68.15

Cache Sizes

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

Shared Pool Statistics

BeginEnd
Memory Usage %: 89.66 80.30
% SQL with executions>1: 87.48 76.91
% Memory for SQL w/exec>1: 74.79 65.73

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 time73,515.5999.50 
DB CPU550.480.7593.65
PL/SQL execution elapsed time21.300.03 
parse time elapsed19.570.03 
hard parse elapsed time15.980.02 
connection management call elapsed time7.460.01 
hard parse (sharing criteria) elapsed time2.940.00 
PL/SQL compilation elapsed time1.390.00 
hard parse (bind mismatch) elapsed time1.160.00 
repeated bind elapsed time0.040.00 
sequence load elapsed time0.020.00 
failed parse elapsed time0.000.00 
DB time73,884.96  
background elapsed time1,509.22  
background cpu time37.30 6.35
total CPU time587.77  


Back to Wait Events Statistics
Back to Top

Operating System Statistics

StatisticValueEnd Value
FREE_MEMORY_BYTES3,621,744,6405,058,023,424
INACTIVE_MEMORY_BYTES1,015,463,936806,129,664
BUSY_TIME71,408 
IDLE_TIME563,294 
IOWAIT_TIME527,720 
NICE_TIME0 
SYS_TIME25,262 
USER_TIME44,668 
LOAD049
RSRC_MGR_CPU_WAIT_TIME426 
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:01:520.12     
02-Stu 13:15:2349.0511.257.043.9888.7583.14


Back to Wait Events Statistics
Back to Top

Foreground Wait Class

Wait ClassWaits%Time -outsTotal Wait Time (s)Avg wait%DB time
User I/O433,599072,500167.21ms98.13
DB CPU  550 0.75
Commit11,266030426.96ms0.41
System I/O13,141028321.54ms0.38
Other82,907412312.78ms0.31
Cluster211,4890184870.07us0.25
Concurrency5,104195610.98ms0.08
Configuration4038204.29ms0.01
Scheduler3720411.51ms0.01
Application100047.96ms0.00
Network44,963001.79us0.00
Administrative0 0 0.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 read127,936 65,159509.31ms12.0388.19
db file sequential read285,651 4,61016.14ms26.866.24
read by other session8,597 2,710315.18ms0.813.67
log file sync11,266 30426.96ms1.060.41
control file sequential read13,141 28321.54ms1.240.38
enq: US - contention2,889 21574.53ms0.270.29
row cache lock4,252234310.06ms0.400.06
gc cr multi block mixed19,418 392.03ms1.830.05
gc current grant read-mostly invalidation3,469 308.74ms0.330.04
gc cr grant 2-way106,645 30278.96us10.030.04
gc current grant busy3,013 279.10ms0.280.04
gc current grant 2-way33,423 20589.60us3.140.03
gc cr multi block grant37,989 11286.99us3.570.01
gc cr block lost17 10560.08ms0.000.01
library cache: mutex X327 928.58ms0.030.01
db file scattered read417 820.11ms0.040.01
gc buffer busy acquire136 860.76ms0.010.01
write complete waits1 88149.77ms0.000.01
rdbms ipc reply248 624.96ms0.020.01
direct path write temp1,029 65.39ms0.100.01
resmgr:cpu quantum372 411.51ms0.030.01
direct path read temp249 414.89ms0.020.01
Disk file Mirror Read2,724 3.98ms0.260.00
gc current block 2-way4,937 2499.99us0.460.00
gc current block lost4 2586.00ms0.000.00
KJC: Wait for msg sends to complete2,378 2818.17us0.220.00
latch: shared pool146 213.31ms0.010.00
Disk file operations I/O3,390 1438.44us0.320.00
cursor: pin S wait on X35 137.60ms0.000.00
latch: call allocation32 129.47ms0.000.00
DLM cross inst call completion2,512 1364.01us0.240.00
gc current multi block request695 11.31ms0.070.00
latch: ges resource hash list1,243 1730.90us0.120.00
gc current block busy721 11.26ms0.070.00
PX Deq: Join ACK1,065 1796.47us0.100.00
gc index operation17 144.50ms0.000.00
enq: FB - contention1,245 1547.29us0.120.00
gc cr block 2-way936 1687.46us0.090.00
PGA memory operation32,497 118.95us3.060.00
gc cr grant busy18 133.16ms0.000.00
CSS initialization40 011.00ms0.000.00
SQL*Net break/reset to client8 054.30ms0.000.00
library cache lock136102.89ms0.010.00
PX Deq: reap credit33,27610009.70us3.130.00
reliable message536 0538.29us0.050.00
PX Deq: Slave Session Stats1,678 0168.98us0.160.00
enq: PS - contention57540397.14us0.050.00
IPC send completion sync579 0220.38us0.050.00
library cache: bucket mutex X8 012.11ms0.000.00
row cache mutex51 01.64ms0.000.00
enq: TX - contention1321000585.38us0.010.00
SQL*Net message to client44,373 01.66us4.170.00
Sync ASM rebalance20 03.43ms0.000.00
latch free51 01.24ms0.000.00
oracle thread bootstrap4 015.46ms0.000.00
CSS operation: action40 01.35ms0.000.00
latch: cache buffers chains60 0771.47us0.010.00
enq: TX - row lock contention1 044.92ms0.000.00
enq: TS - contention104710344.03us0.010.00
enq: WF - contention19 01.72ms0.000.00
gc cr block busy16 01.98ms0.000.00
ASM file metadata operation4 07.71ms0.000.00
PX Deq: Signal ACK EXT1,065 023.60us0.100.00
library cache pin37 0621.54us0.000.00
enq: HW - contention3930560.92us0.000.00
latch: gc element9 01.47ms0.000.00
latch: redo allocation1 011.81ms0.000.00
cursor: mutex S5 01.98ms0.000.00
cursor: pin S6 01.47ms0.000.00
CSS operation: data query68 0125.21us0.010.00
latch: cache buffers lru chain27 0269.63us0.000.00
DFS lock handle14570487.64us0.000.00
wait list latch free5 01.16ms0.000.00
gc cr disk read24 0237.58us0.000.00
ASM IO for non-blocking poll3,605 01.54us0.340.00
direct path write1 05.34ms0.000.00
CSS group membership query34 0133.56us0.000.00
buffer busy waits23 0180.78us0.000.00
library cache load lock12 0345.92us0.000.00
gc current grant congested1 04.03ms0.000.00
latch: gcs resource hash6 0640.67us0.000.00
IPC group service call488 07.29us0.050.00
enq: TO - contention6 0527.00us0.000.00
SQL*Net more data to client102 028.83us0.010.00
gc buffer busy release6 0380.00us0.000.00
CSS operation: query86 019.81us0.010.00
latch: object queue header operation1 01.62ms0.000.00
latch: MGA shared context latch6 0266.33us0.000.00
gc cr grant congested1 01.59ms0.000.00
SQL*Net message from client44,429 4,42399.55ms4.18 
watchdog main loop1,084 3,2523000.02ms0.10 
PX Deq: Execution Msg1,839 16087.16ms0.17 
PX Deq Credit: send blkd3,220 5918.19ms0.30 
PX Deq: Execute Reply12,845 6436.64us1.21 
PX Deq Credit: need buffer108 329.06ms0.01 
PX Deq: Parse Reply1,065 0443.94us0.10 
PX Deq: Msg Fragment346 0221.32us0.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 submit65407291114.59ms0.0648.30
enq: RO - fast object reuse15904552860.29ms0.0130.13
log file parallel write9,922012913.01ms0.938.55
write complete waits507414.76 s0.004.89
control file sequential read3,14704714.91ms0.303.11
db file sequential read3,13403711.69ms0.292.43
control file parallel write358036.99ms0.030.17
db file scattered read1220214.62ms0.010.12
Parameter File I/O320132.17ms0.000.07
Disk file Mirror Read1,08601936.90us0.100.07
IMR slave acknowledgement msg2,43601369.93us0.230.06
gcs log flush sync173013.60ms0.020.04
oradebug request completion60183.89ms0.000.03
direct path write temp116004.24ms0.010.03
reliable message139003.30ms0.010.03
db file parallel write390001.10ms0.040.03
PX Deq: Join ACK134002.26ms0.010.02
gc current grant busy32008.92ms0.000.02
db file parallel read60039.75ms0.000.02
DLM cross inst call completion62200359.96us0.060.01
ASM file metadata operation1,00800218.50us0.090.01
gc cr grant 2-way82200254.23us0.080.01
oracle thread bootstrap100018.94ms0.000.01
gc current block 2-way17100888.63us0.020.01
PGA memory operation1,4580096.84us0.140.01
latch: MGA shared context latch18007.77ms0.000.01
Sync ASM rebalance45002.97ms0.000.01
latch free1,08800104.25us0.100.01
PX Deq: reap credit26,37410004.09us2.480.01
Data file init write20036.13ms0.000.00
KSV master wait634950101.77us0.060.00
read by other session10005.75ms0.000.00
AQ: RAC AQ Network8,10710006.01us0.760.00
cursor: pin S wait on X10047.15ms0.000.00
CGS wait for IPC msg9,46610004.85us0.890.00
os thread creation14002.64ms0.000.00
library cache lock9170374.10us0.010.00
latch: shared pool8004.22ms0.000.00
ASM IO for non-blocking poll7480041.53us0.070.00
enq: PS - contention7370395.08us0.010.00
gc cr disk read11300227.96us0.010.00
enq: CF - contention57960438.95us0.010.00
row cache lock391000606.79us0.000.00
library cache pin8600269.12us0.010.00
direct path write8002.70ms0.000.00
IPC group service call6310029.77us0.060.00
gc cr multi block mixed2900641.28us0.000.00
IPC send completion sync88592019.82us0.080.00
gc current block busy5900260.47us0.010.00
Disk file operations I/O3280043.04us0.030.00
gc cr block 2-way4300292.67us0.000.00
PX Deq: Slave Session Stats1340082.64us0.010.00
CSS operation: data query2400418.42us0.000.00
PX Deq: Signal ACK EXT1340072.61us0.010.00
gc current grant 2-way3300282.58us0.000.00
DFS lock handle321000271.00us0.000.00
CSS operation: data update2700315.30us0.000.00
ksxr poll remote instances2,51210003.37us0.240.00
gc buffer busy acquire1200699.58us0.000.00
LGWR wait for redo copy5900139.27us0.010.00
gc cr multi block grant2300334.87us0.000.00
enq: CO - master slave det141000541.21us0.000.00
ges inquiry response1800334.56us0.000.00
KJC: Wait for msg sends to complete2800181.57us0.000.00
resmgr:cpu quantum1003.56ms0.000.00
gc cr block busy2001.78ms0.000.00
enq: FB - contention800322.63us0.000.00
db file single write2001.10ms0.000.00
enq: DW - contention61000339.33us0.000.00
latch: ges resource hash list300538.33us0.000.00
name-service call wait400389.75us0.000.00
kfk: async disk IO200779.00us0.000.00
CSS operation: action600251.83us0.000.00
enq: JS - job run lock - synchronize21000689.50us0.000.00
libcache interrupt action by LCK4,61500273.46ns0.430.00
enq: SM - contention400313.50us0.000.00
latch: gcs resource hash600193.33us0.000.00
enq: TT - contention3330358.67us0.000.00
latch: cache buffers lru chain160063.38us0.000.00
rdbms ipc message44,1484217,733401.67ms4.15 
PX Idle Wait617015,33524.85 s0.06 
Space Manager: slave idle wait3,425012,8423749.45ms0.32 
class slave wait9,198885,365583.24ms0.86 
EMON slave idle wait8101004,0505000.00ms0.08 
wait for unread message on broadcast channel1,2441002,4351957.16ms0.12 
Streams AQ: qmn slave idle wait26302,4249217.68ms0.02 
GCR sleep5,40901,623299.99ms0.51 
ges remote message39,40901,62341.17ms3.71 
gcs yield cpu54,0841001,62029.96ms5.08 
pmon timer5401001,6202999.96ms0.05 
DIAG idle wait10,042831,619161.26ms0.94 
gcs remote message146,74101,61911.03ms13.80 
Data Guard: Timer201,200600.00 s0.00 
dispatcher timer1410084060.01 s0.00 
Streams AQ: emn coordinator idle wait8210082010.00 s0.01 
pman timer2711008132999.82ms0.03 
ASM cluster membership changes464938121750.26ms0.04 
heartbeat redo informer81208121000.07ms0.08 
REPL Capture/Apply: RAC AQ qmn coordinator1310081262.44 s0.00 
ASM background timer8900811911.12ms0.08 
lreg timer2711008112991.45ms0.03 
PING699238101159.33ms0.07 
AQPC idle2710081030.00 s0.00 
OFS idle2701008103000.03ms0.03 
SCM slave idle8,126081099.65ms0.76 
Streams AQ: qmn coordinator idle wait27308082960.02ms0.03 
Data Guard: Gap Manager13078060.00 s0.00 
smon timer367626208.62 s0.00 
jobq slave wait1869993498.31ms0.02 
SQL*Net message from client79301823.00ms0.07 
PX Deq: Execute Reply403025.13ms0.04 
PX Deq: Parse Reply1340215.28ms0.01 
PX Deq Credit: send blkd29200492.89us0.03 
RMA: IPC0 completion sync887002.75us0.08 


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 Network811095.04.1.7.2.0   
ASM IO for non-blocking poll435391.41.4.2.06.0.9  
ASM background starting2100.0       
ASM file metadata operation101311.263.611.03.67.5.9.32.1
AWR Flush22100.0       
CGS wait for IPC msg946996.71.31.6.3.0   
CSS group membership query34    64.729.45.9 
CSS initialization402.55.0     92.5
CSS operation: action466.5     13.080.4
CSS operation: data query92    45.740.21.113.0
CSS operation: data update27     3.796.3 
CSS operation: query8695.31.2    2.31.2
DFS lock handle46    2.252.230.415.2
DLM cross inst call completion31346.48.1.84.419.322.425.812.7
Data Guard Broker Wait1100.0       
Data file init write2       100.0
Disk file Mirror Read3810       100.0
Disk file operations I/O371911.98.631.535.91.41.14.94.7
GCR CSS group query24100.0       
GCR CSS group update25100.0       
IMR slave acknowledgement msg24394.04.126.230.81.4.15.428.0
IPC group service call111930.728.29.430.71.1.1  
IPC send completion sync146554.8.8.3.1 40.43.3.3
KJC: Wait for msg sends to complete2403 1.013.73.22.670.96.22.5
KSV master wait63484.9.33.66.91.6.3 2.4
LGWR wait for redo copy5915.311.935.611.96.83.45.110.2
PGA memory operation34K37.953.85.31.1.3.4.21.0
PX Deq: Join ACK1199.1   .1.443.556.0
PX Deq: Signal ACK EXT119931.340.75.39.610.21.51.3.3
PX Deq: Slave Session Stats181232.9.1.2.83.133.428.8.7
PX Deq: reap credit59,7K82.43.010.14.5.1.0 .0
PX qref latch3497.12.9      
Parameter File I/O32       100.0
SQL*Net break/reset to client850.0   12.5  37.5
SQL*Net message to client45K99.4.4.2.0.0.0.0 
SQL*Net more data to client1026.919.612.759.81.0   
Sync ASM rebalance6530.86.21.59.29.26.212.324.6
asynch descriptor resize24898.8.4.8     
buffer busy waits25 4.020.024.08.016.024.04.0
buffer deadlock475.0  25.0    
control file parallel write358       100.0
control file sequential read16,3K21.02.0.2.0.0.024.452.2
cursor: mutex S5       100.0
cursor: pin S6       100.0
cursor: pin S wait on X36       100.0
datafile move cleanup during resize1    100.0   
db file async I/O submit65449.8.2 2.32.9.5.344.0
db file parallel read127,9K      1.099.0
db file parallel write390  .81.33.15.464.125.4
db file scattered read539      9.690.4
db file sequential read289K     .016.983.0
db file single write2       100.0
direct path read temp249      25.374.7
direct path sync2  50.050.0    
direct path write9       100.0
direct path write temp1145       100.0
enq: CF - contention57     1.891.27.0
enq: CO - master slave det14      92.97.1
enq: CT - state1      100.0 
enq: DW - contention6      100.0 
enq: FB - contention1259     .484.515.1
enq: FD - Flashback logical operations1      100.0 
enq: HW - contention41     7.368.324.4
enq: JS - job run lock - synchronize2       100.0
enq: MV - datafile move1      100.0 
enq: PE - contention1      100.0 
enq: PG - contention1     100.0  
enq: PS - contention648      93.76.3
enq: PW - flush prewarm buffers1      100.0 
enq: RA - RT ADDM flood control1      100.0 
enq: RO - fast object reuse159     3.870.425.8
enq: RP - contention1      100.0 
enq: SM - contention4      100.0 
enq: SW - contention1      100.0 
enq: TA - contention2      100.0 
enq: TD - KTF dump entries1     100.0  
enq: TK - Auto Task Serialization2      100.0 
enq: TM - contention3      100.0 
enq: TO - contention6      83.316.7
enq: TS - contention104     40.451.97.7
enq: TT - contention3      100.0 
enq: TX - contention132     14.452.333.3
enq: TX - row lock contention1       100.0
enq: US - contention2889  .1.2.3.91.197.3
enq: WF - contention21     19.071.49.5
enq: WT - contention2      100.0 
gc buffer busy acquire148.7   .7 9.589.2
gc buffer busy release5  40.0   20.040.0
gc cr block 2-way998  .2.1 52.333.414.0
gc cr block busy8       100.0
gc cr block lost17       100.0
gc cr disk read137     84.715.3 
gc cr grant 2-way107,5K  .0.0.061.435.82.8
gc cr grant busy18      22.277.8
gc cr grant congested1       100.0
gc cr multi block grant38K  .0.0.059.037.73.3
gc cr multi block mixed19,4K     .310.089.6
gc current block 2-way5090  .0.0.142.945.011.9
gc current block busy772  .1 .143.842.014.0
gc current block lost4       100.0
gc current grant 2-way33,5K  .0.0.069.525.54.9
gc current grant busy3046 .1.93.05.426.644.319.9
gc current grant congested1       100.0
gc current grant read-mostly invalidation3470    .01.043.355.8
gc current multi block request694.1    .470.928.5
gc current split2     100.0  
gc index operation16  6.3    93.8
gcs log flush sync1687.7.6.61.81.818.58.360.7
ges inquiry response18      100.0 
ges resource directory to be unfrozen23299.6.4      
kfk: async disk IO2       100.0
kjctssqmg: quick message send wait1 100.0      
ksxr poll remote instances251296.91.71.1.3.1   
latch free1139.1.11.54.580.811.4.41.3
latch: MGA heap latch2  100.0     
latch: MGA shared context latch24  4.212.58.34.28.362.5
latch: MGA shared context root latch3   33.3  33.333.3
latch: cache buffers chains6010.05.015.025.011.710.06.716.7
latch: cache buffers lru chain43  25.641.923.32.32.34.7
latch: call allocation32       100.0
latch: checkpoint queue latch1       100.0
latch: enqueue hash chains3   33.3 33.3 33.3
latch: gc element9     11.122.266.7
latch: gcs resource hash12  41.78.38.38.38.325.0
latch: ges resource hash list1246.4.24.22.54.68.826.353.0
latch: kjci process context latch1    100.0   
latch: object queue header operation1       100.0
latch: redo allocation1       100.0
latch: session allocation1       100.0
latch: shared pool154  .63.21.31.9.692.2
libcache interrupt action by LCK461999.8.1.1.0    
library cache load lock12   8.333.350.0 8.3
library cache lock227.4 .4 .411.937.049.8
library cache pin123     58.535.85.7
library cache: bucket mutex X911.1  11.1   77.8
library cache: mutex X3273.71.21.8.6.6.6.990.5
lock escalate retry1100.0       
log file parallel write9921       100.0
log file sync11,3K  .0.0.21.01.797.0
name-service call wait4      100.0 
oracle thread bootstrap14       100.0
oradebug request completion6       100.0
os thread creation14       100.0
rdbms ipc reply248 .88.94.02.4.4 83.5
read by other session8608.0.0.0 .0.1.399.5
reliable message675     .169.929.9
resmgr:cpu quantum374     .81.198.1
row cache lock4293  .0.0.11.318.480.2
row cache mutex525.81.9 3.83.81.91.980.8
undo_retention publish retry2100.0       
wait list latch free5       100.0
write complete waits6       100.0
AQPC idle27       100.0
ASM background timer891  1.54.81.01.03.188.6
ASM cluster membership changes464       100.0
DIAG idle wait10K  .21.0.23.72.192.9
Data Guard: Gap Manager13       100.0
Data Guard: Timer2       100.0
EMON slave idle wait809       100.0
GCR sleep5411       100.0
OFS idle270       100.0
PING699.92.025.99.64.022.5.434.8
PX Deq Credit: need buffer1082.8 3.712.031.510.22.837.0
PX Deq Credit: send blkd35121.91.9.2.4.43.48.683.3
PX Deq: Execute Reply13,2K44.726.616.01.51.61.51.86.2
PX Deq: Execution Msg1839    1.86.132.659.4
PX Deq: Msg Fragment34623.4 3.52.63.88.757.2.9
PX Deq: Parse Reply1199.6 .1.82.926.943.824.9
PX Idle Wait613      .299.8
REPL Capture/Apply: RAC AQ qmn coordinator13       100.0
RMA: IPC0 completion sync88798.91.0.1     
SCM slave idle8129       100.0
SQL*Net message from client45,2K.1.1.03.859.519.13.214.1
Space Manager: slave idle wait34131.1.11.0.6.1  97.1
Streams AQ: emn coordinator idle wait82       100.0
Streams AQ: qmn coordinator idle wait2734.0.46.29.533.04.4 42.5
Streams AQ: qmn slave idle wait2635.7      94.3
class slave wait9200.7.51.21.4.2.1.195.8
dispatcher timer14       100.0
gcs remote message146,8K3.7.72.13.53.532.44.849.3
gcs yield cpu54,1K.1   .0  99.9
ges remote message39,4K11.11.34.15.94.58.55.459.4
heartbeat monitor sleep5100.0       
heartbeat redo informer812       100.0
jobq slave wait190       100.0
lreg timer270       100.0
pman timer271       100.0
pmon timer541       100.0
rdbms ipc message44,2K2.62.913.92.02.76.63.166.1
smon timer2       100.0
wait for unread message on broadcast channel1244       100.0
watchdog main loop1084       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 Network8109  4.590.54.1.7.2.0
ASM IO for non-blocking poll405333.029.022.47.01.4.2.06.9
ASM background starting250.050.0      
ASM file metadata operation9044.04.51.31.363.611.03.610.8
AWR Flush229.172.718.2     
CGS wait for IPC msg9467.710.911.873.41.31.6.3.0
CSS initialization3   2.55.0  92.5
CSS operation: action3  4.32.2   93.5
CSS operation: query8327.946.514.07.01.2  3.5
DLM cross inst call completion620  .26.28.1.84.480.2
Data Guard Broker Wait1  100.0     
Disk file operations I/O3270 .41.99.78.631.535.912.1
GCR CSS group query24  33.366.7    
GCR CSS group update25 4.092.04.0    
IMR slave acknowledgement msg1587.31.32.1.44.126.230.834.9
IPC group service call1106 .216.713.828.29.430.71.2
IPC send completion sync819  26.628.3.8.3.144.1
KJC: Wait for msg sends to complete429    1.013.73.282.1
KSV master wait607 33.051.3.6.33.66.94.3
LGWR wait for redo copy446.86.8 1.711.935.611.925.4
PGA memory operation33,3K .88.728.553.85.31.11.8
PX Deq: Join ACK1   .1   99.9
PX Deq: Signal ACK EXT1041  4.227.140.75.39.613.2
PX Deq: Slave Session Stats617.56.922.63.0.1.2.865.9
PX Deq: reap credit59,6K.410.042.829.13.010.14.5.1
PX qref latch34 35.361.8 2.9   
SQL*Net break/reset to client4  25.025.0   50.0
SQL*Net message to client45K7.840.250.8.6.4.2.0.0
SQL*Net more data to client101   6.919.612.759.81.0
Sync ASM rebalance31   30.86.21.59.252.3
asynch descriptor resize248 27.023.048.8.4.8  
buffer busy waits12    4.020.024.052.0
buffer deadlock4   75.0  25.0 
control file sequential read3808 .12.218.72.0.2.076.6
db file async I/O submit34223.126.8  .2 2.347.7
db file parallel write8     .81.397.9
direct path sync2     50.050.0 
enq: US - contention9     .1.299.7
gc buffer busy acquire1  .7    99.3
gc buffer busy release2     40.0 60.0
gc cr block 2-way3     .2.199.7
gc cr grant 2-way12     .0.0100.0
gc cr multi block grant2     .0.0100.0
gc current block 2-way4     .0.099.9
gc current block busy1     .1 99.9
gc current grant 2-way17     .0.099.9
gc current grant busy119    .1.93.096.1
gc current multi block request1  .1    99.9
gc index operation1     6.3 93.8
gcs log flush sync18 4.83.0 .6.61.889.3
ges resource directory to be unfrozen23244.853.4 1.3.4   
kjctssqmg: quick message send wait1    100.0   
ksxr poll remote instances2510.014.652.529.81.71.1.3.1
latch free70  .1 .11.54.593.9
latch: MGA heap latch2     100.0  
latch: MGA shared context latch4     4.212.583.3
latch: MGA shared context root latch1      33.366.7
latch: cache buffers chains33 1.76.71.75.015.025.045.0
latch: cache buffers lru chain29     25.641.932.6
latch: enqueue hash chains1      33.366.7
latch: gcs resource hash6     41.78.350.0
latch: ges resource hash list90  .3.1.24.22.592.8
latch: shared pool6     .63.296.1
libcache interrupt action by LCK461975.224.7  .1.1.0 
library cache load lock1      8.391.7
library cache lock2   .4 .4 99.1
library cache: bucket mutex X2   11.1  11.177.8
library cache: mutex X24   3.71.21.8.692.7
lock escalate retry1   100.0    
log file sync6     .0.099.9
rdbms ipc reply34    .88.94.086.3
read by other session4   .0.0.0 100.0
row cache lock4     .0.099.9
row cache mutex6   5.81.9 3.888.5
undo_retention publish retry2 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 file metadata operation2197.9.9.1 .2 .9 
CSS initialization367.5   87.52.5 2.5
CSS operation: action3719.66.571.72.2    
CSS operation: data query1287.013.0      
CSS operation: query198.81.2      
DFS lock handle784.813.02.2     
DLM cross inst call completion39787.39.61.9.7.2.2.0.1
Data file init write1      50.050.0
Disk file Mirror Read3807 93.45.9.4.1.0.1.1
Disk file operations I/O17295.32.0.8.4.2.11.0.1
IMR slave acknowledgement msg68272.024.63.0.0.1 .1.1
IPC send completion sync599.7.3.1     
KJC: Wait for msg sends to complete5497.51.01.0.2   .2
KSV master wait1597.61.6.3.2  .3 
LGWR wait for redo copy689.88.51.7     
PGA memory operation32399.0.6.2.1.0.0  
PX Deq: Join ACK67044.017.836.91.0.2  .1
PX Deq: Signal ACK EXT399.7.3      
PX Deq: Slave Session Stats1299.3.5.1.1    
PX Deq: reap credit1100.0  .0    
Parameter File I/O20      62.537.5
Sync ASM rebalance1675.44.6   15.44.6 
buffer busy waits196.04.0      
control file parallel write337 2.281.3.6 .69.55.9
control file sequential read558347.81.0.3.3.31.930.517.9
cursor: mutex S5  60.020.020.0   
cursor: pin S6  83.316.7    
cursor: pin S wait on X26    8.316.747.227.8
db file async I/O submit156.0  .2   43.9
db file parallel read32,4K1.010.61.61.81.1.99.373.7
db file parallel write9874.617.73.81.0.3.51.8.3
db file scattered read3899.634.311.112.23.2.610.818.2
db file sequential read196,5K17.038.33.23.11.71.720.015.1
db file single write2  100.0     
direct path read temp18625.31.2   4.069.5 
direct path write9 66.7  22.211.1  
direct path write temp1144 69.77.9.3.21.220.6.1
enq: CF - contention493.03.51.81.8    
enq: CO - master slave det192.9  7.1    
enq: FB - contention19084.99.13.51.8.3.2.2 
enq: HW - contention1075.619.5 2.42.4   
enq: JS - job run lock - synchronize2 100.0      
enq: PS - contention4193.75.21.1     
enq: RO - fast object reuse274.2.6.6    24.5
enq: TO - contention183.3 16.7     
enq: TS - contention892.34.82.9     
enq: TX - contention4466.722.09.8.8 .8  
enq: US - contention12702.71.72.35.319.810.44.553.3
enq: WF - contention290.5  4.8  4.8 
gc buffer busy acquire8510.823.65.44.7 1.422.331.8
gc buffer busy release260.040.0      
gc cr block 2-way13886.07.14.01.7.7.2.1.2
gc cr block busy8  62.537.5    
gc cr grant 2-way299897.21.41.1.2.0.0.0.0
gc cr grant busy522.211.1  5.6 11.150.0
gc cr grant congested1  100.0     
gc cr multi block grant125496.71.71.4.2.0   
gc cr multi block mixed17,4K10.427.753.18.6.1.0.0.1
gc current block 2-way59988.15.74.61.1.2.1.1.1
gc current block busy10186.07.13.21.6.6.4.1.9
gc current grant 2-way150195.12.31.5.4.1.1.1.4
gc current grant busy25080.12.31.7.5.51.02.211.7
gc current grant congested1   100.0    
gc current grant read-mostly invalidation160944.225.13.43.13.95.94.99.4
gc current multi block request19471.516.95.63.2.6.9.9.6
gc index operation46.3 6.3 6.36.36.368.8
gcs log flush sync10239.319.620.24.24.22.410.1 
kfk: async disk IO2 50.050.0     
latch free1598.7.5.1.4.3 .1 
latch: MGA shared context latch1537.54.24.2 20.829.24.2 
latch: MGA shared context root latch166.733.3      
latch: cache buffers chains1083.33.35.05.01.7 1.7 
latch: cache buffers lru chain295.3  4.7    
latch: call allocation15     18.828.153.1
latch: checkpoint queue latch1 100.0      
latch: enqueue hash chains166.733.3      
latch: gc element633.322.211.133.3    
latch: gcs resource hash375.0 25.0     
latch: ges resource hash list66147.035.915.4.5.8.5  
latch: object queue header operation1  100.0     
latch: redo allocation1     100.0  
latch: session allocation1 100.0      
latch: shared pool1317.85.87.812.317.515.626.07.1
library cache load lock191.7  8.3    
library cache lock11350.210.110.115.010.14.0.4 
library cache pin794.31.62.4.8.8   
library cache: bucket mutex X722.2  11.1 33.333.3 
library cache: mutex X2159.51.22.82.81.532.425.124.8
log file parallel write8768 53.116.7.7.81.915.111.6
log file sync75933.031.120.31.5.81.412.229.6
oracle thread bootstrap13     78.614.37.1
oradebug request completion1     16.7 83.3
os thread creation14 35.757.1   7.1 
rdbms ipc reply13616.52.41.2 1.67.741.928.6
read by other session909.5.7.4.71.22.45.389.0
reliable message20070.118.710.1.3 .6 .3
resmgr:cpu quantum3671.93.27.815.513.125.732.9 
row cache lock309619.825.827.115.12.01.8.38.0
row cache mutex4219.259.67.71.91.99.6  
wait list latch free5  100.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
CSS initialization197.5  2.5    
DLM cross inst call completion299.9.0.0     
Data file init write150.050.0      
Disk file Mirror Read399.9.1      
Disk file operations I/O499.9.1      
IMR slave acknowledgement msg299.9.1      
KJC: Wait for msg sends to complete599.8   .2   
PX Deq: Join ACK199.9  .1    
Parameter File I/O1262.534.43.1     
SQL*Net break/reset to client362.5  37.5    
control file parallel write2194.13.91.7.3    
control file sequential read291782.110.26.01.6.1.0  
cursor: pin S wait on X1072.216.72.88.3    
db file async I/O submit8856.1.3.5.5.51.510.230.4
db file parallel read93,5K26.36.56.97.311.423.217.9.5
db file parallel write199.7 .3     
db file scattered read9881.88.75.93.5    
db file sequential read43,5K84.98.85.01.2.1.0  
direct path write temp199.9 .1     
enq: TX - row lock contention1 100.0      
enq: US - contention154146.71.933.414.23.9   
gc buffer busy acquire4768.215.58.12.04.12.0  
gc cr block 2-way299.8 .2     
gc cr block lost17    41.258.8  
gc cr grant 2-way1100.0.0      
gc cr grant busy950.033.316.7     
gc cr multi block mixed2699.9   .0.1  
gc current block 2-way799.9.1.1     
gc current block busy799.1.4.5     
gc current block lost4    25.075.0  
gc current grant 2-way13199.6.2.2     
gc current grant busy35588.35.46.2.0    
gc current grant read-mostly invalidation32690.64.74.6.1    
gc current multi block request499.4.3.3     
gc index operation1131.325.043.8     
latch: call allocation1746.953.1      
latch: shared pool1192.97.1      
library cache: mutex X8175.211.013.5.3    
log file parallel write115388.46.63.91.1.1   
log file sync334170.415.910.43.1.3.0  
oracle thread bootstrap192.97.1      
oradebug request completion516.733.316.733.3    
rdbms ipc reply7171.425.03.2.4    
read by other session765411.08.213.321.626.516.62.8.0
reliable message299.7.1 .1    
row cache lock34592.0.85.81.4.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 submit19969.628.61.8     
db file parallel read70199.5.5      
enq: RO - fast object reuse3975.53.814.5.63.12.5  
read by other session3100.0.0      
write complete waits6 16.716.733.333.3   


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.com73,8755466,69460,885
SYS$BACKGROUND544469
SYS$USERS5003
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 4335277250250975600450120
SYS$BACKGROUND 56284248230106280
SYS$USERS 300425000360


Back to Wait Events Statistics
Back to Top

Top 10 Channel Waits

ChannelWaitsTotal Wait Time (s)Avg Wait
kxfp remote slave spawn channel 3014.87ms
kxfp control signal channel 6010463.13us
obj broadcast channel 7018.02ms


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/O72,505.02
DBW0db writer process 0System I/O729.43
MMMON slave class 1Application454.78
 Others (foregrounds + unclassified backgrounds)Commit304.61
 Others (foregrounds + unclassified backgrounds)System I/O280.85
 Others (foregrounds + unclassified backgrounds)Other230.69
 Others (foregrounds + unclassified backgrounds)Cluster183.96
LGWRRedo etc.System I/O129.07
MMMON slave class 1Configuration73.78
 Others (foregrounds + unclassified backgrounds)Concurrency56.07
CKPTcheckpointSystem I/O35.60
MMMON slave class 1User I/O24.13
Wspace management slave poolUser I/O10.02
RMS0rac management serverSystem I/O9.24
 Others (foregrounds + unclassified backgrounds)Configuration8.17
 Others (foregrounds + unclassified backgrounds)Scheduler4.31
MZMMON slave class 2User I/O2.55
CJQ0Job Queue CoordinatorSystem I/O2.31
PParallel query slaveSystem I/O2.17
MMONManageability Monitor ProcessUser I/O1.52


Back to Wait Events Statistics
Back to Top

Top Process Types by CPU Used

Process TypeDescriptionCPU Time (sec)
 Others (foregrounds + unclassified backgrounds)542.08
PParallel query slave8.93
MMMON slave class 17.53
LMglobal cache service process7.03
VKTMVirtual Keeper of TiMe process5.82
DBW0db writer process 04.44
RS*GCS RM Slave3.17
GCRGCR Slaves (LMHB)2.14
LGWRRedo etc.1.98
DIA0diagnosibility process 01.95
VKRMVirtual sKeduler for Resource Manager1.58
CJQ0Job Queue Coordinator1.36
SCMDLM Statistics Collection and Management Slave1.08
LMD0global enqueue service daemon 00.97
IPC0IPC Service 00.81
LMHBlm heartbeat monitor0.71
LMD1global enqueue service daemon 10.68
LMONglobal enqueue service monitor0.64
IMRCGS IMR Slave0.58
MZMMON slave class 20.43


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
26,679.60106251.6936.110.5799.71b5dk0t95fhyd7   BEGIN :1 := orderentry.Warehou...
26,679.21106251.6936.110.5799.68gkxxkghxubh1a Warehouse Orders Query SELECT ORDER_MODE, ORDERS.WARE...
22,101.34201109.9629.910.7999.42cj9v3ynkm7uuy Update Customer Details BEGIN :1 := orderentry.SalesRe...
22,099.55201109.9529.910.7699.4129qp10usqkqh0 Sales Rep Query SELECT TT.ORDER_TOTAL, TT.SALE...
21,729.0686252.6629.410.5899.7056pwkjspvmg3h Warehouse Activity Query WITH STAGE1 AS (SELECT /*+ mat...
21,727.1986252.6429.410.5899.7189b7r2pg1cn4a   BEGIN :1 := orderentry.Warehou...
1,584.704,4430.362.141.8685.070w2qpuc6u2zsp JDBC Thin Client BEGIN :1 := orderentry.neworde...
557.831830.990.750.974.14fhf8upax5cxsz   BEGIN sys.dbms_auto_report_int...
485.9134,9480.010.661.0098.485ckxyqfvu60pj New Order SELECT CUSTOMER_ID, CUST_FIRST...
413.9712,8870.030.561.2297.59f7rxuxzt64k87 New Order INSERT INTO ORDER_ITEMS ( ORDE...


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
174.182010.8731.6422,101.340.7999.42cj9v3ynkm7uuy Update Customer Details BEGIN :1 := orderentry.SalesRe...
168.942010.8430.6922,099.550.7699.4129qp10usqkqh0 Sales Rep Query SELECT TT.ORDER_TOTAL, TT.SALE...
152.651061.4427.7326,679.600.5799.71b5dk0t95fhyd7   BEGIN :1 := orderentry.Warehou...
152.621061.4427.7226,679.210.5799.68gkxxkghxubh1a Warehouse Orders Query SELECT ORDER_MODE, ORDERS.WARE...
126.23861.4722.9321,727.190.5899.7189b7r2pg1cn4a   BEGIN :1 := orderentry.Warehou...
126.19861.4722.9221,729.060.5899.7056pwkjspvmg3h Warehouse Activity Query WITH STAGE1 AS (SELECT /*+ mat...
29.504,4430.015.361,584.701.8685.070w2qpuc6u2zsp JDBC Thin Client BEGIN :1 := orderentry.neworde...
15.499,7980.002.81370.914.1783.54147a57cxq3w5y JDBC Thin Client BEGIN :1 := orderentry.browsep...
10.41610.171.8910.6397.970.02a4akgk9g69h83 SQL Developer SELECT d.* FROM ( SELECT d.*, ...
6.7653,3570.001.23172.223.9392.38c13sma6rkr27c New Order SELECT PRODUCTS.PRODUCT_ID, PR...
5.53160.351.00216.072.561.589yv5dwv8k0awg   WITH MONITOR_DATA AS (SELECT I...


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
26,601.49106250.9636.6726,679.600.5799.71b5dk0t95fhyd7   BEGIN :1 := orderentry.Warehou...
26,594.73106250.8936.6626,679.210.5799.68gkxxkghxubh1a Warehouse Orders Query SELECT ORDER_MODE, ORDERS.WARE...
21,972.14201109.3130.2922,101.340.7999.42cj9v3ynkm7uuy Update Customer Details BEGIN :1 := orderentry.SalesRe...
21,969.62201109.3030.2922,099.550.7699.4129qp10usqkqh0 Sales Rep Query SELECT TT.ORDER_TOTAL, TT.SALE...
21,664.8586251.9229.8721,729.060.5899.7056pwkjspvmg3h Warehouse Activity Query WITH STAGE1 AS (SELECT /*+ mat...
21,664.8586251.9229.8721,727.190.5899.7189b7r2pg1cn4a   BEGIN :1 := orderentry.Warehou...
1,348.124,4430.301.861,584.701.8685.070w2qpuc6u2zsp JDBC Thin Client BEGIN :1 := orderentry.neworde...
478.5434,9480.010.66485.911.0098.485ckxyqfvu60pj New Order SELECT CUSTOMER_ID, CUST_FIRST...
403.9912,8870.030.56413.971.2297.59f7rxuxzt64k87 New Order INSERT INTO ORDER_ITEMS ( ORDE...
309.879,7980.030.43370.914.1783.54147a57cxq3w5y 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
29,195,546201145,251.4747.5922,101.34,899,4cj9v3ynkm7uuy Update Customer Details BEGIN :1 := orderentry.SalesRe...
29,159,158201145,070.4447.5322,099.55,899,429qp10usqkqh0 Sales Rep Query SELECT TT.ORDER_TOTAL, TT.SALE...
15,080,761106142,271.3324.5826,679.60,699,7b5dk0t95fhyd7   BEGIN :1 := orderentry.Warehou...
15,075,406106142,220.8124.5726,679.21,699,7gkxxkghxubh1a Warehouse Orders Query SELECT ORDER_MODE, ORDERS.WARE...
12,224,82886142,149.1619.9321,727.19,699,789b7r2pg1cn4a   BEGIN :1 := orderentry.Warehou...
12,224,47486142,145.0519.9321,729.06,699,756pwkjspvmg3h Warehouse Activity Query WITH STAGE1 AS (SELECT /*+ mat...
2,475,2394,443557.114.031,584.701,985,10w2qpuc6u2zsp JDBC Thin Client BEGIN :1 := orderentry.neworde...
1,833,81453,35734.372.99172.223,992,4c13sma6rkr27c New Order SELECT PRODUCTS.PRODUCT_ID, PR...
1,285,9449,798131.252.10370.914,283,5147a57cxq3w5y JDBC Thin Client BEGIN :1 := orderentry.browsep...
1,182,765117,43810.071.937.2974,56,40y1prvxqc2ra9 Browse Products SELECT PRODUCTS.PRODUCT_ID, PR...


Back to SQL Statistics
Back to Top

SQL ordered by Reads

Physical ReadsExecutionsReads per Exec %TotalElapsed Time (s)%CPU%IO SQL IdSQL ModuleSQL Text
2,525,05010623,821.2337.6926,679.600.5799.71b5dk0t95fhyd7   BEGIN :1 := orderentry.Warehou...
2,524,83810623,819.2337.6926,679.210.5799.68gkxxkghxubh1a Warehouse Orders Query SELECT ORDER_MODE, ORDERS.WARE...
2,099,6208624,414.1931.3421,729.060.5899.7056pwkjspvmg3h Warehouse Activity Query WITH STAGE1 AS (SELECT /*+ mat...
2,099,6208624,414.1931.3421,727.190.5899.7189b7r2pg1cn4a   BEGIN :1 := orderentry.Warehou...
1,909,1342019,498.1828.5022,101.340.7999.42cj9v3ynkm7uuy Update Customer Details BEGIN :1 := orderentry.SalesRe...
1,908,4992019,495.0228.4922,099.550.7699.4129qp10usqkqh0 Sales Rep Query SELECT TT.ORDER_TOTAL, TT.SALE...
91,1124,44320.511.361,584.701.8685.070w2qpuc6u2zsp JDBC Thin Client BEGIN :1 := orderentry.neworde...
29,73534,9480.850.44485.911.0098.485ckxyqfvu60pj New Order SELECT CUSTOMER_ID, CUST_FIRST...
26,03412,8872.020.39413.971.2297.59f7rxuxzt64k87 New Order INSERT INTO ORDER_ITEMS ( ORDE...
19,2249,7981.960.29370.914.1783.54147a57cxq3w5y 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
2,525,1562,525,15610623,822.230.0037.77gkxxkghxubh1a Warehouse Orders Query SELECT ORDER_MODE, ORDERS.WARE...
2,524,9912,524,99110623,820.670.0037.76b5dk0t95fhyd7   BEGIN :1 := orderentry.Warehou...
2,099,6202,099,6208624,414.190.0031.4056pwkjspvmg3h Warehouse Activity Query WITH STAGE1 AS (SELECT /*+ mat...
2,099,6202,099,6208624,414.190.0031.4089b7r2pg1cn4a   BEGIN :1 := orderentry.Warehou...
1,909,2021,909,2022019,498.520.0028.55cj9v3ynkm7uuy Update Customer Details BEGIN :1 := orderentry.SalesRe...
1,909,0561,909,0562019,497.790.0028.5529qp10usqkqh0 Sales Rep Query SELECT TT.ORDER_TOTAL, TT.SALE...
91,11291,1124,44320.510.001.360w2qpuc6u2zsp JDBC Thin Client BEGIN :1 := orderentry.neworde...
29,73529,73534,9480.850.000.445ckxyqfvu60pj New Order SELECT CUSTOMER_ID, CUST_FIRST...
26,03426,03412,8872.020.000.39f7rxuxzt64k87 New Order INSERT INTO ORDER_ITEMS ( ORDE...
19,22419,2249,7981.960.000.29147a57cxq3w5y 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
117,4381,643,99214.007.2974,56,40y1prvxqc2ra9 Browse Products SELECT PRODUCTS.PRODUCT_ID, PR...
53,357238,7944.48172.223,992,4c13sma6rkr27c New Order SELECT PRODUCTS.PRODUCT_ID, PR...
34,94834,9601.00485.91198,55ckxyqfvu60pj New Order SELECT CUSTOMER_ID, CUST_FIRST...
12,88712,8871.00413.971,297,6f7rxuxzt64k87 New Order INSERT INTO ORDER_ITEMS ( ORDE...
9,7989,7981.00370.914,283,5147a57cxq3w5y JDBC Thin Client BEGIN :1 := orderentry.browsep...
6,1028,6821.42242.101,197,7g81cbrq5yamf5 New Order SELECT ADDRESS_ID, CUSTOMER_ID...
5,7415,7411.00149.07117,1gzhkw1qu6fwxm Browse and Update Orders INSERT INTO LOGON (LOGON_ID, C...
4,4434,4431.001,584.701,985,10w2qpuc6u2zsp JDBC Thin Client BEGIN :1 := orderentry.neworde...
4,4434,4431.00357.461,270,13fw75k1snsddx New Order INSERT INTO ORDERS ( ORDER_ID,...
4,4426,3601.43186.49,998,37ws837zynp1zv New Order SELECT CARD_ID, CUSTOMER_ID, C...
4,13012,8873.129.379,707r7636982atn9 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
9269265.7224djtk7r8fz33   update svcobj_access$ set acce...
3994002.475dqz0hqtp9fru   select /*+ connect_by_filterin...
3443442.133dbzmtf9ahvzt   merge /* KSXM:OPTIM_DML_INF */...
2752751.70asvzxj61dc5vs   select timestamp, flags from f...
2601301.61ffb1nv5k5adkg DBO SELECT systimestamp "SNAPSHOT_...
2412411.49grwydz59pu6mc   select text from view$ where r...
2222231.379s5cdq3h4nfbj   select dummy from dual where u...
2202221.36f0h5rpzmhju11   select SYS_CONTEXT('USERENV', ...
2162161.345x2x7y2umr3y7   select decode(upper(failover_m...
2002001.240k8522rmdzg4k   select privilege# from sysauth...
19911.233ms7w0c6ph91t   insert /* KSXM:FLUSH COL */ in...
1995481.23f3ww8rgva3hrs   update /* KSXM:FLUSH COL */ sy...
183611.13a4akgk9g69h83 SQL Developer SELECT d.* FROM ( SELECT d.*, ...


Back to SQL Statistics
Back to Top

SQL ordered by Sharable Memory

Sharable Mem (b)Executions % Total SQL IdSQL ModuleSQL Text
14,082,937160.769yv5dwv8k0awg   WITH MONITOR_DATA AS (SELECT I...
2,147,324160.12atwuyuvqkf27w   SELECT /*+ OPT_PARAM('_fix_con...
1,538,71610.082xfg27zhudyay   WITH binds as (select :dbid as...


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
49.804,44326.951,584.703.141.8685.070w2qpuc6u2zsp JDBC Thin Client BEGIN :1 := orderentry.neworde...
37.5020120.3022,101.340.170.7999.42cj9v3ynkm7uuy Update Customer Details BEGIN :1 := orderentry.SalesRe...
37.5020120.3022,099.550.170.7699.4129qp10usqkqh0 Sales Rep Query SELECT TT.ORDER_TOTAL, TT.SALE...
24.8410613.4426,679.210.090.5799.68gkxxkghxubh1a Warehouse Orders Query SELECT ORDER_MODE, ORDERS.WARE...
24.8310613.4426,679.600.090.5799.71b5dk0t95fhyd7   BEGIN :1 := orderentry.Warehou...
21.194,44311.47357.465.931.1570.103fw75k1snsddx New Order INSERT INTO ORDERS ( ORDER_ID,...
19.438610.5221,729.060.090.5899.7056pwkjspvmg3h Warehouse Activity Query WITH STAGE1 AS (SELECT /*+ mat...
19.438610.5221,727.190.090.5899.7189b7r2pg1cn4a   BEGIN :1 := orderentry.Warehou...
17.901,5809.69324.415.521.4384.0701jzc2mg6cg92   BEGIN :1 := orderentry.newcust...
15.621,5808.45196.547.950.9976.53gh2g2tynpcpv1 Update Customer Details INSERT INTO CUSTOMERS ( CUSTOM...
8.694,1304.709.3792.749.720.017r7636982atn9 New Order UPDATE INVENTORIES SET QUANTIT...
7.925734.29118.586.680.9461.58a9gvfh5hx9u98   BEGIN :1 := orderentry.process...
6.685733.6255.4712.050.7321.36f9u2k84v884y7 Process Orders UPDATE /*+ index(orders, order...
6.3912,8873.46413.971.541.2297.59f7rxuxzt64k87 New Order INSERT INTO ORDER_ITEMS ( ORDE...
6.3553,3573.44172.223.693.9392.38c13sma6rkr27c New Order SELECT PRODUCTS.PRODUCT_ID, PR...
6.281,6593.40210.112.991.3490.29apgb2g9q2zjh1 Update Customer Details BEGIN :1 := orderentry.browsea...
4.196,1022.27242.101.731.0597.69g81cbrq5yamf5 New Order SELECT ADDRESS_ID, CUSTOMER_ID...
3.3334,9481.80485.910.691.0098.485ckxyqfvu60pj New Order SELECT CUSTOMER_ID, CUST_FIRST...
2.599,7981.40370.910.704.1783.54147a57cxq3w5y JDBC Thin Client BEGIN :1 := orderentry.browsep...
2.234,4421.21186.491.200.9098.317ws837zynp1zv New Order SELECT CARD_ID, CUSTOMER_ID, C...
1.245730.6762.831.970.8697.367hk2m2702ua0g Process Orders WITH NEED_TO_PROCESS AS (SELEC...
0.9310.503.8024.4442.5032.26fffaspt7gd9cc SQL Developer BEGIN DBMS_WORKLOAD_REPOSITORY...
0.871,5820.4778.471.111.3197.919t3n2wpr7my63 Update Customer Details INSERT INTO ADDRESSES ( ADDRES...
0.3230.1714.542.172.4882.98a6ufvpa02fgag SQL Developer select a.total as MAX_BYTES, b...
0.295,7410.16149.070.200.9717.08gzhkw1qu6fwxm Browse and Update Orders INSERT INTO LOGON (LOGON_ID, C...
0.26180.14557.830.050.974.14fhf8upax5cxsz   BEGIN sys.dbms_auto_report_int...
0.0620.03330.780.020.503.255k5207588w9ry   SELECT DBMS_REPORT.GET_REPORT(...
0.05117,4380.037.290.6974.476.370y1prvxqc2ra9 Browse Products SELECT PRODUCTS.PRODUCT_ID, PR...
0.05780.036.830.691.1298.7703guhbfpak0w7   select /*+ index(idl_ub1$ i_id...
0.055650.033.131.483.4194.64acmvv4fhdc9zh   select obj#, type#, ctime, mti...
0.04160.02223.270.021.574.030w26sk6t6gq98   SELECT XMLTYPE(DBMS_REPORT.GET...
0.041340.022.991.391.9397.333un99a0zwp4vd   select owner#, name, namespace...
0.041070.020.1037.3412.4353.08f7xnvp44nukp7   insert into wrm$_snapshot_deta...
0.0310.022.811.086.4792.8192qy0561n1unr Embarcadero DB Optimizer Professional SELECT concat (concat (p.OBJEC...
0.03780.021.132.682.8695.42a3jpjzh7mtwwp   select /*+ index(idl_ub2$ i_id...
0.02160.01216.070.012.561.589yv5dwv8k0awg   WITH MONITOR_DATA AS (SELECT I...
0.021570.010.1014.8655.490.570kkhhb2w93cx0   update seg$ set type#=:4, bloc...
0.011340.010.761.762.7796.478swypbbr0m372   select order#, columns, types ...
0.01780.011.420.892.2398.06fh5ufah919kun   select /*+ index(idl_sb4$ i_id...
0.0130.012.790.425.666.32586dxjwv2gc11 SQL Developer select a.total as MAX_BYTES, b...
0.012410.010.641.624.0396.51grwydz59pu6mc   select text from view$ where r...
0.014720.000.741.165.1093.659tgj4g8y4rwy8   select type#, blocks, extents,...
0.0110.0087.080.010.601.382xfg27zhudyay   WITH binds as (select :dbid as...
0.0110.0088.290.010.630.709sq9djzzhr19y   WITH binds as (select :dbid as...
0.01960.000.302.144.2693.106h3cwmunz5z8q   select col#, grantee#, privile...
0.012060.000.431.277.4791.47g0t052az3rx44   select name, intcol#, segcol#,...


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;
03guhbfpak0w7select /*+ index(idl_ub1$ i_idl_ub11) */ piece#, length, piece from idl_ub1$ where obj#=:1 and part=:2 and version=:3 order by piece#
0k8522rmdzg4kselect privilege# from sysauth$ where (grantee#=:1 or grantee#=1) and privilege#>0
0kkhhb2w93cx0update seg$ set type#=:4, blocks=:5, extents=:6, minexts=:7, maxexts=:8, extsize=:9, extpct=:10, user#=:11, iniexts=:12, lists=decode(:13, 65535, NULL, :13), groups=decode(:14, 65535, NULL, :14), cachehint=:15, hwmincr=:16, spare1=DECODE(:17, 0, NULL, :17), scanhint=:18, bitmapranges=:19 where ts#=:1 and file#=:2 and block#=:3
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
2xfg27zhudyayWITH binds as (select :dbid as dbid , :inst_id_low as instIdLow , :inst_id_high as instIdHigh , :begin_snap as beginSnap , :end_snap as endSnap , :begin_time as beginTime , :end_time as endTime , :disk_begin_time as diskBeginTime , :disk_end_time as diskEndTime , :mem_begin_time as memBeginTime , :mem_end_time as memEndTime , :bucket_count as bucketCount , :bucket_interval as bucketInterval , :mem_enable as memEnable , :disk_enable as diskEnable , :disk_filter_ ratio as filterRatio, :filter_action as filter_action, :filter_blocking_session as filter_blocking_session, :filter_capture_id as filter_capture_id, :filter_client_id as filter_client_id, :filter_consumer_group_id as filter_consumer_group_id, :filter_dbop as filter_dbop, :filter_ecid as filter_ecid, :filter_event as filter_event, :filter_instance_number as filter_instance_number, :filter_is_captured as filter_is_captured, :filter_is_filtered_out as filter_is_filtered_out, :filter_is_nc_background as filter_is_nc_background, :filter_is_replayed as filter_is_replayed, :filter_machine as filter_machine, :filter_machine_port as filter_machine_port, :filter_module as filter_module, :filter_object as filter_object, :filter_pdb as filter_pdb, :filter_physical_session as filter_physical_session, :filter_pl_sql as filter_pl_sql, :filter_pl_sql_top as filter_pl_sql_top, :filter_program as filter_program, :filter_px_process as filter_px_process, :filter_service_hash as filter_service_hash, :filter_session_type as filter_session_type, :filter_sql_fms as filter_sql_fms, :filter_sql_id_top as filter_sql_id_top, :filter_sql_opcode as filter_sql_opcode, :filter_sql_opcode_top as filter_sql_opcode_top, :filter_sql_rws as filter_sql_rws, :filter_sql_rws_line as filter_sql_rws_line, :filter_sqlid as filter_sqlid, :filter_sqlid_fullphv as filter_sqlid_fullphv, :filter_sqlid_phv as filter_sqlid_phv, :filter_user_id as filter_user_id, :filter_wait_class as filter_wait_class, :filter_xid as filter_xid from sys.dual) , unified_ash as (SELECT a.sample_id , a.sample_time , a.session_id , a.session_serial# , a.session_type , a.session_state , a.flags , a.user_id , a.sql_id , a.sql_opcode , a.sql_opname , a.top_level_sql_id , a.top_level_sql_opcode , a.sql_child_number , a.sql_plan_hash_value , a.sql_full_plan_hash_ value , a.sql_plan_line_id , a.sql_plan_operation , a.sql_plan_options , a.sql_exec_id , a.force_matching_signature , a.plsql_entry_object_id , a.plsql_entry_subprogram_id , a.plsql_object_id , a.plsql_subprogram_id , a.service_hash , a.qc_session_id , a.qc_instance_id , a.qc_session_serial# , nvl(a.event, CASE WHEN bitand(a.time_model, power(2, 19)) > 0 THEN 'CPU: IM Populate' WHEN bitand(a.time_model, power(2, 20)) > 0 THEN 'CPU: IM Prepopulate' WHEN bitand(a.time_model, power(2, 21)) > 0 THEN 'CPU: IM Repopulate' WHEN bitand(a.time_model, power(2, 22)) > 0 THEN 'CPU: IM Trickle Repop' WHEN bitand(a.time_model, power(2, 18)) > 0 THEN 'CPU: IM Query' ELSE 'CPU + Wait for C PU' END) as event , nvl(a.event_id, 1) as event_id , nvl(a.wait_class, 'CPU') as wait_class , nvl(a.wait_class_id, 9999) as wait_class_id , a.seq# , a.p1 , a.p1text , a.p2 , a.p2text , a.p3 , a.p3text , a.wait_time , a.time_waited , rawtohex(a.xid) as xid , a.blocking_session , a.blocking_session_serial# , a.blocking_session_status , a.blocking_inst_id , a.current_obj# , a.current_file# , a.current_block# , a.top_level_call# , a.top_level_call_name , a.program , a.module , a.action , a.client_id , a.remote_instance# , a.ecid , a.consumer_group_id , a.machine , a.port , a.in_connection_mgmt , a.in_parse , a.in_hard_parse , a.in_sql _execution , a.in_plsql_execution , a.in_plsql_rpc , a.in_plsql_compilation , a.in_java_execution , a.in_bind , a.in_cursor_close , a.in_sequence_load , a.is_captured , a.is_replayed , a.dbreplay_file_id , a.dbop_name , a.con_dbid, decode(binds.diskEnable, 0, 1, binds.filterRatio) as sample_count , inst_id as instance_number FROM sys.gv_$active_session_history a, binds WHERE binds.memEnable = 1 AND ( binds.diskEnable = 0 OR ( binds.diskEnable = 1 AND a.is_awr_sample = 'Y' AND bitand(a.flags, 128) = 0 ) ) AND a.inst_id between binds.instIdLow and binds.instIdHigh AND a.sample_time between binds.beginTime and binds.endTime UNION ALL SELECT a.sample_id , a.sample_time , a.session_id , a.session_serial# , a.session_type , a.session_state , a.flags , a.user_id , a.sql_id , a.sql_opcode , a.sql_opname , a.top_level_sql_id , a.top_level_sql_opcode , a.sql_child_number , a.sql_plan_hash_value , a.sql_full_plan_hash_value , a.sql_plan_line_id , a.sql_plan_operation , a.sql_plan_options , a.sql_exec_id , a.force_matching_signature , a.plsql_entry_object_id , a.plsql_entry_subprogram_id , a.plsql_object_id , a.plsql_subprogram_id , a.service_hash , a.qc_session_id , a.qc_instance_id , a.qc_session_serial# , nvl(a.event, CASE WHEN bitand(a.time_model, power(2, 19)) > 0 THEN 'CPU: IM Populate' WHEN bitand(a.time_model, power(2, 20)) > 0 THEN 'CPU: IM Prepopulate' WHEN bitand(a.time_model, power(2, 21)) > 0 THEN 'CPU: IM Repopulate' WHEN bitand(a.time_model, power(2, 22)) > 0 THEN 'CPU: IM Trickle Repop' WHEN bitand(a.time_model, power(2, 18)) > 0 THEN 'CPU: IM Query' ELSE 'CPU + Wait for CPU' END) as event , nvl(a.event_id, 1) as event_id , nvl(a.wait_class, 'CPU') as wait_class , nvl(a.wait_class_id, 9999) as wait_class_id , a.seq# , a.p1 , a.p1text , a.p2 , a.p2text , a.p3 , a.p3text , a.wait_time , a.time_waited , rawtohex(a.xid) as xid , a.blocking_session , a.blocking_session_serial# , a.blocking_session_status , a.blocking_inst_id , a.current_obj# , a.current_file# , a.current_block# , a.top_level_call# , a.top_level_call_name , a.program , a.module , a.action , a.client_id , a.remote_instance# , a.ecid , a.consumer_group_id , a.machine , a.port , a.in_connection_mgmt , a.in_parse , a.in_hard_parse , a.in_sql_execution , a.in_plsql_execution , a.in_plsql_rpc , a.in_plsql_compilation , a.in_java_execution , a.in_bind , a.in_cursor_close , a.in_sequence_load , a.is_captured , a.is_replayed , a.dbreplay_file_id , a.dbop_name , a.con_dbid, binds.filterRatio as sample_count , instance_number as instance_number FROM AWR_ROOT_active_sess_history a, binds WHERE binds.d iskEnable = 1 AND a.dbid = binds.dbid AND a.instance_number between binds.instIdLow and binds.instIdHigh AND a.snap_id between binds.beginSnap and binds.endSnap + 1 AND a.sample_time between binds.beginTime and binds.endTime ), logical_ash as (select sample_id , sample_time , sample_count , instance_number as inst_id, action as action, event as event, instance_number as instance_number, module as module, instance_number || ':' || session_id || ', ' || session_serial# as physical_session, service_hash as service_hash, sql_id as sqlid, wait_class as wait_class, xid as xid, user_id as user_id, program as program from unified_ash) , bucketized_ash as (SELECT ash0.*, (case when binds.bucketCount > 1 then trunc( ( (24 * 60 * 60 * extract(day from sample_time - binds.beginTime)) + (60 * 60 * extract(hour from sample_time - binds.beginTime)) + (60 * extract(minute from sample_time - binds.beginTime)) + (1 * extract(second from sample_time - binds.beginTime)) ) / binds.bucketInterval ) + 1 else 1 end ) as bucket_number FROM logical_ash ash0, binds), filter_xml as (SELECT xmlconcat(xmlelement("filters" ) , xmlelement("report_time", xmlattributes( to_char(o.begintime, 'HH24:MI:SS MM/DD/YYYY') as "begin_time", to_char(o.endtime, 'HH24:MI:SS MM/DD/YYYY') as "end_time"))) as xml_frag FROM (select binds.*, nvl(to_number(filter_pdb), 0) as con_dbid from binds) o) , filtered_ash as (SELECT ash.*, 1 filtered FROM bucketized_ash ash, binds WHERE 1=1 ), grouped_ash as (SELECT ash.*, 0 AS bucket_type FROM (SELECT sqlid, physical_session, action, module, service_hash, instance_number, event, wait_class , grouping_id(sqlid, physical_session, action, module, service_hash, instance_number, event, wait_class) as gid , max(inst_id) as inst_id , sum(sample_count) as sample_count , count(distinct sqlid) as uniq_sqlids , count(distinct xid) as uniq_xids , count(distinct physical_session) as uniq_sessions , count(distinct instance_number) as uniq_instances, max(user_id) as user_id, max(program) as program from filtered_ash group by grouping sets( (wait_class), (sqlid), (module), (event), (action), (instance_number), (physical_session), (service_hash)) ) ash ), component_1_treemap as (select dim_val , inst_id , sample_count , num_mem , mem_rank , uniq_sqlids , uniq_xids , uniq_sessions , uniq_instances , 0 AS bucket_type --target(not global)/filtered bucket from (select max(case when mem_rank <= 13 then dim_val else null end) as dim_val , sum(sample_count) as sample_count , count(*) as num_mem , max(case when mem_rank <= 13 then mem_rank else (13 + 1) end) as mem_rank , max(case when mem_rank <= 13 then uniq_sqlids else 0 end) as uniq_sqlids , max(case when mem_rank <= 13 then uniq_xids else 0 end) as uniq_xids , max(case when mem_rank <= 13 then uniq_sessions else 0 end) as uniq_sessions , max(case when mem_rank <= 13 then uniq_instances else 0 end) as uniq_instances , max(inst_id) as inst_id from (select wait_class as dim_val , sample_count , dense_rank() over (order by sample_count desc , wait_class) as mem_rank , uniq_sqlids , uniq_xids , uniq_sessions , uniq_instances , inst_id from grouped_ash where gid = 254 and wait_class is not null) group by (case when mem_rank <= 13 then dim_val else null end) ) left ) , component_1_xml as (select xmlelement("item" , xmlattributes('wait_class' as "id" , to pmems.cnt_all as "count" , topmems.num_mem as "num_mem" , topmems.num_others as "num_others") , topmems.topmems_frag) as dim_frag from (select xmlelement( "top_mems" , xmlattributes(sum(case when mem_rank <= 13 then sample_count else 0 end) as "count") , xmlagg(xmlelement( "mem" , xmlattributes(mem_rank as "id" , dim_val as "name" , sample_count as "count" , uniq_sqlids as "uniq_sqlids" , uniq_xids as "uniq_xids" , uniq_sessions as "uniq_sessions" , uniq_instances as "uniq_instances") ) order by sample_count desc)) as topmems_frag , sum(case when mem_rank <= 13 then 1 else 0 end) as num_mem , sum(sample_count) as cnt_all , max(case when mem_rank <= 13 then 0 else num_mem end) as num_others from (component_1_treemap) t ) topmems), component_2_treemap as (select dim_val , inst_id , sample_count , num_mem , mem_rank , uniq_sqlids , uniq_xids , uniq_sessions , uniq_instances , 0 AS bucket_type --target(not global)/filtered bucket from (select max(case when mem_rank <= 5 then dim_val else null end) as dim_val , sum(sample_count) as sample_count , count(*) as num_mem , max(case when mem_rank <= 5 then mem_rank else (5 + 1) end) as mem_rank , max(case when mem_rank <= 5 then uniq_sqlids else 0 end) as uniq_sqlids , max(case when mem_rank <= 5 then uniq_xids else 0 end) as uniq_xids , max(case when mem_rank <= 5 then uniq_sessions else 0 end) a s uniq_sessions , max(case when mem_rank <= 5 then uniq_instances else 0 end) as uniq_instances , max(inst_id) as inst_id from (select event as dim_val , sample_count , dense_rank() over (order by sample_count desc , event) as mem_rank , uniq_sqlids , uniq_xids , uniq_sessions , uniq_instances , inst_id from grouped_ash where gid = 253 and event is not null) group by (case when mem_rank <= 5 then dim_val else null end) ) left ) , component_2_xml as (select xmlelement("item" , xmlattributes('event' as "id" , topmems.cnt_all as "count" , topmems.num_mem as "num_mem" , topmems.num_others as "num_others") , topmems.topmems_frag) as dim_frag from (select xmlelement( "top_mems" , xmlattributes(sum(case when mem_rank <= 5 then sample_count else 0 end) as "count") , xmlagg(xmlelement( "mem" , xmlattributes(mem_rank as "id" , dim_val as "name" , sample_count as "count" , uniq_sqlids as "uniq_sqlids" , uniq_xids as "uniq_xids" , uniq_sessions as "uniq_sessions" , uniq_instances as "uniq_instances") ) order by sample_count desc)) as topmems_frag , sum(case when mem_rank <= 5 then 1 else 0 end) as num_mem , sum(sample_count) as cnt_all , max(case when mem_rank <= 5 then 0 else num_mem end) as num_others from (component_2_treemap) t ) topmems), component_3_treemap as (select dim_val , inst_id , sample_count , num_mem , mem_rank , uniq_sqlids , uniq_xids , uniq_sessions , uniq_instances , 0 AS bucket_type --target(not global)/filtered bucket , NVL((SELECT instance_name FROM sys.gv_$instance v WHERE v.instance_number = left.dim_val AND rownum < 2 ), ( SELECT instance_name FROM AWR_ROOT_database_instance v, binds b WHERE v.dbid = b.dbid AND v.instance_number = left.dim_val AND rownum < 2)) as instance_name from (select max(case when mem_rank <= 5 then dim_val else null end) as dim_val , sum(sample_count) as sample_count , count(*) as num_mem , max(case when mem_rank <= 5 then mem_rank else (5 + 1) end) as mem_rank , max(case when mem_rank <= 5 then uniq_sqlids else 0 end) as uniq_sqlids , max(case when mem_rank <= 5 then uniq_xids else 0 end) as uniq_xids , max(case when mem_rank <= 5 then uniq_sessions else 0 end) as uniq_sessions , max(case when mem_rank <= 5 then uniq_instances else 0 end) as uniq_instances , max(inst_id) as inst_id from (select instance_number as dim_val , sample_count , dense_rank() over (order by sample_count desc , instance_number) as mem_rank , uniq_sqlids , uniq_xids , uniq_sessions , uniq_instances , inst_id from grouped_ash where gid = 251 and instance_number is not null) group by (case when mem_rank <= 5 then dim_val else null end) ) left ) , component_3_xml as (select xmlelement("item" , xmlattributes('instance_number' as "id" , topmems.cnt_all as "count" , topmems.num_mem as "num_mem" , topmems.num_others as "num_others") , topmems.topmems_frag) as dim_frag from (select xmlelement( "top_mems" , xmlattributes(sum(case when mem_rank <= 5 then sample_count else 0 end) as "count") , xmlagg(xmlelement( "mem" , xmlattributes(mem_rank as "id" , dim_val as "name" , sample_count as "count" , uniq_sqlids as "uniq_sqlids" , uniq_xids as "uniq_xids" , uniq_sessions as "uniq_sessions" , uniq_instances as "uniq_instances") , instance_name) order by sample_count desc)) as topmems_frag , sum(case when mem_rank <= 5 then 1 else 0 end) as num_mem , sum(sample_count) as cnt_all , max(case when mem_rank <= 5 then 0 else num_mem end) as num_others from (component_3_treemap) t ) topmems), component_4_treemap as (select dim_val , inst_id , sample_count , num_mem , mem_rank , uniq_sqlids , uniq_xids , uniq_sessions , uniq_instances , 0 AS bucket_type --target(not global)/filtered bucket , NVL((SELECT name FROM sys.gv_$active_services v WHERE v.name_hash = left.dim_val AND v.inst_id = left.inst_id AND rownum < 2 ), ( SELECT service_name FROM AWR_ROOT_service_name v, binds b WHERE v.dbid = b.dbid AND v.service_name_hash = left.dim_val AND rownum < 2)) as service_name from (select max(case when mem_rank <= 5 then dim_val else null end) as dim_val , sum(sample_count) as sample_count , count(*) as num_mem , max(case when mem_rank <= 5 then mem_rank else (5 + 1) end) as mem_rank , max(case when mem_rank <= 5 then uniq_sqlids else 0 end) as uniq_sqlids , max(case when mem_rank <= 5 then uniq_xids else 0 end) as uniq_xids , max(case when mem_rank <= 5 then uniq_sessions else 0 end) as uniq_sessions , max(case when mem_rank <= 5 then uniq_instances else 0 end) as uniq_instances , max(inst_id) as inst_id from (select service_hash as dim_val , sample_count , dense_rank() over (order by sample_count desc , service_hash) as mem_rank , uniq_sqlids , uniq_xids , uniq_sessions , uniq_instances , inst_id from grouped_ash where gid = 247 and service_hash is not null) group by (case when mem_rank <= 5 then dim_val else null end) ) left ) , component_4_xml as (select xmlelement("item" , xmlattributes('service_hash' as "id" , topmems.cnt_all as "count" , topmems.num_mem as "num_mem" , topmems.num_others as "num_others") , topmems.topmems_frag) as dim_frag from (select xmlelement( "top_mems" , xmlattributes(sum(case when mem_rank <= 5 then sample_count else 0 end) as "count") , xmlagg(xmlelement( "mem" , xmlattributes(mem_rank as "id" , dim_val as "name" , sample_count as "count" , uniq_sqlids as "uniq_sqlids" , uniq_xids as "uniq_xids" , uniq_sessions as "uniq_sessions" , uniq_instances as "uniq_instances") , service_name) order by sample_count desc)) as topmems_frag , sum(case when mem_rank <= 5 then 1 else 0 end) as num_mem , sum(sample_count) as cnt_all , max(case when mem_rank <= 5 then 0 else num_mem end) as num_others from (component_4_treemap) t ) topmems), component_5_treemap as (select dim_val , inst_id , sample_count , num_mem , mem_rank , uniq_sqlids , uniq_xids , uniq_sessions , uniq_in stances , 0 AS bucket_type --target(not global)/filtered bucket from (select max(case when mem_rank <= 5 then dim_val else null end) as dim_val , sum(sample_count) as sample_count , count(*) as num_mem , max(case when mem_rank <= 5 then mem_rank else (5 + 1) end) as mem_rank , max(case when mem_rank <= 5 then uniq_sqlids else 0 end) as uniq_sqlids , max(case when m em_rank <= 5 then uniq_xids else 0 end) as uniq_xids , max(case when mem_rank <= 5 then uniq_sessions else 0 end) as uniq_sessions , max(case when mem_rank <= 5 then uniq_instances else 0 end) as uniq_instances , max(inst_id) as inst_id from (select module as dim_val , sample_count , dense_rank() over (order by sample_count desc , module) as mem_rank , uniq_sqlids , uniq_xids , uniq_sessions , uniq_instances , inst_id from grouped_ash where gid = 239 and module is not null) group by (case when mem_rank <= 5 then dim_val else null end) ) left ) , component_5_xml as (select xmlelement("item" , xmlattributes('module' as "id" , topmems.cnt_all as "count" , topmems.num_mem as "num_mem" , topmems.num_others as "num_others") , topmems.topmems_frag) as dim_frag from (select xmlelement( "top_mems" , xmlattributes(sum(case when mem_rank <= 5 then sample_count else 0 end) as "count") , xmlagg(xmlelement( "mem" , xmlattributes(mem_rank as "id" , dim_val as "name" , sample_count as "count" , uniq_sqlids as "uniq_sqlids" , uniq_xids as "uniq_xids" , uniq_sessions as "uniq_sessions" , uniq_instances as "uniq_instances") ) order by sample_count desc)) as topmems_frag , sum(case when mem_rank <= 5 then 1 else 0 end) as num_mem , sum(sample_count) as cnt_all , max(case when mem_rank <= 5 then 0 else num_m em end) as num_others from (component_5_treemap) t ) topmems), component_6_treemap as (select dim_val , inst_id , sample_count , num_mem , mem_rank , uniq_sqlids , uniq_xids , uniq_sessions , uniq_instances , 0 AS bucket_type --target(not global)/filtered bucket from (select max(case when mem_rank <= 5 then dim_val else null end) as dim_val , sum(sample_count) as sample_count , c ount(*) as num_mem , max(case when mem_rank <= 5 then mem_rank else (5 + 1) end) as mem_rank , max(case when mem_rank <= 5 then uniq_sqlids else 0 end) as uniq_sqlids , max(case when mem_rank <= 5 then uniq_xids else 0 end) as uniq_xids , max(case when mem_rank <= 5 then uniq_sessions else 0 end) as uniq_sessions , max(case when mem_rank <= 5 then uniq_instances else 0 end) as uniq_instances , max(inst_id) as inst_id from (select action as dim_val , sample_count , dense_rank() over (order by sample_count desc , action) as mem_rank , uniq_sqlids , uniq_xids , uniq_sessions , uniq_instances , inst_id from grouped_ash where gid = 223 an d action is not null) group by (case when mem_rank <= 5 then dim_val else null end) ) left ) , component_6_xml as (select xmlelement("item" , xmlattributes('action' as "id" , topmems.cnt_all as "count" , topmems.num_mem as "num_mem" , topmems.num_others as "num_others") , topmems.topmems_frag) as dim_frag from (select xmlelement( "top_mems" , xmlattributes(sum(case when mem_rank <= 5 then sample_count else 0 end) as "count") , xmlagg(xmlelement( "mem" , xmlattributes(mem_rank as "id" , dim_val as "name" , sample_count as "count" , uniq_sqlids as "uniq_sqlids" , uniq_xids as "uniq_xids" , uniq_sessions as "uniq_sessions" , uniq_instances as "uniq_instances") ) order by sample_count desc)) as topmems_frag , sum(case when mem_rank <= 5 then 1 else 0 end) as num_mem , sum(sample_count) as cnt_all , max(case when mem_rank <= 5 then 0 else num_mem end) as num_others from (component_6_treemap) t ) topmems), component_7_treemap as (select dim_val , inst_id , sample_count , num_mem , mem_rank , uniq_sqlids , uniq_xids , uniq_sessions , uniq_instances , 0 AS bucket_type --target(not global)/filtered bucket , user_id, program from (select max(case when mem_rank <= 5 then dim_val else null end) as dim_val , sum(sample_count) as sample_count , count(*) as num_mem , max(case when mem_rank <= 5 then mem_rank else (5 + 1) end) as mem_rank , max(case when mem_rank <= 5 then uniq_sqlids else 0 end) as uniq_sqlids , max(case when mem_rank <= 5 then uniq_xids else 0 end) as uniq_xids , max(case when mem_rank <= 5 then uniq_sessions else 0 end) as uniq_sessions , max(case when mem_rank <= 5 then uniq_instances else 0 end) as uniq_instances , max(inst_id) as inst_id , max(case when mem_rank <= 5 then user_id else null end) as user_id, max(case when mem_rank <= 5 then program else null end) as program from (select physical_session as dim_val , sample_count , dense_rank() over (order by sample_count desc , physical_session) as mem_rank , uniq_sqlids , uniq_xids , uniq_sessions , uniq_instances , inst_id , user_id, program from grouped_ash where gid = 191 and physical_session is not null) group by (case when mem_rank <= 5 then dim_val else null end) ) left ) , component_7_xml as (select xmlelement("item" , xmlattributes('physical_session' as "id" , topmems.cnt_all as "count" , topmems.num_mem as "num_mem" , topmems.num_others as "num_others") , topmems.topmems_frag) as dim_frag from (select xmlelement( "top_mems" , xmlattributes(sum(case when mem_rank <= 5 then sample_count else 0 end) as "count") , xmlagg(x mlelement( "mem" , xmlattributes(mem_rank as "id" , dim_val as "name" , sample_count as "count" , uniq_sqlids as "uniq_sqlids" , uniq_xids as "uniq_xids" , uniq_sessions as "uniq_sessions" , uniq_instances as "uniq_instances") , xmlconcat(xmlelement("info", xmlattributes('user_id' as "name"), user_id), xmlelement("info", xmlattributes('program' as "name"), program)) ) order by sample_count desc)) as topmems_frag , sum(case when mem_rank <= 5 then 1 else 0 end) as num_mem , sum(sample_count) as cnt_all , max(case when mem_rank <= 5 then 0 else num_mem end) as num_others from (component_7_treemap) t ) topmems), component_8_treemap as (select dim_val , inst_id , sample_count , num_mem , mem_rank , uniq_sqlids , uniq_xids , uniq_sessions , uniq_instances , 0 AS bucket_type --target(not global)/filtered bucket , NVL((SELECT replace(substr(v.sql_text, 1, 100), CHR(0), '') as sql_text FROM sys.gv_$sql v WHERE v.sql_id = left.dim_val AND v.inst_id = left.inst_id AND rownum < 2 ), ( SELECT replace(sys.dbms_lob.substr(v.sql_text, 100, 1), CHR(0), '') as sql_text FROM AWR_ROOT_sqltext v, binds b WHERE v.dbid = b.dbid AND v.sql_id = left.dim_val AND rownum < 2)) as sql_text from (select max(case when mem_rank <= 5 then dim_val else null end) as dim_val , sum(sample_count) as sample_count , count(*) as num_mem , max(case when mem_rank <= 5 then mem_rank else (5 + 1) end) as mem_rank , max(case when mem_rank <= 5 then uniq_sqlids else 0 end) as uniq_sqlids , max(case when mem_rank <= 5 then uniq_xids else 0 end) as uniq_xids , max(case when mem_rank <= 5 then uniq_sessions else 0 end) as uniq_sessions , max(case when mem_rank <= 5 then uniq_instances else 0 end) as uniq_instances , max(inst_id) as inst_id from (select sqlid as dim_val , sample_count , dense_rank() over (order by sample_count desc , sqlid) as mem_rank , uniq_sqlids , uniq_xids , uniq_sessions , uniq_instances , inst_id from grouped_ash where gid = 127 and sqlid is not null) group by (case when mem_rank <= 5 then dim_val else null end) ) left ) , component_8_xml as (select xmlelement("item" , xmlattributes('sqlid' as "id" , topmems.cnt_all as "count" , topmems.num_mem as "num_mem" , topmems.num_others as "num_others") , topmems.topmems_frag) as dim_frag from (select xmlelement( "top_mems" , xmlattributes(sum(case when mem_rank <= 5 then sample_count else 0 end) as "count") , xmlagg(xmlelement( "mem" , xmlattributes(mem_rank as "id" , dim_val as "name" , sample_count as "count" , uniq_sqlids as "uniq_sqlids" , uniq_xids as "uniq_xids" , uniq_sessions as "uniq_sessions" , uniq_instances as "uniq_instances") , sql_text) order by sample_count desc)) as topmems_frag , sum(case when mem_rank <= 5 then 1 else 0 end) as num_mem , sum(sample_count) as cnt_all , max(case when mem_rank <= 5 then 0 else num_mem end) as num_others from (component_8_treemap) t ) topmems)select xmlconcat((select xml_frag from filter_xml), xmlelement("dim_list", xmlelement("item", xmlattributes('top_dimensions' as "id"), xmlelement("subdim", xmlconcat((select dim_frag from component_1_xml), (select dim_frag from component_2_xml), (select dim_frag from component_3_xml), (select dim_frag from component_4_xml), (select dim_frag from component_5_xml), (select dim_frag from component_6_xml), (select dim_frag from component_7_xml), (select dim_frag from component_8_xml)))), xmltype(' <item type="separator" />'), xmltype(' <item id="sql_cat"> <subdim> <item id="sqlid" /> <item id="sql_id_top" /> <item id="sql_fms" /> <item id="sqlid_phv" /> <item id="sqlid_fullphv"/> <item id="sql_rws" /> <item id=" sql_rws_line" /> <item id="sql_opcode" /> <item id="sql_opcode_top" /> </subdim> </item>'), xmltype(' <item id="pl_sql_cat"> <subdim> <item id="pl_sql" /> <item id="pl_sql_top" /> </subdim> </item>'), xmltype(' <item id="resource_consumption_cat"> <subdim> <item id="wait_class" /> <item id="event" /> <item id="object" /> <item id="blocking_session" /> </subdim> </item>'), xmltype(' <item id="session_identifiers_cat"> <subdim> <item id="inst ance_number" /> <item id="service_hash" /> <item id="physical_session" /> <item id="px_process" /> <item id="user_id" /> <item id="program" /> <item id="session_type" /> </subdim> </item>'), xmltype(' <item id="session_attributes_cat"> <subdim> <item id="consumer_group_id" /> <item id="module" /> <item id="action" /> <item id="client_id" /> <item id="machine" /> <item id="machine_port" /> <item id="xid" /> <item id="ecid" /> <item id="dbop " /> </subdim> </item>')) ) from sys.dual
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
3ms7w0c6ph91tinsert /* KSXM:FLUSH COL */ into sys.col_usage$ (obj#, intcol#, equality_preds, equijoin_preds, nonequijoin_preds, range_preds, like_preds, null_preds, flags, timestamp) values ( :objn, :coln, decode(bitand(:flag, 1), 0, 0, 1), decode(bitand(:flag, 2), 0, 0, 1), decode(bitand(:flag, 4), 0, 0, 1), decode(bitand(:flag, 8), 0, 0, 1), decode(bitand(:flag, 16), 0, 0, 1), decode(bitand(:flag, 32), 0, 0, 1), :flag, :time)
3un99a0zwp4vdselect owner#, name, namespace, remoteowner, linkname, p_timestamp, p_obj#, nvl(property, 0), subname, type#, flags, d_attrs from dependency$ d, obj$ o where d_obj#=:1 and p_obj#=obj#(+) order by order#
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
5k5207588w9rySELECT DBMS_REPORT.GET_REPORT(:B1 ) FROM DUAL
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
6h3cwmunz5z8qselect col#, grantee#, privilege#, max(mod(nvl(option$, 0), 2)), max(bitand(nvl(option$, 0), 8) /8), max(bitand(nvl(option$, 0), 16) /16), max(bitand(nvl(option$, 0), 64) /64), max(bitand(nvl(option$, 0), 128) /128) from objauth$ where obj#=:1 and col# is not null group by privilege#, col#, grantee# order by col#, grantee#
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
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;
8swypbbr0m372select order#, columns, types from access$ where d_obj#=:1
92qy0561n1unrSELECT 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 = 74372 AND p.SUBPROGRAM_ID = 9 ) OR ( p.OBJECT_ID = 7638 AND p.SUBPROGRAM_ID = 1 ) OR ( p.OBJECT_ID = 74372 AND p.SUBPROGRAM_ID = 8 ) OR ( p.OBJECT_ID = 74372 AND p.SUBPROGRAM_ID = 10 ) OR ( p.OBJECT_ID = 74372 AND p.SUBPROGRAM_ID = 11 ) OR ( p.OBJECT_ID = 74372 AND p.SUBPROGRAM_ID = 3 ) OR ( p.OBJECT_ID = 74372 AND p.SUBPROGRAM_ID = 2 ) ) 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
9s5cdq3h4nfbjselect dummy from dual where user = 'SYS' or user = 'SYSTEM'
9sq9djzzhr19yWITH binds as (select :dbid as dbid , :inst_id_low as instIdLow , :inst_id_high as instIdHigh , :begin_snap as beginSnap , :end_snap as endSnap , :begin_time as beginTime , :end_time as endTime , :disk_begin_time as diskBeginTime , :disk_end_time as diskEndTime , :mem_begin_time as memBeginTime , :mem_end_time as memEndTime , :bucket_count as bucketCount , :bucket_interval as bucketInterval , :mem_enable as memEnable , :disk_enable as diskEnable , :disk_filte r_ratio as filterRatio, :filter_action as filter_action, :filter_blocking_session as filter_blocking_session, :filter_capture_id as filter_capture_id, :filter_client_id as filter_client_id, :filter_consumer_group_id as filter_consumer_group_id, :filter_dbop as filter_dbop, :filter_ecid as filter_ecid, :filter_event as filter_event, :filter_instance_number as filter_instance_number, :filter_is_captured as filter_is_captured, :filter_is_filtered_out as filter_is_filtered_out, :filter_is_nc_background as filter_is_nc_background, :filter_is_replayed as filter_is_replayed, :filter_machine as filter_machine, :filter_machine_port as filter_machine_port, :filter_module as filter_module, :filter_object as filter_object, :filter_pdb as filter_pdb, :filter_physical_session as filter_physical_session, :filter_pl_sql as filter_pl_sql, :filter_pl_sql_top as filter_pl_sql_top, :filter_program as filter_program, :filter_px_process as filter_px_process, :filter_service_hash as filter_service_hash, :filter_session_type as filter_session_type, :filter_sql_fms as filter_sql_fms, :filter_sql_id_top as filter_sql_id_top, :filter_sql_opcode as filter_sql_opcode, :filter_sql_opcode_top as filter_sql_opcode_top, :filter_sql_rws as filter_sql_rws, :filter_sql_rws_line as filter_sql_rws_line, :filter_sqlid as filter_sqlid, :filter_sqlid_fullphv as filter_sqlid_fullphv, :filter_sqlid_phv as filter_sqlid_phv, :filter_user_id as filter_user_id, :filter_wait_class as filter_wait_class, :filter_xid as filter_xid from sys.dual) , unified_ash as (SELECT a.sample_id , a.sample_time , a.session_id , a.session_serial# , a.session_type , a.session_state , a.flags , a.user_id , a.sql_id , a.sql_opcode , a.sql_opname , a.top_level_sql_id , a.top_level_sql_opcode , a.sql_child_number , a.sql_plan_hash_value , a.sql_full_plan_has h_value , a.sql_plan_line_id , a.sql_plan_operation , a.sql_plan_options , a.sql_exec_id , a.force_matching_signature , a.plsql_entry_object_id , a.plsql_entry_subprogram_id , a.plsql_object_id , a.plsql_subprogram_id , a.service_hash , a.qc_session_id , a.qc_instance_id , a.qc_session_serial# , nvl(a.event, CASE WHEN bitand(a.time_model, power(2, 19)) > 0 THEN 'CPU: IM Populate' WHEN bitand(a.time_model, power(2, 20)) > 0 THEN 'CPU: IM Prepopulate' WHEN bitand(a.time_model, power(2, 21)) > 0 THEN 'CPU: IM Repopulate' WHEN bitand(a.time_model, power(2, 22)) > 0 THEN 'CPU: IM Trickle Repop' WHEN bitand(a.time_model, power(2, 18)) > 0 THEN 'CPU: IM Query' ELSE 'CPU + Wait for CPU' END) as event , nvl(a.event_id, 1) as event_id , nvl(a.wait_class, 'CPU') as wait_class , nvl(a.wait_class_id, 9999) as wait_class_id , a.seq# , a.p1 , a.p1text , a.p2 , a.p2text , a.p3 , a.p3text , a.wait_time , a.time_waited , rawtohex(a.xid) as xid , a.blocking_session , a.blocking_session_serial# , a.blocking_session_status , a.blocking_inst_id , a.current_obj# , a.current_file# , a.current_block# , a.top_level_call# , a.top_level_call_name , a.program , a.module , a.action , a.client_id , a.remote_instance# , a.ecid , a.consumer_group_id , a.machine , a.port , a.in_connection_mgmt , a.in_parse , a.in_hard_parse , a.in_s ql_execution , a.in_plsql_execution , a.in_plsql_rpc , a.in_plsql_compilation , a.in_java_execution , a.in_bind , a.in_cursor_close , a.in_sequence_load , a.is_captured , a.is_replayed , a.dbreplay_file_id , a.dbop_name , a.con_dbid, decode(binds.diskEnable, 0, 1, binds.filterRatio) as sample_count , inst_id as instance_number FROM sys.gv_$active_session_history a, binds WHERE binds.memEnable = 1 AND ( binds.diskEnable = 0 OR ( binds.diskEnable = 1 AND a.is_awr_sample = 'Y' AND bitand(a.flags, 128) = 0 ) ) AND a.inst_id between binds.instIdLow and binds.instIdHigh AND a.sample_time between binds.beginTime and binds.endTime UNION ALL SELECT a.sample_id , a.sample_time , a.session_id , a.session_serial# , a.session_type , a.session_state , a.flags , a.user_id , a.sql_id , a.sql_opcode , a.sql_opname , a.top_level_sql_id , a.top_level_sql_opcode , a.sql_child_number , a.sql_plan_hash_value , a.sql_full_plan_hash_value , a.sql_plan_line_id , a.sql_plan_operation , a.sql_plan_options , a.sql_exec_id , a.force_matching_signature , a.plsql_entry_object_id , a.plsql_entry_subprogram_id , a.plsql_object_id , a.plsql_subprogram_id , a.service_hash , a.qc_session_id , a.qc_instance_id , a.qc_session_serial# , nvl(a.event, CASE WHEN bitand(a.time_model, power(2, 19)) > 0 THEN 'CPU: IM Populate' WHEN bitand(a.time_model, power(2, 20)) > 0 THEN 'CPU: IM Prepopulate' WHEN bitand(a.time_model, power(2, 21)) > 0 THEN 'CPU: IM Repopulate' WHEN bitand(a.time_model, power(2, 22)) > 0 THEN 'CPU: IM Trickle Repop' WHEN bitand(a.time_model, power(2, 18)) > 0 THEN 'CPU: IM Query' ELSE 'CPU + Wait for CPU' END) as event , nvl(a.event_id, 1) as event_id , nvl(a.wait_class, 'CPU') as wait_class , nvl(a.wait_class_id, 9999) as wait_class_id , a.seq# , a.p1 , a.p1text , a.p2 , a.p2text , a.p3 , a.p3text , a.wait_time , a.time_waited , rawtohex(a.xid) as xid , a.blocking_session , a.blocking_session_serial# , a.blocking_session_status , a.blocking_inst_id , a.current_obj# , a.current_file# , a.current_block# , a.top_level_call# , a.top_level_call_name , a.program , a.module , a.action , a.client_id , a.remote_instance# , a.ecid , a.consumer_group_id , a.machine , a.port , a.in_connection_mgmt , a.in_parse , a.in_hard_parse , a.in_sql_execution , a.in_plsql_execution , a.in_plsql_rpc , a.in_plsql_compilation , a.in_java_execution , a.in_bind , a.in_cursor_close , a.in_sequence_load , a.is_captured , a.is_replayed , a.dbreplay_file_id , a.dbop_name , a.con_dbid, binds.filterRatio as sample_count , instance_number as instance_number FROM AWR_ROOT_active_sess_history a, binds WHERE binds .diskEnable = 1 AND a.dbid = binds.dbid AND a.instance_number between binds.instIdLow and binds.instIdHigh AND a.snap_id between binds.beginSnap and binds.endSnap + 1 AND a.sample_time between binds.beginTime and binds.endTime ), logical_ash as (select sample_id , sample_time , sample_count , instance_number as inst_id, wait_class as global_hist_wc, event as event, instance_number || ':' || session_id || ', ' || session_serial# as physical_session, sql_id as sqlid, wait_class as wait_class, xid as xid, instance_number as instance_number, user_id as user_id, program as program from unified_ash) , bucketized_ash as (SELECT ash0.*, (case when binds.bu cketCount > 1 then trunc( ( (24 * 60 * 60 * extract(day from sample_time - binds.beginTime)) + (60 * 60 * extract(hour from sample_time - binds.beginTime)) + (60 * extract(minute from sample_time - binds.beginTime)) + (1 * extract(second from sample_time - binds.beginTime)) ) / binds.bucketInterval ) + 1 else 1 end) as bucket_number F ROM logical_ash ash0, binds), filter_xml as (SELECT xmlconcat(xmlelement("filters" ) , xmlelement("report_time", xmlattributes( to_char(o.begintime, 'HH24:MI:SS MM/DD/YYYY') as "begin_time", to_char(o.endtime, 'HH24:MI:SS MM/DD/YYYY') as "end_time"))) as xml_frag FROM (select binds.*, nvl(to_number(filter_pdb), 0) as con_dbid from binds) o) , filtered_ash as (SELECT ash.*, (case when 1=1 then 1 else 0 end) filtered FROM bucketized_ash ash, binds), grouped_ash as (SELECT ash.*, (CASE WHEN nvl(filtered, 2) = 1 THEN 0 -- target / no histogram ELSE 1 -- totals/global END) AS bucket_type FROM (SELECT filtered, event, physical_session, sqlid, wait_class, bucket_number , grouping_id(filtered , event, physical_session, sqlid, wait_class, bucket_number) as gid , global_hist_wc , max(inst_id) as inst_id , sum(sample_count) as sample_count , count(distinct sqlid) as uniq_sqlids , count(distinct xid) as uniq_xids , count(distinct physical_session) as uniq_sessions , count(distinct instance_number) as uniq_instances, max(user_id) as user_id, max(program) as program from filtered_ash group by grouping sets( (bucket_number, global_hist_wc) , ( bucket_number, wait_class, filtered), (wait_class, filtered), (sqlid, wait_class, filtered), (physical_session, wait_class, filtered), (wait_class, event, filtered)) ) ash -- eliminate rows with filtered = 0 -- keep filtered and from global/total WHERE (nvl(filtered, 2) != 0)), component_1_treemap as (select dim_val , inst_id , sample_count , num_mem , mem_rank , uniq_sqlids , uniq_xids , uniq_sessions , uniq_instances , 0 AS bucket_type --target(not global)/filtered bucket from (select max(case when mem_rank <= 13 then dim_val else null end) as dim_val , sum(sample_count) as sample_count , count(*) as num_mem , max(case when mem_rank <= 13 then mem_rank else (13 + 1) end) as mem_rank , max(case when mem_rank <= 13 then uniq_sqlids else 0 end) as uniq_sqlids , max(case when mem_rank <= 13 then uniq_xids else 0 end) as uniq_xids , max(case when mem_rank <= 13 then uniq_sessions else 0 end) as uniq_sessions , max(case when mem_rank <= 13 then uniq_ins tances else 0 end) as uniq_instances , max(inst_id) as inst_id from (select wait_class as dim_val , sample_count , dense_rank() over (order by sample_count desc , wait_class) as mem_rank , uniq_sqlids , uniq_xids , uniq_sessions , uniq_instances , inst_id from grouped_ash where gid = 29 and wait_class is not null) group by (case when mem_rank <= 13 then dim_val else null end) ) left ) , component_1_histogram as (select bucket_number , sum(sample_count) as sample_count , max(case when mem_rank <= 13 then mem_rank when mem_rank is not null then (13 + 1) end) as mem_rank , bucket_type from (select g1.bucket_number , g1.sample_count as sample_count , (case when g1.wait_class = g2.dim_val then to_char(g2.dim_val) -- global/totals when g1.bucket_type = 1 then g1.global_hist_wc else null end) as dim_val , (case when g1.wait_class = g2.dim_val then g2.mem_rank when g1.bucket_type = 1 then NULL else (13 + 1) end) as mem_rank , g1.bucket_type from grouped_ash g1, component_1_treemap g2 where -- both filtered and global (g1.gid = 28 AND g1.wait_class is not null OR g1.bucket_type = 1) and g1.wait_class = g2.dim_val(+) -- join filtered rows only and g1.bucket_type = g2.bucket_type(+) ) group by bucket_number , dim_val , bucket_type ) , component_1_xml as (select xmlelement("item" , xmlattributes('wait_class' as "id" , topmems.cnt_all as "count" , topmems.num_mem as "num_mem" , topmems.num_others as "num_others") , xmlconcat( topmems.topmems_frag , histogram.histogram_xml)) as dim_frag from (select xmlelement( "top_mems" , xmlattributes(sum(case when mem_rank <= 13 then sample_count else 0 end) as "count") , xmlagg(xmlelement( "mem" , xmlattributes(mem_rank as "id" , dim_val as "name" , sample_count as "count" , uniq_sqlids as "uniq_sqlids" , uniq_xids as "uniq_xids" , uniq_sessions as "uniq_sessions" , uniq_instances as "uniq_instances") ) order by sample_count desc)) as topmems_frag , sum(case when mem_rank <= 13 then 1 else 0 end) as num_mem , sum(sample_count) as cnt_all , max(case when mem_rank <= 13 then 0 else num_mem end) as num_others from (component_1_treem ap) t ) topmems , (SELECT xmlagg( xmlelement( "histogram" , xmlattributes( (case when bucket_type = 1 then 'all' else 'target' end) AS "type" , max(binds.bucketCount) as "bucket_count" , max(binds.bucketInterval) as "bucket_interval") , xmlagg(bucket_xml order by bucket_type, bucket_number asc) ) ) as histogram_xml FROM (SELECT bucket_type , bucket_number , xmlelement( "bucket " , xmlattributes(bucket_number as "number" , sum(sample_count) as "count") , (case when bucket_type = 0 then -- filtered rows xmlelement( "top_mems" , xmlattributes( sum(case when mem_rank <= 13 then sample_count else 0 end) as "count") , xmlagg( xmlelement( "mem" , xmlattributes( mem_rank as "id" , sample_count as "count")) order by mem_rank asc)) end)) as bucket_xml FROM (component_1_histogram) GROUP BY bucket_number, bucket_type), binds GROUP by bucket_type) histogram ), component_2_xml as (select xmlelement( "item" , xmlattributes( 'sqlid, wait_class' as "item") , xmlelement( "top_mems" , xmlagg( xmlelement( "mem" , xmlattributes( dim1_value as "dim1_value" , dim1_nummem as "dim1_nummem" , dim1_rank as "dim1_rank" , dim2_value as "dim2_value" , dim12_nummem as "dim2_nummem" , dim12_rank as "dim2_rank" , dim12_count as "count" , uniq_sqlids as "uniq_sqlids" , uniq_xids as "uniq_xids" , uniq_sessions as "uniq_sessions" , uniq_instances as "uniq_instances" ) , NVL2(sql_text1, xmlelement("info" , xmlattributes('dim1_name' as "type") , sql_text1), NULL) , NVL2(NULL, xmlelement("info" , xmlattributes('dim2_name' as "type") , NULL), NULL) ) order by dim1_rank, dim12_rank ) ) ) as dim_frag from (select dim_data.* , NVL((SELECT replace(substr(v.sql_text, 1, 100), CHR(0), '') as sql_text FROM sys.gv_$sql v WHERE v.sql_id = dim_data.dim1_value AND v.inst_id = dim_data.inst_id AND rownum < 2 ), ( SELECT replace(sys.dbms_lob.substr(v.sql_text, 100, 1), CHR(0), '') as sql_text FROM AWR_ROOT_sqltext v, binds b WHERE v.dbid = b.dbid AND v.sql_id = dim_data.dim1_value AND rownum < 2)) as sql_text1 from (select max(case when dim1_rank <= 10 then dim1_val else null end) as dim1_value , max(case when dim1_rank <= 10 then dim2_val else null end) as dim2_value , sum(dim12_count) as dim12_count , max(case when dim1_rank <= 10 then uniq_sqlids else 0 end) as uniq_sqlids , max(case when dim1_rank <= 10 then uniq_xids else 0 end) as uniq_xids , max(case when dim1_rank <= 10 then uniq_sessions else 0 end) as uniq_sessions , max(case when dim1_rank <= 10 then uniq_instances else 0 end) as uniq_instances , count(distinct dim1_val) as dim1_nummem , sum(dim12_nummem) as dim12_nummem , max(case when dim1_rank <= 10 then dim1_rank else (10 + 1) end) as dim1_rank , max(case when dim1_rank <= 10 then dim12_rank else (10 + 1) end) as dim12_rank , max(inst_id) as inst_id from (select dim1_val , max(case when dim12_rank <= 13 then dim2_val else null end) as dim2_val , dim1_count , sum(dim12_count) as dim12_count , max(case when dim12_rank <= 13 then uniq_sqlids else 0 end) as uniq_sqlids , max(case when dim12_rank <= 13 then uniq_xids else 0 end) as uniq_xids , max(case when dim12_rank <= 13 then uniq_sessions else 0 end) as uniq_sessions , max(case when dim12_rank <= 13 then uniq_instances else 0 end) as uniq_insta nces , count(*) as dim12_nummem , dense_rank() over (order by dim1_count desc , dim1_val ) as dim1_rank , max(case when dim12_rank <= 13 then dim12_rank else (13 + 1) end) as dim12_rank , max(inst_id) as inst_id from (select sqlid as dim1_val , wait_class as dim2_val , sample_count as dim12_count , dense_rank() over (partition by sqlid order by sample_count desc , wait_class ) as dim12_rank , sum(sample_count) over (partition by sqlid ) as dim1_count , uniq_sqlids , uniq_xids , uniq_sessions , uniq_instances , inst_id from grouped_ash where gid = 25 and sqlid is not null and wait_class is not null ) group by dim1_val , dim1_count , (case when dim12_rank <= 13 then dim2_val else null end) ) group by (case when dim1_rank <= 10 then dim1_val else null end) , (case when dim1_rank <= 10 then dim2_val else null end) ) dim_data ) t ), component_3_xml as (select xmlelement( "item" , xmlattributes( 'physical_session, wait_class' as "item") , xmlelement( "top_mems" , xmlagg( xmlelement( "mem" , xmlattributes( dim1_value as "dim1_value" , dim1_nummem as "dim1_nummem" , dim1_rank as "dim1_rank" , dim2_value as "dim2_value" , dim12_nummem as "dim2_nummem" , dim12_rank as "dim2_rank" , dim12_count as "count" , uniq_sqlids as "uniq_sqlids" , uniq_xids as "uniq_xids" , uniq_sessions as "uniq_sessions" , uniq_instances as "uniq_instances" ) , NVL2(NULL, xmlelement("info" , xmlattributes('dim1_name' as "type") , NULL), NULL) , NVL2(NULL, xmlelement( "info" , xmlattributes('dim2_name' as "type") , NULL), NULL) ) order by dim1_rank, dim12_rank ) ) ) as dim_frag from (select dim_data.* from (select max(case when dim1_rank <= 10 then dim1_val else null end) as dim1_value , max(case when dim1_rank <= 10 then dim2_val else null end) as dim2_value , sum(dim12_count) as dim12_count , max(case when dim1_rank <= 10 then uniq_sqlids else 0 end) as uniq_sqlids , max(case when dim1_rank <= 10 then uniq_xids else 0 end) as uniq_xids , max(case when dim1_rank <= 10 then uniq_sessions else 0 end) as uniq_sessions , max(case when dim1_rank <= 10 then uniq_instances else 0 end) as uniq_ instances , count(distinct dim1_val) as dim1_nummem , sum(dim12_nummem) as dim12_nummem , max(case when dim1_rank <= 10 then dim1_rank else (10 + 1) end) as dim1_rank , max(case when dim1_rank <= 10 then dim12_rank else (10 + 1) end) as dim12_rank , max(inst_id) as inst_id from (select dim1_val , max(case when dim12_rank <= 13 then dim2_val else null end) as dim2_val , dim1_count , sum(dim12_count) as dim12_count , max(case when dim12_rank <= 13 then uniq_sqlids else 0 end) as uniq_sqlids , max(case when dim12_rank <= 13 then uniq_xids else 0 end) as uniq_xids , max(case when dim12_rank <= 13 then uniq_sessions else 0 end) as uniq_sessions , max(case when dim12_rank <= 13 then uniq_instances else 0 end) as uniq_instances , count(*) as dim12_nummem , dense_rank() over (order by dim1_count desc , dim1_val ) as dim1_rank , max(case when dim12_rank <= 13 then dim12_rank else (13 + 1) end) as dim12_rank , max(inst_id) as inst_id from (select physical_session as dim1_val , wait_class as dim2_val , sample_count as dim12_count , dense_rank() over (partition by physical_session order by sample_count desc , wait_class ) as dim12_rank , sum(sample_count) over (partition by physical_session ) as dim1_count , uniq_sqlids , uniq_xids , uniq_sessions , uniq_instances , inst_id from grouped_ash where gid = 21 and physical_session is not null and wait_class is not null ) group by dim1_val , dim1_count , (case when dim12_rank <= 13 then dim2_val else null end) ) group by (case when dim1_rank <= 10 t hen dim1_val else null end) , (case when dim1_rank <= 10 then dim2_val else null end) ) dim_data ) t ), component_4_xml as (select xmlelement( "item" , xmlattributes( 'wait_class, event' as "item") , xmlelement( "top_mems" , xmlagg( xmlelement( "mem" , xmlattributes( dim1_value as "dim1_value" , dim1_nummem as "dim1_nummem" , dim1_rank as "dim1_rank" , dim2_value as "dim2_value" , dim12_nummem as "dim2_nummem" , dim12_rank as "dim2_rank" , dim12_count as "count" , uniq_sqlids as "uniq_sqlids" , uniq_xids as "uniq_xids" , uniq_sessions as "uniq_sessions" , uniq_instances as "uniq_instances" ) , NVL2(NULL, xm lelement("info" , xmlattributes('dim1_name' as "type") , NULL), NULL) , NVL2(NULL, xmlelement("info" , xmlattributes('dim2_name' as "type") , NULL), NULL) ) order by dim1_rank, dim12_rank ) ) ) as dim_frag from (select dim_data.* from (select max(case when dim1_rank <= 13 then dim1_val else null end) as dim 1_value , max(case when dim1_rank <= 13 then dim2_val else null end) as dim2_value , sum(dim12_count) as dim12_count , max(case when dim1_rank <= 13 then uniq_sqlids else 0 end) as uniq_sqlids , max(case when dim1_rank <= 13 then uniq_xids else 0 end) as uniq_xids , max(case when dim1_rank <= 13 then uniq_sessions else 0 end) as uniq_sessions , max(case when dim1_rank <= 13 then uniq_instances else 0 end) as uniq_instances , count(distinct dim1_val) as dim1_nummem , sum(dim12_nummem) as dim12_nummem , max(case when dim1_rank <= 13 then dim1_rank else (13 + 1) end) as dim1_rank , max(case when dim1_rank <= 13 then dim12_rank else (13 + 1) end) as dim12_rank , max(inst_id) as inst_id from (select dim1_val , max(case when dim12_rank <= 10 then dim2_val else null end) as dim2_val , dim1_count , sum(dim12_count) as dim12_count , max(case when dim12_rank <= 10 then uniq_sqlids else 0 end) as uniq_sqlids , max(case when dim12_rank <= 10 then uniq_xids else 0 end) as uniq_xids , max(case when dim12_rank <= 10 then uniq_sessions else 0 end) as uniq_sessions , max(case when dim12_rank <= 10 then uniq_instances else 0 end) as uniq_instances , count(*) as dim12_nummem , dense_rank() over (order by dim1_count desc , dim1_val ) as dim1_rank , max(case when dim12_rank <= 10 then dim12_rank else (10 + 1) end) as dim12_rank , max(inst_id) as inst_id from (select wait_class as dim1_val , event as dim2_val , sample_count as dim12_count , dense_rank() over (partition by wait_class order by sample_count desc , event ) as dim12_rank , sum(sample_count) over ( partition by wait_class ) as dim1_count , uniq_sqlids , uniq_xids , uniq_sessions , uniq_instances , inst_id from grouped_ash where gid = 13 and wait_class is not null and event is not null ) group by dim1_val , dim1_count , (case when dim12_rank <= 10 then dim2_val else null end) ) group by (case when dim1_rank <= 13 then dim1_val else null end) , (case when dim1_rank <= 13 then dim2_val else null end) ) dim_data ) t )select xmlconcat((select xml_frag from filter_xml), xmlelement("dim_list", xmlconcat((select dim_frag from component_1_xml), (select dim_frag from component_2_xml), (select dim_frag from component_3_xml), (select dim_frag from component_4_xml))) ) from sys.dual
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
a3jpjzh7mtwwpselect /*+ index(idl_ub2$ i_idl_ub21) */ piece#, length, piece from idl_ub2$ where obj#=:1 and part=:2 and version=:3 order by piece#
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_elapsed_ 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 TH EN 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, M ODULE 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;
acmvv4fhdc9zhselect obj#, type#, ctime, mtime, stime, status, dataobj#, flags, oid$, spare1, spare2, spare3, signature, spare7, spare8, spare9, nvl(dflcollid, 16382), creappid, creverid, modappid, modverid, crepatchid, modpatchid from obj$ where owner#=:1 and name=:2 and namespace=:3 and remoteowner is null and linkname is null and subname is null
apgb2g9q2zjh1BEGIN :1 := orderentry.browseandupdateorders(:2 , :3 , :4 ); END;
asvzxj61dc5vsselect timestamp, flags from fixed_obj$ where obj#=:1
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_V ALUE) 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_A LLOC_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_FIRST _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_FIRST _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_BUCKET_ 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_BUCK ETS_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 (T M_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_BUCKE T_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, SAMPLE_ 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) SAM PLE_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_T YPE, 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;
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
f3ww8rgva3hrsupdate /* KSXM:FLUSH COL */ sys.col_usage$ set equality_preds = equality_preds + decode(bitand(:flag, 1), 0, 0, 1), equijoin_preds = equijoin_preds + decode(bitand(:flag, 2), 0, 0, 1), nonequijoin_preds = nonequijoin_preds + decode(bitand(:flag, 4), 0, 0, 1), range_preds = range_preds + decode(bitand(:flag, 8), 0, 0, 1), like_preds = like_preds + decode(bitand(:flag, 16), 0, 0, 1), null_preds = null_preds + decode(bitand(:flag, 32), 0, 0, 1), flags = flags + :flag - bitand(flags, :flag), timestamp = :time where obj# = :objn and intcol# = :coln
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)
f9u2k84v884y7UPDATE /*+ index(orders, order_pk) */ ORDERS SET ORDER_STATUS = FLOOR(DBMS_RANDOM.VALUE(:B3 + 1, :B2 )) WHERE ORDER_ID = :B1
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 "HOS TNAME", 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.a ction "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_I D", 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##
fffaspt7gd9ccBEGIN DBMS_WORKLOAD_REPOSITORY.CREATE_SNAPSHOT (); END;
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;
g0t052az3rx44select name, intcol#, segcol#, type#, length, nvl(precision#, 0), decode(type#, 2, nvl(scale, -127/*MAXSB1MINAL*/), 178, scale, 179, scale, 180, scale, 181, scale, 182, scale, 183, scale, 231, scale, 0), null$, fixedstorage, nvl(deflength, 0), default$, rowid, col#, property, nvl(charsetid, 0), nvl(charsetform, 0), spare1, spare2, nvl(spare3, 0), nvl(evaledition#, 1), nvl(unusablebefore#, 0), nvl(unusablebeginning#, 0), case when (type# in (1, 8, 9, 96, 112)) then nvl(collid, 16382) else 0 end case, nvl(collintcol#, 0), nvl(acdrrescol#, 0), nvl(spare7, 0), nvl(spare9, 0), nvl(spare10, 0) from col$ where obj#=:1 order by intcol#
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 changes592,580730.3155.71
execute count345,559425.8832.49
gc cr block receive time420.050.00
gc cr blocks received1,0811.330.10
gc current block receive time18,04622.241.70
gc current blocks received197,684243.6318.59
logons cumulative8481.050.08
opened cursors cumulative306,324377.5228.80
parse count (total)16,17519.931.52
parse time elapsed2,6253.240.25
physical reads6,698,9778,256.01629.84
physical writes89,486110.298.41
redo size55,685,56068,628.485,235.57
session cursor cache hits296,693365.6527.90
session logical reads61,351,21175,610.995,768.26
user calls50,22061.894.72
user commits10,63613.111.00
user rollbacks00.000.00
workarea executions - onepass00.000.00
workarea executions - optimal6,9748.590.66


Back to Instance Activity Statistics
Back to Top

Instance Activity Stats

StatisticTotalper Secondper Trans
ASSM bg: segment fix monitor20.000.00
ASSM cbk:blocks examined19,90724.531.87
ASSM cbk:blocks marked full3480.430.03
ASSM gsp:L1 bitmaps examined20,94225.811.97
ASSM gsp:L2 bitmap full380.050.00
ASSM gsp:L2 bitmaps examined10,57013.030.99
ASSM gsp:L3 bitmaps examined160.020.00
ASSM gsp:Optimized reject DB00.000.00
ASSM gsp:Optimized reject l100.000.00
ASSM gsp:Optimized reject l200.000.00
ASSM gsp:Search all370.050.00
ASSM gsp:Search hint380.050.00
ASSM gsp:Search steal280.030.00
ASSM gsp:bump HWM280.030.00
ASSM gsp:get free block19,56124.111.84
ASSM gsp:get free data block19,26323.741.81
ASSM gsp:get free index block2980.370.03
ASSM gsp:good hint9,34311.510.88
ASSM gsp:reject L100.000.00
ASSM gsp:reject L2100.010.00
ASSM gsp:reject db00.000.00
ASSM rsv:fill reserve160.020.00
ASSM wasted db state change70.010.00
Batched IO (bound) vector count1,3381.650.13
Batched IO (full) vector count82,469101.647.75
Batched IO (space) vector count45,11355.604.24
Batched IO block miss count10,943,90013,487.581,028.95
Batched IO buffer defrag count53,00565.324.98
Batched IO double miss count1,753,0952,160.56164.83
Batched IO same unit count376,152463.5835.37
Batched IO single block count1,5061.860.14
Batched IO slow jump count00.000.00
Batched IO vector block count10,692,72913,178.031,005.33
Batched IO vector read count129,724159.8812.20
Block Cleanout Optim referenced500.060.00
CCursor + sql area evicted2,7243.360.26
CPU used by this session56,10769.155.28
CPU used when call started54,06566.635.08
CR blocks created1,3771.700.13
Cached Commit SCN referenced2,6743.300.25
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 cached810.100.01
DBWR checkpoint buffers written5,5736.870.52
DBWR checkpoints870.110.01
DBWR fusion writes2260.280.02
DBWR object drop buffers written710.090.01
DBWR parallel query checkpoint buffers written00.000.00
DBWR thread checkpoint buffers written00.000.00
DBWR transaction table writes1810.220.02
DBWR undo block writes2,6193.230.25
DDL statements parallelized00.000.00
DFO trees parallelized3960.490.04
DML statements retried00.000.00
Effective IO time3,706,9664,568.57348.53
HSC Heap Segment Block Changes50,22661.904.72
Heap Segment Array Deletes00.000.00
Heap Segment Array Inserts2070.260.02
Heap Segment Array Updates350.040.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 req3040.370.03
KTFB alloc space (block)23,855,10429,399.712,242.86
KTFB alloc time (ms)458,426564.9843.10
KTFB apply req1500.180.01
KTFB apply time (ms)9271.140.09
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 issued2580.320.02
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'd6,3377.810.60
PX local messages sent6,3377.810.60
PX remote messages recv'd9,68211.930.91
PX remote messages sent1,6422.020.15
Parallel operations not downgraded6010.740.06
Requests to/from client44,35454.664.17
RowCR attempts80.010.00
RowCR hits70.010.00
SMON posted for undo segment shrink00.000.00
SQL*Net roundtrips to/from client44,45454.794.18
TBS Extension: bytes extended10,485,76012,922.95985.87
TBS Extension: files extended10.000.00
TBS Extension: tasks created10.000.00
TBS Extension: tasks executed10.000.00
active txn count during cleanout5880.720.06
auto extends on undo tablespace00.000.00
background checkpoints completed00.000.00
background checkpoints started00.000.00
background timeouts10,81313.331.02
blocks cleaned out using minact20,37625.111.92
branch node splits270.030.00
buffer is not pinned count79,287,15197,715.767,454.60
buffer is pinned count59,869,57973,784.985,628.96
bytes received via SQL*Net from client4,118,8965,076.25387.26
bytes sent via SQL*Net to client6,752,3158,321.75634.85
calls to get snapshot scn: kcmgss466,803575.3043.89
calls to kcmgas31,43538.742.96
calls to kcmgcs78,37696.597.37
cell physical IO interconnect bytes56,770,691,07269,965,826.075,337,597.88
change write time1150.140.01
cleanout - number of ktugct calls7650.940.07
cleanouts and rollbacks - consistent read gets480.060.00
cleanouts only - consistent read gets1690.210.02
cluster key scan block gets85,135104.928.00
cluster key scans59,48673.315.59
commit batch performed00.000.00
commit batch requested00.000.00
commit batch/immediate performed750.090.01
commit batch/immediate requested750.090.01
commit cleanout failures: block lost40.000.00
commit cleanout failures: buffer being written130.020.00
commit cleanout failures: callback failure260.030.00
commit cleanout failures: cannot pin60.010.00
commit cleanouts92,602114.138.71
commit cleanouts successfully completed92,553114.068.70
commit immediate performed750.090.01
commit immediate requested750.090.01
commit nowait performed00.000.00
commit nowait requested00.000.00
commit txn count during cleanout5260.650.05
commit wait/nowait performed00.000.00
commit wait/nowait requested00.000.00
consistent changes249,843307.9123.49
consistent gets60,196,25774,187.595,659.67
consistent gets direct4730.580.04
consistent gets examination6,083,2987,497.23571.95
consistent gets examination (fastpath)5,975,2707,364.09561.80
consistent gets from cache60,195,78474,187.015,659.63
consistent gets pin54,112,48666,689.785,087.67
consistent gets pin (fastpath)53,854,50466,371.835,063.42
cumulative begin requests1000.120.01
cumulative end requests00.000.00
cursor authentications2620.320.02
cursor reload failures440.050.00
data blocks consistent reads - undo records applied2,1292.620.20
db block changes592,580730.3155.71
db block gets1,154,9541,423.40108.59
db block gets direct2,6133.220.25
db block gets from cache1,152,3411,420.18108.34
db block gets from cache (fastpath)928,5371,144.3687.30
deferred (CURRENT) block cleanout applications24,18729.812.27
dirty buffers inspected82,339101.487.74
enqueue conversions12,55515.471.18
enqueue releases306,931378.2728.86
enqueue requests307,474378.9428.91
enqueue timeouts5430.670.05
enqueue waits5,3606.610.50
exchange deadlocks60.010.00
execute count345,559425.8832.49
failed probes on index block reclamation00.000.00
file io service time51,299,13463,222.524,823.16
free buffer inspected9,156,58811,284.84860.91
free buffer requested6,999,2378,626.06658.07
gc blocks compressed1,5211.870.14
gc blocks lost1130.140.01
gc cleanout applied00.000.00
gc cleanout saved40.000.00
gc cr anti locks created3,3024.070.31
gc cr anti locks expanded2790.340.03
gc cr anti locks shrunk2880.350.03
gc cr block build time00.000.00
gc cr block flush time540.070.01
gc cr block receive time420.050.00
gc cr blocks built1560.190.01
gc cr blocks flushed380.050.00
gc cr blocks received1,0811.330.10
gc cr blocks served1,2601.550.12
gc cr multiblock grant time3,6044.440.34
gc cr multiblock grants received178,359219.8116.77
gc current block flush time70.010.00
gc current block pin time00.000.00
gc current block receive time18,04622.241.70
gc current blocks flushed390.050.00
gc current blocks pinned10.000.00
gc current blocks received197,684243.6318.59
gc current blocks served4020.500.04
gc force cr read cr2880.350.03
gc force cr read current260.030.00
gc kbytes saved8,48710.460.80
gc kbytes sent4,8095.930.45
gc local grants6,465,5967,968.39607.90
gc merge pi bg00.000.00
gc merge pi fg560.070.01
gc no change made20.000.00
gc read time waited00.000.00
gc read waits00.000.00
gc reader bypass grants1,9182.360.18
gc reader bypass waits6420.790.06
gc remote grants263,988325.3524.82
gc status messages received187,084230.5717.59
gc status messages sent4590.570.04
gcs affinity lock failures00.000.00
gcs affinity lock grants2,8043.460.26
gcs anti-locks created3,3024.070.31
gcs data block access record drops00.000.00
gcs data block access records6,916,0258,523.51650.25
gcs messages sent942,8241,161.9688.64
gcs read-mostly lock failures654,754806.9461.56
gcs read-mostly lock grants5,767,9277,108.56542.30
gcs stats management (SCM) process posts60.010.00
ges messages sent15,00618.491.41
global enqueue gets async00.000.00
global enqueue gets sync512,887632.1048.22
global enqueue releases500,015616.2347.01
global undo segment hints helped00.000.00
global undo segment hints were stale00.000.00
heap block compress760.090.01
hot buffers moved to head of LRU10,614,51313,081.63997.98
immediate (CR) block cleanout applications2170.270.02
immediate (CURRENT) block cleanout applications4,7285.830.44
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 key1,904,2142,346.81179.03
index range scans606,755747.7857.05
index reclamation/extension switch10.000.00
index split cancel wait noclean140.020.00
leaf node 90-10 splits60.010.00
leaf node splits2490.310.02
lob reads1,0901.340.10
lob writes44,49054.834.18
lob writes unaligned44,49054.834.18
logical read bytes from cache502,563,840,000619,374,074.1447,251,207.22
logons cumulative8481.050.08
max cf enq hold time1680.210.02
messages received11,25113.871.06
messages sent11,25113.871.06
min active SCN optimization applied on CR7,5309.280.71
no work - consistent read gets54,046,60466,608.585,081.48
non-idle wait count1,214,7021,497.03114.21
opened cursors cumulative306,324377.5228.80
parse count (describe)10.000.00
parse count (failures)10.000.00
parse count (hard)1,0321.270.10
parse count (total)16,17519.931.52
parse time cpu4560.560.04
parse time elapsed2,6253.240.25
physical read IO requests6,686,3108,240.40628.65
physical read bytes54,878,019,58467,633,243.515,159,648.32
physical read total IO requests6,702,7088,260.61630.19
physical read total bytes55,145,181,18467,962,501.125,184,766.94
physical read total multi block requests1090.130.01
physical reads6,698,9778,256.01629.84
physical reads cache6,698,5028,255.43629.80
physical reads cache prefetch6,281,3087,741.26590.57
physical reads direct4730.580.04
physical reads direct (lob)2860.350.03
physical reads direct temporary tablespace2860.350.03
physical write IO requests79,93098.517.52
physical write bytes733,069,312903,455.6268,923.40
physical write total IO requests90,656111.738.52
physical write total bytes809,875,456998,113.7176,144.74
physical write total multi block requests760.090.01
physical writes89,486110.298.41
physical writes direct2,6503.270.25
physical writes direct (lob)7120.880.07
physical writes direct temporary tablespace2,2382.760.21
physical writes from cache86,836107.028.16
physical writes non checkpoint81,600100.577.67
pinned buffers inspected2,2692.800.21
pinned cursors current00.000.00
prefetched blocks aged out before use20.000.00
process last non-idle time8111.000.08
queries parallelized50.010.00
recovery blocks read20.000.00
recursive calls1,815,1312,237.02170.66
recursive cpu usage52,34864.524.92
redo KB read00.000.00
redo blocks checksummed by FG (exclusive)15,01618.511.41
redo blocks written117,729145.0911.07
redo blocks written (group 0)00.000.00
redo blocks written (group 1)00.000.00
redo buffer allocation retries00.000.00
redo entries192,282236.9718.08
redo log space requests00.000.00
redo ordering marks00.000.00
redo size55,685,56068,628.485,235.57
redo size for direct writes3600.440.03
redo subscn max counts2,0752.560.20
redo synch long waits530.070.00
redo synch time30,47737.562.87
redo synch time (usec)304,792,146375,634.5728,656.65
redo synch time overhead (usec)899,9871,109.1784.62
redo synch time overhead count ( 2ms)11,23913.851.06
redo synch time overhead count ( 8ms)280.030.00
redo synch time overhead count ( 32ms)80.010.00
redo synch time overhead count (128ms)00.000.00
redo synch writes11,55514.241.09
redo wastage2,673,4763,294.87251.36
redo write active strands10,28712.680.97
redo write broadcast ack count910.110.01
redo write broadcast ack time57,09670.375.37
redo write finish time129,549,155159,660.0912,180.25
redo write gather time348,888429.9832.80
redo write info find11,27513.901.06
redo write schedule time402,413495.9537.83
redo write size count ( 4KB)5,3596.600.50
redo write size count ( 8KB)2,6103.220.25
redo write size count ( 16KB)1,4231.750.13
redo write size count ( 32KB)3860.480.04
redo write size count ( 128KB)1280.160.01
redo write size count ( 256KB)60.010.00
redo write size count ( 512KB)20.000.00
redo write size count (1024KB)50.010.00
redo write size count (inf)00.000.00
redo write time12,95615.971.22
redo write time (usec)129,556,901159,669.6412,180.98
redo write total time129,749,388159,906.8612,199.08
redo write worker delay (usec)00.000.00
redo write worker delay count00.000.00
redo writes9,91912.220.93
redo writes (group 0)00.000.00
redo writes (group 1)00.000.00
redo writes adaptive all9,91812.220.93
redo writes adaptive worker00.000.00
remote Oradebug requests60.010.00
rollback changes - undo records applied220.030.00
rollbacks only - consistent read gets1,3151.620.12
root node splits10.000.00
rows fetched via callback1,795,9342,213.36168.85
saved cleanout failures: callback failure00.000.00
saved cleanouts00.000.00
saved cleanouts successfully completed00.000.00
securefile allocation bytes303,104373.5528.50
securefile allocation chunks130.020.00
securefile bytes non-transformed289,032356.2127.17
securefile direct read bytes00.000.00
securefile direct read ops00.000.00
securefile direct write bytes303,104373.5528.50
securefile direct write ops130.020.00
securefile number of non-transformed flushes220.030.00
segment cfs allocations00.000.00
segment chunks allocation from dispenser130.020.00
segment dispenser allocations130.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)8,96511.050.84
segment total chunk allocation00.000.00
session cursor cache hits296,693365.6527.90
session logical reads61,351,21175,610.995,768.26
shared hash latch upgrades - no wait6,105,5097,524.60574.04
shared hash latch upgrades - wait2,8553.520.27
shared io pool buffer get success130.020.00
sorts (disk)00.000.00
sorts (memory)5,6316.940.53
sorts (rows)54,669,55467,376.325,140.05
sql area evicted3,2674.030.31
sql area purged380.050.00
summed dirty queue length4,140,8035,103.24389.32
switch current caused by our pin3960.490.04
switch current to new buffer5250.650.05
table fetch by rowid68,291,89784,164.896,420.83
table fetch continued row5550.680.05
table scan blocks gotten52,12664.244.90
table scan disk non-IMC rows gotten1,376,1951,696.06129.39
table scan rows gotten1,376,1951,696.06129.39
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)8,0359.900.76
temp space allocated (bytes)2,097,1522,584.59197.17
total cf enq hold time6,8328.420.64
total number of cf enq holders1170.140.01
total number of times SMON posted00.000.00
transaction lock background get time10.000.00
transaction lock background gets1240.150.01
transaction lock foreground requests1240.150.01
transaction rollbacks100.010.00
transaction tables consistent read rollbacks00.000.00
transaction tables consistent reads - undo records applied00.000.00
undo change vector size16,239,24420,013.711,526.82
user calls50,22061.894.72
user commits10,63613.111.00
user logons cumulative2220.270.02
user logouts cumulative2220.270.02
user rollbacks00.000.00
workarea executions - onepass00.000.00
workarea executions - optimal6,9748.590.66
write clones created in background00.000.00
write clones created in foreground2,5433.130.24


Back to Instance Activity Statistics
Back to Top

Instance Activity Stats - Absolute Values

StatisticBegin ValueEnd Value
logons current106108
opened cursors current217219
session cursor cache count25,88731,632
session pga memory701,937,960724,117,880
session pga memory max1,047,725,6401,080,357,208
session uga memory2,031,464,4482,234,123,712
session uga memory max65,863,080,56068,750,978,040


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 Reads51,1G8237.5464,478M0M0.000M417,3K43.80ms
DBWR0M0.010M680M97.06,838M718.86ms
Others255M20.43,314M33M1.96,041M13,2K26.01ms
LGWR0M0.000M58M12.67,071M991013.04ms
Direct Writes0M0.000M4M0.03,005M0 
Direct Reads2M0.32,002M0M0.000M0 
TOTAL:51,3G8258.3064,795M775M111.72,955M440,4K42.57ms


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 File51,1G8238.5764,479M683M96.94,842M9.94ms35.90ms
Control File255M20.07,314M6M0.44,007M19.91ms 
Log File0M0.000M58M12.67,071M  
Temp File17M1.74,021M19M1.57,023M13.21ms7.86ms
Other0M0.010M0M0.080M33.25ms 
TOTAL:51,4G8260.3964,815M766M111.70,944M9.97ms34.10ms


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 51,1G8237.5264,477M0M0.000M289,3K16.08ms
Buffer Cache Reads (Data File) 51,1G8236.3664,46M0M0.000M288,4K16.13ms
Buffer Cache Reads (Temp File) 14M1.17,017M0M0.000M9462.03ms
DBWR 0M0.010M680M97.06,838M718.86ms
DBWR (Data File) 0M0.000M679M96.92,837M235.50ms
DBWR (Temp File) 0M0.000M1M0.14,001M0 
DBWR (Control File) 0M0.010M0M0.000M512.20ms
Others 256M20.34,316M33M1.88,041M12,7K26.67ms
Others (Control File) 255M20.07,314M6M0.44,007M12,5K26.45ms
Others (Temp File) 1M0.25,001M15M1.41,018M20541.64ms
Others (Data File) 0M0.010M12M0.03,015M14587.07us
LGWR (Log File) 0M0.000M58M12.67,071M0 
LGWR 0M0.000M58M12.67,071M0 
Direct Writes 0M0.000M4M0.03,005M0 
Direct Writes (Temp File) 0M0.000M3M0.01,004M0 
Direct Writes (Data File) 0M0.000M1M0.01,001M0 
Direct Reads (Temp File) 2M0.32,002M0M0.000M0 
Direct Reads 2M0.32,002M0M0.000M0 
TOTAL: 51,3G8258.1964,795M775M111.63,955M302K16.53ms


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,4858961,308,2976,698,09886,836040959,195


Back to Buffer Pool Statistics
Back to Top

Checkpoint Activity

MTTR WritesLog Size WritesLog Ckpt WritesOther Settings WritesAutotune Ckpt WritesThread Ckpt Writes
00005,5730


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
B00427316593434169865193434  0
E01725319911406961698651140696  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.64142,2921423087.00
D3,0720.203583.34130,4161385384.00
D4,6080.305373.04118,9321348924.00
D6,1440.407162.75107,6961313253.00
D7,6800.498952.4796,4241277467.00
D9,2160.591,0742.1985,5001242784.00
D10,7520.691,2531.9074,3491207381.00
D12,2880.791,4321.6363,5891173221.00
D13,8240.891,6111.3452,3601137572.00
D15,3600.991,7901.0440,6181100295.00
D15,5521.001,8131.0039,099195472.00
D16,8961.091,9690.7328,527161908.00
D18,4321.192,1480.5119,975134756.00
D19,9681.282,3270.4517,510126931.00
D21,5041.382,5060.4417,249126102.00
D23,0401.482,6850.4317,000125311.00
D24,5761.582,8640.4316,793124654.00
D26,1121.683,0430.4216,575123962.00
D27,6481.783,2220.4216,351123250.00
D29,1841.883,4010.4116,080122390.00
D30,7201.983,5800.4015,738121304.00


Back to Advisory Statistics
Back to Top

PGA Aggr Summary

PGA Cache Hit %W/A MB ProcessedExtra W/A MB Read/Written
100.007,1980


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,3354,272.710.000.000.000.00614,190
E5,9984,3183,221.720.000.000.000.00614,190


Back to Advisory Statistics
Back to Top

PGA Aggr Target Histogram

Low Optimal High OptimalTotal ExecsOptimal Execs1-Pass ExecsM-Pass Execs
2K4K4,5854,58500
64K128K11411400
128K256K898900
256K512K565600
512K1024K36436400
1M2M1,2251,22500
2M4M636300
4M8M20020000
8M16M18618600
16M32M767600
32M64M2200


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.13146,954.89249,753.6637.00700155,395,009
1,5000.25146,954.8962,992.2870.0011082,238,565
2,9990.50146,954.8952,602.4774.00078,168,766
4,4990.75146,954.8920,765.2788.00065,697,791
5,9981.00146,954.8917,661.3089.00064,481,936
7,1981.20146,954.8917,661.3089.00064,481,936
8,3971.40146,954.8917,661.3089.00064,481,936
9,5971.60146,954.8917,661.3089.00064,481,936
10,7961.80146,954.8917,661.3089.00064,481,936
11,9962.00146,954.8917,661.3089.00064,481,936
17,9943.00146,954.8917,661.3089.00064,481,936
23,9924.00146,954.8917,661.3089.00064,481,936
35,9886.00146,954.8917,661.3089.00064,481,936
47,9848.00146,954.8917,661.3089.00064,481,936


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)
1,7920.88131,227192,3570.54164,099692.403,964
1,8560.91762,552249,2350.70107,221452.414,586
1,9200.941394,157332,9730.9323,48399.085,488
1,9840.972024,840342,9310.9613,52557.075,804
2,0481.002656,592356,2191.002371.005,870
2,1121.033288,365356,2271.002290.975,872
2,1761.063929,761356,2571.001990.845,876
2,2401.0945511,299356,2601.001960.835,877
2,3041.1351812,307356,2621.001940.825,877
2,3681.1658213,436356,2641.001920.815,877
2,4321.1964614,628356,2661.001900.805,877
2,4961.2271015,543356,2661.001900.805,878
2,5601.2575016,785356,2661.001900.805,878
2,6241.2875016,785356,2661.001900.805,878
2,8161.3875016,785356,2661.001900.805,878
3,0721.5075016,785356,2661.001900.805,878
3,3281.6375016,785356,2661.001900.805,878
3,5841.7575016,785356,2661.001900.805,878
3,8401.8875016,785356,2661.001900.805,878
4,0962.0075016,785356,2661.001900.805,878


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.25447,137142,025,237
6,7680.38409,472130,171,906
9,0240.50337,536107,527,203
11,2800.63267,12385,358,819
13,5360.75231,73774,223,872
15,7920.88162,02152,281,935
18,0481.00119,95339,042,592
20,3041.1359,24519,931,243
22,5601.2551,42417,475,464
24,8161.3849,82816,967,910
27,0721.5048,55716,557,963
29,3281.6347,80116,335,420
31,5841.7545,85815,722,452
33,8401.8845,85815,722,452
36,0962.0045,85815,722,452


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 block9,1592,717297
1st level bmb6020
2nd level bmb10100
undo block5014
system undo header1200


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) 76776601594552,860.52
US-Undo Segment 3,6623,66602,88921674.65
FB-Format Block 1,2801,28001,26011.07
PS-PX Process Reservation 4,7384,21052864800.50
TX-Transaction 14,04514,042013200.70
TX-Transaction (row lock contention) 1101045.00
TS-Temporary Segment 495495010400.39
HW-Segment High Water Mark 12,46212,46204100.49
WF-AWR Flush 424202100.38
CF-Controlfile Transaction 1,6991,69815700.12
TO-Temp Object 8638630600.50
CO-KTUCLO Master Slave enq (master slave det) 140141400.14
DW-In memory Dispenser 660600.33
JS-Job Scheduler (job run lock - synchronize) 330201.00
TT-Tablespace 13,30313,3030300.33
TA-Instance Undo 220200.50
TK-Auto Task Serialization (Auto Task Serialization) 220200.50
FD-Flashback Database (Flashback logical operations) 110101.00
RP-Resilver / Repair 110101.00
SW-Suspend Writes 110101.00
TM-DML 62,39062,3900300.00
WT-AWR CDB-Wide Table Lock 38380300.00
PE-Parameter 880100.00
PG-Global Parameter 440100.00
PW-Buffer Cache PreWarm (flush prewarm buffers) 330100.00
RA-Real-Time ADDM Flood Control (RT ADDM flood control) 220100.00
CT-Block Change Tracking (state) 110100.00
MV-Online Datafile Move (datafile move) 110100.00
TD-KTF map table enqueue (KTF dump entries) 110100.00
JG-Job Scheduler1 95,65495,654000 
JG-Job Scheduler1 (queue lock) 95,65495,654000 
JG-Job Scheduler1 (q mem clnup lck) 7,9707,970000 
SE-Session Migration 985985000 
CU-Cursor 943943000 
MR-Media Recovery 714713000 
DA-Instance DP Array (Slave Process Array) 598598000 
SJ-KTSJ Slave Task Cancel (Slave Task Cancel) 579580000 
DD-ASM Local Disk Group 281281000 
AE-Edition Lock (lock) 227227000 
IT-In-Mem Temp Table Meta Creation 106106000 
SR-Synchronized Replication 101101000 
BU-Buddy Instance Context (recovery set construct) 8989000 
IS-Instance State 8787000 
PZ-Password File Metadata Cache (load passwordfile metadata) 3434000 
SQ-Sequence Cache 2323000 
PF-Password File 1717000 
PR-Process Startup 1414000 
TH-Threshold Chain (metric threshold evaluation) 1414000 
AF-Advisor Framework (task serialization) 1313000 
PV-KSV slave startup (syncstart) 66000 
SH-Active Session History Flushing 33000 
XR-Quiesce / Force Logging (database force logging) 33000 
CT-Block Change Tracking (CTWR process start/stop) 11000 
FP-File Object (global fob contention) 11000 
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.7516,0011,0363938,6/38,70/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:121,59210,0491,03622390/00/0/0/0/0/0
02-Stu 13:021,1555,9521,03139390/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 01570.00
AQ Coord jobx_kwsbgsgn latch270.00 00 
AQ Message drive state object latch10.00 00 
AQ Sharded master pool latch270.00 00 
AQ deq hash table latch10.00 00 
ASM Keyed state latch4660.430.0000 
ASM allocation46,4030.00 00 
ASM connection state latch2,2220.00 00 
ASM db client latch7750.00 00 
ASM map headers460.00 00 
ASM map load waiting list90.00 00 
ASM map operation freelist25,9750.170.0700 
ASM map operation hash table13,601,3970.000.0000 
ASM network background latch2,1500.00 00 
ASM network state latch310.00 00 
ASM remote client latch130.00 00 
AWR Alerted Metric Element list8,4070.00 00 
Autotask management140.00 00 
Change Notification Hash table latch1,0930.00 00 
Column stats entry latch10.00 00 
Consistent RBA9,9200.00 00 
DML lock allocation113,3760.000.0000 
Event Group Locks1,0850.00 00 
FIB s.o chain latch780.00 00 
FOB consolidated s.o list latch780.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 statistics530.00 09,5480.00
I/O Staticstics latch10.00 00 
ILM Stats Stripe Latch10.00 00 
ILM Stats main anchor latch2,5410.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 latch90.00 00 
IPC stats buffer allocation latch10.00 00 
In memory undo latch10.00 00 
JS Sh mem access3,9900.00 00 
JS broadcast add buf latch4,0140.00 00 
JS broadcast drop buf latch4,0140.00 00 
JS broadcast load blnc latch280.00 00 
JS global state obj latch60.00 00 
JS mem alloc latch130.00 00 
JS queue access latch140.00 00 
JS queue state obj latch191,5000.00 00 
JS slv state obj latch150.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 latch4,4400.00 00 
KFMD SGA4670.00 00 
KGNFS-NFS:SHM structure930.00 00 
KGNFS-NFS:SVR LIST2720.00 00 
KJC message pool KGH calls10.00 00 
KJC message pool free list109,3580.110.04078,1880.07
KJC message pool pending avail list10.00 00 
KJCT flow control latch536,8940.030.0000 
KMG MMAN ready and startup request latch2700.00 00 
KMG resize request state object freelist40.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 latch1,1340.180.0000 
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,5480.00 010.00
KSXR hang analysis phase 2 latch970.00 00 
KSXR large replies20.00 00 
KTF sga latch40.00 02500.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 latch5470.00 00 
KWQP Prop Status1010.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 latch6080.00 00 
MGA asr alloc latch130.00 00 
MGA heap latch7220.970.2900 
MGA shared context latch17,9950.220.6200 
MGA shared context root latch9452.220.1400 
MQL Tracking Latch0  0150.00
Memory Management Latch580.00 02700.00
Memory Queue1040.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 Latch420.00 00 
Mutex10.00 00 
Mutex Stats10.00 00 
Nologging Standby SCN Time Map cache2480.00 00 
OS process1,5330.00 00 
OS process allocation2,1380.050.0000 
OS process: request allocation4660.430.0000 
PDB Hash Table Latch10.00 00 
PDB LRU structure10.00 00 
PL/SQL warning settings8480.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 latch19,3850.00 00 
Report Request stats latch410.00 00 
Report Request struct latch490.00 00 
Request holder compeltion list latch290.00 00 
Retry Ht elm latch10.00 00 
Retry bkt latch10.00 00 
SGA Blackbox latch40.00 00 
SGA IO buffer pool latch1,3830.00 02,2310.00
SGA Logging Bkt Latch10.00 00 
SGA Logging Log Latch3,8370.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 latch4460.00 02590.00
SQL memory manager latch10.00 02710.00
SQL memory manager workarea list latch26,1780.00 00 
SR Stats Stripe Latch10.00 00 
Sched IM Job latch140.00 00 
Sched InMem Job Cache10.00 00 
Shared B-Tree6520.00 00 
Streams Generic10.00 00 
Subscriber Ht elm latch10.00 00 
Testing10.00 00 
Token Manager10.00 00 
Txn Ht elm latch10.00 00 
Txn bkt latch10.00 00 
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 latch1,1680.00 00 
active service list109,6370.010.000292,5620.01
archive destination260.00 00 
begin backup scn array190.00 00 
bq:time manger info latch290.00 00 
buffer pool1,4930.00 00 
bufq statistics1040.00 00 
business card1,2030.00 00 
cache buffer handles15,9010.020.0000 
cache buffers chains142,787,6370.010.00017,678,5440.01
cache buffers lru chain1,689,5480.140.0207,261,9440.37
cache table scan latch5390.00 05390.00
call allocation4,2270.990.9010 
change notification client cache latch10.00 00 
channel handle pool latch9620.210.0000 
channel operations parent latch9,7010.050.00010.00
checkpoint queue latch109,4250.001.00087,1190.00
client/application info545,1640.040.0300 
compile environment latch8640.00 00 
corrupted undo seg latch760.00 00 
cp handoff latch10.00 00 
cp pool latch10.00 00 
cp server hash latch10.00 00 
cp sga latch130.00 00 
cp srv type state latch8140.00 00 
cp srv type wait latch10.00 00 
cr slave free list10.00 00 
cvmap freelist lock10.00 00 
deferred cleanup latch130.00 00 
dispatcher info440.00 00 
dml lock allocation1370.00 00 
done queue latch10.00 00 
dtp latch2440.00 00 
dummy allocation1,6950.060.0000 
eighth spare latch - X parent10.00 00 
eleventh spare latch - children10.00 00 
enqueue freelist latch10.00 0471,3490.00
enqueue hash chains820,2260.030.0101,7200.00
enqueues1310.00 00 
error message lists2,9990.00 00 
fast space usage latch130.00 00 
fifteenth spare latch - children10.00 00 
file cache latch1,6780.00 00 
first Audit Vault latch2170.460.0000 
flash file access latch10.00 00 
flashback copy10.00 00 
fourteenth spare latch - children10.00 00 
fourth Audit Vault latch10.00 00 
gc element7,614,9770.010.010820,4960.01
gc xid list3100.00 00 
gcr global ctx170.00 00 
gcs commit scn state10.00 00 
gcs lock state resolution latch10.00 00 
gcs nodemap pool12,6340.00 00 
gcs opaque info freelist392,2030.010.0000 
gcs partitioned table hash9,457,5200.010.0006,425,3450.01
gcs pcm hashed value bucket hash10.00 00 
gcs remaster request queue20.00 00 
gcs resource freelist470,2700.010.120231,9270.01
gcs resource hash10,163,2530.000.040340.00
gcs resource scan list10.00 00 
gcs resource timerq list10.00 00 
gcs resource validate list10.00 00 
gcs shadows freelist2,8480.00 00 
ges cached resource lists262,7030.010.08050,6200.05
ges deadlock list6740.00 010.00
ges domain table1,006,7850.000.0000 
ges enqueue table freelist186,0740.020.0200 
ges group table1,019,5870.00 00 
ges process hash list6,1410.00 00 
ges process parent latch2,038,7560.000.7100 
ges process table freelist4660.211.0000 
ges remote lock freelist2490.00 00 
ges resource hash list1,459,9150.300.29118,8561.26
ges resource scan list5,1770.020.0000 
ges resource table freelist27,2700.030.0000 
ges s-lock bitvec freelist5,6700.040.0000 
ges timeout list5,6890.300.0005,2520.67
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 latch540.00 00 
hash table Sql Plan Finding latch420.00 02520.00
hash table column usage latch2040.00 0302,8110.00
hash table expression usage tracking latch10.00 00 
hash table sql contorl latch10.00 00 
heartbeat check10.00 03200.00
heartbeat structure management0  04060.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 latch2650.00 00 
interrupt manipulation2,8360.00 00 
intra txn parallel recovery10.00 00 
io pool granule list280.00 00 
io pool granule metadata list550.00 00 
job workq parent latch40.00 030.00
job_queue_processes free list latch80.00 00 
job_queue_processes parameter latch130.00 00 
jslv pdb context latch60.00 00 
k2q global data latch5400.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 latch26,3410.330.03020.00
kjci process context latch18,1140.150.04022,1650.03
kjci process list latch10,3270.470.1400 
kjci request sequence latch3,1340.00 00 
kjcipctx state object freelist latch2910.00 00 
kjoedcso state object freelist latch130.00 00 
kjoeq omni enqueue hash bucket latch10.00 00 
kjoer owner hash bucket10.00 00 
kjpm my inst data280.00 00 
kjsc Request obj freelist latch4820.00 00 
kjsc Ring Buffer obj freelist latch2410.411.0000 
kjsc protect control request queue2410.00 08,1320.00
kjsc protect warm up context2090.00 00 
kjsca pkey obj freelist latch780.00 00 
kjsca protect pkey hash table bucket6,1770.00 00 
kjsca protect service hash table bucket4,8120.00 00 
kjsca service obj freelist latch10.00 00 
kjscpss state object freelist latch2410.00 00 
kokc descriptor allocation latch3360.00 00 
kpoxft latch0  01165.17
krso process290.00 00 
ksevn object root latch2700.00 00 
ksfv messages10.00 00 
ksi resource reuse count10.00 00 
ksim group membership cache6,2410.00 00 
ksim membership request latch0  04770.00
ksns object latch10.00 00 
kss move lock130.00 00 
ksuosstats global area710.00 03110.00
ksutcpistat latch10.00 00 
ksv allocation latch370.00 00 
ksv class latch17,9010.040.0000 
ksv msg queue latch810.00 0800.00
ksxp shared latch4660.00 00 
ksxp so latch4660.210.0000 
ksz_so allocation latch4660.00 00 
ktfbn latch2570.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 data160.00 00 
ktm prv jrnls10.00 00 
ktmpj HT ls10.00 00 
kwqbsn:qsga5010.400.0000 
kwslbmdl: metadata latch320.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 latch910.00 00 
kwsslLat: skiplist latch10.00 00 
kxfxscanrate_latch10.00 00 
lgwr LWN SCN9,9590.00 00 
list of block allocation5250.00 00 
loader state object freelist3,4420.00 00 
lob segment dispenser latch330.00 00 
lob segment hash table latch760.00 00 
lob segment query latch10.00 00 
lock DBA buffer during media recovery10.00 00 
log write info0  010,2400.07
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 standby270.00 00 
message bitmap latch10.00 00 
message pool operations parent latch2,7600.00 00 
messages103,4920.100.0000 
msg queue latch10.00 00 
multiblock read objects260,8280.010.0000 
name-service memory objects2,0880.00 00 
name-service namespace bucket9,0490.00 00 
name-service pending queue1,1740.00 00 
name-service request80.00 00 
name-service request queue10,9730.00 00 
ncodef allocation latch130.00 00 
ninth spare latch - X parent10.00 00 
object queue header freelist