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:3002-Stu-19 12:01:02104 2.02
End Snap:3102-Stu-19 12:10:11104 2.02
Elapsed:  9.16 (mins)   
DB Time:  52.38 (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 Statements5.7290.79ADDM:1550963227_1_3102-Stu-19 12:0102-Stu-19 12:10
Undersized SGA5.7262.91ADDM:1550963227_1_3102-Stu-19 12:0102-Stu-19 12:10
Top Segments by "User I/O" and "Cluster"5.7218.46ADDM:1550963227_1_3102-Stu-19 12:0102-Stu-19 12:10

Load Profile

Per SecondPer TransactionPer ExecPer Call
DB Time(s): 5.7 1.5 0.05 0.29
DB CPU(s): 0.2 0.1 0.00 0.01
Background CPU(s): 0.0 0.0 0.00 0.00
Redo size (bytes): 25,587.9 6,577.5  
Logical read (blocks): 27,068.3 6,958.0  
Block changes: 252.3 64.9  
Physical read (blocks): 5,085.1 1,307.2  
Physical write (blocks): 32.2 8.3  
Read IO requests: 5,084.8 1,307.1  
Write IO requests: 27.0 7.0  
Read IO (MB): 39.7 10.2  
Write IO (MB): 0.3 0.1  
IM scan rows: 0.0 0.0  
Session Logical Read IM: 0.0 0.0  
Global Cache blocks received: 12.1 3.1  
Global Cache blocks served: 0.9 0.2  
User calls: 19.7 5.1  
Parses (SQL): 9.5 2.4  
Hard parses (SQL): 0.5 0.1  
SQL Work Area (MB): 4.9 1.3  
Logons: 0.2 0.1  
User logons: 0.1 0.0  
Executes (SQL): 126.3 32.5  
Rollbacks: 0.0 0.0  
Transactions: 3.9   

Instance Efficiency Percentages (Target 100%)

Buffer Nowait %: 100.00Redo NoWait %: 100.00
Buffer Hit %: 81.21In-memory Sort %: 100.00
Library Hit %: 99.22Soft Parse %: 94.27
Execute to Parse %: 92.48Latch Hit %: 99.99
Parse CPU to Parse Elapsd %: 79.50% Non-Parse CPU: 98.47
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 read35,1152436,569.39ms77.5User I/O
db file sequential read80,793505,66.26ms16.1User I/O
DB CPU 119,3 3.8 
control file sequential read2,96732,110.81ms1.0System I/O
log file sync2,26231,513.92ms1.0Commit
gc cr multi block grant49,30818,9384.09us.6Cluster
gc cr grant 2-way35,1259,5269.59us.3Cluster
gc cr multi block mixed1,5496,54.20ms.2Cluster
gc current block lost63,3554.58ms.1Cluster
gc cr block lost52,8553.27ms.1Cluster

Wait Classes by Total Wait Time

Wait ClassWaitsTotal Wait Time (sec)Avg Wait Time% DB timeAvg Active Sessions
User I/O121,5072,94924.27ms93.85.4
DB CPU 119 3.80.2
System I/O9,532889.24ms2.80.2
Cluster96,92744455.08us1.40.1
Commit2,2633113.92ms1.00.1
Other55,098243.47us.10.0
Application89116.37ms.00.0
Concurrency1,335094.48us.00.0
Network9,93502.77us.00.0
Configuration120307.08us.00.0
Administrative10315.00us.00.0

Host CPU

CPUsCoresSocketsLoad Average BeginLoad Average End%User%System%WIO%Idle
8 4 1 0.30 0.41 4.2 1.6 33.1 94.0

Instance CPU

%Total CPU%Busy CPU%DB time waiting for CPU (Resource Manager)
3.3 55.8 0.0

IO Profile

Read+Write Per SecondRead per SecondWrite Per Second
Total Requests: 5,126.8 5,094.1 32.7
Database Requests: 5,111.8 5,084.8 27.0
Optimized Requests: 0.0 0.0 0.0
Redo Requests: 5.1 0.0 5.1
Total (MB): 40.2 39.9 0.3
Database (MB): 40.0 39.7 0.3
Optimized Total (MB): 0.0 0.0 0.0
Redo (MB): 0.0 0.0 0.0
Database (blocks): 5,117.3 5,085.1 32.2
Via Buffer Cache (blocks): 5,116.5 5,085.1 31.4
Direct (blocks): 0.8 0.0 0.8

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,313.0 4,289.5
% Host Mem used for SGA+PGA: 71.64 71.57

Cache Sizes

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

Shared Pool Statistics

BeginEnd
Memory Usage %: 83.75 83.77
% SQL with executions>1: 95.48 92.85
% Memory for SQL w/exec>1: 88.48 81.43

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 time3,102.8098.73 
DB CPU119.333.8082.84
parse time elapsed3.510.11 
hard parse elapsed time3.430.11 
PL/SQL execution elapsed time2.580.08 
connection management call elapsed time1.030.03 
hard parse (sharing criteria) elapsed time0.850.03 
PL/SQL compilation elapsed time0.190.01 
hard parse (bind mismatch) elapsed time0.020.00 
repeated bind elapsed time0.000.00 
failed parse elapsed time0.000.00 
DB time3,142.75  
background elapsed time79.31  
background cpu time24.71 17.16
total CPU time144.04  


Back to Wait Events Statistics
Back to Top

Operating System Statistics

StatisticValueEnd Value
FREE_MEMORY_BYTES3,127,791,6163,119,742,976
INACTIVE_MEMORY_BYTES1,238,650,8801,221,320,704
BUSY_TIME25,835 
IDLE_TIME408,178 
IOWAIT_TIME143,561 
NICE_TIME0 
SYS_TIME6,754 
USER_TIME18,377 
LOAD00
RSRC_MGR_CPU_WAIT_TIME0 
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 12:01:020.30     
02-Stu 12:10:110.415.954.231.5694.0533.08


Back to Wait Events Statistics
Back to Top

Foreground Wait Class

Wait ClassWaits%Time -outsTotal Wait Time (s)Avg wait%DB time
User I/O118,80602,94624.80ms93.75
DB CPU  119 3.80
Cluster96,769044455.35us1.40
System I/O2,96703210.81ms1.02
Commit2,26203113.92ms1.00
Other25,27651136.05us0.03
Application90048.93ms0.01
Concurrency80230671.95us0.00
Network9,416001.63us0.00
Configuration1200307.08us0.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 read35,115 2,43669.39ms16.4377.53
db file sequential read80,793 5066.26ms37.8116.09
control file sequential read2,967 3210.81ms1.391.02
log file sync2,262 3113.92ms1.061.00
gc cr multi block grant49,308 19384.09us23.070.60
gc cr grant 2-way35,125 9269.59us16.440.30
gc cr multi block mixed1,549 74.20ms0.720.21
gc current block lost6 3554.58ms0.000.11
gc cr block lost5 3553.27ms0.000.09
gc current grant 2-way8,403 2266.57us3.930.07
read by other session42 248.97ms0.020.07
direct path write temp230 13.34ms0.110.02
Disk file operations I/O1,279 1482.01us0.600.02
Disk file Mirror Read623 1.96ms0.290.02
gc current grant busy1,570 0286.92us0.730.01
SQL*Net break/reset to client8 055.01ms0.000.01
PGA memory operation11,247 017.79us5.260.01
gc current block 2-way222 0707.68us0.100.00
PX Deq: reap credit12,77510009.84us5.980.00
gc current block busy299 0420.20us0.140.00
CSS initialization22 05.15ms0.010.00
PX Deq: Join ACK116 0853.61us0.050.00
db file scattered read31 02.50ms0.010.00
Sync ASM rebalance20 03.54ms0.010.00
ASM file metadata operation4 012.16ms0.000.00
gc cr block 2-way193 0228.55us0.090.00
reliable message59 0704.07us0.030.00
library cache lock31301.11ms0.010.00
PX Deq: Slave Session Stats197 0171.50us0.090.00
CSS operation: action22 01.37ms0.010.00
enq: PS - contention7090401.01us0.030.00
enq: FB - contention67 0403.52us0.030.00
IPC send completion sync76 0285.80us0.040.00
gc current multi block request65 0311.12us0.030.00
oracle thread bootstrap1 015.90ms0.000.00
enq: TS - contention511000300.20us0.020.00
SQL*Net message to client9,330 01.48us4.370.00
row cache lock18940702.56us0.010.00
DLM cross inst call completion32 0327.22us0.010.00
gc cr block busy6 01.62ms0.000.00
gc buffer busy release3 02.09ms0.000.00
enq: WF - contention19 0322.95us0.010.00
enq: TO - contention14 0399.93us0.010.00
library cache pin21 0261.33us0.010.00
CSS operation: data query40 0117.18us0.020.00
enq: HW - contention12 0307.08us0.010.00
gc cr disk read14 0228.29us0.010.00
CSS group membership query20 0127.90us0.010.00
PX Deq: Signal ACK EXT116 021.84us0.050.00
latch: cache buffers lru chain31 047.35us0.010.00
KJC: Wait for msg sends to complete67 021.66us0.030.00
enq: WT - contention3 0372.00us0.000.00
SQL*Net more data to client27 037.41us0.010.00
SQL*Net message from client9,336 2,904311.08ms4.37 
watchdog main loop735 2,2022996.28ms0.34 
PX Deq Credit: send blkd3,278 3923.00us1.53 
PX Deq: Execute Reply7,359 2210.83us3.44 
PX Deq: Execution Msg243 12.84ms0.11 
PX Deq: Parse Reply116 0454.39us0.05 
PX Deq: Msg Fragment160 0231.16us0.07 
PX Deq Credit: need buffer21 01.15ms0.01 


Back to Wait Events Statistics
Back to Top

Background Wait Events

EventWaits%Time -outsTotal Wait Time (s)Avg waitWaits /txn% bg time
log file parallel write2,79803211.27ms1.3139.78
db file async I/O submit44201125.49ms0.2114.20
control file sequential read2,1210104.82ms0.9912.90
db file parallel write948022.38ms0.442.85
db file sequential read296025.20ms0.141.94
enq: RO - fast object reuse780113.02ms0.041.28
control file parallel write255012.77ms0.120.89
Disk file Mirror Read72501875.45us0.340.80
IMR slave acknowledgement msg1,64701306.26us0.770.64
direct path write temp103004.48ms0.050.58
DLM cross inst call completion58500336.95us0.270.25
ASM file metadata operation64900211.42us0.300.17
db file scattered read44003.07ms0.020.17
gcs log flush sync69001.21ms0.030.10
latch free8140098.49us0.380.10
reliable message64001.25ms0.030.10
Sync ASM rebalance25002.96ms0.010.09
Data file init write30022.23ms0.000.08
oracle thread bootstrap40014.17ms0.000.07
PX Deq: reap credit11,99310003.75us5.610.06
latch: shared pool16002.20ms0.010.04
direct path write8004.39ms0.000.04
AQ: RAC AQ Network5,48710005.81us2.570.04
PX Deq: Join ACK3500813.54us0.020.04
CGS wait for IPC msg5,81610004.75us2.720.03
KSV master wait41099064.54us0.190.03
row cache lock441000550.52us0.020.03
enq: CF - contention51980414.98us0.020.03
gc cr disk read4800267.54us0.020.02
IPC group service call4230028.53us0.200.02
ASM IO for non-blocking poll1,207008.92us0.560.01
PGA memory operation2570032.01us0.120.01
enq: CR - block range reuse ckpt2400306.17us0.010.01
CSS operation: data query1700413.71us0.010.01
Disk file operations I/O3110022.35us0.150.01
enq: PS - contention1800383.44us0.010.01
gc current block busy2500268.60us0.010.01
library cache lock2200287.91us0.010.01
IPC send completion sync56897010.55us0.270.01
CSS initialization2002.94ms0.000.01
gc current grant 2-way2200261.82us0.010.01
gc cr grant 2-way2100264.33us0.010.01
os thread creation5001.08ms0.000.01
CSS operation: data update1800298.06us0.010.01
library cache pin2200225.55us0.010.01
PX Deq: Signal ACK EXT3500132.43us0.020.01
gc cr block 2-way1600281.44us0.010.01
enq: CO - master slave det91000478.44us0.000.01
DFS lock handle161000253.19us0.010.01
gc buffer busy acquire600671.83us0.000.01
gc current grant busy1300274.69us0.010.00
KJC: Wait for msg sends to complete2100164.19us0.010.00
ksxr poll remote instances1,00410003.09us0.470.00
PX Deq: Slave Session Stats350083.54us0.020.00
db file single write2001.02ms0.000.00
enq: TT - contention5400339.40us0.000.00
kfk: async disk IO200790.50us0.000.00
gc cr block busy1001.45ms0.000.00
latch: MGA shared context latch200642.50us0.000.00
CSS operation: action400310.50us0.000.00
enq: TO - contention300385.00us0.000.00
enq: DW - contention31000343.67us0.000.00
rdbms ipc message20,1496412,557623.22ms9.43 
PX Idle Wait8209,643117.60 s0.04 
Space Manager: slave idle wait2,32908,6633719.64ms1.09 
class slave wait6,244883,593575.50ms2.92 
EMON slave idle wait5491002,7454999.99ms0.26 
wait for unread message on broadcast channel8421001,6481957.79ms0.39 
Streams AQ: qmn slave idle wait17701,6449289.04ms0.08 
ges remote message15,92801,09968.97ms7.45 
GCR sleep3,66101,098299.97ms1.71 
pmon timer3661001,0982999.95ms0.17 
DIAG idle wait6,783831,098161.83ms3.17 
gcs yield cpu37,3891001,09629.31ms17.50 
gcs remote message182,99601,0945.98ms85.63 
Data Guard: Timer10600600.00 s0.00 
Streams AQ: qmn coordinator idle wait18205523033.27ms0.09 
pman timer1841005522999.82ms0.09 
PING459245501198.83ms0.21 
Streams AQ: emn coordinator idle wait5510055010.00 s0.03 
heartbeat redo informer55005501000.06ms0.26 
ASM cluster membership changes314865501750.29ms0.15 
lreg timer1831005493002.47ms0.09 
REPL Capture/Apply: RAC AQ qmn coordinator910054961.03 s0.00 
OFS idle1831005493000.01ms0.09 
SCM slave idle5,498054999.83ms2.57 
ASM background timer6020548910.74ms0.28 
dispatcher timer910054060.01 s0.00 
AQPC idle1810054030.00 s0.01 
Data Guard: Gap Manager9054060.00 s0.00 
smon timer250381190.37 s0.00 
SQL*Net message from client1300754.31ms0.06 
PX Deq: Execute Reply350115.73ms0.02 
PX Deq Credit: send blkd17500631.69us0.08 
PX Deq: Parse Reply35001.00ms0.02 
RMA: IPC0 completion sync601002.49us0.28 


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 Network548796.42.8.7.1.0   
ASM IO for non-blocking poll190091.81.31.21.14.2.4  
ASM background starting2100.0       
ASM file metadata operation65311.364.213.02.96.4.2.21.8
AWR Flush1100.0       
CGS wait for IPC msg581598.01.1.6.3 .0  
CSS group membership query20    70.025.05.0 
CSS initialization24 4.24.2    91.7
CSS operation: action263.8     11.584.6
CSS operation: data query57    50.931.61.815.8
CSS operation: data update18     22.277.8 
CSS operation: query5296.2     1.91.9
DFS lock handle16     62.537.5 
DLM cross inst call completion6174.54.4.2.3.262.126.32.1
Data Guard Broker Wait1100.0       
Data file init write3       100.0
Disk file Mirror Read1349       100.0
Disk file operations I/O15904.213.135.637.41.81.63.03.3
GCR CSS group query17100.0       
GCR CSS group update1693.86.3      
IMR slave acknowledgement msg16502.95.326.430.71.3.15.627.8
IPC group service call4848.738.03.948.11.0.2  
IPC send completion sync64484.5.5.5  12.31.9.5
KJC: Wait for msg sends to complete87 10.366.72.31.117.22.3 
KSV master wait41089.3.24.94.6.5 .2.2
LGWR wait for redo copy319.712.925.851.6    
PGA memory operation11,5K49.444.93.7.7.2.2.2.7
PX Deq: Join ACK151      39.760.3
PX Deq: Signal ACK EXT15115.943.78.615.95.32.67.9 
PX Deq: Slave Session Stats23231.9 .9.43.931.531.5 
PX Deq: reap credit24,8K83.61.012.03.3.1   
PX qref latch86100.0       
SQL*Net break/reset to client850.0   12.5  37.5
SQL*Net message to client943299.5.4.1.0    
SQL*Net more data to client27   100.0    
Sync ASM rebalance4531.16.72.24.413.36.711.124.4
asynch descriptor resize46100.0       
buffer busy waits3   66.733.3   
buffer deadlock366.7 33.3     
control file parallel write255       100.0
control file sequential read508920.45.8.2.1 .129.843.7
datafile move cleanup during resize1    100.0   
db file async I/O submit44250.0  4.87.95.0.931.4
db file parallel read35,1K      .999.1
db file parallel write948.71.91.92.412.612.211.057.3
db file scattered read75      48.052.0
db file sequential read81,2K     .021.478.6
db file single write2       100.0
direct path sync2  50.050.0    
direct path write8       100.0
direct path write temp333       100.0
enq: CF - contention51      96.13.9
enq: CO - master slave det9      77.822.2
enq: CR - block range reuse ckpt24     29.266.74.2
enq: CT - state1      100.0 
enq: DW - contention3      100.0 
enq: FB - contention72      83.316.7
enq: FD - Flashback logical operations1      100.0 
enq: HW - contention8     12.587.5 
enq: MV - datafile move1      100.0 
enq: PF - contention1       100.0
enq: PS - contention88      97.72.3
enq: PW - flush prewarm buffers1      100.0 
enq: RO - fast object reuse78     3.870.525.6
enq: RP - contention1      100.0 
enq: SM - contention2      100.0 
enq: SR - contention1      100.0 
enq: SW - contention1      100.0 
enq: TA - contention1      100.0 
enq: TD - KTF dump entries1      100.0 
enq: TK - Auto Task Serialization1      100.0 
enq: TM - contention2      100.0 
enq: TO - contention17      88.211.8
enq: TS - contention51     19.680.4 
enq: TT - contention7     14.385.7 
enq: US - contention1      100.0 
enq: WF - contention20     10.090.0 
enq: WT - contention3      100.0 
gc buffer busy acquire616.7     16.766.7
gc buffer busy release1       100.0
gc cr block 2-way188     80.918.11.1
gc cr block busy8       100.0
gc cr block lost5       100.0
gc cr disk read62     71.022.66.5
gc cr grant 2-way35,2K  .0.0.071.327.8.8
gc cr grant busy1      100.0 
gc cr multi block grant49,3K    .015.477.77.0
gc cr multi block mixed1550     1.759.438.8
gc current block 2-way219     58.920.121.0
gc current block busy307     67.426.16.5
gc current block lost6       100.0
gc current grant 2-way8525    .076.821.71.5
gc current grant busy1558  .1.8.726.670.21.5
gc current multi block request62     9.787.13.2
gcs log flush sync619.81.6 1.63.38.219.755.7
ges inquiry response2      100.0 
ges resource directory to be unfrozen38100.0       
kfk: async disk IO2      50.050.0
ksxr poll remote instances100397.61.5.8.1    
latch free816.1 .43.887.38.5  
latch: MGA shared context latch2       100.0
latch: cache buffers chains4   75.025.0   
latch: cache buffers lru chain35  17.165.717.1   
latch: gc element1    100.0   
latch: gcs resource hash4  75.025.0    
latch: ges resource hash list4  25.050.0   25.0
latch: messages1   100.0    
latch: shared pool185.6  11.122.25.6 55.6
libcache interrupt action by LCK1150100.0       
library cache lock53     13.262.324.5
library cache pin43     88.49.32.3
library cache: mutex X4  100.0     
lock deadlock retry333.333.333.3     
log file parallel write2799       100.0
log file sync2263   .0.42.01.595.9
name-service call wait3      100.0 
oracle thread bootstrap5       100.0
os thread creation5       100.0
read by other session42       100.0
reliable message123      49.650.4
row cache lock62      54.845.2
undo_retention publish retry2100.0       
AQPC idle18       100.0
ASM background timer602  2.25.0.8.82.788.5
ASM cluster membership changes314       100.0
DIAG idle wait6782  .3.5.33.33.092.5
Data Guard: Gap Manager9       100.0
Data Guard: Timer1       100.0
EMON slave idle wait549       100.0
GCR sleep3662       100.0
OFS idle183       100.0
PING459.4.724.210.54.620.92.636.2
PX Deq Credit: need buffer21       100.0
PX Deq Credit: send blkd3453.6.4  .1.24.694.1
PX Deq: Execute Reply739485.77.31.4.1.1.1.45.0
PX Deq: Execution Msg243    1.66.225.566.7
PX Deq: Msg Fragment16025.6 5.01.31.38.156.32.5
PX Deq: Parse Reply1512.0   3.321.216.657.0
PX Idle Wait81       100.0
REPL Capture/Apply: RAC AQ qmn coordinator9       100.0
RMA: IPC0 completion sync60499.8.2      
SCM slave idle5499       100.0
SQL*Net message from client9465.1.1.1.529.742.26.620.8
Space Manager: slave idle wait23311.5.0.8.6.2.0.196.7
Streams AQ: emn coordinator idle wait55       100.0
Streams AQ: qmn coordinator idle wait1824.4 6.06.037.91.6 44.0
Streams AQ: qmn slave idle wait1785.1      94.9
class slave wait6246.81.31.6.9.1.0.195.3
dispatcher timer9       100.0
gcs remote message182,9K.51.13.75.418.615.915.639.2
gcs yield cpu37,4K2.1.0.0.0.0  97.9
ges remote message15,9K.8.1.3.5.43.24.890.0
heartbeat redo informer549       100.0
lreg timer183       100.0
pman timer183       100.0
pmon timer366       100.0
rdbms ipc message20,2K1.81.19.21.01.02.33.280.3
smon timer2       100.0
wait for unread message on broadcast channel842       100.0
watchdog main loop730       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 Network5486  5.590.92.8.7.1.0
ASM IO for non-blocking poll181230.036.021.44.41.31.21.14.6
ASM background starting250.050.0      
ASM file metadata operation5974.64.11.51.164.213.02.98.6
AWR Flush1 100.0      
CGS wait for IPC msg58141.18.49.179.41.1.6.3.0
CSS initialization2    4.24.2 91.7
CSS operation: action1  3.8    96.2
CSS operation: query5028.846.215.45.8   3.8
DLM cross inst call completion58   4.54.4.2.390.6
Data Guard Broker Wait1  100.0     
Disk file operations I/O1436 .4.92.913.135.637.49.7
GCR CSS group query17 5.929.464.7    
GCR CSS group update166.36.375.06.36.3   
IMR slave acknowledgement msg1077.4.81.3.55.326.430.734.7
IPC group service call478 .24.34.138.03.948.11.2
IPC send completion sync550  41.942.5.5.5 14.6
KJC: Wait for msg sends to complete69    10.366.72.320.7
KSV master wait406 38.050.7.5.24.94.61.0
LGWR wait for redo copy316.53.2  12.925.851.6 
PGA memory operation11,4K .911.037.544.93.7.71.2
PX Deq: Signal ACK EXT127  .715.243.78.615.915.9
PX Deq: Slave Session Stats77.914.715.5.9 .9.466.8
PX Deq: reap credit24,7K.29.446.527.51.012.03.3.1
PX qref latch861.276.722.1     
SQL*Net break/reset to client4  25.025.0   50.0
SQL*Net message to client94328.445.944.9.3.4.1.0 
SQL*Net more data to client27      100.0 
Sync ASM rebalance20  4.426.76.72.24.455.6
asynch descriptor resize46 19.634.845.7    
buffer busy waits2      66.733.3
buffer deadlock3   66.7 33.3  
control file sequential read1348 .01.918.55.8.2.173.5
db file async I/O submit24224.725.3    4.845.2
db file parallel write66   .71.91.92.493.0
direct path sync2     50.050.0 
gc buffer busy acquire1  16.7    83.3
gc cr grant 2-way5     .0.0100.0
gc current grant busy15     .1.899.0
gcs log flush sync8 4.93.31.61.6 1.686.9
ges resource directory to be unfrozen3857.939.5 2.6    
ksxr poll remote instances1003 18.649.429.61.5.8.1 
latch free35  .1  .43.895.7
latch: cache buffers chains3      75.025.0
latch: cache buffers lru chain29     17.165.717.1
latch: gcs resource hash4     75.025.0 
latch: ges resource hash list3     25.050.025.0
latch: messages1      100.0 
latch: shared pool3  5.6   11.183.3
libcache interrupt action by LCK115077.922.1      
library cache: mutex X4     100.0  
lock deadlock retry3   33.333.333.3  
log file sync1      .0100.0
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 operation1198.2.5 .2.3 .8.2
CSS initialization228.3   91.7   
CSS operation: action2215.47.776.9     
CSS operation: data query984.215.8      
CSS operation: query198.11.9      
DLM cross inst call completion1297.91.8.2    .2
Data file init write3      100.0 
Disk file Mirror Read1349 92.67.3.1  .1 
Disk file operations I/O5296.71.7.1  .11.4 
IMR slave acknowledgement msg45872.221.26.5     
IPC send completion sync399.5.3 .2    
KSV master wait199.8     .2 
PGA memory operation7999.3.3.3.1    
PX Deq: Join ACK9139.720.537.72.0    
Sync ASM rebalance1175.62.2  2.215.64.4 
control file parallel write255 6.785.5 .4.47.1 
control file sequential read215956.31.8.2.1.69.030.71.3
db file async I/O submit5468.6.21.11.43.23.62.719.2
db file parallel read14,6K.913.61.32.01.97.515.257.6
db file parallel write54242.726.78.86.06.16.82.8.1
db file scattered read3948.030.76.72.7 1.310.7 
db file sequential read63,1K21.445.12.11.81.07.020.7.9
db file single write2 50.050.0     
direct path write8 62.512.5  12.512.5 
direct path write temp333 64.618.9.3 5.111.1 
enq: CF - contention296.13.9      
enq: CO - master slave det277.822.2      
enq: CR - block range reuse ckpt195.8 4.2     
enq: FB - contention1283.316.7      
enq: PF - contention1 100.0      
enq: PS - contention297.72.3      
enq: RO - fast object reuse1374.41.3 1.3 2.611.59.0
enq: TO - contention288.211.8      
gc buffer busy acquire433.333.333.3     
gc buffer busy release1  100.0     
gc cr block 2-way298.91.1      
gc cr block busy8  62.525.012.5   
gc cr disk read493.56.5      
gc cr grant 2-way28999.2.4.1.3.0 .0.0
gc cr multi block grant344093.06.7.2.0.0.0.0.0
gc cr multi block mixed58961.230.3.35.02.3.1 .8
gc current block 2-way4679.03.71.815.5    
gc current block busy2093.51.33.61.0.7   
gc current grant 2-way12898.5.6.1.8.0   
gc current grant busy2398.51.3.1.1.1   
gc current multi block request296.83.2      
gcs log flush sync3444.326.219.7 6.61.61.6 
kfk: async disk IO150.0 50.0     
latch: MGA shared context latch2 100.0      
latch: ges resource hash list175.025.0      
latch: shared pool1044.45.6 38.911.1   
library cache lock1375.59.43.89.41.9   
library cache pin197.72.3      
log file parallel write2750 36.59.1.61.112.338.61.8
log file sync20554.122.710.61.11.011.643.95.1
oracle thread bootstrap5     100.0  
os thread creation5 20.080.0     
read by other session19   4.89.59.521.454.8
reliable message6249.615.433.3.8 .8  
row cache lock2854.841.91.61.6    


Back to Wait Events Statistics
Back to Top

Wait Event Histogram (up to 2 sec)

  % of Total Waits
EventWaits 64ms to 2s<32ms<64ms<1/8s<1/4s<1/2s <1s <2s>=2s
ASM file metadata operation199.8.2      
DLM cross inst call completion199.8.2      
SQL*Net break/reset to client362.5  37.5    
control file sequential read6598.71.3.0     
db file async I/O submit8580.83.67.27.9.5   
db file parallel read20,2K42.410.528.917.7.5.0  
db file parallel write199.9 .1     
db file sequential read74999.1.9.0.0    
enq: RO - fast object reuse791.03.8 5.1    
gc cr block lost5    40.060.0  
gc cr grant 2-way3100.0.0 .0    
gc cr multi block grant2100.0.0 .0    
gc cr multi block mixed1399.2 .3 .1.5  
gc current block lost6    33.366.7  
log file parallel write4998.21.7.1     
log file sync11694.95.0.1     
read by other session2345.226.223.84.8    


Back to Wait Events Statistics
Back to Top

Wait Event Histogram (up to 2 min)

No data exists for this section of the report.

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.com3,1421182,79314,720
SYS$BACKGROUND110148
SYS$USERS0000
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 11891529468200094010
SYS$BACKGROUND 2704312450104250
SYS$USERS 5900000210


Back to Wait Events Statistics
Back to Top

Top 10 Channel Waits

ChannelWaitsTotal Wait Time (s)Avg Wait
RBR channel 701.08ms
kxfp remote slave spawn channel 1014.74ms
kxfp control signal channel 760464.83us
obj broadcast channel 3901.61ms


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/O2,946.14
 Others (foregrounds + unclassified backgrounds)Cluster44.05
 Others (foregrounds + unclassified backgrounds)System I/O31.75
LGWRRedo etc.System I/O31.55
 Others (foregrounds + unclassified backgrounds)Commit31.50
DBW0db writer process 0System I/O13.55
CKPTcheckpointSystem I/O7.97
RMS0rac management serverSystem I/O2.37
MMMON slave class 1User I/O1.90
MMMON slave class 1Application1.02
 Others (foregrounds + unclassified backgrounds)Other0.88
LMONglobal enqueue service monitorOther0.53
 Others (foregrounds + unclassified backgrounds)Application0.44
IMRCGS IMR SlaveUser I/O0.40
TT*Redo TransportSystem I/O0.40
PParallel query slaveSystem I/O0.33
CKPTcheckpointUser I/O0.22
MMMON slave class 1Other0.19
Wspace management slave poolOther0.19
Wspace management slave poolUser I/O0.16


Back to Wait Events Statistics
Back to Top

Top Process Types by CPU Used

Process TypeDescriptionCPU Time (sec)
 Others (foregrounds + unclassified backgrounds)116.19
LMglobal cache service process10.02
VKTMVirtual Keeper of TiMe process3.63
PParallel query slave3.42
RS*GCS RM Slave3.23
MMMON slave class 12.90
GCRGCR Slaves (LMHB)1.12
DIA0diagnosibility process 01.10
VKRMVirtual sKeduler for Resource Manager0.97
CJQ0Job Queue Coordinator0.90
LGWRRedo etc.0.52
IPC0IPC Service 00.49
DBW0db writer process 00.49
SCMDLM Statistics Collection and Management Slave0.46
LMHBlm heartbeat monitor0.44
IMRCGS IMR Slave0.38
LMONglobal enqueue service monitor0.34
LMD0global enqueue service daemon 00.33
LMD1global enqueue service daemon 10.24
FENCIOServer fence monitor0.24


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
1,519.054533.7648.333.5896.39cj9v3ynkm7uuy Update Customer Details BEGIN :1 := orderentry.SalesRe...
1,517.434533.7248.283.4996.4929qp10usqkqh0 Sales Rep Query SELECT TT.ORDER_TOTAL, TT.SALE...
640.461933.7120.382.9497.1389b7r2pg1cn4a   BEGIN :1 := orderentry.Warehou...
640.451933.7120.382.9397.1356pwkjspvmg3h Warehouse Activity Query WITH STAGE1 AS (SELECT /*+ mat...
588.841930.9918.743.0497.12b5dk0t95fhyd7   BEGIN :1 := orderentry.Warehou...
588.841930.9918.743.0497.12gkxxkghxubh1a Warehouse Orders Query SELECT ORDER_MODE, ORDERS.WARE...
210.078760.246.683.2193.690w2qpuc6u2zsp JDBC Thin Client BEGIN :1 := orderentry.neworde...
81.6210,2040.012.603.2793.57c13sma6rkr27c New Order SELECT PRODUCTS.PRODUCT_ID, PR...
44.156,7540.011.401.8394.565ckxyqfvu60pj New Order SELECT CUSTOMER_ID, CUST_FIRST...
41.872,5360.021.332.0195.68f7rxuxzt64k87 New Order INSERT INTO ORDER_ITEMS ( ORDE...
36.433240.111.162.4991.3001jzc2mg6cg92   BEGIN :1 := orderentry.newcust...


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
54.33451.2145.531,519.053.5896.39cj9v3ynkm7uuy Update Customer Details BEGIN :1 := orderentry.SalesRe...
52.92451.1844.351,517.433.4996.4929qp10usqkqh0 Sales Rep Query SELECT TT.ORDER_TOTAL, TT.SALE...
18.80190.9915.76640.462.9497.1389b7r2pg1cn4a   BEGIN :1 := orderentry.Warehou...
18.80190.9915.75640.452.9397.1356pwkjspvmg3h Warehouse Activity Query WITH STAGE1 AS (SELECT /*+ mat...
17.91190.9415.01588.843.0497.12b5dk0t95fhyd7   BEGIN :1 := orderentry.Warehou...
17.91190.9415.01588.843.0497.12gkxxkghxubh1a Warehouse Orders Query SELECT ORDER_MODE, ORDERS.WARE...
7.01260.275.887.1398.380.00a4akgk9g69h83 SQL Developer SELECT d.* FROM ( SELECT d.*, ...
6.758760.015.66210.073.2193.690w2qpuc6u2zsp JDBC Thin Client BEGIN :1 := orderentry.neworde...
2.6710,2040.002.2481.623.2793.57c13sma6rkr27c New Order SELECT PRODUCTS.PRODUCT_ID, PR...
2.491,8520.002.0831.058.0185.82147a57cxq3w5y JDBC Thin Client BEGIN :1 := orderentry.browsep...
1.81160.111.524.5739.5835.469yv5dwv8k0awg   WITH MONITOR_DATA AS (SELECT I...
1.64160.101.384.5735.8938.54fhf8upax5cxsz   BEGIN sys.dbms_auto_report_int...
1.47160.091.234.2534.6738.250w26sk6t6gq98   SELECT XMLTYPE(DBMS_REPORT.GET...


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
1,464.184532.5449.651,519.053.5896.39cj9v3ynkm7uuy Update Customer Details BEGIN :1 := orderentry.SalesRe...
1,464.174532.5449.651,517.433.4996.4929qp10usqkqh0 Sales Rep Query SELECT TT.ORDER_TOTAL, TT.SALE...
622.071932.7421.09640.452.9397.1356pwkjspvmg3h Warehouse Activity Query WITH STAGE1 AS (SELECT /*+ mat...
622.071932.7421.09640.462.9497.1389b7r2pg1cn4a   BEGIN :1 := orderentry.Warehou...
571.861930.1019.39588.843.0497.12b5dk0t95fhyd7   BEGIN :1 := orderentry.Warehou...
571.861930.1019.39588.843.0497.12gkxxkghxubh1a Warehouse Orders Query SELECT ORDER_MODE, ORDERS.WARE...
196.818760.226.67210.073.2193.690w2qpuc6u2zsp JDBC Thin Client BEGIN :1 := orderentry.neworde...
76.3710,2040.012.5981.623.2793.57c13sma6rkr27c New Order SELECT PRODUCTS.PRODUCT_ID, PR...
41.756,7540.011.4244.151.8394.565ckxyqfvu60pj New Order SELECT CUSTOMER_ID, CUST_FIRST...
40.062,5360.021.3641.872.0195.68f7rxuxzt64k87 New Order INSERT INTO ORDER_ITEMS ( ORDE...
33.263240.101.1336.432.4991.3001jzc2mg6cg92   BEGIN :1 := orderentry.newcust...


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
8,459,77145187,994.9156.891,519.053,696,4cj9v3ynkm7uuy Update Customer Details BEGIN :1 := orderentry.SalesRe...
8,459,72445187,993.8756.891,517.433,596,529qp10usqkqh0 Sales Rep Query SELECT TT.ORDER_TOTAL, TT.SALE...
2,706,25919142,434.6818.20588.84397,1b5dk0t95fhyd7   BEGIN :1 := orderentry.Warehou...
2,706,25919142,434.6818.20588.84397,1gkxxkghxubh1a Warehouse Orders Query SELECT ORDER_MODE, ORDERS.WARE...
2,701,59719142,189.3218.17640.452,997,156pwkjspvmg3h Warehouse Activity Query WITH STAGE1 AS (SELECT /*+ mat...
2,701,59719142,189.3218.17640.462,997,189b7r2pg1cn4a   BEGIN :1 := orderentry.Warehou...
474,063876541.173.19210.073,293,70w2qpuc6u2zsp JDBC Thin Client BEGIN :1 := orderentry.neworde...
350,24110,20434.322.3681.623,393,6c13sma6rkr27c New Order SELECT PRODUCTS.PRODUCT_ID, PR...
242,1971,852130.781.6331.05885,8147a57cxq3w5y JDBC Thin Client BEGIN :1 := orderentry.browsep...
223,58722,19810.071.501.227310,60y1prvxqc2ra9 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
1,511,0724533,579.3854.091,519.053.5896.39cj9v3ynkm7uuy Update Customer Details BEGIN :1 := orderentry.SalesRe...
1,511,0664533,579.2454.091,517.433.4996.4929qp10usqkqh0 Sales Rep Query SELECT TT.ORDER_TOTAL, TT.SALE...
636,8771933,519.8422.80640.452.9397.1356pwkjspvmg3h Warehouse Activity Query WITH STAGE1 AS (SELECT /*+ mat...
636,8771933,519.8422.80640.462.9497.1389b7r2pg1cn4a   BEGIN :1 := orderentry.Warehou...
599,1891931,536.2621.45588.843.0497.12b5dk0t95fhyd7   BEGIN :1 := orderentry.Warehou...
599,1891931,536.2621.45588.843.0497.12gkxxkghxubh1a Warehouse Orders Query SELECT ORDER_MODE, ORDERS.WARE...
32,05987636.601.15210.073.2193.690w2qpuc6u2zsp JDBC Thin Client BEGIN :1 := orderentry.neworde...
13,56110,2041.330.4981.623.2793.57c13sma6rkr27c New Order SELECT PRODUCTS.PRODUCT_ID, PR...
5,9426,7540.880.2144.151.8394.565ckxyqfvu60pj New Order SELECT CUSTOMER_ID, CUST_FIRST...
5,9042,5362.330.2141.872.0195.68f7rxuxzt64k87 New Order INSERT INTO ORDER_ITEMS ( ORDE...


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
1,511,0721,511,0724533,579.380.0054.10cj9v3ynkm7uuy Update Customer Details BEGIN :1 := orderentry.SalesRe...
636,877636,8771933,519.840.0022.8056pwkjspvmg3h Warehouse Activity Query WITH STAGE1 AS (SELECT /*+ mat...
636,877636,8771933,519.840.0022.8089b7r2pg1cn4a   BEGIN :1 := orderentry.Warehou...
599,189599,1891931,536.260.0021.45b5dk0t95fhyd7   BEGIN :1 := orderentry.Warehou...
599,189599,1891931,536.260.0021.45gkxxkghxubh1a Warehouse Orders Query SELECT ORDER_MODE, ORDERS.WARE...
32,05932,05987636.600.001.150w2qpuc6u2zsp JDBC Thin Client BEGIN :1 := orderentry.neworde...
13,56113,56110,2041.330.000.49c13sma6rkr27c New Order SELECT PRODUCTS.PRODUCT_ID, PR...
5,9425,9426,7540.880.000.215ckxyqfvu60pj New Order SELECT CUSTOMER_ID, CUST_FIRST...
5,9045,9042,5362.330.000.21f7rxuxzt64k87 New Order INSERT INTO ORDER_ITEMS ( ORDE...
4,9004,90032415.120.000.1801jzc2mg6cg92   BEGIN :1 := orderentry.newcust...


Back to SQL Statistics
Back to Top

SQL ordered by Executions

Executions Rows ProcessedRows per ExecElapsed Time (s) %CPU %IO SQL IdSQL ModuleSQL Text
22,198310,75814.001.227310,60y1prvxqc2ra9 Browse Products SELECT PRODUCTS.PRODUCT_ID, PR...
10,20445,3664.4581.623,393,6c13sma6rkr27c New Order SELECT PRODUCTS.PRODUCT_ID, PR...
6,7546,7541.0044.151,894,65ckxyqfvu60pj New Order SELECT CUSTOMER_ID, CUST_FIRST...
2,7682,5360.924.505,795,28z3542ffmp562 New Order SELECT QUANTITY_ON_HAND FROM P...
2,5362,5361.0041.87295,7f7rxuxzt64k87 New Order INSERT INTO ORDER_ITEMS ( ORDE...
1,8521,8521.0031.05885,8147a57cxq3w5y JDBC Thin Client BEGIN :1 := orderentry.browsep...
1,2011,6941.4121.63297,4g81cbrq5yamf5 New Order SELECT ADDRESS_ID, CUSTOMER_ID...
1,1181,1181.004.373,653,7gzhkw1qu6fwxm Browse and Update Orders INSERT INTO LOGON (LOGON_ID, C...
8768761.00210.073,293,70w2qpuc6u2zsp JDBC Thin Client BEGIN :1 := orderentry.neworde...
8768761.0030.78293,43fw75k1snsddx New Order INSERT INTO ORDERS ( ORDER_ID,...
8761,2121.3816.791,597,67ws837zynp1zv New Order SELECT CARD_ID, CUSTOMER_ID, C...


Back to SQL Statistics
Back to Top

SQL ordered by Parse Calls

Parse CallsExecutions % Total Parses SQL IdSQL ModuleSQL Text
4804809.2024djtk7r8fz33   update svcobj_access$ set acce...
3373376.463dbzmtf9ahvzt   merge /* KSXM:OPTIM_DML_INF */...
1971973.772p9fv35c7zxtg   select /* KSXM:LOAD_DML_INF */...
1894743.62f3ww8rgva3hrs   update /* KSXM:FLUSH COL */ sy...
1521522.91a9hhaqub3dsgq DBO SELECT systimestamp "SNAPSHOT_...
1081082.07grwydz59pu6mc   select text from view$ where r...
1051052.01f7xnvp44nukp7   insert into wrm$_snapshot_deta...
99991.90bxpcry2tpc217   select /*+ opt_param('parallel...
78261.49a4akgk9g69h83 SQL Developer SELECT d.* FROM ( SELECT d.*, ...
75751.447hc9uvs2016m6   insert into svcobj_access$(nam...
56561.07fs4p95w7yg25b   select pob.parttype from sys.t...


Back to SQL Statistics
Back to Top

SQL ordered by Sharable Memory

Sharable Mem (b)Executions % Total SQL IdSQL ModuleSQL Text
23,402,945161.299yv5dwv8k0awg   WITH MONITOR_DATA AS (SELECT I...
4,227,380160.23atwuyuvqkf27w   SELECT /*+ OPT_PARAM('_fix_con...
1,367,17400.083kqrku32p6sfn   MERGE /*+ OPT_PARAM('_parallel...
1,364,965120.08121ffmrc95v7g   select i.obj#, i.ts#, i.file#,...
1,060,61240.06389k0hwvasbb8 oraagent.bin@rac1.example.com (TNS V1-V3) SELECT /*+ ALL_ROWS */ COUNT(*...
1,056,618210.06g0t052az3rx44   select name, intcol#, segcol#,...


Back to SQL Statistics
Back to Top

SQL ordered by Version Count

Version Count Executions SQL IdSQL ModuleSQL Text
2321g0t052az3rx44   select name, intcol#, segcol#,...


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
18.374541.641,519.051.213.5896.39cj9v3ynkm7uuy Update Customer Details BEGIN :1 := orderentry.SalesRe...
18.364541.631,517.431.213.4996.4929qp10usqkqh0 Sales Rep Query SELECT TT.ORDER_TOTAL, TT.SALE...
8.2687618.72210.073.933.2193.690w2qpuc6u2zsp JDBC Thin Client BEGIN :1 := orderentry.neworde...
6.541914.82640.451.022.9397.1356pwkjspvmg3h Warehouse Activity Query WITH STAGE1 AS (SELECT /*+ mat...
6.541914.82640.461.022.9497.1389b7r2pg1cn4a   BEGIN :1 := orderentry.Warehou...
5.841913.23588.840.993.0497.12b5dk0t95fhyd7   BEGIN :1 := orderentry.Warehou...
5.841913.23588.840.993.0497.12gkxxkghxubh1a Warehouse Orders Query SELECT ORDER_MODE, ORDERS.WARE...
3.4810,2047.8881.624.263.2793.57c13sma6rkr27c New Order SELECT PRODUCTS.PRODUCT_ID, PR...
2.493245.6536.436.842.4991.3001jzc2mg6cg92   BEGIN :1 := orderentry.newcust...
1.891,1184.294.3743.313.6053.75gzhkw1qu6fwxm Browse and Update Orders INSERT INTO LOGON (LOGON_ID, C...
1.876,7544.2444.154.241.8394.565ckxyqfvu60pj New Order SELECT CUSTOMER_ID, CUST_FIRST...
1.711,8523.8731.055.508.0185.82147a57cxq3w5y JDBC Thin Client BEGIN :1 := orderentry.browsep...
1.618763.6430.785.221.9693.433fw75k1snsddx New Order INSERT INTO ORDERS ( ORDER_ID,...
1.282,5362.9141.873.062.0195.68f7rxuxzt64k87 New Order INSERT INTO ORDER_ITEMS ( ORDE...
0.623241.416.669.312.2189.29budtrjayjnvw3 Update Customer Details INSERT INTO CARD_DETAILS ( CAR...
0.423240.9518.172.302.0296.42gh2g2tynpcpv1 Update Customer Details INSERT INTO CUSTOMERS ( CUSTOM...
0.391,2010.8921.631.822.0097.36g81cbrq5yamf5 New Order SELECT ADDRESS_ID, CUSTOMER_ID...
0.353250.8018.021.952.6096.17apgb2g9q2zjh1 Update Customer Details BEGIN :1 := orderentry.browsea...
0.288760.6316.791.651.5497.607ws837zynp1zv New Order SELECT CARD_ID, CUSTOMER_ID, C...
0.2510.561.1820.9167.148.52fffaspt7gd9cc SQL Developer BEGIN DBMS_WORKLOAD_REPOSITORY...
0.253240.5610.022.452.1296.199t3n2wpr7my63 Update Customer Details INSERT INTO ADDRESSES ( ADDRES...
0.151040.346.832.222.3796.17a9gvfh5hx9u98   BEGIN :1 := orderentry.process...
0.112,7680.254.502.465.6795.248z3542ffmp562 New Order SELECT QUANTITY_ON_HAND FROM P...
0.101040.235.561.861.7097.337hk2m2702ua0g Process Orders WITH NEED_TO_PROCESS AS (SELEC...
0.093250.204.721.871.7697.297t0959msvyt5g Browse and Update Orders SELECT ORDER_ID, ORDER_DATE, O...
0.051050.120.1150.6910.0942.47f7xnvp44nukp7   insert into wrm$_snapshot_deta...
0.0310.062.401.0814.4265.28a6ufvpa02fgag SQL Developer select a.total as MAX_BYTES, b...
0.0222,1980.041.221.4973.0010.560y1prvxqc2ra9 Browse Products SELECT PRODUCTS.PRODUCT_ID, PR...


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;
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
121ffmrc95v7gselect i.obj#, i.ts#, i.file#, i.block#, i.intcols, i.type#, i.flags, i.property, i.pctfree$, i.initrans, i.maxtrans, i.blevel, i.leafcnt, i.distkey, i.lblkkey, i.dblkkey, i.clufac, i.cols, i.analyzetime, i.samplesize, i.dataobj#, nvl(i.degree, 1), nvl(i.instances, 1), i.rowcnt, mod(i.pctthres$, 256), i.indmethod#, i.trunccnt, nvl(c.unicols, 0), nvl(c.deferrable#+c.valid#, 0), nvl(i.spare1, i.intcols), i.spare4, i.spare2, i.spare6, decode(i.pctthres$, null, null, mod(trunc(i.pctthres$/256), 256)), nvl(i.evaledition#, 1), nvl(i.unusablebefore#, 0), nvl(i.unusablebeginning#, 0), ist.cachedblk, ist.cachehit, ist.logicalread from ind$ i, ind_stats$ ist, (select enabled, min(intcols) unicols, min(to_number(bitand(defer, 1))) deferrable#, min(to_number(bitand(defer, 4))) valid# from cdef$ where obj#=:1 and enabled > 1 group by enabled) c where i.obj#=c.e nabled(+) and i.obj# = ist.obj#(+) and i.bo#=:1 order by i.obj#
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
2p9fv35c7zxtgselect /* KSXM:LOAD_DML_INF *//*+ leading(o) index(m) use_nl(m) */ nvl(m.inserts, 0) ins, nvl(m.updates, 0) upd, nvl(m.deletes, 0) del, nvl(m.drop_segments, 0) dropseg, nvl(m.flags, 0) flags, nvl(rowcnt, 0) rowcnt, o.pobjn pobjn from (select :objn objn, 0 pobjn, rowcnt from tab$ t where t.obj# = :objn union all select :objn objn, tp.bo# pobjn, rowcnt from tabpart$ tp where tp.obj# = :objn union all select :objn objn, tcp.bo# pobjn, rowcnt from tabcompart$ tcp where tcp.obj# = :objn union all select :objn objn, tsp.pobj# pobjn, rowcnt from tabsubpart$ tsp where tsp.obj# = :objn) o, sys.mon_mods_all$ m where o.objn = m.obj#(+) and rownum < 2
389k0hwvasbb8SELECT /*+ ALL_ROWS */ COUNT(*) FROM SYS.DBA_POLICIES V WHERE V.OBJECT_OWNER = :B3 AND V.OBJECT_NAME = :B2 AND (V.POLICY_NAME LIKE '%xdbrls%' OR V.POLICY_NAME LIKE '%$xd_%') AND V.FUNCTION = :B1
3dbzmtf9ahvztmerge /* KSXM:OPTIM_DML_INF */ into sys.mon_mods_all$ m using dual on (m.obj# = :objn and (:pobjn = 0 or m.obj# = :pobjn or m.obj# in (select obj# from tabpart$ where bo# = :pobjn and obj# = :objn union all select obj# from tabcompart$ where bo# = :pobjn and obj # = :objn union all select tsp.obj# from tabsubpart$ tsp, tabcompart$ tcp where tsp.pobj# = tcp.obj# and (tcp.bo# = :pobjn or tcp.obj# = :pobjn) and tsp.obj# = :objn))) when matched then update set inserts = decode(:reset, 1, 0, inserts) + :ins, updates = decode(:reset, 1, 0, updates) + :upd, deletes = decode(:reset, 1, 0, deletes) + :del, flags = decode(:reset, 1, 0, flags - bitand(flags, :flag)) + :flag, drop_segments = decode(:reset, 1, 0, dro p_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
3kqrku32p6sfnMERGE /*+ OPT_PARAM('_parallel_syspls_obey_force' 'false') */ INTO OPTSTAT_USER_PREFS$ D USING ( SELECT * FROM (SELECT O.OBJ#, SYSTIMESTAMP CHGTIME, ROUND(MAX(S.DELTA_READ_IO_BYTES/S.DELTA_TIME), 3) SCANRATE FROM GV$ACTIVE_SESSION_HISTORY S, GV$SQL_PLAN P, OBJ$ O, USER$ U WHERE S.INST_ID = P.INST_ID AND S.SQL_ID = P.SQL_ID AND S.SQL_PLAN_HASH_VALUE = P.PLAN_HASH_VALUE AND S.SQL_PLAN_LINE_ID = P.ID AND P.OBJECT_NAME = O.NAME AND (:B4 IS NULL OR O.OBJ# = :B4 ) AND O.OWNER# = U.USER# AND P.OBJECT_OWNER = U.NAME AND O.TYPE# = 2 AND S.CON_ID = SYS_CONTEXT('userenv', 'con_id') AND P.CON_ID = SYS_CONTEXT('userenv', 'con_id') AND S.SQL_PLAN_OPERATION = 'TABLE ACCESS' AND P.OPERATION = 'TABLE ACCESS' AND S.DELTA_TIME > 0 AND S.DELTA_READ_IO_BYTES > 0 AND FROM_TZ(S.SAMPLE_TIME, :B3 ) > :B2 AND (:B1 = 'ON' OR (:B1 = 'HADOOP_ONLY' AND EXISTS ( SELEC T NULL FROM SYS.EXTERNAL_TAB$ ET WHERE ET.OBJ# = O.OBJ# AND TYPE$ IN ('ORACLE_HIVE', 'ORACLE_HDFS', 'ORACLE_BIGDATA')))) GROUP BY O.OBJ#) C WHERE NOT EXISTS (SELECT NULL FROM OPTSTAT_USER_PREFS$ PR WHERE PNAME = 'SCAN_RATE' AND C.OBJ# = PR.OBJ# AND (PR.SPARE1 IS NULL OR C.SCANRATE <= TO_NUMBER(PR.VALCHAR))) ) SRC ON (D.OBJ#=SRC.OBJ# AND D.PNAME = 'SCAN_RATE') WHEN MATCHED THEN UPDATE SET D.VALCHAR= TO_CHAR(SRC.SCANRATE), D.CHGTIME=SRC.CHGTIME, D.SPARE1=1 WHEN NOT MATCHED THEN INSERT (OBJ#, PNAME, VALCHAR, CHGTIME, SPARE1) VALUES(SRC.OBJ#, 'SCAN_RATE', TO_CHAR(SRC.SCANRATE), SRC.CHGTIME, 1)
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
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
7hc9uvs2016m6insert into svcobj_access$(name, pdb, tsn, objid, accesses, inc_no) values (:1, :2, :3, :4, :5, :6)
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
7t0959msvyt5gSELECT ORDER_ID, ORDER_DATE, ORDER_MODE, CUSTOMER_ID, ORDER_STATUS, ORDER_TOTAL, SALES_REP_ID, PROMOTION_ID, WAREHOUSE_ID, DELIVERY_TYPE, COST_OF_DELIVERY, WAIT_TILL_ALL_AVAILABLE, DELIVERY_ADDRESS_ID, CUSTOMER_CLASS, CARD_ID, INVOICE_ADDRESS_ID FROM ORDERS WHERE CUSTOMER_ID = :B2 AND ROWNUM < :B1
7ws837zynp1zvSELECT CARD_ID, CUSTOMER_ID, CARD_TYPE, CARD_NUMBER, EXPIRY_DATE, IS_VALID, SECURITY_CODE FROM CARD_DETAILS WHERE CUSTOMER_ID = :B2 AND ROWNUM < :B1
89b7r2pg1cn4aBEGIN :1 := orderentry.WarehouseActivityQuery(:2 , :3 , :4 ); END;
8z3542ffmp562SELECT QUANTITY_ON_HAND FROM PRODUCT_INFORMATION P, INVENTORIES I WHERE I.PRODUCT_ID = :B2 AND I.PRODUCT_ID = P.PRODUCT_ID AND I.WAREHOUSE_ID = :B1
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 )
9yv5dwv8k0awgWITH MONITOR_DATA AS (SELECT INST_ID, KEY, NVL2(PX_QCSID, NULL, STATUS) STATUS, FIRST_REFRESH_TIME, LAST_REFRESH_TIME, REFRESH_COUNT, PROCESS_NAME, SID, SQL_ID, SQL_EXEC_START, SQL_EXEC_ID, DBOP_NAME, DBOP_EXEC_ID, SQL_PLAN_HASH_VALUE, SQL_FULL_PLAN_HASH_VALUE, SESSION_SERIAL#, SQL_TEXT, PX_SERVER#, PX_SERVER_GROUP, PX_SERVER_SET, PX_QCINST_ID, PX_QCSID, CASE WHEN ELAPSED_TIME < (CPU_TIME+ APPLICATION_WAIT_TIME+ CONCURRENCY_WAIT_TIME+ CLUSTER_WAIT_TIME+ USER_IO_WAIT_TIME+ QUEUING_TIME) THEN (CPU_TIME+ APPLICATION_WAIT_TIME+ CONCURRENCY_WAIT_TIME+ CLUSTER_WAIT_TIME+ USER_IO_WAIT_TIME+ QUEUING_TIME) ELSE ELAPSED_TIME END ELAPSED_TIME, QUEUING_TIME, CPU_TIME, APPLICATION_WAIT_TIME, CONCURRENCY_WAIT_TIME, CLUSTER_WAIT_TIME, USER_IO_WAIT_TIME, CASE WHEN ELAPSED_TIME < (CPU_TIME+ APPLICATION_WAIT_TIME+ CONCURRENCY_WAIT_TIME+ CLUSTER_WAIT_TIME+ USER_IO_WAIT_TIME+ QUEUING_TIME) THEN 0 ELSE ELAPSED_TIME - (CPU_TIME+ APPLICATION_WAIT_TIME+ CONCURRENCY_WAIT_TIME+ CLUSTER_WAIT_TIME+ USER_IO_WAIT_TIME+ QUEUING_TIME) END OTHER_WAIT_TIME, PLSQL_EXEC_TIME, JAVA_EXEC_TIME, FETCHES, BUFFER_GETS, IO_INTERCONNECT_BYTES IO_INTER_BYTES, PHYSICAL_READ_REQUESTS READ_REQS, PHYSICAL_READ_BYTES READ_BYTES, PHYSICAL_WRITE_REQUESTS WRITE_REQS, PHYSICAL_WRITE_BYTES WRITE_BYTES, NVL(PHYSICAL_READ_BYTES, 0) + NVL(PHYSICAL_WRITE_BYTES, 0) IO_BYTES, NVL(PHYSICAL_READ_REQUESTS, 0) + NVL(PHYSICAL_WRITE_REQUESTS, 0) IO_REQS, IO_CELL_UNCOMPRESSED_BYTES IO_UNC_BYTES, IO_CELL_OFFLOAD_ELIGIBLE_BYTES IO_ELIG_BYTES, IO_CELL_OFFLOAD_RETURNED_BYTES IO_RET_BYTES, USER# USERID, USERNAME, MODULE, ACTION, SERVICE_NAME, CLIENT_IDENTIFIER, CLIENT_INFO, PROGRAM, PLSQL_OBJECT_ID PL_OID, PLSQL_SUBPROGRAM_ID PL_PROGID, PLSQL_ENTRY_OBJECT_ID PL_ENTRY_OID, PLSQL_ENTRY_SUBPROGRAM_ID PL_ENTRY_PROGID, PX_MAXDOP MAX_DOP, PX_IS_ CROSS_INSTANCE, PX_MAXDOP_INSTANCES MAX_DOP_INSTANCES, PX_SERVERS_REQUESTED SERVERS_REQUESTED, PX_SERVERS_ALLOCATED SERVERS_ALLOCATED, ERROR_NUMBER, ERROR_FACILITY, ERROR_MESSAGE, NVL2(OTHER_XML, 'Y', NULL) HAS_OTHER_XML, NVL2(BINDS_XML, 'Y', NULL) HAS_BINDS_XML, NVL2(RM_CONSUMER_GROUP, NVL2(RM_LAST_ACTION_TIME, TO_CHAR(RM_LAST_ACTION_TIME, :B12 ), '00/00/0000 00:00:01') || XMLELEMENT( "rminfo", XMLATTRIBUTES( RM_LAST_ACTION AS "rmlastact", RM_LAST_ACTION_REASON AS "rmlastreason", TO_CHAR(RM_LAST_ACTION_TIME, :B12 ) AS "rmlasttime", RM_CONSUMER_GROUP AS "rmcg")).GETSTRINGVAL(), '00/00/0000 00:00:00') RM_INFO, CON_NAME, CON_ID FROM GV$ALL_SQL_MONITOR MO1 WHERE MO1.INST_ID BETWEEN :B11 AND :B10 AND MO1.SQL_ID = NVL(:B9 , MO1.SQL_ID) AND MO1.SQL_EXEC_START = NVL(:B8 , MO1.SQL_EXEC_START) AND MO1.SQL_EXEC_ID = NVL(:B7 , MO1.SQL_EXEC_ID) OR (MO1.DBOP_NAME = NVL(:B6 , MO1.DBOP_NAME) AND MO1.DBOP_EXEC_ID = NVL(:B5 , MO1.DBOP_EXEC_ID)) AND ((:B4 = 1 AND MO1.PX_QCSID IS NULL) OR (MO1.PX_SERVER_GROUP = NVL(:B3 , MO1.PX_SERVER_GROUP) AND MO1.PX_SERVER_SET = NVL(:B2 , MO1.PX_SERVER_SET) AND MO1.PX_SERVER# = NVL(:B1 , MO1.PX_SERVER#)))), MONITOR_AGG AS (SELECT MAX_PX_QCSID, MAX_KEY, MAX_INST_ID, MAX_SESSION_ID, MAX_SESSION_SERIAL, MAX_PX_DOP, MAX_PX_DOP_INSTANCES, MAX_PX_IS_CROSS_INSTANCE, SUM_SERVERS_REQUESTED, SUM_SERVERS_ALLOCATED, DIST_INST_COUNT, DIST_PX_GROUP_COUNT, DIST_PX_SET_COUNT, MAX_PLAN_HASH_VALUE, MAX_FULL_PLAN_HASH_VALUE, MAX_USERID, MAX_PROGRAM, MAX_USERNAME, MAX_MODULE, MAX_ACTION, MAX_SERVICE_NAME, MAX_CLIENT_ID, MAX_CLIENT_INFO, MAX_ERROR_NUMBER, MAX_ERROR_FACILITY, MAX_ERROR_MESSAGE, QC_HAS_OTHER_XML, QC_HAS_BINDS_XML, MAX_PL_OID, MAX_PL_PROGID, MAX_PL_ENTRY_OID, MAX_PL_ENTRY_PROGID, MAX_SQL_ID, MAX_SQL_EXEC_START, MAX_SQL_EXEC_ID, MAX_LAST_REFRESH_TIME, MAX_DBOP_NAME, MAX_DBOP_EXEC_ID, CASE WHEN MAX_PL_OID IS NOT NULL THEN NVL((SELECT P.O WNER || '.' || P.OBJECT_NAME || DECODE(P.PROCEDURE_NAME, NULL, '', '.' || P.PROCEDURE_NAME) FROM ALL_PROCEDURES P WHERE P.OBJECT_ID = MAX_PL_OID AND P.SUBPROGRAM_ID = MAX_PL_PROGID AND ROWNUM = 1), 'Unavailable') END MAX_PL_NAME, CASE WHEN MAX_PL_ENTRY_OID IS NOT NULL THEN NVL((SELECT P.OWNER || '.' || P.OBJECT_NAME || DECODE(P.PROCEDURE_NAME, NULL, '', '.' || P.PROCEDURE_NAME) FROM ALL_PROCEDURES P WHERE P.OBJECT_ID = MAX_PL_ENTRY_OID AND P.SUBPROGRAM_ID = MAX_PL_ENTRY_PROGID AND ROWNUM = 1), 'Unavailable') END MAX_PL_ENTRY_NAME, MAX_STATUS, SUM_REFRESH_COUNT, MIN_FIRST_REFRESH_TIME, SQLMON_TEXT, SUM_ELAPSED_TIME, MAX_ELAPSED_TIME, MAX_QUEUING_TIME, SUM_CPU_TIME, SUM_USER_IO_WAIT_TIME, SUM_APPLICATION_WAIT_TIME, SUM_CONCURRENCY_WAIT_TIME, SUM_CLUSTER_WAIT_TIME, SUM_PLSQL_EXEC_TIME, SUM_JAVA_EXEC_TIME, SUM_OTHER_WAIT_TIME, SUM_FETCHES, SUM_BUFFER_GETS, SUM_READ_REQS, SUM_READ_BYTES, SUM_WRITE_REQS, SUM_WRITE_BYTES, SUM_IO_BYTES, SUM_IO_INTER_BYTES, SUM_ IO_UNC_BYTES, SUM_IO_ELIG_BYTES, SUM_IO_RET_BYTES, DECODE(:B14 , 1, 'db_name', SYS_CONTEXT('userenv', 'db_unique_name')) DB_UNIQUE_NAME, DECODE(:B14 , 1, 'platform_name', SYS.DBMS_UTILITY.PORT_STRING) PLATFORM_NAME, DECODE(:B14 , 1, 'host_name', SYS_CONTEXT('userenv', 'server_host')) HOST_NAME, AGG_RM_INFO MAX_RM_INFO, MAX_CON_NAME, DECODE(MAX_CON_ID, 0, NULL, MAX_CON_ID) MAX_CON_ID FROM (SELECT MAX(PX_QCSID) MAX_PX_QCSID, MAX(CASE WHEN PX_QCSID IS NULL THEN KEY ELSE NULL END) MAX_KEY, MAX(CASE WHEN PX_QCSID IS NULL THEN INST_ID ELSE NULL END) MAX_INST_ID, MAX(CASE WHEN PX_QCSID IS NULL THEN SID ELSE NULL END) MAX_SESSION_ID, MAX(CASE WHEN PX_QCSID IS NULL THEN SESSION_SERIAL# ELSE NULL END) MAX_SESSION_SERIAL, MAX(MAX_DOP) MAX_PX_DOP, MAX(MAX_DOP_INSTANCES) MAX_PX_DOP_INSTANCES, MAX(PX_IS_CROSS_INSTANCE) MAX_PX_IS_CROSS_INSTANCE, SUM(SERVERS_REQUESTED) SUM_SERVERS_REQUESTED, SUM(SERVERS_ALLOCATED) SUM_SERVERS_ALLOCATED, COUNT(DISTINCT INST_ID) DIST_INST _COUNT, COUNT(DISTINCT PX_SERVER_GROUP) DIST_PX_GROUP_COUNT, COUNT(DISTINCT PX_SERVER_SET) DIST_PX_SET_COUNT, MAX(SQL_PLAN_HASH_VALUE) MAX_PLAN_HASH_VALUE, MAX(SQL_FULL_PLAN_HASH_VALUE) MAX_FULL_PLAN_HASH_VALUE, MAX(USERID) MAX_USERID, MAX(PROGRAM) MAX_PROGRAM, MAX(USERNAME) MAX_USERNAME, MAX(MODULE) MAX_MODULE, MAX(ACTION) MAX_ACTION, MAX(SERVICE_NAME) MAX_SERVICE_NAME, MAX(CLIENT_IDENTIFIER) MAX_CLIENT_ID, MAX(CLIENT_INFO) MAX_CLIENT_INFO, MAX(ERROR_NUMBER) MAX_ERROR_NUMBER, MAX(ERROR_FACILITY) MAX_ERROR_FACILITY, MAX(ERROR_MESSAGE) MAX_ERROR_MESSAGE, MAX(NVL2(PX_QCSID, HAS_OTHER_XML, NULL)) QC_HAS_OTHER_XML, MAX(HAS_BINDS_XML) QC_HAS_BINDS_XML, MAX(PL_OID) MAX_PL_OID, MAX(PL_PROGID) MAX_PL_PROGID, MAX(PL_ENTRY_OID) MAX_PL_ENTRY_OID, MAX(PL_ENTRY_PROGID) MAX_PL_ENTRY_PROGID, MAX(SQL_ID) MAX_SQL_ID, MAX(SQL_EXEC_START) MAX_SQL_EXEC_START, MAX(SQL_EXEC_ID) MAX_SQL_EXEC_ID, MAX(LAST_REFRESH_TIME) MAX_LAST_REFRESH_TIME, MAX(STATUS) MAX_STATUS, SUM(REFRESH_COU NT) SUM_REFRESH_COUNT, MIN(FIRST_REFRESH_TIME) MIN_FIRST_REFRESH_TIME, MAX(DBOP_NAME) MAX_DBOP_NAME, MAX(DBOP_EXEC_ID) MAX_DBOP_EXEC_ID, CASE WHEN :B13 = 0 THEN NULL ELSE MAX(SQL_TEXT) END SQLMON_TEXT, SUM(ELAPSED_TIME) SUM_ELAPSED_TIME, MAX(ELAPSED_TIME) MAX_ELAPSED_TIME, MAX(QUEUING_TIME) MAX_QUEUING_TIME, SUM(CPU_TIME) SUM_CPU_TIME, SUM(USER_IO_WAIT_TIME) SUM_USER_IO_WAIT_TIME, SUM(APPLICATION_WAIT_TIME) SUM_APPLICATION_WAIT_TIME, SUM(CONCURRENCY_WAIT_TIME) SUM_CONCURRENCY_WAIT_TIME, SUM(CLUSTER_WAIT_TIME) SUM_CLUSTER_WAIT_TIME, SUM(PLSQL_EXEC_TIME) SUM_PLSQL_EXEC_TIME, SUM(JAVA_EXEC_TIME) SUM_JAVA_EXEC_TIME, SUM(OTHER_WAIT_TIME) SUM_OTHER_WAIT_TIME, SUM(FETCHES) SUM_FETCHES, SUM(BUFFER_GETS) SUM_BUFFER_GETS, SUM(READ_REQS) SUM_READ_REQS, SUM(READ_BYTES) SUM_READ_BYTES, SUM(WRITE_REQS) SUM_WRITE_REQS, SUM(WRITE_BYTES) SUM_WRITE_BYTES, NVL(SUM(READ_BYTES), 0) + NVL(SUM(WRITE_BYTES), 0) SUM_IO_BYTES, SUM(IO_INTER_BYTES) SUM_IO_INTER_BYTES, SUM(IO_UNC_BYTES) S UM_IO_UNC_BYTES, SUM(IO_ELIG_BYTES) SUM_IO_ELIG_BYTES, SUM(IO_RET_BYTES) SUM_IO_RET_BYTES, MAX(RM_INFO) AGG_RM_INFO, MAX(CON_NAME) MAX_CON_NAME, MAX(CON_ID) MAX_CON_ID FROM MONITOR_DATA) MD), ASH_DATA AS (SELECT AD0.INST_ID, AD0.SESSION_ID, AD0.PLAN_LINE_ID, AD0.PLSQL_OBJECT_ID, AD0.PLSQL_SUBPROGRAM_ID, AD0.ACTIVITY_BUCKET_NUM, AD0.PLAN_ACTIVITY_BUCKET_NUM, AD0.SQL, AD0.TOP_LEVEL_SQL_ID, AD0.DBOP_NAME, AD0.IS_MONITORED_SQL, AD0.IS_PX_SLAVE, AD0.BUCKET_ACTIVITY_START, AD0.ACTIVITY_START, AD0.BUCKET_ACTIVITY_END, AD0.ACTIVITY_END, AD0.ACTIVITY_COUNT, AD0.ACTIVITY_TYPE, AD0.OTHER_SQL_ACTIVITY_TYPE, AD0.EVENT_NAME, AD0.IMQ_COUNT, AD0.WAIT_COUNT, AD0.CPU_COUNT, AD0.OTHER_SQL_COUNT, AD0.PX_SERVER_SET, AD0.PX_DFO_ACTIVITY_COUNT, AD0.DFO_MOST_ACTIVE_IID, AD0.DFO_MOST_ACTIVE_SID, (CASE WHEN AD0.DFO_MOST_ACTIVE_IID = AD0.INST_ID AND AD0.DFO_MOST_ACTIVE_SID = AD0.SESSION_ID AND (((AD0.PX_DFO_ACTIVITY_COUNT / AD0.DFO_MOST_ACTIVE_COUNT) >= AD0.PX_DOP * 1.05) OR ((AD0.PX_DFO_ACTIVITY_COUNT / AD0.DFO_MOST_ACTIVE_COUNT) <= AD0.PX_DOP *0.95)) AND (AD0.DFO_DURATION * 100) > :B32 THEN AD0.ACTIVITY_COUNT ELSE NULL END) DFO_MOST_ACTIVE_COUNT, AD0.BUCKET_DISTINCT_SAMPLES, AD0.SQL_BUCKET_DISTINCT_SAMPLES, CASE WHEN AD0.PX_SERVER_GROUP IS NULL AND AD0.IS_PX_SLAVE = 1 THEN 1 ELSE AD0.PX_SERVER_GROUP END PX_SERVER_GROUP, AD0.PX_STEP_ID, AD0.PX_DFO_PAIR_TYPE, AD0.PX_DFO_PAIR_ID, AD0.PX_STEP_ARG, AD0.PX_DOP, CASE WHEN AD0.PX_DOP IS NOT NULL AND AD0.PX_DOP <> AD0.PX_MIN_DOP AND AD0.PX_MIN_DOP != 0 THEN PX_MIN_DOP ELSE NULL END PX_MIN_DOP FROM (SELECT /*+ use_hash(ash) leading(mo) */ ASH.INST_ID, ASH.IS_PX_SLAVE, ASH.SESSION_ID, ASH.PLAN_LINE_ID, ASH.PLSQL_OBJECT_ID, ASH.PLSQL_SUBPROGRAM_ID, ASH.ACTIVITY_BUCKET_NUM, ASH.PLAN_ACTIVITY_BUCKET_NUM, ASH.SQL, ASH.TOP_LEVEL_SQL_ID, ASH.DBOP_NAME, ASH.IS_MONITORED_SQL, ASH.BUCKET_ACTIVITY_START, ASH.ACTIVITY_START, ASH.BUCKET_ACTIVITY_END, ASH.ACTIVITY_END, ASH.ACTIVITY_COUNT, A SH.ACTIVITY_TYPE, ASH.OTHER_SQL_ACTIVITY_TYPE, ASH.EVENT_NAME, ASH.IMQ_COUNT, ASH.WAIT_COUNT, ASH.CPU_COUNT, ASH.OTHER_SQL_COUNT, MO.PX_SERVER_SET, ASH.PX_DFO_ACTIVITY_COUNT, TRUNC(ASH.MOST_ACTIVE_IN_DFO / 10000000000) DFO_MOST_ACTIVE_COUNT, MOD(TRUNC(ASH.MOST_ACTIVE_IN_DFO / 1000000), 10000) DFO_MOST_ACTIVE_IID, MOD(ASH.MOST_ACTIVE_IN_DFO, 1000000) DFO_MOST_ACTIVE_SID, ASH.DFO_DURATION, ASH.BUCKET_DISTINCT_SAMPLES, ASH.SQL_BUCKET_DISTINCT_SAMPLES, MO.PX_SERVER_GROUP, ASH.PX_STEP_ID, ASH.PX_DFO_PAIR_TYPE, ASH.PX_DFO_PAIR_ID, ASH.PX_STEP_ARG, ASH.PX_DOP, ASH.PX_MIN_DOP FROM (SELECT /*+ no_merge */ MD.INST_ID, MD.SID, MD.SESSION_SERIAL#, MD.PX_SERVER_SET, MD.PX_SERVER_GROUP FROM MONITOR_DATA MD WHERE MD.SID IS NOT NULL OR :B31 = 1) MO, (SELECT /*+ no_merge */ GVTF.INST_ID, GVTF.GLOBAL_SAMPLE_ID, GVTF.IS_PX_SLAVE, GVTF.SESSION_ID, GVTF.PLAN_LINE_ID, GVTF.PLSQL_OBJECT_ID, GVTF.PLSQL_SUBPROGRAM_ID, GVTF.ACTIVITY_BUCKET_NUM, GVTF.PLAN_ACTIVITY_BUCKET_NUM, GVTF.SQL, GVTF.TOP_LEVEL_SQL_ID, GVTF.DBOP_NAME, GVTF.IS_MONITORED_SQL, GVTF.BUCKET_ACTIVITY_START, GVTF.ACTIVITY_START, GVTF.BUCKET_ACTIVITY_END, GVTF.ACTIVITY_END, GVTF.ACTIVITY_COUNT, GVTF.ACTIVITY_TYPE, GVTF.OTHER_SQL_ACTIVITY_TYPE, GVTF.EVENT_NAME, GVTF.IMQ_COUNT, GVTF.WAIT_COUNT, GVTF.CPU_COUNT, GVTF.OTHER_SQL_COUNT, MAX(GVTF.PER_SERVER_DFO_COUNT * 10000000000 + GVTF.INST_ID * 1000000 + GVTF.SESSION_ID) OVER(PARTITION BY GVTF.PX_DFO_PAIR_TYPE, GVTF.PX_DFO_PAIR_ID) MOST_ACTIVE_IN_DFO, SUM(GVTF.ACTIVITY_COUNT) OVER(PARTITION BY GVTF.PX_DFO_PAIR_TYPE, GVTF.PX_DFO_PAIR_ID) PX_DFO_ACTIVITY_COUNT, GVTF.DFO_DURATION, GVTF.PX_STEP_ID, GVTF.PX_DFO_PAIR_TYPE, GVTF.PX_DFO_PAIR_ID, GVTF.PX_STEP_ARG, GVTF.PX_DOP, GVTF.PX_MIN_DOP, COUNT(DISTINCT GVTF.GLOBAL_SAMPLE_ID) OVER(PARTITION BY GVTF.ACTIVITY_BUCKET_NUM) BUCKET_DISTINCT_SAMPLES, COUNT(DISTINCT GVTF.GLOBAL_SAMPLE_ID) OVER(PARTITION BY GVTF.SQL, GVTF.ACTIVITY_BUCKET_NUM) SQL_BUCKET_DISTINCT_SAMPLES FROM TABLE (SYS.GV$(CURSOR( (SELECT USERENV('INSTANCE') INST_ID, ASH2.GLOBAL_SAMPLE_ID, CASE WHEN :B30 = 1 AND :B27 > 1 THEN BUCKET_NUM ELSE NULL END ACTIVITY_BUCKET_NUM, CASE WHEN :B29 = 1 AND :B27 > 1 THEN BUCKET_NUM ELSE NULL END PLAN_ACTIVITY_BUCKET_NUM, ASH2.SQL, ASH2.TOP_LEVEL_SQL_ID, ASH2.DBOP_NAME, ASH2.IS_MONITORED_SQL, ASH2.PLAN_LINE_ID, ASH2.PLSQL_OBJECT_ID, ASH2.PLSQL_SUBPROGRAM_ID, ASH2.ACTIVITY_TYPE, ASH2.OTHER_SQL_ACTIVITY_TYPE, ASH2.EVENT_NAME, ASH2.IS_PX_SLAVE, ASH2.SESSION_ID, ASH2.PX_STEP_ID, ASH2.PX_DFO_PAIR_TYPE, ASH2.PX_DFO_PAIR_ID, ASH2.PX_STEP_ARG, CASE WHEN ASH2.PX_DFO_PAIR_ID IS NOT NULL THEN DECODE(ASH2.PX_DOP, 0, :B28 , ASH2.PX_DOP) ELSE NULL END PX_DOP, ASH2.PX_MIN_DOP, :B20 + NUMTODSINTERVAL(:B26 * (ASH2.BUCKET_NUM-1), 'SECOND') BUCKET_ACTIVITY_START, :B20 + NUMTODSINTERVAL( :B26 * ASH2.BUCKET_NUM - 1, 'SECOND') BUCKET_ACTIVITY_END, ASH2.ACTIVITY_START, ASH2.ACTIVITY_END, ASH2.ACTIVITY_COUNT, ASH2.IMQ_COUNT, ASH2.WAIT_COUNT, AS H2.CPU_COUNT, ASH2.OTHER_SQL_COUNT, SUM(ASH2.ACTIVITY_COUNT) OVER(PARTITION BY ASH2.PX_DFO_PAIR_ID, ASH2.PX_DFO_PAIR_TYPE, DECODE(ASH2.PX_DFO_PAIR_ID, NULL, NULL, ASH2.SESSION_ID)) PER_SERVER_DFO_COUNT, CEIL((MAX(ASH2.MAX_SAMPLE_DATE) OVER(PARTITION BY ASH2.PX_DFO_PAIR_ID, ASH2.PX_DFO_PAIR_TYPE) - MIN(ASH2.MIN_SAMPLE_DATE) OVER(PARTITION BY ASH2.PX_DFO_PAIR_ID, ASH2.PX_DFO_PAIR_TYPE)) * 3600 * 24) DFO_DURATION FROM (SELECT ASH1.BUCKET_NUM, ASH1.GLOBAL_SAMPLE_ID, ASH1.PLAN_LINE_ID, ASH1.PLSQL_OBJECT_ID, ASH1.PLSQL_SUBPROGRAM_ID, ASH1.ACTIVITY_TYPE, ASH1.OTHER_SQL_ACTIVITY_TYPE, ASH1.EVENT_NAME, ASH1.SESSION_ID, ASH1.PX_STEP_ID, ASH1.PX_STEP_ARG, MAX(ASH1.SQL) SQL, MAX(ASH1.IS_MONITORED_SQL) IS_MONITORED_SQL, MAX(ASH1.PX_DFO_PAIR_TYPE) PX_DFO_PAIR_TYPE, MAX(ASH1.PX_DFO_PAIR_ID) PX_DFO_PAIR_ID, MIN(SAMPLE_DATE) MIN_SAMPLE_DATE, MAX(SAMPLE_DATE) MAX_SAMPLE_DATE, MAX(ASH1.IS_PX_SLAVE) IS_PX_SLAVE, MAX(ASH1.PX_DOP) PX_DOP, MIN(ASH1.PX_DOP) PX_MIN_DOP, MIN(ASH1.S AMPLE_DATE) ACTIVITY_START, MAX(ASH1.SAMPLE_DATE) ACTIVITY_END, COUNT(ASH1.SQL) ACTIVITY_COUNT, COUNT(CASE WHEN ASH1.ACTIVITY_TYPE = 'Cpu' AND ASH1.EVENT_NAME = 'in memory' THEN 1 ELSE NULL END) IMQ_COUNT, COUNT(CASE WHEN ASH1.ACTIVITY_TYPE != 'Other SQL Execution' AND ASH1.ACTIVITY_TYPE != 'Non SQL' AND ASH1.ACTIVITY_TYPE != 'Cpu' THEN 1 ELSE NULL END) WAIT_COUNT, COUNT(CASE WHEN ASH1.ACTIVITY_TYPE = 'Cpu' AND ASH1.EVENT_NAME IS NULL THEN 1 ELSE NULL END) CPU_COUNT, COUNT(CASE WHEN ASH1.ACTIVITY_TYPE = 'Other SQL Execution' AND ASH1.ACTIVITY_TYPE != 'Non SQL' THEN 1 ELSE NULL END) OTHER_SQL_COUNT, MAX(ASH1.TOP_LEVEL_SQL_ID) TOP_LEVEL_SQL_ID, MAX(ASH1.DBOP_NAME) DBOP_NAME FROM ( SELECT (CASE WHEN :B27 > 1 THEN (TRUNC(DELTA_TIME_SECONDS/ :B26 ) + 1) ELSE 1 END) BUCKET_NUM, ASH00.SQL, ASH00.SAMPLE_DATE, NVL2(DUP.C2, TRUNC(DELTA_TIME_SECONDS/ (:B25 )) + 1, NULL) GLOBAL_SAMPLE_ID, NVL2(DUP.C2, NULL, ASH00.IS_MONITORED_SQL) IS_MONITORED_SQL, NVL2(DUP.C2, NULL, ASH00.IN _INMEMORY_QUERY) IN_INMEMORY_QUERY, NVL2(DUP.C2, NULL, ASH00.WAIT_CLASS) WAIT_CLASS, NVL2(DUP.C2, NULL, ASH00.ACTIVITY_TYPE) ACTIVITY_TYPE, NVL2(DUP.C2, NULL, ASH00.OTHER_SQL_ACTIVITY_TYPE) OTHER_SQL_ACTIVITY_TYPE, NVL2(DUP.C2, NULL, ASH00.EVENT_NAME) EVENT_NAME, NVL2(DUP.C2, NULL, ASH00.TOP_LEVEL_SQL_ID) TOP_LEVEL_SQL_ID, NVL2(DUP.C2, NULL, ASH00.DBOP_NAME) DBOP_NAME, NVL2(DUP.C2, NULL, ASH00.IS_PX_SLAVE) IS_PX_SLAVE, NVL2(DUP.C2, NULL, ASH00.SESSION_ID) SESSION_ID, NVL2(DUP.C2, NULL, ASH00.PLSQL_OBJECT_ID) PLSQL_OBJECT_ID, NVL2(DUP.C2, NULL, ASH00.PLSQL_SUBPROGRAM_ID) PLSQL_SUBPROGRAM_ID, NVL2(DUP.C2, NULL, ASH00.PLAN_LINE_ID) PLAN_LINE_ID, NVL2(DUP.C2, NULL, ASH00.PX_STEP_ID) PX_STEP_ID, NVL2(DUP.C2, NULL, ASH00.PX_STEP_ARG) PX_STEP_ARG, NVL2(DUP.C2, NULL, ASH00.PX_DFO_PAIR_ID) PX_DFO_PAIR_ID, NVL2(DUP.C2, NULL, ASH00.PX_DFO_PAIR_TYPE) PX_DFO_PAIR_TYPE, NVL2(DUP.C2, NULL, ASH00.PX_DOP) PX_DOP FROM (SELECT 1 C1, NULL C2 FROM V$DUAL UNI ON ALL SELECT 1 C1, 1 C2 FROM V$DUAL) DUP, (SELECT /*+ no_merge */ 1 C1, ASH000.SAMPLE_DATE, ASH000.IS_MONITORED_SQL, ((EXTRACT(SECOND FROM(DELTA_TIME)) + EXTRACT(MINUTE FROM(DELTA_TIME)) * 60 + EXTRACT(HOUR FROM(DELTA_TIME)) * 3600 + EXTRACT(DAY FROM(DELTA_TIME)) * 86400)) DELTA_TIME_SECONDS, ASH000.IN_INMEMORY_QUERY, ASH000.WAIT_CLASS, DECODE(ASH000.IS_MONITORED_SQL, 1, NVL(ASH000.WAIT_CLASS, 'Cpu'), DECODE(SQL_ID, NULL, 'Non SQL', 'Other SQL Execution')) ACTIVITY_TYPE, NVL(ASH000.WAIT_CLASS, 'Cpu') OTHER_SQL_ACTIVITY_TYPE, DECODE(:B24 , 1, CASE WHEN ASH000.IS_MONITORED_SQL = 1 THEN NVL(ASH000.EVENT, DECODE(ASH000.IN_INMEMORY_QUERY, 'Y', 'in memory', ASH000.EVENT)) WHEN ASH000.SQL_ID IS NOT NULL THEN 'sql_id: ' || ASH000.SQL_ID WHEN ASH000.CALL_NAME IS NOT NULL THEN 'call: ' || ASH000.CALL_NAME ELSE 'anonymous: '|| ASH000.EVENT END, NULL) EVENT_NAME, CASE WHEN ASH000.IS_MONITORED_SQL = 1 AND (NVL(ASH000.SQL_ID, :B9 ) = :B9 OR NVL(ASH000.DBOP_NAME, :B6 ) = :B6 ) THEN 'this' WHEN ASH000.IS_PX_SLAVE = 1 AND ASH000.SQL_ID IS NOT NULL AND ASH000.TOP_LEVEL_SQL_ID != ASH000.SQL_ID THEN ASH000.TOP_LEVEL_SQL_ID WHEN ASH000.SQL_ID IS NOT NULL THEN ASH000.SQL_ID ELSE NVL(CALL_NAME, 'anonymous') END SQL, CASE WHEN ASH000.IS_PX_SLAVE = 0 AND (ASH000.SQL_ID IS NULL OR ASH000.TOP_LEVEL_SQL_ID != ASH000.SQL_ID) THEN ASH000.TOP_LEVEL_SQL_ID END TOP_LEVEL_SQL_ID, ASH000.DBOP_NAME, ASH000.IS_PX_SLAVE, CASE WHEN ASH000.IS_PX_SLAVE = 1 AND ASH000.IS_MONITORED_SQL != 1 THEN 65536 ELSE ASH000.SESSION_ID END SESSION_ID, DECODE(ASH000.IS_MONITORED_SQL, 1, ASH000.PLSQL_OBJECT_ID, NULL) PLSQL_OBJECT_ID, DECODE(ASH000.IS_MONITORED_SQL, 1, ASH000.PLSQL_SUBPROGRAM_ID, NULL) PLSQL_SUBPROGRAM_ID, DECODE(ASH000.IS_MONITORED_SQL, 1, ASH000.SQL_PLAN_LINE_ID, NULL) PLAN_LINE_ID, DECODE(ASH000.IS_MONITORED_SQL, 1, ASH000.PX_STEP_ID, NULL) PX_STEP_ID, CASE WHEN ASH000.IS_PX_SLAVE = 1 AND ASH000.IS_MONITORED_SQL = 1 AND ASH000.PX_STEP_ID IN (1, 2, 3) THEN ASH000.PX_STEP_ARG ELSE NULL END PX_DFO_PAIR_ID, CASE WHEN ASH000.IS_PX_SLAVE = 0 OR ASH000.IS_MONITORED_SQL != 1 THEN NULL WHEN ASH000.PX_STEP_ID = 1 THEN 1 WHEN ASH000.PX_STEP_ID IN (2, 3) THEN 0 ELSE NULL END PX_DFO_PAIR_TYPE, DECODE(ASH000.IS_MONITORED_SQL, 1, ASH000.PX_STEP_ARG, NULL) PX_STEP_ARG, DECODE(ASH000.IS_MONITORED_SQL, 1, ASH000.PX_DOP, NULL) PX_DOP FROM (SELECT ASH0.*, CASE WHEN ASH0.IS_TARGET_SQL = 1 OR (ASH0.IS_PX_SLAVE = 1 AND ((NVL(ASH0.TOP_LEVEL_SQL_ID, ASH0.SQL_ID) IS NOT NULL AND NVL(ASH0.TOP_LEVEL_SQL_ID, ASH0.SQL_ID) = :B9 ) OR (SQL_ID IS NULL AND :B23 = 'Y'))) THEN 1 ELSE 0 END IS_MONITORED_SQL FROM (SELECT (CASE WHEN (ASH.SQL_ID = :B9 AND ASH.SQL_EXEC_ID = :B7 AND ASH.SQL_EXEC_START = :B8 ) THEN 1 ELSE 0 END) IS_TARGET_SQL, ASH.SQL_ID, ASH.SQL_PLAN_LINE_ID, ASH.PLSQL_OBJECT_ID, ASH.PLSQL_SUBPROGRAM_ID, ASH.TOP_LEVEL_SQL_ID, DECODE(ASH.SQL_ID, NULL, ASH.TOP_LEVEL_CALL_NAME, NULL) CALL_NAME, ASH.EVENT, ASH.IN_INMEMORY_QUERY, ASH.WA IT_CLASS, ASH.SQL_EXEC_ID, ASH.SQL_EXEC_START, ASH.DBOP_NAME, ASH.DBOP_EXEC_ID, ASH.SESSION_ID, ASH.SESSION_SERIAL#, CASE WHEN QC_INSTANCE_ID IS NOT NULL AND (ASH.SESSION_ID != ASH.QC_SESSION_ID OR ASH.SESSION_SERIAL# != ASH.QC_SESSION_SERIAL# OR USERENV('instance') != ASH.QC_INSTANCE_ID) THEN 1 ELSE 0 END IS_PX_SLAVE, SAMPLE_TIME - CAST(:B20 AS TIMESTAMP) DELTA_TIME, CAST(FROM_TZ(ASH.SAMPLE_TIME, DBTIMEZONE) AS DATE) SAMPLE_DATE, TRUNC(MOD(PX_FLAGS/65536, 32)) PX_STEP_ID, MOD(PX_FLAGS, 65536) PX_STEP_ARG, TRUNC(PX_FLAGS/2097152) PX_DOP FROM V$ALL_ACTIVE_SESSION_HISTORY ASH WHERE ((ASH.SESSION_ID = :B19 AND ASH.SESSION_SERIAL# = :B18 AND USERENV('INSTANCE') = :B17 ) OR (ASH.QC_SESSION_ID IS NOT NULL AND ASH.QC_SESSION_ID = :B19 AND ASH.QC_SESSION_SERIAL# = :B18 AND ASH.QC_INSTANCE_ID = :B17 )) AND SAMPLE_TIME BETWEEN :B16 AND :B15 ) ASH0 WHERE (ASH0.SAMPLE_DATE BETWEEN :B20 + 1/24/3600 AND :B22 - 1/24/3600 OR (ASH0.SQL_ID = :B9 AND ASH0.SQL_EXEC_START = :B8 AND ASH0.SQL_ EXEC_ID = :B7 ) OR (ASH0.DBOP_NAME = :B6 AND ASH0.DBOP_EXEC_ID = :B5 )) AND (:B21 IS NULL OR ASH0.SQL_PLAN_LINE_ID = :B21 ) AND (ASH0.IS_PX_SLAVE = 0 OR ASH0.SQL_ID IS NOT NULL)) ASH000 ) ASH00 WHERE ASH00.C1 = DUP.C1) ASH1 WHERE ASH1.BUCKET_NUM > 0 AND ASH1.BUCKET_NUM <= :B27 GROUP BY USERENV('INSTANCE'), ASH1.GLOBAL_SAMPLE_ID, ASH1.BUCKET_NUM, ASH1.SESSION_ID, ASH1.PLAN_LINE_ID, ASH1.PLSQL_OBJECT_ID, ASH1.PLSQL_SUBPROGRAM_ID, ASH1.ACTIVITY_TYPE, ASH1.EVENT_NAME, ASH1.OTHER_SQL_ACTIVITY_TYPE, ASH1.PX_STEP_ID, ASH1.PX_STEP_ARG) ASH2)))) GVTF WHERE GVTF.INST_ID BETWEEN :B11 AND :B10 ) ASH WHERE ASH.GLOBAL_SAMPLE_ID IS NULL AND ASH.SESSION_ID = MO.SID(+) AND ASH.INST_ID = MO.INST_ID(+)) AD0), RESPONSE_TIME_DATA AS (SELECT ADH.BUCKET_NUM, ADH.SQL_ROWNUM, ADH.SQL, ADH.TOP_LEVEL_SQL_ID, ADH.DBOP_NAME, ADH.PX_ID, DECODE( ADH.PX_STEP_ID, NULL, NULL, 0, NULL, 1, 'PX Server(s) - Executing Parent DFO', 2, 'PX Server(s) - Executing Child DFO', 3, 'PX Server(s) - Sampling Child DFO', 4, 'PX Server(s) - Joining Group', 5, 'QC - Scheduling Child DFO', 6, 'QC - Scheduling Parent DFO', 7, 'QC - Initializing Objects', 8, 'QC - Flushing Objects', 9, 'QC - Allocating Slaves', 10, 'QC - Initializing Granules', 11, 'PX Server(s) - Parsing Cursor', 12, 'PX Server(s) - Executing Cursor', 13, 'PX Server(s) - Preparing Transaction', 14, 'PX Server(s) - Joining Transaction', 15, 'PX Server(s) - Load Commit', 16, 'PX Server(s) - Aborting Transaction', 17, 'QC - Executing Child DFO', 18, 'QC - Executing Parent DFO', 'PX Step - ' || PX_STEP_ID) PX_STEP_ID, ADH.PX_STEP_ARG, ADH.PX_DFO_PAIR_ID, ADH.PX_DOP, ADH.PX_MIN_DOP, ADH.DFO_MOST_ACTIVE_IID, ADH.DFO_MOST_ACTIVE_SID, ADH.DFO_MOST_ACTIVE_COUNT, ADH.ACTIVITY_START, ADH.ACTIVITY_END, ADH.ACTIVITY_TYPE, ADH.OTHER_SQL_ACTIVITY_TYPE, ADH.EVENT_NAME, ADH.PLAN_LINE_ID, ADH.PLSQL_OBJECT_ID, ADH.PLSQL_SUBPROGRAM_ID, CASE WHEN PLSQL_ROWNUM = 1 AND ADH.PLSQL_OBJECT_ID IS NOT NULL THEN NVL((SELECT P.OWNER || '.' || P.OBJECT_NAME || DECODE(P.PROCEDURE_NAME, NULL, '', '.' || P.PROCEDURE_NAME) FROM ALL_PROCEDURES P WHERE P.OBJECT_ID = ADH.PLSQL_OBJECT_ID AND P.SUBPROGRAM_ID = ADH.PLSQL_SUBPROGRAM_ID), 'Unavailable') ELSE NULL END PLSQL_NAME, ADH.ACTIVITY_COUNT, ADH.BUCKET_ACTIVE_SECONDS, ADH.BUCKET_IDLE_SECONDS, (CASE WHEN ADH.IS_MONITORED_SQL = 0 THEN ADH.ACTIVE_SECONDS WHEN ADH.PX_DFO_PAIR_ID IS NOT NULL AND ADH.DFO_PAIR_CPU_HEIGHT >= :B34 THEN DECODE(ADH.ACTIVITY_TYPE, 'Cpu', (ADH.DFO_PAIR_ACTIVITY_HEIGHT / ADH.DFO_PAIR_CPU_HEIGHT) * ADH.DFO_PAIR_TOTAL_SECONDS, 0) WHEN ADH.PX_DFO_PAIR_ID IS NOT NULL AND ADH.PX_DOP > :B34 THEN (ADH.DFO_PAIR_TOTAL_SECONDS * DECODE(ADH.ACTIVITY_TYPE, 'Cpu', ADH.DFO_PAIR_ACTIVITY_HEIGHT, (ADH.DFO_PAIR_ACTIVITY_HEIGHT * (:B34 - ADH.DFO_PAIR_CPU_HEIGHT)) / (ADH.DFO_PAIR_TOTAL_HEIGHT_ADJ - ADH.DFO_PAIR_CPU_HEIGHT))) / :B34 WHEN ADH.PX_DFO_PAIR_ID IS NOT NULL THEN (ADH.DFO_PAIR_TOTAL_SECONDS * ADH.DFO_PAIR_ACTI VITY_HEIGHT) / ADH.PX_DOP ELSE ADH.ACTIVE_SECONDS END) RESP_TIME, (CASE WHEN ADH.PX_DFO_PAIR_ID IS NOT NULL AND ADH.DFO_PAIR_IDLE_HEIGHT > 0 AND ADH.PX_DOP > :B34 THEN (ADH.DFO_PAIR_TOTAL_SECONDS * (ADH.DFO_PAIR_IDLE_HEIGHT * (:B34 - ADH.DFO_PAIR_CPU_HEIGHT)) / (ADH.DFO_PAIR_TOTAL_HEIGHT_ADJ - ADH.DFO_PAIR_CPU_HEIGHT)) / :B34 WHEN ADH.PX_DFO_PAIR_ID IS NOT NULL AND ADH.DFO_PAIR_IDLE_HEIGHT > 0 THEN (ADH.DFO_PAIR_TOTAL_SECONDS * ADH.DFO_PAIR_IDLE_HEIGHT) / ADH.PX_DOP ELSE 0 END) DFO_PAIR_IDLE_RESP_TIME, ADH.DFO_PAIR_ACTIVITY_HEIGHT, ADH.DFO_PAIR_CPU_HEIGHT, ADH.DFO_PAIR_IDLE_HEIGHT, ADH.DFO_PAIR_TOTAL_HEIGHT, ADH.DFO_PAIR_CPU_ACTIVITY, ADH.DFO_PAIR_TOTAL_SECONDS FROM (SELECT ADH_1.*, (ROW_NUMBER() OVER(PARTITION BY ADH_1.PLSQL_OBJECT_ID, ADH_1.PLSQL_SUBPROGRAM_ID ORDER BY ADH_1.BUCKET_NUM, ADH_1.ACTIVITY_TYPE, ADH_1.EVENT_NAME)) PLSQL_ROWNUM, (ROW_NUMBER() OVER(PARTITION BY ADH_1.SQL ORDER BY ADH_1.BUCKET_NUM, ADH_1.ACTIVITY_TYPE, ADH_1.EVENT_NAME)) SQL_ROWNUM, ( CASE WHEN ADH_1.PX_DFO_PAIR_ID IS NOT NULL AND (ADH_1.DFO_PAIR_TOTAL_HEIGHT < ADH_1.PX_DOP) AND (ADH_1.DFO_PAIR_CPU_HEIGHT < :B34 ) THEN ADH_1.PX_DOP - ADH_1.DFO_PAIR_TOTAL_HEIGHT ELSE 0 END) DFO_PAIR_IDLE_HEIGHT, (CASE WHEN ADH_1.PX_DFO_PAIR_ID IS NOT NULL AND (ADH_1.DFO_PAIR_TOTAL_HEIGHT < ADH_1.PX_DOP) AND (ADH_1.DFO_PAIR_CPU_HEIGHT < :B34 ) THEN ADH_1.PX_DOP ELSE ADH_1.DFO_PAIR_TOTAL_HEIGHT END) DFO_PAIR_TOTAL_HEIGHT_ADJ FROM (SELECT ADH_0.*, (CASE WHEN ADH_0.DFO_PAIR_TOTAL_SECONDS > 0 THEN (ADH_0.DFO_PAIR_TOTAL_ACTIVITY * :B25 ) / ADH_0.DFO_PAIR_TOTAL_SECONDS ELSE 0 END) DFO_PAIR_TOTAL_HEIGHT, (CASE WHEN ADH_0.DFO_PAIR_TOTAL_SECONDS > 0 THEN (ADH_0.DFO_PAIR_CPU_ACTIVITY * :B25 ) / ADH_0.DFO_PAIR_TOTAL_SECONDS ELSE 0 END) DFO_PAIR_CPU_HEIGHT, (CASE WHEN ADH_0.PX_DFO_PAIR_ID IS NOT NULL AND ADH_0.DFO_PAIR_TOTAL_SECONDS > 0 THEN (ADH_0.ACTIVITY_COUNT * :B25 ) / ADH_0.DFO_PAIR_TOTAL_SECONDS ELSE 0 END) DFO_PAIR_ACTIVITY_HEIGHT FROM (SELECT AD3.*, (SUM(DECODE( AD3.PX_DFO_PAIR_ID, NULL, 0, AD3.ACTIVE_SECONDS)) OVER(PARTITION BY DECODE(AD3.PX_DFO_PAIR_ID, NULL, NULL, AD3.BUCKET_NUM), DECODE(AD3.PX_DFO_PAIR_ID, NULL, NULL, AD3.PX_STEP_ARG))) DFO_PAIR_TOTAL_SECONDS FROM (SELECT AD2.*, CASE WHEN AD2.IS_MONITORED_SQL = 0 THEN SQL_BUCKET_DISTINCT_SAMPLES * :B25 WHEN AD2.PX_ID IS NULL THEN AD2.ACTIVITY_COUNT * :B25 WHEN AD2.BUCKET_PARALLEL_MON_ACTIVITY > 0 THEN (AD2.ACTIVITY_COUNT * AD2.BUCKET_PARALLEL_MON_SECONDS) / AD2.BUCKET_PARALLEL_MON_ACTIVITY ELSE 0 END ACTIVE_SECONDS, CASE WHEN AD2.BUCKET_INTERVAL > BUCKET_ACTIVE_SECONDS THEN AD2.BUCKET_INTERVAL - BUCKET_ACTIVE_SECONDS ELSE 0 END BUCKET_IDLE_SECONDS FROM (SELECT AD1.*, (AD1.BUCKET_SERIAL_MON_ACTIVITY * :B25 ) BUCKET_SERIAL_MON_SECONDS, (AD1.BUCKET_TOTAL_MON_ACTIVITY - AD1.BUCKET_SERIAL_MON_ACTIVITY) BUCKET_PARALLEL_MON_ACTIVITY, (AD1.BUCKET_ACTIVE_SECONDS - (AD1.BUCKET_OTHER_ACTIVITY + AD1.BUCKET_SERIAL_MON_ACTIVITY) * :B25 ) BUCKET_PARALLEL_MON_SECONDS, (AD1.BUCKET_OTH ER_ACTIVITY * :B25 ) BUCKET_OTHER_SECONDS, DECODE(AD1.PX_DFO_PAIR_ID, NULL, NULL, SUM(AD1.ACTIVITY_COUNT) OVER(PARTITION BY DECODE(AD1.PX_DFO_PAIR_ID, NULL, NULL, AD1.BUCKET_NUM), AD1.PX_DFO_PAIR_ID)) DFO_PAIR_TOTAL_ACTIVITY, DECODE(AD1.PX_DFO_PAIR_ID, NULL, NULL, SUM(DECODE(AD1.ACTIVITY_TYPE, 'Cpu', AD1.ACTIVITY_COUNT, 0)) OVER(PARTITION BY DECODE(AD1.PX_DFO_PAIR_ID, NULL, NULL, AD1.BUCKET_NUM), AD1.PX_DFO_PAIR_ID)) DFO_PAIR_CPU_ACTIVITY FROM (SELECT AD01.*, NVL((SUM(DECODE(AD01.IS_MONITORED_SQL, 1, AD01.ACTIVITY_COUNT, NULL)) OVER(PARTITION BY AD01.BUCKET_NUM)), 0) BUCKET_TOTAL_MON_ACTIVITY, (NVL(SUM(CASE WHEN AD01.IS_MONITORED_SQL = 1 AND AD01.PX_ID IS NULL THEN AD01.ACTIVITY_COUNT ELSE NULL END) OVER(PARTITION BY AD01.BUCKET_NUM), 0)) BUCKET_SERIAL_MON_ACTIVITY, (NVL((SUM(DECODE(AD01.IS_MONITORED_SQL, 0, AD01.SQL_BUCKET_DISTINCT_SAMPLES, NULL)) OVER(PARTITION BY AD01.BUCKET_NUM)), 0)) BUCKET_OTHER_ACTIVITY, (NVL(AD01.BUCKET_DISTINCT_SAMPLES, 0) * :B 25 ) BUCKET_ACTIVE_SECONDS, DECODE(AD01.BUCKET_NUM, :B27 , MOD(:B32 , :B26 ), :B26 ) BUCKET_INTERVAL FROM (SELECT AD0.ACTIVITY_BUCKET_NUM BUCKET_NUM, AD0.PX_ID, AD0.ACTIVITY_TYPE, AD0.OTHER_SQL_ACTIVITY_TYPE, AD0.EVENT_NAME, AD0.PLAN_LINE_ID, AD0.PX_STEP_ID, AD0.PX_STEP_ARG, AD0.PLSQL_OBJECT_ID, AD0.PLSQL_SUBPROGRAM_ID, SUM(AD0.ACTIVITY_COUNT) ACTIVITY_COUNT, MIN(AD0.ACTIVITY_START) ACTIVITY_START, MAX(AD0.ACTIVITY_END) ACTIVITY_END, MAX(AD0.IS_MONITORED_SQL) IS_MONITORED_SQL, MAX(AD0.SQL) SQL, MAX(AD0.TOP_LEVEL_SQL_ID) TOP_LEVEL_SQL_ID, MAX(AD0.DBOP_NAME) DBOP_NAME, MAX(DECODE(AD0.DFO_MOST_ACTIVE_COUNT, NULL, NULL, AD0.DFO_MOST_ACTIVE_IID)) DFO_MOST_ACTIVE_IID, MAX(DECODE(AD0.DFO_MOST_ACTIVE_COUNT, NULL, NULL, AD0.DFO_MOST_ACTIVE_SID)) DFO_MOST_ACTIVE_SID, SUM(AD0.DFO_MOST_ACTIVE_COUNT) DFO_MOST_ACTIVE_COUNT, MAX(PX_DFO_PAIR_TYPE) PX_DFO_PAIR_TYPE, MAX(PX_DFO_PAIR_ID) PX_DFO_PAIR_ID, MAX(AD0.PX_DOP) PX_DOP, MIN(AD0.PX_MIN_DOP) PX_MIN_DOP, MAX(AD0.BUC KET_DISTINCT_SAMPLES) BUCKET_DISTINCT_SAMPLES, MAX(AD0.SQL_BUCKET_DISTINCT_SAMPLES) SQL_BUCKET_DISTINCT_SAMPLES FROM (SELECT AD00.*, (CASE WHEN AD00.IS_MONITORED_SQL = 1 AND (AD00.SESSION_ID != :B19 OR AD00.INST_ID != :B17 ) THEN AD00.PX_SERVER_GROUP END) PX_ID FROM ASH_DATA AD00 WHERE :B33 = 1 ) AD0 GROUP BY AD0.ACTIVITY_BUCKET_NUM, AD0.PX_ID, AD0.ACTIVITY_TYPE, AD0.EVENT_NAME, AD0.OTHER_SQL_ACTIVITY_TYPE, AD0.PLAN_LINE_ID, AD0.PLSQL_OBJECT_ID, AD0.PLSQL_SUBPROGRAM_ID, AD0.PX_STEP_ID, AD0.PX_STEP_ARG ) AD01) AD1) AD2) AD3) ADH_0) ADH_1) ADH) SELECT /*+ no_monitor no_xml_query_rewrite opt_param('_gby_hash_aggregation_enabled', 'false') */ XMLELEMENT( "sql_monitor_report", XMLATTRIBUTES(:B59 AS "version", TO_CHAR(:B58 , :B12 ) AS "sysdate"), XMLELEMENT( "report_parameters", NULL, CASE WHEN :B57 IS NOT NULL THEN XMLFOREST( :B57 AS "dbop_name", :B56 AS "dbop_exec_id") ELSE XMLFOREST( :B55 AS "sql_id", :B54 AS "sql_exec_id") END, XMLFOREST( :B53 AS "session_id", :B52 AS "session_serial", TO_CHAR(:B51 , :B12 ) AS "sql_exec_start", :B27 AS "bucket_count", TO_CHAR(:B50 , :B12 ) AS "interval_start", TO_CHAR(:B22 , :B12 ) AS "interval_end", DECODE(:B49 , 'Y', :B48 , NULL) AS "auto_refresh", :B47 AS "base_path"), CASE WHEN :B23 = 'Y' AND :B46 IS NOT NULL AND NOT (:B4 = 1 AND :B3 IS NULL AND :B2 IS NULL AND :B1 IS NULL) THEN XMLELEMENT( "parallel_filter", NULL, XMLFOREST( DECODE(:B4 , 1, 'yes', 'no') AS "qc", :B3 AS "server_group", :B2 AS "server_set", :B1 AS "server_number")) ELSE NULL END), CASE WHEN :B14 = 1 THEN XMLELEMENT( "derived_parameters_testing", NULL, XMLFOREST(:B11 AS "instance_id_low", :B10 AS "instance_id_high", :B26 AS "bucket_interval_sec", :B32 AS "interval_second", :B27 AS "bucket_calc_count", :B45 AS "bucket_calc_max_count", :B13 AS "sel_sqltext")) ELSE NULL END, (SELECT XMLCONCAT( CASE WHEN :B46 IS NULL AND :B67 IS NULL THEN XMLELEMENT( "target", XMLATTRIBUTES(:B17 AS "instance_id", :B19 AS "session_id", :B18 AS "session_serial", NVL2(:B6 , NULL, :B9 ) AS "sql_id", NVL2(:B6 , NULL, TO_CHAR(:B8 , :B12 )) AS "sql_exec_start", NVL2(:B6 , NULL, :B7 ) AS "sql_exec_id", NVL2(:B6 , :B6 , NULL) AS "dbop_name", NVL2(:B6 , :B5 , NULL) AS "dbop_exec_id", NVL2(:B6 , TO_CHAR(:B8 , :B12 ), NULL) AS "dbop_exec_start", NVL2(:B6 , NULL, MAX_PLAN_HASH_VALUE) AS "sql_plan_hash", NVL2(:B6 , NULL, MAX_FULL_PLAN_HASH_VALUE) AS "sql_full_plan_hash", MAGG.DB_UNIQUE_NAME AS "db_unique_name", MAGG.PLATFORM_NAME AS "db_platform_name", MAGG .HOST_NAME AS "report_host_name"), NVL2(SUM_SERVERS_REQUESTED, XMLELEMENT( "servers_requested", NULL, SUM_SERVERS_REQUESTED), NULL), NVL2(SUM_SERVERS_ALLOCATED, XMLELEMENT( "servers_allocated", NULL, SUM_SERVERS_ALLOCATED), NULL), NVL2(MAX_USERID, XMLELEMENT( "user_id", NULL, MAX_USERID), NULL), NVL2(MAX_USERNAME, XMLELEMENT( "user", NULL, MAX_USERNAME), NULL), NVL2(MAX_CON_ID, XMLELEMENT( "con_id", NULL, MAX_CON_ID), NULL), NVL2(MAX_CON_NAME, XMLELEMENT( "con_name", NULL, MAX_CON_NAME), NULL), NVL2(MAX_PROGRAM, XMLELEMENT( "program", NULL, MAX_PROGRAM), NULL), NVL2(MAX_MODULE, XMLELEMENT( "module", NULL, MAX_MODULE), NULL), NVL2(MAX_ACTION, XMLELEMENT( "action", NULL, MAX_ACTION), NULL), NVL2(MAX_SERVICE_NAME, XMLELEMENT( "service", NULL, MAX_SERVICE_NAME), NULL), NVL2(MAX_CLIENT_ID, XMLELEMENT( "client_id", NULL, MAX_CLIENT_ID), NULL), NVL2(MAX_CLIENT_INFO, XMLELEMENT( "client_info", NULL, MAX_CLIENT_INFO), NULL), NVL2(MAX_PL_ENTRY_OID, XMLELEMENT( "plsql_entry_object_id", NULL, MAX_PL_ENTRY_OID), NULL), NVL2(MAX_PL_ENTRY_PROGID, XMLELEMENT( "plsql_entry_subprogram_id", NULL, MAX_PL_ENTRY_PROGID), NULL), NVL2(MAX_PL_ENTRY_NAME, XMLELEMENT( "plsql_entry_name", NULL, MAX_PL_ENTRY_NAME), NULL), NVL2(MAX_PL_OID, XMLELEMENT( "plsql_object_id", NULL, MAX_PL_OID), NULL), NVL2(MAX_PL_PROGID, XMLELEMENT( "plsql_subprogram_id", NULL, MAX_PL_PROGID), NULL), NVL2(MAX_PL_NAME, XMLELEMENT( "plsql_name", NULL, MAX_PL_NAME), NULL), CASE WHEN (:B13 = 0 OR :B6 IS NOT NULL) THEN NULL ELSE XMLELEMENT( "sql_fulltext", XMLATTRIBUTES( NVL2(:B65 , 'Y', :B66 ) AS "is_full"), NVL2(:B65 , :B65 , SQLMON_TEXT)) END, XMLELEMENT( "status", NULL, MAX_STATUS), XMLELEMENT( "ref resh_count", NULL, SUM_REFRESH_COUNT), XMLELEMENT( "first_refresh_time", NULL, TO_CHAR(MIN_FIRST_REFRESH_TIME, :B12 )), XMLELEMENT( "last_refresh_time", NULL, TO_CHAR(:B58 , :B12 )), XMLELEMENT( "duration", NULL, GREATEST(:B64 , LEAST(MAX_ELAPSED_TIME/1000000, 1), CEIL(MAX_QUEUING_TIME/1000000))), DECODE(MAX_RM_INFO, '00/00/0000 00:00:00', NULL, XMLTYPE(SUBSTR(MAX_RM_INFO, 20))), CASE WHEN (:B62 = 'Y') THEN XMLELEMENT( "adaptive_plan", XMLATTRIBUTES(:B63 AS "is_final"), :B62 ) ELSE NULL END ) END, XMLELEMENT( "stats", XMLATTRIBUTES('monitor' AS "type"), DECODE(NVL(SUM_ELAPSED_TIME, 0), 0, NULL, XMLELEMENT( "stat", XMLATTRIBUTES('elapsed_time' AS "name"), SUM_ELAPSED_TIME)), DECODE(NVL(MAX_QUEUING_TIME, 0), 0, NULL, XMLELEMENT( "stat", XMLATTRIBUTES('queuing_time' AS "name"), MAX_QUEUING_TIME)), DECODE(NVL(SUM_CPU_TIME, 0), 0, NUL L, XMLELEMENT( "stat", XMLATTRIBUTES('cpu_time' AS "name"), SUM_CPU_TIME)), DECODE(NVL(SUM_USER_IO_WAIT_TIME, 0), 0, NULL, XMLELEMENT( "stat", XMLATTRIBUTES('user_io_wait_time' AS "name"), SUM_USER_IO_WAIT_TIME)), DECODE(NVL(SUM_APPLICATION_WAIT_TIME, 0), 0, NULL, XMLELEMENT( "stat", XMLATTRIBUTES('application_wait_time' AS "name"), SUM_APPLICATION_WAIT_TIME)), DECODE(NVL(SUM_CONCURRENCY_WAIT_TIME, 0), 0, NULL, XMLELEMENT( "stat", XMLATTRIBUTES('concurrency_wait_time' AS "name"), SUM_CONCURRENCY_WAIT_TIME)), DECODE(NVL(SUM_CLUSTER_WAIT_TIME, 0), 0, NULL, XMLELEMENT( "stat", XMLATTRIBUTES('cluster_wait_time' AS "name"), SUM_CLUSTER_WAIT_TIME)), DECODE(NVL(SUM_PLSQL_EXEC_TIME, 0), 0, NULL, XMLELEMENT( "stat", XMLATTRIBUTES('plsql_exec_time' AS "name"), SUM_PLSQL_EXEC_TIME)), DECODE(NVL(SUM_JAVA_EXEC_TIME, 0), 0, NULL, XMLELEMEN T( "stat", XMLATTRIBUTES('java_exec_time' AS "name"), SUM_JAVA_EXEC_TIME)), DECODE(NVL(SUM_OTHER_WAIT_TIME, 0), 0, NULL, XMLELEMENT( "stat", XMLATTRIBUTES('other_wait_time' AS "name"), SUM_OTHER_WAIT_TIME)), DECODE(NVL(SUM_FETCHES, 0), 0, NULL, XMLELEMENT( "stat", XMLATTRIBUTES('user_fetch_count' AS "name"), SUM_FETCHES)), DECODE(NVL(SUM_BUFFER_GETS, 0), 0, NULL, XMLELEMENT( "stat", XMLATTRIBUTES('buffer_gets' AS "name"), SUM_BUFFER_GETS)), DECODE(NVL(SUM_READ_REQS, 0), 0, NULL, XMLELEMENT( "stat", XMLATTRIBUTES('disk_reads' AS "name"), SUM_READ_REQS)), DECODE(NVL(SUM_WRITE_REQS, 0), 0, NULL, XMLELEMENT( "stat", XMLATTRIBUTES('direct_writes' AS "name"), SUM_WRITE_REQS)), DECODE(NVL(SUM_READ_REQS, 0), 0, NULL, XMLELEMENT( "stat", XMLATTRIBUTES('read_reqs' AS "name"), SUM_READ_REQS)), DECODE(NVL(SUM_READ_B YTES, 0), 0, NULL, XMLELEMENT( "stat", XMLATTRIBUTES('read_bytes' AS "name"), SUM_READ_BYTES)), DECODE(NVL(SUM_WRITE_REQS, 0), 0, NULL, XMLELEMENT( "stat", XMLATTRIBUTES('write_reqs' AS "name"), SUM_WRITE_REQS)), DECODE(NVL(SUM_WRITE_BYTES, 0), 0, NULL, XMLELEMENT( "stat", XMLATTRIBUTES('write_bytes' AS "name"), SUM_WRITE_BYTES)), DECODE(NVL(SUM_IO_UNC_BYTES, 0), 0, NULL, XMLELEMENT( "stat", XMLATTRIBUTES('unc_bytes' AS "name"), SUM_IO_UNC_BYTES)), DECODE(NVL(SUM_IO_ELIG_BYTES, 0), 0, NULL, XMLELEMENT( "stat", XMLATTRIBUTES('elig_bytes' AS "name"), SUM_IO_ELIG_BYTES)), DECODE(NVL(SUM_IO_RET_BYTES, 0), 0, NULL, XMLELEMENT( "stat", XMLATTRIBUTES('ret_bytes' AS "name"), SUM_IO_RET_BYTES)), CASE WHEN SUM_IO_INTER_BYTES IS NULL OR SUM_IO_BYTES = 0 OR SUM_IO_INTER_BYTES = SUM_IO_BYTES OR NVL(SUM_IO_ELIG_BYTES, 0) = 0 THEN NULL ELSE XMLELEMENT( "stat", XMLATTRIBUTES('cell_offload_efficiency' AS "name"), ROUND(SUM_IO_BYTES / DECODE(SUM_IO_INTER_BYTES, 0, 1, SUM_IO_INTER_BYTES), 2)) END, CASE WHEN NVL(SUM_IO_ELIG_BYTES, 0) = 0 OR SUM_IO_BYTES = 0 OR SUM_IO_UNC_BYTES = SUM_IO_RET_BYTES THEN NULL ELSE XMLELEMENT( "stat", XMLATTRIBUTES('cell_offload_efficiency2' AS "name"), GREATEST(0, ROUND(100* (GREATEST(SUM_IO_UNC_BYTES, SUM_IO_ELIG_BYTES) - SUM_IO_RET_BYTES) / SUM_IO_ELIG_BYTES, 2))) END), CASE WHEN :B33 = 1 THEN (SELECT CASE WHEN SUM(ACTIVITY_COUNT) > 0 THEN XMLELEMENT( "activity_sampled", XMLAGG( XMLELEMENT( "activity", XMLATTRIBUTES( AD1.ACTIVITY_TYPE AS "class", AD1.EVENT_NAME AS "event"), AD1.ACTIVITY_COUNT) ORDER BY AD1.ACTIVITY_TYPE, AD1.EVENT_NAME)) ELSE NULL END FROM (SELECT AD0.ACTIVITY_TYPE, AD0.EVENT_NAME, SUM(AD0.ACTIVITY_COUNT) ACTIVITY_COUNT FROM ASH_DATA AD0 GROUP BY AD0.ACTIVITY_TYPE, AD0.EVENT _NAME) AD1) ELSE NULL END, NVL2(MAX_ERROR_NUMBER, XMLELEMENT( "error", XMLATTRIBUTES(MAX_ERROR_NUMBER AS "number", MAX_ERROR_FACILITY AS "facility"), MAX_ERROR_MESSAGE), NULL), CASE WHEN :B61 = 1 AND MAGG.QC_HAS_BINDS_XML = 'Y' THEN (SELECT XMLTYPE(BINDS_XML) FROM GV$ALL_SQL_MONITOR MON WHERE MON.INST_ID = :B17 AND MON.KEY = MAGG.MAX_KEY AND MON.SID = MAGG.MAX_SESSION_ID AND MON.SQL_ID = :B9 AND MON.SQL_EXEC_START = :B8 AND MON.SQL_EXEC_ID = :B7 AND ROWNUM = 1) ELSE NULL END, CASE WHEN :B60 = 1 AND MAGG.QC_HAS_OTHER_XML = 'Y' THEN (SELECT XMLTYPE(OTHER_XML) FROM GV$ALL_SQL_MONITOR MON WHERE MON.INST_ID = MAGG.MAX_INST_ID AND MON.KEY = MAGG.MAX_KEY AND MON.SID = MAGG.MAX_SESSION_ID AND MON.SQL_ID = :B9 AND MON.SQL_EXEC_START = :B8 AND MON.SQL_EXEC_ID = :B7 AND ROWNUM = 1) ELSE NULL END) FROM MONITOR_AGG MAGG), CASE WHEN :B44 = 1 THEN (SELECT CASE WHEN AT.ACTIVITY_COUNT > 0 THEN XMLELEMENT( "activity_sampled", XMLATTRIBUTES( :B41 AS "ash_missing_seconds", TO_CHAR(AT.ACTIVITY_START, :B12 ) AS "first_sample_time", TO_CHAR(AT.ACTIVITY_END, :B12 ) AS "last_sample_time", ROUND((AT.ACTIVITY_END - AT.ACTIVITY_START) * 3600 * 24) + 1 AS "duration", AT.ACTIVITY_COUNT AS "count", AT.IMQ_COUNT AS "imq_count", AT.WAIT_COUNT AS "wait_count", AT.CPU_COUNT AS "cpu_count", DECODE(AT.OTHER_SQL_COUNT, 0, NULL, AT.OTHER_SQL_COUNT) AS "other_sql_count", :B40 AS "cpu_cores", :B39 AS "hyperthread"), AT.ACTIVITY_TOTAL, AH.GLOB_ACTIVITY_HISTO) WHEN :B41 IS NOT NULL THEN XMLELEMENT( "activity_sampled", XMLATTRIBUTES( DECODE( :B41 , -1, 'all', TO_CHAR( :B41 )) AS "ash_missing_seconds")) ELSE NULL END FROM (SELECT MIN(AD1.ACTIVITY_START) ACTIVITY_START, MAX(AD1.ACTIVITY_END) ACTIVITY_END, SUM(AD1.ACTIVITY_COUNT) ACTIVITY_COUNT, SUM(AD1.IMQ_COUNT) IMQ_COUNT, SUM(AD1.WAIT_COUNT) WAIT_COUNT, SUM(AD1.CPU_COUNT) CPU_COUNT, SUM(AD1.OTHER_SQL_COUNT) OTHER_SQL_COUNT, SUBSTR(MAX(LPAD(AD1.ACTIVITY_COUNT, 10)|| AD1.ACTIVITY_TYPE), 11) MOST_ACTIVE, XMLAGG( XMLELEMENT( "activity", XMLATTRIBUTES( AD1.ACTIVITY_TYPE AS "class", AD1.EVENT_NAME AS "event"), AD1.ACTIVITY_COUNT) ORDER BY AD1.ACTIVITY_TYPE, AD1.EVENT_NAME) ACTIVITY_TOTAL FROM (SELECT AD0.ACTIVITY_TYPE, AD0.EVENT_NAME, MIN(AD0.ACTIVITY_START) ACTIVITY_START, MAX(AD0.ACTIVITY_END) ACTIVITY_END, SUM(AD0.ACTIVITY_COUNT) ACTIVITY_COUNT, SUM(AD0.IMQ_COUNT) IMQ_COUNT, SUM(AD0.WAIT_COUNT) WAIT_COUNT, SUM(AD0.CPU_COUNT) CPU_COUNT, SUM(AD0.OTHER_SQL_COUNT) OTHER_SQL_COUNT FROM ASH_DATA AD0 GROUP BY AD0.ACTIVITY_TYPE, AD0.EVENT_NAME) AD1) AT, (SELECT CASE WHEN :B30 = 1 AND :B27 > 1 THEN XMLELEMENT( "activity_histogram", XMLATTRIBUTES( :B26 AS "bucket_interval", :B27 AS "bucket_count", TO_CHAR( :B20 , :B12 ) AS "start_time", TO_CHAR( :B22 , :B12 ) AS "end_time", ROUND(( :B22 - :B20 ) *3600*24) + 1 AS "duration"), XMLAGG( XMLELEMENT( "bucket", XMLATTRIBUTES( AD2.BUCKET_NUM AS "number"), ACTIVITY_BUCKET) ORDER BY AD2.BUCKET_NUM)) ELSE NULL END GLOB_ACTIVITY_HISTO FROM (SELECT AD1.BUCKET_NUM, SUM(ACTIVITY_COUNT) ACTIVITY_COUNT, SUM(IMQ_COUNT) IMQ_COUNT, SUM(WAIT_COUNT) WAIT_COUNT, SUM(CPU_COUNT) CPU_COUNT, SUM(OTHER_SQL_COUNT) OTHER_SQL_COUNT, MIN(AD1.ACTIVITY_START) ACTIVITY_START, MAX(AD1.ACTIVITY_END) ACTIVITY_END, MIN(AD1.BUCKET_ACTIVITY_START) BUCKET_ACTIVITY_START, MAX(AD1.BUCKET_ACTIVITY_END) BUCKET_ACTIVITY_END, SUBSTR(MAX(LPAD(AD1.ACTIVITY_COUNT, 10)|| AD1.ACTIVITY_TYPE), 11) MOST_ACTIVE, XMLAGG( XMLELEMENT( "activity", XMLATTRIBUTES( AD1.ACTIVITY_TYPE AS "class", AD1.EVENT_NAME AS "event"), AD1.ACTIVITY_COUNT) ORDER BY AD1.ACTIVITY_TYPE, AD1.EVENT_NAME) ACTIVITY_BUCKET FROM (SELECT AD0.ACTIVITY_BUCKET_NUM BUCKET_NUM, AD0.A CTIVITY_TYPE, AD0.EVENT_NAME, MIN(AD0.ACTIVITY_START) ACTIVITY_START, MAX(AD0.ACTIVITY_END) ACTIVITY_END, SUM(AD0.ACTIVITY_COUNT) ACTIVITY_COUNT, SUM(AD0.IMQ_COUNT) IMQ_COUNT, SUM(AD0.WAIT_COUNT) WAIT_COUNT, SUM(AD0.CPU_COUNT) CPU_COUNT, SUM(AD0.OTHER_SQL_COUNT) OTHER_SQL_COUNT, MIN(AD0.BUCKET_ACTIVITY_START) BUCKET_ACTIVITY_START, MAX(AD0.BUCKET_ACTIVITY_END) BUCKET_ACTIVITY_END FROM ASH_DATA AD0 GROUP BY AD0.ACTIVITY_BUCKET_NUM, AD0.ACTIVITY_TYPE, AD0.EVENT_NAME) AD1 GROUP BY AD1.BUCKET_NUM) AD2) AH) ELSE NULL END, CASE WHEN :B33 = 1 THEN (SELECT CASE WHEN AH.ACTIVITY_COUNT > 0 THEN XMLELEMENT( "activity_detail", XMLATTRIBUTES( TO_CHAR( :B20 , :B12 ) AS "start_time", TO_CHAR( :B22 , :B12 ) AS "end_time", :B41 AS "ash_missing_seconds", TO_CHAR(AH.ACTIVITY_START, :B12 ) AS "first_sample_time", TO_CHAR(AH.ACTIVITY_END, :B12 ) AS "last_sample_time", ROUND((AH.ACTIVITY_END - AH.ACTIVITY_START) * 3600 * 2 4) + 1 AS "duration", :B25 AS "sample_interval", :B26 AS "bucket_interval", :B27 AS "bucket_count", ROUND((:B22 - :B20 ) *3600*24) + 1 AS "bucket_duration", :B40 AS "cpu_cores", :B34 AS "total_cpu_cores", :B39 AS "hyperthread"), AH.GLOB_ACTIVITY_HISTO) WHEN :B41 IS NOT NULL THEN XMLELEMENT( "activity_detail", XMLATTRIBUTES( DECODE( :B41 , -1, 'all', TO_CHAR( :B41 )) AS "ash_missing_seconds")) ELSE NULL END FROM (SELECT MIN(AD2.ACTIVITY_START) ACTIVITY_START, MAX(AD2.ACTIVITY_END) ACTIVITY_END, SUM(AD2.ACTIVITY_COUNT) ACTIVITY_COUNT, XMLAGG( XMLELEMENT( "bucket", XMLATTRIBUTES( AD2.BUCKET_NUM AS "number"), ACTIVITY_BUCKET_XML) ORDER BY AD2.BUCKET_NUM) GLOB_ACTIVITY_HISTO FROM (SELECT AD1.BUCKET_NUM, MIN(AD1.ACTIVITY_START) ACTIVITY_START, MAX(AD1.ACTIVITY_END) ACTIVITY_END, SUM(AD1.ACTIVITY_COUNT) ACTIVITY_COUNT, MAX(AD1.BUCKET_IDLE_SECONDS) BUCKET _IDLE_SECONDS, XMLAGG( XMLCONCAT( CASE WHEN AD1.DFO_PAIR_IDLE_RESP_TIME != 0 AND DFO_PAIR_ROWNUM = 1 THEN XMLELEMENT( "activity", XMLATTRIBUTES( 'Parallel Skew' AS "class", AD1.PX_STEP_ARG AS "line", AD1.PX_ID AS "px", ROUND(AD1.DFO_PAIR_IDLE_RESP_TIME, 2) AS "rt"), 0) ELSE NULL END, XMLELEMENT( "activity", XMLATTRIBUTES( NVL(AD1.OTHER_SQL, AD1.RPI) AS "sql", AD1.NON_SQL AS "non_sql", AD1.CLASS AS "class", AD1.OTHER_SQL_CLASS AS "other_sql_class", AD1.EVENT AS "event", AD1.PLAN_LINE_ID AS "line", NVL2(AD1.PLSQL_OBJECT_ID, AD1.PLSQL_OBJECT_ID||'.'|| AD1.PLSQL_SUBPROGRAM_ID, NULL) AS "plsql_id", AD1.PLSQL_NAME AS "plsql_name", CASE WHEN AD1.SQL_ROWNUM = 1 THEN AD1.TOP_LEVEL_SQL_ID END AS "top_sql_id", CASE WHEN AD1.DBOP_NAME IS NOT NULL THEN AD1.DBOP_NAME END AS "dbop_name", CASE WHEN AD1.DFO_MOST_ACTIVE_IID IS NOT NULL AND :B68 = 'Y' THEN AD1.DFO_MOST_ACTIVE_IID END AS "skew_iid", DECODE(AD1.DFO_MOST_ACTIVE_COUNT, NULL, NULL, AD1.DFO_MOST_ACTIVE_SID) AS "skew_sid", AD1.DFO_MOST_ACTIVE_COUNT AS "skew_count", DECODE(AD1.PX_DOP, :B28 , NULL, AD1.PX_DOP) AS "dop", DECODE(AD1.PX_DOP, AD1.PX_MIN_DOP, NULL, AD1.PX_MIN_DOP) AS "min_dop", AD1.PX_ID AS "px", AD1.PX_STEP_ID AS "step", AD1.PX_STEP_ARG AS "arg", DECODE(AD1.ACTIVITY_COUNT, AD1.RESP_TIME, NULL, ROUND(AD1.RESP_TIME, 2)) AS "rt"), AD1.ACTIVITY_COUNT)) ORDER BY AD1.PX_STEP_ID, AD1.PX_STEP_ARG, AD1.DFO_PAIR_ROWNUM) ACTIVITY_BUCKET_XML FROM (SELECT AD01.*, CASE WHEN AD01.ACTIVITY_TYPE != 'Other SQL Execution' AND AD01.ACTIVITY_TYPE != 'Non SQL' THEN AD01.ACTIVITY_TYPE END CLASS, CASE WHEN (AD01.ACTIVITY_TYPE = 'Other SQL Execution' OR AD01.ACTIVITY_TYPE = 'Non SQL') THEN AD01.OTHER_SQL_ACTIVITY_TYPE END OTHER_SQL_CLASS, CASE WH EN AD01.ACTIVITY_TYPE != 'Other SQL Execution' AND AD01.ACTIVITY_TYPE != 'Non SQL' THEN AD01.EVENT_NAME END EVENT, CASE WHEN AD01.SQL IN ('this', 'anonymous') THEN NULL ELSE AD01.SQL END RPI, DECODE(AD01.ACTIVITY_TYPE, 'Other SQL Execution', SUBSTR(AD01.EVENT_NAME, 9), NULL) OTHER_SQL, DECODE(AD01.ACTIVITY_TYPE, 'Non SQL', AD01.EVENT_NAME, NULL) NON_SQL, ROW_NUMBER() OVER(PARTITION BY AD01.BUCKET_NUM, AD01.PX_DFO_PAIR_ID ORDER BY AD01.ACTIVITY_TYPE, AD01.EVENT_NAME, AD01.PLAN_LINE_ID) DFO_PAIR_ROWNUM FROM RESPONSE_TIME_DATA AD01) AD1 GROUP BY AD1.BUCKET_NUM) AD2) AH) ELSE NULL END, CASE WHEN :B23 = 'Y' THEN (SELECT XMLELEMENT( "parallel_info", XMLATTRIBUTES( :B17 AS "qc_instance_id", MAX_PX_QCSID AS "qc_session_id", MAX_PX_IS_CROSS_INSTANCE AS "is_cross_instance", MAX_PX_DOP AS "dop", MAX_PX_DOP_INSTANCES AS "max_dop_instances", DIST_INST_COUNT AS "inst_count", DIST_PX_GROUP_COUNT AS "serv er_group_count", DIST_PX_SET_COUNT AS "server_set_count"), CASE WHEN :B70 = 1 THEN PX_SESSIONS ELSE NULL END, CASE WHEN :B68 = 'Y' THEN DECODE(:B69 , 1, PX_INSTANCES, NULL) ELSE NULL END) FROM (SELECT MAX_PX_QCSID, MAX_PX_DOP, MAX_PX_DOP_INSTANCES, MAX_PX_IS_CROSS_INSTANCE, SUM_SERVERS_REQUESTED, SUM_SERVERS_ALLOCATED, DIST_INST_COUNT, DIST_PX_GROUP_COUNT, DIST_PX_SET_COUNT, (SELECT XMLELEMENT( "sessions", XMLATTRIBUTES(MAX(PX_SESSION.ACTIVITY_COUNT) AS "max_activity_count", MAX(PX_SESSION.IMQ_COUNT) AS "max_imq_count", MAX(PX_SESSION.CPU_COUNT) AS "max_cpu_count", MAX(PX_SESSION.WAIT_COUNT) AS "max_wait_count", MAX(PX_SESSION.OTHER_SQL_COUNT) AS "max_other_sql_count", MAX(PX_SESSION.MAX_IO_REQS) AS "max_io_reqs", MAX(PX_SESSION.MAX_IO_BYTES) AS "max_io_bytes", MAX(PX_SESSION.MAX_BUFFER_GETS) AS "max_buffer_gets", MAX(PX_SESSION.MAX_ELAPSED_TIME) AS "max _elapsed_time"), XMLAGG(PX_SESSION.PX_SESSION_XML ORDER BY PX_SERVER_GROUP NULLS FIRST, PX_SERVER_SET, PX_SERVER#)) FROM (SELECT PX_SERVER_GROUP, PX_SERVER_SET, PX_SERVER#, MAX(PI.MAX_ELAPSED_TIME) MAX_ELAPSED_TIME, MAX(PI.MAX_IO_REQS) MAX_IO_REQS, MAX(PI.MAX_IO_BYTES) MAX_IO_BYTES, MAX(PI.MAX_BUFFER_GETS) MAX_BUFFER_GETS, SUM(PI.ACTIVITY_COUNT) ACTIVITY_COUNT, SUM(PI.IMQ_COUNT) IMQ_COUNT, SUM(PI.WAIT_COUNT) WAIT_COUNT, SUM(PI.CPU_COUNT) CPU_COUNT, SUM(PI.OTHER_SQL_COUNT) OTHER_SQL_COUNT, XMLELEMENT( "session", XMLATTRIBUTES( INST_ID AS "inst_id", PROCESS_NAME AS "process_name", SID AS "session_id", SESSION_SERIAL# AS "session_serial", PX_SERVER_GROUP AS "server_group", PX_SERVER_SET AS "server_set", PX_SERVER# AS "server_num"), XMLELEMENT( "stats", XMLATTRIBUTES( 'monitor' AS "type"), NVL2(MAX(ELAPSED_TIME), XMLELEMENT( "stat", XMLATTRIBUTES('el apsed_time' AS "name"), MAX(ELAPSED_TIME)), NULL), NVL2(MAX(QUEUING_TIME), XMLELEMENT( "stat", XMLATTRIBUTES('queuing_time' AS "name"), MAX(QUEUING_TIME)), NULL), NVL2(MAX(CPU_TIME), XMLELEMENT( "stat", XMLATTRIBUTES('cpu_time' AS "name"), MAX(CPU_TIME)), NULL), NVL2(MAX(USER_IO_WAIT_TIME), XMLELEMENT( "stat", XMLATTRIBUTES('user_io_wait_time' AS "name"), MAX(USER_IO_WAIT_TIME)), NULL), NVL2(MAX(APPLICATION_WAIT_TIME), XMLELEMENT( "stat", XMLATTRIBUTES('application_wait_time' AS "name"), MAX(APPLICATION_WAIT_TIME)), NULL), NVL2(MAX(CONCURRENCY_WAIT_TIME), XMLELEMENT( "stat", XMLATTRIBUTES('concurrency_wait_time' AS "name"), MAX(CONCURRENCY_WAIT_TIME)), NULL), NVL2(MAX(CLUSTER_WAIT_TIME), XMLELEMENT( "stat", XMLATTRIBUTES('cluster_wait_time' AS "name"), MAX(CLUSTER_WAIT_TIME)), NULL), NVL2(MAX(PLSQL_EXEC_TIME), XMLELEMENT( "stat", XMLATTRIBUTES('plsql_exec_time' AS "name"), MAX(PLSQL_EXEC_TIME)), NULL), NVL2(MAX(JAVA_EXEC_TIME), XMLELEMENT( "stat", XMLATTRIBUTES('java_exec_time' AS "name"), MAX(JAVA_EXEC_TIME)), NULL), NVL2(MAX(OTHER_WAIT_TIME), XMLELEMENT( "stat", XMLATTRIBUTES( 'other_wait_time' AS "name"), MAX(OTHER_WAIT_TIME)), NULL), NVL2(MAX(FETCHES), XMLELEMENT( "stat", XMLATTRIBUTES('user_fetch_count' AS "name"), MAX(FETCHES)), NULL), NVL2(MAX(BUFFER_GETS), XMLELEMENT( "stat", XMLATTRIBUTES('buffer_gets' AS "name"), MAX(BUFFER_GETS)), NULL), NVL2(MAX(READ_REQS), XMLELEMENT( "stat", XMLATTRIBUTES('disk_reads' AS "name"), MAX(READ_REQS)), NULL), NVL2(MAX(WRITE_REQS), XMLELEMENT( "stat", XMLATTRIBUTES('direct_writes' AS "name"), MAX(WRITE_REQS)), NULL), NVL2(MAX(READ_REQS), XMLELEMENT( "stat", XMLATTRIBUTES('read_req s' AS "name"), MAX(READ_REQS)), NULL), NVL2(MAX(READ_BYTES), XMLELEMENT( "stat", XMLATTRIBUTES('read_bytes' AS "name"), MAX(READ_BYTES)), NULL), NVL2(MAX(WRITE_REQS), XMLELEMENT( "stat", XMLATTRIBUTES('write_reqs' AS "name"), MAX(WRITE_REQS)), NULL), NVL2(MAX(WRITE_BYTES), XMLELEMENT( "stat", XMLATTRIBUTES('write_bytes' AS "name"), MAX(WRITE_BYTES)), NULL), NVL2(MAX(IO_UNC_BYTES), XMLELEMENT( "stat", XMLATTRIBUTES('unc_bytes' AS "name"), MAX(IO_UNC_BYTES)), NULL), NVL2(MAX(IO_ELIG_BYTES), XMLELEMENT( "stat", XMLATTRIBUTES('elig_bytes' AS "name"), MAX(IO_ELIG_BYTES)), NULL), NVL2(MAX(IO_RET_BYTES), XMLELEMENT( "stat", XMLATTRIBUTES('ret_bytes' AS "name"), MAX(IO_RET_BYTES)), NULL), CASE WHEN MAX(IO_INTER_BYTES) IS NULL OR NVL(MAX(IO_BYTES), 0) = 0 OR MAX(IO_INTER_BYTES) = MAX(IO_BYTES) OR NVL(MAX(IO_ELIG_BYTES), 0) = 0 THEN NULL ELSE XMLELEMENT( "stat", XMLATTRIBUTES('cell_offload_efficiency' AS "name"), ROUND(MAX(IO_BYTES) / DECODE(MAX(IO_INTER_BYTES), 0, 1, MAX(IO_INTER_BYTES)), 2)) END, CASE WHEN NVL(MAX(IO_ELIG_BYTES), 0) = 0 OR NVL(MAX(IO_BYTES), 0) = 0 OR MAX(IO_UNC_BYTES) = MAX(IO_RET_BYTES) THEN NULL ELSE XMLELEMENT( "stat", XMLATTRIBUTES('cell_offload_efficiency2' AS "name"), GREATEST(0, ROUND(100* (GREATEST( NVL(MAX(IO_UNC_BYTES), 0), NVL(MAX(IO_ELIG_BYTES), 0)) - MAX(IO_RET_BYTES)) / MAX(IO_ELIG_BYTES), 2))) END), CASE WHEN SUM(PI.ACTIVITY_COUNT) > 0 AND :B33 = 1 THEN XMLELEMENT( "activity_sampled", XMLATTRIBUTES( TO_CHAR(MIN(PI.ACTIVITY_START), :B12 ) AS "first_sample_time", TO_CHAR(MAX(PI.ACTIVITY_END), :B12 ) AS "last_sample_time", ROUND((MAX(PI.ACTIVITY_END) - MIN(PI.ACTIVITY_START)) * 3600 * 24) + 1 AS "duration", SUM(PI.ACTIVITY_COUNT) AS "count", SUM(PI.IMQ_COUNT) AS "i mq_count", SUM(PI.CPU_COUNT) AS "cpu_count", SUM(PI.WAIT_COUNT) AS "wait_count", SUM(PI.OTHER_SQL_COUNT)AS "other_sql_count", :B40 AS "cpu_cores", :B39 AS "hyperthread"), XMLAGG( NVL2(ACTIVITY_TYPE, XMLELEMENT( "activity", XMLATTRIBUTES( PI.ACTIVITY_TYPE AS "class", PI.EVENT_NAME AS "event"), ACTIVITY_COUNT), NULL) ORDER BY PI.ACTIVITY_TYPE, PI.EVENT_NAME)) ELSE NULL END, CASE WHEN :B60 = 1 AND PI.HAS_OTHER_XML = 'Y' THEN (SELECT XMLTYPE(OTHER_XML) FROM GV$ALL_SQL_MONITOR MON WHERE MON.INST_ID = PI.INST_ID AND MON.KEY = PI.KEY AND MON.SID = PI.SID AND MON.SQL_ID = :B9 AND MON.SQL_EXEC_START = :B8 AND MON.SQL_EXEC_ID = :B7 AND ROWNUM = 1) ELSE NULL END) PX_SESSION_XML FROM (SELECT MO.HAS_OTHER_XML, MO.KEY, MO.INST_ID, DECODE(MO.PROCESS_NAME, 'ora', 'PX Coordinator', MO.PROCESS_NAME) PROCESS_NAME, MO.SID, MO.SESSION_SERIAL#, MO.PX_SERVER_GROUP, MO.PX_SERVER_SET, MO.PX_SERVER#, AS H0.ACTIVITY_TYPE, ASH0.EVENT_NAME, MAX(MO.IO_REQS) MAX_IO_REQS, MAX(MO.IO_BYTES) MAX_IO_BYTES, MAX(MO.BUFFER_GETS) MAX_BUFFER_GETS, MAX(MO.ELAPSED_TIME) MAX_ELAPSED_TIME, SUM(DECODE(ASH0.ACTIVITY_TYPE, NULL, NULL, ASH0.ACTIVITY_COUNT)) ACTIVITY_COUNT, SUM(DECODE(ASH0.ACTIVITY_TYPE, NULL, NULL, ASH0.IMQ_COUNT)) IMQ_COUNT, SUM(DECODE(ASH0.ACTIVITY_TYPE, NULL, NULL, ASH0.WAIT_COUNT)) WAIT_COUNT, SUM(DECODE(ASH0.ACTIVITY_TYPE, NULL, NULL, ASH0.CPU_COUNT)) CPU_COUNT, SUM(DECODE(ASH0.ACTIVITY_TYPE, NULL, NULL, ASH0.OTHER_SQL_COUNT)) OTHER_SQL_COUNT, MIN(ASH0.ACTIVITY_START) ACTIVITY_START, MAX(ASH0.ACTIVITY_END) ACTIVITY_END, MAX(DECODE(MO.ELAPSED_TIME, 0, NULL, MO.ELAPSED_TIME)) ELAPSED_TIME, MAX(DECODE(MO.QUEUING_TIME, 0, NULL, MO.QUEUING_TIME)) QUEUING_TIME, MAX(DECODE(MO.CPU_TIME, 0, NULL, CPU_TIME)) CPU_TIME, MAX(DECODE(MO.FETCHES, 0, NULL, FETCHES)) FETCHES, MAX(DECODE(MO.BUFFER_GETS, 0, NULL, MO.BUFFER_GETS)) BUFFER_GETS, MAX(DECODE(MO.I O_INTER_BYTES, 0, NULL, MO.IO_INTER_BYTES)) IO_INTER_BYTES, MAX(DECODE(MO.READ_REQS, 0, NULL, MO.READ_REQS)) READ_REQS, MAX(DECODE(MO.READ_BYTES, 0, NULL, MO.READ_BYTES)) READ_BYTES, MAX(DECODE(MO.WRITE_REQS, 0, NULL, MO.WRITE_REQS)) WRITE_REQS, MAX(DECODE(MO.WRITE_BYTES, 0, NULL, MO.WRITE_BYTES)) WRITE_BYTES, MAX(DECODE(MO.IO_BYTES, 0, NULL, MO.IO_BYTES)) IO_BYTES, MAX(DECODE(MO.IO_UNC_BYTES, 0, NULL, MO.IO_UNC_BYTES)) IO_UNC_BYTES, MAX(DECODE(MO.IO_ELIG_BYTES, 0, NULL, MO.IO_ELIG_BYTES)) IO_ELIG_BYTES, MAX(DECODE(MO.IO_RET_BYTES, 0, NULL, MO.IO_RET_BYTES)) IO_RET_BYTES, MAX(DECODE(MO.APPLICATION_WAIT_TIME, 0, NULL, MO.APPLICATION_WAIT_TIME)) APPLICATION_WAIT_TIME, MAX(DECODE(MO.CONCURRENCY_WAIT_TIME, 0, NULL, MO.CONCURRENCY_WAIT_TIME)) CONCURRENCY_WAIT_TIME, MAX(DECODE(MO.CLUSTER_WAIT_TIME, 0, NULL, MO.CLUSTER_WAIT_TIME)) CLUSTER_WAIT_TIME, MAX(DECODE(MO.USER_IO_WAIT_TIME, 0, NULL, MO.USER_IO_WAIT_TIME)) USER_IO_WAIT_TIME, MAX(DECOD E(PLSQL_EXEC_TIME, 0, NULL, PLSQL_EXEC_TIME)) PLSQL_EXEC_TIME, MAX(DECODE(MO.JAVA_EXEC_TIME, 0, NULL, MO.JAVA_EXEC_TIME)) JAVA_EXEC_TIME, MAX(DECODE(MO.OTHER_WAIT_TIME, 0, NULL, MO.OTHER_WAIT_TIME)) OTHER_WAIT_TIME FROM MONITOR_DATA MO, (SELECT ASH1.INST_ID, ASH1.SESSION_ID, ASH1.ACTIVITY_TYPE, ASH1.EVENT_NAME, SUM(ASH1.ACTIVITY_COUNT) ACTIVITY_COUNT, SUM(ASH1.IMQ_COUNT) IMQ_COUNT, SUM(ASH1.WAIT_COUNT) WAIT_COUNT, SUM(ASH1.CPU_COUNT) CPU_COUNT, SUM(ASH1.OTHER_SQL_COUNT)OTHER_SQL_COUNT, MIN(ASH1.ACTIVITY_START) ACTIVITY_START, MAX(ASH1.ACTIVITY_END) ACTIVITY_END FROM ASH_DATA ASH1 GROUP BY ASH1.INST_ID, ASH1.SESSION_ID, ASH1.ACTIVITY_TYPE, ASH1.EVENT_NAME) ASH0 WHERE MO.INST_ID = ASH0.INST_ID(+) AND MO.SID = ASH0.SESSION_ID(+) AND (:B70 = 1 OR :B69 = 1) GROUP BY MO.INST_ID, MO.KEY, MO.HAS_OTHER_XML, MO.PROCESS_NAME, MO.SID, MO.SESSION_SERIAL#, MO.PX_SERVER_GROUP, MO.PX_SERVER_SET, MO.PX_SERVER#, ASH0.ACTIVITY_TYPE, ASH0.EVENT_NAME) PI WHERE (:B70 = 1) GROUP BY PI.INST_ID, PI.KEY, PI.HAS_OTHER_XML, PI.SID, PI.PROCESS_NAME, PI.SESSION_SERIAL#, PI.PX_SERVER_GROUP, PI.PX_SERVER_SET, PI.PX_SERVER#) PX_SESSION) PX_SESSIONS, (SELECT XMLELEMENT( "instances", XMLATTRIBUTES( MAX(PX_INSTANCE.ACTIVITY_COUNT) AS "max_activity_count", MAX(PX_INSTANCE.IMQ_COUNT) AS "max_imq_count", MAX(PX_INSTANCE.CPU_COUNT) AS "max_cpu_count", MAX(PX_INSTANCE.WAIT_COUNT) AS "max_wait_count", MAX(PX_INSTANCE.OTHER_SQL_COUNT) AS "max_other_sql_count", MAX(PX_INSTANCE.ELAPSED_TIME) AS "max_elapsed_time", MAX(PX_INSTANCE.BUFFER_GETS) AS "max_buffer_gets", MAX(PX_INSTANCE.IO_REQS) AS "max_io_reqs", MAX(PX_INSTANCE.IO_BYTES) AS "max_io_bytes"), XMLAGG(PX_INSTANCE.PX_INSTANCES_XML ORDER BY INST_ID)) FROM (SELECT PI.INST_ID, MAX(PI.ELAPSED_TIME) ELAPSED_TIME, MAX(PI.IO_REQS) IO_REQS, MAX(PI.IO_BYTES) IO_BYTES, MAX(PI.BUFFER_GETS) BUFFER_GETS, SUM(PI .ACTIVITY_COUNT) ACTIVITY_COUNT, SUM(PI.IMQ_COUNT) IMQ_COUNT, SUM(PI.WAIT_COUNT) WAIT_COUNT, SUM(PI.CPU_COUNT) CPU_COUNT, SUM(PI.OTHER_SQL_COUNT) OTHER_SQL_COUNT, XMLELEMENT( "instance", XMLATTRIBUTES( INST_ID AS "inst_id"), XMLELEMENT( "stats", XMLATTRIBUTES( 'monitor' AS "type"), NVL2(MAX(ELAPSED_TIME), XMLELEMENT( "stat", XMLATTRIBUTES('elapsed_time' AS "name"), MAX(ELAPSED_TIME)), NULL), NVL2(MAX(QUEUING_TIME), XMLELEMENT( "stat", XMLATTRIBUTES('queuing_time' AS "name"), MAX(QUEUING_TIME)), NULL), NVL2(MAX(CPU_TIME), XMLELEMENT( "stat", XMLATTRIBUTES('cpu_time' AS "name"), MAX(CPU_TIME)), NULL), NVL2(MAX(USER_IO_WAIT_TIME), XMLELEMENT( "stat", XMLATTRIBUTES('user_io_wait_time' AS "name"), MAX(USER_IO_WAIT_TIME)), NULL), NVL2(MAX(APPLICATION_WAIT_TIME), XMLELEMENT( "stat", XMLATTRIBUTES('application_wait_time' AS "name "), MAX(APPLICATION_WAIT_TIME)), NULL), NVL2(MAX(CONCURRENCY_WAIT_TIME), XMLELEMENT( "stat", XMLATTRIBUTES('concurrency_wait_time' AS "name"), MAX(CONCURRENCY_WAIT_TIME)), NULL), NVL2(MAX(CLUSTER_WAIT_TIME), XMLELEMENT( "stat", XMLATTRIBUTES('cluster_wait_time' AS "name"), MAX(CLUSTER_WAIT_TIME)), NULL), NVL2(MAX(PLSQL_EXEC_TIME), XMLELEMENT( "stat", XMLATTRIBUTES('plsql_exec_time' AS "name"), MAX(PLSQL_EXEC_TIME)), NULL), NVL2(MAX(JAVA_EXEC_TIME), XMLELEMENT( "stat", XMLATTRIBUTES('java_exec_time' AS "name"), MAX(JAVA_EXEC_TIME)), NULL), NVL2(MAX(OTHER_WAIT_TIME), XMLELEMENT( "stat", XMLATTRIBUTES( 'other_wait_time' AS "name"), MAX(OTHER_WAIT_TIME)), NULL), NVL2(MAX(FETCHES), XMLELEMENT( "stat", XMLATTRIBUTES('user_fetch_count' AS "name"), MAX(FETCHES)), NULL), NVL2(MAX(BUFFER_GETS), XMLELEMENT( "stat", XMLATTRIBUTES( 'buffer_gets' AS "name"), MAX(BUFFER_GETS)), NULL), NVL2(MAX(READ_REQS), XMLELEMENT( "stat", XMLATTRIBUTES('disk_reads' AS "name"), MAX(READ_REQS)), NULL), NVL2(MAX(WRITE_REQS), XMLELEMENT( "stat", XMLATTRIBUTES('direct_writes' AS "name"), MAX(WRITE_REQS)), NULL), NVL2(MAX(READ_REQS), XMLELEMENT( "stat", XMLATTRIBUTES('read_reqs' AS "name"), MAX(READ_REQS)), NULL), NVL2(MAX(READ_BYTES), XMLELEMENT( "stat", XMLATTRIBUTES('read_bytes' AS "name"), MAX(READ_BYTES)), NULL), NVL2(MAX(WRITE_REQS), XMLELEMENT( "stat", XMLATTRIBUTES('write_reqs' AS "name"), MAX(WRITE_REQS)), NULL), NVL2(MAX(WRITE_BYTES), XMLELEMENT( "stat", XMLATTRIBUTES('write_bytes' AS "name"), MAX(WRITE_BYTES)), NULL), NVL2(MAX(IO_UNC_BYTES), XMLELEMENT( "stat", XMLATTRIBUTES('unc_bytes' AS "name"), MAX(IO_UNC_BYTES)), NULL), NVL2(MAX(IO_EL IG_BYTES), XMLELEMENT( "stat", XMLATTRIBUTES('elig_bytes' AS "name"), MAX(IO_ELIG_BYTES)), NULL), NVL2(MAX(IO_RET_BYTES), XMLELEMENT( "stat", XMLATTRIBUTES('ret_bytes' AS "name"), MAX(IO_RET_BYTES)), NULL), CASE WHEN MAX(IO_INTER_BYTES) IS NULL OR NVL(MAX(IO_BYTES), 0) = 0 OR MAX(IO_INTER_BYTES) = MAX(IO_BYTES) OR NVL(MAX(IO_ELIG_BYTES), 0) = 0 THEN NULL ELSE XMLELEMENT( "stat", XMLATTRIBUTES('cell_offload_efficiency' AS "name"), ROUND(MAX(IO_BYTES)/ DECODE(MAX(IO_INTER_BYTES), 0, 1, MAX(IO_INTER_BYTES)), 2)) END, CASE WHEN NVL(MAX(IO_ELIG_BYTES), 0) = 0 OR NVL(MAX(IO_BYTES), 0) = 0 OR MAX(IO_UNC_BYTES) = MAX(IO_RET_BYTES) THEN NULL ELSE XMLELEMENT( "stat", XMLATTRIBUTES('cell_offload_efficiency2' AS "name"), GREATEST(0, ROUND(100* (GREATEST( NVL(MAX(IO_UNC_BYTES), 0), NVL(MAX(IO_ELIG_BYTES), 0)) - MAX(IO_RET_BYTES)) / MAX(IO_ELIG_BYTES), 2))) END), CASE WHEN :B33 = 1 AND SUM(PI .ACTIVITY_COUNT) > 0 THEN XMLELEMENT( "activity_sampled", XMLATTRIBUTES( TO_CHAR(MIN(PI.ACTIVITY_START), :B12 ) AS "start_time", TO_CHAR(MAX(PI.ACTIVITY_END), :B12 ) AS "end_time", ROUND((MAX(PI.ACTIVITY_END) - MIN(PI.ACTIVITY_START)) * 3600 * 24) + 1 AS "duration", SUM(PI.ACTIVITY_COUNT) AS "count", SUM(PI.IMQ_COUNT) AS "imq_count", SUM(PI.WAIT_COUNT) AS "wait_count", SUM(PI.CPU_COUNT) AS "cpu_count", SUM(PI.OTHER_SQL_COUNT) AS "other_sql_count", :B40 AS "cpu_cores", :B39 AS "hyperthread"), XMLAGG( NVL2(ACTIVITY_TYPE, XMLELEMENT( "activity", XMLATTRIBUTES( PI.ACTIVITY_TYPE AS "class", PI.EVENT_NAME AS "event"), ACTIVITY_COUNT), NULL) ORDER BY PI.ACTIVITY_TYPE, PI.EVENT_NAME)) ELSE NULL END) PX_INSTANCES_XML FROM (SELECT MO.INST_ID, ASH.ACTIVITY_TYPE, ASH.EVENT_NAME, ASH.ACTIVITY_COUNT, ASH.IMQ_COUNT, ASH.WAIT_COUNT, ASH .CPU_COUNT, ASH.OTHER_SQL_COUNT, ASH.ACTIVITY_START, ASH.ACTIVITY_END, MO.ELAPSED_TIME, MO.QUEUING_TIME, MO.CPU_TIME, MO.APPLICATION_WAIT_TIME, MO.CONCURRENCY_WAIT_TIME, MO.CLUSTER_WAIT_TIME, MO.USER_IO_WAIT_TIME, MO.PLSQL_EXEC_TIME, MO.JAVA_EXEC_TIME, MO.OTHER_WAIT_TIME, MO.FETCHES, MO.BUFFER_GETS, MO.IO_INTER_BYTES, MO.IO_BYTES, MO.READ_REQS, MO.READ_BYTES, MO.WRITE_REQS, MO.WRITE_BYTES, MO.IO_REQS, MO.IO_UNC_BYTES, MO.IO_ELIG_BYTES, MO.IO_RET_BYTES FROM (SELECT MO0.INST_ID, SUM(MO0.ELAPSED_TIME) ELAPSED_TIME, SUM(MO0.QUEUING_TIME) QUEUING_TIME, SUM(MO0.CPU_TIME) CPU_TIME, SUM(MO0.FETCHES) FETCHES, SUM(MO0.BUFFER_GETS) BUFFER_GETS, SUM(MO0.IO_INTER_BYTES) IO_INTER_BYTES, SUM(MO0.IO_BYTES) IO_BYTES, SUM(MO0.READ_REQS) READ_REQS, SUM(MO0.READ_BYTES) READ_BYTES, SUM(MO0.WRITE_REQS) WRITE_REQS, SUM(MO0.WRITE_BYTES) WRITE_BYTES, SUM(MO0.IO_REQS) IO_REQS, SUM(MO0.IO_UNC_BYTES) IO_UNC_BYTES, SUM(MO0.IO_ELIG_BYTES) IO_ELIG_BYTES, SUM(MO0.IO_RET_BYTES) IO_RET_BYTES, SUM(MO0.APPLICATION_WAIT_TIME) APPLICATION_WAIT_TIME, SUM(MO0.CONCURRENCY_WAIT_TIME) CONCURRENCY_WAIT_TIME, SUM(MO0.CLUSTER_WAIT_TIME) CLUSTER_WAIT_TIME, SUM(MO0.USER_IO_WAIT_TIME) USER_IO_WAIT_TIME, SUM(MO0.PLSQL_EXEC_TIME) PLSQL_EXEC_TIME, SUM(MO0.JAVA_EXEC_TIME) JAVA_EXEC_TIME, SUM(MO0.OTHER_WAIT_TIME) OTHER_WAIT_TIME FROM MONITOR_DATA MO0 GROUP BY MO0.INST_ID) MO, (SELECT ASH0.INST_ID, ASH0.ACTIVITY_TYPE, ASH0.EVENT_NAME, SUM(ASH0.ACTIVITY_COUNT) ACTIVITY_COUNT, SUM(ASH0.IMQ_COUNT) IMQ_COUNT, SUM(ASH0.WAIT_COUNT) WAIT_COUNT, SUM(ASH0.CPU_COUNT) CPU_COUNT, SUM(ASH0.OTHER_SQL_COUNT) OTHER_SQL_COUNT, MIN(ASH0.ACTIVITY_START) ACTIVITY_START, MAX(ASH0.ACTIVITY_END) ACTIVITY_END FROM ASH_DATA ASH0 GROUP BY ASH0.INST_ID, ASH0.ACTIVITY_TYPE, ASH0.EVENT_NAME) ASH, MONITOR_AGG WHERE MO.INST_ID = ASH.INST_ID(+) AND MONITOR_AGG.DIST_INST_COUNT > 0 ) PI GROUP BY PI.INST_ID)PX_INSTANCE) PX_INSTANCES FROM MONITOR_AGG)) ELSE NULL END, XPLAN_XML, CASE WHEN :B4 3 = 1 THEN (SELECT XMLELEMENT( "plan_monitor", XMLATTRIBUTES(MAX(PLI.MAX_LINE_ACTIVITY_COUNT) AS "max_activity_count", MAX(PLI.OVERALL_MAX_IO_REQS) AS "max_io_reqs", MAX(PLI.OVERALL_MAX_IO_BYTES) AS "max_io_bytes", MAX(PLI.MAX_LINE_IMQ_COUNT) AS "max_imq_count", MAX(PLI.MAX_LINE_CPU_COUNT) AS "max_cpu_count", MAX(PLI.MAX_LINE_WAIT_COUNT) AS "max_wait_count", MAX(PLI.MAX_LINE_OTHER_SQL_COUNT) AS "max_other_sql_count"), XMLAGG( XMLELEMENT( "operation", XMLATTRIBUTES( PLI.PLAN_LINE_ID AS "id", PLI.PARENT_ID AS "parent_id", PLI.OPERATION AS "name", PLI.OPTIONS AS "options", PLI.DEPTH AS "depth", PLI.POSITION AS "position", PLI.INACTIVE AS "skp", PLI.PX_TYPE AS "px_type"), NVL2(PLI.OBJECT_NAME, XMLELEMENT( "object", XMLATTRIBUTES(PLI.OBJECT_TYPE AS "type"), XMLFOREST(PLI.OBJECT_OWNER AS "owner"), XMLFOREST(PLI.OBJECT_NAME AS "name")), NULL), XMLFOREST(PLI.PARTITION_START AS "partition_start", PLI.PARTITION_STOP AS "partition_stop"), CASE WHEN PLI.CARDINALITY IS NULL AND PLI.BYTES IS NULL AND PLI.COST IS NULL AND PLI.TEMP_SPACE IS NULL AND PLI.TIME IS NULL THEN NULL ELSE XMLELEMENT( "optimizer", NULL, NVL2(PLI.CARDINALITY, XMLFOREST(PLI.CARDINALITY AS "cardinality"), NULL), NVL2(PLI.BYTES, XMLFOREST(PLI.BYTES AS "bytes"), NULL), NVL2(PLI.COST, XMLFOREST(PLI.COST AS "cost"), NULL), NVL2(PLI.CPU_COST, XMLFOREST(PLI.CPU_COST AS "cpu_cost"), NULL), NVL2(PLI.IO_COST, XMLFOREST(PLI.IO_COST AS "io_cost"), NULL), NVL2(PLI.TEMP_SPACE, XMLFOREST(PLI.TEMP_SPACE AS "temp"), NULL), NVL2(PLI.TIME, XMLFOREST(PLI.TIME AS "time"), NULL)) END, XMLELEMENT( "stats", XMLATTRIBUTES('plan_monitor' AS "type"), NVL2(PLI.FIR ST_MOVE_TIME, XMLELEMENT( "stat", XMLATTRIBUTES('first_active' AS "name"), TO_CHAR(FIRST_MOVE_TIME, :B12 )), NULL), CASE WHEN PLI.FIRST_MOVE_TIME != PLI.FIRST_CHANGE_TIME THEN XMLELEMENT( "stat", XMLATTRIBUTES('first_row' AS "name"), TO_CHAR(FIRST_CHANGE_TIME, :B12 )) ELSE NULL END, NVL2(PLI.LAST_MOVE_TIME, XMLELEMENT( "stat", XMLATTRIBUTES('last_active' AS "name"), TO_CHAR(LAST_MOVE_TIME, :B12 )), NULL), CASE WHEN (PLI.FIRST_MOVE_TIME IS NULL OR PLI.LAST_MOVE_TIME IS NULL) THEN NULL ELSE XMLELEMENT( "stat", XMLATTRIBUTES('duration' AS "name"), ROUND((LAST_MOVE_TIME - FIRST_MOVE_TIME) * 3600 * 24)+1) END, CASE WHEN (PLI.OVERALL_LAST_MOVE_TIME IS NULL OR PLI.LAST_MOVE_TIME IS NULL) THEN NULL ELSE XMLELEMENT( "stat", XMLATTRIBUTES('from_most_recent' AS "name"), ROUND((PLI.OVERALL_LAST_MOVE_TIME - PLI.LAST_MOVE_TIME) * 3600 * 24)) END, NVL2(PLI.LAST_MOVE_TIME, XMLELEM ENT( "stat", XMLATTRIBUTES( 'from_sql_exec_start' AS "name"), ROUND( (FIRST_MOVE_TIME - :B8 ) * 3600*24)), NULL), NVL2(PLI.PERCENT_COMPLETE, XMLELEMENT( "stat", XMLATTRIBUTES('percent_complete' AS "name"), PLI.PERCENT_COMPLETE), NULL), NVL2(PLI.TIME_REMAINING, XMLELEMENT( "stat", XMLATTRIBUTES('time_left' AS "name"), PLI.TIME_REMAINING), NULL), CASE WHEN PLI.HAS_EXECUTED = 1 THEN XMLELEMENT( "stat", XMLATTRIBUTES('starts' AS "name"), PLI.STARTS) ELSE NULL END, CASE WHEN PLI.DOP > 0 AND PLI.HAS_EXECUTED = 1 THEN XMLELEMENT( "stat", XMLATTRIBUTES( 'max_starts' AS "name", DECODE(:B68 , 'Y', MOD(TRUNC(MAX_STARTS/1000000), 10000), NULL) AS "iid", MOD(MAX_STARTS, 1000000) AS "sid"), TRUNC(PLI.MAX_STARTS/10000000000)) ELSE NULL END, CASE WHEN PLI.DOP > 0 AND PLI.HAS_EXECUTED = 1 THEN XMLELEMENT( "stat", XMLATTRIBUTES('dop' AS "name"), PLI.DOP) ELSE NULL END, CASE WHEN NEED_ROWS IS NOT NULL AND PLI.FIRST_MOVE_TIME IS NOT NULL THEN XMLELEMENT( "stat", XMLATTRIBUTES('cardinality' AS "name"), PLI.OUTPUT_ROWS) ELSE NULL END, CASE WHEN PLI.NEED_ROWS IS NOT NULL AND PLI.DOP > 0 AND PLI.MAX_OUTPUT_ROWS IS NOT NULL AND (PLI.FIRST_MOVE_TIME IS NOT NULL) THEN XMLELEMENT( "stat", XMLATTRIBUTES( 'max_card' AS "name", DECODE(:B68 , 'Y', MOD(TRUNC(MAX_OUTPUT_ROWS/1000000), 10000), NULL) AS "iid", MOD(MAX_OUTPUT_ROWS, 1000000) AS "sid"), TRUNC(PLI.MAX_OUTPUT_ROWS/10000000000)) ELSE NULL END, CASE WHEN PLI.MEM > 0 THEN XMLELEMENT( "stat", XMLATTRIBUTES('memory' AS "name"), PLI.MEM) ELSE NULL END, CASE WHEN PLI.MAX_MEM > 0 THEN XMLELEMENT( "stat", XMLATTRIBUTES('max_memory' AS "name"), PLI.MAX_MEM) ELSE NULL END, CASE WHEN PLI.DOP > 0 AND PLI.MIN_MAX_MEM IS NOT NULL AND PLI.MAX_MEM > 0 THEN XMLELEMENT( "stat", XMLATTRIBUTES( 'min_max_mem' AS "name", DECODE(:B68 , 'Y', MOD(TRUNC(MIN_MAX_MEM/1000000), 10000), NULL) AS "iid", MOD(MIN_MAX_MEM, 1000000) AS "sid"), TRUNC(PLI.MIN_MAX_MEM/10000000000)) ELSE NULL END, CASE WHEN PLI.TEMP > 0 THEN XMLELEMENT( "stat", XMLATTRIBUTES('temp' AS "name"), PLI.TEMP) ELSE NULL END, CASE WHEN PLI.MAX_TEMP > 0 THEN XMLELEMENT( "stat", XMLATTRIBUTES('max_temp' AS "name"), PLI.MAX_TEMP) ELSE NULL END, CASE WHEN PLI.MAX_TEMP > 0 THEN XMLELEMENT( "stat", XMLATTRIBUTES('spill_count' AS "name"), PLI.SPILL_COUNT) ELSE NULL END, CASE WHEN PLI.DOP > 0 AND PLI.MAX_MAX_TEMP IS NOT NULL AND PLI.MAX_TEMP > 0 THEN XMLELEMENT( "stat", XMLATTRIBUTES( 'max_max_temp' AS "name", DECODE(:B68 , 'Y', MOD(TRUNC(MAX_MAX_TEMP/1000000), 10000), NULL) AS "iid", MOD(MAX_MAX_TEMP, 1000000) AS "sid"), TRUNC(PLI.MAX_MAX_TEMP/10000000000)) ELSE NULL END, CASE WHEN PLI.READ_REQS > 0 THEN XMLELEMENT( "stat", XMLATTRIBUTES('read_reqs' AS "name"), PLI.READ_REQS) ELSE NULL END, CASE WHEN PLI.DOP > 0 AND PLI.MAX_READ_REQS IS NOT NULL AND PLI.READ_REQS > 0 THEN XMLELEMENT( "stat", XMLATTRIBUTES( 'max_read_reqs' AS "name", DECODE(:B68 , 'Y', MOD(TRUNC(PLI.MAX_READ_REQS/1000000), 10000), NULL) AS "iid", MOD(PLI.MAX_READ_REQS, 1000000) AS "sid"), TRUNC(PLI.MAX_READ_REQS/10000000000)) ELSE NULL END, CASE WHEN PLI.READ_BYTES > 0 THEN XMLELEMENT( "stat", XMLATTRIBUTES('read_bytes' AS "name"), PLI.READ_BYTES) ELSE NULL END, CASE WHEN PLI.DOP > 0 AND PLI.MAX_READ_BYTES IS NOT NULL AND PLI.READ_BYTES > 0 THEN XMLELEMENT( "stat", XMLATTRIBUTES( 'max_read_bytes' AS "name", DECODE(:B68 , 'Y', MOD(TRUNC(PLI.MAX_READ_BYTES/1000000), 10000), NULL ) AS "iid", MOD(PLI.MAX_READ_BYTES, 1000000) AS "sid"), TRUNC(PLI.MAX_READ_BYTES/10000000000)) ELSE NULL END, CASE WHEN PLI.WRITE_REQS > 0 THEN XMLELEMENT( "stat", XMLATTRIBUTES('write_reqs' AS "name"), PLI.WRITE_REQS) ELSE NULL END, CASE WHEN PLI.DOP > 0 AND PLI.MAX_WRITE_REQS IS NOT NULL AND PLI.WRITE_REQS > 0 THEN XMLELEMENT( "stat", XMLATTRIBUTES( 'max_write_reqs' AS "name", DECODE(:B68 , 'Y', MOD(TRUNC(PLI.MAX_WRITE_REQS/1000000), 10000), NULL) AS "iid", MOD(PLI.MAX_WRITE_REQS, 1000000) AS "sid"), TRUNC(PLI.MAX_WRITE_REQS/10000000000)) ELSE NULL END, CASE WHEN PLI.WRITE_BYTES > 0 THEN XMLELEMENT( "stat", XMLATTRIBUTES('write_bytes' AS "name"), PLI.WRITE_BYTES) ELSE NULL END, CASE WHEN PLI.DOP > 0 AND PLI.MAX_WRITE_BYTES IS NOT NULL AND PLI.WRITE_BYTES > 0 THEN XMLELEMENT( "stat", XMLATTRIBUTES( 'max_write_bytes' AS "name", DECODE(:B68 , 'Y', MOD(TRUNC(PLI.MAX_WRITE_BYTES/1000000), 10000), NULL) AS "iid", MOD(PLI.MAX_WRITE_BYTES, 1000000) AS "sid"), TRUNC(PLI.MAX_WRITE_BYTES/10000000000)) ELSE NULL END, CASE WHEN PLI.IO_INTER_BYTES IS NOT NULL AND PLI.IO_BYTES > 0 AND PLI.IO_BYTES != PLI.IO_INTER_BYTES THEN XMLELEMENT( "stat", XMLATTRIBUTES('io_inter_bytes' AS "name"), PLI.IO_INTER_BYTES) ELSE NULL END, CASE WHEN PLI.DOP > 0 AND PLI.MAX_IO_INTER_BYTES IS NOT NULL AND PLI.IO_BYTES > 0 AND PLI.IO_BYTES != PLI.IO_INTER_BYTES THEN XMLELEMENT( "stat", XMLATTRIBUTES( 'max_io_inter_bytes' AS "name", DECODE(:B68 , 'Y', MOD(TRUNC(MAX_IO_INTER_BYTES/1000000), 10000), NULL) AS "iid", MOD(MAX_IO_INTER_BYTES, 1000000) AS "sid"), TRUNC(PLI.MAX_IO_INTER_BYTES/10000000000)) ELSE NULL END, CASE WHEN PLI.IO_INTER_BYTES IS NOT NULL AND PLI.IO_BYTES > 0 AND PLI.IO_BYTES != PLI.IO_INTER_BYTES THEN XMLELEMENT( " stat", XMLATTRIBUTES('cell_offload_efficiency' AS "name"), ROUND(PLI.IO_BYTES / DECODE(PLI.IO_INTER_BYTES, 0, 1, PLI.IO_INTER_BYTES), 2)) ELSE NULL END), NVL2(STAT_GID, XMLELEMENT( "rwsstats", XMLATTRIBUTES( PLI.STAT_GID AS "group_id"), DECODE(GID_ROWNUM, 1, (SELECT XMLELEMENT( "metadata", NULL, XMLAGG( XMLELEMENT( "stat", XMLATTRIBUTES( ROWNUM AS "id", NAME AS "name", DESCRIPTION AS "desc", TYPE AS "type", DECODE(FLAGS, 0, NULL, FLAGS) AS "flags"), NULL) ORDER BY ID)) FROM V$SQL_MONITOR_STATNAME WHERE GROUP_ID = PLI.STAT_GID), NULL), NVL2(STAT1_VALUE, XMLELEMENT( "stat", XMLATTRIBUTES(1 AS "id"), STAT1_VALUE), NULL), NVL2(STAT2_VALUE, XMLELEMENT( "stat", XMLATTRIBUTES(2 AS "id"), STAT2_VALUE), NULL), NVL2(STAT3_VALUE, XMLELEMENT( "stat", XMLATTRIBUTES(3 AS "id"), STAT3_VALUE), NULL), NVL2(STAT4_VALUE, XMLELEMENT( "stat", XMLATTRIBUTES(4 AS "id"), STAT4_VALUE), NULL), NVL2(STAT5_VALUE, XMLELEMENT( "stat", XMLATTRIBUTES(5 AS "id"), STAT5_VALUE), NULL), NVL2(STAT6_VALUE, XMLELEMENT( "stat", XMLATTRIBUTES(6 AS "id"), STAT6_VALUE), NULL), NVL2(STAT7_VALUE, XMLELEMENT( "stat", XMLATTRIBUTES(7 AS "id"), STAT7_VALUE), NULL), NVL2(STAT8_VALUE, XMLELEMENT( "stat", XMLATTRIBUTES(8 AS "id"), STAT8_VALUE), NULL), NVL2(STAT9_VALUE, XMLELEMENT( "stat", XMLATTRIBUTES(9 AS "id"), STAT9_VALUE), NULL), NVL2(STAT10_VALUE, XMLELEMENT( "stat", XMLATTRIBUTES(10 AS "id"), STAT10_VALUE), NULL)), NULL), CASE WHEN PLI.LINE_ACTIVITY_COUNT > 0 AND :B33 = 1 THEN XMLELEMENT( "activity_sampled", XMLATTRIBUTES( TO_CHAR(PLI.LINE_ACTIVITY_START, :B12 ) AS "start_time", TO_CHAR(PLI.LINE_ACTIVITY_END, :B12 ) AS "end_time", ROUND((PLI.LINE_ACTIVITY_END - PLI.LINE_ACTIVITY_START) * 3600*24) + 1 AS "duration", PLI.LINE_ACTIVITY_COUNT AS "count", PLI.LINE_IMQ_COUNT AS "imq_count", PLI.LINE_WAIT_COUNT AS "wait_count", PLI.LINE_CPU_COUNT AS "cpu_count", PLI.LINE_OTHER_SQL_COUNT AS "other_sql_count", :B40 AS "cpu_cores", :B39 AS "hyperthread"), PLI.ACTIVITY_TOTAL, PLI.PLAN_ACTIVITY_HISTO) ELSE NULL END) ORDER BY PLI.PLAN_LINE_ID) ) FROM (SELECT AT.MAX_LINE_ACTIVITY_COUNT, PM.OVERALL_MAX_IO_REQS, PM.OVERALL_MAX_IO_BYTES, AT.MAX_LINE_IMQ_COUNT, AT.MAX_LINE_CPU_COUNT, AT.MAX_LINE_WAIT_COUNT, AT.LINE_OTHER_SQL_COUNT, AT.MAX_LINE_OTHER_SQL_COUNT, PM.PLAN_LINE_ID, PM.PARENT_ID, PM.OPERATION, PM.OPTIONS, PM.DEPTH, PM.POSITION, PM.INACTIVE, CASE WHEN PM.OPERATION = 'PX COORDINATOR' AND :B23 = 'Y' AND (PM.PX_SERVER_SET IS NOT NULL OR AH.PX_SERVER_SET IS NOT NULL) THEN 'QC' WHEN PM.PX_ SERVER_SET IS NOT NULL THEN TO_CHAR(PM.PX_SERVER_SET) WHEN AH.PX_SERVER_SET IS NOT NULL THEN TO_CHAR(AH.PX_SERVER_SET) WHEN (:B23 = 'N' OR (PM.LAST_CHANGE_TIME IS NULL AND AT.LINE_ACTIVITY_END IS NULL)) THEN NULL ELSE 'QC' END PX_TYPE, PM.FIRST_CHANGE_TIME, AT.LINE_ACTIVITY_START, PM.LAST_CHANGE_TIME, PM.OVERALL_LAST_CHANGE_TIME, AT.LINE_ACTIVITY_END, AT.OVERALL_LINE_ACTIVITY_END, LEAST(NVL(AT.LINE_ACTIVITY_START, PM.FIRST_CHANGE_TIME), NVL(PM.FIRST_CHANGE_TIME, AT.LINE_ACTIVITY_START)) FIRST_MOVE_TIME, GREATEST(NVL(AT.LINE_ACTIVITY_END, PM.LAST_CHANGE_TIME), NVL(PM.LAST_CHANGE_TIME, AT.LINE_ACTIVITY_END)) LAST_MOVE_TIME, GREATEST(NVL(AT.OVERALL_LINE_ACTIVITY_END, PM.OVERALL_LAST_CHANGE_TIME), NVL(PM.OVERALL_LAST_CHANGE_TIME, AT.OVERALL_LINE_ACTIVITY_END)) OVERALL_LAST_MOVE_TIME, CASE WHEN PM.STARTS IS NOT NULL AND PM.STARTS > 0 THEN 1 ELSE 0 END HAS_EXECUTED, PM.OBJECT_NAME, PM.OBJECT_TYPE, PM.OBJECT_OWNER, PM.PARTITION_START, PM.PARTITION_STOP, PM.CARDINAL ITY, PM.BYTES, PM.COST, PM.TEMP_SPACE, PM.TIME, PM.CPU_COST, PM.IO_COST, LO.PERCENT_COMPLETE, LO.TIME_REMAINING, PM.STARTS, PM.DOP, PM.MAX_STARTS, PM.OUTPUT_ROWS, PM.NEED_ROWS, PM.MAX_OUTPUT_ROWS, PM.MEM, PM.MAX_MEM, PM.MIN_MAX_MEM, PM.TEMP, PM.MAX_TEMP, PM.SPILL_COUNT, PM.MAX_MAX_TEMP, PM.READ_REQS, PM.MAX_READ_REQS, PM.READ_BYTES, PM.MAX_READ_BYTES, PM.WRITE_REQS, PM.MAX_WRITE_REQS, PM.WRITE_BYTES, PM.MAX_WRITE_BYTES, PM.IO_INTER_BYTES, PM.IO_BYTES, PM.MAX_IO_INTER_BYTES, AT.LINE_ACTIVITY_COUNT, AT.LINE_IMQ_COUNT, AT.LINE_WAIT_COUNT, AT.LINE_CPU_COUNT, AT.ACTIVITY_TOTAL, AH.PLAN_ACTIVITY_HISTO, PM.STAT_GID, PM.GID_ROWNUM, PM.STAT1_VALUE, PM.STAT2_VALUE, PM.STAT3_VALUE, PM.STAT4_VALUE, PM.STAT5_VALUE, PM.STAT6_VALUE, PM.STAT7_VALUE, PM.STAT8_VALUE, PM.STAT9_VALUE, PM.STAT10_VALUE FROM (SELECT AT0.*, MAX(LINE_ACTIVITY_END) OVER() OVERALL_LINE_ACTIVITY_END, MAX(LINE_ACTIVITY_COUNT) OVER() MAX_LINE_ACTIVITY_COUNT, MAX(LINE_IMQ_COUNT) O VER() MAX_LINE_IMQ_COUNT, MAX(LINE_CPU_COUNT) OVER() MAX_LINE_CPU_COUNT, MAX(LINE_WAIT_COUNT) OVER() MAX_LINE_WAIT_COUNT, MAX(LINE_OTHER_SQL_COUNT) OVER() MAX_LINE_OTHER_SQL_COUNT FROM (SELECT AD1.PLAN_LINE_ID, MIN(AD1.LINE_ACTIVITY_START) LINE_ACTIVITY_START, MAX(AD1.LINE_ACTIVITY_END) LINE_ACTIVITY_END, SUM(AD1.ACTIVITY_COUNT) LINE_ACTIVITY_COUNT, SUM(AD1.IMQ_COUNT) LINE_IMQ_COUNT, SUM(AD1.WAIT_COUNT) LINE_WAIT_COUNT, SUM(AD1.OTHER_SQL_COUNT) LINE_OTHER_SQL_COUNT, SUM(AD1.CPU_COUNT) LINE_CPU_COUNT, SUBSTR(MAX(LPAD(AD1.ACTIVITY_COUNT, 10)|| AD1.ACTIVITY_TYPE), 11) MOST_ACTIVE, XMLAGG(XMLELEMENT( "activity", XMLATTRIBUTES( AD1.ACTIVITY_TYPE AS "class", AD1.EVENT_NAME AS "event"), AD1.ACTIVITY_COUNT) ORDER BY AD1.ACTIVITY_TYPE, AD1.EVENT_NAME) ACTIVITY_TOTAL FROM (SELECT AD0.PLAN_LINE_ID, AD0.ACTIVITY_TYPE, AD0.EVENT_NAME, MIN(AD0.ACTIVITY_START) LINE_ACTIVITY_START, MAX(AD0.ACTIVITY_END) LINE_ACTIVITY_END, SUM(AD0.ACTIVITY_COUNT) ACTI VITY_COUNT, SUM(AD0.IMQ_COUNT) IMQ_COUNT, SUM(AD0.WAIT_COUNT) WAIT_COUNT, SUM(AD0.CPU_COUNT) CPU_COUNT, SUM(AD0.OTHER_SQL_COUNT) OTHER_SQL_COUNT, MAX(AD0.DFO_MOST_ACTIVE_IID) DFO_MOST_ACTIVE_IID, MAX(AD0.DFO_MOST_ACTIVE_SID) DFO_MOST_ACTIVE_SID, SUM(AD0.DFO_MOST_ACTIVE_COUNT) DFO_MOST_ACTIVE_COUNT FROM ASH_DATA AD0 WHERE AD0.PLAN_LINE_ID IS NOT NULL GROUP BY AD0.PLAN_LINE_ID, AD0.ACTIVITY_TYPE, AD0.EVENT_NAME) AD1 GROUP BY AD1.PLAN_LINE_ID) AT0) AT, (SELECT AD2.PLAN_LINE_ID, MIN(AD2.PX_SERVER_SET) PX_SERVER_SET, MIN(AD2.LINE_ACTIVITY_START) LINE_ACTIVITY_START, MAX(AD2.LINE_ACTIVITY_END) LINE_ACTIVITY_END, SUM(AD2.ACTIVITY_COUNT) ACTIVITY_COUNT, SUM(AD2.IMQ_COUNT) IMQ_COUNT, SUM(AD2.WAIT_COUNT) WAIT_COUNT, SUM(AD2.CPU_COUNT) CPU_COUNT, SUM(AD2.OTHER_SQL_COUNT) OTHER_SQL_COUNT, CASE WHEN :B29 = 1 AND SUM(AD2.ACTIVITY_COUNT) > 0 THEN XMLELEMENT( "activity_histogram", XMLATTRIBUTES( :B26 AS "bucket_interval", :B27 AS "bucket_count", T O_CHAR( :B20 , :B12 ) AS "start_time", TO_CHAR(:B22 , :B12 ) AS "end_time", ROUND((:B22 -:B20 ) *3600*24) + 1 AS "duration"), XMLAGG(XMLELEMENT( "bucket", XMLATTRIBUTES( AD2.BUCKET_NUM AS "number"), AD2.ACTIVITY_BUCKET) ORDER BY AD2.BUCKET_NUM)) ELSE NULL END PLAN_ACTIVITY_HISTO FROM (SELECT AD1.PLAN_LINE_ID, AD1.BUCKET_NUM, MIN(AD1.PX_SERVER_SET) PX_SERVER_SET, MIN(AD1.LINE_ACTIVITY_START) LINE_ACTIVITY_START, MAX(AD1.LINE_ACTIVITY_END) LINE_ACTIVITY_END, MIN(AD1.BUCKET_ACTIVITY_START) BUCKET_ACTIVITY_START, MAX(AD1.BUCKET_ACTIVITY_END) BUCKET_ACTIVITY_END, SUM(AD1.ACTIVITY_COUNT) ACTIVITY_COUNT, SUM(AD1.IMQ_COUNT) IMQ_COUNT, SUM(AD1.WAIT_COUNT) WAIT_COUNT, SUM(AD1.CPU_COUNT) CPU_COUNT, SUM(AD1.OTHER_SQL_COUNT) OTHER_SQL_COUNT, SUBSTR(MAX(LPAD(AD1.ACTIVITY_COUNT, 10)|| AD1.ACTIVITY_TYPE), 11) MOST_ACTIVE, XMLAGG(NVL2(AD1.ACTIVITY_TYPE, XMLELEMENT( "activity", XMLATTRIBUTES( AD1.ACTIVITY_TYPE AS "cl ass", AD1.EVENT_NAME AS "event"), AD1.ACTIVITY_COUNT), NULL) ORDER BY AD1.ACTIVITY_TYPE, AD1.EVENT_NAME) ACTIVITY_BUCKET FROM (SELECT AD0.PLAN_LINE_ID, AD0.PLAN_ACTIVITY_BUCKET_NUM BUCKET_NUM, AD0.ACTIVITY_TYPE, AD0.EVENT_NAME, MIN(NVL2(AD0.ACTIVITY_START, AD0.PX_SERVER_SET, NULL)) PX_SERVER_SET, MIN(AD0.ACTIVITY_START) LINE_ACTIVITY_START, MAX(AD0.ACTIVITY_END) LINE_ACTIVITY_END, MIN(AD0.BUCKET_ACTIVITY_START) BUCKET_ACTIVITY_START, MAX(AD0.BUCKET_ACTIVITY_END) BUCKET_ACTIVITY_END, SUM(AD0.IMQ_COUNT) IMQ_COUNT, SUM(AD0.CPU_COUNT) CPU_COUNT, SUM(AD0.WAIT_COUNT) WAIT_COUNT, SUM(AD0.OTHER_SQL_COUNT) OTHER_SQL_COUNT, SUM(AD0.ACTIVITY_COUNT) ACTIVITY_COUNT FROM ASH_DATA AD0 GROUP BY AD0.PLAN_LINE_ID, AD0.PLAN_ACTIVITY_BUCKET_NUM, AD0.ACTIVITY_TYPE, AD0.EVENT_NAME) AD1 GROUP BY AD1.PLAN_LINE_ID, AD1.BUCKET_NUM) AD2 GROUP BY AD2.PLAN_LINE_ID) AH, (SELECT LO.SQL_PLAN_LINE_ID PLAN_LINE_ID, DECODE(SUM(LO.TOTALWORK), 0, NULL, ROUND(SUM(LO.SOFAR)*100/SUM (LO.TOTALWORK))) PERCENT_COMPLETE, MAX(LO.TIME_REMAINING) TIME_REMAINING FROM GV$SESSION_LONGOPS LO, MONITOR_DATA MO WHERE (:B49 = 'Y' OR :B71 = 'DONE (ERROR)') AND LO.SQL_ID = :B9 AND LO.SQL_EXEC_START = :B8 AND LO.SQL_EXEC_ID = :B7 AND LO.INST_ID = MO.INST_ID AND LO.SID = MO.SID GROUP BY LO.SQL_PLAN_LINE_ID) LO, (SELECT PM0.*, CASE WHEN PM0.STARTS IS NULL OR PM0.STARTS = 0 OR PM0.OUTPUT_ROWS IS NULL THEN NULL ELSE 1 END NEED_ROWS, ROW_NUMBER() OVER(PARTITION BY PM0.STAT_GID ORDER BY PM0.PLAN_LINE_ID ) GID_ROWNUM, MAX(LAST_CHANGE_TIME) OVER() OVERALL_LAST_CHANGE_TIME, MAX(MAX_IO_REQS) OVER() OVERALL_MAX_IO_REQS, MAX(MAX_IO_BYTES) OVER() OVERALL_MAX_IO_BYTES FROM (SELECT /*+ leading(mo) use_hash(plm) */ PLM.PLAN_LINE_ID PLAN_LINE_ID, PLM.PLAN_OPERATION OPERATION, PLM.PLAN_OPTIONS OPTIONS, MAX(PLM.PLAN_PARENT_ID) PARENT_ID, MAX(PLM.PLAN_DEPTH) DEPTH, MAX(PLM.PLAN_POSITION) POSITION, MAX(PLM.PLAN_OPERATION_INACTIVE) INACTIVE, MAX(PLM.PLAN_OBJECT_OWNER) OBJECT_OWNER, MAX(P LM.PLAN_OBJECT_NAME) OBJECT_NAME, MAX(PLM.PLAN_OBJECT_TYPE) OBJECT_TYPE, MAX(PLM.PLAN_COST) COST, MAX(PLM.PLAN_CARDINALITY) CARDINALITY, MAX(PLM.PLAN_BYTES) BYTES, MAX(PLM.PLAN_CPU_COST) CPU_COST, MAX(PLM.PLAN_IO_COST) IO_COST, MAX(PLM.PLAN_TEMP_SPACE) TEMP_SPACE, MAX(PLM.PLAN_TIME) TIME, MAX(PLM.PLAN_PARTITION_START) PARTITION_START, MAX(PLM.PLAN_PARTITION_STOP) PARTITION_STOP, MIN(PLM.FIRST_CHANGE_TIME) FIRST_CHANGE_TIME, MAX(PLM.LAST_CHANGE_TIME) LAST_CHANGE_TIME, MIN(PLM.LAST_CHANGE_TIME) MIN_LAST_CHANGE_TIME, MIN(NVL2(PLM.FIRST_CHANGE_TIME, MO.PX_SERVER_SET, NULL)) PX_SERVER_SET, COUNT(CASE WHEN PLM.PAR IS NOT NULL AND PLM.STARTS IS NOT NULL AND PLM.STARTS > 0 AND PLM.PLAN_LINE_ID != 0 AND PLM.PLAN_OPERATION != 'PX COORDINATOR' THEN 1 ELSE NULL END) DOP, SUM(PLM.STARTS) STARTS, MAX(NVL2(PAR, PLM.STARTS * 10000000000 + PLM.ES, NULL)) MAX_STARTS, SUM(PLM.OUTPUT_ROWS) OUTPUT_ROWS, MAX(NVL2(PAR, PLM.OUTPUT_ROWS * 10000000000 +PLM.ES, NULL)) MAX_OUTPUT_ROWS, SUM(PLM.WORKAREA_MEM) MEM, SUM(PLM.WORKAREA_MAX_MEM) MAX_MEM, MIN(NVL2(PAR, PLM.WORKAREA_MAX_MEM * 10000000000 + PLM.ES, NULL)) MIN_MAX_MEM, SUM(PLM.WORKAREA_TEMPSEG) TEMP, SUM(PLM.WORKAREA_MAX_TEMPSEG) MAX_TEMP, MAX(NVL2(PAR, PLM.WORKAREA_MAX_TEMPSEG * 10000000000 + PLM.ES, NULL)) MAX_MAX_TEMP, COUNT(PLM.WORKAREA_MAX_TEMPSEG) SPILL_COUNT, SUM(PLM.PHYSICAL_READ_REQUESTS) READ_REQS, MAX(NVL2(PAR, PLM.PHYSICAL_READ_REQUESTS * 10000000000 + PLM.ES, NULL)) MAX_READ_REQS, SUM(PLM.PHYSICAL_READ_BYTES) READ_BYTES, MAX(NVL2(PAR, PLM.PHYSICAL_READ_BYTES * 10000000000 + PLM.ES, NULL)) MAX_READ_BYTES, SUM(PLM.PHYSICAL_WRITE_REQUESTS) WRITE_REQS, MAX(NVL2(PAR, PLM.PHYSICAL_WRITE_REQUESTS * 10000000000 + PLM.ES, NULL)) MAX_WRITE_REQS, SUM(PLM.PHYSICAL_WRITE_BYTES) WRITE_BYTES, MAX(NVL2(PAR, PLM.PHYSICAL_WRITE_BYTES * 10000000000 + PLM.ES, NULL)) MAX_WRITE_BYTES, NVL(SUM(PLM.PHYSICAL_READ_BYTES), 0) + NVL(SUM(PLM.PHYSICAL_WRITE_BYTES), 0) IO_BYTES, SUM(NVL(PLM.PHYSICA L_READ_REQUESTS, 0) + NVL(PLM.PHYSICAL_WRITE_REQUESTS, 0)) MAX_IO_REQS, SUM(NVL(PLM.PHYSICAL_READ_BYTES, 0) + NVL(PLM.PHYSICAL_WRITE_BYTES, 0)) MAX_IO_BYTES, SUM(PLM.IO_INTERCONNECT_BYTES) IO_INTER_BYTES, MAX(NVL2(PAR, PLM.IO_INTERCONNECT_BYTES * 10000000000 + PLM.ES, NULL)) MAX_IO_INTER_BYTES, MAX(OTHERSTAT_GROUP_ID) STAT_GID, NVL(DECODE(MAX(OTHERSTAT_1_TYPE), 3, MAX(OTHERSTAT_1_VALUE), 4, MAX(OTHERSTAT_1_VALUE), 6, MIN(OTHERSTAT_1_VALUE), 7, MIN(OTHERSTAT_1_VALUE), NULL), SUM(DECODE(OTHERSTAT_1_TYPE, 1, OTHERSTAT_1_VALUE, 2, OTHERSTAT_1_VALUE, NULL))) STAT1_VALUE, NVL(MOD((DECODE(MAX(OTHERSTAT_2_TYPE), 3, MAX(OTHERSTAT_2_VALUE), 5, DECODE(MAX(OTHERSTAT_1_TYPE), 4, MAX(RMAX1 + OTHERSTAT_2_VALUE), 7, MIN(RMAX1 + OTHERSTAT_2_VALUE), NULL), 6, MIN(OTHERSTAT_2_VALUE), NULL)), 10000000000000000), SUM(DECODE(OTHERSTAT_2_TYPE, 1, OTHERSTAT_2_VALUE, 2, OTHERSTAT_2_VALUE, NULL))) STAT2_VALUE, NVL(MOD((DECODE(MAX(OTHERSTAT_3_TYPE), 3, MAX(OTHERST AT_3_VALUE), 5, DECODE(MAX(OTHERSTAT_1_TYPE), 4, MAX(RMAX1 + OTHERSTAT_3_VALUE), 7, MIN(RMAX1 + OTHERSTAT_3_VALUE), NULL), 6, MIN(OTHERSTAT_3_VALUE), NULL)), 10000000000000000), SUM(DECODE(OTHERSTAT_3_TYPE, 1, OTHERSTAT_3_VALUE, 2, OTHERSTAT_3_VALUE, NULL))) STAT3_VALUE, NVL(MOD((DECODE(MAX(OTHERSTAT_4_TYPE), 3, MAX(OTHERSTAT_4_VALUE), 5, DECODE(MAX(OTHERSTAT_1_TYPE), 4, MAX(RMAX1 + OTHERSTAT_4_VALUE), 7, MIN(RMAX1 + OTHERSTAT_4_VALUE), NULL), 6, MIN(OTHERSTAT_4_VALUE), NULL)), 10000000000000000), SUM(DECODE(OTHERSTAT_4_TYPE, 1, OTHERSTAT_4_VALUE, 2, OTHERSTAT_4_VALUE, NULL))) STAT4_VALUE, NVL(MOD((DECODE(MAX(OTHERSTAT_5_TYPE), 3, MAX(OTHERSTAT_5_VALUE), 5, DECODE(MAX(OTHERSTAT_1_TYPE), 4, MAX(RMAX1 + OTHERSTAT_5_VALUE), 7, MIN(RMAX1 + OTHERSTAT_5_VALUE), NULL), 6, MIN(OTHERSTAT_5_VALUE), NULL)), 10000000000000000), SUM(DECODE(OTHERSTAT_5_TYPE, 1, OTHERSTAT_5_VALUE, 2, OTHERSTAT_5_VALUE, NULL))) STAT5_VALUE, NVL(MOD((DECODE(MAX( OTHERSTAT_6_TYPE), 3, MAX(OTHERSTAT_6_VALUE), 5, DECODE(MAX(OTHERSTAT_1_TYPE), 4, MAX(RMAX1 + OTHERSTAT_6_VALUE), 7, MIN(RMAX1 + OTHERSTAT_6_VALUE), NULL), 6, MIN(OTHERSTAT_6_VALUE), NULL)), 10000000000000000), SUM(DECODE(OTHERSTAT_6_TYPE, 1, OTHERSTAT_6_VALUE, 2, OTHERSTAT_6_VALUE, NULL))) STAT6_VALUE, NVL(MOD((DECODE(MAX(OTHERSTAT_7_TYPE), 3, MAX(OTHERSTAT_7_VALUE), 5, DECODE(MAX(OTHERSTAT_1_TYPE), 4, MAX(RMAX1 + OTHERSTAT_7_VALUE), 7, MIN(RMAX1 + OTHERSTAT_7_VALUE), NULL), 6, MIN(OTHERSTAT_7_VALUE), NULL)), 10000000000000000), SUM(DECODE(OTHERSTAT_7_TYPE, 1, OTHERSTAT_7_VALUE, 2, OTHERSTAT_7_VALUE, NULL))) STAT7_VALUE, NVL(MOD((DECODE(MAX(OTHERSTAT_8_TYPE), 3, MAX(OTHERSTAT_8_VALUE), 5, DECODE(MAX(OTHERSTAT_1_TYPE), 4, MAX(RMAX1 + OTHERSTAT_8_VALUE), 7, MIN(RMAX1 + OTHERSTAT_8_VALUE), NULL), 6, MIN(OTHERSTAT_8_VALUE), NULL)), 10000000000000000), SUM(DECODE(OTHERSTAT_8_TYPE, 1, OTHERSTAT_8_VALUE, 2, OTHERSTAT_8_VALUE, NULL))) STAT8_VALUE, NVL(MOD((DECODE(MAX(OTHERSTAT_9_TYPE), 3, MAX(OTHERSTAT_9_VALUE), 5, DECODE(MAX(OTHERSTAT_1_TYPE), 4, MAX(RMAX1 + OTHERSTAT_9_VALUE), 7, MIN(RMAX1 + OTHERSTAT_9_VALUE), NULL), 6, MIN(OTHERSTAT_9_VALUE), NULL)), 10000000000000000), SUM(DECODE(OTHERSTAT_9_TYPE, 1, OTHERSTAT_9_VALUE, 2, OTHERSTAT_9_VALUE, NULL))) STAT9_VALUE, NVL(MOD((DECODE(MAX(OTHERSTAT_10_TYPE), 3, MAX(OTHERSTAT_10_VALUE), 5, DECODE(MAX(OTHERSTAT_1_TYPE), 4, MAX(RMAX1 + OTHERSTAT_10_VALUE), 7, MIN(RMAX1 + OTHERSTAT_10_VALUE), NULL), 6, MIN(OTHERSTAT_10_VALUE), NULL)), 10000000000000000), SUM(DECODE(OTHERSTAT_10_TYPE, 1, OTHERSTAT_10_VALUE, 2, OTHERSTAT_10_VALUE, NULL))) STAT10_VALUE FROM (SELECT A.*, OTHERSTAT_1_VALUE * 10000000000000000 RMAX1, A.INST_ID * 1000000 + A.SID ES, DECODE(A.PROCESS_NAME, 'ora', NULL, 1) PAR FROM GV$ALL_SQL_PLAN_MONITOR A) PLM, MONITOR_DATA MO WHERE PLM.SQL_ID = :B9 AND PLM.SQL_EXEC_START = :B8 AND PLM.SQL_EXEC_ID = :B7 AND PLM.INST _ID = MO.INST_ID AND PLM.INST_ID BETWEEN :B11 AND :B10 AND PLM.KEY = MO.KEY GROUP BY PLM.PLAN_LINE_ID, PLM.PLAN_OPERATION, PLM.PLAN_OPTIONS) PM0) PM WHERE AH.PLAN_LINE_ID(+) = PM.PLAN_LINE_ID AND AT.PLAN_LINE_ID(+) = PM.PLAN_LINE_ID AND LO.PLAN_LINE_ID(+) = PM.PLAN_LINE_ID AND (:B21 IS NULL OR PM.PLAN_LINE_ID = :B21 )) PLI) ELSE NULL END, CASE WHEN :B42 = 1 THEN DBMS_SQLTUNE.BUILD_STASH_XML( SESSION_ID=>:B19 , SESSION_SERIAL=>:B18 , SESSION_INST_ID=>:B17 , PX_MODE=>'yes', START_TIME=>:B20 , END_TIME=>:B22 , MISSING_SECONDS=> :B41 , INSTANCE_LOW_FILTER=>:B11 , INSTANCE_HIGH_FILTER=>:B10 , BUCKET_MAX_COUNT=>NULL, BUCKET_INTERVAL=>:B26 , REPORT_LEVEL=>'typical', CPU_CORES=>:B40 , IS_HYPER=>:B39 ) ELSE NULL END), (CASE WHEN :B38 = 1 THEN (SELECT XMLELEMENT( "skewed_sessions", XMLATTRIBUTES( DECODE(MIN(INST_ID), NULL, :B17 , MIN(INST_ID)) AS "min_iid", DECODE(MAX(INST_ID), NULL, :B17 , MAX(INST_ID)) AS "max_iid"), XMLAGG( XMLELEMENT( "s", XMLATTRIBUTES( INST_ID AS "i"), SESSION_ID) ORDER BY INST_ID, SESSION_ID)) FROM (SELECT SESS.* FROM (SELECT DECODE(AD.DFO_MOST_ACTIVE_IID, :B17 , NULL, AD.DFO_MOST_ACTIVE_IID) INST_ID, AD.DFO_MOST_ACTIVE_SID SESSION_ID FROM ASH_DATA AD WHERE AD.DFO_MOST_ACTIVE_COUNT IS NOT NULL GROUP BY AD.DFO_MOST_ACTIVE_IID, AD.DFO_MOST_ACTIVE_SID ORDER BY MAX(AD.DFO_MOST_ACTIVE_COUNT) DESC) SESS WHERE ROWNUM <= 100)) ELSE NULL END), (CASE WHEN :B37 = 1 THEN (SELECT XMLELEMENT( "report_repository_summary", CASE WHEN MA.MAX_DBOP_NAME IS NOT NULL THEN XMLELEMENT( "dbop", XMLATTRIBUTES('F' AS "detail", MA.MAX_DBOP_NAME AS "dbop_name", TO_CHAR(MA.MIN_FIRST_REFRESH_TIME, :B12 ) AS "dbop_exec_start", MA.MAX_DBOP_EXEC_ID AS "dbop_exec_id"), XMLFOREST( MA.MAX_STATUS AS "status", TO_CHAR(NVL(MA.MAX_SQL_EXEC_START, MA.MIN_FIRST_REFRESH_TIME), :B12 )AS "first_refresh_time", TO_CHAR(MA.MAX_LAST_REFRESH_TIME, :B12 )AS "last_refresh_time", MA.SUM_REFRESH_COUNT AS "refresh_count", MA.MAX_INST_ID AS "inst_id", MA.MAX_SESSION_ID AS "session_id", MA.MAX_SESSION_SERIAL AS "session_serial", MA.MAX_USERID AS "user_id", MA.MAX_USERNAME AS "user", MA.MAX_CON_ID AS "con_id", MA.MAX_CON_NAME AS "con_name", MA.MAX_MODULE AS "module", MA.MAX_ACTION AS "action", MA.MAX_SERVICE_NAME AS "service", MA.MAX_CLIENT_ID AS "client_id", MA.MAX_CLIENT_INFO AS "client_info", MA.MAX_PROGRAM AS "program", MA.MAX_PL_ENTRY_OID AS "plsql_entry_object_id", MA.MAX_PL_ENTRY_PROGID AS "plsql_entry_subprogram_id", MA.MAX_PL_OID AS "plsql_object_id", MA.MAX_PL_PROGID AS "plsql_subprogram_id", MA.MAX_PX_IS_CROSS_INSTANCE AS "is_cross_instance", MA.MAX_PX_DOP AS "dop", MA.MAX_PX_DOP_INSTANCES AS "instances"), CASE WHEN MA.MAX_ERROR_NUMBER IS NULL THEN NULL ELSE XMLELEMENT( "error", XMLATTRIBUTES(MA.MAX_ERROR_NUMBER AS "number", MA.MAX_ERROR_FACILITY AS "facility"), MA.MAX_ERROR_MESSAGE) END, XMLELEMENT( "stats", XMLATTRIBUTES('monitor' AS "type"), XMLELEMENT( "stat", XMLATTRIBUTES('duration' AS "name"), GREATEST(ROUND((MA.MAX_LAST_REFRESH_TIME- NVL(MA.MAX_SQL_EXEC_START, MA.MIN_FIRST_REFRESH_TIME))*86400), LEAST(MA.SUM_ELAPSED_TIME/1000000, 1), CEIL(MA.MAX_QUEUING_TIME/1000000))), DECODE(MA.SUM_ELAPSED_TIME, 0, NULL, XMLELEMENT( "stat", XMLATTRIBUTES('elapsed_time' AS "name"), MA.SUM_ELAPSED_TIME)), DECODE(MA.MAX_QUEUING_TIME, 0, NULL, XMLELEMENT( "stat", XMLATTRIBUTES('queuing_time' AS "name"), MA.MAX_QUEUING_TIME)), DECODE(MA.SUM_CPU_TIME, 0, NULL, XMLELEMENT( "s tat", XMLATTRIBUTES('cpu_time' AS "name"), MA.SUM_CPU_TIME)), DECODE(MA.SUM_USER_IO_WAIT_TIME, 0, NULL, XMLELEMENT( "stat", XMLATTRIBUTES('user_io_wait_time' AS "name"), MA.SUM_USER_IO_WAIT_TIME)), DECODE(MA.SUM_APPLICATION_WAIT_TIME, 0, NULL, XMLELEMENT( "stat", XMLATTRIBUTES('application_wait_time' AS "name"), MA.SUM_APPLICATION_WAIT_TIME)), DECODE(MA.SUM_CONCURRENCY_WAIT_TIME, 0, NULL, XMLELEMENT( "stat", XMLATTRIBUTES('concurrency_wait_time' AS "name"), MA.SUM_CONCURRENCY_WAIT_TIME)), DECODE(MA.SUM_CLUSTER_WAIT_TIME, 0, NULL, XMLELEMENT( "stat", XMLATTRIBUTES('cluster_wait_time' AS "name"), MA.SUM_CLUSTER_WAIT_TIME)), DECODE(MA.SUM_PLSQL_EXEC_TIME, 0, NULL, XMLELEMENT( "stat", XMLATTRIBUTES('plsql_exec_time' AS "name"), MA.SUM_PLSQL_EXEC_TIME)), DECODE(MA.SUM_JAVA_EXEC_TIME, 0, NULL, XMLELEMENT( "stat", XMLATTRIBUTES('java _exec_time' AS "name"), MA.SUM_JAVA_EXEC_TIME)), DECODE(MA.SUM_OTHER_WAIT_TIME, 0, NULL, XMLELEMENT( "stat", XMLATTRIBUTES('other_wait_time' AS "name"), MA.SUM_OTHER_WAIT_TIME)), DECODE(MA.SUM_FETCHES, 0, NULL, XMLELEMENT( "stat", XMLATTRIBUTES('user_fetch_count' AS "name"), MA.SUM_FETCHES)), DECODE(MA.SUM_BUFFER_GETS, 0, NULL, XMLELEMENT( "stat", XMLATTRIBUTES('buffer_gets' AS "name"), MA.SUM_BUFFER_GETS)), DECODE(MA.SUM_READ_REQS, 0, NULL, XMLELEMENT( "stat", XMLATTRIBUTES('read_reqs' AS "name"), MA.SUM_READ_REQS)), DECODE(MA.SUM_READ_BYTES, 0, NULL, XMLELEMENT( "stat", XMLATTRIBUTES('read_bytes' AS "name"), MA.SUM_READ_BYTES)), DECODE(MA.SUM_WRITE_REQS, 0, NULL, XMLELEMENT( "stat", XMLATTRIBUTES('write_reqs' AS "name"), MA.SUM_WRITE_REQS)), DECODE(MA.SUM_WRITE_BYTES, 0, NULL, XMLELEMENT( "stat", XMLATTRI BUTES('write_bytes' AS "name"), MA.SUM_WRITE_BYTES)), CASE WHEN MA.SUM_IO_INTER_BYTES IS NULL OR MA.SUM_IO_INTER_BYTES = MA.SUM_IO_BYTES OR MA.SUM_IO_BYTES = 0 OR NVL(MA.SUM_IO_ELIG_BYTES, 0) = 0 THEN NULL ELSE XMLELEMENT( "stat", XMLATTRIBUTES('cell_offload_efficiency' AS "name"), ROUND(MA.SUM_IO_BYTES / DECODE(MA.SUM_IO_INTER_BYTES, 0, 1, MA.SUM_IO_INTER_BYTES), 2)) END, CASE WHEN NVL(MA.SUM_IO_ELIG_BYTES, 0) = 0 OR MA.SUM_IO_BYTES = 0 OR MA.SUM_IO_UNC_BYTES = MA.SUM_IO_RET_BYTES THEN NULL ELSE XMLELEMENT( "stat", XMLATTRIBUTES('cell_offload_efficiency2' AS "name"), GREATEST(0, ROUND(100 * (GREATEST(MA.SUM_IO_UNC_BYTES, MA.SUM_IO_ELIG_BYTES) - MA.SUM_IO_RET_BYTES) / MA.SUM_IO_ELIG_BYTES, 2))) END) ) ELSE XMLELEMENT( "sql", XMLATTRIBUTES( MA.MAX_SQL_ID AS "sql_id", TO_CHAR(MA.MAX_SQL_EXEC_START, :B12 ) AS "sql_exec_start", MA.MAX_SQL_EXEC_ID AS "sql_exec_id"), XMLFOREST(MA.MA X_STATUS AS "status", SUBSTR(MA.SQLMON_TEXT, 1, 100) AS "sql_text", TO_CHAR(MA.MIN_FIRST_REFRESH_TIME, :B12 ) AS "first_refresh_time", TO_CHAR(MA.MAX_LAST_REFRESH_TIME, :B12 ) AS "last_refresh_time", MA.SUM_REFRESH_COUNT AS "refresh_count", MA.MAX_INST_ID AS "inst_id", MA.MAX_SESSION_ID AS "session_id", MA.MAX_SESSION_SERIAL AS "session_serial", MA.MAX_USERID AS "user_id", MA.MAX_USERNAME AS "user", MA.MAX_CON_ID AS "con_id", MA.MAX_CON_NAME AS "con_name", MA.MAX_MODULE AS "module", MA.MAX_ACTION AS "action", MA.MAX_SERVICE_NAME AS "service", MA.MAX_CLIENT_ID AS "client_id", MA.MAX_CLIENT_INFO AS "client_info", MA.MAX_PROGRAM AS "program", MA.MAX_PLAN_HASH_VALUE AS "plan_hash", MA.MAX_PL_ENTRY_OID AS "plsql_entry_object_id", MA.MAX_PL_ENTRY_PROGID AS "plsql_ent ry_subprogram_id", MA.MAX_PL_OID AS "plsql_object_id", MA.MAX_PL_PROGID AS "plsql_subprogram_id", MA.MAX_PX_IS_CROSS_INSTANCE AS "is_cross_instance", MA.MAX_PX_DOP AS "dop", MA.MAX_PX_DOP_INSTANCES AS "instances", MA.SUM_SERVERS_REQUESTED AS "px_servers_requested", MA.SUM_SERVERS_ALLOCATED AS "px_servers_allocated"), XMLELEMENT( "stats", XMLATTRIBUTES('monitor' AS "type"), XMLELEMENT( "stat", XMLATTRIBUTES('duration' AS "name"), GREATEST(ROUND((MA.MAX_LAST_REFRESH_TIME- MA.MAX_SQL_EXEC_START) * 86400), LEAST(MA.SUM_ELAPSED_TIME/1000000, 1), CEIL(MA.MAX_QUEUING_TIME/1000000))), DECODE(MA.SUM_ELAPSED_TIME, 0, NULL, XMLELEMENT( "stat", XMLATTRIBUTES('elapsed_time' AS "name"), MA.SUM_ELAPSED_TIME)), DECODE(MA.MAX_QUEUING_TIME, 0, NULL, XMLELEMENT( "stat", XMLATTRIBUTES('queuing_time' AS "name"), MA.MAX_QUEUING_ TIME)), DECODE(MA.SUM_CPU_TIME, 0, NULL, XMLELEMENT( "stat", XMLATTRIBUTES('cpu_time' AS "name"), MA.SUM_CPU_TIME)), DECODE(MA.SUM_USER_IO_WAIT_TIME, 0, NULL, XMLELEMENT( "stat", XMLATTRIBUTES('user_io_wait_time' AS "name"), MA.SUM_USER_IO_WAIT_TIME)), DECODE(MA.SUM_APPLICATION_WAIT_TIME, 0, NULL, XMLELEMENT( "stat", XMLATTRIBUTES('application_wait_time' AS "name"), MA.SUM_APPLICATION_WAIT_TIME)), DECODE(MA.SUM_CONCURRENCY_WAIT_TIME, 0, NULL, XMLELEMENT( "stat", XMLATTRIBUTES('concurrency_wait_time' AS "name"), MA.SUM_CONCURRENCY_WAIT_TIME)), DECODE(MA.SUM_CLUSTER_WAIT_TIME, 0, NULL, XMLELEMENT( "stat", XMLATTRIBUTES('cluster_wait_time' AS "name"), MA.SUM_CLUSTER_WAIT_TIME)), DECODE(MA.SUM_PLSQL_EXEC_TIME, 0, NULL, XMLELEMENT( "stat", XMLATTRIBUTES('plsql_exec_time' AS "name"), MA.SUM_PLSQL_EXEC_TIME)), DECODE(MA.SUM_JAVA_EXEC_TIME , 0, NULL, XMLELEMENT( "stat", XMLATTRIBUTES('java_exec_time' AS "name"), MA.SUM_JAVA_EXEC_TIME)), DECODE(MA.SUM_OTHER_WAIT_TIME, 0, NULL, XMLELEMENT( "stat", XMLATTRIBUTES('other_wait_time' AS "name"), MA.SUM_OTHER_WAIT_TIME)), DECODE(MA.SUM_FETCHES, 0, NULL, XMLELEMENT( "stat", XMLATTRIBUTES('user_fetch_count' AS "name"), MA.SUM_FETCHES)), DECODE(MA.SUM_BUFFER_GETS, 0, NULL, XMLELEMENT( "stat", XMLATTRIBUTES('buffer_gets' AS "name"), MA.SUM_BUFFER_GETS)), DECODE(MA.SUM_READ_REQS, 0, NULL, XMLELEMENT( "stat", XMLATTRIBUTES('read_reqs' AS "name"), MA.SUM_READ_REQS)), DECODE(MA.SUM_READ_BYTES, 0, NULL, XMLELEMENT( "stat", XMLATTRIBUTES('read_bytes' AS "name"), MA.SUM_READ_BYTES)), DECODE(MA.SUM_WRITE_REQS, 0, NULL, XMLELEMENT( "stat", XMLATTRIBUTES('write_reqs' AS "name"), MA.SUM_WRITE_REQS)), DECODE(MA.SUM_ WRITE_BYTES, 0, NULL, XMLELEMENT( "stat", XMLATTRIBUTES('write_bytes' AS "name"), MA.SUM_WRITE_BYTES)), DECODE(MA.SUM_IO_UNC_BYTES, 0, NULL, XMLELEMENT( "stat", XMLATTRIBUTES('unc_bytes' AS "name"), MA.SUM_IO_UNC_BYTES)), DECODE(MA.SUM_IO_ELIG_BYTES, 0, NULL, XMLELEMENT( "stat", XMLATTRIBUTES('elig_bytes' AS "name"), MA.SUM_IO_ELIG_BYTES)), DECODE(MA.SUM_IO_RET_BYTES, 0, NULL, XMLELEMENT( "stat", XMLATTRIBUTES('ret_bytes' AS "name"), MA.SUM_IO_RET_BYTES)), CASE WHEN MA.SUM_IO_INTER_BYTES IS NULL OR MA.SUM_IO_INTER_BYTES = MA.SUM_IO_BYTES OR MA.SUM_IO_BYTES = 0 OR NVL(MA.SUM_IO_ELIG_BYTES, 0) = 0 THEN NULL ELSE XMLELEMENT( "stat", XMLATTRIBUTES('cell_offload_efficiency' AS "name"), ROUND(MA.SUM_IO_BYTES / DECODE(MA.SUM_IO_INTER_BYTES, 0, 1, MA.SUM_IO_INTER_BYTES), 2)) END, CASE WHEN NVL(MA.SUM_IO_ELIG_BYTES, 0) = 0 OR MA.SUM_IO_BYTES = 0 OR MA.SUM_IO_UNC_B YTES = MA.SUM_IO_RET_BYTES THEN NULL ELSE XMLELEMENT( "stat", XMLATTRIBUTES('cell_offload_efficiency2' AS "name"), GREATEST(0, ROUND(100 * (GREATEST(MA.SUM_IO_UNC_BYTES, MA.SUM_IO_ELIG_BYTES) - MA.SUM_IO_RET_BYTES) / MA.SUM_IO_ELIG_BYTES, 2))) END) ) END) FROM MONITOR_AGG MA) ELSE NULL END) FROM (SELECT CASE WHEN V1.XPLAN_XML IS NULL OR V1.XPLAN_XML.EXISTSNODE('/error') > 0 THEN NULL ELSE V1.XPLAN_XML END XPLAN_XML FROM (SELECT CASE WHEN :B36 = 1 THEN DBMS_XPLAN.BUILD_PLAN_XML( TABLE_NAME=>'gv$all_sql_plan', PLAN_TAG=>'plan', FILTER_PREDS=>:B35 , FORMAT=>'-PROJECTION +ALIAS +ADAPTIVE') ELSE NULL END XPLAN_XML FROM DUAL) V1) CONST_VIEW
a4akgk9g69h83SELECT d.* FROM ( SELECT d.*, ROWNUM ROW# FROM (SELECT d.* FROM (select sql_text AS SQL, s.cpu_time/1000 AS CPU_MSECONDS, CASE WHEN s.cpu_time < 1000 THEN '< 1 ms' WHEN s.cpu_time < 1000000 THEN to_char(round(s.cpu_time/1000, 1)) || ' ms' WHEN s.cpu_time < 60000000 THEN to_char(round(s.cpu_time/1000000, 1)) || ' s' ELSE to_char(round(s.cpu_time/60000000, 1)) || ' m' END AS CPU_SECONDS_FORM, DECODE(l.max_cpu_time, 0, 0, s.cpu_time/l.max_cpu_time) AS CPU_SECONDS_PROP, s.elapsed_time/1000 AS ELAPSED_MSECONDS, CASE WHEN s.elapsed_time < 1000 THEN '< 1 ms' WHEN s.elapsed_time < 1000000 THEN to_char(round(s.elapsed_time/1000, 1)) || ' ms' WHEN s.elapsed_time < 60000000 THEN to_char(round(s.elapsed_time/1000000, 1)) || ' s' ELSE to_char(round(s.elapsed_time/60000000, 1)) || ' m' END AS ELAPSED_SECONDS_FORM, DECODE(l.max_elapse d_time, 0, 0, s.elapsed_time/l.max_elapsed_time) AS ELAPSED_SECONDS_PROP, s.disk_reads AS DISK_READS, CASE WHEN s.disk_reads < 1000 THEN to_char(s.disk_reads) WHEN s.disk_reads < 1000000 THEN to_char(round(s.disk_reads/1000, 1)) || 'K' WHEN s.disk_reads < 1000000000 THEN to_char(round(s.disk_reads/1000000, 1)) || 'M' ELSE to_char(round(s.disk_reads/1000000000, 1)) || 'G' END AS DISK_READS_FORM, DECODE(l.max_disk_reads , 0, 0, s.disk_reads/l.max_disk_reads ) AS DISK_READS_PROP, s.buffer_gets AS BUFFER_GETS, CASE WHEN s.buffer_gets < 1000 THEN to_char(s.buffer_gets) WHEN s.buffer_gets < 1000000 THEN to_char(round(s.buffer_gets/1000, 1)) || 'K' WHEN s.buffer_gets < 1000000000 THEN to_char(round(s.buffer_gets/1000000, 1)) || 'M' ELSE to_char(round(s.buffer_gets/1000000000, 1)) || 'G' END AS BUFFER_GETS_FORM, DECODE(l.max_buffer_gets , 0, 0, s.buffer_gets/l.max_buffer_gets ) AS BUFFER_GETS_PROP, s.executions AS EXECUTIONS, CASE WHEN s.executions < 1000 THEN to_char(s.executions) WHEN s.executions < 1000000 THEN to_char(round(s.executions/1000, 1)) || 'K' WHEN s.executions < 1000000000 THEN to_char(round(s.executions/1000000, 1)) || 'M' ELSE to_char(round(s.executions/1000000000, 1)) || 'G' END AS EXECUTIONS_FORM, DECODE(l.max_executions , 0, 0, s.executions/l.max_executions ) AS EXECUTIONS_PROP, decode(s.module, null, ' ', s.module) AS MODULE, s.last_active_time AS LAST_ACTIVE_TIME, decode(s.last_active_time, null, ' ', to_char(s.last_active_time, 'DD-Mon-YYYY HH24:MI:SS')) AS LAST_ACTIVE_TIME_FORM, s.sql_id AS SQL_ID, s.child_number AS CHILD_NUMBER, s.inst_id as INST_ID from gv$sql s, ( select max(cpu_time) as max_cpu_time, max(elapsed_time) as max_elapsed_time, max(disk_reads) as max_disk_reads, max(buffer_gets) as max_buffer_gets, max(executions) as max_executions from gv$sql ) l ) d ORDER BY CPU_MSECONDS DESC, SQL, DISK_READS DESC, BUFFER_GETS DESC, EXECUTIONS DESC, ELAPSED_MSECONDS DESC, INST_ID DESC, MODULE DESC, LAST_ACTIVE_TIME DESC ) d ) d WHERE ROW# >= :minRowNo AND ROW# <= :maxRowNo
a6ufvpa02fgagselect a.total as MAX_BYTES, b.used as USED_BYTES from ( select sum(user_bytes) total from dba_data_files d, DBA_TABLESPACES t where d.TABLESPACE_NAME(+) = t.tablespace_name and contents = 'PERMANENT' ) a, ( select sum(bytes) used from dba_segments s, DBA_TABLESPACES t where s.TABLESPACE_NAME(+) = t.tablespace_name and contents = 'PERMANENT' ) b
a9gvfh5hx9u98BEGIN :1 := orderentry.processorders(:2 , :3 , :4 ); END;
a9hhaqub3dsgqSELECT systimestamp "SNAPSHOT_TIME", concat(s.sid, concat(', ', s.serial#)) "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", 1 "INSTANCE_ID", s.user# "USER_ID", s.username "USER_NAME", s.schemaname "SCHEMA_NAME", s.machine "HOSTNAME", 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.action "ACTION", s.sql_child_nu mber "CHILD_NUMBER", s.logon_time "LOGIN_TIME", s.server "CONNECTION_TYPE", s.RESOURCE_CONSUMER_GROUP "RESOURCE_GROUP", s.osuser "OS_USER", s.process "OS_PID", s.terminal "TERMINAL", s.client_info "CLIENT_INFO", s.client_identifier "CLIENT_ID", s.last_call_et "LAST_CALL_ELAPSED_TIME", s.sql_trace "SQL_TRACE", s.PLSQL_ENTRY_OBJECT_ID "ENTRY_OBJECT_ID", s.PLSQL_ENTRY_SUBPROGRAM_ID "ENTRY_SUBPROGRAM_ID", s.PLSQL_OBJECT_ID "OBJECT_ID", s.PLSQL_SUBPROGRAM_ID "SUBPROGRAM_ID", s.BLOCKING_SESSION_STATUS "BLOCKING_SESSION_STATUS", s.BLOCKING_INSTANCE "BLOCKING_INSTANCE", s.BLOCKING_SESSION "BLOCKING_SESSION" FROM v$session s WHERE 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##
apgb2g9q2zjh1BEGIN :1 := orderentry.browseandupdateorders(:2 , :3 , :4 ); END;
atwuyuvqkf27wSELECT /*+ OPT_PARAM('_fix_control' '16391176:1') */ GROUP_TYPE, BUCKET_START, BUCKET_END, TM_GROUP_TYPE, TM_BUCKET_START, TM_BUCKET_END, SUM(TM_CPU_FIRST_BUCKET_VALUE) TM_CPU_FIRST_BUCKET_VALUE, SUM(TM_CPU_MIDDLE_BUCKETS_VALUE) TM_CPU_MIDDLE_BUCKETS_VALUE, SUM(TM_CPU_LAST_BUCKET_VALUE) TM_CPU_LAST_BUCKET_VALUE, SUM(TM_DB_FIRST_BUCKET_VALUE) TM_DB_FIRST_BUCKET_VALUE, SUM(TM_DB_MIDDLE_BUCKETS_VALUE) TM_DB_MIDDLE_BUCKETS_VALUE, SUM(TM_DB_LAST_BUCKET_VALUE) TM_DB_LAST_BUCKET_VALUE, SUM(RREQS_FIRST_BUCKET_VALUE) RREQS_FIRST_BUCKET_VALUE, SUM(RREQS_MIDDLE_BUCKETS_VALUE) RREQS_MIDDLE_BUCKETS_VALUE, SUM(RREQS_LAST_BUCKET_VALUE) RREQS_LAST_BUCKET_VALUE, SUM(WREQS_FIRST_BUCKET_VALUE) WREQS_FIRST_BUCKET_VALUE, SUM(WREQS_MIDDLE_BUCKETS_VALUE) WREQS_MIDDLE_BUCKETS_VALUE, SUM(WREQS_LAST_BUCKET_VALUE) WREQS_LAST_BUCKET_VALUE, SUM(RBYTES_FIRST_BUCKET_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;
budtrjayjnvw3INSERT INTO CARD_DETAILS ( CARD_ID, CUSTOMER_ID, CARD_TYPE, CARD_NUMBER, EXPIRY_DATE, IS_VALID, SECURITY_CODE ) VALUES ( :B2 , :B1 , 'Visa(Debit)', FLOOR(DBMS_RANDOM.VALUE(1111111111, 9999999999)), TRUNC(SYSDATE + (DBMS_RANDOM.VALUE(365, 1460))), 'Y', FLOOR(DBMS_RANDOM.VALUE(1111, 9999)) )
bxpcry2tpc217select /*+ opt_param('parallel_execution_enabled', 'false') EXEC_FROM_DBMS_XPLAN */ * from gv$all_sql_plan where 1=0
c13sma6rkr27cSELECT PRODUCTS.PRODUCT_ID, PRODUCT_NAME, PRODUCT_DESCRIPTION, CATEGORY_ID, WEIGHT_CLASS, WARRANTY_PERIOD, SUPPLIER_ID, PRODUCT_STATUS, LIST_PRICE, MIN_PRICE, CATALOG_URL, QUANTITY_ON_HAND FROM PRODUCTS, INVENTORIES WHERE PRODUCTS.CATEGORY_ID = :B3 AND INVENTORIES.PRODUCT_ID = PRODUCTS.PRODUCT_ID AND INVENTORIES.WAREHOUSE_ID = :B2 AND ROWNUM < :B1
cj9v3ynkm7uuyBEGIN :1 := orderentry.SalesRepsQuery(:2 , :3 , :4 ); END;
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)
fffaspt7gd9ccBEGIN DBMS_WORKLOAD_REPOSITORY.CREATE_SNAPSHOT (); END;
fhf8upax5cxszBEGIN sys.dbms_auto_report_internal.i_save_report (:rep_ref, :snap_id, :pr_class, :rep_id, :suc); END;
fs4p95w7yg25bselect pob.parttype from sys.tabpart$ tp, sys.partobj$ pob where tp.bo# = pob.obj# and tp.obj# = :oid
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 changes138,617252.3464.87
execute count69,369126.2832.46
gc cr block receive time70.010.00
gc cr blocks received2380.430.11
gc current block receive time1,0331.880.48
gc current blocks received6,38211.622.99
logons cumulative1200.220.06
opened cursors cumulative62,048112.9529.04
parse count (total)5,2199.502.44
parse time elapsed2780.510.13
physical reads2,793,3865,085.121,307.15
physical writes17,67832.188.27
redo size14,056,07625,587.916,577.48
session cursor cache hits59,569108.4427.88
session logical reads14,869,30727,068.326,958.03
user calls10,82619.715.07
user commits2,1373.891.00
user rollbacks00.000.00
workarea executions - onepass00.000.00
workarea executions - optimal2,4704.501.16


Back to Instance Activity Statistics
Back to Top

Instance Activity Stats

StatisticTotalper Secondper Trans
ASSM bg: segment fix monitor10.000.00
ASSM cbk:blocks examined4,2607.751.99
ASSM cbk:blocks marked full1630.300.08
ASSM gsp:L1 bitmaps examined4,2677.772.00
ASSM gsp:L2 bitmap full300.050.01
ASSM gsp:L2 bitmaps examined1,6693.040.78
ASSM gsp:L3 bitmaps examined20.000.00
ASSM gsp:Optimized reject DB00.000.00
ASSM gsp:Optimized reject l100.000.00
ASSM gsp:Search all350.060.02
ASSM gsp:Search hint340.060.02
ASSM gsp:Search steal300.050.01
ASSM gsp:bump HWM300.050.01
ASSM gsp:get free block4,0997.461.92
ASSM gsp:get free data block3,9957.271.87
ASSM gsp:get free index block1040.190.05
ASSM gsp:good hint2,6014.731.22
ASSM gsp:reject L100.000.00
ASSM gsp:reject L200.000.00
ASSM gsp:reject db00.000.00
ASSM rsv:fill reserve110.020.01
ASSM wasted db state change00.000.00
Batched IO (bound) vector count3270.600.15
Batched IO (full) vector count21,09238.409.87
Batched IO (space) vector count14,15425.776.62
Batched IO block miss count2,851,4065,190.751,334.30
Batched IO buffer defrag count6141.120.29
Batched IO double miss count21,46639.0810.04
Batched IO same unit count144,341262.7667.54
Batched IO single block count8461.540.40
Batched IO slow jump count00.000.00
Batched IO vector block count2,740,7304,989.271,282.51
Batched IO vector read count35,12063.9316.43
Block Cleanout Optim referenced20.000.00
CCursor + sql area evicted3460.630.16
CPU used by this session13,17723.996.17
CPU used when call started11,72221.345.49
CR blocks created780.140.04
Cached Commit SCN referenced00.000.00
Client Advertised Receive Window00.000.00
Client Advertised Send Window00.000.00
Client Path Maximum Transmission Unit(MTU)00.000.00
Client Send Congestion Window00.000.00
Client Time (usec) Last Ack Received00.000.00
Client Time (usec) Last Data Received00.000.00
Client Time (usec) Last Data Sent00.000.00
Client Time (usec) Round Trip Time00.000.00
Client Time (usec) Round Trip Time Variance00.000.00
Client Total Bytes Acked00.000.00
Client Total Bytes Received00.000.00
Commit SCN cached00.000.00
DBWR checkpoint buffers written5190.940.24
DBWR checkpoints470.090.02
DBWR fusion writes3090.560.14
DBWR object drop buffers written640.120.03
DBWR parallel query checkpoint buffers written00.000.00
DBWR thread checkpoint buffers written00.000.00
DBWR transaction table writes220.040.01
DBWR undo block writes9271.690.43
DDL statements parallelized00.000.00
DFO trees parallelized760.140.04
DML statements retried00.000.00
Effective IO time00.000.00
HSC Heap Segment Block Changes11,15220.305.22
Heap Segment Array Deletes00.000.00
Heap Segment Array Inserts3210.580.15
Heap Segment Array Updates100.020.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 req300.050.01
KTFB alloc space (block)13,238,27224,099.166,194.79
KTFB alloc time (ms)9,13616.634.28
KTFB apply req70.010.00
KTFB apply time (ms)21,38438.9310.01
KTFB commit req00.000.00
KTFB commit time (ms)00.000.00
KTFB free req70.010.00
KTFB free space (block)8961.630.42
KTFB free time (ms)40.010.00
LOB table id lookup cache misses00.000.00
Number of read IOs issued00.000.00
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'd3,9077.111.83
PX local messages sent3,9077.111.83
PX remote messages recv'd3,9607.211.85
PX remote messages sent3600.660.17
Parallel operations not downgraded760.140.04
Requests to/from client9,32516.984.36
RowCR attempts10.000.00
RowCR hits00.000.00
SMON posted for undo segment shrink10.000.00
SQL*Net roundtrips to/from client9,33516.994.37
TBS Extension: bytes extended10,485,76019,088.444,906.77
TBS Extension: files extended10.000.00
TBS Extension: tasks created10.000.00
TBS Extension: tasks executed10.000.00
active txn count during cleanout3070.560.14
auto extends on undo tablespace00.000.00
background checkpoints completed00.000.00
background checkpoints started00.000.00
background timeouts7,51713.683.52
blocks cleaned out using minact4,0447.361.89
branch node splits10.000.00
buffer is not pinned count19,575,26635,635.139,160.16
buffer is pinned count14,397,85126,210.086,737.41
bytes received via SQL*Net from client1,420,9182,586.66664.91
bytes sent via SQL*Net to client1,861,6513,388.98871.15
calls to get snapshot scn: kcmgss104,314189.8948.81
calls to kcmgas7,15313.023.35
calls to kcmgcs17,73932.298.30
cell physical IO interconnect bytes23,320,794,11242,453,545.9210,912,865.75
change write time310.060.01
cleanout - number of ktugct calls3080.560.14
cleanouts and rollbacks - consistent read gets50.010.00
cleanouts only - consistent read gets170.030.01
cluster key scan block gets29,51953.7413.81
cluster key scans20,26336.899.48
commit batch performed00.000.00
commit batch requested00.000.00
commit batch/immediate performed30.010.00
commit batch/immediate requested30.010.00
commit cleanout failures: block lost00.000.00
commit cleanout failures: buffer being written00.000.00
commit cleanout failures: callback failure100.020.00
commit cleanout failures: cannot pin30.010.00
commit cleanouts19,49135.489.12
commit cleanouts successfully completed19,47835.469.11
commit immediate performed30.010.00
commit immediate requested30.010.00
commit nowait performed00.000.00
commit nowait requested00.000.00
commit txn count during cleanout1650.300.08
commit wait/nowait performed00.000.00
commit wait/nowait requested00.000.00
consistent changes59,640108.5727.91
consistent gets14,622,26826,618.616,842.43
consistent gets direct00.000.00
consistent gets examination1,627,2412,962.26761.46
consistent gets examination (fastpath)1,588,7782,892.24743.46
consistent gets from cache14,622,26826,618.616,842.43
consistent gets pin12,995,02723,656.356,080.97
consistent gets pin (fastpath)12,931,75723,541.186,051.36
cumulative begin requests100.020.00
cumulative end requests00.000.00
cursor authentications660.120.03
cursor reload failures80.010.00
data blocks consistent reads - undo records applied3030.550.14
db block changes138,617252.3464.87
db block gets247,039449.71115.60
db block gets direct4190.760.20
db block gets from cache246,620448.95115.40
db block gets from cache (fastpath)190,303346.4389.05
deferred (CURRENT) block cleanout applications4,5998.372.15
dirty buffers inspected14,94227.206.99
enqueue conversions4,4618.122.09
enqueue releases161,644294.2675.64
enqueue requests161,656294.2875.65
enqueue timeouts100.020.00
enqueue waits4450.810.21
exchange deadlocks30.010.00
execute count69,369126.2832.46
failed probes on index block reclamation00.000.00
file io service time32,37658.9415.15
free buffer inspected4,114,8617,490.761,925.53
free buffer requested2,819,9825,133.541,319.60
gc blocks compressed4000.730.19
gc blocks lost880.160.04
gc cleanout applied00.000.00
gc cleanout saved00.000.00
gc cr block build time00.000.00
gc cr block flush time30.010.00
gc cr block receive time70.010.00
gc cr blocks built690.130.03
gc cr blocks flushed110.020.01
gc cr blocks received2380.430.11
gc cr blocks served2700.490.13
gc cr multiblock grant time51,18693.1823.95
gc cr multiblock grants received2,549,7684,641.641,193.15
gc current block flush time60.010.00
gc current block pin time00.000.00
gc current block receive time1,0331.880.48
gc current blocks flushed160.030.01
gc current blocks pinned10.000.00
gc current blocks received6,38211.622.99
gc current blocks served2040.370.10
gc force cr read cr970.180.05
gc force cr read current20.000.00
gc kbytes saved2,0853.800.98
gc kbytes sent1,7073.110.80
gc local grants1,380,6022,513.27646.05
gc merge pi bg00.000.00
gc merge pi fg1280.230.06
gc no change made10.000.00
gc read time waited00.000.00
gc read waits00.000.00
gc reader bypass grants1560.280.07
gc reader bypass waits410.070.02
gc remote grants1,416,8652,579.28663.02
gc status messages received56,048102.0326.23
gc status messages sent930.170.04
gcs affinity lock failures00.000.00
gcs affinity lock grants6181.130.29
gcs data block access record drops00.000.00
gcs data block access records2,800,1155,097.371,310.30
gcs messages sent2,834,2335,159.481,326.27
gcs stats management (SCM) process posts00.000.00
ges messages sent1,8703.400.88
global enqueue gets async00.000.00
global enqueue gets sync157,006285.8273.47
global enqueue releases155,254282.6372.65
global undo segment hints helped00.000.00
global undo segment hints were stale00.000.00
heap block compress110.020.01
hot buffers moved to head of LRU3,822,9856,959.421,788.95
immediate (CR) block cleanout applications220.040.01
immediate (CURRENT) block cleanout applications1,0601.930.50
index crx upgrade (positioned)00.000.00
index fast full scans (direct read)00.000.00
index fast full scans (full)00.000.00
index fast full scans (rowid ranges)00.000.00
index fetch by key518,413943.73242.59
index range scans120,198218.8156.25
index reclamation/extension switch10.000.00
index split cancel wait noclean00.000.00
leaf node 90-10 splits10.000.00
leaf node splits900.160.04
lob reads9401.710.44
lob writes13,14023.926.15
lob writes unaligned13,14023.926.15
logical read bytes from cache121,805,930,496221,737,460.5156,998,563.64
logons cumulative1200.220.06
max cf enq hold time740.130.03
messages received4,2947.822.01
messages sent4,2947.822.01
min active SCN optimization applied on CR2,0393.710.95
no work - consistent read gets12,974,08023,618.226,071.17
non-idle wait count421,954768.13197.45
opened cursors cumulative62,048112.9529.04
parse count (describe)40.010.00
parse count (failures)10.000.00
parse count (hard)2990.540.14
parse count (total)5,2199.502.44
parse time cpu2210.400.10
parse time elapsed2780.510.13
physical read IO requests2,793,1795,084.751,307.06
physical read bytes22,883,418,11241,657,339.6710,708,197.53
physical read total IO requests2,798,3255,094.121,309.46
physical read total bytes22,966,947,84041,809,398.5210,747,284.90
physical read total multi block requests00.000.00
physical reads2,793,3865,085.121,307.15
physical reads cache2,793,3855,085.121,307.15
physical reads cache prefetch2,677,0574,873.361,252.72
physical reads direct00.000.00
physical reads direct (lob)00.000.00
physical reads direct temporary tablespace00.000.00
physical write IO requests14,84727.036.95
physical write bytes144,818,176263,629.3267,767.05
physical write total IO requests17,94132.668.40
physical write total bytes174,858,752318,315.6681,824.40
physical write total multi block requests920.170.04
physical writes17,67832.188.27
physical writes direct4360.790.20
physical writes direct (lob)240.040.01
physical writes direct temporary tablespace4060.740.19
physical writes from cache17,24231.398.07
physical writes non checkpoint16,18729.477.57
pinned buffers inspected890.160.04
pinned cursors current10.000.00
prefetched blocks aged out before use34,99763.7116.38
process last non-idle time5491.000.26
queries parallelized20.000.00
recovery blocks read10.000.00
recursive calls515,245937.96241.11
recursive cpu usage10,77219.615.04
redo KB read00.000.00
redo blocks checksummed by FG (exclusive)5,3589.752.51
redo blocks written29,90554.4413.99
redo blocks written (group 0)00.000.00
redo blocks written (group 1)00.000.00
redo buffer allocation retries00.000.00
redo entries43,95880.0220.57
redo log space requests00.000.00
redo ordering marks00.000.00
redo size14,056,07625,587.916,577.48
redo size for direct writes1200.220.06
redo subscn max counts1,2042.190.56
redo synch long waits20.000.00
redo synch time3,1495.731.47
redo synch time (usec)31,509,23157,359.9114,744.61
redo synch time overhead (usec)155,978283.9472.99
redo synch time overhead count ( 2ms)2,2614.121.06
redo synch time overhead count ( 8ms)00.000.00
redo synch time overhead count ( 32ms)00.000.00
redo synch time overhead count (128ms)10.000.00
redo synch writes2,3174.221.08
redo wastage709,4761,291.54332.00
redo write active strands2,8205.131.32
redo write broadcast ack count170.030.01
redo write broadcast ack time113,892207.3353.30
redo write finish time31,682,57157,675.4614,825.72
redo write gather time99,950181.9546.77
redo write info find2,2624.121.06
redo write schedule time115,084209.5053.85
redo write size count ( 4KB)1,6563.010.77
redo write size count ( 8KB)7641.390.36
redo write size count ( 16KB)3250.590.15
redo write size count ( 32KB)310.060.01
redo write size count ( 128KB)110.020.01
redo write size count ( 256KB)60.010.00
redo write size count ( 512KB)20.000.00
redo write size count (1024KB)20.000.00
redo write size count (inf)00.000.00
redo write time3,1695.771.48
redo write time (usec)31,684,87657,679.6514,826.80
redo write total time31,735,42257,771.6714,850.45
redo write worker delay (usec)00.000.00
redo write worker delay count00.000.00
redo writes2,7975.091.31
redo writes (group 0)00.000.00
redo writes (group 1)00.000.00
redo writes adaptive all2,7975.091.31
redo writes adaptive worker00.000.00
remote Oradebug requests00.000.00
rollback changes - undo records applied180.030.01
rollbacks only - consistent read gets580.110.03
root node splits10.000.00
rows fetched via callback499,985910.18233.97
saved cleanout failures: callback failure00.000.00
saved cleanouts00.000.00
saved cleanouts successfully completed00.000.00
securefile allocation bytes139,264253.5265.17
securefile allocation chunks150.030.01
securefile bytes non-transformed130,132236.8960.89
securefile direct read bytes00.000.00
securefile direct read ops00.000.00
securefile direct write bytes139,264253.5265.17
securefile direct write ops150.030.01
securefile number of non-transformed flushes340.060.02
segment cfs allocations00.000.00
segment chunks allocation from dispenser150.030.01
segment dispenser allocations150.030.01
segment dispenser load empty00.000.00
segment dispenser load tasks00.000.00
segment prealloc bytes00.000.00
segment prealloc ops30.010.00
segment prealloc tasks00.000.00
segment prealloc time (ms)200.040.01
segment total chunk allocation00.000.00
session cursor cache hits59,569108.4427.88
session logical reads14,869,30727,068.326,958.03
shared hash latch upgrades - no wait816,3581,486.11382.01
shared hash latch upgrades - wait00.000.00
shared io pool buffer get success150.030.01
sorts (disk)00.000.00
sorts (memory)1,3762.500.64
sorts (rows)13,245,36224,112.076,198.11
sql area evicted3580.650.17
sql area purged60.010.00
summed dirty queue length30,02154.6514.05
switch current caused by our pin1550.280.07
switch current to new buffer1580.290.07
table fetch by rowid16,657,65430,323.867,794.88
table fetch continued row800.150.04
table scan blocks gotten29,83054.3013.96
table scan disk non-IMC rows gotten324,743591.17151.96
table scan rows gotten324,743591.17151.96
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)2,8455.181.33
temp space allocated (bytes)00.000.00
total cf enq hold time1,9083.470.89
total number of cf enq holders830.150.04
total number of times SMON posted10.000.00
transaction lock background gets00.000.00
transaction lock foreground requests00.000.00
transaction rollbacks10.000.00
transaction tables consistent read rollbacks00.000.00
transaction tables consistent reads - undo records applied00.000.00
undo change vector size4,222,8367,687.321,976.06
user calls10,82619.715.07
user commits2,1373.891.00
user logons cumulative340.060.02
user logouts cumulative340.060.02
user rollbacks00.000.00
workarea executions - onepass00.000.00
workarea executions - optimal2,4704.501.16
write clones created in background00.000.00
write clones created in foreground50.010.00


Back to Instance Activity Statistics
Back to Top

Instance Activity Stats - Absolute Values

StatisticBegin ValueEnd Value
logons current104104
opened cursors current212213
session cursor cache count22,39623,230
session pga memory682,772,696689,653,976
session pga memory max1,018,812,5681,022,399,992
session uga memory1,767,800,5121,797,722,032
session uga memory max58,624,958,09659,278,362,384


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 Reads21,3G5084.3539,725M0M0.000M116,5K25.29ms
DBWR0M0.010M135M26.39,246M63.83ms
Others79M9.36,144M17M1.12,031M405310.63ms
LGWR0M0.000M14M5.14,025M279911.27ms
Direct Writes0M0.000M0M0.020M0 
TOTAL:21,4G5093.7239,869M166M32.66,302M123,3K24.49ms


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 File21,3G5084.2539,721M135M26.30,246M551.38us 
Control File79M9.26,144M4M0.46,007M7.98ms 
Log File0M0.000M14M5.14,025M  
Temp File4M0.77,007M4M0.73,007M3.97ms 
Other0M0.000M0M0.010M  
TOTAL:21,4G5094.2839,873M157M32.64,286M565.42us 


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 21,3G5084.3639,725M0M0.000M81,4K6.24ms
Buffer Cache Reads (Data File) 21,3G5083.6039,718M0M0.000M80,9K6.25ms
Buffer Cache Reads (Temp File) 4M0.76,007M0M0.000M4184.25ms
DBWR 0M0.010M135M26.39,246M63.83ms
DBWR (Data File) 0M0.000M134M26.26,244M1.00ns
DBWR (Temp File) 0M0.000M1M0.13,002M0 
DBWR (Control File) 0M0.010M0M0.000M54.60ms
Others 79M9.29,144M17M1.10,031M375511.28ms
Others (Control File) 79M9.25,144M4M0.46,007M373511.32ms
Others (Data File) 0M0.020M10M0.03,018M14478.00us
Others (Temp File) 0M0.010M3M0.61,005M610.67ms
LGWR (Log File) 0M0.000M14M5.14,025M0 
LGWR 0M0.000M14M5.14,025M0 
Direct Writes (Data File) 0M0.000M0M0.020M0 
Direct Writes 0M0.000M0M0.020M0 
TOTAL: 21,4G5093.6639,869M166M32.65,302M85,1K6.46ms


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,797,6198114,866,2802,793,24817,2420063


Back to Buffer Pool Statistics
Back to Top

Checkpoint Activity

MTTR WritesLog Size WritesLog Ckpt WritesOther Settings WritesAutotune Ckpt WritesThread Ckpt Writes
00005190


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
B01126210580925416986519254  0
E0114671242138506169865138506  0


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.101792.4248,280132790.00
D3,0720.203582.2645,140130189.00
D4,6080.305372.1041,841127455.00
D6,1440.407161.9438,647124808.00
D7,6800.508951.7735,282122020.00
D9,2160.601,0741.6132,209119474.00
D10,7520.701,2531.4529,024116835.00
D12,2880.801,4321.3126,064114382.00
D13,8240.901,6111.1523,008111849.00
D15,3601.001,7901.0120,08719429.00
D15,4241.001,7981.0019,96719329.00
D16,8961.101,9690.8717,45217246.00
D18,4321.202,1480.7815,48015612.00
D19,9681.292,3270.7515,03215240.00
D21,5041.392,5060.7514,90615136.00
D23,0401.492,6850.7414,75515011.00
D24,5761.592,8640.7314,61614895.00
D26,1121.693,0430.7214,45114759.00
D27,6481.793,2220.7114,25014592.00
D29,1841.893,4010.7014,00414388.00
D30,7201.993,5800.6913,69114129.00


Back to Advisory Statistics
Back to Top

PGA Aggr Summary

PGA Cache Hit %W/A MB ProcessedExtra W/A MB Read/Written
100.002,6760


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,3504,313.030.000.000.000.00614,190
E5,9984,3464,289.470.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
2K4K1,6191,61900
64K128K505000
128K256K9900
256K512K181800
512K1024K22522500
1M2M38638600
2M4M292900
4M8M444400
8M16M606000
16M32M303000


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.13126,585.78227,649.7036.00331133,044,331
1,5000.25126,585.7854,349.8470.00067,956,091
2,9990.50126,585.7852,602.4771.00067,299,812
4,4990.75126,585.7820,765.2786.00055,342,344
5,9981.00126,585.7817,661.3088.00054,176,553
7,1981.20126,585.7817,661.3088.00054,176,553
8,3971.40126,585.7817,661.3088.00054,176,553
9,5971.60126,585.7817,661.3088.00054,176,553
10,7961.80126,585.7817,661.3088.00054,176,553
11,9962.00126,585.7817,661.3088.00054,176,553
17,9943.00126,585.7817,661.3088.00054,176,553
23,9924.00126,585.7817,661.3088.00054,176,553
35,9886.00126,585.7817,661.3088.00054,176,553
47,9848.00126,585.7817,661.3088.00054,176,553


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,9200.88302,098194,2320.969,17044.514,610
1,9840.91903,759199,9670.983,43516.674,909
2,0480.941545,543201,0430.992,35911.454,933
2,1120.972187,060202,1150.991,2876.254,955
2,1761.002828,406203,1961.002061.004,979
2,2401.033469,837203,1981.002040.994,979
2,3041.0640910,860203,1991.002030.994,980
2,3681.0947212,095203,1991.002030.994,980
2,4321.1253613,288203,1991.002030.994,980
2,4961.1560014,229203,1991.002030.994,980
2,5601.1864215,550203,1991.002030.994,980
2,6241.2164215,550203,1991.002030.994,980
2,6881.2464215,550203,1991.002030.994,980
2,7521.2664215,550203,1991.002030.994,980
2,9441.3564215,550203,1991.002030.994,980
3,2001.4764215,550203,1991.002030.994,980
3,4561.5964215,550203,1991.002030.994,980
3,7121.7164215,550203,1991.002030.994,980
3,9681.8264215,550203,1991.002030.994,980
4,2241.9464215,550203,1991.002030.994,980
4,4802.0664215,550203,1991.002030.994,980


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.2555,30348,279,019
6,7680.3852,70145,140,284
9,0240.5047,31838,647,175
11,2800.6341,98832,209,972
13,5360.7539,34529,023,317
15,7920.8834,36023,007,408
18,0481.0031,83819,966,509
20,3041.1328,11915,480,034
22,5601.2527,75015,030,788
24,8161.3827,52114,755,250
27,0721.5027,40614,615,485
29,3281.6327,10114,250,097
31,5841.7526,63913,691,035
33,8401.8826,63913,691,035
36,0962.0026,63913,691,035


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 block63232


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) 390390078113.10
PS-PX Process Reservation 53653518800.45
FB-Format Block 878707200.47
TS-Temporary Segment 868605100.33
CR-Reuse Block Range (block range reuse ckpt) 707002200.41
TO-Temp Object 31431401700.41
WF-AWR Flush 212102000.15
TT-Tablespace 4,0584,0580700.43
HW-Segment High Water Mark 3,7623,7620700.43
WT-AWR CDB-Wide Table Lock 18180400.75
DW-In memory Dispenser 330301.00
CF-Controlfile Transaction 1,1641,16405100.02
PF-Password File 10100101.00
PW-Buffer Cache PreWarm (flush prewarm buffers) 110101.00
TA-Instance Undo 110101.00
TD-KTF map table enqueue (KTF dump entries) 110101.00
TK-Auto Task Serialization (Auto Task Serialization) 110101.00
US-Undo Segment 110101.00
CO-KTUCLO Master Slave enq (master slave det) 909900.00
TM-DML 13,11113,1110200.00
SR-Synchronized Replication 69690100.00
CT-Block Change Tracking (state) 110100.00
FD-Flashback Database (Flashback logical operations) 110100.00
MV-Online Datafile Move (datafile move) 110100.00
RP-Resilver / Repair 110100.00
SW-Suspend Writes 110100.00
JG-Job Scheduler1 65,92865,928000 
JG-Job Scheduler1 (queue lock) 65,92865,928000 
JG-Job Scheduler1 (q mem clnup lck) 5,4945,494000 
TX-Transaction 3,6433,645000 
SJ-KTSJ Slave Task Cancel (Slave Task Cancel) 406406000 
CU-Cursor 235235000 
DD-ASM Local Disk Group 185185000 
SE-Session Migration 145144000 
MR-Media Recovery 100100000 
DA-Instance DP Array (Slave Process Array) 7575000 
BU-Buddy Instance Context (recovery set construct) 6161000 
IS-Instance State 4646000 
AE-Edition Lock (lock) 3737000 
PZ-Password File Metadata Cache (load passwordfile metadata) 2020000 
AF-Advisor Framework (task serialization) 1313000 
TH-Threshold Chain (metric threshold evaluation) 99000 
IT-In-Mem Temp Table Meta Creation 66000 
PR-Process Startup 55000 
PV-KSV slave startup (syncstart) 44000 
SH-Active Session History Flushing 22000 
XL-ASM Extent Fault Lock (fault extent map) 22000 
CT-Block Change Tracking (CTWR process start/stop) 11000 
FP-File Object (global fob contention) 11000 
XR-Quiesce / Force Logging (database force logging) 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
20.607930615/150/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 12:0260079306150/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 01030.00
AQ Coord jobx_kwsbgsgn latch180.00 00 
AQ Message drive state object latch10.00 00 
AQ Sharded master pool latch180.00 00 
AQ deq hash table latch10.00 00 
ASM Keyed state latch780.00 00 
ASM allocation31,4290.00 00 
ASM connection state latch1,4560.00 00 
ASM db client latch5100.00 00 
ASM map headers230.00 00 
ASM map load waiting list60.00 00 
ASM map operation freelist2,6310.00 00 
ASM map operation hash table5,647,0370.000.0000 
ASM network background latch1,4580.00 00 
ASM network state latch210.00 00 
ASM remote client latch90.00 00 
AWR Alerted Metric Element list5,0080.00 00 
Autotask management90.00 00 
Change Notification Hash table latch5100.00 00 
Column stats entry latch10.00 00 
Consistent RBA2,7970.00 00 
DML lock allocation23,9770.00 00 
Event Group Locks1600.00 00 
FIB s.o chain latch420.00 00 
FOB consolidated s.o list latch420.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 statistics360.00 06,4520.00
I/O Staticstics latch10.00 00 
ILM Stats Stripe Latch10.00 00 
ILM Stats main anchor latch2460.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 latch60.00 00 
IPC stats buffer allocation latch10.00 00 
In memory undo latch10.00 00 
JS Sh mem access2,7470.00 00 
JS broadcast add buf latch2,7630.00 00 
JS broadcast drop buf latch2,7630.00 00 
JS broadcast load blnc latch170.00 00 
JS queue access latch10.00 00 
JS queue state obj latch131,8080.00 00 
JS slv state obj latch10.00 00 
KCNIBR - invalid block range tree10.00 00 
KDCStatHash latch10.00 00 
KDFI Buffer Latch10.00 00 
KDFI Hash Bucket Latch10.00 00 
KDFI Hash Elem Latch10.00 00 
KDMADO action list latch10.00 00 
KDMADO bll latch10.00 00 
KDMADO latch10.00 00 
KFC FX Hash Latch10.00 00 
KFC Hash Latch10.00 00 
KFCL LE Freelist10.00 00 
KFIAS client latch10.00 00 
KFIAS cluster latch10.00 00 
KFIAS endpoint latch10.00 00 
KFIAS node latch10.00 00 
KFIAS process latch10.00 00 
KFIAS queue latch10.00 00 
KFK SGA Libload latch2,9940.00 00 
KFMD SGA3160.00 00 
KGNFS-NFS:SHM structure60.00 00 
KGNFS-NFS:SVR LIST1840.00 00 
KJC message pool KGH calls10.00 00 
KJC message pool free list156,3600.060.000116,5950.09
KJC message pool pending avail list10.00 00 
KJCT flow control latch390,5820.010.0200 
KMG MMAN ready and startup request latch1830.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 latch2050.00 00 
KSIPCGSN Hash Table latch10.00 00 
KSIPCGSN Namespace latch10.00 00 
KSK PDB IO STAT10.00 00 
KSRMA SGA anchor latch10.00 00 
KSRMF SGA anchor latch10.00 00 
KSWL SGA anchor latch10.00 00 
KSXR hang analysis phase 1 latch3820.00 00 
KSXR hang analysis phase 2 latch370.00 00 
KSXR large replies20.00 00 
KTF sga latch20.00 01670.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 latch3650.00 00 
KWQP Prop Status690.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 latch1060.00 00 
MGA asr alloc latch90.00 00 
MGA heap latch1190.00 00 
MGA shared context latch3,4470.090.6700 
MGA shared context root latch1651.820.0000 
MQL Tracking Latch0  0110.00
Memory Management Latch0  01830.00
Memory Queue720.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 Latch300.00 00 
Mutex10.00 00 
Mutex Stats10.00 00 
Nologging Standby SCN Time Map cache1660.00 00 
OS process5500.00 00 
OS process allocation1,1920.00 00 
OS process: request allocation780.00 00 
PDB Hash Table Latch10.00 00 
PDB LRU structure10.00 00 
PL/SQL warning settings1200.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 latch15,6370.00 00 
Report Request stats latch350.00 00 
Report Request struct latch520.00 00 
Request holder compeltion list latch110.00 00 
Retry Ht elm latch10.00 00 
Retry bkt latch10.00 00 
SGA Blackbox latch20.00 00 
SGA IO buffer pool latch490.00 0510.00
SGA Logging Bkt Latch10.00 00 
SGA Logging Log Latch2,5910.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 latch700.00 0900.00
SQL memory manager latch10.00 01830.00
SQL memory manager workarea list latch14,9830.00 00 
SR Stats Stripe Latch10.00 00 
Sched IM Job latch100.00 00 
Sched InMem Job Cache10.00 00 
Shared B-Tree4510.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,6750.00 00 
active service list72,6620.020.000347,9820.01
archive destination180.00 00 
begin backup scn array170.00 00 
bq:time manger info latch190.00 00 
buffer pool10.00 00 
bufq statistics720.00 00 
business card1530.00 00 
cache buffer handles7530.00 00 
cache buffers chains34,181,9680.000.0305,555,2830.06
cache buffers lru chain2,777,1330.170.0102,844,7580.29
cache table scan latch750.00 0750.00
call allocation1,1370.530.0000 
change notification client cache latch10.00 00 
channel handle pool latch1630.00 00 
channel operations parent latch2,2410.130.3300 
checkpoint queue latch64,0000.000.00017,5840.00
client/application info103,9530.000.0000 
compile environment latch1360.00 00 
corrupted undo seg latch550.00 00 
cp handoff latch10.00 00 
cp pool latch10.00 00 
cp server hash latch10.00 00 
cp sga latch90.00 00 
cp srv type state latch5530.00 00 
cp srv type wait latch10.00 00 
cr slave free list10.00 00 
cvmap freelist lock10.00 00 
deferred cleanup latch90.00 00 
dispatcher info280.00 00 
dml lock allocation90.00 00 
done queue latch10.00 00 
dtp latch440.00 00 
dummy allocation2411.240.0000 
eighth spare latch - X parent10.00 00 
eleventh spare latch - children10.00 00 
enqueue freelist latch10.00 0291,8320.00
enqueue hash chains371,6480.010.00020.00
enqueues60.00 00 
error message lists3780.00 00 
fast space usage latch150.00 00 
fifteenth spare latch - children10.00 00 
file cache latch2200.00 00 
first Audit Vault latch300.00 00 
flash file access latch10.00 00 
flashback copy10.00 00 
fourteenth spare latch - children10.00 00 
fourth Audit Vault latch10.00 00 
gc element11,731,1990.020.000522,2170.01
gc xid list970.00 00 
gcs commit scn state10.00 00 
gcs lock state resolution latch10.00 00 
gcs nodemap pool1,1490.00 00 
gcs opaque info freelist6,3190.00 00 
gcs partitioned table hash5,432,1670.000.0006250.00
gcs pcm hashed value bucket hash10.00 00 
gcs remaster request queue10.00 00 
gcs resource freelist645,1280.030.000437,0830.03
gcs resource hash7,070,8770.000.0101310.00
gcs resource scan list10.00 00 
gcs resource timerq list10.00 00 
gcs resource validate list10.00 00 
gcs shadows freelist7970.00 00 
ges cached resource lists118,4650.010.14020,3110.03
ges deadlock list1940.00 00 
ges domain table311,2080.00 00 
ges enqueue table freelist42,0760.00 00 
ges group table314,5920.00 00 
ges process hash list8870.110.0000 
ges process parent latch625,4350.001.0000 
ges process table freelist780.00 00 
ges remote lock freelist450.00 00 
ges resource hash list454,0040.030.0304,3940.00
ges resource scan list10.00 00 
ges resource table freelist9,4550.030.0000 
ges s-lock bitvec freelist8680.120.0000 
ges timeout list3510.00 060.00
ges value block free list10.00 00 
global KZLD latch for auth type mem in SGA200.00 00 
global tx hash mapping10.00 00 
granule from data transfer cache10.00 00 
gws:Sharding global descriptor latch360.00 00 
hash table Sql Plan Finding latch270.00 0430.00
hash table column usage latch1940.00 0234,9070.00
hash table expression usage tracking latch10.00 00 
hash table modification latch1370.00 00 
hash table sql contorl latch10.00 00 
heartbeat check10.00 02240.00
heartbeat structure management0  02740.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 latch120.00 00 
interrupt manipulation4040.00 00 
intra txn parallel recovery10.00 00 
io pool granule list330.00 00 
io pool granule metadata list640.00 00 
job workq parent latch10.00 00 
job_queue_processes parameter latch90.00 00 
k2q global data latch3660.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 
keiut hash table modification170.00 00 
kgb parent10.00 00 
kgnfs mount latch10.00 00 
kjbr roi instance map10.00 00 
kjci objects freelist latch5,0710.00 00 
kjci process context latch4,2560.120.00011,3530.00
kjci process list latch1,9450.00 00 
kjci request sequence latch6180.00 00 
kjcipctx state object freelist latch280.00 00 
kjoedcso state object freelist latch90.00 00 
kjoeq omni enqueue hash bucket latch10.00 00 
kjoer owner hash bucket10.00 00 
kjpm my inst data180.00 00 
kjsc Request obj freelist latch800.00 00 
kjsc Ring Buffer obj freelist latch400.00 00 
kjsc protect control request queue400.00 05,4990.00
kjsc protect warm up context1170.00 00 
kjsca pkey obj freelist latch1960.00 00 
kjsca protect pkey hash table bucket6,8970.00 00 
kjsca protect service hash table bucket200.00 00 
kjsca service obj freelist latch10.00 00 
kjscpss state object freelist latch400.00 00 
kokc descriptor allocation latch1260.00 00 
kpoxft latch0  02015.00
krso process190.00 00 
ksevn object root latch1830.00 00 
ksfv messages10.00 00 
ksi resource reuse count10.00 00 
ksim group membership cache1,4410.00 00 
ksim membership request latch0  02660.00
ksns object latch10.00 00 
kss move lock90.00 00 
ksuosstats global area450.00 02100.00
ksutcpistat latch10.00 00 
ksv allocation latch250.00 00 
ksv class latch12,0220.080.0000 
ksv msg queue latch430.00 0420.00
ksxp shared latch780.00 00 
ksxp so latch780.00 00 
ksz_so allocation latch780.00 00 
ktfbn latch1290.00 00 
ktm adg jrnls10.00 00 
ktm adg lookuptable level 110.00 00 
ktm adg lookuptable level 210.00 00 
ktm adg space10.00 00 
ktm adg stages10.00 00 
ktm adg worklink10.00 00 
ktm global data100.00 00 
ktm prv jrnls10.00 00 
ktmpj HT ls10.00 00 
kwqbsn:qsga3410.290.0000 
kwslbmdl: metadata latch230.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 latch610.00 00 
kwsslLat: skiplist latch10.00 00 
kxfxscanrate_latch10.00 00 
lgwr LWN SCN2,8400.00 00 
list of block allocation770.00 00 
loader state object freelist6820.00 00 
lob segment dispenser latch370.00 00 
lob segment hash table latch640.00 00 
lob segment query latch10.00 00 
lock DBA buffer during media recovery10.00 00 
log write info0  02,8720.03
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 standby180.00 00 
message bitmap latch10.00 00 
message pool operations parent latch8280.00 00 
messages46,1920.180.0100 
msg queue latch10.00 00 
multiblock read objects70,4880.010.0000 
name-service memory objects4390.00 00 
name-service namespace bucket3,6430.00 00 
name-service pending queue2820.00 00 
name-service request60.00 00 
name-service request queue6,1460.00 00 
ncodef allocation latch90.00 00 
ninth spare latch - X parent10.00 00 
object queue header freelist40,8610.00 00 
object queue header operation5,653,1310.000.00036,8510.01
object queue memory10.00 00 
object stats modification490.00 00 
parallel query alloc buffer1,2450.00 0800.00
parallel query stats3100.00 00 
parallel txn reco latch340.00 00 
parameter table management1,4190.070.0000 
pdb enqueue hash chains10.00 00 
peshm10.00 00 
pesom_free_list10.00 00 
pesom_hash_node10.00 00 
pkey global statistics10.00 00 
pmon dead latch80.00 00 
post/wait queue28,7930.340.00027,7230.43
process allocation2,8140.00 00 
process group creation780.00 00 
process memory detail10.00 00 
process pkey statistics list10.00 00 
process queue5490.00 00 
process queue reference73,7190.00 011,9970.72
qmn task queue latch6723.270.0000 
quarantine object90.00 00 
query server freelists6950.00 00 
query server process3880.00 010.00
queued dump request20.00 00 
queuing load statistics10.00 00 
read-moslty lock queue under pkey10.00 00 
recovery domain hash bucket2320.00 00 
redo allocation8,5150.130.00044,0250.05
redo copy10.00 044,0360.11
redo transport task10.00 00 
redo writing10,1240.00 00 
remote tool request latch1200.00 00 
resmgr group change latch2280.00 00 
resmgr:active threads4050.00 05,3760.00
resmgr:actses change group1690.00 00 
resmgr:actses change state40.00 00 
resmgr:free threads list3261.840.0000 
resmgr:plan CPU method10.00 00 
resmgr:plan change alloc latch10.00 00 
resmgr:plan change latch10.00 00 
resmgr:resource group CPU method210.00 00 
resmgr:schema config920.00 090.00
resmgr:session queuing10.00 00 
row cache objects10.00 00 
rt rmv count latch0  02740.00
rules engine rule set statistics1000.00 00 
second Audit Vault latch10.00 00 
segmented array pool20.00 00 
sequence cache9,0110.00 00 
service drain list5490.00 00 
session allocation4,4770.020.0004,2440.02
session idle bit30,0210.00 00 
session queue latch10.00 00 
session state list latch3402.350.0000 
session statistics2430.820.0000 
session switching480.00 00 
session timer1840.00 00 
seventh spare latch - X parent10.00 00 
sga hash table parent latch10.00 00 
shard latch10.00 00 
shardgroup list latch2760.00 00 
shared pool42,8360.610.080410.00
shared pool sim alloc80.00 00 
shared pool simulator1,4100.00 00 
shared server configuration1840.00 00 
sim partition latch10.00 00 
simulator hash latch1,241,6910.00 00 
simulator lru latch10.00 01,119,5760.07
sixth spare latch - X parent10.00 00 
sort extent pool20,4590.00 00 
space background task latch1,48460.310.9103742.14
state object free list20.00 00 
statistics aggregation1740.00 00 
subscriber Ht bkt10.00 00 
tablespace key chain10.00 00 
temp lob duration state obj allocation7,4140.00 00 
temporary table state object allocation200.00 00 
tenth spare latch - X parent10.00 00 
test excl. parent l010.00 00 
test excl. parent2 l010.00 00 
test excl. parent2 lmid cln10.00 00 
test mixed exclusive10.00 00 
test mode exclusive10.00 00 
test open exclusive10.00 00 
test pdb exclusive10.00 00 
test shared parent2 lmid10.00 00 
thirteenth spare latch - children10.00 00 
threshold alerts latch180.00 00 
trace latch50.00 00 
transaction allocation5,7530.00 00 
twelfth spare latch - children10.00 00 
twenty-fifth spare latch - S par10.00 00 
twenty-first spare latch - S par10.00 00 
twenty-fourth spare latch - S par10.00 00 
twenty-second spare latch - S par10.00 00 
twenty-third spare latch - S par10.00 00 
undo global data12,7900.00 00 
virtual circuit buffers10.00 00 
virtual circuit holder10.00 00 
virtual circuit queues10.00 00 


Back to Latch Statistics
Back to Top

Latch Sleep Breakdown

Latch NameGet RequestsMissesSleepsSpin Gets
cache buffers lru chain2,777,1334,797354,762
gc element11,731,1991,89511,894
space background task latch1,48489581683
gcs resource hash7,070,8773164312
shared pool42,83626121244
cache buffers chains34,181,9681544150
ges resource hash list454,0041364132
messages46,19282181
KJCT flow control latch390,58248147
ges cached resource lists118,465716
MGA shared context latch3,447321
channel operations parent latch2,241312
ges process parent latch625,435110


Back to Latch Statistics
Back to Top

Latch Miss Sources

Latch NameWhereNoWait Misses SleepsWaiter Sleeps
KJCT flow control latchkjctcsnd: send normal message010
MGA shared context latchksm_mga_attach_whr2020
cache buffers chainskcbzibmlt: multi-block read: nowait040
cache buffers lru chainkcbzgb_202931
cache buffers lru chainkcbzgws060
channel operations parent latchksrwait()010
gc elementkcllkop010
gcs resource hashkjbclose_remaster020
gcs resource hashkjbcropen021
ges cached resource listskjruch: cached obj cleanup010
ges process parent latchkjata_fg010
ges resource hash listkjlrlr: remove lock from resource queue022
ges resource hash listkjrmas1: lookup master node021
messagesksaamb: after wakeup010
space background task latchktsj_grab_task0489808
space background task latchktsj_detach_task03188
space background task latchktsj_smco_purgeexpired080
space background task latchktsj_smco_movetasks010
unknown latchkghalo01420
unknown latchkghfrunp: no latch060
unknown latchkghfnd: get next extent010


Back to Latch Statistics
Back to Top

Mutex Sleep Summary

Mutex TypeLocationSleepsWait Time (ms)
Library Cachekglhdgn2 10630
Library Cachekglpndl1 9510


Back to Latch Statistics
Back to Top

Parent Latch Statistics

No data exists for this section of the report.

Back to Latch Statistics
Back to Top

Child Latch Statistics

No data exists for this section of the report.

Back to Latch Statistics
Back to Top

Segment Statistics

Back to Top

Segments by Logical Reads

OwnerTablespace NameObject NameSubobject NameObj. TypeObj#Dataobj#Logical Reads%Total
SOESOE CUSTOMERS_PK INDEX74279742791,212,5448.15
SOESOE ORDERSSYS_P554TABLE PARTITION7401474014383,7602.58
SOESOE ORDERSSYS_P564TABLE PARTITION7402474024383,5842.58
SOESOE ORDERSSYS_P549TABLE PARTITION7400974009383,3122.58
SOESOE ORDERSSYS_P561TABLE PARTITION7402174021383,2002.58


Back to Segment Statistics
Back to Top

Segments by Physical Reads

OwnerTablespace NameObject NameSubobject NameObj. TypeObj#Dataobj#Physical Reads%Total
SOESOE ORDERSSYS_P578TABLE PARTITION740387403891,5923.28
SOESOE ORDERSSYS_P577TABLE PARTITION740377403789,8843.22
SOESOE ORDERSSYS_P576TABLE PARTITION740367403688,0603.15
SOESOE ORDERSSYS_P575TABLE PARTITION740357403586,4533.09
SOESOE ORDERSSYS_P574TABLE PARTITION740347403486,2873.09


Back to Segment Statistics
Back to Top

Segments by Physical Read Requests

OwnerTablespace NameObject NameSubobject NameObj. TypeObj#Dataobj#Phys Read Requests%Total
SOESOE ORDERSSYS_P578TABLE PARTITION740387403891,5923.28
SOESOE ORDERSSYS_P577TABLE PARTITION740377403789,8843.22
SOESOE ORDERSSYS_P576TABLE PARTITION740367403688,0603.15
SOESOE ORDERSSYS_P575TABLE PARTITION740357403586,4533.10
SOESOE ORDERSSYS_P574TABLE PARTITION740347403486,2873.09


Back to Segment Statistics
Back to Top

Segments by UnOptimized Reads

OwnerTablespace NameObject NameSubobject NameObj. TypeObj#Dataobj#UnOptimized Reads%Total
SOESOE ORDERSSYS_P578TABLE PARTITION740387403891,5923.28
SOESOE ORDERSSYS_P577TABLE PARTITION740377403789,8843.22
SOESOE ORDERSSYS_P576TABLE PARTITION740367403688,0603.15
SOESOE ORDERSSYS_P575TABLE PARTITION740357403586,4533.10
SOESOE ORDERSSYS_P574TABLE PARTITION740347403486,2873.09


Back to Segment Statistics
Back to Top

Segments by Optimized Reads

No data exists for this section of the report.

Back to Segment Statistics
Back to Top

Segments by Direct Physical Reads

No data exists for this section of the report.

Back to Segment Statistics
Back to Top

Segments by Physical Writes

OwnerTablespace NameObject NameSubobject NameObj. TypeObj#Dataobj#Physical Writes%Total
SOESOE INVENTORIES TABLE74039740391,80610.22
SOESOE CUSTOMERS_PK INDEX74279742793221.82
SYSSYSAUX WRH$_EVENT_HISTOGRAM_PKWRH$_EVENT_HISTOGRAM_1550963227_27INDEX PARTITION74497744971520.86
SOESOE ORDERSSYS_P569TABLE PARTITION7402974029790.45
SYSSYSAUX WRH$_SYSSTAT_PKWRH$_SYSSTAT_1550963227_27INDEX PARTITION7444674446660.37


Back to Segment Statistics
Back to Top

Segments by Physical Write Requests

OwnerTablespace NameObject NameSubobject NameObj. TypeObj#Dataobj#Phys Write Requests%Total
SOESOE INVENTORIES TABLE74039740391,57910.64
SOESOE CUSTOMERS_PK INDEX74279742793222.17
SYSSYSAUX WRH$_EVENT_HISTOGRAM_PKWRH$_EVENT_HISTOGRAM_1550963227_27INDEX PARTITION7449774497560.38
SOESOE ORDERSSYS_P547TABLE PARTITION7400774007460.31
SYSSYSAUX WRH$_SYSSTAT_PKWRH$_SYSSTAT_1550963227_27INDEX PARTITION7444674446290.20


Back to Segment Statistics
Back to Top

Segments by Direct Physical Writes

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


Back to Segment Statistics
Back to Top

Segments by Table Scans

No data exists for this section of the report.

Back to Segment Statistics
Back to Top

Segments by DB Blocks Changes

OwnerTablespace NameObject NameSubobject NameObj. TypeObj#Dataobj#DB Block Changes% of Capture
SOESOE INVENTORIES TABLE74039740392,88021.10
SYSSYSAUX WRH$_SYSSTAT_PKWRH$_SYSSTAT_1550963227_27INDEX PARTITION74446744461,74412.78
SOESOE ORD_ORDER_DATE_IX INDEX74332743321,0407.62
SYSSYSAUX WRH$_LATCH_PKWRH$_LATCH_1550963227_27INDEX PARTITION74426744267045.16
SYSSYSAUX WRH$_PARAMETER_PKWRH$_PARAMETER_1550963227_27INDEX PARTITION74450744505924.34


Back to Segment Statistics
Back to Top

Segments by Row Lock Waits

No data exists for this section of the report.

Back to Segment Statistics
Back to Top

Segments by ITL Waits

No data exists for this section of the report.

Back to Segment Statistics
Back to Top

Segments by Buffer Busy Waits

OwnerTablespace NameObject NameSubobject NameObj. TypeObj#Dataobj#Buffer Busy Waits% of Capture
SYSSYSTEM SEG$ TABLE1484100.00


Back to Segment Statistics
Back to Top

Segments by Global Cache Buffer Busy

OwnerTablespace NameObject NameSubobject NameObj. TypeObj#Dataobj#GC Buffer Busy% of Capture
SYSSYSTEM SEG$ TABLE1488100.00


Back to Segment Statistics
Back to Top

Segments by CR Blocks Received

OwnerTablespace NameObject NameSubobject NameObj. TypeObj#Dataobj#CR Blocks Received%Total
SYSSYSTEM SEG$ TABLE148208.40
SYSSYSAUX WRH$_SQL_PLAN TABLE1114711147135.46
SYSSYSAUX WRH$_PARAMETER_PKWRH$_PARAMETER_1550963227_27INDEX PARTITION7445074450125.04
SYSSYSAUX WRH$_EVENT_HISTOGRAMWRH$_EVENT_HISTOGRAM_1550963227_27TABLE PARTITION744957449541.68
SYSSYSAUX WRH$_LATCH_PKWRH$_LATCH_1550963227_27INDEX PARTITION744267442631.26


Back to Segment Statistics
Back to Top

Segments by Current Blocks Received

OwnerTablespace NameObject NameSubobject NameObj. TypeObj#Dataobj#Current Blocks Received%Total
SOESOE ORDERSSYS_P552TABLE PARTITION740127401275811.88
SOESOE ORDERSSYS_P550TABLE PARTITION740107401071111.14
SOESOE ORDERSSYS_P551TABLE PARTITION740117401170711.08
SOESOE ORDERSSYS_P549TABLE PARTITION740097400968410.72
SOESOE ORDERSSYS_P548TABLE PARTITION74008740085959.32


Back to Segment Statistics
Back to Top

Segments by Global Cache Remote Grants

OwnerTablespace NameObject NameSubobject NameObj. TypeObj#Dataobj#GC Remote Grants%Total
SOESOE ORDERSSYS_P556TABLE PARTITION740167401653,2283.76
SOESOE ORDERSSYS_P552TABLE PARTITION740127401252,2393.69
SOESOE ORDERSSYS_P561TABLE PARTITION740217402149,6453.50
SOESOE ORDERSSYS_P569TABLE PARTITION740297402947,7973.37
SOESOE ORDERSSYS_P578TABLE PARTITION740387403846,3113.27


Back to Segment Statistics
Back to Top

Dictionary Cache Statistics

Back to Top

Dictionary Cache Stats

CacheGet RequestsPct MissScan ReqsPct MissMod ReqsFinal Usage
dc_awr_control306.670 21
dc_cdbprops140.000 06
dc_files900.000 010
dc_global_oids1,0180.000 074
dc_histogram_data22,8810.090 07,084
dc_histogram_defs36,8550.660 913,128
dc_object_grants100.000 013
dc_objects21,0040.110 122,988
dc_profiles400.000 01
dc_props7110.280 084
dc_rollback_segments720.000 037
dc_segments5906.440 42987
dc_sequences160.000 1611
dc_tablespace_quotas250.000 01
dc_tablespaces3,9790.050 08
dc_users4,5780.071360.000162
outstanding_alerts10.000 03


Back to Dictionary Cache Statistics
Back to Top

Dictionary Cache Stats (RAC)

No data exists for this section of the report.

Back to Dictionary Cache Statistics
Back to Top

Library Cache Statistics

Back to Top

Library Cache Activity

NamespaceGet RequestsPct MissPin RequestsPct MissReloadsInvali- dations
ACCOUNT_STATUS800.000 00
AUDIT POLICY680.00680.0000
BODY3,9860.0021,3030.0000
CLUSTER510.00510.0000
DBLINK1320.000 00
EDITION370.00740.0000
INDEX440.00442.2710
OBJECT ID3100.000 00
QUEUE1620.001620.0000
SCHEMA573.510 00
SQL AREA1,64711.1772,7220.891606
SQL AREA BUILD26377.190 00
SQL AREA STATS25369.1725369.1700
TABLE/PROCEDURE1,3421.5648,2310.611730
TRIGGER400.00400.0000


Back to Library Cache Statistics
Back to Top

Library Cache Activity (RAC)

NamespaceGES Lock RequestsGES Pin RequestsGES Pin ReleasesGES Inval RequestsGES Invali- dations
ACCOUNT_STATUS800000
AUDIT POLICY68686800
BODY6720,34220,34200
CLUSTER51515100
DBLINK1320000
EDITION37373700
INDEX44444400
QUEUE16216216200
SCHEMA330000
TABLE/PROCEDURE1,83726,29626,29600
TRIGGER0404000


Back to Library Cache Statistics
Back to Top

Memory Statistics

Back to Top

Memory Dynamic Components

ComponentBegin Snap Size (Mb)Current Size (Mb)Min Size (Mb)Max Size (Mb)Oper CountLast Op Typ/Mod
ASM Buffer Cache0.000.000.000.000STA/
DEFAULT 16K buffer cache0.000.000.000.000STA/
DEFAULT 2K buffer cache0.000.000.000.000STA/
DEFAULT 32K buffer cache0.000.000.000.000STA/
DEFAULT 4K buffer cache0.000.000.000.000STA/
DEFAULT 8K buffer cache0.000.000.000.000STA/
DEFAULT buffer cache15,424.0015,424.0015,424.0015,424.000GRO/DEF
Data Transfer Cache0.000.000.000.000STA/
In Memory RO Extension Area0.000.000.000.000STA/
In Memory RW Extension Area0.000.000.000.000STA/
In-Memory Area0.000.000.000.000STA/
KEEP buffer cache0.000.000.000.000STA/
PGA Target6,016.006,016.006,016.006,016.000STA/
RECYCLE buffer cache0.000.000.000.000STA/
SGA Target18,048.0018,048.0018,048.0018,048.000STA/
Shared IO Pool128.00128.00128.00128.000STA/
java pool0.000.000.000.000STA/
large pool128.00128.00128.00128.000STA/
memoptimize buffer cache0.000.000.000.000STA/
shared pool2,176.002,176.002,176.002,176.000STA/
streams pool128.00128.00128.00128.000SHR/DEF
unified pga pool0.000.000.000.000STA/


Back to Memory Statistics
Back to Top

Memory Resize Operations Summary

No data exists for this section of the report.

Back to Memory Statistics
Back to Top

Memory Resize Ops

No data exists for this section of the report.

Back to Memory Statistics
Back to Top

Process Memory Summary

CategoryAlloc (MB)Used (MB)Avg Alloc (MB)Std Dev Alloc (MB)Max Alloc (MB)Hist Max Alloc (MB)Num ProcNum Alloc
BFreeable3,062.690.0054.69115.46347 5656
Other706.09 5.748.874347123123
PL/SQL21.977.190.181.151214121105
SQL10.349.170.140.3213827246
Total3,801.0816.3660.76125.81404443372330
EFreeable3,033.690.0054.17114.44344 5656
Other710.31 5.778.884348123123
PL/SQL21.977.040.181.151214121105
SQL11.559.840.160.3213827246
Total3,777.5216.8860.29124.78400444372330


Back to Memory Statistics
Back to Top

SGA Memory Summary

SGA regionsBegin Size (Bytes)End Size (Bytes) (if different)
Database Buffers16,307,453,952 
Fixed Size12,444,968 
Redo Buffers54,661,120 
Variable Size2,550,136,832 

Back to Memory Statistics
Back to Top

SGA breakdown difference by Pool and Name

PoolNameBegin MBEnd MB% Diff
largePX msg pool15.0015.000.00
largefree memory112.63112.630.00
sharedKGLH086.6686.22-0.50
sharedKJSC rnb slots25.2525.250.00
sharedSO private sga28.8828.880.00
sharedSQLA224.14226.751.16
shareddb_block_hash_buckets64.0064.000.00
sharedfree memory281.00281.080.03
sharedgc name table64.0064.000.00
sharedgcs resources522.74522.740.00
sharedgcs resv res hash bucket96.0096.000.00
sharedgcs shadows285.13285.130.00
sharedges big msg buffers26.2926.290.00
sharedksunfy_meta 125.0325.030.00
sharedrow cache0.020.020.00
streamsfree memory127.99127.990.00
 buffer_cache15,424.0015,424.000.00
 fixed_sga11.8711.870.00
 log_buffer52.1352.130.00
 shared_io_pool128.00128.000.00


Back to Memory Statistics
Back to Top

Replication Statistics (GoldenGate, XStream)

Back to Top

Replication System Resource Usage

No data exists for this section of the report.

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

Replication SGA Usage

No data exists for this section of the report.

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

GoldenGate Capture

No data exists for this section of the report.

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

GoldenGate Capture Rate

No data exists for this section of the report.

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

GoldenGate Apply Reader

No data exists for this section of the report.

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

GoldenGate Apply Coordinator

No data exists for this section of the report.

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

GoldenGate Apply Server

No data exists for this section of the report.

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

GoldenGate Apply Coordinator Rate

No data exists for this section of the report.

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

GoldenGate Apply Reader and Server Rate

No data exists for this section of the report.

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

XStream Capture

No data exists for this section of the report.

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

XStream Capture Rate

No data exists for this section of the report.

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

XStream Apply Reader

No data exists for this section of the report.

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

XStream Apply Coordinator

No data exists for this section of the report.

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

XStream Apply Server

No data exists for this section of the report.

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

XStream Apply Coordinator Rate

No data exists for this section of the report.

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

XStream Apply Reader and Server Rate

No data exists for this section of the report.

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

Table Statistics by DML Operations

No data exists for this section of the report.

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

Table Statistics by Conflict Resolutions

No data exists for this section of the report.

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

Replication Large Transaction Statistics

No data exists for this section of the report.

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

Replication Long Running Transaction Statistics

No data exists for this section of the report.

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

Advanced Queuing

Back to Top

Advanced Queue CPU/IO Usage

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


Back to Advanced Queuing
Back to Top

Buffered Queues

Queue NameEnq MsgsEnq Msgs/secDeq MsgsDeq Msgs/secSpill MsgsSpill Msgs/sec%Spill Msgs
SYS.SCHEDULER$_EVENT_QUEUE(19726) 00.0000.0000.00 


Back to Advanced Queuing
Back to Top

Buffered Queue Subscribers

Subscriber/QueueEnq MsgsEnq Msgs/secDeq MsgsDeq Msgs/secSpill MsgsSpill Msgs/sec%Spill Msgs
ST$SD2(21)/SYS.SCHEDULER$_EVENT_QUEUE 00.0000.0000.00 


Back to Advanced Queuing
Back to Top

Rule Set

No data exists for this section of the report.

Back to Advanced Queuing
Back to Top

Persistent Queues

Queue NameEnq MsgsDeq Msgs%Exp Msgs%Delay MsgsEnq Time(s)Deq Time(s)%Transf Time%Eval Time
SYS.AQ_SRVNTFN_TABLE_Q_1(73601) 00  0.000.00  
SYS.SCHEDULER$_EVENT_QUEUE(19726) 00  0.000.00  


Back to Advanced Queuing
Back to Top

Persistent Queues Rate

Queue NameEnqueue Msgs/secDequeue Msgs/secAvg Enqueue sec / msgAvg Dequeue sec / msg
SYS.AQ_SRVNTFN_TABLE_Q_1(73601) 0.000.00  
SYS.SCHEDULER$_EVENT_QUEUE(19726) 0.000.00  


Back to Advanced Queuing
Back to Top

Persistent Queue Subscribers

Subscriber/QueueEnqueue MsgsDequeue MsgsExpire MsgsEnqueue Msgs/secDequeue Msgs/secExpire Msgs/sec
ILM_AGENT(1)/SYS.SCHEDULER$_EVENT_QUEUE 0000.000.000.00
ST$SD2(21)/SYS.SCHEDULER$_EVENT_QUEUE 0000.000.000.00


Back to Advanced Queuing
Back to Top

Resource Limit Stats

Resource NameCurrent UtilizationMaximum Utilization Initial Allocation Limit
ges_cache_ress3,2453,7940UNLIMITED



Back to Top

Shared Server Statistics

Back to Top

Shared Servers Activity

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


Back to Shared Server Statistics
Back to Top

Shared Servers Rates

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


Back to Shared Server Statistics
Back to Top

Shared Servers Utilization

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


Back to Shared Server Statistics
Back to Top

Shared Servers Common Queue

No data exists for this section of the report.

Back to Shared Server Statistics
Back to Top

Shared Servers Dispatchers

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


Back to Shared Server Statistics
Back to Top

Initialization Parameters

Back to Top

Modified Parameters

Parameter NameBegin valueEnd value (if different)
_ipddb_enableTRUE  
audit_file_dest/u01/app/oracle/admin/orcl/adump  
audit_trailDB  
cluster_databaseTRUE  
compatible19.0.0  
control_files+DATA/ORCL/CONTROLFILE/current.261.1023182491  
db_block_size8192  
db_create_file_dest+DATA  
db_domainexample.com  
db_nameorcl  
diagnostic_dest/u01/app/oracle  
dispatchers(PROTOCOL=TCP) (SERVICE=orclXDB)  
instance_number1  
job_queue_processes16  
listener_networks    
local_listenerNodeFQDN  
nls_languageCROATIAN  
nls_territoryCROATIA  
open_cursors300  
pga_aggregate_target6289358848  
processes640  
remote_listenermyrac-scan.example.com:1521  
remote_login_passwordfileEXCLUSIVE  
resource_manager_planDEFAULT_PLAN  
sga_target18924699648  
thread1  
undo_tablespaceUNDOTBS1  


Back to Initialization Parameters
Back to Top

Modified Multi-Valued Parameters

No data exists for this section of the report.

Back to Initialization Parameters
Back to Top

Active Session History (ASH) Report

Back to Top

Top SQL with Top Events

SQL IDPlan HashExecutions% ActivityEvent% EventTop Row Source% Row SourceSQL Text
29qp10usqkqh03756252603246.91 db file parallel read41.36TABLE ACCESS - BY GLOBAL INDEX ROWID BATCHED35.19 SELECT TT.ORDER_TOTAL, TT.SALE...
db file sequential read3.70INDEX - RANGE SCAN3.70
CPU + Wait for CPU1.54TABLE ACCESS - BY GLOBAL INDEX ROWID BATCHED0.93
56pwkjspvmg3h42411348551919.75 db file parallel read17.90TABLE ACCESS - BY GLOBAL INDEX ROWID BATCHED17.90 WITH STAGE1 AS (SELECT /*+ mat...
db file sequential read1.85INDEX - RANGE SCAN1.85
gkxxkghxubh1a7985507971917.28 db file parallel read15.74TABLE ACCESS - BY GLOBAL INDEX ROWID BATCHED15.74 SELECT ORDER_MODE, ORDERS.WARE...
c13sma6rkr27c239325426772.16 db file sequential read2.16TABLE ACCESS - BY INDEX ROWID2.16 SELECT PRODUCTS.PRODUCT_ID, PR...
7ws837zynp1zv44714323772.16 db file sequential read2.16INDEX - RANGE SCAN1.54 SELECT CARD_ID, CUSTOMER_ID, C...


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

Top SQL with Top Row Sources

SQL IDPlan HashExecutions% ActivityRow Source% Row SourceTop Event% EventSQL Text
29qp10usqkqh03756252603246.91 TABLE ACCESS - BY GLOBAL INDEX ROWID BATCHED36.42db file parallel read35.19 SELECT TT.ORDER_TOTAL, TT.SALE...
TABLE ACCESS - BY GLOBAL INDEX ROWID4.94db file parallel read4.94
INDEX - RANGE SCAN4.01db file sequential read3.70
56pwkjspvmg3h42411348551919.75 TABLE ACCESS - BY GLOBAL INDEX ROWID BATCHED17.90db file parallel read17.90 WITH STAGE1 AS (SELECT /*+ mat...
INDEX - RANGE SCAN1.85db file sequential read1.85
gkxxkghxubh1a7985507971917.28 TABLE ACCESS - BY GLOBAL INDEX ROWID BATCHED16.36db file parallel read15.74 SELECT ORDER_MODE, ORDERS.WARE...
c13sma6rkr27c239325426772.16 TABLE ACCESS - BY INDEX ROWID2.16db file sequential read2.16 SELECT PRODUCTS.PRODUCT_ID, PR...
7ws837zynp1zv44714323772.16 INDEX - RANGE SCAN1.54db file sequential read1.54 SELECT CARD_ID, CUSTOMER_ID, C...


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

Top Sessions

Sid, Serial#% ActivityEvent% EventUserProgram# Samples ActiveXIDs
630,300889.88db file parallel read7.72 SOEJDBC Thin Client25/55 [ 46%]0
db file sequential read1.85 6/55 [ 11%]3
21,332639.57db file parallel read6.48 SOEJDBC Thin Client21/55 [ 38%]0
db file sequential read2.47 8/55 [ 15%]1
144, 51869.57db file parallel read8.02 SOEJDBC Thin Client26/55 [ 47%]0
db file sequential read1.54 5/55 [ 9%]3
271, 95849.57db file parallel read8.02 SOEJDBC Thin Client26/55 [ 47%]0
db file sequential read1.54 5/55 [ 9%]0
387,443419.57db file parallel read6.79 SOEJDBC Thin Client22/55 [ 40%]0
db file sequential read2.16 7/55 [ 13%]1


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

Top Blocking Sessions

No data exists for this section of the report.

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

Top PL/SQL Procedures

PL/SQL Entry Subprogram% ActivityPL/SQL Current Subprogram% Current
SOE.ORDERENTRY.SALESREPSQUERY46.91 SQL46.91
SOE.ORDERENTRY.WAREHOUSEACTIVITYQUERY19.75 SQL19.75
SOE.ORDERENTRY.WAREHOUSEORDERSQUERY17.28 SQL17.28
SOE.ORDERENTRY.NEWORDER7.41 SQL7.41
SOE.ORDERENTRY.BROWSEPRODUCTS1.23 SQL1.23


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

Top Events

EventEvent ClassSession Type% ActivityAvg Active Sessions
db file parallel readUser I/OFOREGROUND 75.004.43
db file sequential readUser I/OFOREGROUND 16.670.98
CPU + Wait for CPUCPUFOREGROUND 2.780.16
control file sequential readSystem I/OFOREGROUND 1.230.07


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

Top Event P1/P2/P3 Values

Event% EventP1, P2, P3 Values% ActivityParameter 1Parameter 2Parameter 3
db file parallel read75.00"1","127","127"18.52 filesblocksrequests
"2","127","127"17.28
"3","127","127"9.88
db file sequential read16.67"1","7227","1"0.31 file#block#blocks
control file sequential read2.16"0","39","1"0.93 file#block#blocks


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

Top DB Objects

Object ID% ActivityEvent% EventObject Name (Type)Tablespace
740144.32db file parallel read4.32 SOE.ORDERS.SYS_P554 (TABLE PARTITION)SOE
740213.70db file parallel read3.70 SOE.ORDERS.SYS_P561 (TABLE PARTITION)SOE
743303.70db file sequential read3.70 SOE.ORD_SALES_REP_IX (INDEX)SOE
740093.09db file parallel read3.09 SOE.ORDERS.SYS_P549 (TABLE PARTITION)SOE
740273.09db file parallel read3.09 SOE.ORDERS.SYS_P567 (TABLE PARTITION)SOE


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

Activity Over Time

Slot Time (Duration)Slot CountEventEvent Count% Event
12:01:02 (4.0 min)198db file parallel read15848.77
db file sequential read257.72
CPU + Wait for CPU51.54
12:05:00 (5.0 min)126db file parallel read8526.23
db file sequential read298.95
control file sequential read51.54


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

ADDM Task ADDM:1550963227_1_31

ADDM Report for Task 'ADDM:1550963227_1_31'
-------------------------------------------

Analysis Period
---------------
AWR snapshot range from 30 to 31.
Time period starts at 02.11.2019 12:01:02
Time period ends at 02.11.2019 12:10:12

Analysis Target
---------------
Database 'ORCL' with DB ID 1550963227.
Database version 19.0.0.0.0.
ADDM performed an analysis of instance orcl1, numbered 1 and hosted at
rac1.example.com.

Activity During the Analysis Period
-----------------------------------
Total database time was 3143 seconds.
The average number of active sessions was 5,71.

Summary of Findings
-------------------
Description                               Active Sessions      Recommendations
Percent of Activity
----------------------------------------  -------------------  ---------------
1  Top SQL Statements                        5,19 | 90,79         5
2  Undersized SGA                            3,59 | 62,91         1
3  Top Segments by "User I/O" and "Cluster"  1,05 | 18,46         5


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


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

Finding 1: Top SQL Statements
Impact is 5,2 active sessions, 90,79% of total activity.
--------------------------------------------------------
SQL statements consuming significant database time were found. These
statements offer a good opportunity for performance improvement.

Recommendation 1: SQL Tuning
Estimated benefit is 2,76 active sessions, 48,25% of total activity.
--------------------------------------------------------------------
Action
Run SQL Tuning Advisor on the SELECT statement with SQL_ID
"29qp10usqkqh0".
Related Object
SQL statement with SQL_ID 29qp10usqkqh0.
SELECT 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
Action
Use bigger fetch arrays while fetching results from the SELECT statement
with SQL_ID "29qp10usqkqh0".
Related Object
SQL statement with SQL_ID 29qp10usqkqh0.
SELECT 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
Rationale
The SQL spent 100% of its database time on CPU, I/O and Cluster waits.
This part of database time may be improved by the SQL Tuning Advisor.
Rationale
Database time for this SQL was divided as follows: 100% for SQL
execution, 0% for parsing, 0% for PL/SQL execution and 0% for Java
execution.
Rationale
SQL statement with SQL_ID "29qp10usqkqh0" was executed 45 times and had
an average elapsed time of 33 seconds.
Rationale
I/O and Cluster wait for INDEX "SOE.ORD_SALES_REP_IX" with object ID
74330 consumed 7% of the database time spent on this SQL statement.
Rationale
I/O and Cluster wait for TABLE PARTITION "SOE.ORDERS.SYS_P549" with
object ID 74009 consumed 5% of the database time spent on this SQL
statement.
Rationale
I/O and Cluster wait for TABLE PARTITION "SOE.ORDERS.SYS_P561" with
object ID 74021 consumed 5% of the database time spent on this SQL
statement.
Rationale
Top level calls to execute the PL/SQL statement with SQL_ID
"cj9v3ynkm7uuy" are responsible for 100% of the database time spent on
the SELECT statement with SQL_ID "29qp10usqkqh0".
Related Object
SQL statement with SQL_ID cj9v3ynkm7uuy.
BEGIN :1 := orderentry.SalesRepsQuery(:2 ,:3 ,:4 ); END;

Recommendation 2: SQL Tuning
Estimated benefit is 1,16 active sessions, 20,32% of total activity.
--------------------------------------------------------------------
Action
Run SQL Tuning Advisor on the SELECT statement with SQL_ID
"56pwkjspvmg3h".
Related Object
SQL statement with SQL_ID 56pwkjspvmg3h.
WITH 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
Rationale
The SQL spent 100% of its database time on CPU, I/O and Cluster waits.
This part of database time may be improved by the SQL Tuning Advisor.
Rationale
Database time for this SQL was divided as follows: 100% for SQL
execution, 0% for parsing, 0% for PL/SQL execution and 0% for Java
execution.
Rationale
SQL statement with SQL_ID "56pwkjspvmg3h" was executed 19 times and had
an average elapsed time of 33 seconds.
Rationale
Top level calls to execute the PL/SQL statement with SQL_ID
"89b7r2pg1cn4a" are responsible for 100% of the database time spent on
the SELECT statement with SQL_ID "56pwkjspvmg3h".
Related Object
SQL statement with SQL_ID 89b7r2pg1cn4a.
BEGIN :1 := orderentry.WarehouseActivityQuery(:2 ,:3 ,:4 ); END;

Recommendation 3: SQL Tuning
Estimated benefit is 1,02 active sessions, 17,78% of total activity.
--------------------------------------------------------------------
Action
Run SQL Tuning Advisor on the SELECT statement with SQL_ID
"gkxxkghxubh1a".
Related Object
SQL statement with SQL_ID gkxxkghxubh1a.
SELECT 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)
Rationale
The SQL spent 100% of its database time on CPU, I/O and Cluster waits.
This part of database time may be improved by the SQL Tuning Advisor.
Rationale
Database time for this SQL was divided as follows: 100% for SQL
execution, 0% for parsing, 0% for PL/SQL execution and 0% for Java
execution.
Rationale
SQL statement with SQL_ID "gkxxkghxubh1a" was executed 19 times and had
an average elapsed time of 30 seconds.
Rationale
I/O and Cluster wait for TABLE PARTITION "SOE.ORDERS.SYS_P567" with
object ID 74027 consumed 14% of the database time spent on this SQL
statement.
Rationale
Top level calls to execute the PL/SQL statement with SQL_ID
"b5dk0t95fhyd7" are responsible for 100% of the database time spent on
the SELECT statement with SQL_ID "gkxxkghxubh1a".
Related Object
SQL statement with SQL_ID b5dk0t95fhyd7.
BEGIN :1 := orderentry.WarehouseOrdersQuery(:2 ,:3 ,:4 ); END;

Recommendation 4: SQL Tuning
Estimated benefit is ,13 active sessions, 2,22% of total activity.
------------------------------------------------------------------
Action
Run SQL Tuning Advisor on the SELECT statement with SQL_ID
"c13sma6rkr27c".
Related Object
SQL statement with SQL_ID c13sma6rkr27c.
SELECT 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
Rationale
The SQL spent 100% of its database time on CPU, I/O and Cluster waits.
This part of database time may be improved by the SQL Tuning Advisor.
Rationale
Database time for this SQL was divided as follows: 100% for SQL
execution, 0% for parsing, 0% for PL/SQL execution and 0% for Java
execution.
Rationale
SQL statement with SQL_ID "c13sma6rkr27c" was executed 10204 times and
had an average elapsed time of 0.0079 seconds.
Rationale
Top level calls to execute the PL/SQL statement with SQL_ID
"0w2qpuc6u2zsp" are responsible for 100% of the database time spent on
the SELECT statement with SQL_ID "c13sma6rkr27c".
Related Object
SQL statement with SQL_ID 0w2qpuc6u2zsp.
BEGIN :1 := orderentry.neworder(:2 ,:3 ,:4 ); END;

Recommendation 5: SQL Tuning
Estimated benefit is ,13 active sessions, 2,22% of total activity.
------------------------------------------------------------------
Action
Run SQL Tuning Advisor on the SELECT statement with SQL_ID
"7ws837zynp1zv".
Related Object
SQL statement with SQL_ID 7ws837zynp1zv.
SELECT CARD_ID, CUSTOMER_ID, CARD_TYPE, CARD_NUMBER, EXPIRY_DATE,
IS_VALID, SECURITY_CODE FROM CARD_DETAILS WHERE CUSTOMER_ID = :B2 AND
ROWNUM < :B1
Rationale
The SQL spent 100% of its database time on CPU, I/O and Cluster waits.
This part of database time may be improved by the SQL Tuning Advisor.
Rationale
Database time for this SQL was divided as follows: 100% for SQL
execution, 0% for parsing, 0% for PL/SQL execution and 0% for Java
execution.
Rationale
SQL statement with SQL_ID "7ws837zynp1zv" was executed 876 times and had
an average elapsed time of 0.019 seconds.
Rationale
Top level calls to execute the PL/SQL statement with SQL_ID
"0w2qpuc6u2zsp" are responsible for 100% of the database time spent on
the SELECT statement with SQL_ID "7ws837zynp1zv".
Related Object
SQL statement with SQL_ID 0w2qpuc6u2zsp.
BEGIN :1 := orderentry.neworder(:2 ,:3 ,:4 ); END;


Finding 2: Undersized SGA
Impact is 3,6 active sessions, 62,91% of total activity.
--------------------------------------------------------
The SGA was inadequately sized, causing additional I/O or hard parses.
The value of parameter "sga_target" was "18048 M" during the analysis period.

Recommendation 1: Database Configuration
Estimated benefit is 1,93 active sessions, 33,79% of total activity.
--------------------------------------------------------------------
Action
Increase the size of the SGA by setting the parameter "sga_target" to
20304 M.

Symptoms That Led to the Finding:
---------------------------------
Wait class "User I/O" was consuming significant database time.
Impact is 5,36 active sessions, 93,75% of total activity.


Finding 3: Top Segments by "User I/O" and "Cluster"
Impact is 1,06 active sessions, 18,46% of total activity.
---------------------------------------------------------
Individual database segments responsible for significant "User I/O" and
"Cluster" waits were found.

Recommendation 1: Segment Tuning
Estimated benefit is ,25 active sessions, 4,46% of total activity.
------------------------------------------------------------------
Action
Investigate application logic involving I/O on TABLE PARTITION
"SOE.ORDERS.SYS_P554" with object ID 74014.
Related Object
Database object with ID 74014.
Rationale
The I/O usage statistics for the object are: 0 full object scans, 78186
physical reads, 55 physical writes and 0 direct reads.

Recommendation 2: Segment Tuning
Estimated benefit is ,22 active sessions, 3,82% of total activity.
------------------------------------------------------------------
Action
Investigate application logic involving I/O on TABLE PARTITION
"SOE.ORDERS.SYS_P561" with object ID 74021.
Related Object
Database object with ID 74021.
Action
Look at the "Top SQL Statements" finding for SQL statements consuming
significant I/O on this segment. For example, the SELECT statement with
SQL_ID "29qp10usqkqh0" is responsible for 74% of "User I/O" and
"Cluster" waits for this segment.
Rationale
The I/O usage statistics for the object are: 0 full object scans, 80116
physical reads, 20 physical writes and 0 direct reads.

Recommendation 3: Segment Tuning
Estimated benefit is ,22 active sessions, 3,82% of total activity.
------------------------------------------------------------------
Action
Investigate application logic involving I/O on INDEX
"SOE.ORD_SALES_REP_IX" with object ID 74330.
Related Object
Database object with ID 74330.
Action
Look at the "Top SQL Statements" finding for SQL statements consuming
significant I/O on this segment. For example, the SELECT statement with
SQL_ID "29qp10usqkqh0" is responsible for 99% of "User I/O" and
"Cluster" waits for this segment.

Recommendation 4: Segment Tuning
Estimated benefit is ,18 active sessions, 3,18% of total activity.
------------------------------------------------------------------
Action
Investigate application logic involving I/O on TABLE PARTITION
"SOE.ORDERS.SYS_P549" with object ID 74009.
Related Object
Database object with ID 74009.
Action
Look at the "Top SQL Statements" finding for SQL statements consuming
significant I/O on this segment. For example, the SELECT statement with
SQL_ID "29qp10usqkqh0" is responsible for 89% of "User I/O" and
"Cluster" waits for this segment.
Rationale
The I/O usage statistics for the object are: 0 full object scans, 77580
physical reads, 23 physical writes and 0 direct reads.

Recommendation 5: Segment Tuning
Estimated benefit is ,18 active sessions, 3,18% of total activity.
------------------------------------------------------------------
Action
Investigate application logic involving I/O on TABLE PARTITION
"SOE.ORDERS.SYS_P567" with object ID 74027.
Related Object
Database object with ID 74027.
Action
Look at the "Top SQL Statements" finding for SQL statements consuming
significant I/O on this segment. For example, the SELECT statement with
SQL_ID "gkxxkghxubh1a" is responsible for 79% of "User I/O" and
"Cluster" waits for this segment.
Rationale
The I/O usage statistics for the object are: 0 full object scans, 83055
physical reads, 9 physical writes and 0 direct reads.

Symptoms That Led to the Finding:
---------------------------------
Wait class "User I/O" was consuming significant database time.
Impact is 5,36 active sessions, 93,75% of total activity.



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

Additional Information
----------------------

Miscellaneous Information
-------------------------
Wait class "Application" was not consuming significant database time.
Wait class "Cluster" was not consuming significant database time.
Wait class "Commit" was not consuming significant database time.
Wait class "Concurrency" was not consuming significant database time.
Wait class "Configuration" was not consuming significant database time.
CPU was not a bottleneck for the instance.
Wait class "Network" was not consuming significant database time.
The network latency of the cluster interconnect was within acceptable limits
of 1 milliseconds.
Session connect and disconnect calls were not consuming significant database
time.
Hard parsing of SQL statements was not consuming significant database time.

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


Back to Top

RAC Statistics

BeginEnd
Number of Instances: 2 2
Number of LMS's: 2 2
Number of realtime LMS's: 2 2 (0 priority changes)

Global Cache Load Profile

Per SecondPer Transaction
Global Cache blocks received: 12.05 3.10
Global Cache blocks served: 0.86 0.22
GCS/GES messages received: 2,595.31 667.13
GCS/GES messages sent: 5,163.06 1,327.19
DBWR Fusion writes: 0.56 0.14
Estd Interconnect traffic (KB) 1,618.62 

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

Buffer access - local cache %: 81.17
Buffer access - remote cache %: 0.04
Buffer access - disk %: 18.79
Global Cache Locality %: 49.35

Global Cache and Enqueue Services - Workload Characteristics

Avg global cache cr block receive time (us): 294.1
Avg global cache current block receive time (us): 1,618.6
Avg LMS process busy %: 0.5
Avg global cache cr block build time (us): 0.0
Global cache log flushes for cr blocks served %: 4.1
Avg global cache cr block flush time (us): 2,727.3
Avg global cache current block pin time (us): 0.0
Global cache log flushes for current blocks served %: 6.9
Avg global cache current block flush time (us): 4,285.7
Avg global enqueue get time (us): 0.0

Global Cache and Enqueue Services - Messaging Statistics

Avg message sent queue time (us): 9,051.0
Avg message sent queue time on ksxp (us): 546.0
Avg message received kernel queue time (us): 0.8
Avg message received queue time (us): 0.4
Avg GCS message process time (us): 2.2
Avg GES message process time (us): 9.0
% of direct sent messages: 4.22
% of indirect sent messages: 95.77
% of flow controlled messages: 0.01


Cluster Interconnect

 Begin End
InterfaceIP AddressPubSourcePubSrc
fg-priv:1169.254.9.43N   

RAC Statistics


Back to Top


Back to Top

Global Messaging Statistics

StatisticTotalper Secondper Trans
Cluster reconfiguration count00.000.00
Domain reconfiguration count00.000.00
Global Enqueue S-optim Broadcasts sent1040.190.05
Global Enqueue S-optim S-lock gets116,556212.1854.54
Global Enqueue S-optim anti-locks crea240.040.01
KA local message waits00.000.00
KA local messages received00.000.00
KA messages received actual00.000.00
KA messages received logical00.000.00
KA requests failed00.000.00
KA requests succeeded00.000.00
Pseudo reconfiguration count00.000.00
Pseudo rm reconfig count00.000.00
acks for commit broadcast(actual)810.150.04
acks for commit broadcast(logical)840.150.04
broadcast msgs on commit(actual)2,5484.641.19
broadcast msgs on commit(logical)2,7895.081.31
broadcast msgs on commit(wasted)930.170.04
dynamically allocated gcs resources00.000.00
dynamically allocated gcs shadows00.000.00
flow control messages received00.000.00
flow control messages sent10.000.00
gcs assume cvt00.000.00
gcs assume no cvt1090.200.05
gcs ast to fg280.050.01
gcs ast xid00.000.00
gcs bidless ast to lms00.000.00
gcs blocked converts4180.760.20
gcs blocked cr converts2970.540.14
gcs compatible basts190.030.01
gcs compatible cr basts (global)7821.420.37
gcs compatible cr basts (local)2,0973.820.98
gcs cr basts to PIs00.000.00
gcs cr requests to slave00.000.00
gcs cr serve without current lock00.000.00
gcs dbwr flush pi msgs8,79916.024.12
gcs dbwr write request msgs3100.560.15
gcs error msgs00.000.00
gcs flash read serve requests to slave00.000.00
gcs force cr block only30.010.00
gcs force cr grant10.000.00
gcs force cr no current00.000.00
gcs forward cr to pinged instance00.000.00
gcs grant ast280.050.01
gcs grant request in partial open00.000.00
gcs immediate (compatible) converts1,2822.330.60
gcs immediate (null) converts8,38415.263.92
gcs immediate cr (compatible) converts941,2121,713.40440.44
gcs immediate cr (null) converts428,900780.78200.70
gcs lms flush pi msgs00.000.00
gcs lms write request msgs90.020.00
gcs msgs process time(ms)3,0425.541.42
gcs msgs received1,367,7342,489.84640.03
gcs new served by master4720.860.22
gcs out-of-order msgs00.000.00
gcs pings refused1010.180.05
gcs pkey conflicts retry00.000.00
gcs queued converts00.000.00
gcs read-mostly failure unmount db00.000.00
gcs reader bypass N->Xw ping local00.000.00
gcs reader bypass N->Xw ping remote00.000.00
gcs reader bypass grant X on assume00.000.00
gcs reader bypass grant ast00.000.00
gcs reader bypass grant fg ast00.000.00
gcs reader bypass grant immediate1560.280.07
gcs recovery claim msgs00.000.00
gcs refuse xid00.000.00
gcs refuse xid to fg00.000.00
gcs refuse xid to lms00.000.00
gcs refuse xid to master00.000.00
gcs regular cr00.000.00
gcs resources for dynamic sga00.000.00
gcs retry convert request00.000.00
gcs shadows for dynamic sga00.000.00
gcs share recovery bast00.000.00
gcs side channel msgs actual2,3234.231.09
gcs side channel msgs logical62,735114.2029.36
gcs stale cr330.060.02
gcs undo cr00.000.00
gcs write notification msgs10.000.00
gcs writes refused10.000.00
ges msgs process time(ms)170.030.01
ges msgs received1,8853.430.88
ges remote lock allocation150.030.01
global posts dropped00.000.00
global posts queue time00.000.00
global posts queued00.000.00
global posts requested00.000.00
global posts sent00.000.00
implicit batch messages received1190.220.06
implicit batch messages sent9341.700.44
lmd msg send time(ms)00.000.00
lms(s) msg send time(ms)00.000.00
messages flow controlled950.170.04
messages queue sent actual42,32777.0519.81
messages queue sent logical14,79126.936.92
messages received actual122,647223.2757.39
messages received logical1,369,6192,493.28640.91
messages sent directly62,095113.0429.06
messages sent indirectly1,408,2822,563.66659.00
messages sent not implicit batched1,0561.920.49
messages sent pbatched2,764,1245,031.861,293.46
msgs causing lmd to send msgs00.000.00
msgs causing lms(s) to send msgs00.000.00
msgs received kernel queue time (ns)1,076,140,4311,959,023.22503,575.31
msgs received queue time (ms)6111.110.29
msgs received queued1,369,6192,493.28640.91
msgs sent queue time (ms)461,202839.58215.82
msgs sent queue time on ksxp (ms)119,201217.0055.78
msgs sent queued50,95692.7623.84
msgs sent queued on ksxp218,314397.42102.16
number of broadcasted resources00.000.00
number of directly freed master res3840.700.18
number of ges deadlock detected00.000.00
number of lock borrowed by LMD00.000.00
number of received ODPS messages00.000.00
number of received RBA messages00.000.00
number of resource borrowed by LMD00.000.00
number of sent ODPS messages00.000.00
number of sent RBA messages00.000.00
process batch messages received118,254215.2755.34
process batch messages sent155,134282.4172.59
receiver cycle time33,61761.2015.73
receiver loop count198,978362.2293.11



Back to Top

Global CR Server Statistics

StatisticTotal
CR Block Requests69
CURRENT Block Requests195
Data Block Requests69
Undo Block Requests0
TX Block Requests179
Current Results258
Private results0
Zero Results6
Disk Read Results0
Fail Results0
Fairness Down Converts34
Light Works0
Flushes11
Builds69
Errors0



Back to Top

Global Current Server Statistics

StatisticTotal% <100us% <1ms% <10ms% <100ms% <1s% <10s
Pins0      
Flushes14 14.2985.71   



Back to Top

Global Cache Transfer Statistics

Back to Top

Global Cache Transfer Statistics

  CR Current
Inst NoBlock Class Blocks Received% Immed% Busy% CongstBlocks Received% Immed% Busy% Congst
2data block11298.211.790.006,21796.203.800.00
2Others75100.000.000.0015755.4144.590.00
2undo header4987.7612.240.00    


Back to Global Cache Transfer Statistics
Back to Top

Global Cache Transfer Times (us)

  CR Avg Time (us) Current Avg Time (us)
Inst NoBlock Class AllImmedBusyCongstAllImmedBusyCongst
2data block3072861455 16531703381 
2others225225  605904234 
2undo header5752323031     
2undo block        


Back to Global Cache Transfer Statistics
Back to Top

Global Cache Transfer (Immediate)

   CR Current
Src Inst#Block Class Blocks LostImmed Blks Received% 2hop% 3hopImmed Blks Received% 2hop% 3hop
2data block 110100.000.005,981100.000.00
2others 75100.000.0087100.000.00
2undo header 43100.000.00   
2undo block       


Back to Global Cache Transfer Statistics
Back to Top

Global Cache Times (Immediate)

   CR Avg Time (us) Current Avg Time (us)
Src Inst#Block Class Lost TimeImmed2hop3hopImmed2hop3hop
2data block 286286 17031703 
2others 225225 904