WORKLOAD REPOSITORY report for

DB NameDB IdUnique NameRoleEditionReleaseRACCDB
ORCL1550963227orclPRIMARYEE19.0.0.0.0YESNO

InstanceInst NumStartup Time
orcl2201-Stu-19 19:52

Host NamePlatformCPUsCoresSocketsMemory (GB)
rac2.example.comLinux x86 64-bit 8 4 1 30.81

Snap IdSnap TimeSessionsCursors/SessionInstances
Begin Snap:3202-Stu-19 12:19:2993 1.62
End Snap:3302-Stu-19 12:31:2196 1.62
Elapsed:  11.87 (mins)   
DB Time:  101.58 (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 Statements8.5688.80ADDM:1550963227_2_3302-Stu-19 12:1902-Stu-19 12:31
Undersized SGA8.5656.89ADDM:1550963227_2_3302-Stu-19 12:1902-Stu-19 12:31
Top Segments by "User I/O" and "Cluster"8.5619.35ADDM:1550963227_2_3302-Stu-19 12:1902-Stu-19 12:31
Global Cache Messaging8.565.99ADDM:1550963227_2_3302-Stu-19 12:1902-Stu-19 12:31
Global Cache Congestion8.561.80ADDM:1550963227_2_3302-Stu-19 12:1902-Stu-19 12:31

Load Profile

Per SecondPer TransactionPer ExecPer Call
DB Time(s): 8.6 1.0 0.03 0.24
DB CPU(s): 0.4 0.0 0.00 0.01
Background CPU(s): 0.1 0.0 0.00 0.00
Redo size (bytes): 42,619.5 4,860.0  
Logical read (blocks): 54,966.6 6,268.0  
Block changes: 383.4 43.7  
Physical read (blocks): 7,553.4 861.3  
Physical write (blocks): 65.6 7.5  
Read IO requests: 7,550.3 861.0  
Write IO requests: 52.6 6.0  
Read IO (MB): 59.0 6.7  
Write IO (MB): 0.5 0.1  
IM scan rows: 0.0 0.0  
Session Logical Read IM: 0.0 0.0  
Global Cache blocks received: 190.8 21.8  
Global Cache blocks served: 91.6 10.4  
User calls: 35.7 4.1  
Parses (SQL): 6.0 0.7  
Hard parses (SQL): 0.4 0.0  
SQL Work Area (MB): 20.4 2.3  
Logons: 0.3 0.0  
User logons: 0.0 0.0  
Executes (SQL): 274.9 31.3  
Rollbacks: 0.0 0.0  
Transactions: 8.8   

Instance Efficiency Percentages (Target 100%)

Buffer Nowait %: 99.99Redo NoWait %: 100.00
Buffer Hit %: 86.26In-memory Sort %: 100.00
Library Hit %: 99.77Soft Parse %: 93.43
Execute to Parse %: 97.82Latch Hit %: 99.99
Parse CPU to Parse Elapsd %: 29.57% Non-Parse CPU: 99.62
Flash Cache Hit %: 0.00

Top 10 Foreground Events by Total Wait Time

EventWaitsTotal Wait Time (sec)Avg Wait% DB timeWait Class
db file parallel read58,862406369.03ms66.7User I/O
db file sequential read214,9481371,46.38ms22.5User I/O
DB CPU 271,7 4.5 
gc cr multi block mixed1,976106,453.85ms1.7Cluster
gc cr multi block grant90,81997,41.07ms1.6Cluster
log file sync6,38582,912.98ms1.4Commit
gc cr grant busy82,58778,1945.45us1.3Cluster
gc cr block 2-way85,92631,3364.78us.5Cluster
gc current grant busy24,13615,8656.57us.3Cluster
gc buffer busy acquire2,67215,35.72ms.3Cluster

Wait Classes by Total Wait Time

Wait ClassWaitsTotal Wait Time (sec)Avg Wait Time% DB timeAvg Active Sessions
User I/O283,2355,45319.25ms89.57.7
Cluster300,3293661.22ms6.00.5
DB CPU 272 4.50.4
System I/O19,7991306.57ms2.10.2
Commit6,3878312.98ms1.40.1
Other84,99012139.65us.20.0
Application34326.95ms.00.0
Concurrency2,590077.39us.00.0
Network25,46302.89us.00.0
Configuration120383.17us.00.0

Host CPU

CPUsCoresSocketsLoad Average BeginLoad Average End%User%System%WIO%Idle
8 4 1 0.02 2.59 6.6 2.3 46.7 90.6

Instance CPU

%Total CPU%Busy CPU%DB time waiting for CPU (Resource Manager)
6.4 67.7 0.0

IO Profile

Read+Write Per SecondRead per SecondWrite Per Second
Total Requests: 7,621.8 7,558.8 63.1
Database Requests: 7,602.9 7,550.3 52.6
Optimized Requests: 0.0 0.0 0.0
Redo Requests: 10.0 0.0 9.9
Total (MB): 59.7 59.2 0.6
Database (MB): 59.5 59.0 0.5
Optimized Total (MB): 0.0 0.0 0.0
Redo (MB): 0.1 0.0 0.0
Database (blocks): 7,619.0 7,553.4 65.6
Via Buffer Cache (blocks): 7,618.4 7,553.4 65.0
Direct (blocks): 0.6 0.0 0.6

Memory Statistics

BeginEnd
Host Mem (MB): 31,547.5 31,547.5
SGA use (MB): 18,048.0 18,048.0
PGA use (MB): 4,380.9 4,353.3
% Host Mem used for SGA+PGA: 71.10 71.01

Cache Sizes

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

Shared Pool Statistics

BeginEnd
Memory Usage %: 89.72 90.23
% SQL with executions>1: 96.57 96.39
% Memory for SQL w/exec>1: 91.86 86.61

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 time6,004.3898.52 
DB CPU271.704.4675.89
PL/SQL execution elapsed time9.650.16 
parse time elapsed5.310.09 
hard parse elapsed time5.230.09 
hard parse (sharing criteria) elapsed time1.420.02 
connection management call elapsed time1.080.02 
PL/SQL compilation elapsed time0.180.00 
repeated bind elapsed time0.010.00 
failed parse elapsed time0.000.00 
DB time6,094.74  
background elapsed time200.12  
background cpu time86.30 24.11
total CPU time358.00  


Back to Wait Events Statistics
Back to Top

Operating System Statistics

StatisticValueEnd Value
FREE_MEMORY_BYTES3,274,702,8483,272,716,288
INACTIVE_MEMORY_BYTES1,362,464,7681,352,732,672
BUSY_TIME52,859 
IDLE_TIME507,822 
IOWAIT_TIME261,696 
NICE_TIME0 
SYS_TIME12,931 
USER_TIME37,258 
LOAD03
RSRC_MGR_CPU_WAIT_TIME0 
PHYSICAL_MEMORY_BYTES33,079,971,840 
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:19:290.02     
02-Stu 12:31:212.599.436.652.3190.5746.67


Back to Wait Events Statistics
Back to Top

Foreground Wait Class

Wait ClassWaits%Time -outsTotal Wait Time (s)Avg wait%DB time
User I/O276,30005,44019.69ms89.26
Cluster299,07303651.22ms5.99
DB CPU  272 4.46
Commit6,38508312.98ms1.36
Other45,311585104.39us0.08
System I/O2,97202677.87us0.03
Application158015.29ms0.01
Concurrency18830519.78us0.00
Network23,855001.59us0.00
Configuration4750541.00us0.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 read58,862 4,06369.03ms9.4266.66
db file sequential read214,948 1,3716.38ms34.4122.50
gc cr multi block mixed1,976 10653.85ms0.321.75
gc cr multi block grant90,819 971.07ms14.541.60
log file sync6,385 8312.98ms1.021.36
gc cr grant busy82,587 78945.45us13.221.28
gc cr block 2-way85,926 31364.78us13.750.51
gc current grant busy24,136 16656.57us3.860.26
gc buffer busy acquire2,672 155.72ms0.430.25
gc cr block lost24 13541.95ms0.000.21
KJC: Wait for msg sends to complete137 215.67ms0.020.04
direct path write temp203 210.04ms0.030.03
control file sequential read2,972 2677.87us0.480.03
gc current grant 2-way2,243 2777.72us0.360.03
read by other session73 223.10ms0.010.03
Disk file Mirror Read625 22.62ms0.100.03
Sync ASM rebalance40 133.69ms0.010.02
gc current block busy3,576 1356.85us0.570.02
gc current block 2-way3,934 1320.08us0.630.02
gc current block lost2 1540.55ms0.000.02
gc current multi block request180 15.92ms0.030.02
gc cr grant 2-way916 11.06ms0.150.02
SQL*Net break/reset to client158 15.29ms0.030.01
db file scattered read57 06.79ms0.010.01
PGA memory operation17,617 021.78us2.820.01
Disk file operations I/O923 0260.08us0.150.00
enq: PS - contention167401.24ms0.030.00
PX Deq: reap credit25,77410006.31us4.130.00
IPC send completion sync342 0322.76us0.050.00
ASM file metadata operation8 012.48ms0.000.00
gc cr block busy5 018.89ms0.000.00
PX Deq: Join ACK102 0793.37us0.020.00
PX Deq: Slave Session Stats271 0210.69us0.040.00
gc cr disk read75 0571.27us0.010.00
SQL*Net message to client23,775 01.54us3.810.00
library cache: mutex X18 01.67ms0.000.00
library cache lock5440548.61us0.010.00
CSS initialization6 04.45ms0.000.00
reliable message51 0501.04us0.010.00
DLM cross inst call completion31 0712.29us0.000.00
enq: TS - contention301000582.27us0.000.00
latch: gc element51 0299.27us0.010.00
latch: shared pool5 02.44ms0.000.00
library cache pin44 0269.34us0.010.00
latch: cache buffers lru chain116 063.85us0.020.00
gc index operation1 06.81ms0.000.00
CSS operation: action6 01.07ms0.000.00
enq: TO - contention14 0452.93us0.000.00
library cache load lock4 01.15ms0.000.00
latch: cache buffers chains52 076.42us0.010.00
enq: HW - contention4750541.00us0.000.00
cursor: pin S2 01.08ms0.000.00
PX Deq: Signal ACK EXT102 020.30us0.020.00
gc cr block congested1 01.86ms0.000.00
enq: TX - index contention4 0437.50us0.000.00
row cache lock41000368.75us0.000.00
watchdog main loop952 2,8563000.00ms0.15 
SQL*Net message from client23,781 94939.92ms3.81 
PX Deq Credit: send blkd7,713 6820.45us1.23 
PX Deq: Execute Reply5,686 2279.69us0.91 
PX Deq: Execution Msg507 12.94ms0.08 
PX Deq: Msg Fragment350 0311.39us0.06 
PX Deq: Parse Reply102 0449.80us0.02 
PX Deq Credit: need buffer23 01.68ms0.00 


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 write6,86907110.31ms1.1035.37
db file async I/O submit2,22002611.89ms0.3613.19
db file parallel write4,3520153.56ms0.707.74
control file sequential read3,0040103.49ms0.485.24
Disk file Mirror Read992065.69ms0.162.82
control file parallel write3730513.10ms0.062.44
db file sequential read924044.51ms0.152.08
IMR slave acknowledgement msg2,136031.23ms0.341.32
Sync ASM rebalance400257.23ms0.011.14
enq: RO - fast object reuse182028.51ms0.030.77
direct path write temp118019.50ms0.020.56
Parameter File I/O320123.12ms0.010.37
gc cr block lost101590.73ms0.000.30
DLM cross inst call completion56000879.83us0.090.25
gcs log flush sync348001.07ms0.060.19
db file scattered read98003.02ms0.020.15
reliable message82002.93ms0.010.12
ges inquiry response67002.95ms0.010.10
ASM file metadata operation88600216.17us0.140.10
gc current block busy31500466.38us0.050.07
gc cr grant busy32500353.82us0.050.06
latch free1,08100102.25us0.170.06
oracle thread bootstrap40024.75ms0.000.05
gc cr block 2-way29400336.02us0.050.05
direct path write11007.91ms0.000.04
KSV master wait560940153.02us0.090.04
enq: CF - contention427401.78ms0.010.04
log file sequential read8008.60ms0.000.03
PX Deq: reap credit16,20610004.18us2.590.03
AQ: RAC AQ Network7,11510006.43us1.140.02
PX Deq: Join ACK43001.00ms0.010.02
gc current grant busy17500238.78us0.030.02
CGS wait for IPC msg7,61210005.16us1.220.02
cursor: pin S wait on X30012.77ms0.000.02
IPC group service call1,5270023.31us0.240.02
gc cr block busy8004.23ms0.000.02
row cache lock421000801.50us0.010.02
ASM IO for non-blocking poll4,379005.67us0.700.01
enq: PS - contention40250582.60us0.010.01
os thread creation4005.76ms0.000.01
gc buffer busy acquire7003.28ms0.000.01
library cache lock3600571.06us0.010.01
DFS lock handle541000275.11us0.010.01
PGA memory operation3500039.47us0.060.01
KJC: Wait for msg sends to complete41200334.80us0.010.01
gc current block 2-way3500379.14us0.010.01
CSS operation: data query2200431.91us0.000.00
gc cr multi block grant3200289.09us0.010.00
library cache pin3600256.83us0.010.00
Disk file operations I/O3900023.02us0.060.00
gc current grant 2-way3300253.94us0.010.00
IPC send completion sync73697010.72us0.120.00
CSS operation: data update2400310.96us0.000.00
read by other session7001.03ms0.000.00
enq: WF - contention2000320.00us0.000.00
gc buffer busy release2002.70ms0.000.00
PX Deq: Signal ACK EXT4300118.49us0.010.00
ksxr poll remote instances1,33710003.64us0.210.00
gc cr grant 2-way1800261.17us0.000.00
enq: TO - contention800406.00us0.000.00
PX Deq: Slave Session Stats430070.67us0.010.00
enq: HW - contention800305.63us0.000.00
latch: gcs resource hash290073.62us0.000.00
enq: FB - contention700295.00us0.000.00
latch: cache buffers lru chain250080.64us0.000.00
log file sync200914.50us0.000.00
gc cr multi block mixed300490.00us0.000.00
rdbms ipc message31,6644218,065570.52ms5.07 
PX Idle Wait169012,09571.57 s0.03 
Space Manager: slave idle wait2,950011,1613783.52ms0.47 
class slave wait7,995884,145518.50ms1.28 
EMON slave idle wait7151003,5754999.98ms0.11 
wait for unread message on broadcast channel1,0921002,1381957.52ms0.17 
pmon timer4751001,4252999.95ms0.08 
ges remote message21,81301,42465.30ms3.49 
GCR sleep4,74901,424299.87ms0.76 
DIAG idle wait8,813831,423161.52ms1.41 
gcs yield cpu47,7431001,41729.67ms7.64 
gcs remote message1,224,61501,3931.14ms196.03 
smon timer450785196.20 s0.00 
Streams AQ: qmn coordinator idle wait52072814.00 s0.01 
Streams AQ: qmn slave idle wait26072828.00 s0.00 
PING615237201171.24ms0.10 
Streams AQ: emn coordinator idle wait7210072010.00 s0.01 
dispatcher timer1210072060.01 s0.00 
AQPC idle2410072030.00 s0.00 
Data Guard: Gap Manager12072060.00 s0.00 
lreg timer2381007153002.56ms0.04 
pman timer2381007142999.80ms0.04 
ASM background timer7820713912.19ms0.13 
REPL Capture/Apply: RAC AQ qmn coordinator1210071259.37 s0.00 
heartbeat redo informer71207121000.06ms0.11 
SCM slave idle7,169071299.28ms1.15 
OFS idle2371007113000.02ms0.04 
ASM cluster membership changes406867111750.22ms0.06 
Data Guard: Timer10600600.00 s0.00 
SQL*Net message from client1110218.65ms0.02 
PX Deq: Parse Reply430122.49ms0.01 
PX Deq: Execute Reply105017.13ms0.02 
PX Deq Credit: send blkd18000706.47us0.03 
RMA: IPC0 completion sync1,759003.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 Network711892.06.71.1.1.1.0  
ASM IO for non-blocking poll498893.71.2.81.32.6.3.1 
ASM background starting1100.0       
ASM file metadata operation89411.955.918.62.57.51.2.12.3
AWR Flush2100.0       
CGS wait for IPC msg761796.61.9.9.5.0   
CSS group membership query4    100.0   
CSS initialization616.7      83.3
CSS operation: action6      33.366.7
CSS operation: data query30    23.336.73.336.7
CSS operation: data update24     4.295.8 
CSS operation: query1492.9      7.1
DFS lock handle54     42.657.4 
DLM cross inst call completion5943.04.0.3  54.934.82.9
Data Guard Broker Wait2100.0       
Disk file Mirror Read1618     10.466.423.2
Disk file operations I/O13146.017.532.937.2.91.62.41.4
GCR CSS group query22100.0       
GCR CSS group update22100.0       
IMR slave acknowledgement msg21392.22.926.832.91.9.226.66.6
IPC group service call15832.843.730.920.32.1 .1.1
IPC send completion sync107963.81.7.3.4.114.617.91.3
KJC: Wait for msg sends to complete1893.725.940.74.82.113.82.16.9
KSV master wait56284.2.53.66.42.7.2 2.5
LGWR wait for redo copy2317.44.365.213.0    
PGA memory operation18K21.761.713.71.4.3.2.2.8
PX Deq: Join ACK149      30.969.1
PX Deq: Signal ACK EXT14720.446.35.49.55.49.52.7.7
PX Deq: Slave Session Stats3176.9.62.836.625.23.86.617.4
PX Deq: reap credit42,2K90.01.95.22.8.1.0.0 
PX qref latch35199.7 .3     
Parameter File I/O32       100.0
SQL*Net break/reset to client15848.1.614.631.01.9  3.8
SQL*Net message to client23,9K99.5.3.1.0.0.0.0 
SQL*Net more data to client21   100.0    
Sync ASM rebalance8027.58.83.8 10.08.815.026.3
asynch descriptor resize39100.0       
buffer busy waits3   66.733.3   
buffer deadlock2100.0       
control file parallel write373       100.0
control file sequential read597720.75.8.4.1.07.754.610.7
cursor: pin S2       100.0
cursor: pin S wait on X3       100.0
db file async I/O submit222049.9.12.113.37.83.4.822.5
db file parallel read58,9K      8.491.6
db file parallel write4352.3.71.42.06.35.18.975.3
db file scattered read155     2.630.367.1
db file sequential read216,1K     1.555.243.3
direct path write11       100.0
direct path write temp321       100.0
enq: AF - task serialization1      100.0 
enq: CF - contention42     11.983.34.8
enq: DR - contention1      100.0 
enq: DW - contention3     33.366.7 
enq: FB - contention9     11.188.9 
enq: HW - contention16      87.512.5
enq: MW - contention1      100.0 
enq: PE - contention1      100.0 
enq: PG - contention1      100.0 
enq: PS - contention208  2.43.82.9.573.117.3
enq: RO - fast object reuse182     7.176.416.5
enq: TA - contention3      100.0 
enq: TD - KTF dump entries1      100.0 
enq: TK - Auto Task Serialization1      100.0 
enq: TM - contention3      100.0 
enq: TO - contention22      86.413.6
enq: TS - contention30     16.760.023.3
enq: TX - index contention6      83.316.7
enq: WF - contention20     5.095.0 
gc buffer busy acquire2680  1.83.45.549.634.15.6
gc buffer busy release22     4.59.186.4
gc cr block 2-way86,2K  .0.0.085.613.6.8
gc cr block busy14       100.0
gc cr block congested1       100.0
gc cr block lost25       100.0
gc cr disk read77     22.166.211.7
gc cr grant 2-way934     55.916.627.5
gc cr grant busy82,9K.0  .0.027.569.43.2
gc cr multi block grant90,9K.0   .05.085.39.7
gc cr multi block mixed1979     .941.058.2
gc current block 2-way3964  .0 .073.723.82.5
gc current block busy3872   .0.149.047.23.7
gc current block lost2       100.0
gc current grant 2-way2276   .0 24.770.94.3
gc current grant busy24,4K.0.0.3.7.530.964.72.9
gc current multi block request180     .691.77.8
gc current split1      100.0 
gc index operation2       100.0
gcs log flush sync4405.91.64.15.711.618.08.045.2
ges inquiry response67      88.111.9
ges resource directory to be unfrozen32100.0       
ksxr poll remote instances133897.51.9.1.3.1 .1 
latch free1085.4 .63.782.012.8.6 
latch: MGA shared context latch1   100.0    
latch: cache buffers chains547.41.911.131.538.97.4 1.9
latch: cache buffers lru chain1411.4 7.148.238.34.3.7 
latch: gc element543.71.918.531.514.85.611.113.0
latch: gcs resource hash32  53.118.815.63.13.16.3
latch: ges resource hash list5 20.040.0  20.0 20.0
latch: object queue header operation520.0 20.040.020.0   
latch: shared pool10  20.030.020.0  30.0
libcache interrupt action by LCK227699.8.2      
library cache load lock4    50.0  50.0
library cache lock90     21.158.920.0
library cache pin80     61.336.32.5
library cache: mutex X1811.1 33.311.1 11.116.716.7
log file parallel write6925       100.0
log file sequential read8  25.0    75.0
log file sync6388    .0.31.598.2
oracle thread bootstrap4       100.0
os thread creation4       100.0
read by other session801.3     3.895.0
reliable message134      40.359.7
row cache lock49      30.669.4
row cache mutex1100.0       
transaction3   66.733.3   
undo_retention publish retry3100.0       
AQPC idle24       100.0
ASM background timer782  1.74.01.71.72.388.7
ASM cluster membership changes406       100.0
DIAG idle wait8816  .9.2.0.71.296.9
Data Guard: Gap Manager12       100.0
Data Guard: Timer1       100.0
EMON slave idle wait715       100.0
GCR sleep4751       100.0
OFS idle238       100.0
PING615.21.825.47.511.914.12.936.3
PX Deq Credit: need buffer23       100.0
PX Deq Credit: send blkd7922.72.4.1.1.41.14.690.7
PX Deq: Execute Reply586287.44.8.9.1.1.3.26.2
PX Deq: Execution Msg512  .2.25.315.637.741.0
PX Deq: Msg Fragment3505.1.35.1.34.34.976.33.7
PX Deq: Parse Reply1493.4  1.34.724.212.853.7
PX Idle Wait171       100.0
REPL Capture/Apply: RAC AQ qmn coordinator12       100.0
RMA: IPC0 completion sync175595.91.81.11.0.3   
SCM slave idle7173 .0.0.1.1.1.199.5
SQL*Net message from client23,9K.0.1.01.047.341.65.05.0
Space Manager: slave idle wait2963.9.1.9.9.0.1 97.1
Streams AQ: emn coordinator idle wait72       100.0
Streams AQ: qmn coordinator idle wait52   23.123.13.8 50.0
Streams AQ: qmn slave idle wait26       100.0
class slave wait8000.5.61.51.0.2.0 96.2
dispatcher timer12       100.0
gcs remote message1,2M1.42.35.97.616.128.610.227.8
gcs yield cpu47,7K.6.0.0.0.0  99.4
ges remote message21,9K1.3.1.4.7.74.55.986.4
heartbeat redo informer713       100.0
lreg timer238       100.0
pman timer237       100.0
pmon timer474       100.0
rdbms ipc message31,7K2.8.615.52.14.34.62.367.7
smon timer4       100.0
wait for unread message on broadcast channel1093       100.0
watchdog main loop948       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 Network7109  4.387.66.71.1.1.1
ASM IO for non-blocking poll483617.454.017.25.01.2.81.33.0
ASM background starting1100.0       
ASM file metadata operation7943.44.42.31.855.918.62.511.2
AWR Flush250.050.0      
CGS wait for IPC msg7614.57.78.979.51.9.9.5.0
CSS initialization1   16.7   83.3
CSS operation: query1342.935.714.3    7.1
DLM cross inst call completion44   3.04.0.3 92.6
Data Guard Broker Wait2  100.0     
Disk file operations I/O1230 .2.55.317.532.937.26.4
GCR CSS group query22  45.554.5    
GCR CSS group update22 13.668.218.2    
IMR slave acknowledgement msg1383.1.9.9.32.926.832.935.3
IPC group service call1547  1.81.043.730.920.32.3
IPC send completion sync713  31.232.51.7.3.433.9
KJC: Wait for msg sends to complete142   3.725.940.74.824.9
KSV master wait532 29.454.1.7.53.66.45.3
LGWR wait for redo copy238.74.34.3 4.365.213.0 
PGA memory operation17,7K .14.117.561.713.71.41.5
PX Deq: Signal ACK EXT120  1.419.046.35.49.518.4
PX Deq: Slave Session Stats149 .31.35.4.62.836.653.0
PX Deq: reap credit42,1K.16.254.928.81.95.22.8.1
PX qref latch3511.176.121.41.1 .3  
SQL*Net break/reset to client149  45.62.5.614.631.05.7
SQL*Net message to client23,9K8.843.047.5.2.3.1.0.0
SQL*Net more data to client21      100.0 
Sync ASM rebalance32   27.58.83.8 60.0
asynch descriptor resize39 10.335.953.8    
buffer busy waits2      66.733.3
buffer deadlock2   100.0    
control file sequential read1615 1.26.213.35.8.4.173.0
db file async I/O submit145227.322.4.1.1.12.113.334.6
db file parallel write190   .3.71.42.095.6
enq: PS - contention13     2.43.893.8
gc buffer busy acquire138     1.83.494.9
gc cr block 2-way26     .0.0100.0
gc cr grant busy2  .0   .0100.0
gc cr multi block grant3   .0   100.0
gc current block 2-way1     .0 100.0
gc current block busy1      .0100.0
gc current grant 2-way1      .0100.0
gc current grant busy252 .0.0 .0.3.799.0
gcs log flush sync76.23.91.6.21.64.15.782.7
ges resource directory to be unfrozen3243.856.3      
ksxr poll remote instances1336 14.747.135.71.9.1.3.1
latch free50  .3.1 .63.795.4
latch: MGA shared context latch1      100.0 
latch: cache buffers chains28 1.93.71.91.911.131.548.1
latch: cache buffers lru chain80  1.4  7.148.243.3
latch: gc element30  3.7 1.918.531.544.4
latch: gcs resource hash23     53.118.828.1
latch: ges resource hash list3    20.040.0 40.0
latch: object queue header operation4  20.0  20.040.020.0
latch: shared pool5     20.030.050.0
libcache interrupt action by LCK227677.522.3.0 .2   
library cache: mutex X10  5.65.6 33.311.144.4
log file sequential read2     25.0 75.0
read by other session1  1.3    98.8
row cache mutex1   100.0    
transaction2      66.733.3
undo_retention publish retry3 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 operation2097.7.9.3.1  .9.1
CSS initialization516.7   83.3   
CSS operation: action433.3 66.7     
CSS operation: data query1163.336.7      
CSS operation: query192.97.1      
DLM cross inst call completion1697.11.7.5.3.2  .2
Disk file Mirror Read36676.81.1.2.4.65.414.9.6
Disk file operations I/O1998.6.6.1  .3.5 
IMR slave acknowledgement msg13993.41.0.0.0.01.44.0.1
IPC group service call199.9.1      
IPC send completion sync1498.71.2 .1    
KJC: Wait for msg sends to complete693.1.5  2.1 .53.7
KSV master wait1497.51.1.9   .5 
PGA memory operation14899.2.5.3.1.0   
PX Deq: Join ACK10330.938.928.9.7.7   
PX Deq: Signal ACK EXT199.3.7      
PX Deq: Slave Session Stats5582.616.4.6.3    
Parameter File I/O28     3.184.412.5
Sync ASM rebalance1173.85.01.3  2.55.012.5
control file parallel write360 7.230.61.31.312.343.73.5
control file sequential read62489.31.1.1.1.32.26.7.2
cursor: pin S2  100.0     
cursor: pin S wait on X3     100.0  
db file async I/O submit24677.5.71.12.02.51.92.811.4
db file parallel read16,3K8.44.01.02.41.34.914.064.0
db file parallel write327424.721.015.014.110.710.44.0.1
db file scattered read10232.934.29.01.3.611.69.01.3
db file sequential read91,9K56.79.51.3.7.89.121.0.8
direct path write10 45.518.2  18.29.19.1
direct path write temp311 15.044.2.3.39.028.03.1
enq: CF - contention195.2  2.4   2.4
enq: HW - contention287.512.5      
enq: PS - contention3582.714.4.51.4.5  .5
enq: RO - fast object reuse2083.51.1  1.13.35.55.5
enq: TO - contention386.49.14.5     
enq: TS - contention776.713.36.73.3    
enq: TX - index contention183.316.7      
gc buffer busy acquire11894.43.1.7.3.2.2.01.2
gc buffer busy release1913.622.731.831.8    
gc cr block 2-way63799.2.5.1.1.1.0 .0
gc cr block busy13  50.07.114.3 21.47.1
gc cr block congested1  100.0     
gc cr disk read988.36.5 1.33.9   
gc cr grant 2-way25772.52.75.211.18.4.1  
gc cr grant busy254996.82.6.2.1.1.0.0.1
gc cr multi block grant871690.38.9.4.1.2.0.0.1
gc cr multi block mixed97541.815.7.5.831.9.3.18.9
gc current block 2-way9897.5.7.3.41.1.1  
gc current block busy14396.31.01.2.8.5.1.2.0
gc current grant 2-way9895.73.1.6.3.3  .0
gc current grant busy69297.12.5.1.0.2.0.0.1
gc current multi block request1392.27.2     .6
gc index operation2  50.0 50.0   
gcs log flush sync19954.815.716.87.73.21.8  
ges inquiry response788.14.51.53.01.5  1.5
latch: cache buffers chains198.11.9      
latch: gc element787.03.75.63.7    
latch: gcs resource hash293.86.3      
latch: ges resource hash list180.020.0      
latch: shared pool370.0 10.0 20.0   
library cache load lock250.0  50.0    
library cache lock1880.012.23.31.13.3   
library cache pin297.52.5      
library cache: mutex X383.3    16.7  
log file parallel write6705 30.824.51.0.87.332.33.2
log file sequential read625.0  37.5 12.525.0 
log file sync56811.817.231.91.0.96.132.09.3
oracle thread bootstrap3     75.0 25.0
os thread creation4 50.025.0   25.0 
read by other session605.03.811.36.311.321.321.320.0
reliable message7940.320.932.13.01.5 1.5.7
row cache lock3430.665.3  4.1   


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.9 .1     
DLM cross inst call completion199.8   .2   
Disk file Mirror Read999.4.5.1     
IMR slave acknowledgement msg399.9.1      
KJC: Wait for msg sends to complete796.3   3.7   
Parameter File I/O487.512.5      
SQL*Net break/reset to client696.2 .63.2    
Sync ASM rebalance1087.5  2.510.0   
control file parallel write1396.53.5      
control file sequential read1399.8.2.1     
db file async I/O submit25488.64.24.82.4    
db file parallel read37,7K36.014.634.814.3.3   
db file parallel write599.9.1      
db file scattered read298.71.3      
db file sequential read170199.2.7.0.0    
direct path write190.99.1      
direct path write temp1096.92.5.6     
enq: CF - contention197.62.4      
enq: PS - contention199.5  .5    
enq: RO - fast object reuse1094.52.21.61.1.5   
gc buffer busy acquire3298.8 .1.2.3.6  
gc cr block 2-way12100.0.0   .0  
gc cr block busy192.97.1      
gc cr block lost25    40.060.0  
gc cr grant busy8299.9 .0  .1  
gc cr multi block grant6699.9.0.0  .1  
gc cr multi block mixed17691.1.1.9.2.37.5  
gc current block busy1100.0.0      
gc current block lost2    50.050.0  
gc current grant 2-way1100.0    .0  
gc current grant busy2199.9 .1  .0  
gc current multi block request199.4    .6  
ges inquiry response198.5  1.5    
log file parallel write22096.82.9.2.0    
log file sync59290.78.8.4.1    
oracle thread bootstrap175.025.0      
read by other session1680.013.85.01.3    
reliable message199.3 .7     


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.com6,0902705,37938,928
SYS$USERS3000
SYS$BACKGROUND222229
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 2761955440187000236840
SYS$USERS 120010001850
SYS$BACKGROUND 728512240600015240


Back to Wait Events Statistics
Back to Top

Top 10 Channel Waits

ChannelWaitsTotal Wait Time (s)Avg Wait
GEN0 ksbxic channel 1201.39ms
kxfp control signal channel 730523.48us
obj broadcast channel 4602.26ms
MMON remote action broadcast channel 2095.02ms


Back to Wait Events Statistics
Back to Top

Top Process Types by Wait Class

Process TypeDescriptionWait Class TypeWait Time (sec)
 Others (foregrounds + unclassified backgrounds)User I/O5,439.78
 Others (foregrounds + unclassified backgrounds)Cluster364.88
 Others (foregrounds + unclassified backgrounds)Commit82.91
LGWRRedo etc.System I/O70.74
DBW0db writer process 0System I/O41.88
CKPTcheckpointSystem I/O9.10
 Others (foregrounds + unclassified backgrounds)Other4.35
CKPTcheckpointUser I/O3.97
RMS0rac management serverSystem I/O3.47
Wspace management slave poolUser I/O2.78
MMMON slave class 1Other2.70
LMONglobal enqueue service monitorOther2.68
MMMON slave class 1User I/O2.37
 Others (foregrounds + unclassified backgrounds)System I/O1.66
MMMON slave class 1Application1.52
IMRCGS IMR SlaveSystem I/O1.49
IMRCGS IMR SlaveUser I/O1.06
MMONManageability Monitor ProcessUser I/O0.96
 Others (foregrounds + unclassified backgrounds)Application0.83
MMONManageability Monitor ProcessSystem I/O0.81


Back to Wait Events Statistics
Back to Top

Top Process Types by CPU Used

Process TypeDescriptionCPU Time (sec)
 Others (foregrounds + unclassified backgrounds)263.22
LMglobal cache service process62.53
PParallel query slave8.83
RS*GCS RM Slave6.36
MMMON slave class 15.35
VKTMVirtual Keeper of TiMe process4.87
GCRGCR Slaves (LMHB)2.13
DBW0db writer process 01.58
VKRMVirtual sKeduler for Resource Manager1.47
LGWRRedo etc.1.40
DIA0diagnosibility process 01.32
IPC0IPC Service 00.85
SCMDLM Statistics Collection and Management Slave0.79
LMHBlm heartbeat monitor0.62
IMRCGS IMR Slave0.53
LMONglobal enqueue service monitor0.50
LMD0global enqueue service daemon 00.50
MMANMemory Manager0.41
LMD1global enqueue service daemon 10.36
FENCIOServer fence monitor0.36


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
2,489.8313119.0140.854.0291.88cj9v3ynkm7uuy   BEGIN :1 := orderentry.SalesRe...
2,486.8913118.9840.803.9291.9929qp10usqkqh0 Sales Rep Query SELECT TT.ORDER_TOTAL, TT.SALE...
1,454.887319.9323.873.9292.2589b7r2pg1cn4a   BEGIN :1 := orderentry.Warehou...
1,454.857319.9323.873.9292.2556pwkjspvmg3h Warehouse Activity Query WITH STAGE1 AS (SELECT /*+ mat...
1,159.965919.6619.033.8692.23b5dk0t95fhyd7   BEGIN :1 := orderentry.Warehou...
1,159.945919.6619.033.8692.23gkxxkghxubh1a Warehouse Orders Query SELECT ORDER_MODE, ORDERS.WARE...
556.032,5350.229.124.8786.980w2qpuc6u2zsp   BEGIN :1 := orderentry.neworde...
196.9330,7370.013.236.7180.14c13sma6rkr27c New Order SELECT PRODUCTS.PRODUCT_ID, PR...
135.245,8300.022.2213.3961.01147a57cxq3w5y JDBC Thin Client BEGIN :1 := orderentry.browsep...
128.9720,5100.012.121.9593.745ckxyqfvu60pj Browse Products SELECT CUSTOMER_ID, CUST_FIRST...
119.937,3230.021.972.2392.49f7rxuxzt64k87 New Order INSERT INTO ORDER_ITEMS ( ORDE...
99.929700.101.642.7990.5801jzc2mg6cg92 JDBC Thin Client BEGIN :1 := orderentry.newcust...
81.352,5350.031.332.8594.323fw75k1snsddx New Order INSERT INTO ORDERS ( ORDER_ID,...
61.633,4580.021.012.2494.92g81cbrq5yamf5 Browse and Update Orders SELECT ADDRESS_ID, CUSTOMER_ID...


Back to SQL Statistics
Back to Top

SQL ordered by CPU Time

CPU Time (s)Executions CPU per Exec (s)%TotalElapsed Time (s)%CPU%IO SQL IdSQL ModuleSQL Text
100.141310.7636.862,489.834.0291.88cj9v3ynkm7uuy   BEGIN :1 := orderentry.SalesRe...
97.521310.7435.892,486.893.9291.9929qp10usqkqh0 Sales Rep Query SELECT TT.ORDER_TOTAL, TT.SALE...
57.02730.7820.991,454.883.9292.2589b7r2pg1cn4a   BEGIN :1 := orderentry.Warehou...
56.99730.7820.971,454.853.9292.2556pwkjspvmg3h Warehouse Activity Query WITH STAGE1 AS (SELECT /*+ mat...
44.76590.7616.471,159.963.8692.23b5dk0t95fhyd7   BEGIN :1 := orderentry.Warehou...
44.74590.7616.471,159.943.8692.23gkxxkghxubh1a Warehouse Orders Query SELECT ORDER_MODE, ORDERS.WARE...
27.082,5350.019.97556.034.8786.980w2qpuc6u2zsp   BEGIN :1 := orderentry.neworde...
18.115,8300.006.67135.2413.3961.01147a57cxq3w5y JDBC Thin Client BEGIN :1 := orderentry.browsep...
13.2230,7370.004.87196.936.7180.14c13sma6rkr27c New Order SELECT PRODUCTS.PRODUCT_ID, PR...
12.2769,8230.004.5244.7627.417.110y1prvxqc2ra9 Browse Products SELECT PRODUCTS.PRODUCT_ID, PR...
10.00220.453.6810.0699.341.38a4akgk9g69h83 SQL Developer SELECT d.* FROM ( SELECT d.*, ...
4.59180.251.698.6752.9521.849yv5dwv8k0awg   WITH MONITOR_DATA AS (SELECT I...
3.34180.191.237.7842.9028.24fhf8upax5cxsz   BEGIN sys.dbms_auto_report_int...
3.11180.171.157.2143.1826.550w26sk6t6gq98   SELECT XMLTYPE(DBMS_REPORT.GET...
2.799700.001.0399.922.7990.5801jzc2mg6cg92 JDBC Thin Client BEGIN :1 := orderentry.newcust...


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
2,287.6013117.4641.962,486.893.9291.9929qp10usqkqh0 Sales Rep Query SELECT TT.ORDER_TOTAL, TT.SALE...
2,287.6013117.4641.962,489.834.0291.88cj9v3ynkm7uuy   BEGIN :1 := orderentry.SalesRe...
1,342.167318.3924.621,454.853.9292.2556pwkjspvmg3h Warehouse Activity Query WITH STAGE1 AS (SELECT /*+ mat...
1,342.167318.3924.621,454.883.9292.2589b7r2pg1cn4a   BEGIN :1 := orderentry.Warehou...
1,069.845918.1319.621,159.963.8692.23b5dk0t95fhyd7   BEGIN :1 := orderentry.Warehou...
1,069.845918.1319.621,159.943.8692.23gkxxkghxubh1a Warehouse Orders Query SELECT ORDER_MODE, ORDERS.WARE...
483.632,5350.198.87556.034.8786.980w2qpuc6u2zsp   BEGIN :1 := orderentry.neworde...
157.8230,7370.012.89196.936.7180.14c13sma6rkr27c New Order SELECT PRODUCTS.PRODUCT_ID, PR...
120.8920,5100.012.22128.971.9593.745ckxyqfvu60pj Browse Products SELECT CUSTOMER_ID, CUST_FIRST...
110.927,3230.022.03119.932.2392.49f7rxuxzt64k87 New Order INSERT INTO ORDER_ITEMS ( ORDE...
90.519700.091.6699.922.7990.5801jzc2mg6cg92 JDBC Thin Client BEGIN :1 := orderentry.newcust...
82.515,8300.011.51135.2413.3961.01147a57cxq3w5y JDBC Thin Client BEGIN :1 := orderentry.browsep...
76.722,5350.031.4181.352.8594.323fw75k1snsddx New Order INSERT INTO ORDERS ( ORDER_ID,...
58.503,4580.021.0761.632.2494.92g81cbrq5yamf5 Browse and Update Orders SELECT ADDRESS_ID, CUSTOMER_ID...


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
17,007,284131129,826.6043.432,489.83491,9cj9v3ynkm7uuy   BEGIN :1 := orderentry.SalesRe...
17,007,157131129,825.6343.432,486.893,99229qp10usqkqh0 Sales Rep Query SELECT TT.ORDER_TOTAL, TT.SALE...
10,393,98473142,383.3426.541,454.853,992,356pwkjspvmg3h Warehouse Activity Query WITH STAGE1 AS (SELECT /*+ mat...
10,393,98473142,383.3426.541,454.883,992,389b7r2pg1cn4a   BEGIN :1 := orderentry.Warehou...
8,393,70659142,266.2021.441,159.963,992,2b5dk0t95fhyd7   BEGIN :1 := orderentry.Warehou...
8,393,70659142,266.2021.441,159.943,992,2gkxxkghxubh1a Warehouse Orders Query SELECT ORDER_MODE, ORDERS.WARE...
2,205,7462,535870.125.63556.034,9870w2qpuc6u2zsp   BEGIN :1 := orderentry.neworde...
1,847,76630,73760.124.72196.936,780,1c13sma6rkr27c New Order SELECT PRODUCTS.PRODUCT_ID, PR...
761,6545,830130.641.95135.2413,461147a57cxq3w5y JDBC Thin Client BEGIN :1 := orderentry.browsep...
703,46869,82310.081.8044.7627,47,10y1prvxqc2ra9 Browse Products SELECT PRODUCTS.PRODUCT_ID, PR...


Back to SQL Statistics
Back to Top

SQL ordered by Reads

Physical ReadsExecutionsReads per Exec %TotalElapsed Time (s)%CPU%IO SQL IdSQL ModuleSQL Text
2,463,00113118,801.5345.772,486.893.9291.9929qp10usqkqh0 Sales Rep Query SELECT TT.ORDER_TOTAL, TT.SALE...
2,463,00113118,801.5345.772,489.834.0291.88cj9v3ynkm7uuy   BEGIN :1 := orderentry.SalesRe...
1,546,6347321,186.7728.741,454.853.9292.2556pwkjspvmg3h Warehouse Activity Query WITH STAGE1 AS (SELECT /*+ mat...
1,546,6347321,186.7728.741,454.883.9292.2589b7r2pg1cn4a   BEGIN :1 := orderentry.Warehou...
1,246,9515921,134.7623.171,159.963.8692.23b5dk0t95fhyd7   BEGIN :1 := orderentry.Warehou...
1,246,9515921,134.7623.171,159.943.8692.23gkxxkghxubh1a Warehouse Orders Query SELECT ORDER_MODE, ORDERS.WARE...
81,5072,53532.151.51556.034.8786.980w2qpuc6u2zsp   BEGIN :1 := orderentry.neworde...
28,86030,7370.940.54196.936.7180.14c13sma6rkr27c New Order SELECT PRODUCTS.PRODUCT_ID, PR...
17,97620,5100.880.33128.971.9593.745ckxyqfvu60pj Browse Products SELECT CUSTOMER_ID, CUST_FIRST...
16,9107,3232.310.31119.932.2392.49f7rxuxzt64k87 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
2,463,0012,463,00113118,801.530.0045.79cj9v3ynkm7uuy   BEGIN :1 := orderentry.SalesRe...
2,462,9952,462,99513118,801.490.0045.7929qp10usqkqh0 Sales Rep Query SELECT TT.ORDER_TOTAL, TT.SALE...
1,546,6341,546,6347321,186.770.0028.7656pwkjspvmg3h Warehouse Activity Query WITH STAGE1 AS (SELECT /*+ mat...
1,546,6341,546,6347321,186.770.0028.7689b7r2pg1cn4a   BEGIN :1 := orderentry.Warehou...
1,246,9511,246,9515921,134.760.0023.18b5dk0t95fhyd7   BEGIN :1 := orderentry.Warehou...
1,246,9511,246,9515921,134.760.0023.18gkxxkghxubh1a Warehouse Orders Query SELECT ORDER_MODE, ORDERS.WARE...
81,50781,5072,53532.150.001.520w2qpuc6u2zsp   BEGIN :1 := orderentry.neworde...
28,86028,86030,7370.940.000.54c13sma6rkr27c New Order SELECT PRODUCTS.PRODUCT_ID, PR...
17,97617,97620,5100.880.000.335ckxyqfvu60pj Browse Products SELECT CUSTOMER_ID, CUST_FIRST...
16,91016,9107,3232.310.000.31f7rxuxzt64k87 New Order INSERT INTO ORDER_ITEMS ( ORDE...


Back to SQL Statistics
Back to Top

SQL ordered by Executions

Executions Rows ProcessedRows per ExecElapsed Time (s) %CPU %IO SQL IdSQL ModuleSQL Text
69,823977,59214.0044.7627,47,10y1prvxqc2ra9 Browse Products SELECT PRODUCTS.PRODUCT_ID, PR...
30,737137,4434.47196.936,780,1c13sma6rkr27c New Order SELECT PRODUCTS.PRODUCT_ID, PR...
20,51020,5161.00128.971,993,75ckxyqfvu60pj Browse Products SELECT CUSTOMER_ID, CUST_FIRST...
8,1127,3230.909.807,777,68z3542ffmp562 New Order SELECT QUANTITY_ON_HAND FROM P...
7,3237,3231.00119.932,292,5f7rxuxzt64k87 New Order INSERT INTO ORDER_ITEMS ( ORDE...
5,8305,8301.00135.2413,461147a57cxq3w5y JDBC Thin Client BEGIN :1 := orderentry.browsep...
3,4585,2841.5361.632,294,9g81cbrq5yamf5 Browse and Update Orders SELECT ADDRESS_ID, CUSTOMER_ID...
3,4123,4121.006.467,390,8gzhkw1qu6fwxm Browse Products INSERT INTO LOGON (LOGON_ID, C...
2,5352,5351.00556.034,9870w2qpuc6u2zsp   BEGIN :1 := orderentry.neworde...
2,5352,5351.0081.352,894,33fw75k1snsddx New Order INSERT INTO ORDERS ( ORDER_ID,...
2,5352,5351.0010.234,583,15mddt5kt45rg3 New Order UPDATE ORDERS SET ORDER_MODE =...
2,5353,7861.4948.381,893,77ws837zynp1zv New Order SELECT CARD_ID, CUSTOMER_ID, C...
2,3517,3233.112.7722,307r7636982atn9 New Order UPDATE INVENTORIES SET QUANTIT...


Back to SQL Statistics
Back to Top

SQL ordered by Parse Calls

Parse CallsExecutions % Total Parses SQL IdSQL ModuleSQL Text
3263267.653dbzmtf9ahvzt   merge /* KSXM:OPTIM_DML_INF */...
138223.24a4akgk9g69h83 SQL Developer SELECT d.* FROM ( SELECT d.*, ...
1221222.86bxpcry2tpc217   select /*+ opt_param('parallel...
1081082.53grwydz59pu6mc   select text from view$ where r...
91912.14f7xnvp44nukp7   insert into wrm$_snapshot_deta...
63631.48fs4p95w7yg25b   select pob.parttype from sys.t...
54541.2794qn6y14kw01g   SELECT NVL(TO_NUMBER(EXTRACT(X...
501411.17f3ww8rgva3hrs   update /* KSXM:FLUSH COL */ sy...
43431.010yzmcakmzfnj1 SQL Developer select c.session_count as SESS...
42420.991hp73k4nbawt1 SQL Developer with metrics as ( select stati...


Back to SQL Statistics
Back to Top

SQL ordered by Sharable Memory

Sharable Mem (b)Executions % Total SQL IdSQL ModuleSQL Text
19,217,954181.069yv5dwv8k0awg   WITH MONITOR_DATA AS (SELECT I...
6,344,324180.35atwuyuvqkf27w   SELECT /*+ OPT_PARAM('_fix_con...
1,621,51810.093kqrku32p6sfn   MERGE /*+ OPT_PARAM('_parallel...


Back to SQL Statistics
Back to Top

SQL ordered by Version Count

Version Count Executions SQL IdSQL ModuleSQL Text
2462acmvv4fhdc9zh   select obj#, type#, ctime, mti...
2260g0t052az3rx44   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
131.9813136.062,486.895.313.9291.9929qp10usqkqh0 Sales Rep Query SELECT TT.ORDER_TOTAL, TT.SALE...
131.9813136.062,489.835.304.0291.88cj9v3ynkm7uuy   BEGIN :1 := orderentry.SalesRe...
73.967320.211,454.855.083.9292.2556pwkjspvmg3h Warehouse Activity Query WITH STAGE1 AS (SELECT /*+ mat...
73.967320.211,454.885.083.9292.2589b7r2pg1cn4a   BEGIN :1 := orderentry.Warehou...
60.185916.441,159.965.193.8692.23b5dk0t95fhyd7   BEGIN :1 := orderentry.Warehou...
60.185916.441,159.945.193.8692.23gkxxkghxubh1a Warehouse Orders Query SELECT ORDER_MODE, ORDERS.WARE...
49.122,53513.42556.038.834.8786.980w2qpuc6u2zsp   BEGIN :1 := orderentry.neworde...
36.895,83010.08135.2427.2813.3961.01147a57cxq3w5y JDBC Thin Client BEGIN :1 := orderentry.browsep...
33.7669,8239.2244.7675.4227.417.110y1prvxqc2ra9 Browse Products SELECT PRODUCTS.PRODUCT_ID, PR...
27.7930,7377.59196.9314.116.7180.14c13sma6rkr27c New Order SELECT PRODUCTS.PRODUCT_ID, PR...
7.287,3231.99119.936.072.2392.49f7rxuxzt64k87 New Order INSERT INTO ORDER_ITEMS ( ORDE...
6.979701.9199.926.982.7990.5801jzc2mg6cg92 JDBC Thin Client BEGIN :1 := orderentry.newcust...
6.3320,5101.73128.974.911.9593.745ckxyqfvu60pj Browse Products SELECT CUSTOMER_ID, CUST_FIRST...
4.519701.2352.208.642.0190.10gh2g2tynpcpv1 Update Customer Details INSERT INTO CUSTOMERS ( CUSTOM...
3.129230.8551.536.062.8591.25apgb2g9q2zjh1 Update Customer Details BEGIN :1 := orderentry.browsea...
2.922,5350.8081.353.592.8594.323fw75k1snsddx New Order INSERT INTO ORDERS ( ORDER_ID,...
2.642,5350.7248.385.451.8493.687ws837zynp1zv New Order SELECT CARD_ID, CUSTOMER_ID, C...
2.553,4580.7061.634.142.2494.92g81cbrq5yamf5 Browse and Update Orders SELECT ADDRESS_ID, CUSTOMER_ID...
1.992,3510.542.7771.9822.270.007r7636982atn9 New Order UPDATE INVENTORIES SET QUANTIT...
1.979720.5427.657.112.3691.429t3n2wpr7my63 Update Customer Details INSERT INTO ADDRESSES ( ADDRES...
1.868,1120.519.8018.947.6877.558z3542ffmp562 New Order SELECT QUANTITY_ON_HAND FROM P...
1.362,5350.3710.2313.284.5083.085mddt5kt45rg3 New Order UPDATE ORDERS SET ORDER_MODE =...
1.1010.305.9118.707.7069.81a6ufvpa02fgag SQL Developer select a.total as MAX_BYTES, b...
0.653360.1821.243.072.7794.94a9gvfh5hx9u98   BEGIN :1 := orderentry.process...
0.479700.1318.312.592.6895.60budtrjayjnvw3 Update Customer Details INSERT INTO CARD_DETAILS ( CAR...
0.463360.1317.152.691.9196.307hk2m2702ua0g Process Orders WITH NEED_TO_PROCESS AS (SELEC...
0.32530.090.4866.758.4325.44121ffmrc95v7g   select i.obj#, i.ts#, i.file#,...
0.299230.0811.642.482.0896.547t0959msvyt5g Browse and Update Orders SELECT ORDER_ID, ORDER_DATE, O...
0.186520.056.722.643.8193.51cmndgkbkcz5s9 JDBC Thin Client BEGIN :1 := orderentry.updateC...
0.173,4120.056.462.577.3190.79gzhkw1qu6fwxm Browse Products INSERT INTO LOGON (LOGON_ID, C...
0.10910.030.1373.1714.5616.51f7xnvp44nukp7   insert into wrm$_snapshot_deta...
0.07180.027.780.9142.9028.24fhf8upax5cxsz   BEGIN sys.dbms_auto_report_int...
0.0410.010.3611.9482.141.74586dxjwv2gc11 SQL Developer select a.total as MAX_BYTES, b...
0.02280.010.1417.4910.1776.289s5cdq3h4nfbj   select dummy from dual where u...
0.02180.017.210.3243.1826.550w26sk6t6gq98   SELECT XMLTYPE(DBMS_REPORT.GET...
0.01180.008.670.0852.9521.849yv5dwv8k0awg   WITH MONITOR_DATA AS (SELECT I...
0.01330.000.0511.529.4383.929tgj4g8y4rwy8   select type#, blocks, extents,...


Back to SQL Statistics
Back to Top

Complete List of SQL Text

SQL IdSQL Text
01jzc2mg6cg92BEGIN :1 := orderentry.newcustomer(:2 , :3 , :4 , :5 , :6 , :7 , :8 , :9 , :10 ); END;
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
0yzmcakmzfnj1select c.session_count as SESSIONS_CURRENT, a.session_count as SESSIONS_ACTIVE, (c.session_count - a.session_count) as SESSIONS_INACTIVE, (a.session_count - b.session_count) as SESSIONS_ACTIVE_NOT_BLOCKED, b.session_count as SESSIONS_BLOCKING from (select count(*) as session_count from v$session where username is not null and type = 'USER' and con_id = sys_context('userenv', 'con_id')) c, (select count(*) as session_count from v$session where username is not null and type = 'USER' and status = 'ACTIVE' and con_id = sys_context('userenv', 'con_id')) a, (select count(*) as session_count from v$session where username is not null and type = 'USER' and blocking_session_status = 'VALID' and con_id = sys_context('userenv', 'con_id')) b
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 .enabled(+) and i.obj# = ist.obj#(+) and i.bo#=:1 order by i.obj#
147a57cxq3w5yBEGIN :1 := orderentry.browseproducts(:2 , :3 , :4 ); END;
1hp73k4nbawt1with metrics as ( select statistic# as id, name, value from v$sysstat where class=1 and (name like 'user %') ) select STAT_6.value as STAT_6 , STAT_7.value as STAT_7 , STAT_8.value as STAT_8 , STAT_12.value as STAT_12 , STAT_13.value as STAT_13 , STAT_26.value as STAT_26 from (select min(value) as value from metrics where name = 'user commits') STAT_6 , (select min(value) as value from metrics where name = 'user rollbacks') STAT_7 , (select min(value) as value from metrics where name = 'user calls') STAT_8 , (select min(value) as value from metrics where name = 'user logons cumulative') STAT_12 , (select min(value) as value from metrics where name = 'user logouts cumulative') STAT_13 , (select min(value) as value from metrics where name = 'user I/O wait time') STAT_26
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
3dbzmtf9ahvztmerge /* KSXM:OPTIM_DML_INF */ into sys.mon_mods_all$ m using dual on (m.obj# = :objn and (:pobjn = 0 or m.obj# = :pobjn or m.obj# in (select obj# from tabpart$ where bo# = :pobjn and obj# = :objn union all select obj# from tabcompart$ where bo# = :pobjn and o bj# = :objn union all select tsp.obj# from tabsubpart$ tsp, tabcompart$ tcp where tsp.pobj# = tcp.obj# and (tcp.bo# = :pobjn or tcp.obj# = :pobjn) and tsp.obj# = :objn))) when matched then update set inserts = decode(:reset, 1, 0, inserts) + :ins, updates = decode(:reset, 1, 0, updates) + :upd, deletes = decode(:reset, 1, 0, deletes) + :del, flags = decode(:reset, 1, 0, flags - bitand(flags, :flag)) + :flag, drop_segments = decode(:reset, 1, 0, d rop_segments) + :dropseg, timestamp = :time when NOT matched then insert (obj#, inserts, updates, deletes, timestamp, flags, drop_segments) values (:objn, :ins, :upd, :del, :time, :flag, :dropseg) where :ins != 0 or :upd != 0 or :del != 0 or :flag != 0 or :dropseg !=0
3fw75k1snsddxINSERT INTO ORDERS ( ORDER_ID, ORDER_DATE, ORDER_MODE, CUSTOMER_ID, ORDER_STATUS, WAREHOUSE_ID, DELIVERY_TYPE, DELIVERY_ADDRESS_ID, COST_OF_DELIVERY, WAIT_TILL_ALL_AVAILABLE, CUSTOMER_CLASS, CARD_ID, INVOICE_ADDRESS_ID ) VALUES ( ORDERS_SEQ.NEXTVAL + :B8 , SYSTIMESTAMP , 'online', :B7 , 1, :B6 , 'Standard', :B1 , DBMS_RANDOM.VALUE(:B5 , :B4 ), 'ship_asap', :B2 , :B3 , :B1 ) RETURNING ORDER_ID INTO :O0
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 ( SEL ECT 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
586dxjwv2gc11select a.total as MAX_BYTES, b.used as USED_BYTES from ( select sum(user_bytes) total from dba_data_files d, DBA_TABLESPACES t where d.TABLESPACE_NAME(+) = t.tablespace_name and contents <> 'PERMANENT' ) a, ( select sum(bytes) used from dba_segments s, DBA_TABLESPACES t where s.TABLESPACE_NAME(+) = t.tablespace_name and contents <> 'PERMANENT' ) b
5ckxyqfvu60pjSELECT CUSTOMER_ID, CUST_FIRST_NAME, CUST_LAST_NAME, NLS_LANGUAGE, NLS_TERRITORY, CREDIT_LIMIT, CUST_EMAIL, ACCOUNT_MGR_ID, CUSTOMER_SINCE, CUSTOMER_CLASS, SUGGESTIONS, DOB, MAILSHOT, PARTNER_MAILSHOT, PREFERRED_ADDRESS, PREFERRED_CARD FROM CUSTOMERS WHERE CUSTOMER_ID = :B2 AND ROWNUM < :B1
5mddt5kt45rg3UPDATE ORDERS SET ORDER_MODE = 'online', ORDER_STATUS = FLOOR(DBMS_RANDOM.VALUE(0, :B3 )), ORDER_TOTAL = :B2 WHERE ORDER_ID = :B1
7hk2m2702ua0gWITH NEED_TO_PROCESS AS (SELECT ORDER_ID, CUSTOMER_ID FROM ORDERS WHERE ORDER_STATUS <= 4 AND WAREHOUSE_ID = :B1 AND ROWNUM < 10 ) SELECT O.ORDER_ID, OI.LINE_ITEM_ID, OI.PRODUCT_ID, OI.UNIT_PRICE, OI.QUANTITY, O.ORDER_MODE, O.ORDER_STATUS, O.ORDER_TOTAL, O.SALES_REP_ID, O.PROMOTION_ID, C.CUSTOMER_ID, C.CUST_FIRST_NAME, C.CUST_LAST_NAME, C.CREDIT_LIMIT, C.CUST_EMAIL, O.ORDER_DATE FROM ORDERS O, NEED_TO_PROCESS NTP, CUSTOMERS C, ORDER_ITEMS OI WHERE NTP.ORDER_ID = O.ORDER_ID AND C.CUSTOMER_ID = O.CUSTOMER_ID AND OI.ORDER_ID (+) = O.ORDER_ID
7r7636982atn9UPDATE INVENTORIES SET QUANTITY_ON_HAND = QUANTITY_ON_HAND - :B1 WHERE PRODUCT_ID = :B3 AND WAREHOUSE_ID = :B2
7t0959msvyt5gSELECT ORDER_ID, ORDER_DATE, ORDER_MODE, CUSTOMER_ID, ORDER_STATUS, ORDER_TOTAL, SALES_REP_ID, PROMOTION_ID, WAREHOUSE_ID, DELIVERY_TYPE, COST_OF_DELIVERY, WAIT_TILL_ALL_AVAILABLE, DELIVERY_ADDRESS_ID, CUSTOMER_CLASS, CARD_ID, INVOICE_ADDRESS_ID FROM ORDERS WHERE CUSTOMER_ID = :B2 AND ROWNUM < :B1
7ws837zynp1zvSELECT CARD_ID, CUSTOMER_ID, CARD_TYPE, CARD_NUMBER, EXPIRY_DATE, IS_VALID, SECURITY_CODE FROM CARD_DETAILS WHERE CUSTOMER_ID = :B2 AND ROWNUM < :B1
89b7r2pg1cn4aBEGIN :1 := orderentry.WarehouseActivityQuery(:2 , :3 , :4 ); END;
8z3542ffmp562SELECT QUANTITY_ON_HAND FROM PRODUCT_INFORMATION P, INVENTORIES I WHERE I.PRODUCT_ID = :B2 AND I.PRODUCT_ID = P.PRODUCT_ID AND I.WAREHOUSE_ID = :B1
94qn6y14kw01gSELECT NVL(TO_NUMBER(EXTRACT(XMLTYPE(:B2 ), :B1 )), 0) FROM DUAL
9s5cdq3h4nfbjselect dummy from dual where user = 'SYS' or user = 'SYSTEM'
9t3n2wpr7my63INSERT INTO ADDRESSES ( ADDRESS_ID, CUSTOMER_ID, DATE_CREATED, HOUSE_NO_OR_NAME, STREET_NAME, TOWN, COUNTY, COUNTRY, POST_CODE, ZIP_CODE ) VALUES ( :B6 , :B5 , TRUNC(SYSDATE, 'MI'), FLOOR(DBMS_RANDOM.VALUE(1, :B4 )), 'Street Name', :B3 , :B2 , :B1 , 'Postcode', NULL )
9tgj4g8y4rwy8select type#, blocks, extents, minexts, maxexts, extsize, extpct, user#, iniexts, NVL(lists, 65535), NVL(groups, 65535), cachehint, hwmincr, NVL(spare1, 0), NVL(scanhint, 0), NVL(bitmapranges, 0) from seg$ where ts#=:1 and file#=:2 and block#=:3
9yv5dwv8k0awgWITH MONITOR_DATA AS (SELECT INST_ID, KEY, NVL2(PX_QCSID, NULL, STATUS) STATUS, FIRST_REFRESH_TIME, LAST_REFRESH_TIME, REFRESH_COUNT, PROCESS_NAME, SID, SQL_ID, SQL_EXEC_START, SQL_EXEC_ID, DBOP_NAME, DBOP_EXEC_ID, SQL_PLAN_HASH_VALUE, SQL_FULL_PLAN_HASH_VALUE, SESSION_SERIAL#, SQL_TEXT, PX_SERVER#, PX_SERVER_GROUP, PX_SERVER_SET, PX_QCINST_ID, PX_QCSID, CASE WHEN ELAPSED_TIME < (CPU_TIME+ APPLICATION_WAIT_TIME+ CONCURRENCY_WAIT_TIME+ CLUSTER_WAIT_TIME+ USER_IO_WAIT_TIME+ QUEUING_TIME) THEN (CPU_TIME+ APPLICATION_WAIT_TIME+ CONCURRENCY_WAIT_TIME+ CLUSTER_WAIT_TIME+ USER_IO_WAIT_TIME+ QUEUING_TIME) ELSE ELAPSED_TIME END ELAPSED_TIME, QUEUING_TIME, CPU_TIME, APPLICATION_WAIT_TIME, CONCURRENCY_WAIT_TIME, CLUSTER_WAIT_TIME, USER_IO_WAIT_TIME, CASE WHEN ELAPSED_TIME < (CPU_TIME+ APPLICATION_WAIT_TIME+ CONCURRENCY_WAIT_TIME+ CLUSTER_WAIT_TIME+ USER_IO_WAIT_TIME+ QUEUING_TIME) THEN 0 ELSE ELAPSED_TIME - (CPU_TIME+ APPLICATION_WAIT_TIME+ CONCURRENCY_WAIT_TIME+ CLUSTER_WAIT_TIME+ USER_IO_WAIT_TIME+ QUEUING_TIME) END OTHER_WAIT_TIME, PLSQL_EXEC_TIME, JAVA_EXEC_TIME, FETCHES, BUFFER_GETS, IO_INTERCONNECT_BYTES IO_INTER_BYTES, PHYSICAL_READ_REQUESTS READ_REQS, PHYSICAL_READ_BYTES READ_BYTES, PHYSICAL_WRITE_REQUESTS WRITE_REQS, PHYSICAL_WRITE_BYTES WRITE_BYTES, NVL(PHYSICAL_READ_BYTES, 0) + NVL(PHYSICAL_WRITE_BYTES, 0) IO_BYTES, NVL(PHYSICAL_READ_REQUESTS, 0) + NVL(PHYSICAL_WRITE_REQUESTS, 0) IO_REQS, IO_CELL_UNCOMPRESSED_BYTES IO_UNC_BYTES, IO_CELL_OFFLOAD_ELIGIBLE_BYTES IO_ELIG_BYTES, IO_CELL_OFFLOAD_RETURNED_BYTES IO_RET_BYTES, USER# USERID, USERNAME, MODULE, ACTION, SERVICE_NAME, CLIENT_IDENTIFIER, CLIENT_INFO, PROGRAM, PLSQL_OBJECT_ID PL_OID, PLSQL_SUBPROGRAM_ID PL_PROGID, PLSQL_ENTRY_OBJECT_ID PL_ENTRY_OID, PLSQL_ENTRY_SUBPROGRAM_ID PL_ENTRY_PROGID, PX_MAXDOP MAX_DOP, PX_IS_ CROSS_INSTANCE, PX_MAXDOP_INSTANCES MAX_DOP_INSTANCES, PX_SERVERS_REQUESTED SERVERS_REQUESTED, PX_SERVERS_ALLOCATED SERVERS_ALLOCATED, ERROR_NUMBER, ERROR_FACILITY, ERROR_MESSAGE, NVL2(OTHER_XML, 'Y', NULL) HAS_OTHER_XML, NVL2(BINDS_XML, 'Y', NULL) HAS_BINDS_XML, NVL2(RM_CONSUMER_GROUP, NVL2(RM_LAST_ACTION_TIME, TO_CHAR(RM_LAST_ACTION_TIME, :B12 ), '00/00/0000 00:00:01') || XMLELEMENT( "rminfo", XMLATTRIBUTES( RM_LAST_ACTION AS "rmlastact", RM_LAST_ACTION_REASON AS "rmlastreason", TO_CHAR(RM_LAST_ACTION_TIME, :B12 ) AS "rmlasttime", RM_CONSUMER_GROUP AS "rmcg")).GETSTRINGVAL(), '00/00/0000 00:00:00') RM_INFO, CON_NAME, CON_ID FROM GV$ALL_SQL_MONITOR MO1 WHERE MO1.INST_ID BETWEEN :B11 AND :B10 AND MO1.SQL_ID = NVL(:B9 , MO1.SQL_ID) AND MO1.SQL_EXEC_START = NVL(:B8 , MO1.SQL_EXEC_START) AND MO1.SQL_EXEC_ID = NVL(:B7 , MO1.SQL_EXEC_ID) OR (MO1.DBOP_NAME = NVL(:B6 , MO1.DBOP_NAME) AND MO1.DBOP_EXEC_ID = NVL(:B5 , MO1.DBOP_EXEC_ID)) AND ((:B4 = 1 AND MO1.PX_QCSID IS NULL) OR (MO1.PX_SERVER_GROUP = NVL(:B3 , MO1.PX_SERVER_GROUP) AND MO1.PX_SERVER_SET = NVL(:B2 , MO1.PX_SERVER_SET) AND MO1.PX_SERVER# = NVL(:B1 , MO1.PX_SERVER#)))), MONITOR_AGG AS (SELECT MAX_PX_QCSID, MAX_KEY, MAX_INST_ID, MAX_SESSION_ID, MAX_SESSION_SERIAL, MAX_PX_DOP, MAX_PX_DOP_INSTANCES, MAX_PX_IS_CROSS_INSTANCE, SUM_SERVERS_REQUESTED, SUM_SERVERS_ALLOCATED, DIST_INST_COUNT, DIST_PX_GROUP_COUNT, DIST_PX_SET_COUNT, MAX_PLAN_HASH_VALUE, MAX_FULL_PLAN_HASH_VALUE, MAX_USERID, MAX_PROGRAM, MAX_USERNAME, MAX_MODULE, MAX_ACTION, MAX_SERVICE_NAME, MAX_CLIENT_ID, MAX_CLIENT_INFO, MAX_ERROR_NUMBER, MAX_ERROR_FACILITY, MAX_ERROR_MESSAGE, QC_HAS_OTHER_XML, QC_HAS_BINDS_XML, MAX_PL_OID, MAX_PL_PROGID, MAX_PL_ENTRY_OID, MAX_PL_ENTRY_PROGID, MAX_SQL_ID, MAX_SQL_EXEC_START, MAX_SQL_EXEC_ID, MAX_LAST_REFRESH_TIME, MAX_DBOP_NAME, MAX_DBOP_EXEC_ID, CASE WHEN MAX_PL_OID IS NOT NULL THEN NVL((SELECT P.O WNER || '.' || P.OBJECT_NAME || DECODE(P.PROCEDURE_NAME, NULL, '', '.' || P.PROCEDURE_NAME) FROM ALL_PROCEDURES P WHERE P.OBJECT_ID = MAX_PL_OID AND P.SUBPROGRAM_ID = MAX_PL_PROGID AND ROWNUM = 1), 'Unavailable') END MAX_PL_NAME, CASE WHEN MAX_PL_ENTRY_OID IS NOT NULL THEN NVL((SELECT P.OWNER || '.' || P.OBJECT_NAME || DECODE(P.PROCEDURE_NAME, NULL, '', '.' || P.PROCEDURE_NAME) FROM ALL_PROCEDURES P WHERE P.OBJECT_ID = MAX_PL_ENTRY_OID AND P.SUBPROGRAM_ID = MAX_PL_ENTRY_PROGID AND ROWNUM = 1), 'Unavailable') END MAX_PL_ENTRY_NAME, MAX_STATUS, SUM_REFRESH_COUNT, MIN_FIRST_REFRESH_TIME, SQLMON_TEXT, SUM_ELAPSED_TIME, MAX_ELAPSED_TIME, MAX_QUEUING_TIME, SUM_CPU_TIME, SUM_USER_IO_WAIT_TIME, SUM_APPLICATION_WAIT_TIME, SUM_CONCURRENCY_WAIT_TIME, SUM_CLUSTER_WAIT_TIME, SUM_PLSQL_EXEC_TIME, SUM_JAVA_EXEC_TIME, SUM_OTHER_WAIT_TIME, SUM_FETCHES, SUM_BUFFER_GETS, SUM_READ_REQS, SUM_READ_BYTES, SUM_WRITE_REQS, SUM_WRITE_BYTES, SUM_IO_BYTES, SUM_IO_INTER_BYTES, SUM_ IO_UNC_BYTES, SUM_IO_ELIG_BYTES, SUM_IO_RET_BYTES, DECODE(:B14 , 1, 'db_name', SYS_CONTEXT('userenv', 'db_unique_name')) DB_UNIQUE_NAME, DECODE(:B14 , 1, 'platform_name', SYS.DBMS_UTILITY.PORT_STRING) PLATFORM_NAME, DECODE(:B14 , 1, 'host_name', SYS_CONTEXT('userenv', 'server_host')) HOST_NAME, AGG_RM_INFO MAX_RM_INFO, MAX_CON_NAME, DECODE(MAX_CON_ID, 0, NULL, MAX_CON_ID) MAX_CON_ID FROM (SELECT MAX(PX_QCSID) MAX_PX_QCSID, MAX(CASE WHEN PX_QCSID IS NULL THEN KEY ELSE NULL END) MAX_KEY, MAX(CASE WHEN PX_QCSID IS NULL THEN INST_ID ELSE NULL END) MAX_INST_ID, MAX(CASE WHEN PX_QCSID IS NULL THEN SID ELSE NULL END) MAX_SESSION_ID, MAX(CASE WHEN PX_QCSID IS NULL THEN SESSION_SERIAL# ELSE NULL END) MAX_SESSION_SERIAL, MAX(MAX_DOP) MAX_PX_DOP, MAX(MAX_DOP_INSTANCES) MAX_PX_DOP_INSTANCES, MAX(PX_IS_CROSS_INSTANCE) MAX_PX_IS_CROSS_INSTANCE, SUM(SERVERS_REQUESTED) SUM_SERVERS_REQUESTED, SUM(SERVERS_ALLOCATED) SUM_SERVERS_ALLOCATED, COUNT(DISTINCT INST_ID) DIST_INST _COUNT, COUNT(DISTINCT PX_SERVER_GROUP) DIST_PX_GROUP_COUNT, COUNT(DISTINCT PX_SERVER_SET) DIST_PX_SET_COUNT, MAX(SQL_PLAN_HASH_VALUE) MAX_PLAN_HASH_VALUE, MAX(SQL_FULL_PLAN_HASH_VALUE) MAX_FULL_PLAN_HASH_VALUE, MAX(USERID) MAX_USERID, MAX(PROGRAM) MAX_PROGRAM, MAX(USERNAME) MAX_USERNAME, MAX(MODULE) MAX_MODULE, MAX(ACTION) MAX_ACTION, MAX(SERVICE_NAME) MAX_SERVICE_NAME, MAX(CLIENT_IDENTIFIER) MAX_CLIENT_ID, MAX(CLIENT_INFO) MAX_CLIENT_INFO, MAX(ERROR_NUMBER) MAX_ERROR_NUMBER, MAX(ERROR_FACILITY) MAX_ERROR_FACILITY, MAX(ERROR_MESSAGE) MAX_ERROR_MESSAGE, MAX(NVL2(PX_QCSID, HAS_OTHER_XML, NULL)) QC_HAS_OTHER_XML, MAX(HAS_BINDS_XML) QC_HAS_BINDS_XML, MAX(PL_OID) MAX_PL_OID, MAX(PL_PROGID) MAX_PL_PROGID, MAX(PL_ENTRY_OID) MAX_PL_ENTRY_OID, MAX(PL_ENTRY_PROGID) MAX_PL_ENTRY_PROGID, MAX(SQL_ID) MAX_SQL_ID, MAX(SQL_EXEC_START) MAX_SQL_EXEC_START, MAX(SQL_EXEC_ID) MAX_SQL_EXEC_ID, MAX(LAST_REFRESH_TIME) MAX_LAST_REFRESH_TIME, MAX(STATUS) MAX_STATUS, SUM(REFRESH_COU NT) SUM_REFRESH_COUNT, MIN(FIRST_REFRESH_TIME) MIN_FIRST_REFRESH_TIME, MAX(DBOP_NAME) MAX_DBOP_NAME, MAX(DBOP_EXEC_ID) MAX_DBOP_EXEC_ID, CASE WHEN :B13 = 0 THEN NULL ELSE MAX(SQL_TEXT) END SQLMON_TEXT, SUM(ELAPSED_TIME) SUM_ELAPSED_TIME, MAX(ELAPSED_TIME) MAX_ELAPSED_TIME, MAX(QUEUING_TIME) MAX_QUEUING_TIME, SUM(CPU_TIME) SUM_CPU_TIME, SUM(USER_IO_WAIT_TIME) SUM_USER_IO_WAIT_TIME, SUM(APPLICATION_WAIT_TIME) SUM_APPLICATION_WAIT_TIME, SUM(CONCURRENCY_WAIT_TIME) SUM_CONCURRENCY_WAIT_TIME, SUM(CLUSTER_WAIT_TIME) SUM_CLUSTER_WAIT_TIME, SUM(PLSQL_EXEC_TIME) SUM_PLSQL_EXEC_TIME, SUM(JAVA_EXEC_TIME) SUM_JAVA_EXEC_TIME, SUM(OTHER_WAIT_TIME) SUM_OTHER_WAIT_TIME, SUM(FETCHES) SUM_FETCHES, SUM(BUFFER_GETS) SUM_BUFFER_GETS, SUM(READ_REQS) SUM_READ_REQS, SUM(READ_BYTES) SUM_READ_BYTES, SUM(WRITE_REQS) SUM_WRITE_REQS, SUM(WRITE_BYTES) SUM_WRITE_BYTES, NVL(SUM(READ_BYTES), 0) + NVL(SUM(WRITE_BYTES), 0) SUM_IO_BYTES, SUM(IO_INTER_BYTES) SUM_IO_INTER_BYTES, SUM(IO_UNC_BYTES) S UM_IO_UNC_BYTES, SUM(IO_ELIG_BYTES) SUM_IO_ELIG_BYTES, SUM(IO_RET_BYTES) SUM_IO_RET_BYTES, MAX(RM_INFO) AGG_RM_INFO, MAX(CON_NAME) MAX_CON_NAME, MAX(CON_ID) MAX_CON_ID FROM MONITOR_DATA) MD), ASH_DATA AS (SELECT AD0.INST_ID, AD0.SESSION_ID, AD0.PLAN_LINE_ID, AD0.PLSQL_OBJECT_ID, AD0.PLSQL_SUBPROGRAM_ID, AD0.ACTIVITY_BUCKET_NUM, AD0.PLAN_ACTIVITY_BUCKET_NUM, AD0.SQL, AD0.TOP_LEVEL_SQL_ID, AD0.DBOP_NAME, AD0.IS_MONITORED_SQL, AD0.IS_PX_SLAVE, AD0.BUCKET_ACTIVITY_START, AD0.ACTIVITY_START, AD0.BUCKET_ACTIVITY_END, AD0.ACTIVITY_END, AD0.ACTIVITY_COUNT, AD0.ACTIVITY_TYPE, AD0.OTHER_SQL_ACTIVITY_TYPE, AD0.EVENT_NAME, AD0.IMQ_COUNT, AD0.WAIT_COUNT, AD0.CPU_COUNT, AD0.OTHER_SQL_COUNT, AD0.PX_SERVER_SET, AD0.PX_DFO_ACTIVITY_COUNT, AD0.DFO_MOST_ACTIVE_IID, AD0.DFO_MOST_ACTIVE_SID, (CASE WHEN AD0.DFO_MOST_ACTIVE_IID = AD0.INST_ID AND AD0.DFO_MOST_ACTIVE_SID = AD0.SESSION_ID AND (((AD0.PX_DFO_ACTIVITY_COUNT / AD0.DFO_MOST_ACTIVE_COUNT) >= AD0.PX_DOP * 1.05) OR ((AD0.PX_DFO_ACTIVITY_COUNT / AD0.DFO_MOST_ACTIVE_COUNT) <= AD0.PX_DOP *0.95)) AND (AD0.DFO_DURATION * 100) > :B32 THEN AD0.ACTIVITY_COUNT ELSE NULL END) DFO_MOST_ACTIVE_COUNT, AD0.BUCKET_DISTINCT_SAMPLES, AD0.SQL_BUCKET_DISTINCT_SAMPLES, CASE WHEN AD0.PX_SERVER_GROUP IS NULL AND AD0.IS_PX_SLAVE = 1 THEN 1 ELSE AD0.PX_SERVER_GROUP END PX_SERVER_GROUP, AD0.PX_STEP_ID, AD0.PX_DFO_PAIR_TYPE, AD0.PX_DFO_PAIR_ID, AD0.PX_STEP_ARG, AD0.PX_DOP, CASE WHEN AD0.PX_DOP IS NOT NULL AND AD0.PX_DOP <> AD0.PX_MIN_DOP AND AD0.PX_MIN_DOP != 0 THEN PX_MIN_DOP ELSE NULL END PX_MIN_DOP FROM (SELECT /*+ use_hash(ash) leading(mo) */ ASH.INST_ID, ASH.IS_PX_SLAVE, ASH.SESSION_ID, ASH.PLAN_LINE_ID, ASH.PLSQL_OBJECT_ID, ASH.PLSQL_SUBPROGRAM_ID, ASH.ACTIVITY_BUCKET_NUM, ASH.PLAN_ACTIVITY_BUCKET_NUM, ASH.SQL, ASH.TOP_LEVEL_SQL_ID, ASH.DBOP_NAME, ASH.IS_MONITORED_SQL, ASH.BUCKET_ACTIVITY_START, ASH.ACTIVITY_START, ASH.BUCKET_ACTIVITY_END, ASH.ACTIVITY_END, ASH.ACTIVITY_COUNT, A SH.ACTIVITY_TYPE, ASH.OTHER_SQL_ACTIVITY_TYPE, ASH.EVENT_NAME, ASH.IMQ_COUNT, ASH.WAIT_COUNT, ASH.CPU_COUNT, ASH.OTHER_SQL_COUNT, MO.PX_SERVER_SET, ASH.PX_DFO_ACTIVITY_COUNT, TRUNC(ASH.MOST_ACTIVE_IN_DFO / 10000000000) DFO_MOST_ACTIVE_COUNT, MOD(TRUNC(ASH.MOST_ACTIVE_IN_DFO / 1000000), 10000) DFO_MOST_ACTIVE_IID, MOD(ASH.MOST_ACTIVE_IN_DFO, 1000000) DFO_MOST_ACTIVE_SID, ASH.DFO_DURATION, ASH.BUCKET_DISTINCT_SAMPLES, ASH.SQL_BUCKET_DISTINCT_SAMPLES, MO.PX_SERVER_GROUP, ASH.PX_STEP_ID, ASH.PX_DFO_PAIR_TYPE, ASH.PX_DFO_PAIR_ID, ASH.PX_STEP_ARG, ASH.PX_DOP, ASH.PX_MIN_DOP FROM (SELECT /*+ no_merge */ MD.INST_ID, MD.SID, MD.SESSION_SERIAL#, MD.PX_SERVER_SET, MD.PX_SERVER_GROUP FROM MONITOR_DATA MD WHERE MD.SID IS NOT NULL OR :B31 = 1) MO, (SELECT /*+ no_merge */ GVTF.INST_ID, GVTF.GLOBAL_SAMPLE_ID, GVTF.IS_PX_SLAVE, GVTF.SESSION_ID, GVTF.PLAN_LINE_ID, GVTF.PLSQL_OBJECT_ID, GVTF.PLSQL_SUBPROGRAM_ID, GVTF.ACTIVITY_BUCKET_NUM, GVTF.PLAN_ACTIVITY_BUCKET_NUM, GVTF.SQL, GVTF.TOP_LEVEL_SQL_ID, GVTF.DBOP_NAME, GVTF.IS_MONITORED_SQL, GVTF.BUCKET_ACTIVITY_START, GVTF.ACTIVITY_START, GVTF.BUCKET_ACTIVITY_END, GVTF.ACTIVITY_END, GVTF.ACTIVITY_COUNT, GVTF.ACTIVITY_TYPE, GVTF.OTHER_SQL_ACTIVITY_TYPE, GVTF.EVENT_NAME, GVTF.IMQ_COUNT, GVTF.WAIT_COUNT, GVTF.CPU_COUNT, GVTF.OTHER_SQL_COUNT, MAX(GVTF.PER_SERVER_DFO_COUNT * 10000000000 + GVTF.INST_ID * 1000000 + GVTF.SESSION_ID) OVER(PARTITION BY GVTF.PX_DFO_PAIR_TYPE, GVTF.PX_DFO_PAIR_ID) MOST_ACTIVE_IN_DFO, SUM(GVTF.ACTIVITY_COUNT) OVER(PARTITION BY GVTF.PX_DFO_PAIR_TYPE, GVTF.PX_DFO_PAIR_ID) PX_DFO_ACTIVITY_COUNT, GVTF.DFO_DURATION, GVTF.PX_STEP_ID, GVTF.PX_DFO_PAIR_TYPE, GVTF.PX_DFO_PAIR_ID, GVTF.PX_STEP_ARG, GVTF.PX_DOP, GVTF.PX_MIN_DOP, COUNT(DISTINCT GVTF.GLOBAL_SAMPLE_ID) OVER(PARTITION BY GVTF.ACTIVITY_BUCKET_NUM) BUCKET_DISTINCT_SAMPLES, COUNT(DISTINCT GVTF.GLOBAL_SAMPLE_ID) OVER(PARTITION BY GVTF.SQL, GVTF.ACTIVITY_BUCKET_NUM) SQL_BUCKET_DISTINCT_SAMPLES FROM TABLE (SYS.GV$(CURSOR( (SELECT USERENV('INSTANCE') INST_ID, ASH2.GLOBAL_SAMPLE_ID, CASE WHEN :B30 = 1 AND :B27 > 1 THEN BUCKET_NUM ELSE NULL END ACTIVITY_BUCKET_NUM, CASE WHEN :B29 = 1 AND :B27 > 1 THEN BUCKET_NUM ELSE NULL END PLAN_ACTIVITY_BUCKET_NUM, ASH2.SQL, ASH2.TOP_LEVEL_SQL_ID, ASH2.DBOP_NAME, ASH2.IS_MONITORED_SQL, ASH2.PLAN_LINE_ID, ASH2.PLSQL_OBJECT_ID, ASH2.PLSQL_SUBPROGRAM_ID, ASH2.ACTIVITY_TYPE, ASH2.OTHER_SQL_ACTIVITY_TYPE, ASH2.EVENT_NAME, ASH2.IS_PX_SLAVE, ASH2.SESSION_ID, ASH2.PX_STEP_ID, ASH2.PX_DFO_PAIR_TYPE, ASH2.PX_DFO_PAIR_ID, ASH2.PX_STEP_ARG, CASE WHEN ASH2.PX_DFO_PAIR_ID IS NOT NULL THEN DECODE(ASH2.PX_DOP, 0, :B28 , ASH2.PX_DOP) ELSE NULL END PX_DOP, ASH2.PX_MIN_DOP, :B20 + NUMTODSINTERVAL(:B26 * (ASH2.BUCKET_NUM-1), 'SECOND') BUCKET_ACTIVITY_START, :B20 + NUMTODSINTERVAL( :B26 * ASH2.BUCKET_NUM - 1, 'SECOND') BUCKET_ACTIVITY_END, ASH2.ACTIVITY_START, ASH2.ACTIVITY_END, ASH2.ACTIVITY_COUNT, ASH2.IMQ_COUNT, ASH2.WAIT_COUNT, AS H2.CPU_COUNT, ASH2.OTHER_SQL_COUNT, SUM(ASH2.ACTIVITY_COUNT) OVER(PARTITION BY ASH2.PX_DFO_PAIR_ID, ASH2.PX_DFO_PAIR_TYPE, DECODE(ASH2.PX_DFO_PAIR_ID, NULL, NULL, ASH2.SESSION_ID)) PER_SERVER_DFO_COUNT, CEIL((MAX(ASH2.MAX_SAMPLE_DATE) OVER(PARTITION BY ASH2.PX_DFO_PAIR_ID, ASH2.PX_DFO_PAIR_TYPE) - MIN(ASH2.MIN_SAMPLE_DATE) OVER(PARTITION BY ASH2.PX_DFO_PAIR_ID, ASH2.PX_DFO_PAIR_TYPE)) * 3600 * 24) DFO_DURATION FROM (SELECT ASH1.BUCKET_NUM, ASH1.GLOBAL_SAMPLE_ID, ASH1.PLAN_LINE_ID, ASH1.PLSQL_OBJECT_ID, ASH1.PLSQL_SUBPROGRAM_ID, ASH1.ACTIVITY_TYPE, ASH1.OTHER_SQL_ACTIVITY_TYPE, ASH1.EVENT_NAME, ASH1.SESSION_ID, ASH1.PX_STEP_ID, ASH1.PX_STEP_ARG, MAX(ASH1.SQL) SQL, MAX(ASH1.IS_MONITORED_SQL) IS_MONITORED_SQL, MAX(ASH1.PX_DFO_PAIR_TYPE) PX_DFO_PAIR_TYPE, MAX(ASH1.PX_DFO_PAIR_ID) PX_DFO_PAIR_ID, MIN(SAMPLE_DATE) MIN_SAMPLE_DATE, MAX(SAMPLE_DATE) MAX_SAMPLE_DATE, MAX(ASH1.IS_PX_SLAVE) IS_PX_SLAVE, MAX(ASH1.PX_DOP) PX_DOP, MIN(ASH1.PX_DOP) PX_MIN_DOP, MIN(ASH1.S AMPLE_DATE) ACTIVITY_START, MAX(ASH1.SAMPLE_DATE) ACTIVITY_END, COUNT(ASH1.SQL) ACTIVITY_COUNT, COUNT(CASE WHEN ASH1.ACTIVITY_TYPE = 'Cpu' AND ASH1.EVENT_NAME = 'in memory' THEN 1 ELSE NULL END) IMQ_COUNT, COUNT(CASE WHEN ASH1.ACTIVITY_TYPE != 'Other SQL Execution' AND ASH1.ACTIVITY_TYPE != 'Non SQL' AND ASH1.ACTIVITY_TYPE != 'Cpu' THEN 1 ELSE NULL END) WAIT_COUNT, COUNT(CASE WHEN ASH1.ACTIVITY_TYPE = 'Cpu' AND ASH1.EVENT_NAME IS NULL THEN 1 ELSE NULL END) CPU_COUNT, COUNT(CASE WHEN ASH1.ACTIVITY_TYPE = 'Other SQL Execution' AND ASH1.ACTIVITY_TYPE != 'Non SQL' THEN 1 ELSE NULL END) OTHER_SQL_COUNT, MAX(ASH1.TOP_LEVEL_SQL_ID) TOP_LEVEL_SQL_ID, MAX(ASH1.DBOP_NAME) DBOP_NAME FROM ( SELECT (CASE WHEN :B27 > 1 THEN (TRUNC(DELTA_TIME_SECONDS/ :B26 ) + 1) ELSE 1 END) BUCKET_NUM, ASH00.SQL, ASH00.SAMPLE_DATE, NVL2(DUP.C2, TRUNC(DELTA_TIME_SECONDS/ (:B25 )) + 1, NULL) GLOBAL_SAMPLE_ID, NVL2(DUP.C2, NULL, ASH00.IS_MONITORED_SQL) IS_MONITORED_SQL, NVL2(DUP.C2, NULL, ASH00.IN _INMEMORY_QUERY) IN_INMEMORY_QUERY, NVL2(DUP.C2, NULL, ASH00.WAIT_CLASS) WAIT_CLASS, NVL2(DUP.C2, NULL, ASH00.ACTIVITY_TYPE) ACTIVITY_TYPE, NVL2(DUP.C2, NULL, ASH00.OTHER_SQL_ACTIVITY_TYPE) OTHER_SQL_ACTIVITY_TYPE, NVL2(DUP.C2, NULL, ASH00.EVENT_NAME) EVENT_NAME, NVL2(DUP.C2, NULL, ASH00.TOP_LEVEL_SQL_ID) TOP_LEVEL_SQL_ID, NVL2(DUP.C2, NULL, ASH00.DBOP_NAME) DBOP_NAME, NVL2(DUP.C2, NULL, ASH00.IS_PX_SLAVE) IS_PX_SLAVE, NVL2(DUP.C2, NULL, ASH00.SESSION_ID) SESSION_ID, NVL2(DUP.C2, NULL, ASH00.PLSQL_OBJECT_ID) PLSQL_OBJECT_ID, NVL2(DUP.C2, NULL, ASH00.PLSQL_SUBPROGRAM_ID) PLSQL_SUBPROGRAM_ID, NVL2(DUP.C2, NULL, ASH00.PLAN_LINE_ID) PLAN_LINE_ID, NVL2(DUP.C2, NULL, ASH00.PX_STEP_ID) PX_STEP_ID, NVL2(DUP.C2, NULL, ASH00.PX_STEP_ARG) PX_STEP_ARG, NVL2(DUP.C2, NULL, ASH00.PX_DFO_PAIR_ID) PX_DFO_PAIR_ID, NVL2(DUP.C2, NULL, ASH00.PX_DFO_PAIR_TYPE) PX_DFO_PAIR_TYPE, NVL2(DUP.C2, NULL, ASH00.PX_DOP) PX_DOP FROM (SELECT 1 C1, NULL C2 FROM V$DUAL UNI ON ALL SELECT 1 C1, 1 C2 FROM V$DUAL) DUP, (SELECT /*+ no_merge */ 1 C1, ASH000.SAMPLE_DATE, ASH000.IS_MONITORED_SQL, ((EXTRACT(SECOND FROM(DELTA_TIME)) + EXTRACT(MINUTE FROM(DELTA_TIME)) * 60 + EXTRACT(HOUR FROM(DELTA_TIME)) * 3600 + EXTRACT(DAY FROM(DELTA_TIME)) * 86400)) DELTA_TIME_SECONDS, ASH000.IN_INMEMORY_QUERY, ASH000.WAIT_CLASS, DECODE(ASH000.IS_MONITORED_SQL, 1, NVL(ASH000.WAIT_CLASS, 'Cpu'), DECODE(SQL_ID, NULL, 'Non SQL', 'Other SQL Execution')) ACTIVITY_TYPE, NVL(ASH000.WAIT_CLASS, 'Cpu') OTHER_SQL_ACTIVITY_TYPE, DECODE(:B24 , 1, CASE WHEN ASH000.IS_MONITORED_SQL = 1 THEN NVL(ASH000.EVENT, DECODE(ASH000.IN_INMEMORY_QUERY, 'Y', 'in memory', ASH000.EVENT)) WHEN ASH000.SQL_ID IS NOT NULL THEN 'sql_id: ' || ASH000.SQL_ID WHEN ASH000.CALL_NAME IS NOT NULL THEN 'call: ' || ASH000.CALL_NAME ELSE 'anonymous: '|| ASH000.EVENT END, NULL) EVENT_NAME, CASE WHEN ASH000.IS_MONITORED_SQL = 1 AND (NVL(ASH000.SQL_ID, :B9 ) = :B9 OR NVL(ASH000.DBOP_NAME, :B6 ) = :B6 ) THEN 'this' WHEN ASH000.IS_PX_SLAVE = 1 AND ASH000.SQL_ID IS NOT NULL AND ASH000.TOP_LEVEL_SQL_ID != ASH000.SQL_ID THEN ASH000.TOP_LEVEL_SQL_ID WHEN ASH000.SQL_ID IS NOT NULL THEN ASH000.SQL_ID ELSE NVL(CALL_NAME, 'anonymous') END SQL, CASE WHEN ASH000.IS_PX_SLAVE = 0 AND (ASH000.SQL_ID IS NULL OR ASH000.TOP_LEVEL_SQL_ID != ASH000.SQL_ID) THEN ASH000.TOP_LEVEL_SQL_ID END TOP_LEVEL_SQL_ID, ASH000.DBOP_NAME, ASH000.IS_PX_SLAVE, CASE WHEN ASH000.IS_PX_SLAVE = 1 AND ASH000.IS_MONITORED_SQL != 1 THEN 65536 ELSE ASH000.SESSION_ID END SESSION_ID, DECODE(ASH000.IS_MONITORED_SQL, 1, ASH000.PLSQL_OBJECT_ID, NULL) PLSQL_OBJECT_ID, DECODE(ASH000.IS_MONITORED_SQL, 1, ASH000.PLSQL_SUBPROGRAM_ID, NULL) PLSQL_SUBPROGRAM_ID, DECODE(ASH000.IS_MONITORED_SQL, 1, ASH000.SQL_PLAN_LINE_ID, NULL) PLAN_LINE_ID, DECODE(ASH000.IS_MONITORED_SQL, 1, ASH000.PX_STEP_ID, NULL) PX_STEP_ID, CASE WHEN ASH000.IS_PX_SLAVE = 1 AND ASH000.IS_MONITORED_SQL = 1 AND ASH000.PX_STEP_ID IN (1, 2, 3) THEN ASH000.PX_STEP_ARG ELSE NULL END PX_DFO_PAIR_ID, CASE WHEN ASH000.IS_PX_SLAVE = 0 OR ASH000.IS_MONITORED_SQL != 1 THEN NULL WHEN ASH000.PX_STEP_ID = 1 THEN 1 WHEN ASH000.PX_STEP_ID IN (2, 3) THEN 0 ELSE NULL END PX_DFO_PAIR_TYPE, DECODE(ASH000.IS_MONITORED_SQL, 1, ASH000.PX_STEP_ARG, NULL) PX_STEP_ARG, DECODE(ASH000.IS_MONITORED_SQL, 1, ASH000.PX_DOP, NULL) PX_DOP FROM (SELECT ASH0.*, CASE WHEN ASH0.IS_TARGET_SQL = 1 OR (ASH0.IS_PX_SLAVE = 1 AND ((NVL(ASH0.TOP_LEVEL_SQL_ID, ASH0.SQL_ID) IS NOT NULL AND NVL(ASH0.TOP_LEVEL_SQL_ID, ASH0.SQL_ID) = :B9 ) OR (SQL_ID IS NULL AND :B23 = 'Y'))) THEN 1 ELSE 0 END IS_MONITORED_SQL FROM (SELECT (CASE WHEN (ASH.SQL_ID = :B9 AND ASH.SQL_EXEC_ID = :B7 AND ASH.SQL_EXEC_START = :B8 ) THEN 1 ELSE 0 END) IS_TARGET_SQL, ASH.SQL_ID, ASH.SQL_PLAN_LINE_ID, ASH.PLSQL_OBJECT_ID, ASH.PLSQL_SUBPROGRAM_ID, ASH.TOP_LEVEL_SQL_ID, DECODE(ASH.SQL_ID, NULL, ASH.TOP_LEVEL_CALL_NAME, NULL) CALL_NAME, ASH.EVENT, ASH.IN_INMEMORY_QUERY, ASH.WA IT_CLASS, ASH.SQL_EXEC_ID, ASH.SQL_EXEC_START, ASH.DBOP_NAME, ASH.DBOP_EXEC_ID, ASH.SESSION_ID, ASH.SESSION_SERIAL#, CASE WHEN QC_INSTANCE_ID IS NOT NULL AND (ASH.SESSION_ID != ASH.QC_SESSION_ID OR ASH.SESSION_SERIAL# != ASH.QC_SESSION_SERIAL# OR USERENV('instance') != ASH.QC_INSTANCE_ID) THEN 1 ELSE 0 END IS_PX_SLAVE, SAMPLE_TIME - CAST(:B20 AS TIMESTAMP) DELTA_TIME, CAST(FROM_TZ(ASH.SAMPLE_TIME, DBTIMEZONE) AS DATE) SAMPLE_DATE, TRUNC(MOD(PX_FLAGS/65536, 32)) PX_STEP_ID, MOD(PX_FLAGS, 65536) PX_STEP_ARG, TRUNC(PX_FLAGS/2097152) PX_DOP FROM V$ALL_ACTIVE_SESSION_HISTORY ASH WHERE ((ASH.SESSION_ID = :B19 AND ASH.SESSION_SERIAL# = :B18 AND USERENV('INSTANCE') = :B17 ) OR (ASH.QC_SESSION_ID IS NOT NULL AND ASH.QC_SESSION_ID = :B19 AND ASH.QC_SESSION_SERIAL# = :B18 AND ASH.QC_INSTANCE_ID = :B17 )) AND SAMPLE_TIME BETWEEN :B16 AND :B15 ) ASH0 WHERE (ASH0.SAMPLE_DATE BETWEEN :B20 + 1/24/3600 AND :B22 - 1/24/3600 OR (ASH0.SQL_ID = :B9 AND ASH0.SQL_EXEC_START = :B8 AND ASH0.SQL_ EXEC_ID = :B7 ) OR (ASH0.DBOP_NAME = :B6 AND ASH0.DBOP_EXEC_ID = :B5 )) AND (:B21 IS NULL OR ASH0.SQL_PLAN_LINE_ID = :B21 ) AND (ASH0.IS_PX_SLAVE = 0 OR ASH0.SQL_ID IS NOT NULL)) ASH000 ) ASH00 WHERE ASH00.C1 = DUP.C1) ASH1 WHERE ASH1.BUCKET_NUM > 0 AND ASH1.BUCKET_NUM <= :B27 GROUP BY USERENV('INSTANCE'), ASH1.GLOBAL_SAMPLE_ID, ASH1.BUCKET_NUM, ASH1.SESSION_ID, ASH1.PLAN_LINE_ID, ASH1.PLSQL_OBJECT_ID, ASH1.PLSQL_SUBPROGRAM_ID, ASH1.ACTIVITY_TYPE, ASH1.EVENT_NAME, ASH1.OTHER_SQL_ACTIVITY_TYPE, ASH1.PX_STEP_ID, ASH1.PX_STEP_ARG) ASH2)))) GVTF WHERE GVTF.INST_ID BETWEEN :B11 AND :B10 ) ASH WHERE ASH.GLOBAL_SAMPLE_ID IS NULL AND ASH.SESSION_ID = MO.SID(+) AND ASH.INST_ID = MO.INST_ID(+)) AD0), RESPONSE_TIME_DATA AS (SELECT ADH.BUCKET_NUM, ADH.SQL_ROWNUM, ADH.SQL, ADH.TOP_LEVEL_SQL_ID, ADH.DBOP_NAME, ADH.PX_ID, DECODE( ADH.PX_STEP_ID, NULL, NULL, 0, NULL, 1, 'PX Server(s) - Executing Parent DFO', 2, 'PX Server(s) - Executing Child DFO', 3, 'PX Server(s) - Sampling Child DFO', 4, 'PX Server(s) - Joining Group', 5, 'QC - Scheduling Child DFO', 6, 'QC - Scheduling Parent DFO', 7, 'QC - Initializing Objects', 8, 'QC - Flushing Objects', 9, 'QC - Allocating Slaves', 10, 'QC - Initializing Granules', 11, 'PX Server(s) - Parsing Cursor', 12, 'PX Server(s) - Executing Cursor', 13, 'PX Server(s) - Preparing Transaction', 14, 'PX Server(s) - Joining Transaction', 15, 'PX Server(s) - Load Commit', 16, 'PX Server(s) - Aborting Transaction', 17, 'QC - Executing Child DFO', 18, 'QC - Executing Parent DFO', 'PX Step - ' || PX_STEP_ID) PX_STEP_ID, ADH.PX_STEP_ARG, ADH.PX_DFO_PAIR_ID, ADH.PX_DOP, ADH.PX_MIN_DOP, ADH.DFO_MOST_ACTIVE_IID, ADH.DFO_MOST_ACTIVE_SID, ADH.DFO_MOST_ACTIVE_COUNT, ADH.ACTIVITY_START, ADH.ACTIVITY_END, ADH.ACTIVITY_TYPE, ADH.OTHER_SQL_ACTIVITY_TYPE, ADH.EVENT_NAME, ADH.PLAN_LINE_ID, ADH.PLSQL_OBJECT_ID, ADH.PLSQL_SUBPROGRAM_ID, CASE WHEN PLSQL_ROWNUM = 1 AND ADH.PLSQL_OBJECT_ID IS NOT NULL THEN NVL((SELECT P.OWNER || '.' || P.OBJECT_NAME || DECODE(P.PROCEDURE_NAME, NULL, '', '.' || P.PROCEDURE_NAME) FROM ALL_PROCEDURES P WHERE P.OBJECT_ID = ADH.PLSQL_OBJECT_ID AND P.SUBPROGRAM_ID = ADH.PLSQL_SUBPROGRAM_ID), 'Unavailable') ELSE NULL END PLSQL_NAME, ADH.ACTIVITY_COUNT, ADH.BUCKET_ACTIVE_SECONDS, ADH.BUCKET_IDLE_SECONDS, (CASE WHEN ADH.IS_MONITORED_SQL = 0 THEN ADH.ACTIVE_SECONDS WHEN ADH.PX_DFO_PAIR_ID IS NOT NULL AND ADH.DFO_PAIR_CPU_HEIGHT >= :B34 THEN DECODE(ADH.ACTIVITY_TYPE, 'Cpu', (ADH.DFO_PAIR_ACTIVITY_HEIGHT / ADH.DFO_PAIR_CPU_HEIGHT) * ADH.DFO_PAIR_TOTAL_SECONDS, 0) WHEN ADH.PX_DFO_PAIR_ID IS NOT NULL AND ADH.PX_DOP > :B34 THEN (ADH.DFO_PAIR_TOTAL_SECONDS * DECODE(ADH.ACTIVITY_TYPE, 'Cpu', ADH.DFO_PAIR_ACTIVITY_HEIGHT, (ADH.DFO_PAIR_ACTIVITY_HEIGHT * (:B34 - ADH.DFO_PAIR_CPU_HEIGHT)) / (ADH.DFO_PAIR_TOTAL_HEIGHT_ADJ - ADH.DFO_PAIR_CPU_HEIGHT))) / :B34 WHEN ADH.PX_DFO_PAIR_ID IS NOT NULL THEN (ADH.DFO_PAIR_TOTAL_SECONDS * ADH.DFO_PAIR_ACTI VITY_HEIGHT) / ADH.PX_DOP ELSE ADH.ACTIVE_SECONDS END) RESP_TIME, (CASE WHEN ADH.PX_DFO_PAIR_ID IS NOT NULL AND ADH.DFO_PAIR_IDLE_HEIGHT > 0 AND ADH.PX_DOP > :B34 THEN (ADH.DFO_PAIR_TOTAL_SECONDS * (ADH.DFO_PAIR_IDLE_HEIGHT * (:B34 - ADH.DFO_PAIR_CPU_HEIGHT)) / (ADH.DFO_PAIR_TOTAL_HEIGHT_ADJ - ADH.DFO_PAIR_CPU_HEIGHT)) / :B34 WHEN ADH.PX_DFO_PAIR_ID IS NOT NULL AND ADH.DFO_PAIR_IDLE_HEIGHT > 0 THEN (ADH.DFO_PAIR_TOTAL_SECONDS * ADH.DFO_PAIR_IDLE_HEIGHT) / ADH.PX_DOP ELSE 0 END) DFO_PAIR_IDLE_RESP_TIME, ADH.DFO_PAIR_ACTIVITY_HEIGHT, ADH.DFO_PAIR_CPU_HEIGHT, ADH.DFO_PAIR_IDLE_HEIGHT, ADH.DFO_PAIR_TOTAL_HEIGHT, ADH.DFO_PAIR_CPU_ACTIVITY, ADH.DFO_PAIR_TOTAL_SECONDS FROM (SELECT ADH_1.*, (ROW_NUMBER() OVER(PARTITION BY ADH_1.PLSQL_OBJECT_ID, ADH_1.PLSQL_SUBPROGRAM_ID ORDER BY ADH_1.BUCKET_NUM, ADH_1.ACTIVITY_TYPE, ADH_1.EVENT_NAME)) PLSQL_ROWNUM, (ROW_NUMBER() OVER(PARTITION BY ADH_1.SQL ORDER BY ADH_1.BUCKET_NUM, ADH_1.ACTIVITY_TYPE, ADH_1.EVENT_NAME)) SQL_ROWNUM, ( CASE WHEN ADH_1.PX_DFO_PAIR_ID IS NOT NULL AND (ADH_1.DFO_PAIR_TOTAL_HEIGHT < ADH_1.PX_DOP) AND (ADH_1.DFO_PAIR_CPU_HEIGHT < :B34 ) THEN ADH_1.PX_DOP - ADH_1.DFO_PAIR_TOTAL_HEIGHT ELSE 0 END) DFO_PAIR_IDLE_HEIGHT, (CASE WHEN ADH_1.PX_DFO_PAIR_ID IS NOT NULL AND (ADH_1.DFO_PAIR_TOTAL_HEIGHT < ADH_1.PX_DOP) AND (ADH_1.DFO_PAIR_CPU_HEIGHT < :B34 ) THEN ADH_1.PX_DOP ELSE ADH_1.DFO_PAIR_TOTAL_HEIGHT END) DFO_PAIR_TOTAL_HEIGHT_ADJ FROM (SELECT ADH_0.*, (CASE WHEN ADH_0.DFO_PAIR_TOTAL_SECONDS > 0 THEN (ADH_0.DFO_PAIR_TOTAL_ACTIVITY * :B25 ) / ADH_0.DFO_PAIR_TOTAL_SECONDS ELSE 0 END) DFO_PAIR_TOTAL_HEIGHT, (CASE WHEN ADH_0.DFO_PAIR_TOTAL_SECONDS > 0 THEN (ADH_0.DFO_PAIR_CPU_ACTIVITY * :B25 ) / ADH_0.DFO_PAIR_TOTAL_SECONDS ELSE 0 END) DFO_PAIR_CPU_HEIGHT, (CASE WHEN ADH_0.PX_DFO_PAIR_ID IS NOT NULL AND ADH_0.DFO_PAIR_TOTAL_SECONDS > 0 THEN (ADH_0.ACTIVITY_COUNT * :B25 ) / ADH_0.DFO_PAIR_TOTAL_SECONDS ELSE 0 END) DFO_PAIR_ACTIVITY_HEIGHT FROM (SELECT AD3.*, (SUM(DECODE( AD3.PX_DFO_PAIR_ID, NULL, 0, AD3.ACTIVE_SECONDS)) OVER(PARTITION BY DECODE(AD3.PX_DFO_PAIR_ID, NULL, NULL, AD3.BUCKET_NUM), DECODE(AD3.PX_DFO_PAIR_ID, NULL, NULL, AD3.PX_STEP_ARG))) DFO_PAIR_TOTAL_SECONDS FROM (SELECT AD2.*, CASE WHEN AD2.IS_MONITORED_SQL = 0 THEN SQL_BUCKET_DISTINCT_SAMPLES * :B25 WHEN AD2.PX_ID IS NULL THEN AD2.ACTIVITY_COUNT * :B25 WHEN AD2.BUCKET_PARALLEL_MON_ACTIVITY > 0 THEN (AD2.ACTIVITY_COUNT * AD2.BUCKET_PARALLEL_MON_SECONDS) / AD2.BUCKET_PARALLEL_MON_ACTIVITY ELSE 0 END ACTIVE_SECONDS, CASE WHEN AD2.BUCKET_INTERVAL > BUCKET_ACTIVE_SECONDS THEN AD2.BUCKET_INTERVAL - BUCKET_ACTIVE_SECONDS ELSE 0 END BUCKET_IDLE_SECONDS FROM (SELECT AD1.*, (AD1.BUCKET_SERIAL_MON_ACTIVITY * :B25 ) BUCKET_SERIAL_MON_SECONDS, (AD1.BUCKET_TOTAL_MON_ACTIVITY - AD1.BUCKET_SERIAL_MON_ACTIVITY) BUCKET_PARALLEL_MON_ACTIVITY, (AD1.BUCKET_ACTIVE_SECONDS - (AD1.BUCKET_OTHER_ACTIVITY + AD1.BUCKET_SERIAL_MON_ACTIVITY) * :B25 ) BUCKET_PARALLEL_MON_SECONDS, (AD1.BUCKET_OTH ER_ACTIVITY * :B25 ) BUCKET_OTHER_SECONDS, DECODE(AD1.PX_DFO_PAIR_ID, NULL, NULL, SUM(AD1.ACTIVITY_COUNT) OVER(PARTITION BY DECODE(AD1.PX_DFO_PAIR_ID, NULL, NULL, AD1.BUCKET_NUM), AD1.PX_DFO_PAIR_ID)) DFO_PAIR_TOTAL_ACTIVITY, DECODE(AD1.PX_DFO_PAIR_ID, NULL, NULL, SUM(DECODE(AD1.ACTIVITY_TYPE, 'Cpu', AD1.ACTIVITY_COUNT, 0)) OVER(PARTITION BY DECODE(AD1.PX_DFO_PAIR_ID, NULL, NULL, AD1.BUCKET_NUM), AD1.PX_DFO_PAIR_ID)) DFO_PAIR_CPU_ACTIVITY FROM (SELECT AD01.*, NVL((SUM(DECODE(AD01.IS_MONITORED_SQL, 1, AD01.ACTIVITY_COUNT, NULL)) OVER(PARTITION BY AD01.BUCKET_NUM)), 0) BUCKET_TOTAL_MON_ACTIVITY, (NVL(SUM(CASE WHEN AD01.IS_MONITORED_SQL = 1 AND AD01.PX_ID IS NULL THEN AD01.ACTIVITY_COUNT ELSE NULL END) OVER(PARTITION BY AD01.BUCKET_NUM), 0)) BUCKET_SERIAL_MON_ACTIVITY, (NVL((SUM(DECODE(AD01.IS_MONITORED_SQL, 0, AD01.SQL_BUCKET_DISTINCT_SAMPLES, NULL)) OVER(PARTITION BY AD01.BUCKET_NUM)), 0)) BUCKET_OTHER_ACTIVITY, (NVL(AD01.BUCKET_DISTINCT_SAMPLES, 0) * :B 25 ) BUCKET_ACTIVE_SECONDS, DECODE(AD01.BUCKET_NUM, :B27 , MOD(:B32 , :B26 ), :B26 ) BUCKET_INTERVAL FROM (SELECT AD0.ACTIVITY_BUCKET_NUM BUCKET_NUM, AD0.PX_ID, AD0.ACTIVITY_TYPE, AD0.OTHER_SQL_ACTIVITY_TYPE, AD0.EVENT_NAME, AD0.PLAN_LINE_ID, AD0.PX_STEP_ID, AD0.PX_STEP_ARG, AD0.PLSQL_OBJECT_ID, AD0.PLSQL_SUBPROGRAM_ID, SUM(AD0.ACTIVITY_COUNT) ACTIVITY_COUNT, MIN(AD0.ACTIVITY_START) ACTIVITY_START, MAX(AD0.ACTIVITY_END) ACTIVITY_END, MAX(AD0.IS_MONITORED_SQL) IS_MONITORED_SQL, MAX(AD0.SQL) SQL, MAX(AD0.TOP_LEVEL_SQL_ID) TOP_LEVEL_SQL_ID, MAX(AD0.DBOP_NAME) DBOP_NAME, MAX(DECODE(AD0.DFO_MOST_ACTIVE_COUNT, NULL, NULL, AD0.DFO_MOST_ACTIVE_IID)) DFO_MOST_ACTIVE_IID, MAX(DECODE(AD0.DFO_MOST_ACTIVE_COUNT, NULL, NULL, AD0.DFO_MOST_ACTIVE_SID)) DFO_MOST_ACTIVE_SID, SUM(AD0.DFO_MOST_ACTIVE_COUNT) DFO_MOST_ACTIVE_COUNT, MAX(PX_DFO_PAIR_TYPE) PX_DFO_PAIR_TYPE, MAX(PX_DFO_PAIR_ID) PX_DFO_PAIR_ID, MAX(AD0.PX_DOP) PX_DOP, MIN(AD0.PX_MIN_DOP) PX_MIN_DOP, MAX(AD0.BUC KET_DISTINCT_SAMPLES) BUCKET_DISTINCT_SAMPLES, MAX(AD0.SQL_BUCKET_DISTINCT_SAMPLES) SQL_BUCKET_DISTINCT_SAMPLES FROM (SELECT AD00.*, (CASE WHEN AD00.IS_MONITORED_SQL = 1 AND (AD00.SESSION_ID != :B19 OR AD00.INST_ID != :B17 ) THEN AD00.PX_SERVER_GROUP END) PX_ID FROM ASH_DATA AD00 WHERE :B33 = 1 ) AD0 GROUP BY AD0.ACTIVITY_BUCKET_NUM, AD0.PX_ID, AD0.ACTIVITY_TYPE, AD0.EVENT_NAME, AD0.OTHER_SQL_ACTIVITY_TYPE, AD0.PLAN_LINE_ID, AD0.PLSQL_OBJECT_ID, AD0.PLSQL_SUBPROGRAM_ID, AD0.PX_STEP_ID, AD0.PX_STEP_ARG ) AD01) AD1) AD2) AD3) ADH_0) ADH_1) ADH) SELECT /*+ no_monitor no_xml_query_rewrite opt_param('_gby_hash_aggregation_enabled', 'false') */ XMLELEMENT( "sql_monitor_report", XMLATTRIBUTES(:B59 AS "version", TO_CHAR(:B58 , :B12 ) AS "sysdate"), XMLELEMENT( "report_parameters", NULL, CASE WHEN :B57 IS NOT NULL THEN XMLFOREST( :B57 AS "dbop_name", :B56 AS "dbop_exec_id") ELSE XMLFOREST( :B55 AS "sql_id", :B54 AS "sql_exec_id") END, XMLFOREST( :B53 AS "session_id", :B52 AS "session_serial", TO_CHAR(:B51 , :B12 ) AS "sql_exec_start", :B27 AS "bucket_count", TO_CHAR(:B50 , :B12 ) AS "interval_start", TO_CHAR(:B22 , :B12 ) AS "interval_end", DECODE(:B49 , 'Y', :B48 , NULL) AS "auto_refresh", :B47 AS "base_path"), CASE WHEN :B23 = 'Y' AND :B46 IS NOT NULL AND NOT (:B4 = 1 AND :B3 IS NULL AND :B2 IS NULL AND :B1 IS NULL) THEN XMLELEMENT( "parallel_filter", NULL, XMLFOREST( DECODE(:B4 , 1, 'yes', 'no') AS "qc", :B3 AS "server_group", :B2 AS "server_set", :B1 AS "server_number")) ELSE NULL END), CASE WHEN :B14 = 1 THEN XMLELEMENT( "derived_parameters_testing", NULL, XMLFOREST(:B11 AS "instance_id_low", :B10 AS "instance_id_high", :B26 AS "bucket_interval_sec", :B32 AS "interval_second", :B27 AS "bucket_calc_count", :B45 AS "bucket_calc_max_count", :B13 AS "sel_sqltext")) ELSE NULL END, (SELECT XMLCONCAT( CASE WHEN :B46 IS NULL AND :B67 IS NULL THEN XMLELEMENT( "target", XMLATTRIBUTES(:B17 AS "instance_id", :B19 AS "session_id", :B18 AS "session_serial", NVL2(:B6 , NULL, :B9 ) AS "sql_id", NVL2(:B6 , NULL, TO_CHAR(:B8 , :B12 )) AS "sql_exec_start", NVL2(:B6 , NULL, :B7 ) AS "sql_exec_id", NVL2(:B6 , :B6 , NULL) AS "dbop_name", NVL2(:B6 , :B5 , NULL) AS "dbop_exec_id", NVL2(:B6 , TO_CHAR(:B8 , :B12 ), NULL) AS "dbop_exec_start", NVL2(:B6 , NULL, MAX_PLAN_HASH_VALUE) AS "sql_plan_hash", NVL2(:B6 , NULL, MAX_FULL_PLAN_HASH_VALUE) AS "sql_full_plan_hash", MAGG.DB_UNIQUE_NAME AS "db_unique_name", MAGG.PLATFORM_NAME AS "db_platform_name", MAGG .HOST_NAME AS "report_host_name"), NVL2(SUM_SERVERS_REQUESTED, XMLELEMENT( "servers_requested", NULL, SUM_SERVERS_REQUESTED), NULL), NVL2(SUM_SERVERS_ALLOCATED, XMLELEMENT( "servers_allocated", NULL, SUM_SERVERS_ALLOCATED), NULL), NVL2(MAX_USERID, XMLELEMENT( "user_id", NULL, MAX_USERID), NULL), NVL2(MAX_USERNAME, XMLELEMENT( "user", NULL, MAX_USERNAME), NULL), NVL2(MAX_CON_ID, XMLELEMENT( "con_id", NULL, MAX_CON_ID), NULL), NVL2(MAX_CON_NAME, XMLELEMENT( "con_name", NULL, MAX_CON_NAME), NULL), NVL2(MAX_PROGRAM, XMLELEMENT( "program", NULL, MAX_PROGRAM), NULL), NVL2(MAX_MODULE, XMLELEMENT( "module", NULL, MAX_MODULE), NULL), NVL2(MAX_ACTION, XMLELEMENT( "action", NULL, MAX_ACTION), NULL), NVL2(MAX_SERVICE_NAME, XMLELEMENT( "service", NULL, MAX_SERVICE_NAME), NULL), NVL2(MAX_CLIENT_ID, XMLELEMENT( "client_id", NULL, MAX_CLIENT_ID), NULL), NVL2(MAX_CLIENT_INFO, XMLELEMENT( "client_info", NULL, MAX_CLIENT_INFO), NULL), NVL2(MAX_PL_ENTRY_OID, XMLELEMENT( "plsql_entry_object_id", NULL, MAX_PL_ENTRY_OID), NULL), NVL2(MAX_PL_ENTRY_PROGID, XMLELEMENT( "plsql_entry_subprogram_id", NULL, MAX_PL_ENTRY_PROGID), NULL), NVL2(MAX_PL_ENTRY_NAME, XMLELEMENT( "plsql_entry_name", NULL, MAX_PL_ENTRY_NAME), NULL), NVL2(MAX_PL_OID, XMLELEMENT( "plsql_object_id", NULL, MAX_PL_OID), NULL), NVL2(MAX_PL_PROGID, XMLELEMENT( "plsql_subprogram_id", NULL, MAX_PL_PROGID), NULL), NVL2(MAX_PL_NAME, XMLELEMENT( "plsql_name", NULL, MAX_PL_NAME), NULL), CASE WHEN (:B13 = 0 OR :B6 IS NOT NULL) THEN NULL ELSE XMLELEMENT( "sql_fulltext", XMLATTRIBUTES( NVL2(:B65 , 'Y', :B66 ) AS "is_full"), NVL2(:B65 , :B65 , SQLMON_TEXT)) END, XMLELEMENT( "status", NULL, MAX_STATUS), XMLELEMENT( "ref resh_count", NULL, SUM_REFRESH_COUNT), XMLELEMENT( "first_refresh_time", NULL, TO_CHAR(MIN_FIRST_REFRESH_TIME, :B12 )), XMLELEMENT( "last_refresh_time", NULL, TO_CHAR(:B58 , :B12 )), XMLELEMENT( "duration", NULL, GREATEST(:B64 , LEAST(MAX_ELAPSED_TIME/1000000, 1), CEIL(MAX_QUEUING_TIME/1000000))), DECODE(MAX_RM_INFO, '00/00/0000 00:00:00', NULL, XMLTYPE(SUBSTR(MAX_RM_INFO, 20))), CASE WHEN (:B62 = 'Y') THEN XMLELEMENT( "adaptive_plan", XMLATTRIBUTES(:B63 AS "is_final"), :B62 ) ELSE NULL END ) END, XMLELEMENT( "stats", XMLATTRIBUTES('monitor' AS "type"), DECODE(NVL(SUM_ELAPSED_TIME, 0), 0, NULL, XMLELEMENT( "stat", XMLATTRIBUTES('elapsed_time' AS "name"), SUM_ELAPSED_TIME)), DECODE(NVL(MAX_QUEUING_TIME, 0), 0, NULL, XMLELEMENT( "stat", XMLATTRIBUTES('queuing_time' AS "name"), MAX_QUEUING_TIME)), DECODE(NVL(SUM_CPU_TIME, 0), 0, NUL L, XMLELEMENT( "stat", XMLATTRIBUTES('cpu_time' AS "name"), SUM_CPU_TIME)), DECODE(NVL(SUM_USER_IO_WAIT_TIME, 0), 0, NULL, XMLELEMENT( "stat", XMLATTRIBUTES('user_io_wait_time' AS "name"), SUM_USER_IO_WAIT_TIME)), DECODE(NVL(SUM_APPLICATION_WAIT_TIME, 0), 0, NULL, XMLELEMENT( "stat", XMLATTRIBUTES('application_wait_time' AS "name"), SUM_APPLICATION_WAIT_TIME)), DECODE(NVL(SUM_CONCURRENCY_WAIT_TIME, 0), 0, NULL, XMLELEMENT( "stat", XMLATTRIBUTES('concurrency_wait_time' AS "name"), SUM_CONCURRENCY_WAIT_TIME)), DECODE(NVL(SUM_CLUSTER_WAIT_TIME, 0), 0, NULL, XMLELEMENT( "stat", XMLATTRIBUTES('cluster_wait_time' AS "name"), SUM_CLUSTER_WAIT_TIME)), DECODE(NVL(SUM_PLSQL_EXEC_TIME, 0), 0, NULL, XMLELEMENT( "stat", XMLATTRIBUTES('plsql_exec_time' AS "name"), SUM_PLSQL_EXEC_TIME)), DECODE(NVL(SUM_JAVA_EXEC_TIME, 0), 0, NULL, XMLELEMEN T( "stat", XMLATTRIBUTES('java_exec_time' AS "name"), SUM_JAVA_EXEC_TIME)), DECODE(NVL(SUM_OTHER_WAIT_TIME, 0), 0, NULL, XMLELEMENT( "stat", XMLATTRIBUTES('other_wait_time' AS "name"), SUM_OTHER_WAIT_TIME)), DECODE(NVL(SUM_FETCHES, 0), 0, NULL, XMLELEMENT( "stat", XMLATTRIBUTES('user_fetch_count' AS "name"), SUM_FETCHES)), DECODE(NVL(SUM_BUFFER_GETS, 0), 0, NULL, XMLELEMENT( "stat", XMLATTRIBUTES('buffer_gets' AS "name"), SUM_BUFFER_GETS)), DECODE(NVL(SUM_READ_REQS, 0), 0, NULL, XMLELEMENT( "stat", XMLATTRIBUTES('disk_reads' AS "name"), SUM_READ_REQS)), DECODE(NVL(SUM_WRITE_REQS, 0), 0, NULL, XMLELEMENT( "stat", XMLATTRIBUTES('direct_writes' AS "name"), SUM_WRITE_REQS)), DECODE(NVL(SUM_READ_REQS, 0), 0, NULL, XMLELEMENT( "stat", XMLATTRIBUTES('read_reqs' AS "name"), SUM_READ_REQS)), DECODE(NVL(SUM_READ_B YTES, 0), 0, NULL, XMLELEMENT( "stat", XMLATTRIBUTES('read_bytes' AS "name"), SUM_READ_BYTES)), DECODE(NVL(SUM_WRITE_REQS, 0), 0, NULL, XMLELEMENT( "stat", XMLATTRIBUTES('write_reqs' AS "name"), SUM_WRITE_REQS)), DECODE(NVL(SUM_WRITE_BYTES, 0), 0, NULL, XMLELEMENT( "stat", XMLATTRIBUTES('write_bytes' AS "name"), SUM_WRITE_BYTES)), DECODE(NVL(SUM_IO_UNC_BYTES, 0), 0, NULL, XMLELEMENT( "stat", XMLATTRIBUTES('unc_bytes' AS "name"), SUM_IO_UNC_BYTES)), DECODE(NVL(SUM_IO_ELIG_BYTES, 0), 0, NULL, XMLELEMENT( "stat", XMLATTRIBUTES('elig_bytes' AS "name"), SUM_IO_ELIG_BYTES)), DECODE(NVL(SUM_IO_RET_BYTES, 0), 0, NULL, XMLELEMENT( "stat", XMLATTRIBUTES('ret_bytes' AS "name"), SUM_IO_RET_BYTES)), CASE WHEN SUM_IO_INTER_BYTES IS NULL OR SUM_IO_BYTES = 0 OR SUM_IO_INTER_BYTES = SUM_IO_BYTES OR NVL(SUM_IO_ELIG_BYTES, 0) = 0 THEN NULL ELSE XMLELEMENT( "stat", XMLATTRIBUTES('cell_offload_efficiency' AS "name"), ROUND(SUM_IO_BYTES / DECODE(SUM_IO_INTER_BYTES, 0, 1, SUM_IO_INTER_BYTES), 2)) END, CASE WHEN NVL(SUM_IO_ELIG_BYTES, 0) = 0 OR SUM_IO_BYTES = 0 OR SUM_IO_UNC_BYTES = SUM_IO_RET_BYTES THEN NULL ELSE XMLELEMENT( "stat", XMLATTRIBUTES('cell_offload_efficiency2' AS "name"), GREATEST(0, ROUND(100* (GREATEST(SUM_IO_UNC_BYTES, SUM_IO_ELIG_BYTES) - SUM_IO_RET_BYTES) / SUM_IO_ELIG_BYTES, 2))) END), CASE WHEN :B33 = 1 THEN (SELECT CASE WHEN SUM(ACTIVITY_COUNT) > 0 THEN XMLELEMENT( "activity_sampled", XMLAGG( XMLELEMENT( "activity", XMLATTRIBUTES( AD1.ACTIVITY_TYPE AS "class", AD1.EVENT_NAME AS "event"), AD1.ACTIVITY_COUNT) ORDER BY AD1.ACTIVITY_TYPE, AD1.EVENT_NAME)) ELSE NULL END FROM (SELECT AD0.ACTIVITY_TYPE, AD0.EVENT_NAME, SUM(AD0.ACTIVITY_COUNT) ACTIVITY_COUNT FROM ASH_DATA AD0 GROUP BY AD0.ACTIVITY_TYPE, AD0.EVENT _NAME) AD1) ELSE NULL END, NVL2(MAX_ERROR_NUMBER, XMLELEMENT( "error", XMLATTRIBUTES(MAX_ERROR_NUMBER AS "number", MAX_ERROR_FACILITY AS "facility"), MAX_ERROR_MESSAGE), NULL), CASE WHEN :B61 = 1 AND MAGG.QC_HAS_BINDS_XML = 'Y' THEN (SELECT XMLTYPE(BINDS_XML) FROM GV$ALL_SQL_MONITOR MON WHERE MON.INST_ID = :B17 AND MON.KEY = MAGG.MAX_KEY AND MON.SID = MAGG.MAX_SESSION_ID AND MON.SQL_ID = :B9 AND MON.SQL_EXEC_START = :B8 AND MON.SQL_EXEC_ID = :B7 AND ROWNUM = 1) ELSE NULL END, CASE WHEN :B60 = 1 AND MAGG.QC_HAS_OTHER_XML = 'Y' THEN (SELECT XMLTYPE(OTHER_XML) FROM GV$ALL_SQL_MONITOR MON WHERE MON.INST_ID = MAGG.MAX_INST_ID AND MON.KEY = MAGG.MAX_KEY AND MON.SID = MAGG.MAX_SESSION_ID AND MON.SQL_ID = :B9 AND MON.SQL_EXEC_START = :B8 AND MON.SQL_EXEC_ID = :B7 AND ROWNUM = 1) ELSE NULL END) FROM MONITOR_AGG MAGG), CASE WHEN :B44 = 1 THEN (SELECT CASE WHEN AT.ACTIVITY_COUNT > 0 THEN XMLELEMENT( "activity_sampled", XMLATTRIBUTES( :B41 AS "ash_missing_seconds", TO_CHAR(AT.ACTIVITY_START, :B12 ) AS "first_sample_time", TO_CHAR(AT.ACTIVITY_END, :B12 ) AS "last_sample_time", ROUND((AT.ACTIVITY_END - AT.ACTIVITY_START) * 3600 * 24) + 1 AS "duration", AT.ACTIVITY_COUNT AS "count", AT.IMQ_COUNT AS "imq_count", AT.WAIT_COUNT AS "wait_count", AT.CPU_COUNT AS "cpu_count", DECODE(AT.OTHER_SQL_COUNT, 0, NULL, AT.OTHER_SQL_COUNT) AS "other_sql_count", :B40 AS "cpu_cores", :B39 AS "hyperthread"), AT.ACTIVITY_TOTAL, AH.GLOB_ACTIVITY_HISTO) WHEN :B41 IS NOT NULL THEN XMLELEMENT( "activity_sampled", XMLATTRIBUTES( DECODE( :B41 , -1, 'all', TO_CHAR( :B41 )) AS "ash_missing_seconds")) ELSE NULL END FROM (SELECT MIN(AD1.ACTIVITY_START) ACTIVITY_START, MAX(AD1.ACTIVITY_END) ACTIVITY_END, SUM(AD1.ACTIVITY_COUNT) ACTIVITY_COUNT, SUM(AD1.IMQ_COUNT) IMQ_COUNT, SUM(AD1.WAIT_COUNT) WAIT_COUNT, SUM(AD1.CPU_COUNT) CPU_COUNT, SUM(AD1.OTHER_SQL_COUNT) OTHER_SQL_COUNT, SUBSTR(MAX(LPAD(AD1.ACTIVITY_COUNT, 10)|| AD1.ACTIVITY_TYPE), 11) MOST_ACTIVE, XMLAGG( XMLELEMENT( "activity", XMLATTRIBUTES( AD1.ACTIVITY_TYPE AS "class", AD1.EVENT_NAME AS "event"), AD1.ACTIVITY_COUNT) ORDER BY AD1.ACTIVITY_TYPE, AD1.EVENT_NAME) ACTIVITY_TOTAL FROM (SELECT AD0.ACTIVITY_TYPE, AD0.EVENT_NAME, MIN(AD0.ACTIVITY_START) ACTIVITY_START, MAX(AD0.ACTIVITY_END) ACTIVITY_END, SUM(AD0.ACTIVITY_COUNT) ACTIVITY_COUNT, SUM(AD0.IMQ_COUNT) IMQ_COUNT, SUM(AD0.WAIT_COUNT) WAIT_COUNT, SUM(AD0.CPU_COUNT) CPU_COUNT, SUM(AD0.OTHER_SQL_COUNT) OTHER_SQL_COUNT FROM ASH_DATA AD0 GROUP BY AD0.ACTIVITY_TYPE, AD0.EVENT_NAME) AD1) AT, (SELECT CASE WHEN :B30 = 1 AND :B27 > 1 THEN XMLELEMENT( "activity_histogram", XMLATTRIBUTES( :B26 AS "bucket_interval", :B27 AS "bucket_count", TO_CHAR( :B20 , :B12 ) AS "start_time", TO_CHAR( :B22 , :B12 ) AS "end_time", ROUND(( :B22 - :B20 ) *3600*24) + 1 AS "duration"), XMLAGG( XMLELEMENT( "bucket", XMLATTRIBUTES( AD2.BUCKET_NUM AS "number"), ACTIVITY_BUCKET) ORDER BY AD2.BUCKET_NUM)) ELSE NULL END GLOB_ACTIVITY_HISTO FROM (SELECT AD1.BUCKET_NUM, SUM(ACTIVITY_COUNT) ACTIVITY_COUNT, SUM(IMQ_COUNT) IMQ_COUNT, SUM(WAIT_COUNT) WAIT_COUNT, SUM(CPU_COUNT) CPU_COUNT, SUM(OTHER_SQL_COUNT) OTHER_SQL_COUNT, MIN(AD1.ACTIVITY_START) ACTIVITY_START, MAX(AD1.ACTIVITY_END) ACTIVITY_END, MIN(AD1.BUCKET_ACTIVITY_START) BUCKET_ACTIVITY_START, MAX(AD1.BUCKET_ACTIVITY_END) BUCKET_ACTIVITY_END, SUBSTR(MAX(LPAD(AD1.ACTIVITY_COUNT, 10)|| AD1.ACTIVITY_TYPE), 11) MOST_ACTIVE, XMLAGG( XMLELEMENT( "activity", XMLATTRIBUTES( AD1.ACTIVITY_TYPE AS "class", AD1.EVENT_NAME AS "event"), AD1.ACTIVITY_COUNT) ORDER BY AD1.ACTIVITY_TYPE, AD1.EVENT_NAME) ACTIVITY_BUCKET FROM (SELECT AD0.ACTIVITY_BUCKET_NUM BUCKET_NUM, AD0.A CTIVITY_TYPE, AD0.EVENT_NAME, MIN(AD0.ACTIVITY_START) ACTIVITY_START, MAX(AD0.ACTIVITY_END) ACTIVITY_END, SUM(AD0.ACTIVITY_COUNT) ACTIVITY_COUNT, SUM(AD0.IMQ_COUNT) IMQ_COUNT, SUM(AD0.WAIT_COUNT) WAIT_COUNT, SUM(AD0.CPU_COUNT) CPU_COUNT, SUM(AD0.OTHER_SQL_COUNT) OTHER_SQL_COUNT, MIN(AD0.BUCKET_ACTIVITY_START) BUCKET_ACTIVITY_START, MAX(AD0.BUCKET_ACTIVITY_END) BUCKET_ACTIVITY_END FROM ASH_DATA AD0 GROUP BY AD0.ACTIVITY_BUCKET_NUM, AD0.ACTIVITY_TYPE, AD0.EVENT_NAME) AD1 GROUP BY AD1.BUCKET_NUM) AD2) AH) ELSE NULL END, CASE WHEN :B33 = 1 THEN (SELECT CASE WHEN AH.ACTIVITY_COUNT > 0 THEN XMLELEMENT( "activity_detail", XMLATTRIBUTES( TO_CHAR( :B20 , :B12 ) AS "start_time", TO_CHAR( :B22 , :B12 ) AS "end_time", :B41 AS "ash_missing_seconds", TO_CHAR(AH.ACTIVITY_START, :B12 ) AS "first_sample_time", TO_CHAR(AH.ACTIVITY_END, :B12 ) AS "last_sample_time", ROUND((AH.ACTIVITY_END - AH.ACTIVITY_START) * 3600 * 2 4) + 1 AS "duration", :B25 AS "sample_interval", :B26 AS "bucket_interval", :B27 AS "bucket_count", ROUND((:B22 - :B20 ) *3600*24) + 1 AS "bucket_duration", :B40 AS "cpu_cores", :B34 AS "total_cpu_cores", :B39 AS "hyperthread"), AH.GLOB_ACTIVITY_HISTO) WHEN :B41 IS NOT NULL THEN XMLELEMENT( "activity_detail", XMLATTRIBUTES( DECODE( :B41 , -1, 'all', TO_CHAR( :B41 )) AS "ash_missing_seconds")) ELSE NULL END FROM (SELECT MIN(AD2.ACTIVITY_START) ACTIVITY_START, MAX(AD2.ACTIVITY_END) ACTIVITY_END, SUM(AD2.ACTIVITY_COUNT) ACTIVITY_COUNT, XMLAGG( XMLELEMENT( "bucket", XMLATTRIBUTES( AD2.BUCKET_NUM AS "number"), ACTIVITY_BUCKET_XML) ORDER BY AD2.BUCKET_NUM) GLOB_ACTIVITY_HISTO FROM (SELECT AD1.BUCKET_NUM, MIN(AD1.ACTIVITY_START) ACTIVITY_START, MAX(AD1.ACTIVITY_END) ACTIVITY_END, SUM(AD1.ACTIVITY_COUNT) ACTIVITY_COUNT, MAX(AD1.BUCKET_IDLE_SECONDS) BUCKET _IDLE_SECONDS, XMLAGG( XMLCONCAT( CASE WHEN AD1.DFO_PAIR_IDLE_RESP_TIME != 0 AND DFO_PAIR_ROWNUM = 1 THEN XMLELEMENT( "activity", XMLATTRIBUTES( 'Parallel Skew' AS "class", AD1.PX_STEP_ARG AS "line", AD1.PX_ID AS "px", ROUND(AD1.DFO_PAIR_IDLE_RESP_TIME, 2) AS "rt"), 0) ELSE NULL END, XMLELEMENT( "activity", XMLATTRIBUTES( NVL(AD1.OTHER_SQL, AD1.RPI) AS "sql", AD1.NON_SQL AS "non_sql", AD1.CLASS AS "class", AD1.OTHER_SQL_CLASS AS "other_sql_class", AD1.EVENT AS "event", AD1.PLAN_LINE_ID AS "line", NVL2(AD1.PLSQL_OBJECT_ID, AD1.PLSQL_OBJECT_ID||'.'|| AD1.PLSQL_SUBPROGRAM_ID, NULL) AS "plsql_id", AD1.PLSQL_NAME AS "plsql_name", CASE WHEN AD1.SQL_ROWNUM = 1 THEN AD1.TOP_LEVEL_SQL_ID END AS "top_sql_id", CASE WHEN AD1.DBOP_NAME IS NOT NULL THEN AD1.DBOP_NAME END AS "dbop_name", CASE WHEN AD1.DFO_MOST_ACTIVE_IID IS NOT NULL AND :B68 = 'Y' THEN AD1.DFO_MOST_ACTIVE_IID END AS "skew_iid", DECODE(AD1.DFO_MOST_ACTIVE_COUNT, NULL, NULL, AD1.DFO_MOST_ACTIVE_SID) AS "skew_sid", AD1.DFO_MOST_ACTIVE_COUNT AS "skew_count", DECODE(AD1.PX_DOP, :B28 , NULL, AD1.PX_DOP) AS "dop", DECODE(AD1.PX_DOP, AD1.PX_MIN_DOP, NULL, AD1.PX_MIN_DOP) AS "min_dop", AD1.PX_ID AS "px", AD1.PX_STEP_ID AS "step", AD1.PX_STEP_ARG AS "arg", DECODE(AD1.ACTIVITY_COUNT, AD1.RESP_TIME, NULL, ROUND(AD1.RESP_TIME, 2)) AS "rt"), AD1.ACTIVITY_COUNT)) ORDER BY AD1.PX_STEP_ID, AD1.PX_STEP_ARG, AD1.DFO_PAIR_ROWNUM) ACTIVITY_BUCKET_XML FROM (SELECT AD01.*, CASE WHEN AD01.ACTIVITY_TYPE != 'Other SQL Execution' AND AD01.ACTIVITY_TYPE != 'Non SQL' THEN AD01.ACTIVITY_TYPE END CLASS, CASE WHEN (AD01.ACTIVITY_TYPE = 'Other SQL Execution' OR AD01.ACTIVITY_TYPE = 'Non SQL') THEN AD01.OTHER_SQL_ACTIVITY_TYPE END OTHER_SQL_CLASS, CASE WH EN AD01.ACTIVITY_TYPE != 'Other SQL Execution' AND AD01.ACTIVITY_TYPE != 'Non SQL' THEN AD01.EVENT_NAME END EVENT, CASE WHEN AD01.SQL IN ('this', 'anonymous') THEN NULL ELSE AD01.SQL END RPI, DECODE(AD01.ACTIVITY_TYPE, 'Other SQL Execution', SUBSTR(AD01.EVENT_NAME, 9), NULL) OTHER_SQL, DECODE(AD01.ACTIVITY_TYPE, 'Non SQL', AD01.EVENT_NAME, NULL) NON_SQL, ROW_NUMBER() OVER(PARTITION BY AD01.BUCKET_NUM, AD01.PX_DFO_PAIR_ID ORDER BY AD01.ACTIVITY_TYPE, AD01.EVENT_NAME, AD01.PLAN_LINE_ID) DFO_PAIR_ROWNUM FROM RESPONSE_TIME_DATA AD01) AD1 GROUP BY AD1.BUCKET_NUM) AD2) AH) ELSE NULL END, CASE WHEN :B23 = 'Y' THEN (SELECT XMLELEMENT( "parallel_info", XMLATTRIBUTES( :B17 AS "qc_instance_id", MAX_PX_QCSID AS "qc_session_id", MAX_PX_IS_CROSS_INSTANCE AS "is_cross_instance", MAX_PX_DOP AS "dop", MAX_PX_DOP_INSTANCES AS "max_dop_instances", DIST_INST_COUNT AS "inst_count", DIST_PX_GROUP_COUNT AS "serv er_group_count", DIST_PX_SET_COUNT AS "server_set_count"), CASE WHEN :B70 = 1 THEN PX_SESSIONS ELSE NULL END, CASE WHEN :B68 = 'Y' THEN DECODE(:B69 , 1, PX_INSTANCES, NULL) ELSE NULL END) FROM (SELECT MAX_PX_QCSID, MAX_PX_DOP, MAX_PX_DOP_INSTANCES, MAX_PX_IS_CROSS_INSTANCE, SUM_SERVERS_REQUESTED, SUM_SERVERS_ALLOCATED, DIST_INST_COUNT, DIST_PX_GROUP_COUNT, DIST_PX_SET_COUNT, (SELECT XMLELEMENT( "sessions", XMLATTRIBUTES(MAX(PX_SESSION.ACTIVITY_COUNT) AS "max_activity_count", MAX(PX_SESSION.IMQ_COUNT) AS "max_imq_count", MAX(PX_SESSION.CPU_COUNT) AS "max_cpu_count", MAX(PX_SESSION.WAIT_COUNT) AS "max_wait_count", MAX(PX_SESSION.OTHER_SQL_COUNT) AS "max_other_sql_count", MAX(PX_SESSION.MAX_IO_REQS) AS "max_io_reqs", MAX(PX_SESSION.MAX_IO_BYTES) AS "max_io_bytes", MAX(PX_SESSION.MAX_BUFFER_GETS) AS "max_buffer_gets", MAX(PX_SESSION.MAX_ELAPSED_TIME) AS "max _elapsed_time"), XMLAGG(PX_SESSION.PX_SESSION_XML ORDER BY PX_SERVER_GROUP NULLS FIRST, PX_SERVER_SET, PX_SERVER#)) FROM (SELECT PX_SERVER_GROUP, PX_SERVER_SET, PX_SERVER#, MAX(PI.MAX_ELAPSED_TIME) MAX_ELAPSED_TIME, MAX(PI.MAX_IO_REQS) MAX_IO_REQS, MAX(PI.MAX_IO_BYTES) MAX_IO_BYTES, MAX(PI.MAX_BUFFER_GETS) MAX_BUFFER_GETS, SUM(PI.ACTIVITY_COUNT) ACTIVITY_COUNT, SUM(PI.IMQ_COUNT) IMQ_COUNT, SUM(PI.WAIT_COUNT) WAIT_COUNT, SUM(PI.CPU_COUNT) CPU_COUNT, SUM(PI.OTHER_SQL_COUNT) OTHER_SQL_COUNT, XMLELEMENT( "session", XMLATTRIBUTES( INST_ID AS "inst_id", PROCESS_NAME AS "process_name", SID AS "session_id", SESSION_SERIAL# AS "session_serial", PX_SERVER_GROUP AS "server_group", PX_SERVER_SET AS "server_set", PX_SERVER# AS "server_num"), XMLELEMENT( "stats", XMLATTRIBUTES( 'monitor' AS "type"), NVL2(MAX(ELAPSED_TIME), XMLELEMENT( "stat", XMLATTRIBUTES('el apsed_time' AS "name"), MAX(ELAPSED_TIME)), NULL), NVL2(MAX(QUEUING_TIME), XMLELEMENT( "stat", XMLATTRIBUTES('queuing_time' AS "name"), MAX(QUEUING_TIME)), NULL), NVL2(MAX(CPU_TIME), XMLELEMENT( "stat", XMLATTRIBUTES('cpu_time' AS "name"), MAX(CPU_TIME)), NULL), NVL2(MAX(USER_IO_WAIT_TIME), XMLELEMENT( "stat", XMLATTRIBUTES('user_io_wait_time' AS "name"), MAX(USER_IO_WAIT_TIME)), NULL), NVL2(MAX(APPLICATION_WAIT_TIME), XMLELEMENT( "stat", XMLATTRIBUTES('application_wait_time' AS "name"), MAX(APPLICATION_WAIT_TIME)), NULL), NVL2(MAX(CONCURRENCY_WAIT_TIME), XMLELEMENT( "stat", XMLATTRIBUTES('concurrency_wait_time' AS "name"), MAX(CONCURRENCY_WAIT_TIME)), NULL), NVL2(MAX(CLUSTER_WAIT_TIME), XMLELEMENT( "stat", XMLATTRIBUTES('cluster_wait_time' AS "name"), MAX(CLUSTER_WAIT_TIME)), NULL), NVL2(MAX(PLSQL_EXEC_TIME), XMLELEMENT( "stat", XMLATTRIBUTES('plsql_exec_time' AS "name"), MAX(PLSQL_EXEC_TIME)), NULL), NVL2(MAX(JAVA_EXEC_TIME), XMLELEMENT( "stat", XMLATTRIBUTES('java_exec_time' AS "name"), MAX(JAVA_EXEC_TIME)), NULL), NVL2(MAX(OTHER_WAIT_TIME), XMLELEMENT( "stat", XMLATTRIBUTES( 'other_wait_time' AS "name"), MAX(OTHER_WAIT_TIME)), NULL), NVL2(MAX(FETCHES), XMLELEMENT( "stat", XMLATTRIBUTES('user_fetch_count' AS "name"), MAX(FETCHES)), NULL), NVL2(MAX(BUFFER_GETS), XMLELEMENT( "stat", XMLATTRIBUTES('buffer_gets' AS "name"), MAX(BUFFER_GETS)), NULL), NVL2(MAX(READ_REQS), XMLELEMENT( "stat", XMLATTRIBUTES('disk_reads' AS "name"), MAX(READ_REQS)), NULL), NVL2(MAX(WRITE_REQS), XMLELEMENT( "stat", XMLATTRIBUTES('direct_writes' AS "name"), MAX(WRITE_REQS)), NULL), NVL2(MAX(READ_REQS), XMLELEMENT( "stat", XMLATTRIBUTES('read_req s' AS "name"), MAX(READ_REQS)), NULL), NVL2(MAX(READ_BYTES), XMLELEMENT( "stat", XMLATTRIBUTES('read_bytes' AS "name"), MAX(READ_BYTES)), NULL), NVL2(MAX(WRITE_REQS), XMLELEMENT( "stat", XMLATTRIBUTES('write_reqs' AS "name"), MAX(WRITE_REQS)), NULL), NVL2(MAX(WRITE_BYTES), XMLELEMENT( "stat", XMLATTRIBUTES('write_bytes' AS "name"), MAX(WRITE_BYTES)), NULL), NVL2(MAX(IO_UNC_BYTES), XMLELEMENT( "stat", XMLATTRIBUTES('unc_bytes' AS "name"), MAX(IO_UNC_BYTES)), NULL), NVL2(MAX(IO_ELIG_BYTES), XMLELEMENT( "stat", XMLATTRIBUTES('elig_bytes' AS "name"), MAX(IO_ELIG_BYTES)), NULL), NVL2(MAX(IO_RET_BYTES), XMLELEMENT( "stat", XMLATTRIBUTES('ret_bytes' AS "name"), MAX(IO_RET_BYTES)), NULL), CASE WHEN MAX(IO_INTER_BYTES) IS NULL OR NVL(MAX(IO_BYTES), 0) = 0 OR MAX(IO_INTER_BYTES) = MAX(IO_BYTES) OR NVL(MAX(IO_ELIG_BYTES), 0) = 0 THEN NULL ELSE XMLELEMENT( "stat", XMLATTRIBUTES('cell_offload_efficiency' AS "name"), ROUND(MAX(IO_BYTES) / DECODE(MAX(IO_INTER_BYTES), 0, 1, MAX(IO_INTER_BYTES)), 2)) END, CASE WHEN NVL(MAX(IO_ELIG_BYTES), 0) = 0 OR NVL(MAX(IO_BYTES), 0) = 0 OR MAX(IO_UNC_BYTES) = MAX(IO_RET_BYTES) THEN NULL ELSE XMLELEMENT( "stat", XMLATTRIBUTES('cell_offload_efficiency2' AS "name"), GREATEST(0, ROUND(100* (GREATEST( NVL(MAX(IO_UNC_BYTES), 0), NVL(MAX(IO_ELIG_BYTES), 0)) - MAX(IO_RET_BYTES)) / MAX(IO_ELIG_BYTES), 2))) END), CASE WHEN SUM(PI.ACTIVITY_COUNT) > 0 AND :B33 = 1 THEN XMLELEMENT( "activity_sampled", XMLATTRIBUTES( TO_CHAR(MIN(PI.ACTIVITY_START), :B12 ) AS "first_sample_time", TO_CHAR(MAX(PI.ACTIVITY_END), :B12 ) AS "last_sample_time", ROUND((MAX(PI.ACTIVITY_END) - MIN(PI.ACTIVITY_START)) * 3600 * 24) + 1 AS "duration", SUM(PI.ACTIVITY_COUNT) AS "count", SUM(PI.IMQ_COUNT) AS "i mq_count", SUM(PI.CPU_COUNT) AS "cpu_count", SUM(PI.WAIT_COUNT) AS "wait_count", SUM(PI.OTHER_SQL_COUNT)AS "other_sql_count", :B40 AS "cpu_cores", :B39 AS "hyperthread"), XMLAGG( NVL2(ACTIVITY_TYPE, XMLELEMENT( "activity", XMLATTRIBUTES( PI.ACTIVITY_TYPE AS "class", PI.EVENT_NAME AS "event"), ACTIVITY_COUNT), NULL) ORDER BY PI.ACTIVITY_TYPE, PI.EVENT_NAME)) ELSE NULL END, CASE WHEN :B60 = 1 AND PI.HAS_OTHER_XML = 'Y' THEN (SELECT XMLTYPE(OTHER_XML) FROM GV$ALL_SQL_MONITOR MON WHERE MON.INST_ID = PI.INST_ID AND MON.KEY = PI.KEY AND MON.SID = PI.SID AND MON.SQL_ID = :B9 AND MON.SQL_EXEC_START = :B8 AND MON.SQL_EXEC_ID = :B7 AND ROWNUM = 1) ELSE NULL END) PX_SESSION_XML FROM (SELECT MO.HAS_OTHER_XML, MO.KEY, MO.INST_ID, DECODE(MO.PROCESS_NAME, 'ora', 'PX Coordinator', MO.PROCESS_NAME) PROCESS_NAME, MO.SID, MO.SESSION_SERIAL#, MO.PX_SERVER_GROUP, MO.PX_SERVER_SET, MO.PX_SERVER#, AS H0.ACTIVITY_TYPE, ASH0.EVENT_NAME, MAX(MO.IO_REQS) MAX_IO_REQS, MAX(MO.IO_BYTES) MAX_IO_BYTES, MAX(MO.BUFFER_GETS) MAX_BUFFER_GETS, MAX(MO.ELAPSED_TIME) MAX_ELAPSED_TIME, SUM(DECODE(ASH0.ACTIVITY_TYPE, NULL, NULL, ASH0.ACTIVITY_COUNT)) ACTIVITY_COUNT, SUM(DECODE(ASH0.ACTIVITY_TYPE, NULL, NULL, ASH0.IMQ_COUNT)) IMQ_COUNT, SUM(DECODE(ASH0.ACTIVITY_TYPE, NULL, NULL, ASH0.WAIT_COUNT)) WAIT_COUNT, SUM(DECODE(ASH0.ACTIVITY_TYPE, NULL, NULL, ASH0.CPU_COUNT)) CPU_COUNT, SUM(DECODE(ASH0.ACTIVITY_TYPE, NULL, NULL, ASH0.OTHER_SQL_COUNT)) OTHER_SQL_COUNT, MIN(ASH0.ACTIVITY_START) ACTIVITY_START, MAX(ASH0.ACTIVITY_END) ACTIVITY_END, MAX(DECODE(MO.ELAPSED_TIME, 0, NULL, MO.ELAPSED_TIME)) ELAPSED_TIME, MAX(DECODE(MO.QUEUING_TIME, 0, NULL, MO.QUEUING_TIME)) QUEUING_TIME, MAX(DECODE(MO.CPU_TIME, 0, NULL, CPU_TIME)) CPU_TIME, MAX(DECODE(MO.FETCHES, 0, NULL, FETCHES)) FETCHES, MAX(DECODE(MO.BUFFER_GETS, 0, NULL, MO.BUFFER_GETS)) BUFFER_GETS, MAX(DECODE(MO.I O_INTER_BYTES, 0, NULL, MO.IO_INTER_BYTES)) IO_INTER_BYTES, MAX(DECODE(MO.READ_REQS, 0, NULL, MO.READ_REQS)) READ_REQS, MAX(DECODE(MO.READ_BYTES, 0, NULL, MO.READ_BYTES)) READ_BYTES, MAX(DECODE(MO.WRITE_REQS, 0, NULL, MO.WRITE_REQS)) WRITE_REQS, MAX(DECODE(MO.WRITE_BYTES, 0, NULL, MO.WRITE_BYTES)) WRITE_BYTES, MAX(DECODE(MO.IO_BYTES, 0, NULL, MO.IO_BYTES)) IO_BYTES, MAX(DECODE(MO.IO_UNC_BYTES, 0, NULL, MO.IO_UNC_BYTES)) IO_UNC_BYTES, MAX(DECODE(MO.IO_ELIG_BYTES, 0, NULL, MO.IO_ELIG_BYTES)) IO_ELIG_BYTES, MAX(DECODE(MO.IO_RET_BYTES, 0, NULL, MO.IO_RET_BYTES)) IO_RET_BYTES, MAX(DECODE(MO.APPLICATION_WAIT_TIME, 0, NULL, MO.APPLICATION_WAIT_TIME)) APPLICATION_WAIT_TIME, MAX(DECODE(MO.CONCURRENCY_WAIT_TIME, 0, NULL, MO.CONCURRENCY_WAIT_TIME)) CONCURRENCY_WAIT_TIME, MAX(DECODE(MO.CLUSTER_WAIT_TIME, 0, NULL, MO.CLUSTER_WAIT_TIME)) CLUSTER_WAIT_TIME, MAX(DECODE(MO.USER_IO_WAIT_TIME, 0, NULL, MO.USER_IO_WAIT_TIME)) USER_IO_WAIT_TIME, MAX(DECOD E(PLSQL_EXEC_TIME, 0, NULL, PLSQL_EXEC_TIME)) PLSQL_EXEC_TIME, MAX(DECODE(MO.JAVA_EXEC_TIME, 0, NULL, MO.JAVA_EXEC_TIME)) JAVA_EXEC_TIME, MAX(DECODE(MO.OTHER_WAIT_TIME, 0, NULL, MO.OTHER_WAIT_TIME)) OTHER_WAIT_TIME FROM MONITOR_DATA MO, (SELECT ASH1.INST_ID, ASH1.SESSION_ID, ASH1.ACTIVITY_TYPE, ASH1.EVENT_NAME, SUM(ASH1.ACTIVITY_COUNT) ACTIVITY_COUNT, SUM(ASH1.IMQ_COUNT) IMQ_COUNT, SUM(ASH1.WAIT_COUNT) WAIT_COUNT, SUM(ASH1.CPU_COUNT) CPU_COUNT, SUM(ASH1.OTHER_SQL_COUNT)OTHER_SQL_COUNT, MIN(ASH1.ACTIVITY_START) ACTIVITY_START, MAX(ASH1.ACTIVITY_END) ACTIVITY_END FROM ASH_DATA ASH1 GROUP BY ASH1.INST_ID, ASH1.SESSION_ID, ASH1.ACTIVITY_TYPE, ASH1.EVENT_NAME) ASH0 WHERE MO.INST_ID = ASH0.INST_ID(+) AND MO.SID = ASH0.SESSION_ID(+) AND (:B70 = 1 OR :B69 = 1) GROUP BY MO.INST_ID, MO.KEY, MO.HAS_OTHER_XML, MO.PROCESS_NAME, MO.SID, MO.SESSION_SERIAL#, MO.PX_SERVER_GROUP, MO.PX_SERVER_SET, MO.PX_SERVER#, ASH0.ACTIVITY_TYPE, ASH0.EVENT_NAME) PI WHERE (:B70 = 1) GROUP BY PI.INST_ID, PI.KEY, PI.HAS_OTHER_XML, PI.SID, PI.PROCESS_NAME, PI.SESSION_SERIAL#, PI.PX_SERVER_GROUP, PI.PX_SERVER_SET, PI.PX_SERVER#) PX_SESSION) PX_SESSIONS, (SELECT XMLELEMENT( "instances", XMLATTRIBUTES( MAX(PX_INSTANCE.ACTIVITY_COUNT) AS "max_activity_count", MAX(PX_INSTANCE.IMQ_COUNT) AS "max_imq_count", MAX(PX_INSTANCE.CPU_COUNT) AS "max_cpu_count", MAX(PX_INSTANCE.WAIT_COUNT) AS "max_wait_count", MAX(PX_INSTANCE.OTHER_SQL_COUNT) AS "max_other_sql_count", MAX(PX_INSTANCE.ELAPSED_TIME) AS "max_elapsed_time", MAX(PX_INSTANCE.BUFFER_GETS) AS "max_buffer_gets", MAX(PX_INSTANCE.IO_REQS) AS "max_io_reqs", MAX(PX_INSTANCE.IO_BYTES) AS "max_io_bytes"), XMLAGG(PX_INSTANCE.PX_INSTANCES_XML ORDER BY INST_ID)) FROM (SELECT PI.INST_ID, MAX(PI.ELAPSED_TIME) ELAPSED_TIME, MAX(PI.IO_REQS) IO_REQS, MAX(PI.IO_BYTES) IO_BYTES, MAX(PI.BUFFER_GETS) BUFFER_GETS, SUM(PI .ACTIVITY_COUNT) ACTIVITY_COUNT, SUM(PI.IMQ_COUNT) IMQ_COUNT, SUM(PI.WAIT_COUNT) WAIT_COUNT, SUM(PI.CPU_COUNT) CPU_COUNT, SUM(PI.OTHER_SQL_COUNT) OTHER_SQL_COUNT, XMLELEMENT( "instance", XMLATTRIBUTES( INST_ID AS "inst_id"), XMLELEMENT( "stats", XMLATTRIBUTES( 'monitor' AS "type"), NVL2(MAX(ELAPSED_TIME), XMLELEMENT( "stat", XMLATTRIBUTES('elapsed_time' AS "name"), MAX(ELAPSED_TIME)), NULL), NVL2(MAX(QUEUING_TIME), XMLELEMENT( "stat", XMLATTRIBUTES('queuing_time' AS "name"), MAX(QUEUING_TIME)), NULL), NVL2(MAX(CPU_TIME), XMLELEMENT( "stat", XMLATTRIBUTES('cpu_time' AS "name"), MAX(CPU_TIME)), NULL), NVL2(MAX(USER_IO_WAIT_TIME), XMLELEMENT( "stat", XMLATTRIBUTES('user_io_wait_time' AS "name"), MAX(USER_IO_WAIT_TIME)), NULL), NVL2(MAX(APPLICATION_WAIT_TIME), XMLELEMENT( "stat", XMLATTRIBUTES('application_wait_time' AS "name "), MAX(APPLICATION_WAIT_TIME)), NULL), NVL2(MAX(CONCURRENCY_WAIT_TIME), XMLELEMENT( "stat", XMLATTRIBUTES('concurrency_wait_time' AS "name"), MAX(CONCURRENCY_WAIT_TIME)), NULL), NVL2(MAX(CLUSTER_WAIT_TIME), XMLELEMENT( "stat", XMLATTRIBUTES('cluster_wait_time' AS "name"), MAX(CLUSTER_WAIT_TIME)), NULL), NVL2(MAX(PLSQL_EXEC_TIME), XMLELEMENT( "stat", XMLATTRIBUTES('plsql_exec_time' AS "name"), MAX(PLSQL_EXEC_TIME)), NULL), NVL2(MAX(JAVA_EXEC_TIME), XMLELEMENT( "stat", XMLATTRIBUTES('java_exec_time' AS "name"), MAX(JAVA_EXEC_TIME)), NULL), NVL2(MAX(OTHER_WAIT_TIME), XMLELEMENT( "stat", XMLATTRIBUTES( 'other_wait_time' AS "name"), MAX(OTHER_WAIT_TIME)), NULL), NVL2(MAX(FETCHES), XMLELEMENT( "stat", XMLATTRIBUTES('user_fetch_count' AS "name"), MAX(FETCHES)), NULL), NVL2(MAX(BUFFER_GETS), XMLELEMENT( "stat", XMLATTRIBUTES( 'buffer_gets' AS "name"), MAX(BUFFER_GETS)), NULL), NVL2(MAX(READ_REQS), XMLELEMENT( "stat", XMLATTRIBUTES('disk_reads' AS "name"), MAX(READ_REQS)), NULL), NVL2(MAX(WRITE_REQS), XMLELEMENT( "stat", XMLATTRIBUTES('direct_writes' AS "name"), MAX(WRITE_REQS)), NULL), NVL2(MAX(READ_REQS), XMLELEMENT( "stat", XMLATTRIBUTES('read_reqs' AS "name"), MAX(READ_REQS)), NULL), NVL2(MAX(READ_BYTES), XMLELEMENT( "stat", XMLATTRIBUTES('read_bytes' AS "name"), MAX(READ_BYTES)), NULL), NVL2(MAX(WRITE_REQS), XMLELEMENT( "stat", XMLATTRIBUTES('write_reqs' AS "name"), MAX(WRITE_REQS)), NULL), NVL2(MAX(WRITE_BYTES), XMLELEMENT( "stat", XMLATTRIBUTES('write_bytes' AS "name"), MAX(WRITE_BYTES)), NULL), NVL2(MAX(IO_UNC_BYTES), XMLELEMENT( "stat", XMLATTRIBUTES('unc_bytes' AS "name"), MAX(IO_UNC_BYTES)), NULL), NVL2(MAX(IO_EL IG_BYTES), XMLELEMENT( "stat", XMLATTRIBUTES('elig_bytes' AS "name"), MAX(IO_ELIG_BYTES)), NULL), NVL2(MAX(IO_RET_BYTES), XMLELEMENT( "stat", XMLATTRIBUTES('ret_bytes' AS "name"), MAX(IO_RET_BYTES)), NULL), CASE WHEN MAX(IO_INTER_BYTES) IS NULL OR NVL(MAX(IO_BYTES), 0) = 0 OR MAX(IO_INTER_BYTES) = MAX(IO_BYTES) OR NVL(MAX(IO_ELIG_BYTES), 0) = 0 THEN NULL ELSE XMLELEMENT( "stat", XMLATTRIBUTES('cell_offload_efficiency' AS "name"), ROUND(MAX(IO_BYTES)/ DECODE(MAX(IO_INTER_BYTES), 0, 1, MAX(IO_INTER_BYTES)), 2)) END, CASE WHEN NVL(MAX(IO_ELIG_BYTES), 0) = 0 OR NVL(MAX(IO_BYTES), 0) = 0 OR MAX(IO_UNC_BYTES) = MAX(IO_RET_BYTES) THEN NULL ELSE XMLELEMENT( "stat", XMLATTRIBUTES('cell_offload_efficiency2' AS "name"), GREATEST(0, ROUND(100* (GREATEST( NVL(MAX(IO_UNC_BYTES), 0), NVL(MAX(IO_ELIG_BYTES), 0)) - MAX(IO_RET_BYTES)) / MAX(IO_ELIG_BYTES), 2))) END), CASE WHEN :B33 = 1 AND SUM(PI .ACTIVITY_COUNT) > 0 THEN XMLELEMENT( "activity_sampled", XMLATTRIBUTES( TO_CHAR(MIN(PI.ACTIVITY_START), :B12 ) AS "start_time", TO_CHAR(MAX(PI.ACTIVITY_END), :B12 ) AS "end_time", ROUND((MAX(PI.ACTIVITY_END) - MIN(PI.ACTIVITY_START)) * 3600 * 24) + 1 AS "duration", SUM(PI.ACTIVITY_COUNT) AS "count", SUM(PI.IMQ_COUNT) AS "imq_count", SUM(PI.WAIT_COUNT) AS "wait_count", SUM(PI.CPU_COUNT) AS "cpu_count", SUM(PI.OTHER_SQL_COUNT) AS "other_sql_count", :B40 AS "cpu_cores", :B39 AS "hyperthread"), XMLAGG( NVL2(ACTIVITY_TYPE, XMLELEMENT( "activity", XMLATTRIBUTES( PI.ACTIVITY_TYPE AS "class", PI.EVENT_NAME AS "event"), ACTIVITY_COUNT), NULL) ORDER BY PI.ACTIVITY_TYPE, PI.EVENT_NAME)) ELSE NULL END) PX_INSTANCES_XML FROM (SELECT MO.INST_ID, ASH.ACTIVITY_TYPE, ASH.EVENT_NAME, ASH.ACTIVITY_COUNT, ASH.IMQ_COUNT, ASH.WAIT_COUNT, ASH .CPU_COUNT, ASH.OTHER_SQL_COUNT, ASH.ACTIVITY_START, ASH.ACTIVITY_END, MO.ELAPSED_TIME, MO.QUEUING_TIME, MO.CPU_TIME, MO.APPLICATION_WAIT_TIME, MO.CONCURRENCY_WAIT_TIME, MO.CLUSTER_WAIT_TIME, MO.USER_IO_WAIT_TIME, MO.PLSQL_EXEC_TIME, MO.JAVA_EXEC_TIME, MO.OTHER_WAIT_TIME, MO.FETCHES, MO.BUFFER_GETS, MO.IO_INTER_BYTES, MO.IO_BYTES, MO.READ_REQS, MO.READ_BYTES, MO.WRITE_REQS, MO.WRITE_BYTES, MO.IO_REQS, MO.IO_UNC_BYTES, MO.IO_ELIG_BYTES, MO.IO_RET_BYTES FROM (SELECT MO0.INST_ID, SUM(MO0.ELAPSED_TIME) ELAPSED_TIME, SUM(MO0.QUEUING_TIME) QUEUING_TIME, SUM(MO0.CPU_TIME) CPU_TIME, SUM(MO0.FETCHES) FETCHES, SUM(MO0.BUFFER_GETS) BUFFER_GETS, SUM(MO0.IO_INTER_BYTES) IO_INTER_BYTES, SUM(MO0.IO_BYTES) IO_BYTES, SUM(MO0.READ_REQS) READ_REQS, SUM(MO0.READ_BYTES) READ_BYTES, SUM(MO0.WRITE_REQS) WRITE_REQS, SUM(MO0.WRITE_BYTES) WRITE_BYTES, SUM(MO0.IO_REQS) IO_REQS, SUM(MO0.IO_UNC_BYTES) IO_UNC_BYTES, SUM(MO0.IO_ELIG_BYTES) IO_ELIG_BYTES, SUM(MO0.IO_RET_BYTES) IO_RET_BYTES, SUM(MO0.APPLICATION_WAIT_TIME) APPLICATION_WAIT_TIME, SUM(MO0.CONCURRENCY_WAIT_TIME) CONCURRENCY_WAIT_TIME, SUM(MO0.CLUSTER_WAIT_TIME) CLUSTER_WAIT_TIME, SUM(MO0.USER_IO_WAIT_TIME) USER_IO_WAIT_TIME, SUM(MO0.PLSQL_EXEC_TIME) PLSQL_EXEC_TIME, SUM(MO0.JAVA_EXEC_TIME) JAVA_EXEC_TIME, SUM(MO0.OTHER_WAIT_TIME) OTHER_WAIT_TIME FROM MONITOR_DATA MO0 GROUP BY MO0.INST_ID) MO, (SELECT ASH0.INST_ID, ASH0.ACTIVITY_TYPE, ASH0.EVENT_NAME, SUM(ASH0.ACTIVITY_COUNT) ACTIVITY_COUNT, SUM(ASH0.IMQ_COUNT) IMQ_COUNT, SUM(ASH0.WAIT_COUNT) WAIT_COUNT, SUM(ASH0.CPU_COUNT) CPU_COUNT, SUM(ASH0.OTHER_SQL_COUNT) OTHER_SQL_COUNT, MIN(ASH0.ACTIVITY_START) ACTIVITY_START, MAX(ASH0.ACTIVITY_END) ACTIVITY_END FROM ASH_DATA ASH0 GROUP BY ASH0.INST_ID, ASH0.ACTIVITY_TYPE, ASH0.EVENT_NAME) ASH, MONITOR_AGG WHERE MO.INST_ID = ASH.INST_ID(+) AND MONITOR_AGG.DIST_INST_COUNT > 0 ) PI GROUP BY PI.INST_ID)PX_INSTANCE) PX_INSTANCES FROM MONITOR_AGG)) ELSE NULL END, XPLAN_XML, CASE WHEN :B4 3 = 1 THEN (SELECT XMLELEMENT( "plan_monitor", XMLATTRIBUTES(MAX(PLI.MAX_LINE_ACTIVITY_COUNT) AS "max_activity_count", MAX(PLI.OVERALL_MAX_IO_REQS) AS "max_io_reqs", MAX(PLI.OVERALL_MAX_IO_BYTES) AS "max_io_bytes", MAX(PLI.MAX_LINE_IMQ_COUNT) AS "max_imq_count", MAX(PLI.MAX_LINE_CPU_COUNT) AS "max_cpu_count", MAX(PLI.MAX_LINE_WAIT_COUNT) AS "max_wait_count", MAX(PLI.MAX_LINE_OTHER_SQL_COUNT) AS "max_other_sql_count"), XMLAGG( XMLELEMENT( "operation", XMLATTRIBUTES( PLI.PLAN_LINE_ID AS "id", PLI.PARENT_ID AS "parent_id", PLI.OPERATION AS "name", PLI.OPTIONS AS "options", PLI.DEPTH AS "depth", PLI.POSITION AS "position", PLI.INACTIVE AS "skp", PLI.PX_TYPE AS "px_type"), NVL2(PLI.OBJECT_NAME, XMLELEMENT( "object", XMLATTRIBUTES(PLI.OBJECT_TYPE AS "type"), XMLFOREST(PLI.OBJECT_OWNER AS "owner"), XMLFOREST(PLI.OBJECT_NAME AS "name")), NULL), XMLFOREST(PLI.PARTITION_START AS "partition_start", PLI.PARTITION_STOP AS "partition_stop"), CASE WHEN PLI.CARDINALITY IS NULL AND PLI.BYTES IS NULL AND PLI.COST IS NULL AND PLI.TEMP_SPACE IS NULL AND PLI.TIME IS NULL THEN NULL ELSE XMLELEMENT( "optimizer", NULL, NVL2(PLI.CARDINALITY, XMLFOREST(PLI.CARDINALITY AS "cardinality"), NULL), NVL2(PLI.BYTES, XMLFOREST(PLI.BYTES AS "bytes"), NULL), NVL2(PLI.COST, XMLFOREST(PLI.COST AS "cost"), NULL), NVL2(PLI.CPU_COST, XMLFOREST(PLI.CPU_COST AS "cpu_cost"), NULL), NVL2(PLI.IO_COST, XMLFOREST(PLI.IO_COST AS "io_cost"), NULL), NVL2(PLI.TEMP_SPACE, XMLFOREST(PLI.TEMP_SPACE AS "temp"), NULL), NVL2(PLI.TIME, XMLFOREST(PLI.TIME AS "time"), NULL)) END, XMLELEMENT( "stats", XMLATTRIBUTES('plan_monitor' AS "type"), NVL2(PLI.FIR ST_MOVE_TIME, XMLELEMENT( "stat", XMLATTRIBUTES('first_active' AS "name"), TO_CHAR(FIRST_MOVE_TIME, :B12 )), NULL), CASE WHEN PLI.FIRST_MOVE_TIME != PLI.FIRST_CHANGE_TIME THEN XMLELEMENT( "stat", XMLATTRIBUTES('first_row' AS "name"), TO_CHAR(FIRST_CHANGE_TIME, :B12 )) ELSE NULL END, NVL2(PLI.LAST_MOVE_TIME, XMLELEMENT( "stat", XMLATTRIBUTES('last_active' AS "name"), TO_CHAR(LAST_MOVE_TIME, :B12 )), NULL), CASE WHEN (PLI.FIRST_MOVE_TIME IS NULL OR PLI.LAST_MOVE_TIME IS NULL) THEN NULL ELSE XMLELEMENT( "stat", XMLATTRIBUTES('duration' AS "name"), ROUND((LAST_MOVE_TIME - FIRST_MOVE_TIME) * 3600 * 24)+1) END, CASE WHEN (PLI.OVERALL_LAST_MOVE_TIME IS NULL OR PLI.LAST_MOVE_TIME IS NULL) THEN NULL ELSE XMLELEMENT( "stat", XMLATTRIBUTES('from_most_recent' AS "name"), ROUND((PLI.OVERALL_LAST_MOVE_TIME - PLI.LAST_MOVE_TIME) * 3600 * 24)) END, NVL2(PLI.LAST_MOVE_TIME, XMLELEM ENT( "stat", XMLATTRIBUTES( 'from_sql_exec_start' AS "name"), ROUND( (FIRST_MOVE_TIME - :B8 ) * 3600*24)), NULL), NVL2(PLI.PERCENT_COMPLETE, XMLELEMENT( "stat", XMLATTRIBUTES('percent_complete' AS "name"), PLI.PERCENT_COMPLETE), NULL), NVL2(PLI.TIME_REMAINING, XMLELEMENT( "stat", XMLATTRIBUTES('time_left' AS "name"), PLI.TIME_REMAINING), NULL), CASE WHEN PLI.HAS_EXECUTED = 1 THEN XMLELEMENT( "stat", XMLATTRIBUTES('starts' AS "name"), PLI.STARTS) ELSE NULL END, CASE WHEN PLI.DOP > 0 AND PLI.HAS_EXECUTED = 1 THEN XMLELEMENT( "stat", XMLATTRIBUTES( 'max_starts' AS "name", DECODE(:B68 , 'Y', MOD(TRUNC(MAX_STARTS/1000000), 10000), NULL) AS "iid", MOD(MAX_STARTS, 1000000) AS "sid"), TRUNC(PLI.MAX_STARTS/10000000000)) ELSE NULL END, CASE WHEN PLI.DOP > 0 AND PLI.HAS_EXECUTED = 1 THEN XMLELEMENT( "stat", XMLATTRIBUTES('dop' AS "name"), PLI.DOP) ELSE NULL END, CASE WHEN NEED_ROWS IS NOT NULL AND PLI.FIRST_MOVE_TIME IS NOT NULL THEN XMLELEMENT( "stat", XMLATTRIBUTES('cardinality' AS "name"), PLI.OUTPUT_ROWS) ELSE NULL END, CASE WHEN PLI.NEED_ROWS IS NOT NULL AND PLI.DOP > 0 AND PLI.MAX_OUTPUT_ROWS IS NOT NULL AND (PLI.FIRST_MOVE_TIME IS NOT NULL) THEN XMLELEMENT( "stat", XMLATTRIBUTES( 'max_card' AS "name", DECODE(:B68 , 'Y', MOD(TRUNC(MAX_OUTPUT_ROWS/1000000), 10000), NULL) AS "iid", MOD(MAX_OUTPUT_ROWS, 1000000) AS "sid"), TRUNC(PLI.MAX_OUTPUT_ROWS/10000000000)) ELSE NULL END, CASE WHEN PLI.MEM > 0 THEN XMLELEMENT( "stat", XMLATTRIBUTES('memory' AS "name"), PLI.MEM) ELSE NULL END, CASE WHEN PLI.MAX_MEM > 0 THEN XMLELEMENT( "stat", XMLATTRIBUTES('max_memory' AS "name"), PLI.MAX_MEM) ELSE NULL END, CASE WHEN PLI.DOP > 0 AND PLI.MIN_MAX_MEM IS NOT NULL AND PLI.MAX_MEM > 0 THEN XMLELEMENT( "stat", XMLATTRIBUTES( 'min_max_mem' AS "name", DECODE(:B68 , 'Y', MOD(TRUNC(MIN_MAX_MEM/1000000), 10000), NULL) AS "iid", MOD(MIN_MAX_MEM, 1000000) AS "sid"), TRUNC(PLI.MIN_MAX_MEM/10000000000)) ELSE NULL END, CASE WHEN PLI.TEMP > 0 THEN XMLELEMENT( "stat", XMLATTRIBUTES('temp' AS "name"), PLI.TEMP) ELSE NULL END, CASE WHEN PLI.MAX_TEMP > 0 THEN XMLELEMENT( "stat", XMLATTRIBUTES('max_temp' AS "name"), PLI.MAX_TEMP) ELSE NULL END, CASE WHEN PLI.MAX_TEMP > 0 THEN XMLELEMENT( "stat", XMLATTRIBUTES('spill_count' AS "name"), PLI.SPILL_COUNT) ELSE NULL END, CASE WHEN PLI.DOP > 0 AND PLI.MAX_MAX_TEMP IS NOT NULL AND PLI.MAX_TEMP > 0 THEN XMLELEMENT( "stat", XMLATTRIBUTES( 'max_max_temp' AS "name", DECODE(:B68 , 'Y', MOD(TRUNC(MAX_MAX_TEMP/1000000), 10000), NULL) AS "iid", MOD(MAX_MAX_TEMP, 1000000) AS "sid"), TRUNC(PLI.MAX_MAX_TEMP/10000000000)) ELSE NULL END, CASE WHEN PLI.READ_REQS > 0 THEN XMLELEMENT( "stat", XMLATTRIBUTES('read_reqs' AS "name"), PLI.READ_REQS) ELSE NULL END, CASE WHEN PLI.DOP > 0 AND PLI.MAX_READ_REQS IS NOT NULL AND PLI.READ_REQS > 0 THEN XMLELEMENT( "stat", XMLATTRIBUTES( 'max_read_reqs' AS "name", DECODE(:B68 , 'Y', MOD(TRUNC(PLI.MAX_READ_REQS/1000000), 10000), NULL) AS "iid", MOD(PLI.MAX_READ_REQS, 1000000) AS "sid"), TRUNC(PLI.MAX_READ_REQS/10000000000)) ELSE NULL END, CASE WHEN PLI.READ_BYTES > 0 THEN XMLELEMENT( "stat", XMLATTRIBUTES('read_bytes' AS "name"), PLI.READ_BYTES) ELSE NULL END, CASE WHEN PLI.DOP > 0 AND PLI.MAX_READ_BYTES IS NOT NULL AND PLI.READ_BYTES > 0 THEN XMLELEMENT( "stat", XMLATTRIBUTES( 'max_read_bytes' AS "name", DECODE(:B68 , 'Y', MOD(TRUNC(PLI.MAX_READ_BYTES/1000000), 10000), NULL ) AS "iid", MOD(PLI.MAX_READ_BYTES, 1000000) AS "sid"), TRUNC(PLI.MAX_READ_BYTES/10000000000)) ELSE NULL END, CASE WHEN PLI.WRITE_REQS > 0 THEN XMLELEMENT( "stat", XMLATTRIBUTES('write_reqs' AS "name"), PLI.WRITE_REQS) ELSE NULL END, CASE WHEN PLI.DOP > 0 AND PLI.MAX_WRITE_REQS IS NOT NULL AND PLI.WRITE_REQS > 0 THEN XMLELEMENT( "stat", XMLATTRIBUTES( 'max_write_reqs' AS "name", DECODE(:B68 , 'Y', MOD(TRUNC(PLI.MAX_WRITE_REQS/1000000), 10000), NULL) AS "iid", MOD(PLI.MAX_WRITE_REQS, 1000000) AS "sid"), TRUNC(PLI.MAX_WRITE_REQS/10000000000)) ELSE NULL END, CASE WHEN PLI.WRITE_BYTES > 0 THEN XMLELEMENT( "stat", XMLATTRIBUTES('write_bytes' AS "name"), PLI.WRITE_BYTES) ELSE NULL END, CASE WHEN PLI.DOP > 0 AND PLI.MAX_WRITE_BYTES IS NOT NULL AND PLI.WRITE_BYTES > 0 THEN XMLELEMENT( "stat", XMLATTRIBUTES( 'max_write_bytes' AS "name", DECODE(:B68 , 'Y', MOD(TRUNC(PLI.MAX_WRITE_BYTES/1000000), 10000), NULL) AS "iid", MOD(PLI.MAX_WRITE_BYTES, 1000000) AS "sid"), TRUNC(PLI.MAX_WRITE_BYTES/10000000000)) ELSE NULL END, CASE WHEN PLI.IO_INTER_BYTES IS NOT NULL AND PLI.IO_BYTES > 0 AND PLI.IO_BYTES != PLI.IO_INTER_BYTES THEN XMLELEMENT( "stat", XMLATTRIBUTES('io_inter_bytes' AS "name"), PLI.IO_INTER_BYTES) ELSE NULL END, CASE WHEN PLI.DOP > 0 AND PLI.MAX_IO_INTER_BYTES IS NOT NULL AND PLI.IO_BYTES > 0 AND PLI.IO_BYTES != PLI.IO_INTER_BYTES THEN XMLELEMENT( "stat", XMLATTRIBUTES( 'max_io_inter_bytes' AS "name", DECODE(:B68 , 'Y', MOD(TRUNC(MAX_IO_INTER_BYTES/1000000), 10000), NULL) AS "iid", MOD(MAX_IO_INTER_BYTES, 1000000) AS "sid"), TRUNC(PLI.MAX_IO_INTER_BYTES/10000000000)) ELSE NULL END, CASE WHEN PLI.IO_INTER_BYTES IS NOT NULL AND PLI.IO_BYTES > 0 AND PLI.IO_BYTES != PLI.IO_INTER_BYTES THEN XMLELEMENT( " stat", XMLATTRIBUTES('cell_offload_efficiency' AS "name"), ROUND(PLI.IO_BYTES / DECODE(PLI.IO_INTER_BYTES, 0, 1, PLI.IO_INTER_BYTES), 2)) ELSE NULL END), NVL2(STAT_GID, XMLELEMENT( "rwsstats", XMLATTRIBUTES( PLI.STAT_GID AS "group_id"), DECODE(GID_ROWNUM, 1, (SELECT XMLELEMENT( "metadata", NULL, XMLAGG( XMLELEMENT( "stat", XMLATTRIBUTES( ROWNUM AS "id", NAME AS "name", DESCRIPTION AS "desc", TYPE AS "type", DECODE(FLAGS, 0, NULL, FLAGS) AS "flags"), NULL) ORDER BY ID)) FROM V$SQL_MONITOR_STATNAME WHERE GROUP_ID = PLI.STAT_GID), NULL), NVL2(STAT1_VALUE, XMLELEMENT( "stat", XMLATTRIBUTES(1 AS "id"), STAT1_VALUE), NULL), NVL2(STAT2_VALUE, XMLELEMENT( "stat", XMLATTRIBUTES(2 AS "id"), STAT2_VALUE), NULL), NVL2(STAT3_VALUE, XMLELEMENT( "stat", XMLATTRIBUTES(3 AS "id"), STAT3_VALUE), NULL), NVL2(STAT4_VALUE, XMLELEMENT( "stat", XMLATTRIBUTES(4 AS "id"), STAT4_VALUE), NULL), NVL2(STAT5_VALUE, XMLELEMENT( "stat", XMLATTRIBUTES(5 AS "id"), STAT5_VALUE), NULL), NVL2(STAT6_VALUE, XMLELEMENT( "stat", XMLATTRIBUTES(6 AS "id"), STAT6_VALUE), NULL), NVL2(STAT7_VALUE, XMLELEMENT( "stat", XMLATTRIBUTES(7 AS "id"), STAT7_VALUE), NULL), NVL2(STAT8_VALUE, XMLELEMENT( "stat", XMLATTRIBUTES(8 AS "id"), STAT8_VALUE), NULL), NVL2(STAT9_VALUE, XMLELEMENT( "stat", XMLATTRIBUTES(9 AS "id"), STAT9_VALUE), NULL), NVL2(STAT10_VALUE, XMLELEMENT( "stat", XMLATTRIBUTES(10 AS "id"), STAT10_VALUE), NULL)), NULL), CASE WHEN PLI.LINE_ACTIVITY_COUNT > 0 AND :B33 = 1 THEN XMLELEMENT( "activity_sampled", XMLATTRIBUTES( TO_CHAR(PLI.LINE_ACTIVITY_START, :B12 ) AS "start_time", TO_CHAR(PLI.LINE_ACTIVITY_END, :B12 ) AS "end_time", ROUND((PLI.LINE_ACTIVITY_END - PLI.LINE_ACTIVITY_START) * 3600*24) + 1 AS "duration", PLI.LINE_ACTIVITY_COUNT AS "count", PLI.LINE_IMQ_COUNT AS "imq_count", PLI.LINE_WAIT_COUNT AS "wait_count", PLI.LINE_CPU_COUNT AS "cpu_count", PLI.LINE_OTHER_SQL_COUNT AS "other_sql_count", :B40 AS "cpu_cores", :B39 AS "hyperthread"), PLI.ACTIVITY_TOTAL, PLI.PLAN_ACTIVITY_HISTO) ELSE NULL END) ORDER BY PLI.PLAN_LINE_ID) ) FROM (SELECT AT.MAX_LINE_ACTIVITY_COUNT, PM.OVERALL_MAX_IO_REQS, PM.OVERALL_MAX_IO_BYTES, AT.MAX_LINE_IMQ_COUNT, AT.MAX_LINE_CPU_COUNT, AT.MAX_LINE_WAIT_COUNT, AT.LINE_OTHER_SQL_COUNT, AT.MAX_LINE_OTHER_SQL_COUNT, PM.PLAN_LINE_ID, PM.PARENT_ID, PM.OPERATION, PM.OPTIONS, PM.DEPTH, PM.POSITION, PM.INACTIVE, CASE WHEN PM.OPERATION = 'PX COORDINATOR' AND :B23 = 'Y' AND (PM.PX_SERVER_SET IS NOT NULL OR AH.PX_SERVER_SET IS NOT NULL) THEN 'QC' WHEN PM.PX_ SERVER_SET IS NOT NULL THEN TO_CHAR(PM.PX_SERVER_SET) WHEN AH.PX_SERVER_SET IS NOT NULL THEN TO_CHAR(AH.PX_SERVER_SET) WHEN (:B23 = 'N' OR (PM.LAST_CHANGE_TIME IS NULL AND AT.LINE_ACTIVITY_END IS NULL)) THEN NULL ELSE 'QC' END PX_TYPE, PM.FIRST_CHANGE_TIME, AT.LINE_ACTIVITY_START, PM.LAST_CHANGE_TIME, PM.OVERALL_LAST_CHANGE_TIME, AT.LINE_ACTIVITY_END, AT.OVERALL_LINE_ACTIVITY_END, LEAST(NVL(AT.LINE_ACTIVITY_START, PM.FIRST_CHANGE_TIME), NVL(PM.FIRST_CHANGE_TIME, AT.LINE_ACTIVITY_START)) FIRST_MOVE_TIME, GREATEST(NVL(AT.LINE_ACTIVITY_END, PM.LAST_CHANGE_TIME), NVL(PM.LAST_CHANGE_TIME, AT.LINE_ACTIVITY_END)) LAST_MOVE_TIME, GREATEST(NVL(AT.OVERALL_LINE_ACTIVITY_END, PM.OVERALL_LAST_CHANGE_TIME), NVL(PM.OVERALL_LAST_CHANGE_TIME, AT.OVERALL_LINE_ACTIVITY_END)) OVERALL_LAST_MOVE_TIME, CASE WHEN PM.STARTS IS NOT NULL AND PM.STARTS > 0 THEN 1 ELSE 0 END HAS_EXECUTED, PM.OBJECT_NAME, PM.OBJECT_TYPE, PM.OBJECT_OWNER, PM.PARTITION_START, PM.PARTITION_STOP, PM.CARDINAL ITY, PM.BYTES, PM.COST, PM.TEMP_SPACE, PM.TIME, PM.CPU_COST, PM.IO_COST, LO.PERCENT_COMPLETE, LO.TIME_REMAINING, PM.STARTS, PM.DOP, PM.MAX_STARTS, PM.OUTPUT_ROWS, PM.NEED_ROWS, PM.MAX_OUTPUT_ROWS, PM.MEM, PM.MAX_MEM, PM.MIN_MAX_MEM, PM.TEMP, PM.MAX_TEMP, PM.SPILL_COUNT, PM.MAX_MAX_TEMP, PM.READ_REQS, PM.MAX_READ_REQS, PM.READ_BYTES, PM.MAX_READ_BYTES, PM.WRITE_REQS, PM.MAX_WRITE_REQS, PM.WRITE_BYTES, PM.MAX_WRITE_BYTES, PM.IO_INTER_BYTES, PM.IO_BYTES, PM.MAX_IO_INTER_BYTES, AT.LINE_ACTIVITY_COUNT, AT.LINE_IMQ_COUNT, AT.LINE_WAIT_COUNT, AT.LINE_CPU_COUNT, AT.ACTIVITY_TOTAL, AH.PLAN_ACTIVITY_HISTO, PM.STAT_GID, PM.GID_ROWNUM, PM.STAT1_VALUE, PM.STAT2_VALUE, PM.STAT3_VALUE, PM.STAT4_VALUE, PM.STAT5_VALUE, PM.STAT6_VALUE, PM.STAT7_VALUE, PM.STAT8_VALUE, PM.STAT9_VALUE, PM.STAT10_VALUE FROM (SELECT AT0.*, MAX(LINE_ACTIVITY_END) OVER() OVERALL_LINE_ACTIVITY_END, MAX(LINE_ACTIVITY_COUNT) OVER() MAX_LINE_ACTIVITY_COUNT, MAX(LINE_IMQ_COUNT) O VER() MAX_LINE_IMQ_COUNT, MAX(LINE_CPU_COUNT) OVER() MAX_LINE_CPU_COUNT, MAX(LINE_WAIT_COUNT) OVER() MAX_LINE_WAIT_COUNT, MAX(LINE_OTHER_SQL_COUNT) OVER() MAX_LINE_OTHER_SQL_COUNT FROM (SELECT AD1.PLAN_LINE_ID, MIN(AD1.LINE_ACTIVITY_START) LINE_ACTIVITY_START, MAX(AD1.LINE_ACTIVITY_END) LINE_ACTIVITY_END, SUM(AD1.ACTIVITY_COUNT) LINE_ACTIVITY_COUNT, SUM(AD1.IMQ_COUNT) LINE_IMQ_COUNT, SUM(AD1.WAIT_COUNT) LINE_WAIT_COUNT, SUM(AD1.OTHER_SQL_COUNT) LINE_OTHER_SQL_COUNT, SUM(AD1.CPU_COUNT) LINE_CPU_COUNT, SUBSTR(MAX(LPAD(AD1.ACTIVITY_COUNT, 10)|| AD1.ACTIVITY_TYPE), 11) MOST_ACTIVE, XMLAGG(XMLELEMENT( "activity", XMLATTRIBUTES( AD1.ACTIVITY_TYPE AS "class", AD1.EVENT_NAME AS "event"), AD1.ACTIVITY_COUNT) ORDER BY AD1.ACTIVITY_TYPE, AD1.EVENT_NAME) ACTIVITY_TOTAL FROM (SELECT AD0.PLAN_LINE_ID, AD0.ACTIVITY_TYPE, AD0.EVENT_NAME, MIN(AD0.ACTIVITY_START) LINE_ACTIVITY_START, MAX(AD0.ACTIVITY_END) LINE_ACTIVITY_END, SUM(AD0.ACTIVITY_COUNT) ACTI VITY_COUNT, SUM(AD0.IMQ_COUNT) IMQ_COUNT, SUM(AD0.WAIT_COUNT) WAIT_COUNT, SUM(AD0.CPU_COUNT) CPU_COUNT, SUM(AD0.OTHER_SQL_COUNT) OTHER_SQL_COUNT, MAX(AD0.DFO_MOST_ACTIVE_IID) DFO_MOST_ACTIVE_IID, MAX(AD0.DFO_MOST_ACTIVE_SID) DFO_MOST_ACTIVE_SID, SUM(AD0.DFO_MOST_ACTIVE_COUNT) DFO_MOST_ACTIVE_COUNT FROM ASH_DATA AD0 WHERE AD0.PLAN_LINE_ID IS NOT NULL GROUP BY AD0.PLAN_LINE_ID, AD0.ACTIVITY_TYPE, AD0.EVENT_NAME) AD1 GROUP BY AD1.PLAN_LINE_ID) AT0) AT, (SELECT AD2.PLAN_LINE_ID, MIN(AD2.PX_SERVER_SET) PX_SERVER_SET, MIN(AD2.LINE_ACTIVITY_START) LINE_ACTIVITY_START, MAX(AD2.LINE_ACTIVITY_END) LINE_ACTIVITY_END, SUM(AD2.ACTIVITY_COUNT) ACTIVITY_COUNT, SUM(AD2.IMQ_COUNT) IMQ_COUNT, SUM(AD2.WAIT_COUNT) WAIT_COUNT, SUM(AD2.CPU_COUNT) CPU_COUNT, SUM(AD2.OTHER_SQL_COUNT) OTHER_SQL_COUNT, CASE WHEN :B29 = 1 AND SUM(AD2.ACTIVITY_COUNT) > 0 THEN XMLELEMENT( "activity_histogram", XMLATTRIBUTES( :B26 AS "bucket_interval", :B27 AS "bucket_count", T O_CHAR( :B20 , :B12 ) AS "start_time", TO_CHAR(:B22 , :B12 ) AS "end_time", ROUND((:B22 -:B20 ) *3600*24) + 1 AS "duration"), XMLAGG(XMLELEMENT( "bucket", XMLATTRIBUTES( AD2.BUCKET_NUM AS "number"), AD2.ACTIVITY_BUCKET) ORDER BY AD2.BUCKET_NUM)) ELSE NULL END PLAN_ACTIVITY_HISTO FROM (SELECT AD1.PLAN_LINE_ID, AD1.BUCKET_NUM, MIN(AD1.PX_SERVER_SET) PX_SERVER_SET, MIN(AD1.LINE_ACTIVITY_START) LINE_ACTIVITY_START, MAX(AD1.LINE_ACTIVITY_END) LINE_ACTIVITY_END, MIN(AD1.BUCKET_ACTIVITY_START) BUCKET_ACTIVITY_START, MAX(AD1.BUCKET_ACTIVITY_END) BUCKET_ACTIVITY_END, SUM(AD1.ACTIVITY_COUNT) ACTIVITY_COUNT, SUM(AD1.IMQ_COUNT) IMQ_COUNT, SUM(AD1.WAIT_COUNT) WAIT_COUNT, SUM(AD1.CPU_COUNT) CPU_COUNT, SUM(AD1.OTHER_SQL_COUNT) OTHER_SQL_COUNT, SUBSTR(MAX(LPAD(AD1.ACTIVITY_COUNT, 10)|| AD1.ACTIVITY_TYPE), 11) MOST_ACTIVE, XMLAGG(NVL2(AD1.ACTIVITY_TYPE, XMLELEMENT( "activity", XMLATTRIBUTES( AD1.ACTIVITY_TYPE AS "cl ass", AD1.EVENT_NAME AS "event"), AD1.ACTIVITY_COUNT), NULL) ORDER BY AD1.ACTIVITY_TYPE, AD1.EVENT_NAME) ACTIVITY_BUCKET FROM (SELECT AD0.PLAN_LINE_ID, AD0.PLAN_ACTIVITY_BUCKET_NUM BUCKET_NUM, AD0.ACTIVITY_TYPE, AD0.EVENT_NAME, MIN(NVL2(AD0.ACTIVITY_START, AD0.PX_SERVER_SET, NULL)) PX_SERVER_SET, MIN(AD0.ACTIVITY_START) LINE_ACTIVITY_START, MAX(AD0.ACTIVITY_END) LINE_ACTIVITY_END, MIN(AD0.BUCKET_ACTIVITY_START) BUCKET_ACTIVITY_START, MAX(AD0.BUCKET_ACTIVITY_END) BUCKET_ACTIVITY_END, SUM(AD0.IMQ_COUNT) IMQ_COUNT, SUM(AD0.CPU_COUNT) CPU_COUNT, SUM(AD0.WAIT_COUNT) WAIT_COUNT, SUM(AD0.OTHER_SQL_COUNT) OTHER_SQL_COUNT, SUM(AD0.ACTIVITY_COUNT) ACTIVITY_COUNT FROM ASH_DATA AD0 GROUP BY AD0.PLAN_LINE_ID, AD0.PLAN_ACTIVITY_BUCKET_NUM, AD0.ACTIVITY_TYPE, AD0.EVENT_NAME) AD1 GROUP BY AD1.PLAN_LINE_ID, AD1.BUCKET_NUM) AD2 GROUP BY AD2.PLAN_LINE_ID) AH, (SELECT LO.SQL_PLAN_LINE_ID PLAN_LINE_ID, DECODE(SUM(LO.TOTALWORK), 0, NULL, ROUND(SUM(LO.SOFAR)*100/SUM (LO.TOTALWORK))) PERCENT_COMPLETE, MAX(LO.TIME_REMAINING) TIME_REMAINING FROM GV$SESSION_LONGOPS LO, MONITOR_DATA MO WHERE (:B49 = 'Y' OR :B71 = 'DONE (ERROR)') AND LO.SQL_ID = :B9 AND LO.SQL_EXEC_START = :B8 AND LO.SQL_EXEC_ID = :B7 AND LO.INST_ID = MO.INST_ID AND LO.SID = MO.SID GROUP BY LO.SQL_PLAN_LINE_ID) LO, (SELECT PM0.*, CASE WHEN PM0.STARTS IS NULL OR PM0.STARTS = 0 OR PM0.OUTPUT_ROWS IS NULL THEN NULL ELSE 1 END NEED_ROWS, ROW_NUMBER() OVER(PARTITION BY PM0.STAT_GID ORDER BY PM0.PLAN_LINE_ID ) GID_ROWNUM, MAX(LAST_CHANGE_TIME) OVER() OVERALL_LAST_CHANGE_TIME, MAX(MAX_IO_REQS) OVER() OVERALL_MAX_IO_REQS, MAX(MAX_IO_BYTES) OVER() OVERALL_MAX_IO_BYTES FROM (SELECT /*+ leading(mo) use_hash(plm) */ PLM.PLAN_LINE_ID PLAN_LINE_ID, PLM.PLAN_OPERATION OPERATION, PLM.PLAN_OPTIONS OPTIONS, MAX(PLM.PLAN_PARENT_ID) PARENT_ID, MAX(PLM.PLAN_DEPTH) DEPTH, MAX(PLM.PLAN_POSITION) POSITION, MAX(PLM.PLAN_OPERATION_INACTIVE) INACTIVE, MAX(PLM.PLAN_OBJECT_OWNER) OBJECT_OWNER, MAX(P LM.PLAN_OBJECT_NAME) OBJECT_NAME, MAX(PLM.PLAN_OBJECT_TYPE) OBJECT_TYPE, MAX(PLM.PLAN_COST) COST, MAX(PLM.PLAN_CARDINALITY) CARDINALITY, MAX(PLM.PLAN_BYTES) BYTES, MAX(PLM.PLAN_CPU_COST) CPU_COST, MAX(PLM.PLAN_IO_COST) IO_COST, MAX(PLM.PLAN_TEMP_SPACE) TEMP_SPACE, MAX(PLM.PLAN_TIME) TIME, MAX(PLM.PLAN_PARTITION_START) PARTITION_START, MAX(PLM.PLAN_PARTITION_STOP) PARTITION_STOP, MIN(PLM.FIRST_CHANGE_TIME) FIRST_CHANGE_TIME, MAX(PLM.LAST_CHANGE_TIME) LAST_CHANGE_TIME, MIN(PLM.LAST_CHANGE_TIME) MIN_LAST_CHANGE_TIME, MIN(NVL2(PLM.FIRST_CHANGE_TIME, MO.PX_SERVER_SET, NULL)) PX_SERVER_SET, COUNT(CASE WHEN PLM.PAR IS NOT NULL AND PLM.STARTS IS NOT NULL AND PLM.STARTS > 0 AND PLM.PLAN_LINE_ID != 0 AND PLM.PLAN_OPERATION != 'PX COORDINATOR' THEN 1 ELSE NULL END) DOP, SUM(PLM.STARTS) STARTS, MAX(NVL2(PAR, PLM.STARTS * 10000000000 + PLM.ES, NULL)) MAX_STARTS, SUM(PLM.OUTPUT_ROWS) OUTPUT_ROWS, MAX(NVL2(PAR, PLM.OUTPUT_ROWS * 10000000000 +PLM.ES, NULL)) MAX_OUTPUT_ROWS, SUM(PLM.WORKAREA_MEM) MEM, SUM(PLM.WORKAREA_MAX_MEM) MAX_MEM, MIN(NVL2(PAR, PLM.WORKAREA_MAX_MEM * 10000000000 + PLM.ES, NULL)) MIN_MAX_MEM, SUM(PLM.WORKAREA_TEMPSEG) TEMP, SUM(PLM.WORKAREA_MAX_TEMPSEG) MAX_TEMP, MAX(NVL2(PAR, PLM.WORKAREA_MAX_TEMPSEG * 10000000000 + PLM.ES, NULL)) MAX_MAX_TEMP, COUNT(PLM.WORKAREA_MAX_TEMPSEG) SPILL_COUNT, SUM(PLM.PHYSICAL_READ_REQUESTS) READ_REQS, MAX(NVL2(PAR, PLM.PHYSICAL_READ_REQUESTS * 10000000000 + PLM.ES, NULL)) MAX_READ_REQS, SUM(PLM.PHYSICAL_READ_BYTES) READ_BYTES, MAX(NVL2(PAR, PLM.PHYSICAL_READ_BYTES * 10000000000 + PLM.ES, NULL)) MAX_READ_BYTES, SUM(PLM.PHYSICAL_WRITE_REQUESTS) WRITE_REQS, MAX(NVL2(PAR, PLM.PHYSICAL_WRITE_REQUESTS * 10000000000 + PLM.ES, NULL)) MAX_WRITE_REQS, SUM(PLM.PHYSICAL_WRITE_BYTES) WRITE_BYTES, MAX(NVL2(PAR, PLM.PHYSICAL_WRITE_BYTES * 10000000000 + PLM.ES, NULL)) MAX_WRITE_BYTES, NVL(SUM(PLM.PHYSICAL_READ_BYTES), 0) + NVL(SUM(PLM.PHYSICAL_WRITE_BYTES), 0) IO_BYTES, SUM(NVL(PLM.PHYSICA L_READ_REQUESTS, 0) + NVL(PLM.PHYSICAL_WRITE_REQUESTS, 0)) MAX_IO_REQS, SUM(NVL(PLM.PHYSICAL_READ_BYTES, 0) + NVL(PLM.PHYSICAL_WRITE_BYTES, 0)) MAX_IO_BYTES, SUM(PLM.IO_INTERCONNECT_BYTES) IO_INTER_BYTES, MAX(NVL2(PAR, PLM.IO_INTERCONNECT_BYTES * 10000000000 + PLM.ES, NULL)) MAX_IO_INTER_BYTES, MAX(OTHERSTAT_GROUP_ID) STAT_GID, NVL(DECODE(MAX(OTHERSTAT_1_TYPE), 3, MAX(OTHERSTAT_1_VALUE), 4, MAX(OTHERSTAT_1_VALUE), 6, MIN(OTHERSTAT_1_VALUE), 7, MIN(OTHERSTAT_1_VALUE), NULL), SUM(DECODE(OTHERSTAT_1_TYPE, 1, OTHERSTAT_1_VALUE, 2, OTHERSTAT_1_VALUE, NULL))) STAT1_VALUE, NVL(MOD((DECODE(MAX(OTHERSTAT_2_TYPE), 3, MAX(OTHERSTAT_2_VALUE), 5, DECODE(MAX(OTHERSTAT_1_TYPE), 4, MAX(RMAX1 + OTHERSTAT_2_VALUE), 7, MIN(RMAX1 + OTHERSTAT_2_VALUE), NULL), 6, MIN(OTHERSTAT_2_VALUE), NULL)), 10000000000000000), SUM(DECODE(OTHERSTAT_2_TYPE, 1, OTHERSTAT_2_VALUE, 2, OTHERSTAT_2_VALUE, NULL))) STAT2_VALUE, NVL(MOD((DECODE(MAX(OTHERSTAT_3_TYPE), 3, MAX(OTHERST AT_3_VALUE), 5, DECODE(MAX(OTHERSTAT_1_TYPE), 4, MAX(RMAX1 + OTHERSTAT_3_VALUE), 7, MIN(RMAX1 + OTHERSTAT_3_VALUE), NULL), 6, MIN(OTHERSTAT_3_VALUE), NULL)), 10000000000000000), SUM(DECODE(OTHERSTAT_3_TYPE, 1, OTHERSTAT_3_VALUE, 2, OTHERSTAT_3_VALUE, NULL))) STAT3_VALUE, NVL(MOD((DECODE(MAX(OTHERSTAT_4_TYPE), 3, MAX(OTHERSTAT_4_VALUE), 5, DECODE(MAX(OTHERSTAT_1_TYPE), 4, MAX(RMAX1 + OTHERSTAT_4_VALUE), 7, MIN(RMAX1 + OTHERSTAT_4_VALUE), NULL), 6, MIN(OTHERSTAT_4_VALUE), NULL)), 10000000000000000), SUM(DECODE(OTHERSTAT_4_TYPE, 1, OTHERSTAT_4_VALUE, 2, OTHERSTAT_4_VALUE, NULL))) STAT4_VALUE, NVL(MOD((DECODE(MAX(OTHERSTAT_5_TYPE), 3, MAX(OTHERSTAT_5_VALUE), 5, DECODE(MAX(OTHERSTAT_1_TYPE), 4, MAX(RMAX1 + OTHERSTAT_5_VALUE), 7, MIN(RMAX1 + OTHERSTAT_5_VALUE), NULL), 6, MIN(OTHERSTAT_5_VALUE), NULL)), 10000000000000000), SUM(DECODE(OTHERSTAT_5_TYPE, 1, OTHERSTAT_5_VALUE, 2, OTHERSTAT_5_VALUE, NULL))) STAT5_VALUE, NVL(MOD((DECODE(MAX( OTHERSTAT_6_TYPE), 3, MAX(OTHERSTAT_6_VALUE), 5, DECODE(MAX(OTHERSTAT_1_TYPE), 4, MAX(RMAX1 + OTHERSTAT_6_VALUE), 7, MIN(RMAX1 + OTHERSTAT_6_VALUE), NULL), 6, MIN(OTHERSTAT_6_VALUE), NULL)), 10000000000000000), SUM(DECODE(OTHERSTAT_6_TYPE, 1, OTHERSTAT_6_VALUE, 2, OTHERSTAT_6_VALUE, NULL))) STAT6_VALUE, NVL(MOD((DECODE(MAX(OTHERSTAT_7_TYPE), 3, MAX(OTHERSTAT_7_VALUE), 5, DECODE(MAX(OTHERSTAT_1_TYPE), 4, MAX(RMAX1 + OTHERSTAT_7_VALUE), 7, MIN(RMAX1 + OTHERSTAT_7_VALUE), NULL), 6, MIN(OTHERSTAT_7_VALUE), NULL)), 10000000000000000), SUM(DECODE(OTHERSTAT_7_TYPE, 1, OTHERSTAT_7_VALUE, 2, OTHERSTAT_7_VALUE, NULL))) STAT7_VALUE, NVL(MOD((DECODE(MAX(OTHERSTAT_8_TYPE), 3, MAX(OTHERSTAT_8_VALUE), 5, DECODE(MAX(OTHERSTAT_1_TYPE), 4, MAX(RMAX1 + OTHERSTAT_8_VALUE), 7, MIN(RMAX1 + OTHERSTAT_8_VALUE), NULL), 6, MIN(OTHERSTAT_8_VALUE), NULL)), 10000000000000000), SUM(DECODE(OTHERSTAT_8_TYPE, 1, OTHERSTAT_8_VALUE, 2, OTHERSTAT_8_VALUE, NULL))) STAT8_VALUE, NVL(MOD((DECODE(MAX(OTHERSTAT_9_TYPE), 3, MAX(OTHERSTAT_9_VALUE), 5, DECODE(MAX(OTHERSTAT_1_TYPE), 4, MAX(RMAX1 + OTHERSTAT_9_VALUE), 7, MIN(RMAX1 + OTHERSTAT_9_VALUE), NULL), 6, MIN(OTHERSTAT_9_VALUE), NULL)), 10000000000000000), SUM(DECODE(OTHERSTAT_9_TYPE, 1, OTHERSTAT_9_VALUE, 2, OTHERSTAT_9_VALUE, NULL))) STAT9_VALUE, NVL(MOD((DECODE(MAX(OTHERSTAT_10_TYPE), 3, MAX(OTHERSTAT_10_VALUE), 5, DECODE(MAX(OTHERSTAT_1_TYPE), 4, MAX(RMAX1 + OTHERSTAT_10_VALUE), 7, MIN(RMAX1 + OTHERSTAT_10_VALUE), NULL), 6, MIN(OTHERSTAT_10_VALUE), NULL)), 10000000000000000), SUM(DECODE(OTHERSTAT_10_TYPE, 1, OTHERSTAT_10_VALUE, 2, OTHERSTAT_10_VALUE, NULL))) STAT10_VALUE FROM (SELECT A.*, OTHERSTAT_1_VALUE * 10000000000000000 RMAX1, A.INST_ID * 1000000 + A.SID ES, DECODE(A.PROCESS_NAME, 'ora', NULL, 1) PAR FROM GV$ALL_SQL_PLAN_MONITOR A) PLM, MONITOR_DATA MO WHERE PLM.SQL_ID = :B9 AND PLM.SQL_EXEC_START = :B8 AND PLM.SQL_EXEC_ID = :B7 AND PLM.INST _ID = MO.INST_ID AND PLM.INST_ID BETWEEN :B11 AND :B10 AND PLM.KEY = MO.KEY GROUP BY PLM.PLAN_LINE_ID, PLM.PLAN_OPERATION, PLM.PLAN_OPTIONS) PM0) PM WHERE AH.PLAN_LINE_ID(+) = PM.PLAN_LINE_ID AND AT.PLAN_LINE_ID(+) = PM.PLAN_LINE_ID AND LO.PLAN_LINE_ID(+) = PM.PLAN_LINE_ID AND (:B21 IS NULL OR PM.PLAN_LINE_ID = :B21 )) PLI) ELSE NULL END, CASE WHEN :B42 = 1 THEN DBMS_SQLTUNE.BUILD_STASH_XML( SESSION_ID=>:B19 , SESSION_SERIAL=>:B18 , SESSION_INST_ID=>:B17 , PX_MODE=>'yes', START_TIME=>:B20 , END_TIME=>:B22 , MISSING_SECONDS=> :B41 , INSTANCE_LOW_FILTER=>:B11 , INSTANCE_HIGH_FILTER=>:B10 , BUCKET_MAX_COUNT=>NULL, BUCKET_INTERVAL=>:B26 , REPORT_LEVEL=>'typical', CPU_CORES=>:B40 , IS_HYPER=>:B39 ) ELSE NULL END), (CASE WHEN :B38 = 1 THEN (SELECT XMLELEMENT( "skewed_sessions", XMLATTRIBUTES( DECODE(MIN(INST_ID), NULL, :B17 , MIN(INST_ID)) AS "min_iid", DECODE(MAX(INST_ID), NULL, :B17 , MAX(INST_ID)) AS "max_iid"), XMLAGG( XMLELEMENT( "s", XMLATTRIBUTES( INST_ID AS "i"), SESSION_ID) ORDER BY INST_ID, SESSION_ID)) FROM (SELECT SESS.* FROM (SELECT DECODE(AD.DFO_MOST_ACTIVE_IID, :B17 , NULL, AD.DFO_MOST_ACTIVE_IID) INST_ID, AD.DFO_MOST_ACTIVE_SID SESSION_ID FROM ASH_DATA AD WHERE AD.DFO_MOST_ACTIVE_COUNT IS NOT NULL GROUP BY AD.DFO_MOST_ACTIVE_IID, AD.DFO_MOST_ACTIVE_SID ORDER BY MAX(AD.DFO_MOST_ACTIVE_COUNT) DESC) SESS WHERE ROWNUM <= 100)) ELSE NULL END), (CASE WHEN :B37 = 1 THEN (SELECT XMLELEMENT( "report_repository_summary", CASE WHEN MA.MAX_DBOP_NAME IS NOT NULL THEN XMLELEMENT( "dbop", XMLATTRIBUTES('F' AS "detail", MA.MAX_DBOP_NAME AS "dbop_name", TO_CHAR(MA.MIN_FIRST_REFRESH_TIME, :B12 ) AS "dbop_exec_start", MA.MAX_DBOP_EXEC_ID AS "dbop_exec_id"), XMLFOREST( MA.MAX_STATUS AS "status", TO_CHAR(NVL(MA.MAX_SQL_EXEC_START, MA.MIN_FIRST_REFRESH_TIME), :B12 )AS "first_refresh_time", TO_CHAR(MA.MAX_LAST_REFRESH_TIME, :B12 )AS "last_refresh_time", MA.SUM_REFRESH_COUNT AS "refresh_count", MA.MAX_INST_ID AS "inst_id", MA.MAX_SESSION_ID AS "session_id", MA.MAX_SESSION_SERIAL AS "session_serial", MA.MAX_USERID AS "user_id", MA.MAX_USERNAME AS "user", MA.MAX_CON_ID AS "con_id", MA.MAX_CON_NAME AS "con_name", MA.MAX_MODULE AS "module", MA.MAX_ACTION AS "action", MA.MAX_SERVICE_NAME AS "service", MA.MAX_CLIENT_ID AS "client_id", MA.MAX_CLIENT_INFO AS "client_info", MA.MAX_PROGRAM AS "program", MA.MAX_PL_ENTRY_OID AS "plsql_entry_object_id", MA.MAX_PL_ENTRY_PROGID AS "plsql_entry_subprogram_id", MA.MAX_PL_OID AS "plsql_object_id", MA.MAX_PL_PROGID AS "plsql_subprogram_id", MA.MAX_PX_IS_CROSS_INSTANCE AS "is_cross_instance", MA.MAX_PX_DOP AS "dop", MA.MAX_PX_DOP_INSTANCES AS "instances"), CASE WHEN MA.MAX_ERROR_NUMBER IS NULL THEN NULL ELSE XMLELEMENT( "error", XMLATTRIBUTES(MA.MAX_ERROR_NUMBER AS "number", MA.MAX_ERROR_FACILITY AS "facility"), MA.MAX_ERROR_MESSAGE) END, XMLELEMENT( "stats", XMLATTRIBUTES('monitor' AS "type"), XMLELEMENT( "stat", XMLATTRIBUTES('duration' AS "name"), GREATEST(ROUND((MA.MAX_LAST_REFRESH_TIME- NVL(MA.MAX_SQL_EXEC_START, MA.MIN_FIRST_REFRESH_TIME))*86400), LEAST(MA.SUM_ELAPSED_TIME/1000000, 1), CEIL(MA.MAX_QUEUING_TIME/1000000))), DECODE(MA.SUM_ELAPSED_TIME, 0, NULL, XMLELEMENT( "stat", XMLATTRIBUTES('elapsed_time' AS "name"), MA.SUM_ELAPSED_TIME)), DECODE(MA.MAX_QUEUING_TIME, 0, NULL, XMLELEMENT( "stat", XMLATTRIBUTES('queuing_time' AS "name"), MA.MAX_QUEUING_TIME)), DECODE(MA.SUM_CPU_TIME, 0, NULL, XMLELEMENT( "s tat", XMLATTRIBUTES('cpu_time' AS "name"), MA.SUM_CPU_TIME)), DECODE(MA.SUM_USER_IO_WAIT_TIME, 0, NULL, XMLELEMENT( "stat", XMLATTRIBUTES('user_io_wait_time' AS "name"), MA.SUM_USER_IO_WAIT_TIME)), DECODE(MA.SUM_APPLICATION_WAIT_TIME, 0, NULL, XMLELEMENT( "stat", XMLATTRIBUTES('application_wait_time' AS "name"), MA.SUM_APPLICATION_WAIT_TIME)), DECODE(MA.SUM_CONCURRENCY_WAIT_TIME, 0, NULL, XMLELEMENT( "stat", XMLATTRIBUTES('concurrency_wait_time' AS "name"), MA.SUM_CONCURRENCY_WAIT_TIME)), DECODE(MA.SUM_CLUSTER_WAIT_TIME, 0, NULL, XMLELEMENT( "stat", XMLATTRIBUTES('cluster_wait_time' AS "name"), MA.SUM_CLUSTER_WAIT_TIME)), DECODE(MA.SUM_PLSQL_EXEC_TIME, 0, NULL, XMLELEMENT( "stat", XMLATTRIBUTES('plsql_exec_time' AS "name"), MA.SUM_PLSQL_EXEC_TIME)), DECODE(MA.SUM_JAVA_EXEC_TIME, 0, NULL, XMLELEMENT( "stat", XMLATTRIBUTES('java _exec_time' AS "name"), MA.SUM_JAVA_EXEC_TIME)), DECODE(MA.SUM_OTHER_WAIT_TIME, 0, NULL, XMLELEMENT( "stat", XMLATTRIBUTES('other_wait_time' AS "name"), MA.SUM_OTHER_WAIT_TIME)), DECODE(MA.SUM_FETCHES, 0, NULL, XMLELEMENT( "stat", XMLATTRIBUTES('user_fetch_count' AS "name"), MA.SUM_FETCHES)), DECODE(MA.SUM_BUFFER_GETS, 0, NULL, XMLELEMENT( "stat", XMLATTRIBUTES('buffer_gets' AS "name"), MA.SUM_BUFFER_GETS)), DECODE(MA.SUM_READ_REQS, 0, NULL, XMLELEMENT( "stat", XMLATTRIBUTES('read_reqs' AS "name"), MA.SUM_READ_REQS)), DECODE(MA.SUM_READ_BYTES, 0, NULL, XMLELEMENT( "stat", XMLATTRIBUTES('read_bytes' AS "name"), MA.SUM_READ_BYTES)), DECODE(MA.SUM_WRITE_REQS, 0, NULL, XMLELEMENT( "stat", XMLATTRIBUTES('write_reqs' AS "name"), MA.SUM_WRITE_REQS)), DECODE(MA.SUM_WRITE_BYTES, 0, NULL, XMLELEMENT( "stat", XMLATTRI BUTES('write_bytes' AS "name"), MA.SUM_WRITE_BYTES)), CASE WHEN MA.SUM_IO_INTER_BYTES IS NULL OR MA.SUM_IO_INTER_BYTES = MA.SUM_IO_BYTES OR MA.SUM_IO_BYTES = 0 OR NVL(MA.SUM_IO_ELIG_BYTES, 0) = 0 THEN NULL ELSE XMLELEMENT( "stat", XMLATTRIBUTES('cell_offload_efficiency' AS "name"), ROUND(MA.SUM_IO_BYTES / DECODE(MA.SUM_IO_INTER_BYTES, 0, 1, MA.SUM_IO_INTER_BYTES), 2)) END, CASE WHEN NVL(MA.SUM_IO_ELIG_BYTES, 0) = 0 OR MA.SUM_IO_BYTES = 0 OR MA.SUM_IO_UNC_BYTES = MA.SUM_IO_RET_BYTES THEN NULL ELSE XMLELEMENT( "stat", XMLATTRIBUTES('cell_offload_efficiency2' AS "name"), GREATEST(0, ROUND(100 * (GREATEST(MA.SUM_IO_UNC_BYTES, MA.SUM_IO_ELIG_BYTES) - MA.SUM_IO_RET_BYTES) / MA.SUM_IO_ELIG_BYTES, 2))) END) ) ELSE XMLELEMENT( "sql", XMLATTRIBUTES( MA.MAX_SQL_ID AS "sql_id", TO_CHAR(MA.MAX_SQL_EXEC_START, :B12 ) AS "sql_exec_start", MA.MAX_SQL_EXEC_ID AS "sql_exec_id"), XMLFOREST(MA.MA X_STATUS AS "status", SUBSTR(MA.SQLMON_TEXT, 1, 100) AS "sql_text", TO_CHAR(MA.MIN_FIRST_REFRESH_TIME, :B12 ) AS "first_refresh_time", TO_CHAR(MA.MAX_LAST_REFRESH_TIME, :B12 ) AS "last_refresh_time", MA.SUM_REFRESH_COUNT AS "refresh_count", MA.MAX_INST_ID AS "inst_id", MA.MAX_SESSION_ID AS "session_id", MA.MAX_SESSION_SERIAL AS "session_serial", MA.MAX_USERID AS "user_id", MA.MAX_USERNAME AS "user", MA.MAX_CON_ID AS "con_id", MA.MAX_CON_NAME AS "con_name", MA.MAX_MODULE AS "module", MA.MAX_ACTION AS "action", MA.MAX_SERVICE_NAME AS "service", MA.MAX_CLIENT_ID AS "client_id", MA.MAX_CLIENT_INFO AS "client_info", MA.MAX_PROGRAM AS "program", MA.MAX_PLAN_HASH_VALUE AS "plan_hash", MA.MAX_PL_ENTRY_OID AS "plsql_entry_object_id", MA.MAX_PL_ENTRY_PROGID AS "plsql_ent ry_subprogram_id", MA.MAX_PL_OID AS "plsql_object_id", MA.MAX_PL_PROGID AS "plsql_subprogram_id", MA.MAX_PX_IS_CROSS_INSTANCE AS "is_cross_instance", MA.MAX_PX_DOP AS "dop", MA.MAX_PX_DOP_INSTANCES AS "instances", MA.SUM_SERVERS_REQUESTED AS "px_servers_requested", MA.SUM_SERVERS_ALLOCATED AS "px_servers_allocated"), XMLELEMENT( "stats", XMLATTRIBUTES('monitor' AS "type"), XMLELEMENT( "stat", XMLATTRIBUTES('duration' AS "name"), GREATEST(ROUND((MA.MAX_LAST_REFRESH_TIME- MA.MAX_SQL_EXEC_START) * 86400), LEAST(MA.SUM_ELAPSED_TIME/1000000, 1), CEIL(MA.MAX_QUEUING_TIME/1000000))), DECODE(MA.SUM_ELAPSED_TIME, 0, NULL, XMLELEMENT( "stat", XMLATTRIBUTES('elapsed_time' AS "name"), MA.SUM_ELAPSED_TIME)), DECODE(MA.MAX_QUEUING_TIME, 0, NULL, XMLELEMENT( "stat", XMLATTRIBUTES('queuing_time' AS "name"), MA.MAX_QUEUING_ TIME)), DECODE(MA.SUM_CPU_TIME, 0, NULL, XMLELEMENT( "stat", XMLATTRIBUTES('cpu_time' AS "name"), MA.SUM_CPU_TIME)), DECODE(MA.SUM_USER_IO_WAIT_TIME, 0, NULL, XMLELEMENT( "stat", XMLATTRIBUTES('user_io_wait_time' AS "name"), MA.SUM_USER_IO_WAIT_TIME)), DECODE(MA.SUM_APPLICATION_WAIT_TIME, 0, NULL, XMLELEMENT( "stat", XMLATTRIBUTES('application_wait_time' AS "name"), MA.SUM_APPLICATION_WAIT_TIME)), DECODE(MA.SUM_CONCURRENCY_WAIT_TIME, 0, NULL, XMLELEMENT( "stat", XMLATTRIBUTES('concurrency_wait_time' AS "name"), MA.SUM_CONCURRENCY_WAIT_TIME)), DECODE(MA.SUM_CLUSTER_WAIT_TIME, 0, NULL, XMLELEMENT( "stat", XMLATTRIBUTES('cluster_wait_time' AS "name"), MA.SUM_CLUSTER_WAIT_TIME)), DECODE(MA.SUM_PLSQL_EXEC_TIME, 0, NULL, XMLELEMENT( "stat", XMLATTRIBUTES('plsql_exec_time' AS "name"), MA.SUM_PLSQL_EXEC_TIME)), DECODE(MA.SUM_JAVA_EXEC_TIME , 0, NULL, XMLELEMENT( "stat", XMLATTRIBUTES('java_exec_time' AS "name"), MA.SUM_JAVA_EXEC_TIME)), DECODE(MA.SUM_OTHER_WAIT_TIME, 0, NULL, XMLELEMENT( "stat", XMLATTRIBUTES('other_wait_time' AS "name"), MA.SUM_OTHER_WAIT_TIME)), DECODE(MA.SUM_FETCHES, 0, NULL, XMLELEMENT( "stat", XMLATTRIBUTES('user_fetch_count' AS "name"), MA.SUM_FETCHES)), DECODE(MA.SUM_BUFFER_GETS, 0, NULL, XMLELEMENT( "stat", XMLATTRIBUTES('buffer_gets' AS "name"), MA.SUM_BUFFER_GETS)), DECODE(MA.SUM_READ_REQS, 0, NULL, XMLELEMENT( "stat", XMLATTRIBUTES('read_reqs' AS "name"), MA.SUM_READ_REQS)), DECODE(MA.SUM_READ_BYTES, 0, NULL, XMLELEMENT( "stat", XMLATTRIBUTES('read_bytes' AS "name"), MA.SUM_READ_BYTES)), DECODE(MA.SUM_WRITE_REQS, 0, NULL, XMLELEMENT( "stat", XMLATTRIBUTES('write_reqs' AS "name"), MA.SUM_WRITE_REQS)), DECODE(MA.SUM_ WRITE_BYTES, 0, NULL, XMLELEMENT( "stat", XMLATTRIBUTES('write_bytes' AS "name"), MA.SUM_WRITE_BYTES)), DECODE(MA.SUM_IO_UNC_BYTES, 0, NULL, XMLELEMENT( "stat", XMLATTRIBUTES('unc_bytes' AS "name"), MA.SUM_IO_UNC_BYTES)), DECODE(MA.SUM_IO_ELIG_BYTES, 0, NULL, XMLELEMENT( "stat", XMLATTRIBUTES('elig_bytes' AS "name"), MA.SUM_IO_ELIG_BYTES)), DECODE(MA.SUM_IO_RET_BYTES, 0, NULL, XMLELEMENT( "stat", XMLATTRIBUTES('ret_bytes' AS "name"), MA.SUM_IO_RET_BYTES)), CASE WHEN MA.SUM_IO_INTER_BYTES IS NULL OR MA.SUM_IO_INTER_BYTES = MA.SUM_IO_BYTES OR MA.SUM_IO_BYTES = 0 OR NVL(MA.SUM_IO_ELIG_BYTES, 0) = 0 THEN NULL ELSE XMLELEMENT( "stat", XMLATTRIBUTES('cell_offload_efficiency' AS "name"), ROUND(MA.SUM_IO_BYTES / DECODE(MA.SUM_IO_INTER_BYTES, 0, 1, MA.SUM_IO_INTER_BYTES), 2)) END, CASE WHEN NVL(MA.SUM_IO_ELIG_BYTES, 0) = 0 OR MA.SUM_IO_BYTES = 0 OR MA.SUM_IO_UNC_B YTES = MA.SUM_IO_RET_BYTES THEN NULL ELSE XMLELEMENT( "stat", XMLATTRIBUTES('cell_offload_efficiency2' AS "name"), GREATEST(0, ROUND(100 * (GREATEST(MA.SUM_IO_UNC_BYTES, MA.SUM_IO_ELIG_BYTES) - MA.SUM_IO_RET_BYTES) / MA.SUM_IO_ELIG_BYTES, 2))) END) ) END) FROM MONITOR_AGG MA) ELSE NULL END) FROM (SELECT CASE WHEN V1.XPLAN_XML IS NULL OR V1.XPLAN_XML.EXISTSNODE('/error') > 0 THEN NULL ELSE V1.XPLAN_XML END XPLAN_XML FROM (SELECT CASE WHEN :B36 = 1 THEN DBMS_XPLAN.BUILD_PLAN_XML( TABLE_NAME=>'gv$all_sql_plan', PLAN_TAG=>'plan', FILTER_PREDS=>:B35 , FORMAT=>'-PROJECTION +ALIAS +ADAPTIVE') ELSE NULL END XPLAN_XML FROM DUAL) V1) CONST_VIEW
a4akgk9g69h83SELECT d.* FROM ( SELECT d.*, ROWNUM ROW# FROM (SELECT d.* FROM (select sql_text AS SQL, s.cpu_time/1000 AS CPU_MSECONDS, CASE WHEN s.cpu_time < 1000 THEN '< 1 ms' WHEN s.cpu_time < 1000000 THEN to_char(round(s.cpu_time/1000, 1)) || ' ms' WHEN s.cpu_time < 60000000 THEN to_char(round(s.cpu_time/1000000, 1)) || ' s' ELSE to_char(round(s.cpu_time/60000000, 1)) || ' m' END AS CPU_SECONDS_FORM, DECODE(l.max_cpu_time, 0, 0, s.cpu_time/l.max_cpu_time) AS CPU_SECONDS_PROP, s.elapsed_time/1000 AS ELAPSED_MSECONDS, CASE WHEN s.elapsed_time < 1000 THEN '< 1 ms' WHEN s.elapsed_time < 1000000 THEN to_char(round(s.elapsed_time/1000, 1)) || ' ms' WHEN s.elapsed_time < 60000000 THEN to_char(round(s.elapsed_time/1000000, 1)) || ' s' ELSE to_char(round(s.elapsed_time/60000000, 1)) || ' m' END AS ELAPSED_SECONDS_FORM, DECODE(l.max_elapse d_time, 0, 0, s.elapsed_time/l.max_elapsed_time) AS ELAPSED_SECONDS_PROP, s.disk_reads AS DISK_READS, CASE WHEN s.disk_reads < 1000 THEN to_char(s.disk_reads) WHEN s.disk_reads < 1000000 THEN to_char(round(s.disk_reads/1000, 1)) || 'K' WHEN s.disk_reads < 1000000000 THEN to_char(round(s.disk_reads/1000000, 1)) || 'M' ELSE to_char(round(s.disk_reads/1000000000, 1)) || 'G' END AS DISK_READS_FORM, DECODE(l.max_disk_reads , 0, 0, s.disk_reads/l.max_disk_reads ) AS DISK_READS_PROP, s.buffer_gets AS BUFFER_GETS, CASE WHEN s.buffer_gets < 1000 THEN to_char(s.buffer_gets) WHEN s.buffer_gets < 1000000 THEN to_char(round(s.buffer_gets/1000, 1)) || 'K' WHEN s.buffer_gets < 1000000000 THEN to_char(round(s.buffer_gets/1000000, 1)) || 'M' ELSE to_char(round(s.buffer_gets/1000000000, 1)) || 'G' END AS BUFFER_GETS_FORM, DECODE(l.max_buffer_gets , 0, 0, s.buffer_gets/l.max_buffer_gets ) AS BUFFER_GETS_PROP, s.executions AS EXECUTIONS, CASE WHEN s.executions < 1000 THEN to_char(s.executions) WHEN s.executions < 1000000 THEN to_char(round(s.executions/1000, 1)) || 'K' WHEN s.executions < 1000000000 THEN to_char(round(s.executions/1000000, 1)) || 'M' ELSE to_char(round(s.executions/1000000000, 1)) || 'G' END AS EXECUTIONS_FORM, DECODE(l.max_executions , 0, 0, s.executions/l.max_executions ) AS EXECUTIONS_PROP, decode(s.module, null, ' ', s.module) AS MODULE, s.last_active_time AS LAST_ACTIVE_TIME, decode(s.last_active_time, null, ' ', to_char(s.last_active_time, 'DD-Mon-YYYY HH24:MI:SS')) AS LAST_ACTIVE_TIME_FORM, s.sql_id AS SQL_ID, s.child_number AS CHILD_NUMBER, s.inst_id as INST_ID from gv$sql s, ( select max(cpu_time) as max_cpu_time, max(elapsed_time) as max_elapsed_time, max(disk_reads) as max_disk_reads, max(buffer_gets) as max_buffer_gets, max(executions) as max_executions from gv$sql ) l ) d ORDER BY CPU_MSECONDS DESC, SQL, DISK_READS DESC, BUFFER_GETS DESC, EXECUTIONS DESC, ELAPSED_MSECONDS DESC, INST_ID DESC, MODULE DESC, LAST_ACTIVE_TIME DESC ) d ) d WHERE ROW# >= :minRowNo AND ROW# <= :maxRowNo
a6ufvpa02fgagselect a.total as MAX_BYTES, b.used as USED_BYTES from ( select sum(user_bytes) total from dba_data_files d, DBA_TABLESPACES t where d.TABLESPACE_NAME(+) = t.tablespace_name and contents = 'PERMANENT' ) a, ( select sum(bytes) used from dba_segments s, DBA_TABLESPACES t where s.TABLESPACE_NAME(+) = t.tablespace_name and contents = 'PERMANENT' ) b
a9gvfh5hx9u98BEGIN :1 := orderentry.processorders(:2 , :3 , :4 ); END;
acmvv4fhdc9zhselect obj#, type#, ctime, mtime, stime, status, dataobj#, flags, oid$, spare1, spare2, spare3, signature, spare7, spare8, spare9, nvl(dflcollid, 16382), creappid, creverid, modappid, modverid, crepatchid, modpatchid from obj$ where owner#=:1 and name=:2 and namespace=:3 and remoteowner is null and linkname is null and subname is null
apgb2g9q2zjh1BEGIN :1 := orderentry.browseandupdateorders(:2 , :3 , :4 ); END;
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;
cmndgkbkcz5s9BEGIN :1 := orderentry.updateCustomerDetails(:2 , :3 , :4 , :5 , :6 , :7 , :8 ); 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)
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 changes273,133383.4243.72
execute count195,800274.8631.34
gc cr block receive time3,1904.480.51
gc cr blocks received87,262122.5013.97
gc current block receive time14,19519.932.27
gc current blocks received48,66168.317.79
logons cumulative2020.280.03
opened cursors cumulative172,866242.6727.67
parse count (total)4,2615.980.68
parse time elapsed4600.650.07
physical reads5,380,7497,553.38861.33
physical writes46,74365.627.48
redo size30,360,57642,619.534,860.02
session cursor cache hits170,319239.0927.26
session logical reads39,156,15754,966.586,267.99
user calls25,40535.664.07
user commits6,2478.771.00
user rollbacks00.000.00
workarea executions - onepass00.000.00
workarea executions - optimal16,88923.712.70


Back to Instance Activity Statistics
Back to Top

Instance Activity Stats

StatisticTotalper Secondper Trans
ASSM bg: segment fix monitor10.000.00
ASSM cbk:blocks examined11,47616.111.84
ASSM cbk:blocks marked full1980.280.03
ASSM gsp:L1 bitmaps examined11,71616.451.88
ASSM gsp:L2 bitmap full720.100.01
ASSM gsp:L2 bitmaps examined2,1072.960.34
ASSM gsp:L3 bitmaps examined440.060.01
ASSM gsp:Optimized reject l100.000.00
ASSM gsp:Optimized reject l210.000.00
ASSM gsp:Search all340.050.01
ASSM gsp:Search hint370.050.01
ASSM gsp:Search steal130.020.00
ASSM gsp:bump HWM130.020.00
ASSM gsp:get free block11,27815.831.81
ASSM gsp:get free data block11,15915.661.79
ASSM gsp:get free index block1190.170.02
ASSM gsp:good hint9,38913.181.50
ASSM gsp:reject L100.000.00
ASSM gsp:reject L2300.040.00
ASSM gsp:reject db00.000.00
ASSM rsv:fill reserve130.020.00
ASSM wasted db state change20.000.00
Batched IO (bound) vector count8411.180.13
Batched IO (full) vector count40,58956.986.50
Batched IO (space) vector count17,78324.962.85
Batched IO block miss count5,431,2517,624.27869.42
Batched IO buffer defrag count2,1583.030.35
Batched IO double miss count43,15260.586.91
Batched IO same unit count235,672330.8337.73
Batched IO single block count1,6412.300.26
Batched IO slow jump count60.010.00
Batched IO vector block count5,250,9157,371.12840.55
Batched IO vector read count58,89382.679.43
Block Cleanout Optim referenced470.070.01
CCursor + sql area evicted2380.330.04
CPU used by this session33,98947.715.44
CPU used when call started26,87837.734.30
CR blocks created2480.350.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 written7681.080.12
DBWR checkpoints890.120.01
DBWR fusion writes2,8223.960.45
DBWR object drop buffers written720.100.01
DBWR parallel query checkpoint buffers written00.000.00
DBWR thread checkpoint buffers written00.000.00
DBWR transaction table writes420.060.01
DBWR undo block writes1,2951.820.21
DFO trees parallelized730.100.01
Effective IO time00.000.00
HSC Heap Segment Block Changes28,40139.874.55
Heap Segment Array Deletes00.000.00
Heap Segment Array Inserts1690.240.03
Heap Segment Array Updates30.000.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 req170.020.00
KTFB alloc space (block)18,743,29626,311.443,000.37
KTFB alloc time (ms)59,35583.329.50
KTFB apply req00.000.00
KTFB apply time (ms)00.000.00
KTFB commit req00.000.00
KTFB commit time (ms)00.000.00
KTFB free req00.000.00
KTFB free space (block)00.000.00
KTFB free time (ms)00.000.00
LOB table id lookup cache misses00.000.00
Number of read IOs issued00.000.00
PX local messages recv'd3,3234.660.53
PX local messages sent3,3234.660.53
PX remote messages recv'd3,3014.630.53
PX remote messages sent5,5977.860.90
Parallel operations not downgraded730.100.01
Requests to/from client23,77333.373.81
RowCR attempts00.000.00
RowCR hits00.000.00
SMON posted for instance recovery00.000.00
SMON posted for undo segment shrink20.000.00
SQL*Net roundtrips to/from client23,78533.393.81
TBS Extension: tasks created00.000.00
TBS Extension: tasks executed00.000.00
active txn count during cleanout2220.310.04
auto extends on undo tablespace00.000.00
background checkpoints completed00.000.00
background checkpoints started00.000.00
background timeouts6,3358.891.01
blocks cleaned out using minact7,88011.061.26
branch node splits40.010.00
buffer is not pinned count47,123,20466,150.557,543.33
buffer is pinned count37,971,28953,303.296,078.32
bytes received via SQL*Net from client1,917,3622,691.55306.93
bytes sent via SQL*Net to client1,858,3392,608.70297.48
calls to get snapshot scn: kcmgss229,962322.8236.81
calls to kcmgas22,63331.773.62
calls to kcmgcs123,503173.3719.77
cell physical IO interconnect bytes45,048,939,00863,238,740.657,211,291.66
change write time820.120.01
cleanout - number of ktugct calls2990.420.05
cleanouts and rollbacks - consistent read gets00.000.00
cleanouts only - consistent read gets420.060.01
cluster key scan block gets19,66227.603.15
cluster key scans15,22121.372.44
commit batch performed00.000.00
commit batch requested00.000.00
commit batch/immediate performed60.010.00
commit batch/immediate requested60.010.00
commit cleanout failures: block lost400.060.01
commit cleanout failures: buffer being written20.000.00
commit cleanout failures: callback failure130.020.00
commit cleanout failures: cannot pin10.000.00
commit cleanouts53,30474.838.53
commit cleanouts successfully completed53,24874.758.52
commit immediate performed60.010.00
commit immediate requested60.010.00
commit nowait performed00.000.00
commit nowait requested00.000.00
commit txn count during cleanout2500.350.04
commit wait/nowait performed00.000.00
commit wait/nowait requested00.000.00
consistent changes82,987116.5013.28
consistent gets38,670,05254,284.196,190.18
consistent gets direct00.000.00
consistent gets examination3,143,2344,412.40503.16
consistent gets examination (fastpath)2,976,7644,178.72476.51
consistent gets from cache38,670,05254,284.196,190.18
consistent gets pin35,526,81849,871.795,687.02
consistent gets pin (fastpath)35,367,41349,648.025,661.50
cumulative begin requests100.010.00
cumulative end requests00.000.00
cursor authentications1230.170.02
cursor reload failures310.040.00
data blocks consistent reads - undo records applied3750.530.06
db block changes273,133383.4243.72
db block gets486,105682.3877.81
db block gets direct4040.570.06
db block gets from cache485,701681.8277.75
db block gets from cache (fastpath)368,817517.7459.04
deferred (CURRENT) block cleanout applications10,53514.791.69
dirty buffers inspected38,67054.286.19
enqueue conversions4,1225.790.66
enqueue releases63,51189.1610.17
enqueue requests63,51489.1610.17
enqueue timeouts10.000.00
enqueue waits5450.770.09
exchange deadlocks20.000.00
execute count195,800274.8631.34
failed probes on index block reclamation00.000.00
file io service time223,224313.3635.73
free buffer inspected6,197,1818,699.47992.03
free buffer requested5,560,8827,806.25890.17
gc blocks compressed15,88422.302.54
gc blocks lost2,6453.710.42
gc cleanout applied170.020.00
gc cleanout saved400.060.01
gc cr block build time60.010.00
gc cr block flush time80.010.00
gc cr block receive time3,1904.480.51
gc cr blocks built10,84415.221.74
gc cr blocks flushed160.020.00
gc cr blocks received87,262122.5013.97
gc cr blocks served11,13615.631.78
gc cr multiblock grant time200,170280.9932.04
gc cr multiblock grants received4,979,8876,990.66797.16
gc current block flush time310.040.00
gc current block pin time10.000.00
gc current block receive time14,19519.932.27
gc current blocks flushed520.070.01
gc current blocks pinned10.000.00
gc current blocks received48,66168.317.79
gc current blocks served54,08975.938.66
gc force cr read cr1490.210.02
gc force cr read current10.000.00
gc kbytes saved91,188128.0114.60
gc kbytes sent430,612604.4868.93
gc local grants2,737,1793,842.39438.16
gc merge pi bg00.000.00
gc merge pi fg1,0001.400.16
gc no change made130.020.00
gc read time waited520.070.01
gc read wait failures00.000.00
gc read waits80.010.00
gc reader bypass grants2,8083.940.45
gc reader bypass waits4770.670.08
gc remote grants2,657,3063,730.27425.37
gc status messages received1,2871.810.21
gc status messages sent4,5436.380.73
gcs affinity lock grants1,1841.660.19
gcs data block access records5,520,7917,749.97883.75
gcs messages sent8,211,73311,527.461,314.51
gcs stats management (SCM) process posts00.000.00
ges messages sent5,8598.220.94
global enqueue gets async00.000.00
global enqueue gets sync241,770339.3938.70
global enqueue releases237,719333.7038.05
heap block compress150.020.00
hot buffers moved to head of LRU9,973,18014,000.141,596.48
immediate (CR) block cleanout applications420.060.01
immediate (CURRENT) block cleanout applications2,6203.680.42
index crx upgrade (positioned)710.100.01
index crx upgrade (prefetch)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 key961,8941,350.29153.98
index range scans202,670284.5032.44
index reclamation/extension switch00.000.00
index split cancel wait noclean10.000.00
leaf node 90-10 splits90.010.00
leaf node splits1010.140.02
lob reads1,2291.730.20
lob writes14,82020.802.37
lob writes unaligned14,82020.802.37
logical read bytes from cache320,763,928,576450,281,567.9351,346,875.07
logons cumulative2020.280.03
max cf enq hold time00.000.00
messages received12,88718.092.06
messages sent12,88718.092.06
min active SCN optimization applied on CR3,8415.390.61
no work - consistent read gets35,408,70849,705.995,668.11
non-idle wait count1,073,9691,507.61171.92
opened cursors cumulative172,866242.6727.67
parse count (describe)00.000.00
parse count (failures)20.000.00
parse count (hard)2800.390.04
parse count (total)4,2615.980.68
parse time cpu1360.190.02
parse time elapsed4600.650.07
physical read IO requests5,378,5437,550.28860.98
physical read bytes44,079,095,80861,877,295.447,056,042.23
physical read total IO requests5,384,5727,558.75861.95
physical read total bytes44,198,092,28862,044,340.167,075,090.81
physical read total multi block requests340.050.01
physical reads5,380,7497,553.38861.33
physical reads cache5,380,7497,553.38861.33
physical reads cache prefetch5,105,7287,167.31817.31
physical reads direct00.000.00
physical reads direct (lob)00.000.00
physical reads direct temporary tablespace00.000.00
physical write IO requests37,49852.646.00
physical write bytes382,918,656537,533.0561,296.41
physical write total IO requests44,92363.067.19
physical write total bytes422,396,416592,951.0967,615.88
physical write total multi block requests3840.540.06
physical writes46,74365.627.48
physical writes direct4170.590.07
physical writes direct (lob)230.030.00
physical writes direct temporary tablespace3720.520.06
physical writes from cache46,32665.037.42
physical writes non checkpoint42,80560.096.85
pinned buffers inspected1,1591.630.19
pinned cursors current20.000.00
prefetched blocks aged out before use10.000.00
process last non-idle time7151.000.11
queries parallelized30.000.00
recursive calls908,2361,274.96145.39
recursive cpu usage28,92340.604.63
redo KB read12,28817.251.97
redo blocks checksummed by FG (exclusive)6,3248.881.01
redo blocks written65,07791.3510.42
redo blocks written (group 0)00.000.00
redo blocks written (group 1)00.000.00
redo buffer allocation retries00.000.00
redo entries110,098154.5517.62
redo log space requests00.000.00
redo ordering marks00.000.00
redo size30,360,57642,619.534,860.02
redo size for direct writes2840.400.05
redo subscn max counts3,3354.680.53
redo synch long waits110.020.00
redo synch time8,29411.641.33
redo synch time (usec)82,950,064116,443.5313,278.38
redo synch time overhead (usec)230,710323.8736.93
redo synch time overhead count ( 2ms)6,3818.961.02
redo synch time overhead count ( 8ms)60.010.00
redo synch time overhead count ( 32ms)00.000.00
redo synch writes6,4809.101.04
redo wastage1,830,2642,569.29292.98
redo write active strands6,9959.821.12
redo write broadcast ack count220.030.00
redo write broadcast ack time59,13883.029.47
redo write finish time71,149,02699,877.4911,389.31
redo write gather time252,108353.9040.36
redo write info find6,3878.971.02
redo write schedule time293,169411.5446.93
redo write size count ( 4KB)3,8225.370.61
redo write size count ( 8KB)1,9352.720.31
redo write size count ( 16KB)1,0171.430.16
redo write size count ( 32KB)690.100.01
redo write size count ( 128KB)250.040.00
redo write size count ( 256KB)50.010.00
redo write size count ( 512KB)20.000.00
redo write size count (1024KB)10.000.00
redo write size count (inf)00.000.00
redo write time7,1169.991.14
redo write time (usec)71,155,68599,886.8311,390.38
redo write total time71,307,072100,099.3511,414.61
redo write worker delay (usec)00.000.00
redo write worker delay count00.000.00
redo writes6,8769.651.10
redo writes (group 0)00.000.00
redo writes (group 1)00.000.00
redo writes adaptive all6,8779.651.10
redo writes adaptive worker00.000.00
rollback changes - undo records applied210.030.00
rollbacks only - consistent read gets2350.330.04
root node splits00.000.00
rows fetched via callback924,0451,297.15147.92
saved cleanout failures: callback failure20.000.00
saved cleanouts190.030.00
saved cleanouts successfully completed170.020.00
securefile allocation bytes106,496149.5017.05
securefile allocation chunks130.020.00
securefile bytes non-transformed98,576138.3815.78
securefile direct read bytes00.000.00
securefile direct read ops00.000.00
securefile direct write bytes106,496149.5017.05
securefile direct write ops130.020.00
securefile number of non-transformed flushes290.040.00
segment cfs allocations00.000.00
segment chunks allocation from dispenser130.020.00
segment dispenser allocations130.020.00
segment dispenser load empty00.000.00
segment dispenser load tasks00.000.00
segment prealloc bytes00.000.00
segment prealloc ops30.000.00
segment prealloc tasks00.000.00
segment prealloc time (ms)2,6413.710.42
segment prealloc ufs2cfs bytes00.000.00
segment total chunk allocation00.000.00
session cursor cache hits170,319239.0927.26
session logical reads39,156,15754,966.586,267.99
shared hash latch upgrades - no wait1,632,9182,292.26261.39
shared hash latch upgrades - wait2690.380.04
shared io pool buffer get success130.020.00
sorts (disk)00.000.00
sorts (memory)2,1463.010.34
sorts (rows)34,616,13148,593.395,541.24
sql area evicted1,7802.500.28
sql area purged250.040.00
summed dirty queue length130,071182.5920.82
switch current caused by our pin1190.170.02
switch current to new buffer1330.190.02
table fetch by rowid41,887,37658,800.616,705.20
table fetch continued row710.100.01
table scan blocks gotten1,080,7221,517.09173.00
table scan disk non-IMC rows gotten30,292,45942,523.914,849.12
table scan rows gotten30,292,45942,523.914,849.12
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)32,73845.965.24
temp space allocated (bytes)00.000.00
total cf enq hold time4,2575.980.68
total number of cf enq holders1160.160.02
total number of times SMON posted20.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 size8,617,77212,097.441,379.51
user calls25,40535.664.07
user commits6,2478.771.00
user logons cumulative290.040.00
user logouts cumulative270.040.00
user rollbacks00.000.00
workarea executions - onepass00.000.00
workarea executions - optimal16,88923.712.70
write clones created in background00.000.00
write clones created in foreground340.050.01


Back to Instance Activity Statistics
Back to Top

Instance Activity Stats - Absolute Values

StatisticBegin ValueEnd Value
logons current9396
opened cursors current153155
session cursor cache count22,08723,020
session pga memory550,921,568592,514,520
session pga memory max796,963,456876,091,480
session uga memory1,737,664,9121,793,835,392
session uga memory max58,722,562,26459,741,541,176


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 Reads41G7548.3858,997M0M0.000M275,2K19.77ms
DBWR0M0.000M362M52.16,508M0 
Others113M8.47,159M9M1.07,013M48083.90ms
LGWR0M0.000M32M9.91,045M694510.21ms
Direct Writes0M0.000M1M0.02,001M0 
TOTAL:41,2G7556.8559,155M404M63.16,567M287K19.28ms


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 File41G7549.7259,006M362M52.08,508M511.24us8.93ms
Control File93M8.40,131M6M0.53,008M1.82ms 
Log File20M0.03,028M31M9.91,044M19.00ms1204.40ms
Temp File3M0.62,004M4M0.56,006M2.36ms 
Other0M0.020M0M0.080M21.08ms 
TOTAL:41,2G7558.7959,169M403M63.16,566M512.90us712.15ms


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 41G7548.4058,997M0M0.000M216,4K6.37ms
Buffer Cache Reads (Data File) 41G7547.7958,991M0M0.000M216K6.37ms
Buffer Cache Reads (Temp File) 4M0.61,006M0M0.000M4332.46ms
DBWR 0M0.000M362M52.16,508M0 
DBWR (Data File) 0M0.000M361M52.06,507M0 
DBWR (Temp File) 0M0.000M1M0.11,001M0 
Others 113M8.44,159M9M0.98,013M43742.90ms
Others (Control File) 93M8.40,131M6M0.53,008M43622.87ms
Others (Log File) 20M0.03,028M0M0.000M319.33ms
Others (Temp File) 0M0.010M3M0.45,004M911.56ms
Others (Data File) 0M0.000M0M0.010M0 
LGWR (Log File) 0M0.000M32M9.91,045M0 
LGWR 0M0.000M32M9.91,045M0 
Direct Writes (Data File) 0M0.000M1M0.02,001M0 
Direct Writes 0M0.000M1M0.02,001M0 
TOTAL: 41,2G7556.8459,155M404M63.08,567M220,8K6.30ms


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,827,3268639,143,9165,380,38546,326002,851


Back to Buffer Pool Statistics
Back to Top

Checkpoint Activity

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


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
B00292192823481169865123481  0
E0342692647372678169865172678  1


Back to Advisory Statistics
Back to Top

MTTR Advisory

No data exists for this section of the report.

Back to Advisory Statistics
Back to Top

Buffer Pool Advisory

PSize for Est (M)Size FactorBuffers (thousands)Est Phys Read FactorEstimated Phys Reads (thousands)Est Phys Read TimeEst %DBtime for Rds
D1,5360.101792.6534,850131235.00
D3,0720.203582.4732,476128864.00
D4,6080.295372.3030,232126624.00
D6,1440.397162.1227,956124351.00
D7,6800.498951.9525,719122118.00
D9,2160.591,0741.7723,270119672.00
D10,7520.691,2531.5920,897117303.00
D12,2880.781,4321.4018,487114897.00
D13,8240.881,6111.2216,034112449.00
D15,3600.981,7901.0313,606110024.00
D15,6801.001,8271.0013,16219581.00
D16,8961.081,9690.8711,50417926.00
D18,4321.182,1480.759,87416299.00
D19,9681.272,3270.739,58416008.00
D21,5041.372,5060.729,49515920.00
D23,0401.472,6850.729,43415859.00
D24,5761.572,8640.719,37415799.00
D26,1121.673,0430.719,32215747.00
D27,6481.763,2220.719,28115706.00
D29,1841.863,4010.709,24315668.00
D30,7201.963,5800.709,20915634.00


Back to Advisory Statistics
Back to Top

PGA Aggr Summary

PGA Cache Hit %W/A MB ProcessedExtra W/A MB Read/Written
100.0014,5310


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,4454,380.860.000.000.000.00614,190
E5,9984,4144,353.250.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
2K4K2,4122,41200
64K128K383800
128K256K272700
256K512K161600
512K1024K13,67913,67900
1M2M37937900
2M4M393900
4M8M16216200
8M16M767600
16M32M525200
32M64M2200


Back to Advisory Statistics
Back to Top

PGA Memory Advisory

PGA Target Est (MB)Size FactrW/A MB ProcessedEstd Extra W/A MB Read/ Written to Disk Estd PGA Cache Hit %Estd PGA Overalloc CountEstd Time
7500.13131,761.90224,288.2537.00226125,167,413
1,5000.25131,761.9054,156.1371.00065,358,429
2,9990.50131,761.9050,568.3672.00064,097,170
4,4990.75131,761.9017,663.6388.00052,529,697
5,9981.00131,761.9017,663.6388.00052,529,697
7,1981.20131,761.9017,663.6388.00052,529,697
8,3971.40131,761.9017,663.6388.00052,529,697
9,5971.60131,761.9017,663.6388.00052,529,697
10,7961.80131,761.9017,663.6388.00052,529,697
11,9962.00131,761.9017,663.6388.00052,529,697
17,9943.00131,761.9017,663.6388.00052,529,697
23,9924.00131,761.9017,663.6388.00052,529,697
35,9886.00131,761.9017,663.6388.00052,529,697
47,9848.00131,761.9017,663.6388.00052,529,697


Back to Advisory Statistics
Back to Top

Shared Pool Advisory

Shared Pool Size(M)SP Size FactrEst LC Size (M)Est LC Mem ObjEst LC Time Saved (s)Est LC Time Saved FactrEst LC Load Time (s)Est LC Load Time FactrEst LC Mem Obj Hits (K)
2,0481.002055,970536,9261.001161.005,370
2,1121.032697,992536,9351.001070.925,371
2,1761.0633210,198536,9481.00940.815,374
2,2401.0939612,022536,9501.00920.795,374
2,3041.1346013,846536,9511.00910.785,374
2,3681.1652415,638536,9521.00900.785,374
2,4321.1958817,316536,9521.00900.785,375
2,4961.2265218,835536,9521.00900.785,375
2,5601.2571320,661536,9521.00900.785,375
2,6241.2871320,661536,9521.00900.785,375
2,8161.3871320,661536,9521.00900.785,375
3,0721.5071320,661536,9521.00900.785,375
3,3281.6371320,661536,9521.00900.785,375
3,5841.7571320,661536,9521.00900.785,375
3,8401.8871320,661536,9521.00900.785,375
4,0962.0071320,661536,9521.00900.785,375


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.2548,55134,849,986
6,7680.3843,96130,231,488
9,0240.5041,66027,955,801
11,2800.6336,97923,268,861
13,5360.7534,60620,895,777
15,7920.8829,74616,033,784
18,0481.0026,87613,161,865
20,3041.1323,5899,874,031
22,5601.2523,2999,583,154
24,8161.3823,1519,434,425
27,0721.5023,0579,322,549
29,3281.6322,9989,280,431
31,5841.7522,9259,208,041
33,8401.8822,9259,208,041
36,0962.0022,9259,208,041


Back to Advisory Statistics
Back to Top

Streams Pool Advisory

No data exists for this section of the report.

Back to Advisory Statistics
Back to Top

Java Pool Advisory

No data exists for this section of the report.

Back to Advisory Statistics
Back to Top

Wait Statistics

Back to Top

Buffer Wait Statistics

ClassWaitsTotal Wait Time (s)Avg Time (ms)
data block2,846176
segment header2015
undo header100


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) 632632018228.57
PS-PX Process Reservation 618618020901.15
CF-Controlfile Transaction 1,5351,53414201.55
TS-Temporary Segment 777703000.57
TO-Temp Object 29529502200.55
HW-Segment High Water Mark 5,7485,74801600.56
WF-AWR Flush 222202000.30
TX-Transaction (index contention) 660600.33
WT-AWR CDB-Wide Table Lock 17170300.67
DW-In memory Dispenser 330300.67
FB-Format Block 3703700500.20
TM-DML 36,68236,6830300.33
PE-Parameter 990101.00
TD-KTF map table enqueue (KTF dump entries) 110101.00
TK-Auto Task Serialization (Auto Task Serialization) 110101.00
TA-Instance Undo 330300.00
AF-Advisor Framework (task serialization) 770100.00
PG-Global Parameter 440100.00
DR-Distributed Recovery 110100.00
MW-MWIN Schedule 110100.00
TX-Transaction 7,6127,612000 
TT-Tablespace 6,0266,026000 
JG-Job Scheduler1 3,0033,003000 
JG-Job Scheduler1 (queue lock) 3,0033,003000 
SJ-KTSJ Slave Task Cancel (Slave Task Cancel) 502502000 
JG-Job Scheduler1 (q mem clnup lck) 286286000 
DD-ASM Local Disk Group 252252000 
CU-Cursor 250250000 
SE-Session Migration 225225000 
MR-Media Recovery 116116000 
IS-Instance State 8989000 
BU-Buddy Instance Context (recovery set construct) 8181000 
DA-Instance DP Array (Slave Process Array) 7474000 
IT-In-Mem Temp Table Meta Creation 5656000 
AE-Edition Lock (lock) 3232000 
TH-Threshold Chain (metric threshold evaluation) 1212000 
PR-Process Startup 44000 
PV-KSV slave startup (syncstart) 44000 
PZ-Password File Metadata Cache (load passwordfile metadata) 44000 
SH-Active Session History Flushing 33000 
FP-File Object (global fob contention) 22000 
PF-Password File 22000 
PW-Buffer Cache PreWarm (flush prewarm buffers) 22000 
US-Undo Segment 22000 
XR-Quiesce / Force Logging (database force logging) 22000 
RS-Reclaimable Space (read alert level) 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
50.482,3461,0821630,1/30,10/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:224822,3461,08216300/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 0260.00
AQ Coord jobx_kwsbgsgn latch240.00 00 
AQ Message drive state object latch10.00 00 
AQ Sharded master pool latch240.00 00 
AQ deq hash table latch10.00 00 
ASM Keyed state latch630.00 00 
ASM allocation40,7610.00 00 
ASM connection state latch1,9390.00 00 
ASM db client latch7210.00 00 
ASM map headers420.00 00 
ASM map load waiting list100.00 00 
ASM map operation freelist2,6090.00 00 
ASM map operation hash table10,871,7610.000.0000 
ASM network background latch1,8970.00 00 
ASM network state latch330.00 00 
ASM remote client latch110.00 00 
AWR Alerted Metric Element list5,9720.00 00 
Autotask management120.00 00 
Change Notification Hash table latch5500.00 00 
Column stats entry latch10.00 00 
Consistent RBA6,8700.00 00 
DML lock allocation66,7320.00 00 
Event Group Locks2360.00 00 
FIB s.o chain latch210.00 00 
FOB consolidated s.o list latch210.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 statistics470.00 08,3910.00
I/O Staticstics latch10.00 00 
ILM Stats Stripe Latch10.00 00 
ILM Stats main anchor latch6880.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 latch80.00 00 
IPC stats buffer allocation latch10.00 00 
In memory undo latch10.00 00 
JS Sh mem access1440.00 00 
JS broadcast add buf latch1640.00 00 
JS broadcast drop buf latch1640.00 00 
JS broadcast load blnc latch1640.00 00 
JS mem alloc latch40.00 00 
JS queue access latch50.00 00 
JS queue state obj latch6,0060.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 latch3,8880.00 00 
KFMD SGA4070.00 00 
KGNFS-NFS:SHM structure10.00 00 
KGNFS-NFS:SVR LIST2390.00 00 
KJC message pool KGH calls10.00 00 
KJC message pool free list304,6880.190.010226,3300.06
KJC message pool pending avail list10.00 00 
KJCT flow control latch2,067,5390.020.0100 
KMG MMAN ready and startup request latch2380.00 00 
KMG resize request state object freelist40.00 00 
KSFS OFS ctx level parent latch10.00 00 
KSFS OFS req layer parent latch10.00 00 
KSFS OFS sess layer parent latch10.00 00 
KSFS Receive and Send Queue latch10.00 00 
KSFS id table parent latch10.00 00 
KSFS ksfs_node latch10.00 00 
KSFSD name cache parent latch10.00 00 
KSGL LS Segment latch10.00 00 
KSGL SGA anchor latch10.00 00 
KSIPC ASPC anchor latch10.00 00 
KSIPC SGA allocation parent latch1650.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 latch2670.00 00 
KSXR hang analysis phase 2 latch4600.00 00 
KSXR large replies280.00 00 
KTF sga latch20.00 02220.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 latch1040.00 00 
Latch for NonceHistory10.00 00 
Locator state objects pool parent latch10.00 00 
Lost write change tracking10.00 00 
Lsod array latch940.00 00 
MGA asr alloc latch110.00 00 
MGA heap latch990.00 00 
MGA shared context latch5,3810.060.3300 
MGA shared context root latch1370.00 00 
MQL Tracking Latch0  0150.00
Memory Management Latch580.00 02380.00
Memory Queue10.00 00 
Memory Queue Message Subscriber #110.00 00 
Memory Queue Message Subscriber #210.00 00 
Memory Queue Message Subscriber #310.00 00 
Memory Queue Message Subscriber #410.00 00 
Memory Queue Subscriber10.00 00 
Message cache latch10.00 00 
MinActiveScn Latch360.00 00 
Mutex10.00 00 
Mutex Stats10.00 00 
Nologging Standby SCN Time Map cache2210.00 00 
OS process6160.00 00 
OS process allocation1,4970.00 00 
OS process: request allocation630.00 00 
PDB Hash Table Latch10.00 00 
PDB LRU structure10.00 00 
PL/SQL warning settings2020.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 latch21,7130.00 00 
Report Request stats latch370.00 00 
Report Request struct latch520.00 00 
Request holder compeltion list latch90.00 00 
Retry Ht elm latch10.00 00 
Retry bkt latch10.00 00 
SGA IO buffer pool latch180.00 0180.00
SGA Logging Bkt Latch10.00 00 
SGA Logging Log Latch3,3610.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 latch750.00 01030.00
SQL memory manager latch10.00 02370.00
SQL memory manager workarea list latch81,6790.00 00 
SR Stats Stripe Latch10.00 00 
Sched IM Job latch120.00 00 
Sched InMem Job Cache10.00 00 
Shared B-Tree270.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 latch6,3860.00 00 
active service list7,9060.010.000526,4480.00
archive destination240.00 00 
begin backup scn array170.00 00 
buffer pool1,4930.00 00 
business card1470.00 00 
cache buffer handles4,3160.00 00 
cache buffers chains87,338,8150.000.05010,794,3710.08
cache buffers lru chain5,510,1980.210.0105,791,4830.38
cache table scan latch1550.00 01550.00
call allocation1,0470.100.0000 
change notification client cache latch10.00 00 
channel handle pool latch1350.00 00 
channel operations parent latch3,9750.100.0000 
checkpoint queue latch237,4140.000.00051,7930.00
client/application info317,8270.020.0000 
compile environment latch2200.00 00 
corrupted undo seg latch640.00 00 
cp handoff latch10.00 00 
cp pool latch10.00 00 
cp server hash latch10.00 00 
cp sga latch110.00 00 
cp srv type state latch7150.00 00 
cp srv type wait latch10.00 00 
cr slave free list10.00 00 
cvmap freelist lock10.00 00 
deferred cleanup latch110.00 00 
dispatcher info440.00 00 
dml lock allocation110.00 00 
done queue latch10.00 00 
dtp latch340.00 00 
dummy allocation4020.00 00 
eighth spare latch - X parent10.00 00 
eleventh spare latch - children10.00 00 
enqueue freelist latch10.00 044,6320.00
enqueue hash chains228,5700.010.00080.00
enqueues90.00 00 
error message lists3630.00 00 
fast space usage latch130.00 00 
fifteenth spare latch - children10.00 00 
file cache latch4870.00 00 
first Audit Vault latch220.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 element23,431,5890.020.0101,120,4800.02
gc xid list1310.00 00 
gcs commit scn state10.00 00 
gcs lock state resolution latch10.00 00 
gcs nodemap pool165,7710.00 00 
gcs opaque info freelist111,2470.020.0000 
gcs partitioned table hash9,901,1170.000.0001,1850.00
gcs pcm hashed value bucket hash10.00 00 
gcs remaster request queue30.00 00 
gcs resource freelist1,289,2590.020.000558,8350.03
gcs resource hash19,485,7420.010.0301790.00
gcs resource scan list10.00 00 
gcs resource timerq list10.00 00 
gcs resource validate list10.00 00 
gcs shadows freelist2,886,0400.00 00 
ges cached resource lists120,6590.000.00024,4240.00
ges deadlock list3500.00 00 
ges domain table486,4090.00 00 
ges enqueue table freelist104,9150.000.0000 
ges group table488,6290.00 00 
ges process hash list18,7230.00 00 
ges process parent latch967,3710.001.0000 
ges process table freelist630.00 00 
ges remote lock freelist3380.00 00 
ges resource hash list691,7680.040.0202,7270.04
ges resource scan list1710.00 00 
ges resource table freelist18,4780.00 00 
ges s-lock bitvec freelist9440.00 00 
ges timeout list5650.00 0460.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 latch460.00 00 
hash table Sql Plan Finding latch160.00 0810.00
hash table column usage latch900.00 0145,1760.00
hash table expression usage tracking latch10.00 00 
hash table sql contorl latch10.00 00 
heartbeat check10.00 02800.00
heartbeat structure management0  03570.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 latch910.00 00 
interrupt manipulation7500.00 00 
intra txn parallel recovery10.00 00 
io pool granule list260.00 00 
io pool granule metadata list530.00 00 
job workq parent latch10.00 00 
job_queue_processes parameter latch120.00 00 
k2q global data latch4760.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,8890.050.0000 
kjci process context latch4,6640.090.00013,5670.01
kjci process list latch2,3830.00 00 
kjci request sequence latch5920.00 00 
kjcipctx state object freelist latch310.00 00 
kjoedcso state object freelist latch110.00 00 
kjoeq omni enqueue hash bucket latch10.00 00 
kjoer owner hash bucket10.00 00 
kjpm my inst data240.00 00 
kjsc Request obj freelist latch660.00 00 
kjsc Ring Buffer obj freelist latch330.00 00 
kjsc protect control request queue330.00 07,1690.00
kjsc protect warm up context2320.00 00 
kjsca protect pkey hash table bucket10.00 00 
kjsca protect service hash table bucket7,1700.00 00 
kjscpss state object freelist latch330.00 00 
kokc descriptor allocation latch600.00 00 
kpoxft latch0  01421.43
krso process250.00 00 
ksbxic instance latch600.00 00 
ksevn object root latch2380.00 00 
ksfv messages10.00 00 
ksi resource reuse count10.00 00 
ksim group membership cache1,5870.00 00 
ksim membership request latch0  03710.00
ksns object latch10.00 00 
kss move lock90.00 00 
ksuosstats global area550.00 02720.00
ksutcpistat latch10.00 00 
ksv allocation latch260.00 00 
ksv class latch15,6830.080.0000 
ksv msg queue latch700.00 0690.00
ksxp shared latch630.00 00 
ksxp so latch630.00 00 
ksz_so allocation latch630.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 data220.00 00 
ktm prv jrnls10.00 00 
ktmpj HT ls10.00 00 
kwqbsn:qsga260.00 00 
kwslbmdl: metadata latch250.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 latch170.00 00 
kwsslLat: skiplist latch10.00 00 
kxfxscanrate_latch10.00 00 
lgwr LWN SCN6,9090.030.0000 
list of block allocation730.00 00 
loader state object freelist6660.00 00 
lob segment dispenser latch330.00 00 
lob segment hash table latch600.00 00 
lob segment query latch10.00 00 
lock DBA buffer during media recovery10.00 00 
log write info0  07,1280.13
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 standby240.00 00 
message bitmap latch10.00 00 
message pool operations parent latch1,3580.00 00 
messages81,8260.120.0000 
msg queue latch10.00 00 
multiblock read objects118,1220.000.0000 
name-service memory objects7800.00 00 
name-service namespace bucket4,6990.00 00 
name-service pending queue3780.00 00 
name-service request queue8,1440.00 00 
ncodef allocation latch110.00 00 
ninth spare latch - X parent10.00 00 
object queue header freelist63,0030.000.0000 
object queue header operation11,251,5680.000.020100,5500.00
object queue memory10.00 00 
object stats modification720.00 00 
parallel query alloc buffer1,7410.00 01100.00
parallel query stats3890.00 00 
parallel txn reco latch1020.00 00 
parameter table management2,6480.00 00 
pdb enqueue hash chains10.00 00 
peshm10.00 00 
pesom_free_list10.00 00 
pesom_hash_node10.00 00 
pkey global statistics10.00 00 
pmon dead latch120.00 00 
post/wait queue46,9300.330.00043,3510.42
process allocation3,5910.00 00 
process group creation630.00 00 
process memory detail10.00 00 
process pkey statistics list10.00 00 
process queue7990.00 00 
process queue reference74,8370.000.00015,3552.29
qmn task queue latch1040.00 00 
quarantine object110.00 00 
query server freelists8480.00 00 
query server process5090.00 00 
queued dump request20.00 00 
queuing load statistics10.00 00 
read-moslty lock queue under pkey10.00 00 
recovery domain hash bucket2890.00 00 
redo allocation20,8460.180.000109,9910.09
redo copy10.00 0110,0330.03
redo transport task10.00 00 
redo writing26,9360.00 00 
remote tool request latch1990.00 00 
resmgr group change latch3540.00 00 
resmgr:active threads6100.160.0006,9770.00
resmgr:actses change group2640.00 00 
resmgr:actses change state40.00 00 
resmgr:free threads list5110.590.0000 
resmgr:plan CPU method10.00 00 
resmgr:plan change alloc latch10.00 00 
resmgr:plan change latch10.00 00 
resmgr:pq event array10.00 00 
resmgr:resource group CPU method210.00 00 
resmgr:schema config1140.00 0110.00
resmgr:session queuing10.00 00 
row cache objects10.00 00 
rt rmv count latch0  03570.00
second Audit Vault latch10.00 00 
segmented array pool130.00 00 
sequence cache26,6850.020.0000 
service drain list7120.00 00 
session allocation12,2560.00 011,8190.00
session idle bit74,2410.000.0000 
session queue latch10.00 00 
session state list latch4860.00 00 
session statistics4070.00 00 
session switching430.00 00 
session timer2380.00 00 
seventh spare latch - X parent10.00 00 
sga hash table parent latch10.00 00 
shard latch10.00 00 
shardgroup list latch2180.00 00 
shared pool50,2950.290.070510.00
shared pool sim alloc150.00 00 
shared pool simulator2,4920.00 00 
shared server configuration2390.00 00 
sim partition latch10.00 00 
simulator hash latch2,846,5960.000.0000 
simulator lru latch1630.00 02,793,2590.10
sixth spare latch - X parent10.00 00 
sort extent pool30,3430.00 00 
space background task latch1,90960.400.9404811.04
state object free list20.00 00 
statistics aggregation1450.00 00 
subscriber Ht bkt10.00 00 
tablespace key chain10.00 00 
temp lob duration state obj allocation11,3980.00 00 
temporary table state object allocation250.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 latch260.00 00 
transaction allocation5590.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 data25,3790.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 chain5,510,19811,81314411,672
gc element23,431,5894,524544,470
gcs resource hash19,485,7421,211321,179
space background task latch1,9091,1531,08579
cache buffers chains87,338,8151,02852975
KJC message pool free list304,6885754571
KJCT flow control latch2,067,5394525447
gcs resource freelist1,289,2592861285
ges resource hash list691,7682835278
object queue header operation11,251,5682645259
shared pool50,29514510135
MGA shared context latch5,381312
ges process parent latch967,371110


Back to Latch Statistics
Back to Top

Latch Miss Sources

Latch NameWhereNoWait Misses SleepsWaiter Sleeps
KJC message pool free listkjcsmpav: allocate a msg buffer024
KJC message pool free listkjcspfmbq: free vector of msg buffers020
KJCT flow control latchkjctcsnd: send normal message030
KJCT flow control latchkjcts_sedeqv3: dequeue a vector of msgs010
KJCT flow control latchkjcts_sqenq: queue a message011
MGA shared context latchksm_mga_attach_whr2020
cache buffers chainskcbzacrb: convert latch0420
cache buffers chainskcbzibmlt: multi-block read: nowait0150
cache buffers chainskcbzwb063
cache buffers chainskcbgtcr: convert latch010
cache buffers chainskcbgtcr: convert latch 4010
cache buffers chainskcbgtcr: fast path exam0144
cache buffers chainskcbgtcr: retry after read010
cache buffers chainskcbgtcr: slow path excl014
cache buffers chainskcbzgb: scan from tail nowait010
cache buffers lru chainkcbzgb_20136116
cache buffers lru chainkcbzgws080
gc elementkclnfndnewm02415
gc elementkclulb01818
gc elementkcllkop0710
gc elementkclplz060
gc elementKCLUNLNK0110
gc elementkclmergepifd010
gcs resource freelistkjbralc: check freelist nowait010
gcs resource hashkjbcropen0173
gcs resource hashkjbclose_remaster0122
gcs resource hashkjbcrcomplete020
gcs resource hashkclfwrite1010
ges process parent latchkjata_fg010
ges resource hash listkjlrlr: remove lock from resource queue032
ges resource hash listkjakcai: search for resp by resname010
ges resource hash listkjrmas1: lookup master node010
object queue header operationkcbo_unlink_q055
space background task latchktsj_grab_task06571,066
space background task latchktsj_detach_task041519
space background task latchktsj_smco_purgeexpired0130
unknown latchkghalo0910
unknown latchkghfnd: min scan010


Back to Latch Statistics
Back to Top

Mutex Sleep Summary

Mutex TypeLocationSleepsWait Time (ms)
Cursor Pinkksfbc [KKSCHLFSP2]2324
Cursor Pinkkslce [KKSCHLPIN2]1314
Library Cachekglhdgn2 106111
Library Cachekglpndl1 95719
Library Cachekglpin1 449
Cursor PinkksLockDelete [KKSCHLPIN6]22
Row Cache[06] kqrGetClusterLock10
Library Cachekglget2 211
Library Cachekgllkc1 5710
Library Cachekglpnal2 9110


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 INDEX74279742792,011,0725.14
SOESOE PRODUCT_DESCRIPTIONS TABLE74074740741,213,3283.10
SOESOE ORDERSSYS_P551TABLE PARTITION74011740111,036,4002.65
SOESOE ORDERSSYS_P555TABLE PARTITION74015740151,035,8082.65
SOESOE ORDERSSYS_P548TABLE PARTITION74008740081,035,5842.64


Back to Segment Statistics
Back to Top

Segments by Physical Reads

OwnerTablespace NameObject NameSubobject NameObj. TypeObj#Dataobj#Physical Reads%Total
SOESOE ORDERSSYS_P547TABLE PARTITION7400774007165,8923.08
SOESOE ORDERSSYS_P549TABLE PARTITION7400974009165,0263.07
SOESOE ORDERSSYS_P548TABLE PARTITION7400874008164,7933.06
SOESOE ORDERSSYS_P550TABLE PARTITION7401074010164,6453.06
SOESOE ORDERSSYS_P551TABLE PARTITION7401174011164,1863.05


Back to Segment Statistics
Back to Top

Segments by Physical Read Requests

OwnerTablespace NameObject NameSubobject NameObj. TypeObj#Dataobj#Phys Read Requests%Total
SOESOE ORDERSSYS_P547TABLE PARTITION7400774007165,8923.08
SOESOE ORDERSSYS_P549TABLE PARTITION7400974009165,0273.07
SOESOE ORDERSSYS_P548TABLE PARTITION7400874008164,7933.06
SOESOE ORDERSSYS_P550TABLE PARTITION7401074010164,6453.06
SOESOE ORDERSSYS_P551TABLE PARTITION7401174011164,1863.05


Back to Segment Statistics
Back to Top

Segments by UnOptimized Reads

OwnerTablespace NameObject NameSubobject NameObj. TypeObj#Dataobj#UnOptimized Reads%Total
SOESOE ORDERSSYS_P547TABLE PARTITION7400774007165,8923.08
SOESOE ORDERSSYS_P549TABLE PARTITION7400974009165,0273.07
SOESOE ORDERSSYS_P548TABLE PARTITION7400874008164,7933.06
SOESOE ORDERSSYS_P550TABLE PARTITION7401074010164,6453.06
SOESOE ORDERSSYS_P551TABLE PARTITION7401174011164,1863.05


Back to Segment Statistics
Back to Top

Segments by Optimized Reads

No data exists for this section of the report.

Back to Segment Statistics
Back to Top

Segments by Direct Physical Reads

No data exists for this section of the report.

Back to Segment Statistics
Back to Top

Segments by Physical Writes

OwnerTablespace NameObject NameSubobject NameObj. TypeObj#Dataobj#Physical Writes%Total
SOESOE ITEM_PRODUCT_IX INDEX74329743296,29213.46
SOESOE CUSTOMERS_PK INDEX74279742799091.94
SOESOE ORD_ORDER_DATE_IX INDEX74332743323170.68
SOESOE ORDERSSYS_P547TABLE PARTITION74007740071610.34
SOESOE ORDERSSYS_P560TABLE PARTITION74020740201520.33


Back to Segment Statistics
Back to Top

Segments by Physical Write Requests

OwnerTablespace NameObject NameSubobject NameObj. TypeObj#Dataobj#Phys Write Requests%Total
SOESOE ITEM_PRODUCT_IX INDEX74329743296,07416.20
SOESOE CUSTOMERS_PK INDEX74279742799092.42
SOESOE ORD_ORDER_DATE_IX INDEX74332743321870.50
SOESOE ORDERSSYS_P547TABLE PARTITION74007740071440.38
SOESOE ORDERSSYS_P548TABLE PARTITION74008740081040.28


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 PARTITION7446474464327.67


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 ITEM_PRODUCT_IX INDEX74329743297,28026.83
SOESOE ORD_ORDER_DATE_IX INDEX74332743322,97610.97
SYSSYSAUX WRH$_SYSSTAT_PKWRH$_SYSSTAT_1550963227_27INDEX PARTITION74446744461,6486.07
SOESOE CARDDETAILS_CUST_IX INDEX74366743661,1204.13
SOESOE CUSTOMERS_PK INDEX74279742798002.95


Back to Segment Statistics
Back to Top

Segments by Row Lock Waits

OwnerTablespace NameObject NameSubobject NameObj. TypeObj#Dataobj#Row Lock Waits% of Capture
SOESOE ORD_ORDER_DATE_IX INDEX7433274332450.00
SYSSYSAUX WRH$_SYSSTAT_PKWRH$_SYSSTAT_1550963227_27INDEX PARTITION7444674446225.00
SYSSYSAUX WRM$_SNAPSHOT_DETAILS_INDEX INDEX1158211582225.00


Back to Segment Statistics
Back to Top

Segments by ITL Waits

No data exists for this section of the report.

Back to Segment Statistics
Back to Top

Segments by Buffer Busy Waits

OwnerTablespace NameObject NameSubobject NameObj. TypeObj#Dataobj#Buffer Busy Waits% of Capture
SOESOE CARDDETAILS_CUST_IX INDEX7436674366150.00
SYSSYSTEM SEG$ TABLE148150.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
SOESOE INV_PRODUCT_IX INDEX74325743252,71099.05
SOESOE CUSTOMERS_PK INDEX742797427990.33
SOESOE ORDERSSYS_P570TABLE PARTITION740307403020.07
SOESOE ORDERSSYS_P573TABLE PARTITION740337403320.07
SOESOE ORDERSSYS_P554TABLE PARTITION740147401410.04


Back to Segment Statistics
Back to Top

Segments by CR Blocks Received

OwnerTablespace NameObject NameSubobject NameObj. TypeObj#Dataobj#CR Blocks Received%Total
SOESOE INV_PRODUCT_IX INDEX743257432571,17681.57
SOESOE ORDERSSYS_P547TABLE PARTITION74007740071820.21
SOESOE ORDERSSYS_P548TABLE PARTITION74008740081050.12
SOESOE ORDERSSYS_P549TABLE PARTITION7400974009660.08
SOESOE ORDERSSYS_P555TABLE PARTITION7401574015540.06


Back to Segment Statistics
Back to Top

Segments by Current Blocks Received

OwnerTablespace NameObject NameSubobject NameObj. TypeObj#Dataobj#Current Blocks Received%Total
SOESOE ORDERSSYS_P547TABLE PARTITION74007740074,1498.53
SOESOE ORDERSSYS_P578TABLE PARTITION74038740383,2106.60
SOESOE ORDERSSYS_P577TABLE PARTITION74037740372,7765.70
SOESOE ORDERSSYS_P554TABLE PARTITION74014740142,7155.58
SOESOE ORDERSSYS_P576TABLE PARTITION74036740362,2094.54


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_P548TABLE PARTITION740087400898,7463.72
SOESOE ORDERSSYS_P559TABLE PARTITION740197401995,1183.58
SOESOE ORDERSSYS_P567TABLE PARTITION740277402789,2573.36
SOESOE ORDERSSYS_P564TABLE PARTITION740247402488,4373.33
SOESOE ORDERSSYS_P558TABLE PARTITION740187401887,5463.29


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_control405.000 41
dc_cdbprops280.000 06
dc_files900.000 010
dc_global_oids2,0320.000 097
dc_histogram_data12,8630.940 07,621
dc_histogram_defs33,1441.040 47329,151
dc_object_grants120.000 018
dc_objects13,6890.460 885,281
dc_profiles400.000 01
dc_props1,0020.000 084
dc_rollback_segments5750.000 036
dc_segments4215.460 211,435
dc_sequences1827.780 1812
dc_tablespace_quotas333.330 02
dc_tablespaces6,1430.000 09
dc_users2,2430.041160.000188
outstanding_alerts450.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 POLICY580.00580.0000
BODY11,7350.0063,0180.0020
CLUSTER550.00550.0000
DBLINK1100.000 00
EDITION320.00640.0000
INDEX60.001070.0070
OBJECT ID22100.000 00
QUEUE710.00710.0000
SCHEMA1050.950 00
SQL AREA1,73413.49197,9250.2210025
SQL AREA BUILD23050.000 00
SQL AREA STATS14293.6614293.6600
TABLE/PROCEDURE1,1845.24134,0480.241200
TRANSFORMATION710.00710.0000
TRIGGER320.00323.1310


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 POLICY58585800
BODY19260,39760,39700
CLUSTER55555500
DBLINK1100000
EDITION32323200
INDEX10101000
QUEUE71717100
SCHEMA440000
TABLE/PROCEDURE2,97573,14773,14700
TRANSFORMATION71717100
TRIGGER0323200


Back to Library Cache Statistics
Back to Top

Memory Statistics

Back to Top

Memory Dynamic Components

ComponentBegin Snap Size (Mb)Current Size (Mb)Min Size (Mb)Max Size (Mb)Oper CountLast Op Typ/Mod
ASM Buffer Cache0.000.000.000.000STA/
DEFAULT 16K buffer cache0.000.000.000.000STA/
DEFAULT 2K buffer cache0.000.000.000.000STA/
DEFAULT 32K buffer cache0.000.000.000.000STA/
DEFAULT 4K buffer cache0.000.000.000.000STA/
DEFAULT 8K buffer cache0.000.000.000.000STA/
DEFAULT buffer cache15,552.0015,680.0015,552.0015,680.002GRO/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,048.002,048.002,176.002SHR/DEF
streams pool0.000.000.000.000STA/
unified pga pool0.000.000.000.000STA/


Back to Memory Statistics
Back to Top

Memory Resize Operations Summary

ComponentMin Size (Mb)Max Size (Mb)Avg Size (Mb)Re- SizesGrowsShrinks
DEFAULT buffer cache15,616.0015,680.0015,648.00220
shared pool2,048.002,112.002,080.00202


Back to Memory Statistics
Back to Top

Memory Resize Ops

StartEla (s)ComponentOper Typ/ModInit Size (M)DeltaTarget DeltaFinal (M)Sta
11/02 12:25:150bufcacheGRO/DEF15,61664 15,680COM
11/02 12:25:150sharedSHR/DEF2,112-64 2,048COM
11/02 12:21:120bufcacheGRO/DEF15,55264 15,616COM
11/02 12:21:120sharedSHR/DEF2,176-64 2,112COM


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,254.380.0065.09128.76354 5050
Other597.45 5.337.954545112112
PL/SQL7.115.340.060.271311094
SQL9.979.050.160.3823826236
Total3,868.9014.4070.65137.37402430334292
EFreeable3,186.310.0061.28123.51343 5252
Other636.61 5.548.354652115115
PL/SQL7.465.330.070.282311397
SQL10.929.200.170.3823826438
Total3,841.3014.5367.05132.52392436344302


Back to Memory Statistics
Back to Top

SGA Memory Summary

SGA regionsBegin Size (Bytes)End Size (Bytes) (if different)
Database Buffers16,441,671,68016,575,889,408
Fixed Size12,444,968 
Redo Buffers54,661,120 
Variable Size2,415,919,1042,281,701,376

Back to Memory Statistics
Back to Top

SGA breakdown difference by Pool and Name

PoolNameBegin MBEnd MB% Diff
largePX msg pool15.0015.000.00
largefree memory112.63112.630.00
sharedKGH: NO ACCESS 127.18 
sharedKGLH0110.95110.14-0.73
sharedKGLHD24.2623.49-3.19
sharedKQR X PO28.4528.28-0.60
sharedSO private sga28.8328.830.00
sharedSQLA266.88153.40-42.52
shareddb_block_hash_buckets64.0064.000.00
sharedfree memory177.42169.04-4.73
sharedgc name table64.0064.000.00
sharedgcs resources527.08527.080.00
sharedgcs resv res hash bucket96.0096.000.00
sharedgcs shadows287.50287.500.00
sharedges big msg buffers26.2926.290.00
sharedksunfy_meta 125.0325.030.00
sharedrow cache0.020.020.00
 buffer_cache15,552.0015,680.000.82
 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

No data exists for this section of the report.

Back to Advanced Queuing
Back to Top

Buffered Queues

No data exists for this section of the report.

Back to Advanced Queuing
Back to Top

Buffered Queue Subscribers

No data exists for this section of the report.

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

No data exists for this section of the report.

Back to Advanced Queuing
Back to Top

Persistent Queues Rate

No data exists for this section of the report.

Back to Advanced Queuing
Back to Top

Persistent Queue Subscribers

No data exists for this section of the report.

Back to Advanced Queuing
Back to Top

Resource Limit Stats

Resource NameCurrent UtilizationMaximum Utilization Initial Allocation Limit
ges_cache_ress2,9854,4140UNLIMITED
smartio_overhead_memory0171,0320UNLIMITED
smartio_sessions010UNLIMITED



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 %
7130.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.007130.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_number2  
job_queue_processes16  
listener_networks    
local_listenerNodeFQDN  
nls_languageCROATIAN  
nls_territoryCROATIA  
open_cursors3001000
pga_aggregate_target6289358848  
processes640  
remote_listenermyrac-scan.example.com:1521  
remote_login_passwordfileEXCLUSIVE  
resource_manager_planDEFAULT_PLAN  
sga_target18924699648  
thread2  
undo_tablespaceUNDOTBS2  


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
29qp10usqkqh03756252606540.64 db file parallel read32.16TABLE ACCESS - BY GLOBAL INDEX ROWID BATCHED27.84 SELECT TT.ORDER_TOTAL, TT.SALE...
db file sequential read4.32INDEX - RANGE SCAN4.16
gc cr multi block request2.72TABLE ACCESS - BY GLOBAL INDEX ROWID BATCHED2.40
56pwkjspvmg3h42411348557222.56 db file parallel read17.92TABLE ACCESS - BY GLOBAL INDEX ROWID BATCHED17.92 WITH STAGE1 AS (SELECT /*+ mat...
db file sequential read2.72INDEX - RANGE SCAN2.72
gc cr multi block request1.76TABLE ACCESS - BY GLOBAL INDEX ROWID BATCHED1.76
gkxxkghxubh1a7985507975917.92 db file parallel read13.92TABLE ACCESS - BY GLOBAL INDEX ROWID BATCHED13.92 SELECT ORDER_MODE, ORDERS.WARE...
db file sequential read2.08INDEX - RANGE SCAN2.08
gc cr multi block request1.28TABLE ACCESS - BY GLOBAL INDEX ROWID BATCHED1.28
c13sma6rkr27c2409034124193.04 db file sequential read2.72TABLE ACCESS - BY INDEX ROWID2.56 SELECT PRODUCTS.PRODUCT_ID, PR...
5ckxyqfvu60pj604778339132.08 db file sequential read1.92TABLE ACCESS - BY GLOBAL INDEX ROWID0.96 SELECT CUSTOMER_ID, CUST_FIRST...


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
29qp10usqkqh03756252606540.64 TABLE ACCESS - BY GLOBAL INDEX ROWID BATCHED31.04db file parallel read27.84 SELECT TT.ORDER_TOTAL, TT.SALE...
INDEX - RANGE SCAN4.16db file sequential read4.16
TABLE ACCESS - BY GLOBAL INDEX ROWID3.68db file parallel read3.20
56pwkjspvmg3h42411348557222.56 TABLE ACCESS - BY GLOBAL INDEX ROWID BATCHED19.68db file parallel read17.92 WITH STAGE1 AS (SELECT /*+ mat...
INDEX - RANGE SCAN2.88db file sequential read2.72
gkxxkghxubh1a7985507975917.92 TABLE ACCESS - BY GLOBAL INDEX ROWID BATCHED15.52db file parallel read13.92 SELECT ORDER_MODE, ORDERS.WARE...
INDEX - RANGE SCAN2.40db file sequential read2.08
c13sma6rkr27c2409034124193.04 TABLE ACCESS - BY INDEX ROWID2.56db file sequential read2.56 SELECT PRODUCTS.PRODUCT_ID, PR...
5ckxyqfvu60pj604778339132.08 INDEX - UNIQUE SCAN1.12db file sequential read0.96 SELECT CUSTOMER_ID, CUST_FIRST...


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

Top Sessions

Sid, Serial#% ActivityEvent% EventUserProgram# Samples ActiveXIDs
22,475829.76db file parallel read6.24 SOEJDBC Thin Client39/71 [ 55%]0
db file sequential read2.56 16/71 [ 22%]3
142,387559.76db file parallel read7.36 SOEJDBC Thin Client46/71 [ 65%]0
db file sequential read1.60 10/71 [ 14%]4
260,496889.76db file parallel read6.40 SOEJDBC Thin Client40/71 [ 56%]0
db file sequential read2.24 14/71 [ 20%]2
636,444909.76db file parallel read6.24 SOEJDBC Thin Client39/71 [ 55%]0
db file sequential read2.24 14/71 [ 20%]2
758,223819.76db file parallel read5.92 SOEJDBC Thin Client37/71 [ 52%]0
db file sequential read2.08 13/71 [ 18%]5


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

Top Blocking Sessions

Blocking Sid (Inst)% ActivityEvent Caused% EventUserProgram# Samples ActiveXIDs
127,64347( 2)1.60log file sync1.60 SYSoracle@rac2.example.com (LGWR)7/71 [ 10%]0


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.SALESREPSQUERY40.64 SQL40.64
SOE.ORDERENTRY.WAREHOUSEACTIVITYQUERY22.56 SQL22.56
SOE.ORDERENTRY.WAREHOUSEORDERSQUERY17.92 SQL17.92
SOE.ORDERENTRY.NEWORDER8.64 SQL8.64
SOE.ORDERENTRY.BROWSEPRODUCTS2.08 SQL1.92


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

Top Events

EventEvent ClassSession Type% ActivityAvg Active Sessions
db file parallel readUser I/OFOREGROUND 64.005.62
db file sequential readUser I/OFOREGROUND 20.961.84
gc cr multi block requestClusterFOREGROUND 5.760.51
CPU + Wait for CPUCPUFOREGROUND 3.200.28
log file syncCommitFOREGROUND 1.600.14


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 read64.00"5","127","127"13.12 filesblocksrequests
"1","127","127"11.84
"2","127","127"10.40
db file sequential read20.96"2","64064","1"0.16 file#block#blocks
gc cr multi block request5.76"2","755475","1"0.16 file#block#class#
log file sync1.60"12182","4700530","0"0.16 buffer#sync scnNOT DEFINED
log file parallel write1.12"1","7","1"0.32 filesblocksrequests


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

Top DB Objects

Object ID% ActivityEvent% EventObject Name (Type)Tablespace
743335.76db file sequential read5.44 SOE.ORD_WAREHOUSE_IX (INDEX)SOE
743304.16db file sequential read4.16 SOE.ORD_SALES_REP_IX (INDEX)SOE
740213.04db file parallel read2.72 SOE.ORDERS.SYS_P561 (TABLE PARTITION)SOE
740393.04db file sequential read3.04 SOE.INVENTORIES (TABLE)SOE
740362.72db file parallel read2.24 SOE.ORDERS.SYS_P576 (TABLE PARTITION)SOE


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

Activity Over Time

Slot Time (Duration)Slot CountEventEvent Count% Event
12:20:00 (5.0 min)309db file parallel read21935.04
db file sequential read6710.72
CPU + Wait for CPU71.12
12:25:00 (5.0 min)311db file parallel read18128.96
db file sequential read6410.24
gc cr multi block request294.64
12:30:00 (1.4 min)5gc cr multi block request50.80


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

ADDM Task ADDM:1550963227_2_33

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

Analysis Period
---------------
AWR snapshot range from 32 to 33.
Time period starts at 02.11.2019 12:19:29
Time period ends at 02.11.2019 12:31:22

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

Activity During the Analysis Period
-----------------------------------
Total database time was 6095 seconds.
The average number of active sessions was 8,55.

Summary of Findings
-------------------
Description                               Active Sessions      Recommendations
Percent of Activity
----------------------------------------  -------------------  ---------------
1  Top SQL Statements                        7,59 | 88,8          5
2  Undersized SGA                            4,86 | 56,89         1
3  Top Segments by "User I/O" and "Cluster"  1,65 | 19,35         5
4  Global Cache Messaging                    ,51 | 5,99           1
5  Global Cache Congestion                   ,15 | 1,8            1


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


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

Finding 1: Top SQL Statements
Impact is 7,6 active sessions, 88,8% 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 3,58 active sessions, 41,85% 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 131 times and had
an average elapsed time of 18 seconds.
Rationale
I/O and Cluster wait for INDEX "SOE.ORD_SALES_REP_IX" with object ID
74330 consumed 11% 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,99 active sessions, 23,23% 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
Action
Use bigger fetch arrays while fetching results from 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 73 times and had
an average elapsed time of 19 seconds.
Rationale
I/O and Cluster wait for INDEX "SOE.ORD_WAREHOUSE_IX" with object ID
74333 consumed 12% of the database time spent on this SQL statement.
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,58 active sessions, 18,45% 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 59 times and had
an average elapsed time of 19 seconds.
Rationale
I/O and Cluster wait for INDEX "SOE.ORD_WAREHOUSE_IX" with object ID
74333 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 ,27 active sessions, 3,13% 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 30737 times and
had an average elapsed time of 0.0064 seconds.
Rationale
I/O and Cluster wait for TABLE "SOE.INVENTORIES" with object ID 74039
consumed 89% of the database time spent on this SQL statement.
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 ,18 active sessions, 2,14% of total activity.
------------------------------------------------------------------
Action
Run SQL Tuning Advisor on the SELECT statement with SQL_ID
"5ckxyqfvu60pj".
Related Object
SQL statement with SQL_ID 5ckxyqfvu60pj.
SELECT 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
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 "5ckxyqfvu60pj" was executed 20510 times and
had an average elapsed time of 0.0062 seconds.
Rationale
Top level calls to execute the PL/SQL statement with SQL_ID
"147a57cxq3w5y" are responsible for 53% of the database time spent on
the SELECT statement with SQL_ID "5ckxyqfvu60pj".
Related Object
SQL statement with SQL_ID 147a57cxq3w5y.
BEGIN :1 := orderentry.browseproducts(:2 ,:3 ,:4 ); END;


Finding 2: Undersized SGA
Impact is 4,87 active sessions, 56,89% 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 4,43 active sessions, 51,88% 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 7,63 active sessions, 89,26% of total activity.


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

Recommendation 1: Segment Tuning
Estimated benefit is ,51 active sessions, 5,95% of total activity.
------------------------------------------------------------------
Action
Investigate application logic involving I/O on INDEX
"SOE.ORD_WAREHOUSE_IX" with object ID 74333.
Related Object
Database object with ID 74333.
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 "56pwkjspvmg3h" is responsible for 49% of "User I/O" and
"Cluster" waits for this segment.

Recommendation 2: Segment Tuning
Estimated benefit is ,37 active sessions, 4,3% 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 100% of "User I/O" and
"Cluster" waits for this segment.

Recommendation 3: Segment Tuning
Estimated benefit is ,27 active sessions, 3,14% 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.
Rationale
The I/O usage statistics for the object are: 0 full object scans, 156630
physical reads, 137 physical writes and 0 direct reads.

Recommendation 4: Segment Tuning
Estimated benefit is ,27 active sessions, 3,14% of total activity.
------------------------------------------------------------------
Action
Investigate application logic involving I/O on TABLE "SOE.INVENTORIES"
with object ID 74039.
Related Object
Database object with ID 74039.
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 "c13sma6rkr27c" is responsible for 89% of "User I/O" and
"Cluster" waits for this segment.

Recommendation 5: Segment Tuning
Estimated benefit is ,24 active sessions, 2,81% of total activity.
------------------------------------------------------------------
Action
Investigate application logic involving I/O on TABLE PARTITION
"SOE.ORDERS.SYS_P576" with object ID 74036.
Related Object
Database object with ID 74036.
Rationale
The I/O usage statistics for the object are: 0 full object scans, 155950
physical reads, 108 physical writes and 0 direct reads.

Symptoms That Led to the Finding:
---------------------------------
Wait class "User I/O" was consuming significant database time.
Impact is 7,63 active sessions, 89,26% of total activity.


Finding 4: Global Cache Messaging
Impact is ,51 active sessions, 5,99% of total activity.
-------------------------------------------------------
Inter-instance messaging was consuming significant database time on this
instance.

Recommendation 1: Application Analysis
Estimated benefit is ,51 active sessions, 5,99% of total activity.
------------------------------------------------------------------
Action
Look at the "Top SQL Statements" finding for SQL statements consuming
significant time on Cluster waits. For example, the SELECT statement
with SQL_ID "29qp10usqkqh0" is responsible for 49% of Cluster wait
during the analysis period.

Symptoms That Led to the Finding:
---------------------------------
Wait class "Cluster" was consuming significant database time.
Impact is ,51 active sessions, 5,99% of total activity.


Finding 5: Global Cache Congestion
Impact is ,15 active sessions, 1,8% of total activity.
------------------------------------------------------
Global Cache Service Processes (LMSn) in other instances were not processing
requests fast enough.

Recommendation 1: Database Configuration
Estimated benefit is ,15 active sessions, 1,8% of total activity.
-----------------------------------------------------------------
Action
Increase throughput of the Global Cache Service (LMSn) processes.
Increase the number of Global Cache Service processes by increasing the
value of the parameter "gcs_server_processes". Alternatively, if the
host is CPU bound consider increasing the OS priority of the Global
Cache Service processes.
Rationale
The value of parameter "gcs_server_processes" was "2" during the
analysis period.

Symptoms That Led to the Finding:
---------------------------------
Inter-instance messaging was consuming significant database time on this
instance.
Impact is ,51 active sessions, 5,99% of total activity.
Wait class "Cluster" was consuming significant database time.
Impact is ,51 active sessions, 5,99% of total activity.



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

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

Miscellaneous Information
-------------------------
Wait class "Application" 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: 190.81 21.76
Global Cache blocks served: 91.56 10.44
GCS/GES messages received: 11,543.45 1,316.33
GCS/GES messages sent: 11,542.06 1,316.17
DBWR Fusion writes: 3.96 0.45
Estd Interconnect traffic (KB) 6,767.83 

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

Buffer access - local cache %: 85.91
Buffer access - remote cache %: 0.35
Buffer access - disk %: 13.74
Global Cache Locality %: 50.74

Global Cache and Enqueue Services - Workload Characteristics

Avg global cache cr block receive time (us): 365.6
Avg global cache current block receive time (us): 2,917.1
Avg LMS process busy %: 2.2
Avg global cache cr block build time (us): 5.5
Global cache log flushes for cr blocks served %: 0.1
Avg global cache cr block flush time (us): 5,714.3
Avg global cache current block pin time (us): 10,000.0
Global cache log flushes for current blocks served %: 0.2
Avg global cache current block flush time (us): 3,444.4
Avg global enqueue get time (us): 0.0

Global Cache and Enqueue Services - Messaging Statistics

Avg message sent queue time (us): 627.0
Avg message sent queue time on ksxp (us): 706.2
Avg message received kernel queue time (us): 1.7
Avg message received queue time (us): 0.3
Avg GCS message process time (us): 2.3
Avg GES message process time (us): 10.3
% of direct sent messages: 7.85
% of indirect sent messages: 92.04
% of flow controlled messages: 0.11


Cluster Interconnect

 Begin End
InterfaceIP AddressPubSourcePubSrc
fg-priv:1169.254.9.251N   

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 sent540.080.01
Global Enqueue S-optim S-lock gets188,840265.0930.23
Global Enqueue S-optim anti-locks crea750.110.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)6,0768.530.97
acks for commit broadcast(logical)6,2698.801.00
broadcast msgs on commit(actual)6,1418.620.98
broadcast msgs on commit(logical)6,9199.711.11
broadcast msgs on commit(wasted)2930.410.05
dynamically allocated gcs resources00.000.00
dynamically allocated gcs shadows00.000.00
flow control messages received10.000.00
flow control messages sent10.000.00
gcs assume cvt00.000.00
gcs assume no cvt28,88840.554.62
gcs ast to fg4,4496.250.71
gcs ast xid10.000.00
gcs bidless ast to lms1290.180.02
gcs blocked converts10,19114.311.63
gcs blocked cr converts86,300121.1513.81
gcs compatible basts800.110.01
gcs compatible cr basts (global)4,7106.610.75
gcs compatible cr basts (local)46,02464.617.37
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 msgs22,70831.883.64
gcs dbwr write request msgs2,8153.950.45
gcs error msgs00.000.00
gcs flash read serve requests to slave00.000.00
gcs force cr block only10.000.00
gcs force cr grant90.010.00
gcs force cr no current00.000.00
gcs forward cr to pinged instance00.000.00
gcs grant ast4,5786.430.73
gcs grant request in partial open00.000.00
gcs immediate (compatible) converts6,3878.971.02
gcs immediate (null) converts45,33063.637.26
gcs immediate cr (compatible) converts4,289,3936,021.36686.63
gcs immediate cr (null) converts1,101,0481,545.63176.25
gcs lms flush pi msgs00.000.00
gcs lms write request msgs2,1583.030.35</