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:3602-Stu-19 13:22:5094 1.62
End Snap:3702-Stu-19 13:41:0494 1.72
Elapsed:  18.22 (mins)   
DB Time:  1,609.31 (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 Statements88.2695.76ADDM:1550963227_2_3702-Stu-19 13:2202-Stu-19 13:41
Undersized SGA88.2672.44ADDM:1550963227_2_3702-Stu-19 13:2202-Stu-19 13:41
Top Segments by "User I/O" and "Cluster"88.2621.07ADDM:1550963227_2_3702-Stu-19 13:2202-Stu-19 13:41
I/O Throughput88.261.36ADDM:1550963227_2_3702-Stu-19 13:2202-Stu-19 13:41

Load Profile

Per SecondPer TransactionPer ExecPer Call
DB Time(s): 88.3 8.0 0.26 1.95
DB CPU(s): 0.6 0.1 0.00 0.01
Background CPU(s): 0.1 0.0 0.00 0.00
Redo size (bytes): 58,740.8 5,292.7  
Logical read (blocks): 77,730.5 7,003.8  
Block changes: 684.6 61.7  
Physical read (blocks): 7,813.9 704.1  
Physical write (blocks): 99.0 8.9  
Read IO requests: 7,812.5 703.9  
Write IO requests: 89.1 8.0  
Read IO (MB): 61.1 5.5  
Write IO (MB): 0.8 0.1  
IM scan rows: 0.0 0.0  
Session Logical Read IM: 0.0 0.0  
Global Cache blocks received: 95.4 8.6  
Global Cache blocks served: 144.2 13.0  
User calls: 45.3 4.1  
Parses (SQL): 10.8 1.0  
Hard parses (SQL): 0.8 0.1  
SQL Work Area (MB): 24.3 2.2  
Logons: 0.9 0.1  
User logons: 0.2 0.0  
Executes (SQL): 345.7 31.1  
Rollbacks: 0.0 0.0  
Transactions: 11.1   

Instance Efficiency Percentages (Target 100%)

Buffer Nowait %: 99.98Redo NoWait %: 100.00
Buffer Hit %: 89.95In-memory Sort %: 100.00
Library Hit %: 99.70Soft Parse %: 93.08
Execute to Parse %: 96.88Latch Hit %: 99.99
Parse CPU to Parse Elapsd %: 10.85% Non-Parse CPU: 99.74
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 read152,83985,2K557.76ms88.3User I/O
db file sequential read354,6165633,715.89ms5.8User I/O
read by other session11,6124008,1345.17ms4.2User I/O
DB CPU 680,3 .7 
log file sync12,100600,449.62ms.6Commit
enq: US - contention3,234257,679.66ms.3Other
gc cr multi block mixed7,74398,112.67ms.1Cluster
gc cr grant busy11,65741,83.58ms.0Cluster
gc cr multi block grant37,12439,11.05ms.0Cluster
row cache lock4,27935,88.36ms.0Concurrency

Wait Classes by Total Wait Time

Wait ClassWaitsTotal Wait Time (sec)Avg Wait Time% DB timeAvg Active Sessions
User I/O526,27594,943180.41ms98.386.8
System I/O16,9831,18669.84ms1.21.1
DB CPU 680 .70.6
Commit12,10260049.61ms.60.5
Cluster315,1123371.07ms.30.3
Other159,0423021.90ms.30.3
Application467237506.79ms.20.2
Concurrency11,577605.18ms.10.1
Configuration5836613.59ms.00.0
Scheduler712911.98ms.00.0
Network47,81802.76us.00.0

Host CPU

CPUsCoresSocketsLoad Average BeginLoad Average End%User%System%WIO%Idle
8 4 1 0.19 21.70 7.0 4.1 79.8 88.6

Instance CPU

%Total CPU%Busy CPU%DB time waiting for CPU (Resource Manager)
8.8 77.0 0.0

IO Profile

Read+Write Per SecondRead per SecondWrite Per Second
Total Requests: 7,915.9 7,816.8 99.1
Database Requests: 7,901.6 7,812.5 89.1
Optimized Requests: 0.0 0.0 0.0
Redo Requests: 9.5 0.0 9.5
Total (MB): 62.0 61.1 0.8
Database (MB): 61.8 61.1 0.8
Optimized Total (MB): 0.0 0.0 0.0
Redo (MB): 0.1 0.0 0.1
Database (blocks): 7,912.9 7,813.9 99.0
Via Buffer Cache (blocks): 7,912.3 7,813.9 98.4
Direct (blocks): 0.7 0.0 0.7

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,314.3 3,354.2
% Host Mem used for SGA+PGA: 70.88 67.84

Cache Sizes

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

Shared Pool Statistics

BeginEnd
Memory Usage %: 92.30 83.10
% SQL with executions>1: 96.60 88.56
% Memory for SQL w/exec>1: 89.95 85.93

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 time95,910.1999.33 
DB CPU680.280.7090.22
PL/SQL execution elapsed time25.200.03 
connection management call elapsed time12.990.01 
parse time elapsed10.670.01 
hard parse elapsed time8.670.01 
hard parse (sharing criteria) elapsed time0.830.00 
PL/SQL compilation elapsed time0.210.00 
repeated bind elapsed time0.040.00 
hard parse (bind mismatch) elapsed time0.030.00 
DB time96,558.88  
background elapsed time1,571.72  
background cpu time73.77 9.78
total CPU time754.05  


Back to Wait Events Statistics
Back to Top

Operating System Statistics

StatisticValueEnd Value
FREE_MEMORY_BYTES3,293,741,0565,000,269,824
INACTIVE_MEMORY_BYTES1,351,766,0161,043,517,440
BUSY_TIME97,880 
IDLE_TIME760,609 
IOWAIT_TIME685,101 
NICE_TIME0 
SYS_TIME35,452 
USER_TIME59,833 
LOAD022
RSRC_MGR_CPU_WAIT_TIME848 
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 13:22:500.19     
02-Stu 13:41:0421.7011.406.974.1388.6079.80


Back to Wait Events Statistics
Back to Top

Foreground Wait Class

Wait ClassWaits%Time -outsTotal Wait Time (s)Avg wait%DB time
User I/O520,269094,892182.39ms98.27
DB CPU  680 0.70
Commit12,100060049.62ms0.62
Cluster310,47403311.07ms0.34
Other72,459362763.81ms0.29
Concurrency5,446165710.44ms0.06
Configuration431410225.87ms0.01
Scheduler7120911.98ms0.01
System I/O221027.34ms0.00
Network45,487001.95us0.00
Application2230020.36us0.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 read152,839 85,248557.76ms12.6088.29
db file sequential read354,616 5,63415.89ms29.225.83
read by other session11,612 4,008345.17ms0.964.15
log file sync12,100 60049.62ms1.000.62
enq: US - contention3,234 25879.66ms0.270.27
gc cr multi block mixed7,743 9812.67ms0.640.10
gc cr grant busy11,657 423.58ms0.960.04
gc cr multi block grant37,124 391.05ms3.060.04
row cache lock4,27920368.36ms0.350.04
gc cr grant 2-way121,570 34276.85us10.020.03
gc current grant busy12,271 262.12ms1.010.03
gc current block busy9,632 191.99ms0.790.02
gc buffer busy acquire350 1747.60ms0.030.02
gc current block 2-way47,936 14294.19us3.950.01
gc current grant read-mostly invalidation3,869 133.43ms0.320.01
library cache: mutex X569 1018.15ms0.050.01
rdbms ipc reply254 1039.52ms0.020.01
write complete waits2 104845.61ms0.000.01
gc current grant 2-way29,220 9301.74us2.410.01
resmgr:cpu quantum712 911.98ms0.060.01
gc cr block 2-way27,392 7273.29us2.260.01
gc cr block busy121 760.28ms0.010.01
library cache lock153 641.91ms0.010.01
Sync ASM rebalance40 262.48ms0.000.00
latch: shared pool144 214.90ms0.010.00
gc current multi block request1,246 21.54ms0.100.00
gc cr block lost2 2913.59ms0.000.00
control file sequential read221 27.34ms0.020.00
Disk file Mirror Read57 125.96ms0.000.00
latch: ges resource hash list1,331 1.96ms0.110.00
DLM cross inst call completion2,554 1470.86us0.210.00
cursor: pin S wait on X17 158.26ms0.000.00
KJC: Wait for msg sends to complete2,482 1391.64us0.200.00
gc current block lost1 1972.00ms0.000.00
PGA memory operation32,350 121.98us2.670.00
IPC send completion sync2,113 1328.60us0.170.00
db file scattered read22 125.01ms0.000.00
gc buffer busy release9 158.94ms0.000.00
Disk file operations I/O1,123 0409.86us0.090.00
row cache mutex42 09.48ms0.000.00
buffer busy waits24 013.76ms0.000.00
latch: call allocation18 016.93ms0.000.00
enq: PS - contention71310377.52us0.060.00
gc index operation7 026.58ms0.000.00
latch: cache buffers chains99 01.53ms0.010.00
PX Deq: reap credit25,82210005.47us2.130.00
ASM file metadata operation8 017.13ms0.000.00
enq: TX - contention2541000530.76us0.020.00
library cache load lock34 03.75ms0.000.00
cursor: pin S33 03.25ms0.000.00
gc cr disk read316 0333.50us0.030.00
SQL*Net message to client45,096 01.91us3.720.00
cursor: mutex X3 020.33ms0.000.00
PX Deq: Slave Session Stats737 080.76us0.060.00
latch free69 0776.25us0.010.00
gc current split5 07.60ms0.000.00
gc cr grant congested2 016.00ms0.000.00
latch: active service list9 02.95ms0.000.00
enq: HW - contention41150516.68us0.000.00
enq: TS - contention30 0686.17us0.000.00
DFS lock handle18560932.00us0.000.00
latch: gc element19 0737.79us0.000.00
library cache pin30 0394.87us0.000.00
library cache: bucket mutex X6 01.64ms0.000.00
latch: redo allocation6 01.38ms0.000.00
latch: gcs resource hash5 01.47ms0.000.00
PX Deq: Join ACK8 0845.38us0.000.00
latch: MGA shared context latch3 01.79ms0.000.00
SQL*Net break/reset to client222 020.34us0.020.00
latch: MGA heap latch1 04.15ms0.000.00
row cache read4 01.03ms0.000.00
latch: cache buffers lru chain30 0104.67us0.000.00
gc current block congested1 02.89ms0.000.00
IPC group service call391 07.29us0.030.00
enq: TX - index contention5 0524.80us0.000.00
reliable message4 0542.75us0.000.00
wait list latch free2 01.07ms0.000.00
latch: enqueue hash chains12 0157.25us0.000.00
latch: object queue header operation2 0782.50us0.000.00
watchdog main loop1,456 4,3683000.00ms0.12 
SQL*Net message from client45,277 1,27728.21ms3.73 
PX Deq: Execution Msg2,184 233106.80ms0.18 
PX Deq Credit: send blkd4,578 22749.57ms0.38 
PX Deq: Msg Fragment420 0307.07us0.03 
PX Deq Credit: need buffer6 014.99ms0.00 
PX Deq: Execute Reply8 0831.88us0.00 
PX Deq: Parse Reply8 0251.75us0.00 


Back to Wait Events Statistics
Back to Top

Background Wait Events

EventWaits%Time -outsTotal Wait Time (s)Avg waitWaits /txn% bg time
db file async I/O submit1,4620918627.61ms0.1258.38
enq: RO - fast object reuse2410235976.68ms0.0214.98
log file parallel write9,334020922.39ms0.7713.29
control file sequential read4,4330398.76ms0.372.47
db file sequential read2,73803211.70ms0.232.04
write complete waits30268598.06ms0.001.64
Disk file Mirror Read1,48101610.86ms0.121.02
control file parallel write55001527.56ms0.050.96
gcs log flush sync14,852012817.11us1.220.77
IMR slave acknowledgement msg3,285092.77ms0.270.58
db file parallel write972044.06ms0.080.25
gc cr block busy630343.50ms0.010.17
row cache lock10899214.43ms0.010.10
reliable message890115.13ms0.010.09
enq: TM - contention301429.31ms0.000.08
direct path write temp1090110.83ms0.010.08
gc cr multi block mixed123017.07ms0.010.06
db file scattered read102018.14ms0.010.05
latch free1,63601489.48us0.130.05
latch: MGA shared context root latch300120.81ms0.000.04
gc buffer busy acquire330117.12ms0.000.04
latch: MGA shared context latch70006.86ms0.010.03
Parameter File I/O160028.67ms0.000.03
gc cr block 2-way1,59600232.82us0.130.02
latch: shared pool46007.31ms0.000.02
oracle thread bootstrap110028.71ms0.000.02
gc cr grant 2-way1,25100247.75us0.100.02
DLM cross inst call completion1,13400244.31us0.090.02
read by other session50053.90ms0.000.02
gc cr grant busy192001.33ms0.020.02
oradebug request completion40053.72ms0.000.01
gc current block busy38900496.66us0.030.01
Disk file operations I/O32400578.91us0.030.01
ASM file metadata operation1,31200135.49us0.110.01
Sync ASM rebalance55002.74ms0.000.01
PX Deq: reap credit33,66610004.46us2.770.01
gc current block 2-way53100272.26us0.040.01
direct path write100012.75ms0.000.01
PGA memory operation1,4050088.31us0.120.01
db file parallel read100114.53ms0.000.01
KSV master wait845960121.52us0.070.01
enq: CF - contention667901.52ms0.010.01
gc current multi block request22004.04ms0.000.01
DFS lock handle3201000257.62us0.030.01
undo segment extension540015.91ms0.000.01
AQ: RAC AQ Network10,92510006.29us0.900.00
CGS wait for IPC msg12,06710005.11us0.990.00
gc current grant 2-way25600230.06us0.020.00
gc cr multi block grant38001.38ms0.000.00
log file sequential read10004.57ms0.000.00
PX Deq: Join ACK5000851.12us0.000.00
IPC group service call1,8000023.53us0.150.00
ASM IO for non-blocking poll1,2200033.70us0.100.00
ges inquiry response9700380.01us0.010.00
gc current grant busy13900230.57us0.010.00
gc buffer busy release12001.92ms0.000.00
enq: PS - contention63510362.11us0.010.00
library cache lock6600312.67us0.010.00
latch: MGA heap latch5003.56ms0.000.00
library cache pin6600250.03us0.010.00
CSS operation: data query3400440.35us0.000.00
latch: cache buffers lru chain2300627.35us0.000.00
os thread creation11001.21ms0.000.00
CSS operation: data update3700316.73us0.000.00
IPC send completion sync1,1249709.44us0.090.00
ksxr poll remote instances2,93810003.06us0.240.00
KJC: Wait for msg sends to complete9315093.51us0.010.00
enq: WF - contention2300330.35us0.000.00
log file sync2003.02ms0.000.00
PX Deq: Signal ACK EXT5000108.24us0.000.00
enq: CR - block range reuse ckpt600849.33us0.000.00
enq: FB - contention1100366.09us0.000.00
PX Deq: Slave Session Stats500078.24us0.000.00
enq: HW - contention900313.56us0.000.00
latch: redo allocation2001.36ms0.000.00
cursor: pin S wait on X1002.12ms0.000.00
LGWR wait for redo copy460039.22us0.000.00
name-service call wait400380.50us0.000.00
libcache interrupt action by LCK5,72900258.33ns0.470.00
enq: WT - contention400359.25us0.000.00
gc cr disk read500283.00us0.000.00
enq: TA - contention400291.25us0.000.00
enq: DW - contention31000377.33us0.000.00
enq: SM - contention300363.67us0.000.00
rdbms ipc message45,8354425,772562.27ms3.78 
PX Idle Wait733020,27827.66 s0.06 
Space Manager: slave idle wait4,609017,1343717.54ms0.38 
class slave wait12,175886,421527.38ms1.00 
EMON slave idle wait1,0881005,4304990.79ms0.09 
wait for unread message on broadcast channel1,6761003,2811957.59ms0.14 
ges remote message51,41202,18642.53ms4.24 
GCR sleep7,28802,186299.91ms0.60 
DIAG idle wait13,839812,185157.86ms1.14 
pmon timer7281002,1842999.94ms0.06 
gcs yield cpu72,8901002,18429.96ms6.01 
gcs remote message649,14802,1583.32ms53.50 
smon timer5601,116223.24 s0.00 
PING945231,1011164.55ms0.08 
Streams AQ: emn coordinator idle wait1101001,10010.00 s0.01 
lreg timer3651001,0963002.52ms0.03 
OFS idle3651001,0953000.01ms0.03 
REPL Capture/Apply: RAC AQ qmn coordinator191001,09457.57 s0.00 
heartbeat redo informer1,09301,0931000.06ms0.09 
ASM cluster membership changes625891,0931748.24ms0.05 
SCM slave idle11,01701,09399.17ms0.91 
ASM background timer1,18701,092920.33ms0.10 
Streams AQ: qmn coordinator idle wait7901,09213.82 s0.01 
pman timer3641001,0922999.81ms0.03 
Streams AQ: qmn slave idle wait4001,09027.24 s0.00 
dispatcher timer181001,08060.01 s0.00 
AQPC idle361001,08030.00 s0.00 
Data Guard: Gap Manager1801,08060.00 s0.00 
Data Guard: Timer10600600.00 s0.00 
SQL*Net message from client73901115.36ms0.06 
PX Deq: Execute Reply615023.61ms0.05 
PX Deq: Parse Reply500121.52ms0.00 
PX Deq Credit: send blkd17100667.09us0.01 
RMA: IPC0 completion sync2,152003.55us0.18 
heartbeat monitor sleep900735.00us0.00 


Back to Wait Events Statistics
Back to Top

Wait Event Histogram

  % of Total Waits
EventTotal Waits<8us<16us<32us<64us<128us<256us<512us>=512us
AQ: RAC AQ Network10,9K92.76.5.6.2.0   
ASM IO for non-blocking poll121266.81.6.5.227.62.9.4 
ASM background starting1100.0       
ASM file metadata operation132011.158.318.02.67.7.8 1.5
AWR Flush8100.0       
CGS wait for IPC msg12,1K97.01.7.7.5.1   
CSS operation: data query34     47.12.950.0
CSS operation: data update37      100.0 
DFS lock handle258     58.538.43.1
DLM cross inst call completion36915.77.8.83.514.730.222.514.9
Disk file Mirror Read1537     14.856.428.8
Disk file operations I/O144934.220.523.04.2.7.710.46.3
GCR CSS group query34100.0       
GCR CSS group update34100.0       
IMR slave acknowledgement msg32821.52.927.831.82.3.226.66.8
IPC group service call219114.046.116.122.11.6.2.0 
IPC send completion sync324032.71.1.1.0.121.343.41.2
KJC: Wait for msg sends to complete2575.52.213.21.91.659.115.26.3
KSV master wait84785.8.23.36.31.5 .22.6
LGWR wait for redo copy4610.915.247.817.46.5  2.2
PGA memory operation33,8K16.269.610.81.4.4.3.31.0
PX Deq: Join ACK58      31.069.0
PX Deq: Signal ACK EXT5813.831.08.610.36.913.815.5 
PX Deq: Slave Session Stats7886.53.23.351.428.62.41.53.2
PX Deq: reap credit59,5K93.73.21.81.3.1.0.0 
Parameter File I/O16       100.0
SQL*Net break/reset to client22249.5.59.538.71.8   
SQL*Net message to client45,8K99.3.4.1.1.0.0.0.0
Sync ASM rebalance9525.312.62.15.39.57.410.527.4
asynch descriptor resize22297.31.8.5.5    
buffer busy waits267.7 11.5 15.47.719.238.5
buffer deadlock1100.0       
control file parallel write550       100.0
control file sequential read465325.17.4.5.1 5.438.323.3
cursor: mutex X3       100.0
cursor: pin S33       100.0
cursor: pin S wait on X18       100.0
db file async I/O submit145249.9.11.97.16.82.1.831.2
db file parallel read152,8K      8.391.7
db file parallel write9651.54.75.26.06.55.333.637.3
db file scattered read124     2.438.758.9
db file sequential read357,5K     .352.946.8
direct path write10      10.090.0
direct path write temp109       100.0
enq: AF - task serialization1      100.0 
enq: CF - contention66     6.192.41.5
enq: CR - block range reuse ckpt4     25.050.025.0
enq: DR - contention1      100.0 
enq: DW - contention3      100.0 
enq: FB - contention13     15.469.215.4
enq: HW - contention52     1.967.330.8
enq: PS - contention777  .1.3.3.695.13.6
enq: RO - fast object reuse249     2.884.712.4
enq: SM - contention3      100.0 
enq: TA - contention3      100.0 
enq: TD - KTF dump entries1     100.0  
enq: TK - Auto Task Serialization2      100.0 
enq: TM - contention4  25.0   50.025.0
enq: TS - contention30     3.343.353.3
enq: TX - contention254  .4  1.661.436.6
enq: TX - index contention5      40.060.0
enq: US - contention3234    .1.2.499.3
enq: WF - contention23     13.073.913.0
enq: WT - contention4      100.0 
gc buffer busy acquire385.8 .3.8.32.113.882.1
gc buffer busy release19   5.3   94.7
gc cr block 2-way29K  .0.0.063.235.11.6
gc cr block busy187       100.0
gc cr block lost2       100.0
gc cr disk read321     5.992.21.9
gc cr grant 2-way122,8K  .0.0.060.638.6.8
gc cr grant busy11,9K   .0.08.669.022.4
gc cr grant congested2       100.0
gc cr multi block grant37,2K  .0.0.053.640.36.1
gc cr multi block mixed7865   .0 12.869.617.5
gc current block 2-way48,5K  .0.0.056.041.72.2
gc current block busy10K.0 .0.1.039.054.46.5
gc current block congested1       100.0
gc current block lost1       100.0
gc current grant 2-way29,4K   .0.072.724.82.4
gc current grant busy12,5K.0.11.43.22.327.250.515.4
gc current grant read-mostly invalidation3869    .11.159.739.2
gc current multi block request1270     .760.638.7
gc current split5     20.0 80.0
gc index operation7   28.6   71.4
gcs log flush sync14,8K6.62.07.07.37.920.013.735.5
ges inquiry response101      99.01.0
ges resource directory to be unfrozen21799.5.5      
kjctssqmg: quick message send wait2100.0       
ksxr poll remote instances294698.01.7.3.1    
latch free1705.5.1.65.676.014.9.12.2
latch: MGA heap latch6       100.0
latch: MGA shared context latch734.1 1.46.81.4  86.3
latch: MGA shared context root latch303.3  3.3 3.36.783.3
latch: active service list9       100.0
latch: cache buffers chains1024.92.011.826.523.54.91.025.5
latch: cache buffers lru chain531.9 22.637.720.83.85.77.5
latch: call allocation18   11.1   88.9
latch: enqueue hash chains12   33.316.733.316.7 
latch: gc element24  4.220.812.54.220.837.5
latch: gcs resource hash24 4.262.5 12.54.24.212.5
latch: ges resource hash list13341.6.55.34.05.112.428.043.0
latch: object queue header operation3    33.333.3 33.3
latch: redo allocation8  12.550.0   37.5
latch: session allocation1       100.0
latch: shared pool190.5.51.62.61.62.62.188.4
libcache interrupt action by LCK572999.9.1.0.0    
library cache load lock34    2.98.814.773.5
library cache lock218     9.231.759.2
library cache pin96     70.825.04.2
library cache: bucket mutex X616.733.316.7 16.7  16.7
library cache: mutex X57312.23.82.1.3.71.72.476.6
log file parallel write9332       100.0
log file sequential read1010.0 30.0   30.030.0
log file sync12,1K    .0  100.0
name-service call wait6      100.0 
oracle thread bootstrap11       100.0
oradebug request completion4       100.0
os thread creation11       100.0
rdbms ipc reply254  5.93.11.6 .489.0
read by other session11,6K.0 .0.0.0.1.998.9
reliable message92      34.865.2
resmgr:cpu quantum712     .61.797.8
row cache lock4392   .0.2.715.783.3
row cache mutex4513.32.26.76.76.74.42.257.8
row cache read4  25.025.0   50.0
transaction2    100.0   
undo segment extension540.0   40.0  20.0
undo_retention publish retry3100.0       
wait list latch free2       100.0
write complete waits5       100.0
AQPC idle36       100.0
ASM background timer1187  1.35.01.1.93.288.5
ASM cluster membership changes625       100.0
DIAG idle wait13,8K  1.0.3.0.8.797.3
Data Guard: Gap Manager18       100.0
Data Guard: Timer1       100.0
EMON slave idle wait1090       100.0
GCR sleep7289       100.0
OFS idle365       100.0
PING945.7.326.812.55.918.1.635.0
PX Deq Credit: need buffer6   16.7 50.0 33.3
PX Deq Credit: send blkd4749.93.0.4.1.81.67.985.3
PX Deq: Execute Reply62317.26.97.25.810.612.828.910.6
PX Deq: Execution Msg2190.1 .0.17.623.040.528.6
PX Deq: Msg Fragment4304.2.26.3.54.05.377.71.9
PX Deq: Parse Reply581.7   5.212.136.244.8
PX Idle Wait730       100.0
REPL Capture/Apply: RAC AQ qmn coordinator19       100.0
RMA: IPC0 completion sync215295.91.91.0.9.2.1  
SCM slave idle11K .0.0.1.3.1.199.4
SQL*Net message from client46K.1.2.02.560.928.13.64.6
Space Manager: slave idle wait46271.3.12.0.6.2.0.195.7
Streams AQ: emn coordinator idle wait110       100.0
Streams AQ: qmn coordinator idle wait791.3  19.027.81.31.349.4
Streams AQ: qmn slave idle wait402.5      97.5
class slave wait12,2K.3.41.51.1.2.0.096.4
dispatcher timer18       100.0
gcs remote message649,3K2.21.23.74.84.619.19.654.8
gcs yield cpu72,8K.0  .0   100.0
ges remote message51,4K11.31.23.35.44.68.75.859.6
heartbeat monitor sleep988.9      11.1
heartbeat redo informer1094       100.0
lreg timer365       100.0
pman timer364       100.0
pmon timer728       100.0
rdbms ipc message45,9K3.8.911.92.13.47.44.266.3
smon timer4       100.0
wait for unread message on broadcast channel1676       100.0
watchdog main loop1456       100.0


Back to Wait Events Statistics
Back to Top

Wait Event Histogram (up to 64 us)

  % of Total Waits
EventWaits 1us - 64us <1us <2us <4us<8us<16us<32us<64us>=64us
AQ: RAC AQ Network10,9K  4.288.56.5.6.2.0
ASM IO for non-blocking poll83818.625.518.34.51.6.5.230.9
ASM background starting1100.0       
ASM file metadata operation11883.65.11.6.858.318.02.610.0
AWR Flush825.075.0      
CGS wait for IPC msg12,1K.57.311.477.81.7.7.5.1
DLM cross inst call completion657  .25.57.8.83.582.2
Disk file operations I/O1187 .52.431.320.523.04.218.1
GCR CSS group query34  55.944.1    
GCR CSS group update34 2.985.311.8    
IMR slave acknowledgement msg2102 .4.8.32.927.831.836.0
IPC group service call2152 .06.97.046.116.122.11.8
IPC send completion sync1103  15.816.91.1.1.066.0
KJC: Wait for msg sends to complete458   .52.213.21.982.2
KSV master wait810 31.254.2.5.23.36.34.4
LGWR wait for redo copy426.54.3  15.247.817.48.7
PGA memory operation33,1K .26.89.269.610.81.42.0
PX Deq: Signal ACK EXT37   13.831.08.610.336.2
PX Deq: Slave Session Stats507  .36.23.23.351.435.7
PX Deq: reap credit59,5K.14.540.448.73.21.81.3.1
SQL*Net break/reset to client218  47.32.3.59.538.71.8
SQL*Net message to client45,8K7.731.259.8.6.4.1.1.1
Sync ASM rebalance43   25.312.62.15.354.7
asynch descriptor resize222 25.224.347.71.8.5.5 
buffer busy waits5 3.83.8  11.5 80.8
buffer deadlock1   100.0    
control file sequential read1537 .2.824.27.4.5.167.0
db file async I/O submit85723.226.5.2 .11.97.141.0
db file parallel write167   1.54.75.26.082.7
enq: PS - contention3     .1.399.6
enq: TM - contention1     25.0 75.0
enq: TX - contention1     .4 99.6
gc buffer busy acquire7  .5.3 .3.898.2
gc buffer busy release1      5.394.7
gc cr block 2-way19     .0.099.9
gc cr grant 2-way23     .0.0100.0
gc cr grant busy1      .0100.0
gc cr multi block grant12     .0.0100.0
gc cr multi block mixed1      .0100.0
gc current block 2-way31     .0.099.9
gc current block busy8   .0 .0.199.9
gc current grant 2-way7      .0100.0
gc current grant busy577  .0 .11.43.295.4
gc index operation2      28.671.4
gcs log flush sync3404.12.13.7.62.07.07.377.0
ges resource directory to be unfrozen21744.753.5 1.4.5   
kjctssqmg: quick message send wait2  50.050.0    
ksxr poll remote instances2946 13.355.129.61.7.3.1 
latch free116 .1.5 .1.65.693.2
latch: MGA shared context latch9   4.1 1.46.887.7
latch: MGA shared context root latch2   3.3  3.393.3
latch: cache buffers chains46  2.92.02.011.826.554.9
latch: cache buffers lru chain33 1.9   22.637.737.7
latch: call allocation2      11.188.9
latch: enqueue hash chains4      33.366.7
latch: gc element6     4.220.875.0
latch: gcs resource hash16    4.262.5 33.3
latch: ges resource hash list154 .21.2.2.55.34.088.5
latch: redo allocation5     12.550.037.5
latch: shared pool10   .5.51.62.694.7
libcache interrupt action by LCK572977.022.8 .0.1.0.0 
library cache: bucket mutex X4   16.733.316.7 33.3
library cache: mutex X106  .711.53.82.1.381.5
log file sequential read4  10.0  30.0 60.0
rdbms ipc reply23     5.93.190.9
read by other session8   .0 .0.099.9
row cache lock2      .0100.0
row cache mutex13  2.211.12.26.76.771.1
row cache read2     25.025.050.0
undo segment extension2  20.020.0   60.0
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 operation1898.5.6.2.1  .5.2
CSS operation: data query1750.050.0      
DFS lock handle896.91.9.8 .4   
DLM cross inst call completion54985.18.73.71.7.6.2.0.0
Disk file Mirror Read27371.2.6.5.5.3.815.111.1
Disk file operations I/O8993.72.71.31.1.6.3.1.1
IMR slave acknowledgement msg12393.21.1.1.0.1.22.33.0
IPC send completion sync4098.81.1.1.1    
KJC: Wait for msg sends to complete16193.73.21.9.9.1.1 .0
KSV master wait2197.41.8.5.1  .1.1
LGWR wait for redo copy197.82.2      
PGA memory operation32299.0.6.3.1.0   
PX Deq: Join ACK4031.032.834.51.7    
PX Deq: Slave Session Stats2596.82.9.1.1    
Parameter File I/O10     12.550.037.5
SQL*Net message to client2100.0.0      
Sync ASM rebalance2272.66.31.1  12.63.24.2
buffer busy waits561.57.7    11.519.2
control file parallel write388 10.726.2.2.41.531.629.5
control file sequential read67776.71.2.3.2.2.811.98.7
cursor: mutex X2   33.333.3  33.3
cursor: pin S33  69.79.19.19.13.0 
cursor: pin S wait on X6   16.75.6 11.166.7
db file async I/O submit4268.8.1.1.8.3.8.828.3
db file parallel read24,9K8.34.11.0.91.01.67.775.4
db file parallel write33862.711.16.22.72.33.59.22.3
db file scattered read6241.124.28.15.6  12.18.9
db file sequential read113,5K53.29.71.4.7.41.118.515.1
direct path write810.030.010.0 20.020.0 10.0
direct path write temp101 45.022.9  1.822.97.3
enq: CR - block range reuse ckpt175.0 25.0     
enq: FB - contention284.615.4      
enq: HW - contention1669.226.91.91.9    
enq: PS - contention2896.43.2.3.1    
enq: RO - fast object reuse1487.62.4.4   2.86.8
enq: TS - contention1646.736.713.33.3    
enq: TX - contention9363.428.36.71.6    
enq: TX - index contention340.060.0      
enq: US - contention1640.7.61.04.815.517.311.648.6
enq: WF - contention387.013.0      
gc buffer busy acquire20817.915.36.54.26.03.418.728.1
gc buffer busy release135.3 31.621.15.35.35.326.3
gc cr block 2-way45998.41.0.4.1.1.0.0.0
gc cr block busy98 1.622.52.73.28.014.447.6
gc cr disk read698.11.2.3.3    
gc cr grant 2-way102899.2.5.2.1.0.0.0.0
gc cr grant busy245677.64.71.92.02.94.64.51.8
gc cr grant congested2  50.0   50.0 
gc cr multi block grant205293.91.1.5.5.91.21.3.6
gc cr multi block mixed95382.55.5.8.81.11.52.65.4
gc current block 2-way107997.81.4.5.2.1.0.0.0
gc current block busy51593.52.2.9.4.4.5.71.3
gc current block congested1   100.0    
gc current grant 2-way70997.61.7.3.1.1.1.1.0
gc current grant busy177484.63.21.41.32.43.22.81.3
gc current grant read-mostly invalidation145060.822.61.82.53.83.92.91.7
gc current multi block request47861.326.05.52.01.01.91.31.1
gc current split420.020.020.0  20.020.0 
gc index operation328.6 14.3  14.314.328.6
gcs log flush sync526264.515.110.66.02.8.8.1 
ges inquiry response199.0  1.0    
latch free3097.8.3 .2.2.4.6.5
latch: MGA heap latch6  16.733.350.0   
latch: MGA shared context latch6313.74.18.227.48.234.24.1 
latch: MGA shared context root latch1916.73.3 3.3 23.333.320.0
latch: active service list9  66.711.122.2   
latch: cache buffers chains2474.55.98.84.92.01.01.02.0
latch: cache buffers lru chain492.51.91.9 3.8   
latch: call allocation1611.1 5.6   83.3 
latch: gc element962.516.716.74.2    
latch: gcs resource hash387.5 4.28.3    
latch: ges resource hash list57357.029.09.61.5.41.11.3 
latch: object queue header operation166.7 33.3     
latch: redo allocation362.512.5 12.512.5   
latch: session allocation1 100.0      
latch: shared pool14911.63.77.910.517.419.519.510.0
library cache load lock2526.52.92.914.750.02.9  
library cache lock6140.810.66.03.71.83.72.331.2
library cache pin495.82.11.01.0    
library cache: bucket mutex X183.3    16.7  
library cache: mutex X33823.42.61.21.43.033.916.917.6
log file parallel write7112 27.921.41.1.81.823.123.8
log file sequential read370.0  10.0  20.0 
log file sync5879.011.318.41.71.01.514.651.4
oracle thread bootstrap10     63.627.39.1
oradebug request completion3     50.025.025.0
os thread creation11 9.190.9     
rdbms ipc reply10711.0 .41.63.98.727.646.9
read by other session10221.1.3.3.61.12.14.490.1
reliable message5634.817.441.32.2   4.3
resmgr:cpu quantum6342.22.79.820.220.915.320.18.7
row cache lock339016.720.730.221.62.51.01.26.1
row cache mutex2342.2 4.42.28.926.78.96.7
row cache read250.025.0 25.0    
wait list latch free2  100.0     


Back to Wait Events Statistics
Back to Top

Wait Event Histogram (up to 2 sec)

  % of Total Waits
EventWaits 64ms to 2s<32ms<64ms<1/8s<1/4s<1/2s <1s <2s>=2s
ASM file metadata operation299.8.1.1     
DLM cross inst call completion1100.0 .0     
Disk file Mirror Read17088.96.43.9.7    
Disk file operations I/O299.9  .1    
IMR slave acknowledgement msg10097.01.91.0.2    
KJC: Wait for msg sends to complete1100.0   .0   
KSV master wait199.9.1      
Parameter File I/O662.537.5      
Sync ASM rebalance495.8   2.12.1  
buffer busy waits580.819.2      
control file parallel write16270.517.110.51.8    
control file sequential read40691.35.72.6.5    
cursor: mutex X166.733.3      
cursor: pin S wait on X1233.344.45.616.7    
db file async I/O submit14071.71.4.81.3.4.35.418.7
db file parallel read114,1K24.65.26.17.111.724.420.0.8
db file parallel write2297.72.1.1.1    
db file scattered read1191.13.24.01.6    
db file sequential read53,9K84.98.45.21.4.1.0  
direct path write190.0 10.0     
direct path write temp892.76.4 .9    
enq: CF - contention198.5 1.5     
enq: RO - fast object reuse693.21.6    .84.4
enq: TM - contention175.0     25.0 
enq: US - contention157251.49.811.321.56.0   
gc buffer busy acquire10871.913.29.42.31.61.6  
gc buffer busy release573.715.8 10.5    
gc cr block 2-way1100.0.0      
gc cr block busy8952.418.718.28.62.1   
gc cr block lost2     100.0  
gc cr grant 2-way2100.0    .0  
gc cr grant busy21398.21.7.1  .0 .0
gc cr multi block grant21399.4.5.0  .0  
gc cr multi block mixed42794.61.91.7.9.3.4.2 
gc current block 2-way5100.0.0      
gc current block busy13398.7.7.3.2.1.0.0 
gc current block lost1     100.0  
gc current grant 2-way2100.0.0.0     
gc current grant busy15798.71.1.1 .0   
gc current grant read-mostly invalidation6598.31.5.1 .1.1.0 
gc current multi block request1498.91.0.1     
gc index operation271.414.314.3     
latch free899.5.5      
latch: MGA shared context root latch680.020.0      
latch: cache buffers chains298.02.0      
latch: shared pool1990.010.0      
library cache lock6868.84.127.1     
library cache: mutex X10182.413.44.2     
log file parallel write222076.215.56.41.7.1.0  
log file sync622648.623.818.38.7.7.0  
oracle thread bootstrap190.9  9.1    
oradebug request completion175.0  25.0    
rdbms ipc reply11953.130.712.62.8.8   
read by other session10,4K9.97.112.621.027.217.94.2.1
reliable message495.7 1.11.11.11.1  
resmgr:cpu quantum6291.38.7      
row cache lock27093.91.03.11.8.2   
row cache mutex393.36.7      
undo segment extension180.0 20.0     
write complete waits2     20.020.060.0


Back to Wait Events Statistics
Back to Top

Wait Event Histogram (up to 2 min)

  % of Total Waits
EventWaits 4s to 2m<2s <4s <8s<16s<32s< 1m< 2m>=2m
db file async I/O submit27181.318.1.5.1    
db file parallel read123799.2.8      
enq: RO - fast object reuse1195.6.41.6 .81.6  
gc cr grant busy2100.0.0      
read by other session1099.9.1      
write complete waits340.0 20.040.0    


Back to Wait Events Statistics
Back to Top

Wait Event Histogram (up to 1 hr)

No data exists for this section of the report.

Back to Wait Events Statistics
Back to Top

Service Statistics

Service NameDB Time (s)DB CPU (s)Physical Reads (K)Logical Reads (K)
orcl.example.com96,5426748,53884,076
SYS$USERS10104
SYS$BACKGROUND665943
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 5198569489854335700454130
SYS$USERS 4086210002760
SYS$BACKGROUND 629552600020018000


Back to Wait Events Statistics
Back to Top

Top 10 Channel Waits

ChannelWaitsTotal Wait Time (s)Avg Wait
RBR channel 201.75ms
GEN0 ksbxic channel 180544.89us
kxfp control signal channel 300488.27us
obj broadcast channel 4008.10ms
MMON remote action broadcast channel 20193.41ms


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/O94,899.46
DBW0db writer process 0System I/O921.51
 Others (foregrounds + unclassified backgrounds)Commit603.07
 Others (foregrounds + unclassified backgrounds)Cluster331.18
 Others (foregrounds + unclassified backgrounds)Other275.84
MMMON slave class 1Application236.63
LGWRRedo etc.System I/O208.94
 Others (foregrounds + unclassified backgrounds)Concurrency57.20
CKPTcheckpointSystem I/O32.48
MMMON slave class 1Configuration25.88
MMMON slave class 1User I/O13.81
LMglobal cache service processOther12.18
RMS0rac management serverSystem I/O11.43
CKPTcheckpointUser I/O10.39
Wspace management slave poolUser I/O9.86
 Others (foregrounds + unclassified backgrounds)Configuration9.71
LMONglobal enqueue service monitorOther9.15
MZMMON slave class 2User I/O7.40
IMRCGS IMR SlaveSystem I/O4.89
IMRCGS IMR SlaveUser I/O4.05


Back to Wait Events Statistics
Back to Top

Top Process Types by CPU Used

Process TypeDescriptionCPU Time (sec)
 Others (foregrounds + unclassified backgrounds)669.38
LMglobal cache service process39.31
PParallel query slave13.44
VKTMVirtual Keeper of TiMe process7.79
MMMON slave class 17.30
DBW0db writer process 05.60
GCRGCR Slaves (LMHB)3.56
RS*GCS RM Slave3.42
DIA0diagnosibility process 02.34
VKRMVirtual sKeduler for Resource Manager2.28
LGWRRedo etc.1.94
SCMDLM Statistics Collection and Management Slave1.32
IPC0IPC Service 01.28
LMD0global enqueue service daemon 01.22
LMHBlm heartbeat monitor1.02
MZMMON slave class 20.98
LMD1global enqueue service daemon 10.86
LMONglobal enqueue service monitor0.85
IMRCGS IMR Slave0.83
MMNLManageability Monitor Process 20.56


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
35,696.46146244.5036.970.5599.7256pwkjspvmg3h Warehouse Activity Query WITH STAGE1 AS (SELECT /*+ mat...
35,694.76146244.4836.970.5599.7589b7r2pg1cn4a   BEGIN :1 := orderentry.Warehou...
30,075.51122246.5231.150.5499.74b5dk0t95fhyd7   BEGIN :1 := orderentry.Warehou...
30,075.29122246.5231.150.5499.73gkxxkghxubh1a Warehouse Orders Query SELECT ORDER_MODE, ORDERS.WARE...
27,156.71228119.1128.120.7798.9029qp10usqkqh0 Sales Rep Query SELECT TT.ORDER_TOTAL, TT.SALE...
27,155.81228119.1028.120.7998.99cj9v3ynkm7uuy   BEGIN :1 := orderentry.SalesRe...
1,699.364,9920.341.762.9483.680w2qpuc6u2zsp   BEGIN :1 := orderentry.neworde...
547.7639,5250.010.571.0698.235ckxyqfvu60pj Browse Products SELECT CUSTOMER_ID, CUST_FIRST...
480.6411,0250.040.503.9374.42147a57cxq3w5y JDBC Thin Client BEGIN :1 := orderentry.browsep...
474.2614,4180.030.491.2197.03f7rxuxzt64k87 New Order INSERT INTO ORDER_ITEMS ( ORDE...


Back to SQL Statistics
Back to Top

SQL ordered by CPU Time

CPU Time (s)Executions CPU per Exec (s)%TotalElapsed Time (s)%CPU%IO SQL IdSQL ModuleSQL Text
214.622280.9431.5527,155.810.7998.99cj9v3ynkm7uuy   BEGIN :1 := orderentry.SalesRe...
208.062280.9130.5827,156.710.7798.9029qp10usqkqh0 Sales Rep Query SELECT TT.ORDER_TOTAL, TT.SALE...
195.201461.3428.6935,694.760.5599.7589b7r2pg1cn4a   BEGIN :1 := orderentry.Warehou...
195.131461.3428.6835,696.460.5599.7256pwkjspvmg3h Warehouse Activity Query WITH STAGE1 AS (SELECT /*+ mat...
161.911221.3323.8030,075.510.5499.74b5dk0t95fhyd7   BEGIN :1 := orderentry.Warehou...
161.841221.3323.7930,075.290.5499.73gkxxkghxubh1a Warehouse Orders Query SELECT ORDER_MODE, ORDERS.WARE...
49.994,9920.017.351,699.362.9483.680w2qpuc6u2zsp   BEGIN :1 := orderentry.neworde...
21.0959,7990.003.10142.2414.8371.95c13sma6rkr27c New Order SELECT PRODUCTS.PRODUCT_ID, PR...
18.8811,0250.002.78480.643.9374.42147a57cxq3w5y JDBC Thin Client BEGIN :1 := orderentry.browsep...
7.48170.441.10248.393.011.949yv5dwv8k0awg   WITH MONITOR_DATA AS (SELECT I...


Back to SQL Statistics
Back to Top

SQL ordered by User I/O Wait Time

User I/O Time (s)Executions UIO per Exec (s)%TotalElapsed Time (s)%CPU%IO SQL IdSQL ModuleSQL Text
35,604.38146243.8737.5035,694.760.5599.7589b7r2pg1cn4a   BEGIN :1 := orderentry.Warehou...
35,598.00146243.8237.4935,696.460.5599.7256pwkjspvmg3h Warehouse Activity Query WITH STAGE1 AS (SELECT /*+ mat...
29,997.96122245.8831.6030,075.510.5499.74b5dk0t95fhyd7   BEGIN :1 := orderentry.Warehou...
29,995.39122245.8631.5930,075.290.5499.73gkxxkghxubh1a Warehouse Orders Query SELECT ORDER_MODE, ORDERS.WARE...
26,881.49228117.9028.3127,155.810.7998.99cj9v3ynkm7uuy   BEGIN :1 := orderentry.SalesRe...
26,858.21228117.8028.2927,156.710.7798.9029qp10usqkqh0 Sales Rep Query SELECT TT.ORDER_TOTAL, TT.SALE...
1,422.004,9920.281.501,699.362.9483.680w2qpuc6u2zsp   BEGIN :1 := orderentry.neworde...
538.0539,5250.010.57547.761.0698.235ckxyqfvu60pj Browse Products SELECT CUSTOMER_ID, CUST_FIRST...
460.1814,4180.030.48474.261.2197.03f7rxuxzt64k87 New Order INSERT INTO ORDER_ITEMS ( ORDE...
357.7011,0250.030.38480.643.9374.42147a57cxq3w5y JDBC Thin Client BEGIN :1 := orderentry.browsep...


Back to SQL Statistics
Back to Top

SQL ordered by Gets

Buffer Gets ExecutionsGets per Exec %TotalElapsed Time (s) %CPU %IO SQL IdSQL ModuleSQL Text
39,737,853228174,288.8346.7627,155.81,899cj9v3ynkm7uuy   BEGIN :1 := orderentry.SalesRe...
39,647,015228173,890.4246.6527,156.71,898,929qp10usqkqh0 Sales Rep Query SELECT TT.ORDER_TOTAL, TT.SALE...
20,755,966146142,164.1524.4235,694.76,599,789b7r2pg1cn4a   BEGIN :1 := orderentry.Warehou...
20,752,078146142,137.5224.4235,696.46,599,756pwkjspvmg3h Warehouse Activity Query WITH STAGE1 AS (SELECT /*+ mat...
17,385,629122142,505.1620.4630,075.51,599,7b5dk0t95fhyd7   BEGIN :1 := orderentry.Warehou...
17,384,026122142,492.0220.4630,075.29,599,7gkxxkghxubh1a Warehouse Orders Query SELECT ORDER_MODE, ORDERS.WARE...
4,322,0654,992865.805.091,699.362,983,70w2qpuc6u2zsp   BEGIN :1 := orderentry.neworde...
3,595,16759,79960.124.23142.2414,871,9c13sma6rkr27c New Order SELECT PRODUCTS.PRODUCT_ID, PR...
1,442,16711,025130.811.70480.643,974,4147a57cxq3w5y JDBC Thin Client BEGIN :1 := orderentry.browsep...
1,326,221131,67810.071.5613.5949,21,50y1prvxqc2ra9 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
3,280,63214622,470.0838.4035,694.760.5599.7589b7r2pg1cn4a   BEGIN :1 := orderentry.Warehou...
3,279,72814622,463.8938.3935,696.460.5599.7256pwkjspvmg3h Warehouse Activity Query WITH STAGE1 AS (SELECT /*+ mat...
2,768,16112222,689.8432.4030,075.510.5499.74b5dk0t95fhyd7   BEGIN :1 := orderentry.Warehou...
2,767,90512222,687.7532.4030,075.290.5499.73gkxxkghxubh1a Warehouse Orders Query SELECT ORDER_MODE, ORDERS.WARE...
2,331,33322810,225.1427.2927,155.810.7998.99cj9v3ynkm7uuy   BEGIN :1 := orderentry.SalesRe...
2,328,68922810,213.5527.2627,156.710.7798.9029qp10usqkqh0 Sales Rep Query SELECT TT.ORDER_TOTAL, TT.SALE...
94,9584,99219.021.111,699.362.9483.680w2qpuc6u2zsp   BEGIN :1 := orderentry.neworde...
33,47839,5250.850.39547.761.0698.235ckxyqfvu60pj Browse Products SELECT CUSTOMER_ID, CUST_FIRST...
29,13714,4182.020.34474.261.2197.03f7rxuxzt64k87 New Order INSERT INTO ORDER_ITEMS ( ORDE...
21,88611,0251.990.26480.643.9374.42147a57cxq3w5y JDBC Thin Client BEGIN :1 := orderentry.browsep...


Back to SQL Statistics
Back to Top

SQL ordered by Physical Reads (UnOptimized)

UnOptimized Read ReqsPhysical Read ReqsExecutionsUnOptimized Reqs per Exec%Opt%Total SQL IdSQL ModuleSQL Text
3,280,7563,280,75614622,470.930.0038.4189b7r2pg1cn4a   BEGIN :1 := orderentry.Warehou...
3,280,6703,280,67014622,470.340.0038.4156pwkjspvmg3h Warehouse Activity Query WITH STAGE1 AS (SELECT /*+ mat...
2,768,3172,768,31712222,691.120.0032.41b5dk0t95fhyd7   BEGIN :1 := orderentry.Warehou...
2,768,0612,768,06112222,689.020.0032.41gkxxkghxubh1a Warehouse Orders Query SELECT ORDER_MODE, ORDERS.WARE...
2,331,2192,331,21922810,224.640.0027.29cj9v3ynkm7uuy   BEGIN :1 := orderentry.SalesRe...
2,330,4222,330,42222810,221.150.0027.2829qp10usqkqh0 Sales Rep Query SELECT TT.ORDER_TOTAL, TT.SALE...
94,95894,9584,99219.020.001.110w2qpuc6u2zsp   BEGIN :1 := orderentry.neworde...
33,47733,47739,5250.850.000.395ckxyqfvu60pj Browse Products SELECT CUSTOMER_ID, CUST_FIRST...
29,13729,13714,4182.020.000.34f7rxuxzt64k87 New Order INSERT INTO ORDER_ITEMS ( ORDE...
21,88621,88611,0251.990.000.26147a57cxq3w5y JDBC Thin Client BEGIN :1 := orderentry.browsep...


Back to SQL Statistics
Back to Top

SQL ordered by Executions

Executions Rows ProcessedRows per ExecElapsed Time (s) %CPU %IO SQL IdSQL ModuleSQL Text
131,6781,843,43614.0013.5949,21,50y1prvxqc2ra9 Browse Products SELECT PRODUCTS.PRODUCT_ID, PR...
59,799268,5174.49142.2414,871,9c13sma6rkr27c New Order SELECT PRODUCTS.PRODUCT_ID, PR...
39,52539,5711.00547.761,198,25ckxyqfvu60pj Browse Products SELECT CUSTOMER_ID, CUST_FIRST...
23,21023,2121.000.4384,607sg1vrjgxfgqm Browse and Update Orders select count(1) from sys.idnse...
16,02014,4180.905.9318,873,38z3542ffmp562 New Order SELECT QUANTITY_ON_HAND FROM P...
14,41814,4181.00474.261,297f7rxuxzt64k87 New Order INSERT INTO ORDER_ITEMS ( ORDE...
11,02511,0251.00480.643,974,4147a57cxq3w5y JDBC Thin Client BEGIN :1 := orderentry.browsep...
6,88510,4981.52269.401,196,3g81cbrq5yamf5 Browse and Update Orders SELECT ADDRESS_ID, CUSTOMER_ID...
6,6146,6141.00229.49,816,5gzhkw1qu6fwxm Browse Products INSERT INTO LOGON (LOGON_ID, C...
4,9924,9921.001,699.362,983,70w2qpuc6u2zsp   BEGIN :1 := orderentry.neworde...
4,9924,9921.00386.891,471,73fw75k1snsddx New Order INSERT INTO ORDERS ( ORDER_ID,...
4,9924,9921.0035.052,795,75mddt5kt45rg3 New Order UPDATE ORDERS SET ORDER_MODE =...
4,9927,4161.49211.31,996,87ws837zynp1zv New Order SELECT CARD_ID, CUSTOMER_ID, C...
4,67314,4183.096.2319,4,47r7636982atn9 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
3994003.385dqz0hqtp9fru   select /*+ connect_by_filterin...
2232231.893dbzmtf9ahvzt   merge /* KSXM:OPTIM_DML_INF */...
2082081.769s5cdq3h4nfbj   select dummy from dual where u...
2072081.75f0h5rpzmhju11   select SYS_CONTEXT('USERENV', ...
2002001.690k8522rmdzg4k   select privilege# from sysauth...
1992001.695x2x7y2umr3y7   select decode(upper(failover_m...
18501.57ffb1nv5k5adkg DBO SELECT systimestamp "SNAPSHOT_...
1841841.56asvzxj61dc5vs   select timestamp, flags from f...
1814661.53f3ww8rgva3hrs   update /* KSXM:FLUSH COL */ sy...
16201.37a4akgk9g69h83 SQL Developer SELECT d.* FROM ( SELECT d.*, ...
1381,6151.1787gaftwrm2h68   select o.owner#, o.name, o.nam...
1281281.088vyjutx6hg3wh   update /*+ rule */ undo$ set n...


Back to SQL Statistics
Back to Top

SQL ordered by Sharable Memory

Sharable Mem (b)Executions % Total SQL IdSQL ModuleSQL Text
18,787,473171.039yv5dwv8k0awg   WITH MONITOR_DATA AS (SELECT I...
2,147,540170.12atwuyuvqkf27w   SELECT /*+ OPT_PARAM('_fix_con...
1,106,51020.063kqrku32p6sfn   MERGE /*+ OPT_PARAM('_parallel...


Back to SQL Statistics
Back to Top

SQL ordered by Version Count

Version Count Executions SQL IdSQL ModuleSQL Text
23341acmvv4fhdc9zh   select obj#, type#, ctime, mti...
22161g0t052az3rx44   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
172.0722851.0927,155.810.630.7998.99cj9v3ynkm7uuy   BEGIN :1 := orderentry.SalesRe...
171.9722851.0527,156.710.630.7798.9029qp10usqkqh0 Sales Rep Query SELECT TT.ORDER_TOTAL, TT.SALE...
70.654,99220.971,699.364.162.9483.680w2qpuc6u2zsp   BEGIN :1 := orderentry.neworde...
23.204,9926.89386.896.001.3871.723fw75k1snsddx New Order INSERT INTO ORDERS ( ORDER_ID,...
20.791226.1730,075.510.070.5499.74b5dk0t95fhyd7   BEGIN :1 := orderentry.Warehou...
20.761226.1630,075.290.070.5499.73gkxxkghxubh1a Warehouse Orders Query SELECT ORDER_MODE, ORDERS.WARE...
19.701465.8535,694.760.060.5599.7589b7r2pg1cn4a   BEGIN :1 := orderentry.Warehou...
19.701465.8535,696.460.060.5599.7256pwkjspvmg3h Warehouse Activity Query WITH STAGE1 AS (SELECT /*+ mat...
17.7759,7995.28142.2412.4914.8371.95c13sma6rkr27c New Order SELECT PRODUCTS.PRODUCT_ID, PR...
15.111,8784.49361.494.181.6585.1201jzc2mg6cg92 JDBC Thin Client BEGIN :1 := orderentry.newcust...
11.811,8783.51206.445.721.2577.49gh2g2tynpcpv1 Update Customer Details INSERT INTO CUSTOMERS ( CUSTOM...
10.2514,4183.04474.262.161.2197.03f7rxuxzt64k87 New Order INSERT INTO ORDER_ITEMS ( ORDE...
9.4511,0252.81480.641.973.9374.42147a57cxq3w5y JDBC Thin Client BEGIN :1 := orderentry.browsep...
8.166,8852.42269.403.031.1496.32g81cbrq5yamf5 Browse and Update Orders SELECT ADDRESS_ID, CUSTOMER_ID...
7.941,8932.36267.612.971.3481.83apgb2g9q2zjh1 Update Customer Details BEGIN :1 := orderentry.browsea...
5.584,9921.66211.312.640.9096.767ws837zynp1zv New Order SELECT CARD_ID, CUSTOMER_ID, C...
5.40131,6781.6013.5939.7549.211.480y1prvxqc2ra9 Browse Products SELECT PRODUCTS.PRODUCT_ID, PR...
5.214,6731.556.2383.6119.430.367r7636982atn9 New Order UPDATE INVENTORIES SET QUANTIT...
4.8939,5251.45547.760.891.0698.235ckxyqfvu60pj Browse Products SELECT CUSTOMER_ID, CUST_FIRST...
3.606041.0782.774.351.4089.34a9gvfh5hx9u98   BEGIN :1 := orderentry.process...
2.356040.7019.2412.201.8065.32f9u2k84v884y7 Process Orders UPDATE /*+ index(orders, order...
1.881,8780.5686.862.161.3996.729t3n2wpr7my63 Update Customer Details INSERT INTO ADDRESSES ( ADDRES...
1.361,8780.4062.372.181.5496.72budtrjayjnvw3 Update Customer Details INSERT INTO CARD_DETAILS ( CAR...
1.256040.3763.001.980.9797.437hk2m2702ua0g Process Orders WITH NEED_TO_PROCESS AS (SELEC...
1.186,6140.35229.490.520.8416.47gzhkw1qu6fwxm Browse Products INSERT INTO LOGON (LOGON_ID, C...
0.9416,0200.285.9315.8318.7673.308z3542ffmp562 New Order SELECT QUANTITY_ON_HAND FROM P...
0.764,9920.2335.052.182.7295.695mddt5kt45rg3 New Order UPDATE ORDERS SET ORDER_MODE =...
0.681,8930.2052.161.300.9898.017t0959msvyt5g Browse and Update Orders SELECT ORDER_ID, ORDER_DATE, O...
0.674140.201.1956.185.0439.729tgj4g8y4rwy8   select type#, blocks, extents,...
0.601,2290.1817.013.553.4792.15cmndgkbkcz5s9 JDBC Thin Client BEGIN :1 := orderentry.updateC...
0.253460.0720.371.210.8248.821b3utaf6tfhfy Browse and Update Orders UPDATE ORDER_ITEMS SET QUANTIT...
0.24180.07276.610.091.284.06fhf8upax5cxsz   BEGIN sys.dbms_auto_report_int...
0.12170.04271.270.041.182.340w26sk6t6gq98   SELECT XMLTYPE(DBMS_REPORT.GET...
0.094000.030.2046.9836.440.305dqz0hqtp9fru   select /*+ connect_by_filterin...
0.07170.02248.390.033.011.949yv5dwv8k0awg   WITH MONITOR_DATA AS (SELECT I...
0.051420.011.174.1713.4380.30121ffmrc95v7g   select i.obj#, i.ts#, i.file#,...
0.041,6150.010.2121.0219.0161.7687gaftwrm2h68   select o.owner#, o.name, o.nam...
0.043410.011.632.573.9394.88acmvv4fhdc9zh   select obj#, type#, ctime, mti...
0.04160.010.0666.9413.9423.29c3zymn7x3k6wy   select obj#, dataobj#, part#, ...
0.031020.011.961.652.4096.653un99a0zwp4vd   select owner#, name, namespace...
0.032000.010.1226.2361.410.370k8522rmdzg4k   select privilege# from sysauth...
0.0310.010.506.086.6687.98bmcj2k06ncg3y   select /*jskqjobqlod1*/ /*+ n...
0.021020.010.693.213.7593.888swypbbr0m372   select order#, columns, types ...
0.0210.012.160.994.8594.577k8f78knyky5s   select 1 from DBA_SCHEDULER_JO...
0.0220.014.710.433.5926.72dadfjwdntaxx0 sqlplus@rac1.example.com (TNS V1-V3) select a.name, b.tablespace_na...
0.022080.010.0628.5550.8226.139s5cdq3h4nfbj   select dummy from dual where u...
0.021770.000.1411.9146.9616.330kkhhb2w93cx0   update seg$ set type#=:4, bloc...
0.011840.000.692.164.6995.21asvzxj61dc5vs   select timestamp, flags from f...
0.0110.000.0261.4220.6819.006s1ku6bs9a8xb   WITH ash as (SELECT ash.event...
0.014660.000.168.6323.2471.75f3ww8rgva3hrs   update /* KSXM:FLUSH COL */ sy...
0.0120.001.790.708.4188.220t6nkzb4d1kcb sqlplus@rac2.example.com (TNS V1-V3) select a.name, (a.space_limit)...
0.01400.000.791.4633.3565.70dvu40a9avazf8   select xmlagg( xmlelement("ope...
0.01540.000.462.313.1996.53fh5ufah919kun   select /*+ index(idl_sb4$ i_id...
0.01180.000.323.116.8490.58adds4wma0y8c4   select t.obj#, t.dataobj#, t.p...
0.0100.001.240.786.5191.182f6fxjc24d4u1   select fusg.file_type, decode(...
0.0100.001.260.777.9589.71cb7c88kf75v5g   select file_type, percent_spac...
0.0120.001.640.5445.5154.153kqrku32p6sfn   MERGE /*+ OPT_PARAM('_parallel...
0.0160.000.253.4417.5980.63f931zc8qhhfaa   SELECT ST.* FROM XMLTABLE('/hi...
0.01340.000.0810.2913.9976.88dycmpuj6apqjs   select pc.intcol#, pc.col# , p...
0.01170.002.040.3843.5345.93atwuyuvqkf27w   SELECT /*+ OPT_PARAM('_fix_con...
0.0160.000.611.0012.0887.004js707bppkjmv   WITH PTDP AS (SELECT PT.ID, PT...


Back to SQL Statistics
Back to Top

Complete List of SQL Text

SQL IdSQL Text
01jzc2mg6cg92BEGIN :1 := orderentry.newcustomer(:2 , :3 , :4 , :5 , :6 , :7 , :8 , :9 , :10 ); END;
0k8522rmdzg4kselect privilege# from sysauth$ where (grantee#=:1 or grantee#=1) and privilege#>0
0kkhhb2w93cx0update seg$ set type#=:4, blocks=:5, extents=:6, minexts=:7, maxexts=:8, extsize=:9, extpct=:10, user#=:11, iniexts=:12, lists=decode(:13, 65535, NULL, :13), groups=decode(:14, 65535, NULL, :14), cachehint=:15, hwmincr=:16, spare1=DECODE(:17, 0, NULL, :17), scanhint=:18, bitmapranges=:19 where ts#=:1 and file#=:2 and block#=:3
0t6nkzb4d1kcbselect a.name, (a.space_limit)/(1024*1024)SPACE_LIMIT, b.file_type, ((b.PERCENT_SPACE_USED/100)*a.SPACE_LIMIT)/(1024*1024) TOTAL_SPACE_USED, b.PERCENT_SPACE_USED TOTAL_PERCENT_SPACE_USED, ((b.PERCENT_SPACE_RECLAIMABLE/100)*a.SPACE_LIMIT)/(1024*1024) space_reclaimable, b.PERCENT_SPACE_RECLAIMABLE, (((b.PERCENT_SPACE_USED-b.PERCENT_SPACE_RECLAIMABLE)/100)*a.SPACE_LIMIT)/(1024*1024), b.PERCENT_SPACE_USED-b.PERCENT_SPACE_RECLAIMABLE PERCENT_SPACE_USED from V$RECOVERY_FILE_DEST a, V$FLASH_RECOVERY_AREA_USAGE b order by b.file_type
0w26sk6t6gq98SELECT XMLTYPE(DBMS_REPORT.GET_REPORT_WITH_SUMMARY(:B1 )) FROM DUAL
0w2qpuc6u2zspBEGIN :1 := orderentry.neworder(:2 , :3 , :4 ); END;
0y1prvxqc2ra9SELECT PRODUCTS.PRODUCT_ID, PRODUCT_NAME, PRODUCT_DESCRIPTION, CATEGORY_ID, WEIGHT_CLASS, WARRANTY_PERIOD, SUPPLIER_ID, PRODUCT_STATUS, LIST_PRICE, MIN_PRICE, CATALOG_URL, QUANTITY_ON_HAND FROM PRODUCTS, INVENTORIES WHERE PRODUCTS.PRODUCT_ID = :B2 AND INVENTORIES.PRODUCT_ID = PRODUCTS.PRODUCT_ID AND ROWNUM < :B1
121ffmrc95v7gselect i.obj#, i.ts#, i.file#, i.block#, i.intcols, i.type#, i.flags, i.property, i.pctfree$, i.initrans, i.maxtrans, i.blevel, i.leafcnt, i.distkey, i.lblkkey, i.dblkkey, i.clufac, i.cols, i.analyzetime, i.samplesize, i.dataobj#, nvl(i.degree, 1), nvl(i.instances, 1), i.rowcnt, mod(i.pctthres$, 256), i.indmethod#, i.trunccnt, nvl(c.unicols, 0), nvl(c.deferrable#+c.valid#, 0), nvl(i.spare1, i.intcols), i.spare4, i.spare2, i.spare6, decode(i.pctthres$, null, null, mod(trunc(i.pctthres$/256), 256)), nvl(i.evaledition#, 1), nvl(i.unusablebefore#, 0), nvl(i.unusablebeginning#, 0), ist.cachedblk, ist.cachehit, ist.logicalread from ind$ i, ind_stats$ ist, (select enabled, min(intcols) unicols, min(to_number(bitand(defer, 1))) deferrable#, min(to_number(bitand(defer, 4))) valid# from cdef$ where obj#=:1 and enabled > 1 group by enabled) c where i.obj#=c .enabled(+) and i.obj# = ist.obj#(+) and i.bo#=:1 order by i.obj#
147a57cxq3w5yBEGIN :1 := orderentry.browseproducts(:2 , :3 , :4 ); END;
1b3utaf6tfhfyUPDATE ORDER_ITEMS SET QUANTITY = QUANTITY + 1 WHERE ORDER_ITEMS.ORDER_ID = :B2 AND ORDER_ITEMS.LINE_ITEM_ID = :B1
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
2f6fxjc24d4u1select fusg.file_type, decode(nvl2(ra.name, ra.space_limit, 0), 0, 0, round(nvl(fusg.space_used, 0)/ra.space_limit, 4) * 100), decode(nvl2(ra.name, ra.space_limit, 0), 0, 0, round(nvl(fusg.space_reclaimable, 0)/ra.space_limit, 4) * 100), nvl2(ra.name, fusg.number_of_files, 0), ra.con_id from v$recovery_file_dest ra, (select 'CONTROL FILE' file_type, sum(case when ceilasm = 1 and name like '+%' then ceil(((block_size*file_size_blks)+1)/1048576)*1048576 else block_size*file_size_blks end) space_used, 0 space_reclaimable, count(*) number_of_files from v$controlfile, (select /*+ no_merge */ ceilasm from x$krasga) where is_recovery_dest_file = 'YES' union all select 'REDO LOG' file_type, sum(case when ceilasm = 1 and member like '+%' then ceil((l.bytes+1)/1048576)*1048576 else l.bytes end) space_used, 0 space_reclaimable, count(*) number_of_files from (select group#, bytes from v$log union select group#, bytes from v$standby_log) l, v$logfile lf, (select /*+ no_merge */ ceilasm from x$krasga) where l.group# = lf.group# and lf.is_recovery_dest_file = 'YES' union all select 'ARCHIVE D LOG' file_type, sum(al.file_size) space_used, sum(case when dl.rectype = 11 then al.file_size else 0 end) space_reclaimable, count(*) number_of_files from (select recid, case when ceilasm = 1 and name like '+%' then ceil(((blocks*block_size)+1)/1048576)*1048576 else blocks * block_size end file_size from v$archived_log, (select /*+ no_merge */ ceilasm f rom x$krasga) where is_recovery_dest_file = 'YES' and name is not null) al, x$kccagf dl where al.recid = dl.recid(+) and dl.rectype(+) = 11 union all select 'BACKUP PIECE' file_type, sum(bp.file_size) space_used, sum(case when dl.rectype = 13 then bp.file_size else 0 end) space_reclaimable, count(*) number_of_files from (select recid, case when ceilasm = 1 and handle like '+%' then ceil((bytes+1)/1048576)*1048576 else bytes end file_size from v$backup_piece, (select /*+ no_merge */ ceilasm from x$krasga) where is_recovery_dest_file = 'YES' and handle is not null) bp, x$kccagf dl where bp.recid = dl.recid(+) and dl.rectype(+) = 13 union all select 'IMAGE COPY' file_ type, sum(dc.file_size) space_used, sum(case when dl.rectype = 16 then dc.file_size else 0 end) space_reclaimable, count(*) number_of_files from (select recid, case when ceilasm = 1 and name like '+%' then ceil(((blocks*block_size)+1)/1048576)*1048576 else blocks * block_size end file_size from v$datafile_copy, (select /*+ no_merge */ ceilasm from x$krasga) where is_recovery_dest_file = 'YES' and name is not null) dc, x$kccagf dl where dc.recid = dl.recid(+) and dl.rectype(+) = 16 union all select 'FLASHBACK LOG' file_type, nvl(fl.space_used, 0) space_used, nvl(fb.reclsiz, 0) space_reclaimable, nvl(fl.number_of_files, 0) number_of_files from (select sum(case when ceilasm = 1 and name like '+%' then ceil((fl.bytes+1)/1048576)*1048576 else bytes end)space_used, count(*) number_of_files from v$flashback_database_logfile fl, (select /*+ no_merge */ ceilasm from x$krasga)) fl, (select sum(to_number(fblogreclsiz)) reclsiz from x$krfblog)fb union all select 'FOREIGN ARCHIVED LOG' file_type, sum(rlr.file_size) space_used, sum(case when rlr.purgable = 1 then rlr.file_size else 0 end) space_reclaimable, count(*) number_of_files from (select case when ceilasm = 1 and rlnam like '+%' then ceil(((rlbct*rlbsz)+1)/1048576)*1048576 else rlbct*rlbsz end file_size, case when bitand(rlfl2, 4096) = 4096 then 1 when bitand(rlfl2, 8192) = 8192 then 1 else 0 end purgable from x$kccrl, (select /*+ no_merge */ ceilasm from x$krasga) where bitand(rlfl2, 64) = 64 and rlnam is not null)rlr union all select 'AUXILIARY DATAFILE COPY' file_type, sum(adc.file_size) space_used, sum(case when adc.purgable = 1 then adc.file_size else 0 end) space_reclaimable, count(*) number_of_files from (select case when ceilasm = 1 and adfcnam like '+%' then ceil(((adfcnblks*adfcbsz)+1)/1048576)*1048576 else adfcnblks*adfcbsz end file_size, adfcrecl purgable from x$kccadfc, (select /*+ no_merge */ ceilasm from x$krasga) where bitand(adfcflg, 1) = 1 and adfcnam is not null)adc)fusg
3dbzmtf9ahvztmerge /* KSXM:OPTIM_DML_INF */ into sys.mon_mods_all$ m using dual on (m.obj# = :objn and (:pobjn = 0 or m.obj# = :pobjn or m.obj# in (select obj# from tabpart$ where bo# = :pobjn and obj# = :objn union all select obj# from tabcompart$ where bo# = :pobjn and obj # = :objn union all select tsp.obj# from tabsubpart$ tsp, tabcompart$ tcp where tsp.pobj# = tcp.obj# and (tcp.bo# = :pobjn or tcp.obj# = :pobjn) and tsp.obj# = :objn))) when matched then update set inserts = decode(:reset, 1, 0, inserts) + :ins, updates = decode(:reset, 1, 0, updates) + :upd, deletes = decode(:reset, 1, 0, deletes) + :del, flags = decode(:reset, 1, 0, flags - bitand(flags, :flag)) + :flag, drop_segments = decode(:reset, 1, 0, dro p_segments) + :dropseg, timestamp = :time when NOT matched then insert (obj#, inserts, updates, deletes, timestamp, flags, drop_segments) values (:objn, :ins, :upd, :del, :time, :flag, :dropseg) where :ins != 0 or :upd != 0 or :del != 0 or :flag != 0 or :dropseg !=0
3fw75k1snsddxINSERT INTO ORDERS ( ORDER_ID, ORDER_DATE, ORDER_MODE, CUSTOMER_ID, ORDER_STATUS, WAREHOUSE_ID, DELIVERY_TYPE, DELIVERY_ADDRESS_ID, COST_OF_DELIVERY, WAIT_TILL_ALL_AVAILABLE, CUSTOMER_CLASS, CARD_ID, INVOICE_ADDRESS_ID ) VALUES ( ORDERS_SEQ.NEXTVAL + :B8 , SYSTIMESTAMP , 'online', :B7 , 1, :B6 , 'Standard', :B1 , DBMS_RANDOM.VALUE(:B5 , :B4 ), 'ship_asap', :B2 , :B3 , :B1 ) RETURNING ORDER_ID INTO :O0
3kqrku32p6sfnMERGE /*+ OPT_PARAM('_parallel_syspls_obey_force' 'false') */ INTO OPTSTAT_USER_PREFS$ D USING ( SELECT * FROM (SELECT O.OBJ#, SYSTIMESTAMP CHGTIME, ROUND(MAX(S.DELTA_READ_IO_BYTES/S.DELTA_TIME), 3) SCANRATE FROM GV$ACTIVE_SESSION_HISTORY S, GV$SQL_PLAN P, OBJ$ O, USER$ U WHERE S.INST_ID = P.INST_ID AND S.SQL_ID = P.SQL_ID AND S.SQL_PLAN_HASH_VALUE = P.PLAN_HASH_VALUE AND S.SQL_PLAN_LINE_ID = P.ID AND P.OBJECT_NAME = O.NAME AND (:B4 IS NULL OR O.OBJ# = :B4 ) AND O.OWNER# = U.USER# AND P.OBJECT_OWNER = U.NAME AND O.TYPE# = 2 AND S.CON_ID = SYS_CONTEXT('userenv', 'con_id') AND P.CON_ID = SYS_CONTEXT('userenv', 'con_id') AND S.SQL_PLAN_OPERATION = 'TABLE ACCESS' AND P.OPERATION = 'TABLE ACCESS' AND S.DELTA_TIME > 0 AND S.DELTA_READ_IO_BYTES > 0 AND FROM_TZ(S.SAMPLE_TIME, :B3 ) > :B2 AND (:B1 = 'ON' OR (:B1 = 'HADOOP_ONLY' AND EXISTS ( SELEC T NULL FROM SYS.EXTERNAL_TAB$ ET WHERE ET.OBJ# = O.OBJ# AND TYPE$ IN ('ORACLE_HIVE', 'ORACLE_HDFS', 'ORACLE_BIGDATA')))) GROUP BY O.OBJ#) C WHERE NOT EXISTS (SELECT NULL FROM OPTSTAT_USER_PREFS$ PR WHERE PNAME = 'SCAN_RATE' AND C.OBJ# = PR.OBJ# AND (PR.SPARE1 IS NULL OR C.SCANRATE <= TO_NUMBER(PR.VALCHAR))) ) SRC ON (D.OBJ#=SRC.OBJ# AND D.PNAME = 'SCAN_RATE') WHEN MATCHED THEN UPDATE SET D.VALCHAR= TO_CHAR(SRC.SCANRATE), D.CHGTIME=SRC.CHGTIME, D.SPARE1=1 WHEN NOT MATCHED THEN INSERT (OBJ#, PNAME, VALCHAR, CHGTIME, SPARE1) VALUES(SRC.OBJ#, 'SCAN_RATE', TO_CHAR(SRC.SCANRATE), SRC.CHGTIME, 1)
3un99a0zwp4vdselect owner#, name, namespace, remoteowner, linkname, p_timestamp, p_obj#, nvl(property, 0), subname, type#, flags, d_attrs from dependency$ d, obj$ o where d_obj#=:1 and p_obj#=obj#(+) order by order#
4js707bppkjmvWITH PTDP AS (SELECT PT.ID, PT.QBLOCK_NAME, PT.OBJECT_ALIAS, DP.DISPLAY_ID DPID FROM TABLE(:B1 ) PT, TABLE(:B2 ) DP WHERE PT.ID = DP.OPER_ID(+) AND DP.SKIPPED(+) != 1), PLAN_DISP_TAB AS (SELECT GPT.QBLOCK_NAME, NVL(GPT.OBJECT_ALIAS, ' ') TALIAS, GPT.ID, GPT.DPID FROM (SELECT PTV.QBLOCK_NAME, PTV.OBJECT_ALIAS, MIN(PTV.ID) ID, MIN(PTV.DPID) DPID FROM (SELECT P1.* FROM PTDP P1 WHERE P1.DPID = (SELECT MIN(P2.DPID) FROM PTDP P2 WHERE P1.QBLOCK_NAME = P2.QBLOCK_NAME AND (P1.OBJECT_ALIAS = P2.OBJECT_ALIAS OR P1.OBJECT_ALIAS IS NULL AND P2.OBJECT_ALIAS IS NULL)) OR (P1.DPID IS NULL AND NVL((SELECT MIN(P2.DPID) FROM PTDP P2 WHERE P1.QBLOCK_NAME = P2.QBLOCK_NAME AND (P1.OBJECT_ALIAS = P2.OBJECT_ALIAS OR P1.OBJECT_ALIAS IS NULL AND P2.OBJECT_ALIAS IS NULL)), 0) = 0) ) PTV GROUP BY PTV.QBLOCK_NAME, PTV.OBJECT_ALIAS ) GPT ) SELECT FHINT.* FROM (SELECT HT ABLE.QB, HTABLE.QST, HTABLE.O, HTABLE.HST, HTABLE.TEXT, HTABLE.REAS, DECODE(HTABLE.TALIAS, ' ', NULL, HTABLE.TALIAS) TALIAS, HTABLE.TST, (CASE WHEN PT.QBLOCK_NAME IS NULL AND EXISTS(SELECT 1 FROM PLAN_DISP_TAB PTQ WHERE PTQ.QBLOCK_NAME = HTABLE.QB) THEN (SELECT NVL(MIN(PTQ.DPID), NVL(MIN(PTQ.ID), 0)) FROM PLAN_DISP_TAB PTQ WHERE PTQ.QBLOCK_NAME = HTABLE.QB) WHEN PT.QBLOCK_NAME IS NULL THEN 0 WHEN PT.DPID IS NULL THEN PT.ID ELSE PT.DPID END) LID FROM (SELECT HT.QB, HT.QST, HT.O, HT.HST, HT.TEXT, HT.REAS, NVL(HT.TALIAS, ' ') TALIAS, HT.TST FROM (SELECT QB.QB, QB.QST, HNT.* FROM XMLTABLE('/hint_usage/q' PASSING XMLTYPE(:B3 ) COLUMNS QB VARCHAR2(4000) PATH './n', QST VARCHAR2(3) PATH '@st', HINTS XMLTYPE PATH './*') QB, XMLTABLE('//h' PASSING QB.HINTS COLUMNS O VARCHAR2(3) PATH '@o', HST VARCHAR2(3) PATH '@st', TEXT CLOB PATH 'x', REAS VARCHAR2(4000) PATH 'r', TALIAS VARCHAR2(4000) PATH './../f', TST VARCHAR2(3) PATH './../@st') HNT ) HT ) HTABLE, PLAN_DISP_ TAB PT WHERE PT.QBLOCK_NAME(+) = HTABLE.QB AND PT.TALIAS(+) = HTABLE.TALIAS) FHINT ORDER BY FHINT.LID, FHINT.QST, FHINT.QB, FHINT.TST, FHINT.TALIAS NULLS FIRST, FHINT.HST, FHINT.O, DBMS_LOB.SUBSTR(FHINT.TEXT, 4000, 1), FHINT.REAS
56pwkjspvmg3hWITH STAGE1 AS (SELECT /*+ materialize CARDINALITY(12) */ (ROWNUM*(1/288)) OFFSET FROM DUAL CONNECT BY ROWNUM <= 12 ), STAGE2 AS (SELECT /*+ materialize CARDINALITY(12) */ LAG(OFFSET, 1, 0) OVER (ORDER BY ROWNUM) OSTART, OFFSET OEND FROM STAGE1 ), STAGE3 AS (SELECT /*+ materialize CARDINALITY(12) */ (SYSTIMESTAMP - OSTART) DATE1, (SYSTIMESTAMP - OEND) DATE2 FROM STAGE2 ) SELECT WAREHOUSE_ID, DATE1, DATE2, SUM(ORDERS.ORDER_TOTAL) "Value of Orders", COUNT(1) "Number of Orders" FROM STAGE3, ORDERS WHERE ORDER_DATE BETWEEN DATE2 AND DATE1 AND WAREHOUSE_ID = :B1 GROUP BY WAREHOUSE_ID, DATE1, DATE2 ORDER BY DATE1, DATE2 DESC
5ckxyqfvu60pjSELECT CUSTOMER_ID, CUST_FIRST_NAME, CUST_LAST_NAME, NLS_LANGUAGE, NLS_TERRITORY, CREDIT_LIMIT, CUST_EMAIL, ACCOUNT_MGR_ID, CUSTOMER_SINCE, CUSTOMER_CLASS, SUGGESTIONS, DOB, MAILSHOT, PARTNER_MAILSHOT, PREFERRED_ADDRESS, PREFERRED_CARD FROM CUSTOMERS WHERE CUSTOMER_ID = :B2 AND ROWNUM < :B1
5dqz0hqtp9fruselect /*+ connect_by_filtering index(sysauth$ i_sysauth1) */ privilege#, bitand(nvl(option$, 0), 72), grantee#, level from sysauth$ connect by grantee#=prior privilege# and privilege#>0 start with grantee#=:1 and privilege#>0
5mddt5kt45rg3UPDATE ORDERS SET ORDER_MODE = 'online', ORDER_STATUS = FLOOR(DBMS_RANDOM.VALUE(0, :B3 )), ORDER_TOTAL = :B2 WHERE ORDER_ID = :B1
5x2x7y2umr3y7select decode(upper(failover_method), NULL, 0 , 'BASIC', 1, 'PRECONNECT', 2 , 'PREPARSE', 4 , 0), decode(upper(failover_type), NULL, 1, 'NONE', 1, 'SESSION', 2, 'SELECT', 4, 'TRANSACTION', 8, 'AUTO' , 8, 1 ), failover_retries, failover_delay, flags, nvl(replay_initiation_timeout, 900), decode(upper(session_state_consistency), 'STATIC', 16, 0), failover_restore from sys.service$ where name = :1
6s1ku6bs9a8xb WITH ash as (SELECT ash.event_id, sum(decode(ash.session_type, 1, 1, 0)) as cnt_fg, count(*) as cnt_total FROM WRH$_ACTIVE_SESSION_HISTORY ash WHERE ash.dbid = :dbid AND ash.instance_number = :inst AND ash.snap_id > :bid AND ash.snap_id <= :eid AND ash.wait_time = 0 GROUP BY ash.event_id ), evts as (SELECT event_id, sum(w_cnt) as w_cnt, sum(to_cnt) as to_cnt, sum(w_time) as w_time , sum(w_cnt_fg) as w_cnt_fg, sum(to_cnt_fg) as to_cnt_fg, sum(w_time_fg) as w_time_fg FROM (SELECT es.event_id as event_id, es.total_waits - nvl(bs.total_waits, 0) as w_cnt, es.TOTAL_TIMEOUTS - nvl(bs.TOTAL_TIMEOUTS, 0) as to_cnt, es.TIME_WAITED_MICRO - nvl(bs.TIME_WAITED_MICRO, 0) as w_time , es.total_waits_fg - nvl(bs.total_waits_fg, 0) as w_cnt_fg, es.TOTAL_TIMEOUTS_FG - nvl(bs.TOTAL_TIMEOUTS_FG, 0) as to_cnt_fg, es.TIME_WAIT ED_MICRO_FG - nvl(bs.TIME_WAITED_MICRO_FG, 0) as w_time_fg FROM WRH$_SYSTEM_EVENT es , WRH$_SYSTEM_EVENT bs WHERE es.dbid = :dbid AND es.instance_number = :inst AND es.snap_id = :eid AND bs.dbid(+) = :dbid AND bs.instance_number(+) = es.instance_number AND bs.snap_id(+) = :bid AND es.instance_number = bs.instance_number(+) AND es.event_id = bs.event_id(+) UNION ALL SELECT x.event_hash as event_id, 0 as w_cnt, 0 as to_cnt, 0 as w_time , 0 as w_cnt_fg, 0 as to_cnt_fg, 0 as w_time_fg FROM X$KEHEVTMAP x ) GROUP BY event_id ), awr_names as (SELECT e.event_id, max(e.event_name) as event_name, max(e.wait_class_id) as wait_class_id, max(e.wait_class) as wait_class, max(e.parameter1) as parameter1, max(e.parameter2) as parameter2, max(e.parameter3) as parameter3 FROM WRH$_EVENT_NAME e WHERE e.dbid = :dbid GROUP BY e.event_id ), named_events as (SELECT names.event_id as event_id, names.event_name as event_n ame, evts.w_cnt as w_cnt, evts.to_cnt as to_cnt, evts.w_time as w_time, evts.w_cnt_fg as w_cnt_fg, evts.to_cnt_fg as to_cnt_fg, evts.w_time_fg as w_time_fg, names.wait_class_id as wait_class_id, names.parameter1 as p1, names.parameter2 as p2, names.parameter3 as p3 FROM evts, awr_names names WHERE evts.event_id = names.event_id AND names.wait_class_id <> 2723168908 ), data as (SELECT e.event_id as event_id, e.event_name as event_name, e.wait_class_id as wait_class_id, e.p1 as p1, e.p2 as p2, e.p3 as p3, e.w_cnt as total_w_cnt, e.to_cnt as total_to_cnt, e.w_time as total_w_time, e.w_cnt_fg as fg_w_cnt, e.to_cnt_fg as fg_to_cnt, e.w_time_fg as fg_w_time, nvl(a.cnt_total, 0) as total_ash_cnt, nvl(a.cnt_fg, 0) as fg_ash_cnt FROM named_events e, ash a WHERE e.event_id = a.event_id(+) ), final_query as (SELECT d.event_name, d.event_id, d.p1 as p1, case when (p1 is null OR p1 = '0') then 0 else 1 end as p1valid, d.p2 as p2, case when (p2 is null OR p2 = '0') then 0 else 1 end as p2valid, d.p3 as p3, case when (p3 is null OR p3 = '0') then 0 else 1 end as p3valid, nvl(e.keh_id, 0) as keh_evt_id, c.class# as class_num, d.wait_class_id as wait_class_id, c.keh_id as keh_ecl_id, round(d.total_ash_cnt, 0) as total_ash_cnt, round(d.fg_ash_cnt, 0) as fg_ash_cnt, round(d.fg_w_cnt, 0) as fg_w_cnt, round(d.fg_to_cnt, 0) as fg_to_cnt, round(d.fg_w_time, 0) as fg_w_time, round(d.total_w_cnt, 0) as total_w_cnt, round(d.total_to_cnt, 0) as total_to_cnt, round(d.total_w_time, 0) as total_w_time from data d, X$KEHEVTMAP e , X$KEHECLMAP c where d.event_id = e.event_hash(+) and d.wait_class_id = c.class_hash ) SELECT * FROM final_query WHERE keh_evt_id > 0 OR total_w_time > 0 ORDER BY wait_class_id, fg_w_time DESC, event_id
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
7k8f78knyky5sselect 1 from DBA_SCHEDULER_JOBS where JOB_NAME like 'KWQICPOSTMSGDEL_2_%' and JOB_ACTION = 'DBMS_AQADM_SYS.REMOVE_ORPHMSGS'
7r7636982atn9UPDATE INVENTORIES SET QUANTITY_ON_HAND = QUANTITY_ON_HAND - :B1 WHERE PRODUCT_ID = :B3 AND WAREHOUSE_ID = :B2
7sg1vrjgxfgqmselect count(1) from sys.idnseq$ where seqobj# = :1
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
87gaftwrm2h68select o.owner#, o.name, o.namespace, o.remoteowner, o.linkname, o.subname from obj$ o where o.obj#=:1
89b7r2pg1cn4aBEGIN :1 := orderentry.WarehouseActivityQuery(:2 , :3 , :4 ); END;
8swypbbr0m372select order#, columns, types from access$ where d_obj#=:1
8vyjutx6hg3whupdate /*+ rule */ undo$ set name=:2, file#=:3, block#=:4, status$=:5, user#=:6, undosqn=:7, xactsqn=:8, scnbas=:9, scnwrp=:10, inst#=:11, ts#=:12, spare1=:13 where us#=:1
8z3542ffmp562SELECT QUANTITY_ON_HAND FROM PRODUCT_INFORMATION P, INVENTORIES I WHERE I.PRODUCT_ID = :B2 AND I.PRODUCT_ID = P.PRODUCT_ID AND I.WAREHOUSE_ID = :B1
9s5cdq3h4nfbjselect dummy from dual where user = 'SYS' or user = 'SYSTEM'
9t3n2wpr7my63INSERT INTO ADDRESSES ( ADDRESS_ID, CUSTOMER_ID, DATE_CREATED, HOUSE_NO_OR_NAME, STREET_NAME, TOWN, COUNTY, COUNTRY, POST_CODE, ZIP_CODE ) VALUES ( :B6 , :B5 , TRUNC(SYSDATE, 'MI'), FLOOR(DBMS_RANDOM.VALUE(1, :B4 )), 'Street Name', :B3 , :B2 , :B1 , 'Postcode', NULL )
9tgj4g8y4rwy8select type#, blocks, extents, minexts, maxexts, extsize, extpct, user#, iniexts, NVL(lists, 65535), NVL(groups, 65535), cachehint, hwmincr, NVL(spare1, 0), NVL(scanhint, 0), NVL(bitmapranges, 0) from seg$ where ts#=:1 and file#=:2 and block#=:3
9yv5dwv8k0awgWITH MONITOR_DATA AS (SELECT INST_ID, KEY, NVL2(PX_QCSID, NULL, STATUS) STATUS, FIRST_REFRESH_TIME, LAST_REFRESH_TIME, REFRESH_COUNT, PROCESS_NAME, SID, SQL_ID, SQL_EXEC_START, SQL_EXEC_ID, DBOP_NAME, DBOP_EXEC_ID, SQL_PLAN_HASH_VALUE, SQL_FULL_PLAN_HASH_VALUE, SESSION_SERIAL#, SQL_TEXT, PX_SERVER#, PX_SERVER_GROUP, PX_SERVER_SET, PX_QCINST_ID, PX_QCSID, CASE WHEN ELAPSED_TIME < (CPU_TIME+ APPLICATION_WAIT_TIME+ CONCURRENCY_WAIT_TIME+ CLUSTER_WAIT_TIME+ USER_IO_WAIT_TIME+ QUEUING_TIME) THEN (CPU_TIME+ APPLICATION_WAIT_TIME+ CONCURRENCY_WAIT_TIME+ CLUSTER_WAIT_TIME+ USER_IO_WAIT_TIME+ QUEUING_TIME) ELSE ELAPSED_TIME END ELAPSED_TIME, QUEUING_TIME, CPU_TIME, APPLICATION_WAIT_TIME, CONCURRENCY_WAIT_TIME, CLUSTER_WAIT_TIME, USER_IO_WAIT_TIME, CASE WHEN ELAPSED_TIME < (CPU_TIME+ APPLICATION_WAIT_TIME+ CONCURRENCY_WAIT_TIM E+ 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_I S_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(:B 5 , 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 .OWNER || '.' || 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, SU M_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_IN ST_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_C OUNT) 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) SUM_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) O R ((AD0.PX_DFO_ACTIVITY_COUNT / AD0.DFO_MOST_ACTIVE_COUNT) <= AD0.PX_DOP *0.95)) AND (AD0.DFO_DURATION * 100) > :B32 THEN AD0.ACTIVITY_COUNT ELSE NULL END) DFO_MOST_ACTIVE_COUNT, AD0.BUCKET_DISTINCT_SAMPLES, AD0.SQL_BUCKET_DISTINCT_SAMPLES, CASE WHEN AD0.PX_SERVER_GROUP IS NULL AND AD0.IS_PX_SLAVE = 1 THEN 1 ELSE AD0.PX_SERVER_GROUP END PX_SERVER_GROUP, AD0.PX_STEP_ID, AD0.PX_DFO_PAIR_TYPE, AD0.PX_DFO_PAIR_ID, AD0.PX_STEP_ARG, AD0.PX_DOP, CASE WHEN AD0.PX_DOP IS NOT NULL AND AD0.PX_DOP <> AD0.PX_MIN_DOP AND AD0.PX_MIN_DOP != 0 THEN PX_MIN_DOP ELSE NULL END PX_MIN_DOP FROM (SELECT /*+ use_hash(ash) leading(mo) */ ASH.INST_ID, ASH.IS_PX_SLAVE, ASH.SESSION_ID, ASH.PLAN_LINE_ID, ASH.PLSQL_OBJECT_ID, ASH.PLSQL_SUBPROGRAM_ID, ASH.ACTIVITY_BUCKET_NUM, ASH.PLAN_ACTIVITY_BUCKET_NUM, ASH.SQL, ASH.TOP_LEVEL_SQL_ID, ASH.DBOP_NAME, ASH.IS_MONITORED_SQL, ASH.BUCKET_ACTIVITY_START, ASH.ACTIVITY_START, ASH.BUCKET_ACTIVITY_END, ASH.ACTIVITY_END, ASH.ACTIVITY_COUNT, ASH.ACTIVITY_TYPE, ASH.OTHER_SQL_ACTIVITY_TYPE, ASH.EVENT_NAME, ASH.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 TAB LE(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, ASH2.CPU_COUNT, ASH2.OTHER_SQL_COUNT, SUM(ASH2.ACTIVITY_COUNT) OVER(PARTITION BY ASH2.PX_DFO_PAIR_ID, ASH2.PX_DFO_PAIR_TYPE, DECODE(ASH2.PX_DFO_PAIR_ID, NULL, NULL, ASH2.SESSION_ID)) PER_SERVER_DFO_COUNT, CEIL((MAX(ASH2.MAX_SAMPLE_DATE) OVER(PARTITION BY ASH2.PX_DFO_PAIR_ID, ASH2.PX_DFO_PAIR_TYPE) - MIN(ASH2.MIN_SAMPLE_DATE) OVER(PARTITION BY ASH2.PX_DFO_PAIR_ID, ASH2.PX_DFO_PAIR_TYPE)) * 3600 * 24) DFO_DURATION FROM (SELECT ASH1.BUCKET_NUM, ASH1.GLOBAL_SAMPLE_ID, ASH1.PLAN_LINE_ID, ASH1.PLSQL_OBJECT_ID, ASH1.PLSQL_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 .SAMPLE_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 U NION 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. WAIT_CLASS, ASH.SQL_EXEC_ID, ASH.SQL_EXEC_START, ASH.DBOP_NAME, ASH.DBOP_EXEC_ID, ASH.SESSION_ID, ASH.SESSION_SERIAL#, CASE WHEN QC_INSTANCE_ID IS NOT NULL AND (ASH.SESSION_ID != ASH.QC_SESSION_ID OR ASH.SESSION_SERIAL# != ASH.QC_SESSION_SERIAL# OR USERENV('instance') != ASH.QC_INSTANCE_ID) THEN 1 ELSE 0 END IS_PX_SLAVE, SAMPLE_TIME - CAST(:B20 AS TIMESTAMP) DELTA_TIME, CAST(FROM_TZ(ASH.SAMPLE_TIME, DBTIMEZONE) AS DATE) SAMPLE_DATE, TRUNC(MOD(PX_FLAGS/65536, 32)) PX_STEP_ID, MOD(PX_FLAGS, 65536) PX_STEP_ARG, TRUNC(PX_FLAGS/2097152) PX_DOP FROM V$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.SQ L_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 N OT 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_AC TIVITY_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(DECOD E(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_O THER_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) * :B25 ) BUCKET_ACTIVE_SECONDS, DECODE(AD01.BUCKET_NUM, :B27 , MOD(:B32 , :B26 ), :B26 ) BUCKET_INTERVAL FROM (SELECT AD0.ACTIVITY_BUCKET_NUM BUCKET_NUM, AD0.PX_ID, AD0.ACTIVITY_TYPE, AD0.OTHER_SQL_ACTIVITY_TYPE, AD0.EVENT_NAME, AD0.PLAN_LINE_ID, AD0.PX_STEP_ID, AD0.PX_STEP_ARG, AD0.PLSQL_OBJECT_ID, AD0.PLSQL_SUBPROGRAM_ID, SUM(AD0.ACTIVITY_COUNT) ACTIVITY_COUNT, MIN(AD0.ACTIVITY_START) ACTIVITY_START, MAX(AD0.ACTIVITY_END) ACTIVITY_END, MAX(AD0.IS_MONITORED_SQL) IS_MONITORED_SQL, MAX(AD0.SQL) SQL, MAX(AD0.TOP_LEVEL_SQL_ID) TOP_LEVEL_SQL_ID, MAX(AD0.DBOP_NAME) DBOP_NAME, MAX(DECODE(AD0.DFO_MOST_ACTIVE_COUNT, NULL, NULL, AD0.DFO_MOST_ACTIVE_IID)) DFO_MOST_ACTIVE_IID, MAX(DECODE(AD0.DFO_MOST_ACTIVE_COUNT, NULL, NULL, AD0.DFO_MOST_ACTIVE_SID)) DFO_MOST_ACTIVE_SID, SUM(AD0.DFO_MOST_ACTIVE_COUNT) DFO_MOST_ACTIVE_COUNT, MAX(PX_DFO_PAIR_TYPE) PX_DFO_PAIR_TYPE, MAX(PX_DFO_PAIR_ID) PX_DFO_PAIR_ID, MAX(AD0.PX_DOP) PX_DOP, MIN(AD0.PX_MIN_DOP) PX_MIN_DOP, MAX(AD0.B UCKET_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 A S "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", MAG G.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( "re fresh_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, NU LL, 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, XMLELEME NT( "stat", XMLATTRIBUTES('java_exec_time' AS "name"), SUM_JAVA_EXEC_TIME)), DECODE(NVL(SUM_OTHER_WAIT_TIME, 0), 0, NULL, XMLELEMENT( "stat", XMLATTRIBUTES('other_wait_time' AS "name"), SUM_OTHER_WAIT_TIME)), DECODE(NVL(SUM_FETCHES, 0), 0, NULL, XMLELEMENT( "stat", XMLATTRIBUTES('user_fetch_count' AS "name"), SUM_FETCHES)), DECODE(NVL(SUM_BUFFER_GETS, 0), 0, NULL, XMLELEMENT( "stat", XMLATTRIBUTES('buffer_gets' AS "name"), SUM_BUFFER_GETS)), DECODE(NVL(SUM_READ_REQS, 0), 0, NULL, XMLELEMENT( "stat", XMLATTRIBUTES('disk_reads' AS "name"), SUM_READ_REQS)), DECODE(NVL(SUM_WRITE_REQS, 0), 0, NULL, XMLELEMENT( "stat", XMLATTRIBUTES('direct_writes' AS "name"), SUM_WRITE_REQS)), DECODE(NVL(SUM_READ_REQS, 0), 0, NULL, XMLELEMENT( "stat", XMLATTRIBUTES('read_reqs' AS "name"), SUM_READ_REQS)), DECODE(NVL(SUM_READ_ BYTES, 0), 0, NULL, XMLELEMENT( "stat", XMLATTRIBUTES('read_bytes' AS "name"), SUM_READ_BYTES)), DECODE(NVL(SUM_WRITE_REQS, 0), 0, NULL, XMLELEMENT( "stat", XMLATTRIBUTES('write_reqs' AS "name"), SUM_WRITE_REQS)), DECODE(NVL(SUM_WRITE_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 ELS E 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.EVEN T_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_elapsed_ time, 0, 0, s.elapsed_time/l.max_elapsed_time) AS ELAPSED_SECONDS_PROP, s.disk_reads AS DISK_READS, CASE WHEN s.disk_reads < 1000 THEN to_char(s.disk_reads) WHEN s.disk_reads < 1000000 THEN to_char(round(s.disk_reads/1000, 1)) || 'K' WHEN s.disk_reads < 1000000000 THEN to_char(round(s.disk_reads/1000000, 1)) || 'M' ELSE to_char(round(s.disk_reads/1000000000, 1)) || 'G' END AS DISK_READS_FORM, DECODE(l.max_disk_reads , 0, 0, s.disk_reads/l.max_disk_reads ) AS DISK_READS_PROP, s.buffer_gets AS BUFFER_GETS, CASE WHEN s.buffer_gets < 1000 THEN to_char(s.buffer_gets) WHEN s.buffer_gets < 1000000 THEN to_char(round(s.buffer_gets/1000, 1)) || 'K' WHEN s.buffer_gets < 1000000000 THEN to_char(round(s.buffer_gets/1000000, 1)) || 'M' ELSE to_char(round(s.buffer_gets/1000000000, 1)) || 'G' END AS BUFFER_GETS_FORM, DECODE(l.max_buffer_gets , 0, 0, s.buffer_gets/l.max_buffer_gets ) AS BUFFER_GETS_PROP, s.executions AS EXECUTIONS, CASE WHEN s.executions < 1000 TH EN to_char(s.executions) WHEN s.executions < 1000000 THEN to_char(round(s.executions/1000, 1)) || 'K' WHEN s.executions < 1000000000 THEN to_char(round(s.executions/1000000, 1)) || 'M' ELSE to_char(round(s.executions/1000000000, 1)) || 'G' END AS EXECUTIONS_FORM, DECODE(l.max_executions , 0, 0, s.executions/l.max_executions ) AS EXECUTIONS_PROP, decode(s.module, null, ' ', s.module) AS MODULE, s.last_active_time AS LAST_ACTIVE_TIME, decode(s.last_active_time, null, ' ', to_char(s.last_active_time, 'DD-Mon-YYYY HH24:MI:SS')) AS LAST_ACTIVE_TIME_FORM, s.sql_id AS SQL_ID, s.child_number AS CHILD_NUMBER, s.inst_id as INST_ID from gv$sql s, ( select max(cpu_time) as max_cpu_time, max(elapsed_time) as max_elapsed_time, max(disk_reads) as max_disk_reads, max(buffer_gets) as max_buffer_gets, max(executions) as max_executions from gv$sql ) l ) d ORDER BY CPU_MSECONDS DESC, SQL, DISK_READS DESC, BUFFER_GETS DESC, EXECUTIONS DESC, ELAPSED_MSECONDS DESC, INST_ID DESC, M ODULE DESC, LAST_ACTIVE_TIME DESC ) d ) d WHERE ROW# >= :minRowNo AND ROW# <= :maxRowNo
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
adds4wma0y8c4select t.obj#, t.dataobj#, t.part#, t.hiboundlen, t.hiboundval, t.ts#, t.file#, t.block#, t.pctfree$, t.pctused$, t.initrans, t.maxtrans, t.flags, t.analyzetime, t.samplesize, t.rowcnt, t.blkcnt, t.empcnt, t.avgspc, t.chncnt, t.avgrln, length(t.bhiboundval), t.bhiboundval, ts.im_imcu_count, ts.im_block_count, ts.im_sys_incarnation, ts.im_stat_update_time from tabpart$ t, tab_stats$ ts where t.bo# = :1 and t.obj# = ts.obj#(+) order by t.part#
apgb2g9q2zjh1BEGIN :1 := orderentry.browseandupdateorders(:2 , :3 , :4 ); END;
asvzxj61dc5vsselect timestamp, flags from fixed_obj$ where obj#=:1
atwuyuvqkf27wSELECT /*+ OPT_PARAM('_fix_control' '16391176:1') */ GROUP_TYPE, BUCKET_START, BUCKET_END, TM_GROUP_TYPE, TM_BUCKET_START, TM_BUCKET_END, SUM(TM_CPU_FIRST_BUCKET_VALUE) TM_CPU_FIRST_BUCKET_VALUE, SUM(TM_CPU_MIDDLE_BUCKETS_VALUE) TM_CPU_MIDDLE_BUCKETS_VALUE, SUM(TM_CPU_LAST_BUCKET_VALUE) TM_CPU_LAST_BUCKET_VALUE, SUM(TM_DB_FIRST_BUCKET_VALUE) TM_DB_FIRST_BUCKET_VALUE, SUM(TM_DB_MIDDLE_BUCKETS_VALUE) TM_DB_MIDDLE_BUCKETS_VALUE, SUM(TM_DB_LAST_BUCKET_VALUE) TM_DB_LAST_BUCKET_VALUE, SUM(RREQS_FIRST_BUCKET_VALUE) RREQS_FIRST_BUCKET_VALUE, SUM(RREQS_MIDDLE_BUCKETS_VALUE) RREQS_MIDDLE_BUCKETS_VALUE, SUM(RREQS_LAST_BUCKET_VALUE) RREQS_LAST_BUCKET_VALUE, SUM(WREQS_FIRST_BUCKET_VALUE) WREQS_FIRST_BUCKET_VALUE, SUM(WREQS_MIDDLE_BUCKETS_VALUE) WREQS_MIDDLE_BUCKETS_VALUE, SUM(WREQS_LAST_BUCKET_VALUE) WREQS_LAST_BUCKET_VALUE, SUM(RBYTES_FIRST_BUCKET_V ALUE) RBYTES_FIRST_BUCKET_VALUE, SUM(RBYTES_MIDDLE_BUCKETS_VALUE) RBYTES_MIDDLE_BUCKETS_VALUE, SUM(RBYTES_LAST_BUCKET_VALUE) RBYTES_LAST_BUCKET_VALUE, SUM(WBYTES_FIRST_BUCKET_VALUE) WBYTES_FIRST_BUCKET_VALUE, SUM(WBYTES_MIDDLE_BUCKETS_VALUE) WBYTES_MIDDLE_BUCKETS_VALUE, SUM(WBYTES_LAST_BUCKET_VALUE) WBYTES_LAST_BUCKET_VALUE, SUM(IBYTES_FIRST_BUCKET_VALUE) IBYTES_FIRST_BUCKET_VALUE, SUM(IBYTES_MIDDLE_BUCKETS_VALUE) IBYTES_MIDDLE_BUCKETS_VALUE, SUM(IBYTES_LAST_BUCKET_VALUE) IBYTES_LAST_BUCKET_VALUE, SUM(CRBYTES_FIRST_BUCKET_VALUE) CRBYTES_FIRST_BUCKET_VALUE, SUM(CRBYTES_MIDDLE_BUCKETS_VALUE) CRBYTES_MIDDLE_BUCKETS_VALUE, SUM(CRBYTES_LAST_BUCKET_VALUE) CRBYTES_LAST_BUCKET_VALUE, SUM(PGA_ALLOC_FIRST_BUCKET_VALUE) PGA_ALLOC_FIRST_BUCKET_VALUE, SUM(PGA_ALLOC_MIDDLE_BUCKETS_VALUE) PGA_ALLOC_MIDDLE_BUCKETS_VALUE, SUM(PGA_ALLOC_LAST_BUCKET_VALUE) PGA_ALLOC_LAST_BUCKET_VALUE, SUM(TMP_ALLOC_FIRST_BUCKET_VALUE) TMP_ALLOC_FIRST_BUCKET_VALUE, SUM(TMP_ALLOC_MIDDLE_BUCKETS_VALUE) TMP_A LLOC_MIDDLE_BUCKETS_VALUE, SUM(TMP_ALLOC_LAST_BUCKET_VALUE) TMP_ALLOC_LAST_BUCKET_VALUE FROM ( SELECT GROUP_TYPE, BUCKET_START, TM_BUCKET_START, TM_BUCKET_END, BUCKET_END, TM_GROUP_TYPE, SUM(GVTF.TM_CPU_FIRST_BUCKET_VALUE) TM_CPU_FIRST_BUCKET_VALUE, SUM(GVTF.TM_CPU_MIDDLE_BUCKETS_VALUE) TM_CPU_MIDDLE_BUCKETS_VALUE, SUM(GVTF.TM_CPU_LAST_BUCKET_VALUE) TM_CPU_LAST_BUCKET_VALUE, SUM(GVTF.TM_DB_FIRST_BUCKET_VALUE) TM_DB_FIRST_BUCKET_VALUE, SUM(GVTF.TM_DB_MIDDLE_BUCKETS_VALUE) TM_DB_MIDDLE_BUCKETS_VALUE, SUM(GVTF.TM_DB_LAST_BUCKET_VALUE) TM_DB_LAST_BUCKET_VALUE, SUM(GVTF.RREQS_FIRST_BUCKET_VALUE) RREQS_FIRST_BUCKET_VALUE, SUM(GVTF.RREQS_MIDDLE_BUCKETS_VALUE) RREQS_MIDDLE_BUCKETS_VALUE, SUM(GVTF.RREQS_LAST_BUCKET_VALUE) RREQS_LAST_BUCKET_VALUE, SUM(GVTF.WREQS_FIRST_BUCKET_VALUE) WREQS_FIRST_BUCKET_VALUE, SUM(GVTF.WREQS_MIDDLE_BUCKETS_VALUE) WREQS_MIDDLE_BUCKETS_VALUE, SUM(GVTF.WREQS_LAST_BUCKET_VALUE) WREQS_LAST_BUCKET_VALUE, SUM(GVTF.RBYTES_FIRST_BUCKET_VALUE) RBYTES_FIRST _BUCKET_VALUE, SUM(GVTF.RBYTES_MIDDLE_BUCKETS_VALUE) RBYTES_MIDDLE_BUCKETS_VALUE, SUM(GVTF.RBYTES_LAST_BUCKET_VALUE) RBYTES_LAST_BUCKET_VALUE, SUM(GVTF.WBYTES_FIRST_BUCKET_VALUE) WBYTES_FIRST_BUCKET_VALUE, SUM(GVTF.WBYTES_MIDDLE_BUCKETS_VALUE) WBYTES_MIDDLE_BUCKETS_VALUE, SUM(GVTF.WBYTES_LAST_BUCKET_VALUE) WBYTES_LAST_BUCKET_VALUE, SUM(GVTF.IBYTES_FIRST_BUCKET_VALUE) IBYTES_FIRST_BUCKET_VALUE, SUM(GVTF.IBYTES_MIDDLE_BUCKETS_VALUE) IBYTES_MIDDLE_BUCKETS_VALUE, SUM(GVTF.IBYTES_LAST_BUCKET_VALUE) IBYTES_LAST_BUCKET_VALUE, SUM(GVTF.CRBYTES_FIRST_BUCKET_VALUE) CRBYTES_FIRST_BUCKET_VALUE, SUM(GVTF.CRBYTES_MIDDLE_BUCKETS_VALUE) CRBYTES_MIDDLE_BUCKETS_VALUE, SUM(GVTF.CRBYTES_LAST_BUCKET_VALUE) CRBYTES_LAST_BUCKET_VALUE, SUM(GVTF.PGA_ALLOC_FIRST_BUCKET_VALUE) PGA_ALLOC_FIRST_BUCKET_VALUE, SUM(GVTF.PGA_ALLOC_MIDDLE_BUCKETS_VALUE) PGA_ALLOC_MIDDLE_BUCKETS_VALUE, SUM(GVTF.PGA_ALLOC_LAST_BUCKET_VALUE) PGA_ALLOC_LAST_BUCKET_VALUE, SUM(GVTF.TMP_ALLOC_FIRST_BUCKET_VALUE) TMP_ALLOC_FIRST _BUCKET_VALUE, SUM(GVTF.TMP_ALLOC_MIDDLE_BUCKETS_VALUE) TMP_ALLOC_MIDDLE_BUCKETS_VALUE, SUM(GVTF.TMP_ALLOC_LAST_BUCKET_VALUE) TMP_ALLOC_LAST_BUCKET_VALUE FROM TABLE(SYS.GV$(CURSOR( SELECT INST_ID, GROUP_TYPE, BUCKET_START, TM_BUCKET_START, TM_BUCKET_END, BUCKET_END, TM_GROUP_TYPE, SUM(TM_DELTA_CPU_TIME * TM_FIRST_BUCKET_RATIO) TM_CPU_FIRST_BUCKET_VALUE, SUM(TM_DELTA_CPU_TIME * TM_MIDDLE_BUCKETS_RATIO) TM_CPU_MIDDLE_BUCKETS_VALUE, SUM(TM_DELTA_CPU_TIME * TM_LAST_BUCKET_RATIO) TM_CPU_LAST_BUCKET_VALUE, SUM(TM_DELTA_DB_TIME * TM_FIRST_BUCKET_RATIO) TM_DB_FIRST_BUCKET_VALUE, SUM(TM_DELTA_DB_TIME * TM_MIDDLE_BUCKETS_RATIO) TM_DB_MIDDLE_BUCKETS_VALUE, SUM(TM_DELTA_DB_TIME * TM_LAST_BUCKET_RATIO) TM_DB_LAST_BUCKET_VALUE, SUM(DELTA_READ_REQUESTS * FIRST_BUCKET_RATIO) RREQS_FIRST_BUCKET_VALUE, SUM(DELTA_READ_REQUESTS * MIDDLE_BUCKETS_RATIO) RREQS_MIDDLE_BUCKETS_VALUE, SUM(DELTA_READ_REQUESTS * LAST_BUCKET_RATIO) RREQS_LAST_BUCKET_VALUE, SUM(DELTA_WRITE_REQUESTS * FIRST_BUCKET_ RATIO) WREQS_FIRST_BUCKET_VALUE, SUM(DELTA_WRITE_REQUESTS * MIDDLE_BUCKETS_RATIO) WREQS_MIDDLE_BUCKETS_VALUE, SUM(DELTA_WRITE_REQUESTS * LAST_BUCKET_RATIO) WREQS_LAST_BUCKET_VALUE, SUM(DELTA_READ_BYTES * FIRST_BUCKET_RATIO) RBYTES_FIRST_BUCKET_VALUE, SUM(DELTA_READ_BYTES * MIDDLE_BUCKETS_RATIO) RBYTES_MIDDLE_BUCKETS_VALUE, SUM(DELTA_READ_BYTES * LAST_BUCKET_RATIO) RBYTES_LAST_BUCKET_VALUE, SUM(DELTA_WRITE_BYTES * FIRST_BUCKET_RATIO) WBYTES_FIRST_BUCKET_VALUE, SUM(DELTA_WRITE_BYTES * MIDDLE_BUCKETS_RATIO) WBYTES_MIDDLE_BUCKETS_VALUE, SUM(DELTA_WRITE_BYTES * LAST_BUCKET_RATIO) WBYTES_LAST_BUCKET_VALUE, SUM(DELTA_INTERCONNECT_BYTES * FIRST_BUCKET_RATIO) IBYTES_FIRST_BUCKET_VALUE, SUM(DELTA_INTERCONNECT_BYTES * MIDDLE_BUCKETS_RATIO) IBYTES_MIDDLE_BUCKETS_VALUE, SUM(DELTA_INTERCONNECT_BYTES * LAST_BUCKET_RATIO) IBYTES_LAST_BUCKET_VALUE, SUM(DELTA_READ_MEM_BYTES * FIRST_BUCKET_RATIO) CRBYTES_FIRST_BUCKET_VALUE, SUM(DELTA_READ_MEM_BYTES * MIDDLE_BUCKETS_RATIO) CRBYTES_MIDDLE_BUCK ETS_VALUE, SUM(DELTA_READ_MEM_BYTES * LAST_BUCKET_RATIO) CRBYTES_LAST_BUCKET_VALUE, SUM(PGA_ALLOCATED * LENGTH_SEG * FIRST_BUCKET_RATIO) PGA_ALLOC_FIRST_BUCKET_VALUE, SUM(PGA_ALLOCATED * LENGTH_SEG * MIDDLE_BUCKETS_RATIO) PGA_ALLOC_MIDDLE_BUCKETS_VALUE, SUM(PGA_ALLOCATED * LENGTH_SEG * LAST_BUCKET_RATIO) PGA_ALLOC_LAST_BUCKET_VALUE, SUM(TEMP_SPACE_ALLOCATED * LENGTH_SEG * FIRST_BUCKET_RATIO) TMP_ALLOC_FIRST_BUCKET_VALUE, SUM(TEMP_SPACE_ALLOCATED * LENGTH_SEG * MIDDLE_BUCKETS_RATIO) TMP_ALLOC_MIDDLE_BUCKETS_VALUE, SUM(TEMP_SPACE_ALLOCATED * LENGTH_SEG * LAST_BUCKET_RATIO) TMP_ALLOC_LAST_BUCKET_VALUE FROM ( SELECT USERENV('INSTANCE') INST_ID, ROW_ID, SID, SAMPLE_TIME, CASE WHEN BUCKET_END IS NULL OR BUCKET_START IS NULL THEN NULL WHEN BUCKET_START = TM_BUCKET_START AND BUCKET_START = BUCKET_END THEN 'CO' WHEN BUCKET_START = TM_BUCKET_START THEN 'CM' WHEN BUCKET_START = BUCKET_END THEN 'SO' ELSE 'SM' END GROUP_TYPE, CASE WHEN TM_BUCKET_START IS NULL OR BUCKET_END IS NULL OR (T M_BUCKET_START = BUCKET_START) THEN NULL WHEN TM_BUCKET_START = BUCKET_END THEN 'O' ELSE 'M' END TM_GROUP_TYPE, START_SEG, BUCKET_START, BUCKET_START_OFFSET, TM_START_SEG, CASE WHEN TM_BUCKET_START IS NULL OR (TM_BUCKET_START = BUCKET_START) THEN NULL ELSE TM_BUCKET_START END TM_BUCKET_START, CASE WHEN TM_BUCKET_START IS NULL OR (TM_BUCKET_START = BUCKET_START) THEN NULL ELSE BUCKET_END END TM_BUCKET_END, TM_BUCKET_START_OFFSET, LENGTH_SEG, TM_LENGTH_SEG, END_SEG, BUCKET_END, BUCKET_END_OFFSET, CASE WHEN BUCKET_START != BUCKET_END THEN (:B9 - BUCKET_START_OFFSET) / LENGTH_SEG ELSE 1 END FIRST_BUCKET_RATIO, CASE WHEN BUCKET_END >= BUCKET_START + 2 THEN :B9 / LENGTH_SEG ELSE NULL END MIDDLE_BUCKETS_RATIO, CASE WHEN BUCKET_START != BUCKET_END THEN BUCKET_END_OFFSET / LENGTH_SEG ELSE NULL END LAST_BUCKET_RATIO, CASE WHEN TM_BUCKET_START != BUCKET_END THEN (:B9 - TM_BUCKET_START_OFFSET) / TM_LENGTH_SEG ELSE 1 END TM_FIRST_BUCKET_RATIO, CASE WHEN BUCKET_END >= TM_BUCKE T_START + 2 THEN :B9 / TM_LENGTH_SEG ELSE NULL END TM_MIDDLE_BUCKETS_RATIO, CASE WHEN TM_BUCKET_START != BUCKET_END THEN BUCKET_END_OFFSET / TM_LENGTH_SEG ELSE NULL END TM_LAST_BUCKET_RATIO, TM_DELTA_CPU_TIME, TM_DELTA_DB_TIME, DELTA_READ_IO_REQUESTS DELTA_READ_REQUESTS, DELTA_WRITE_IO_REQUESTS DELTA_WRITE_REQUESTS, DELTA_READ_IO_BYTES DELTA_READ_BYTES, DELTA_WRITE_IO_BYTES DELTA_WRITE_BYTES, DELTA_INTERCONNECT_IO_BYTES DELTA_INTERCONNECT_BYTES, DELTA_READ_MEM_BYTES DELTA_READ_MEM_BYTES, PGA_ALLOCATED, TEMP_SPACE_ALLOCATED FROM (SELECT ROW_ID, SID, SAMPLE_TIME, START_SEG, TRUNC(START_SEG / :B9 ) BUCKET_START, MOD(START_SEG, :B9 ) BUCKET_START_OFFSET, TM_START_SEG, TRUNC(TM_START_SEG/:B9 ) TM_BUCKET_START, MOD(TM_START_SEG, :B9 ) TM_BUCKET_START_OFFSET, TRUNC(END_SEG/:B9 ) BUCKET_END, MOD(END_SEG, :B9 ) BUCKET_END_OFFSET, END_SEG, LENGTH_SEG, TM_LENGTH_SEG, TM_DELTA_CPU_TIME, TM_DELTA_DB_TIME, DELTA_READ_IO_REQUESTS, DELTA_WRITE_IO_REQUESTS, DELTA_READ_IO _BYTES, DELTA_WRITE_IO_BYTES, DELTA_INTERCONNECT_IO_BYTES, DELTA_READ_MEM_BYTES, PGA_ALLOCATED, TEMP_SPACE_ALLOCATED FROM (SELECT ROW_ID, SID, SAMPLE_TIME, TIME_INTERVAL, CASE WHEN START_SEG < 0 THEN 0 ELSE START_SEG END START_SEG, CASE WHEN TM_START_SEG < 0 THEN 0 ELSE TM_START_SEG END TM_START_SEG, CASE WHEN END_SEG > TIME_INTERVAL THEN TIME_INTERVAL ELSE END_SEG END END_SEG, (LENGTH_SEG - (CASE WHEN START_SEG < 0 THEN -START_SEG ELSE 0 END + CASE WHEN END_SEG > TIME_INTERVAL THEN END_SEG - TIME_INTERVAL ELSE 0 END)) LENGTH_SEG, (TM_LENGTH_SEG - (CASE WHEN TM_START_SEG < 0 THEN -TM_START_SEG ELSE 0 END + CASE WHEN END_SEG > TIME_INTERVAL THEN END_SEG - TIME_INTERVAL ELSE 0 END)) TM_LENGTH_SEG, TM_DELTA_CPU_TIME, TM_DELTA_DB_TIME, DELTA_READ_IO_REQUESTS, DELTA_WRITE_IO_REQUESTS, DELTA_READ_IO_BYTES, DELTA_WRITE_IO_BYTES, DELTA_INTERCONNECT_IO_BYTES, DELTA_READ_MEM_BYTES, PGA_ALLOCATED, TEMP_SPACE_ALLOCATED FROM (SELECT ROW_ID, SID, SAMPLE_ TIME, TIME_INTERVAL, LENGTH_SEG, TM_LENGTH_SEG, END_SEG - TM_LENGTH_SEG TM_START_SEG, END_SEG - LENGTH_SEG START_SEG, END_SEG, TM_DELTA_CPU_TIME, TM_DELTA_DB_TIME, DELTA_READ_IO_REQUESTS, DELTA_WRITE_IO_REQUESTS, DELTA_READ_IO_BYTES, DELTA_WRITE_IO_BYTES, DELTA_INTERCONNECT_IO_BYTES, DELTA_READ_MEM_BYTES, PGA_ALLOCATED, TEMP_SPACE_ALLOCATED FROM (SELECT ROW_ID, SID, SAMPLE_TIME, EXTRACT(SECOND FROM REL_SAMPLE_TIME_INT) + EXTRACT(MINUTE FROM REL_SAMPLE_TIME_INT)*60 + EXTRACT(HOUR FROM REL_SAMPLE_TIME_INT)*3600 + EXTRACT(DAY FROM REL_SAMPLE_TIME_INT)*3600*24 END_SEG, TIME_INTERVAL, DELTA_TIME/1000000 LENGTH_SEG, TM_DELTA_TIME/1000000 TM_LENGTH_SEG, TM_DELTA_CPU_TIME, TM_DELTA_DB_TIME, DELTA_READ_IO_REQUESTS, DELTA_WRITE_IO_REQUESTS, DELTA_READ_IO_BYTES, DELTA_WRITE_IO_BYTES, DELTA_INTERCONNECT_IO_BYTES, DELTA_READ_MEM_BYTES, PGA_ALLOCATED, TEMP_SPACE_ALLOCATED FROM (SELECT ROWNUM ROW_ID, SESSION_ID SID, CAST(FROM_TZ(SAMPLE_TIME, DBTIMEZONE) AS DATE) SAM PLE_DATE, SAMPLE_TIME, (SAMPLE_TIME - CAST(:B8 AS TIMESTAMP)) REL_SAMPLE_TIME_INT, TRUNC((:B7 - :B8 ) * 3600 * 24) TIME_INTERVAL, :B8 AS BND_START_INTERVAL , :B7 AS BND_END_INTERVAL , TM_DELTA_TIME, TM_DELTA_CPU_TIME, TM_DELTA_DB_TIME, DELTA_TIME, DELTA_READ_IO_REQUESTS, DELTA_WRITE_IO_REQUESTS, DELTA_READ_IO_BYTES, DELTA_WRITE_IO_BYTES, DELTA_INTERCONNECT_IO_BYTES, DELTA_READ_MEM_BYTES, PGA_ALLOCATED, TEMP_SPACE_ALLOCATED FROM (SELECT ASH0.* FROM V$ACTIVE_SESSION_HISTORY ASH0 WHERE SAMPLE_TIME BETWEEN :B6 AND :B5 AND ( (SESSION_ID = :B2 AND SESSION_SERIAL# = :B1 AND USERENV('INSTANCE') = :B3 ) OR (:B4 = 'yes' AND QC_INSTANCE_ID = :B3 AND QC_SESSION_ID = :B2 AND QC_SESSION_SERIAL# = :B1 ))) ) ASH1 WHERE SAMPLE_DATE >= BND_START_INTERVAL AND SAMPLE_DATE <= BND_END_INTERVAL + 120/3600/24 ) ) WHERE START_SEG <= TIME_INTERVAL ) WHERE (LENGTH_SEG IS NOT NULL AND LENGTH_SEG > 0) OR (TM_LENGTH_SEG IS NOT NULL AND TM_LENGTH_SEG > 0)) ) GROUP BY INST_ID, GROUP_T YPE, BUCKET_START, BUCKET_END, TM_GROUP_TYPE, TM_BUCKET_START, TM_BUCKET_END))) GVTF WHERE INST_ID >= :B11 AND INST_ID <= :B10 GROUP BY GROUP_TYPE, BUCKET_START, BUCKET_END, TM_GROUP_TYPE, TM_BUCKET_START, TM_BUCKET_END ) GROUP BY GROUPING SETS ( (GROUP_TYPE, BUCKET_START, BUCKET_END), (TM_GROUP_TYPE, TM_BUCKET_START, TM_BUCKET_END) )
b5dk0t95fhyd7BEGIN :1 := orderentry.WarehouseOrdersQuery(:2 , :3 , :4 ); END;
bmcj2k06ncg3y select /*jskqjobqlod1*/ /*+ no_monitor no_statement_queuing current_instance */ nvl(CON_ID, 0) CON_ID, OBJOID, CLSOID, RUNTIME, 2 * PRIORITY + decode(bitand(STATUS, 4), 0, 0, decode(INST, :inst_id, -1, 1)) PRIORITY, JOBTYPE, SCHLIM, WEIGHT, INST, RUNNOW, decode(bitand(STATUS, 8388608), 0, 0, 1) ENQ_SCHLIM, NULL AFFINITY from ( select CON_ID, obj# OBJOID, class_oid CLSOID, run_time RUNTIME, job_status STATUS, PRIORITY, 1 JOBTYPE, schedule_limit SCHLIM, job_weight WEIGHT, decode(running_instance, NULL, 0, running_instance) INST, decode(bitand(job_flags, 16384), 0, 0, 1) RUNNOW from ( select con_id, obj#, class_oid, run_time, priority, jo b_status, running_instance, schedule_limit, job_weight, job_flags, affinity, instance_id from containers(sys.scheduler$_job_refresh) where ( database_role = :db_role or database_role = 'ALL' or ( database_role is null and :db_role = 'PRIMARY')) and ( :guard_role <> 'ALL' or database_role = 'ALL') and bitand(job_flags, 1048576) = 0 union all select con_id, obj#, class_oid, run_time, priority, job_status, running_instance, schedule_limit, job_weight, job_flags, affinity, instance_id from containers(sys.scheduler$_lwjob_refresh) where :rac_on = 0 or running_instance = :inst_id) where run_time <= :lookahead and instance_id is null and ( class_oid is null or affinity is null) union all select con_id, obj#, 0, start_da te, 0, 0, decode(bitand(flags, 64), 64, 3, 2), duration, 1, 0, 0 from containers(scheduler$_window_refresh) where start_date <= :lookahead union all select con_id, obj#, 0, start_date + duration, 0, 0, decode(bitand(flags, 64), 64, 5, 4), numtodsinterval(0, 'minute'), 1, 0, 0 from containers(scheduler$_window_refresh) where start_date <= :lookahead ) /*jskqjobqlod1*/ order by RUNTIME, JOBTYPE, CLSOID, PRIORITY, WEIGHT DESC, OBJOID
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)) )
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
c3zymn7x3k6wyselect obj#, dataobj#, part#, hiboundlen, hiboundval, flags, ts#, file#, block#, pctfree$, initrans, maxtrans, analyzetime, samplesize, rowcnt, blevel, leafcnt, distkey, lblkkey, dblkkey, clufac, pctthres$, length(bhiboundval), bhiboundval from indpart$ where bo# = :1 order by part#
cb7c88kf75v5gselect file_type, percent_space_used, percent_space_reclaimable, number_of_files, con_id from v$recovery_area_usage
cj9v3ynkm7uuyBEGIN :1 := orderentry.SalesRepsQuery(:2 , :3 , :4 ); END;
cmndgkbkcz5s9BEGIN :1 := orderentry.updateCustomerDetails(:2 , :3 , :4 , :5 , :6 , :7 , :8 ); END;
dadfjwdntaxx0select a.name, b.tablespace_name, (b.tablespace_size*d.block_size)/(1024*1024*1024) CURRENT_SIZE, (b.used_space*d.block_size)/(1024*1024) used_space, c.max_size/(1024*1024*1024) max_size, 100*(b.used_space*d.block_size/c.max_size) pct from v$containers a, cdb_tablespace_usage_metrics b, (select con_id, tablespace_name, sum(maxbytes) max_size from cdb_data_files group by con_id, tablespace_name) c, cdb_tablespaces d where a.con_id = b.con_id and b.con_id = c.con_id and b.con_id = d.con_id and b.tablespace_name = c.tablespace_name and b.tablespace_name = d.tablespace_name order by a.name, b.tablespace_name
dvu40a9avazf8select xmlagg( xmlelement("operation", xmlattributes(operation as "name", options as "options", id as "id", depth as "depth", position as "pos"), nvl2(object_name, xmlelement("object", object_name), NULL), decode(:format, 'BASIC', null, nvl2(cardinality, xmlelement("card", cardinality), NULL)), decode(:format, 'BASIC', null, nvl2(bytes, xmlelement("bytes", bytes), NULL)), nvl2(temp_space, xmlelement("temp_space", temp_space), NULL), decode(:format, 'BASIC', null, nvl2(cost, xmlelement("cost", cost), NULL)), nvl2(io_cost, xmlelement("io_cost", io_cost), NULL), nvl2(cpu_cost, xmlelement("cpu_cost", cpu_cost), NULL), decode(:format, 'BASIC', null, nvl2(time, xmlelement("time", sys.dbms_xplan.format_time_s(time)), NULL)), nvl2(partition_start, xmlelement("partition", xmlattributes(partitio n_start as "start", partition_stop as "stop")), NULL), nvl2(object_node, xmlelement("node", object_node), NULL), nvl2(distribution, xmlelement("distrib", distribution), NULL), nvl2(projection, xmlelement("project", projection), NULL), nvl2(access_predicates, xmlelement("predicates", xmlattributes(decode(substr(options, 1, 8), 'STORAGE ', 'storage', 'access') as "type"), access_predicates), NULL), nvl2(filter_predicates, xmlelement("predicates", xmlattributes('filter' as "type"), filter_predicates), NULL), nvl2(qblock_name, xmlelement("qblock", qblock_name), NULL), nvl2(object_alias, xmlelement("object_alias", object_alias), NULL), (case when other_xml is null then null else xmltype(other_xml) end) ) ) plan from (select id, parent_id, position, depth, operation, options, object_name, cardinality, bytes, temp_space , cost, io_cost, cpu_cost, time, pstart as partition_start, pstop as partition_stop, object_node, other_tag, distrib as distribution, projection, access_pred as access_predicates, filter_pred as filter_predicates, other, qblock_name, object_alias, other_xml, sql_profile, sql_plan_baseline, starts, outrows, crgets, cugets, reads, writes, etime, mem_opt, mem_one, last_mem_used, last_mem_usage, mem_opt_cnt, mem_one_cnt, mem_multi_cnt, max_tmp_used, last_tmp_used from table(dbms_xplan.get_plan_rows(:tab_name, :stmt_id, :plan_id, :format, :fpreds, 1, null)))
dycmpuj6apqjsselect pc.intcol#, pc.col# , pc.type#, pc.spare1, pc.segcol#, pc.charsetform, nvl(c.collintcol#, 0), nvl(c2.type#, 0), nvl(c2.charsetid, 0), nvl(c2.charsetform , 0), nvl(c2.collid, 0) from partcol$ pc, col$ c, col$ c2 where pc.obj# = :1 and pc.obj# = c.obj#(+) and pc.intcol# = c.intcol#(+) and c.obj# = c2.obj#(+) and c.collintcol# = c2.intcol#(+) order by pc.pos#
f0h5rpzmhju11select SYS_CONTEXT('USERENV', 'SERVER_HOST'), SYS_CONTEXT('USERENV', 'DB_UNIQUE_NAME'), SYS_CONTEXT('USERENV', 'INSTANCE_NAME'), SYS_CONTEXT('USERENV', 'INSTANCE'), STARTUP_TIME, SYS_CONTEXT('USERENV', 'DB_DOMAIN'), SYS_CONTEXT('USERENV', 'SERVICE_NAME') from v$instance
f3ww8rgva3hrsupdate /* KSXM:FLUSH COL */ sys.col_usage$ set equality_preds = equality_preds + decode(bitand(:flag, 1), 0, 0, 1), equijoin_preds = equijoin_preds + decode(bitand(:flag, 2), 0, 0, 1), nonequijoin_preds = nonequijoin_preds + decode(bitand(:flag, 4), 0, 0, 1), range_preds = range_preds + decode(bitand(:flag, 8), 0, 0, 1), like_preds = like_preds + decode(bitand(:flag, 16), 0, 0, 1), null_preds = null_preds + decode(bitand(:flag, 32), 0, 0, 1), flags = flags + :flag - bitand(flags, :flag), timestamp = :time where obj# = :objn and intcol# = :coln
f7rxuxzt64k87INSERT INTO ORDER_ITEMS ( ORDER_ID, LINE_ITEM_ID, PRODUCT_ID, UNIT_PRICE, QUANTITY, GIFT_WRAP, CONDITION, ESTIMATED_DELIVERY ) VALUES ( :B4 , :B3 , :B2 , :B1 , 1, 'None', 'New', (SYSDATE + 3) )
f931zc8qhhfaaSELECT ST.* FROM XMLTABLE('/hint_usage/s/h' PASSING XMLTYPE(:B1 ) COLUMNS O VARCHAR2(3) PATH '@o', ST VARCHAR2(3) PATH '@st', TEXT CLOB PATH 'x', REAS VARCHAR2(4000) PATH 'r') ST ORDER BY ST.ST, ST.O, DBMS_LOB.SUBSTR(ST.TEXT, 4000, 1), ST.REAS
f9u2k84v884y7UPDATE /*+ index(orders, order_pk) */ ORDERS SET ORDER_STATUS = FLOOR(DBMS_RANDOM.VALUE(:B3 + 1, :B2 )) WHERE ORDER_ID = :B1
ffb1nv5k5adkgSELECT systimestamp "SNAPSHOT_TIME", concat(concat(s.sid, concat(', ', s.serial#)), concat(', ', s.inst_id)) "SESSION_ID", s.sid "SID", ( CASE WHEN s.sql_id is NULL THEN '0' ELSE s.sql_id END ) "SQL_ID", decode(s.WAIT_TIME, 0, 'WAITING', 'ON CPU') "WAIT_CLASS", s.serial# "SESSION_SERIAL", s.inst_id "INSTANCE_ID", s.user# "USER_ID", s.username "USER_NAME", s.schemaname "SCHEMA_NAME", s.machine "HOS TNAME", s.sql_address "SQL_ADDRESS", s.command "SQL_OPCODE", s.type "SESSION_TYPE", decode(s.WAIT_TIME, 0, s.event, 'ON CPU') "WAIT_EVENT", s.p1 "P1", s.p2 "P2", s.p3 "P3", s.paddr "PADDR", s.ROW_WAIT_OBJ# "CURRENT_OBJ", s.ROW_WAIT_FILE# "CURRENT_FILE", s.ROW_WAIT_BLOCK# "CURRENT_BLOCK", s.ROW_WAIT_ROW# "CURRENT_ROW", s.program "APPLICATION", s.module "MODULE", s.a ction "ACTION", s.sql_child_number "CHILD_NUMBER", s.logon_time "LOGIN_TIME", s.server "CONNECTION_TYPE", s.RESOURCE_CONSUMER_GROUP "RESOURCE_GROUP", s.osuser "OS_USER", s.process "OS_PID", s.terminal "TERMINAL", s.client_info "CLIENT_INFO", s.client_identifier "CLIENT_ID", s.last_call_et "LAST_CALL_ELAPSED_TIME", s.sql_trace "SQL_TRACE", s.PLSQL_ENTRY_OBJECT_ID "ENTRY_OBJECT_ID", s.PLSQL_ENTRY_SUBPROGRAM_ID "ENTRY_SUBPROGRAM_I D", s.PLSQL_OBJECT_ID "OBJECT_ID", s.PLSQL_SUBPROGRAM_ID "SUBPROGRAM_ID", s.BLOCKING_SESSION_STATUS "BLOCKING_SESSION_STATUS", s.BLOCKING_INSTANCE "BLOCKING_INSTANCE", s.BLOCKING_SESSION "BLOCKING_SESSION" FROM gv$session s WHERE ( s.inst_id != ( SELECT CAST(value AS INTEGER) FROM v$parameter WHERE name = 'instance_number' ) OR s.sid != ( SELECT DISTINCT sid FROM v$mystat WHERE rownum < 2 ) ) AND ( ( s.wait_time != 0 AND /* on CPU */ s.status = 'ACTIVE' /* ACTIVE */ ) OR s.wait_class !='Idle' ) --##IGNORE_THIS##
fh5ufah919kunselect /*+ index(idl_sb4$ i_idl_sb41) */ piece#, length, piece from idl_sb4$ where obj#=:1 and part=:2 and version=:3 order by piece#
fhf8upax5cxszBEGIN sys.dbms_auto_report_internal.i_save_report (:rep_ref, :snap_id, :pr_class, :rep_id, :suc); END;
g0t052az3rx44select name, intcol#, segcol#, type#, length, nvl(precision#, 0), decode(type#, 2, nvl(scale, -127/*MAXSB1MINAL*/), 178, scale, 179, scale, 180, scale, 181, scale, 182, scale, 183, scale, 231, scale, 0), null$, fixedstorage, nvl(deflength, 0), default$, rowid, col#, property, nvl(charsetid, 0), nvl(charsetform, 0), spare1, spare2, nvl(spare3, 0), nvl(evaledition#, 1), nvl(unusablebefore#, 0), nvl(unusablebeginning#, 0), case when (type# in (1, 8, 9, 96, 112)) then nvl(collid, 16382) else 0 end case, nvl(collintcol#, 0), nvl(acdrrescol#, 0), nvl(spare7, 0), nvl(spare9, 0), nvl(spare10, 0) from col$ where obj#=:1 order by intcol#
g81cbrq5yamf5SELECT ADDRESS_ID, CUSTOMER_ID, DATE_CREATED, HOUSE_NO_OR_NAME, STREET_NAME, TOWN, COUNTY, COUNTRY, POST_CODE, ZIP_CODE FROM ADDRESSES WHERE CUSTOMER_ID = :B2 AND ROWNUM < :B1
gh2g2tynpcpv1INSERT INTO CUSTOMERS ( CUSTOMER_ID , CUST_FIRST_NAME , CUST_LAST_NAME , NLS_LANGUAGE , NLS_TERRITORY , CREDIT_LIMIT , CUST_EMAIL , ACCOUNT_MGR_ID, CUSTOMER_SINCE, CUSTOMER_CLASS, SUGGESTIONS, DOB, MAILSHOT, PARTNER_MAILSHOT, PREFERRED_ADDRESS, PREFERRED_CARD ) VALUES ( :B11 , :B6 , :B5 , :B10 , :B9 , FLOOR(DBMS_RANDOM.VALUE(:B8 , :B7 )), :B6 ||'.' ||:B5 ||'@' ||'oracle.com', FLOOR(DBMS_RANDOM.VALUE(:B4 , :B3 )), TRUNC(SYSDATE), 'Occasional', 'Music', TRUNC(SYSDATE - (365*DBMS_RANDOM.VALUE(20, 60))), 'Y', 'N', :B2 , :B1 )
gkxxkghxubh1aSELECT ORDER_MODE, ORDERS.WAREHOUSE_ID, SUM(ORDER_TOTAL), COUNT(1) FROM ORDERS, WAREHOUSES WHERE ORDERS.WAREHOUSE_ID = WAREHOUSES.WAREHOUSE_ID AND WAREHOUSES.WAREHOUSE_ID = :B1 GROUP BY CUBE(ORDERS.ORDER_MODE, ORDERS.WAREHOUSE_ID)
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 changes748,437684.5661.68
execute count377,900345.6531.14
gc cr block receive time1,8761.720.15
gc cr blocks received30,02227.462.47
gc current block receive time58,29353.324.80
gc current blocks received74,26467.936.12
logons cumulative9450.860.08
opened cursors cumulative333,317304.8727.47
parse count (total)11,80210.790.97
parse time elapsed1,8161.660.15
physical reads8,543,0507,813.90704.06
physical writes108,27999.048.92
redo size64,222,16458,740.825,292.74
session cursor cache hits324,432296.7426.74
session logical reads84,983,86477,730.527,003.78
user calls49,47645.254.08
user commits12,13411.101.00
user rollbacks00.000.00
workarea executions - onepass00.000.00
workarea executions - optimal31,50728.822.60


Back to Instance Activity Statistics
Back to Top

Instance Activity Stats

StatisticTotalper Secondper Trans
ASSM bg: segment fix monitor20.000.00
ASSM cbk:blocks examined22,62620.691.86
ASSM cbk:blocks marked full4260.390.04
ASSM gsp:L1 bitmaps examined24,48922.402.02
ASSM gsp:L2 bitmap full3420.310.03
ASSM gsp:L2 bitmaps examined11,80610.800.97
ASSM gsp:L3 bitmaps examined3370.310.03
ASSM gsp:Optimized reject l100.000.00
ASSM gsp:Optimized reject l2110.010.00
ASSM gsp:Search all240.020.00
ASSM gsp:Search hint860.080.01
ASSM gsp:Search steal100.010.00
ASSM gsp:bump HWM100.010.00
ASSM gsp:get free block22,20220.311.83
ASSM gsp:get free data block21,77619.921.79
ASSM gsp:get free index block4260.390.04
ASSM gsp:good hint10,8939.960.90
ASSM gsp:reject L100.000.00
ASSM gsp:reject L21630.150.01
ASSM gsp:reject db00.000.00
ASSM rsv:fill reserve30.000.00
ASSM wasted db state change120.010.00
Batched IO (bound) vector count1,2651.160.10
Batched IO (full) vector count106,03496.988.74
Batched IO (space) vector count52,28347.824.31
Batched IO block miss count14,069,77612,868.931,159.53
Batched IO buffer defrag count71,27665.195.87
Batched IO double miss count2,332,5502,133.47192.23
Batched IO same unit count503,264460.3141.48
Batched IO single block count1,8341.680.15
Batched IO slow jump count00.000.00
Batched IO vector block count13,721,58112,550.451,130.84
Batched IO vector read count160,536146.8313.23
Block Cleanout Optim referenced1730.160.01
CCursor + sql area evicted2,8902.640.24
CPU used by this session72,12465.975.94
CPU used when call started67,03661.315.52
CR blocks created2,5682.350.21
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 written7,6777.020.63
DBWR checkpoints1050.100.01
DBWR fusion writes6,5015.950.54
DBWR object drop buffers written680.060.01
DBWR parallel query checkpoint buffers written00.000.00
DBWR thread checkpoint buffers written00.000.00
DBWR transaction table writes2530.230.02
DBWR undo block writes2,9892.730.25
DFO trees parallelized300.030.00
Effective IO time00.000.00
HSC Heap Segment Block Changes55,80951.054.60
Heap Segment Array Deletes00.000.00
Heap Segment Array Inserts1720.160.01
Heap Segment Array Updates100.010.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 req3600.330.03
KTFB alloc space (block)165,543,936151,414.8113,642.98
KTFB alloc time (ms)298,861273.3524.63
KTFB apply req2200.200.02
KTFB apply time (ms)1,7271.580.14
KTFB commit req00.000.00
KTFB commit time (ms)00.000.00
KTFB free req30.000.00
KTFB free space (block)1,2801.170.11
KTFB free time (ms)2810.260.02
LOB table id lookup cache misses00.000.00
Number of read IOs issued00.000.00
PX local messages recv'd4920.450.04
PX local messages sent4920.450.04
PX remote messages recv'd2,0791.900.17
PX remote messages sent6,2085.680.51
Parallel operations not downgraded300.030.00
Requests to/from client45,19641.343.72
RowCR attempts40.000.00
RowCR hits10.000.00
SMON posted for instance recovery00.000.00
SMON posted for undo segment shrink20.000.00
SQL*Net roundtrips to/from client45,29641.433.73
TBS Extension: tasks created00.000.00
TBS Extension: tasks executed00.000.00
active txn count during cleanout4210.390.03
auto extends on undo tablespace00.000.00
background checkpoints completed00.000.00
background checkpoints started00.000.00
background timeouts9,4408.630.78
blocks cleaned out using minact20,76018.991.71
branch node splits660.060.01
buffer is not pinned count106,739,69597,629.508,796.74
buffer is pinned count82,932,93375,854.636,834.76
bytes received via SQL*Net from client2,939,1042,688.25242.22
bytes sent via SQL*Net to client3,072,5442,810.30253.22
calls to get snapshot scn: kcmgss529,435484.2543.63
calls to kcmgas45,16041.313.72
calls to kcmgcs252,738231.1720.83
cell physical IO interconnect bytes72,025,527,80865,878,172.065,935,843.73
change write time1590.150.01
cleanout - number of ktugct calls6270.570.05
cleanouts and rollbacks - consistent read gets340.030.00
cleanouts only - consistent read gets920.080.01
cluster key scan block gets2,5342.320.21
cluster key scans1,9561.790.16
commit batch performed00.000.00
commit batch requested00.000.00
commit batch/immediate performed1680.150.01
commit batch/immediate requested1680.150.01
commit cleanout failures: block lost1110.100.01
commit cleanout failures: buffer being written100.010.00
commit cleanout failures: callback failure280.030.00
commit cleanout failures: cannot pin40.000.00
commit cleanouts105,35796.368.68
commit cleanouts successfully completed105,20496.228.67
commit immediate performed1680.150.01
commit immediate requested1680.150.01
commit nowait performed00.000.00
commit nowait requested00.000.00
commit txn count during cleanout5120.470.04
commit wait/nowait performed00.000.00
commit wait/nowait requested00.000.00
consistent changes364,134333.0630.01
consistent gets83,515,13476,387.146,882.74
consistent gets direct00.000.00
consistent gets examination6,900,3026,311.36568.67
consistent gets examination (fastpath)6,730,8766,156.40554.71
consistent gets from cache83,515,13476,387.146,882.74
consistent gets pin76,614,83270,075.786,314.06
consistent gets pin (fastpath)76,263,81569,754.726,285.13
cumulative begin requests1000.090.01
cumulative end requests00.000.00
cursor authentications1840.170.02
cursor reload failures580.050.00
data blocks consistent reads - undo records applied4,7804.370.39
db block changes748,437684.5661.68
db block gets1,468,7301,343.37121.04
db block gets direct7200.660.06
db block gets from cache1,468,0101,342.72120.98
db block gets from cache (fastpath)1,166,3771,066.8396.12
deferred (CURRENT) block cleanout applications25,81323.612.13
dirty buffers inspected105,19396.218.67
enqueue conversions7,2756.650.60
enqueue releases146,413133.9212.07
enqueue requests146,424133.9312.07
enqueue timeouts110.010.00
enqueue waits4,7204.320.39
exchange deadlocks150.010.00
execute count377,900345.6531.14
failed probes on index block reclamation00.000.00
file io service time45,253,63741,391.253,729.49
free buffer inspected10,332,7199,450.82851.55
free buffer requested8,804,9728,053.47725.64
gc blocks compressed60,12755.004.96
gc blocks lost90.010.00
gc cleanout applied690.060.01
gc cleanout saved1080.100.01
gc cr anti locks created8,7708.020.72
gc cr anti locks expanded1,5481.420.13
gc cr anti locks shrunk1,6691.530.14
gc cr block build time130.010.00
gc cr block flush time6030.550.05
gc cr block receive time1,8761.720.15
gc cr blocks built28,88926.422.38
gc cr blocks flushed1430.130.01
gc cr blocks received30,02227.462.47
gc cr blocks served29,93727.382.47
gc cr multiblock grant time21,67419.821.79
gc cr multiblock grants received183,402167.7515.11
gc current block flush time8990.820.07
gc current block pin time1510.140.01
gc current block receive time58,29353.324.80
gc current blocks flushed1830.170.02
gc current blocks pinned80.010.00
gc current blocks received74,26467.936.12
gc current blocks served127,752116.8510.53
gc force cr read cr1780.160.01
gc force cr read current30.000.00
gc kbytes saved347,109317.4828.61
gc kbytes sent914,404836.3675.36
gc local grants8,293,2627,585.43683.47
gc merge pi bg10.000.00
gc merge pi fg3,4333.140.28
gc no change made130.010.00
gc read time waited22,66120.731.87
gc read wait failures00.000.00
gc read waits1,0310.940.08
gc reader bypass grants5,8285.330.48
gc reader bypass waits1,5601.430.13
gc remote grants301,389275.6724.84
gc status messages received197,836180.9516.30
gc status messages sent212,481194.3517.51
gc undo block disk read80.010.00
gcs affinity lock grants3,2032.930.26
gcs anti-locks created8,7588.010.72
gcs data block access records8,670,7377,930.69714.58
gcs messages sent999,250913.9682.35
gcs read-mostly lock failures16,25914.871.34
gcs read-mostly lock grants8,001,3967,318.48659.42
gcs stats management (SCM) process posts00.000.00
ges messages sent20,26218.531.67
global enqueue gets async00.000.00
global enqueue gets sync476,525435.8539.27
global enqueue releases465,219425.5138.34
heap block compress980.090.01
hot buffers moved to head of LRU14,090,01312,887.431,161.20
immediate (CR) block cleanout applications1260.120.01
immediate (CURRENT) block cleanout applications5,3044.850.44
index crx upgrade (positioned)1090.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 key2,198,4792,010.84181.18
index range scans482,737441.5439.78
index reclamation/extension switch00.000.00
index split cancel wait noclean40.000.00
leaf node 90-10 splits520.050.00
leaf node splits3100.280.03
lob reads9950.910.08
lob writes58,35653.384.81
lob writes unaligned58,35653.384.81
logical read bytes from cache696,181,915,648636,763,011.9557,374,477.97
logons cumulative9450.860.08
max cf enq hold time920.080.01
messages received11,62410.630.96
messages sent11,62410.630.96
min active SCN optimization applied on CR8,4757.750.70
no buffer to keep pinned count10.000.00
no work - consistent read gets76,380,24669,861.226,294.73
non-idle wait count1,522,9541,392.97125.51
opened cursors cumulative333,317304.8727.47
parse count (describe)40.000.00
parse count (failures)00.000.00
parse count (hard)8170.750.07
parse count (total)11,80210.790.97
parse time cpu1970.180.02
parse time elapsed1,8161.660.15
physical read IO requests8,541,5607,812.54703.94
physical read bytes69,984,665,60064,011,496.795,767,650.04
physical read total IO requests8,546,2567,816.84704.32
physical read total bytes70,086,167,04064,104,335.115,776,015.08
physical read total multi block requests350.030.00
physical reads8,543,0507,813.90704.06
physical reads cache8,543,0507,813.90704.06
physical reads cache prefetch8,032,6227,347.04661.99
physical reads direct00.000.00
physical reads direct (lob)00.000.00
physical reads direct temporary tablespace00.000.00
physical write IO requests97,41289.108.03
physical write bytes887,021,568811,314.5673,102.16
physical write total IO requests108,31899.078.93
physical write total bytes965,189,120882,810.5479,544.18
physical write total multi block requests900.080.01
physical writes108,27999.048.92
physical writes direct7290.670.06
physical writes direct (lob)150.010.00
physical writes direct temporary tablespace2330.210.02
physical writes from cache107,55098.378.86
physical writes non checkpoint103,28094.478.51
pinned buffers inspected4,5154.130.37
pinned cursors current40.000.00
prefetched blocks aged out before use30.000.00
process last non-idle time1,0921.000.09
queries parallelized00.000.00
recursive calls2,024,5511,851.76166.85
recursive cpu usage69,99564.025.77
redo KB read12,28811.241.01
redo blocks checksummed by FG (exclusive)20,83319.051.72
redo blocks written134,987123.4711.12
redo blocks written (group 0)00.000.00
redo blocks written (group 1)00.000.00
redo buffer allocation retries00.000.00
redo entries223,453204.3818.42
redo log space requests00.000.00
redo ordering marks00.000.00
redo size64,222,16458,740.825,292.74
redo size for direct writes4200.380.03
redo subscn max counts4,0763.730.34
redo synch long waits740.070.01
redo synch time60,31955.174.97
redo synch time (usec)603,227,865551,742.5649,713.85
redo synch time overhead (usec)1,546,3251,414.35127.44
redo synch time overhead count ( 2ms)12,00510.980.99
redo synch time overhead count ( 8ms)1000.090.01
redo synch time overhead count ( 32ms)180.020.00
redo synch writes12,41011.351.02
redo wastage2,673,6082,445.42220.34
redo write active strands10,3239.440.85
redo write broadcast ack count1960.180.02
redo write broadcast ack time713,168652.3058.77
redo write finish time209,387,837191,516.6517,256.29
redo write gather time308,586282.2525.43
redo write info find12,12311.091.00
redo write schedule time358,832328.2129.57
redo write size count ( 4KB)4,4454.070.37
redo write size count ( 8KB)2,4462.240.20
redo write size count ( 16KB)1,6481.510.14
redo write size count ( 32KB)5190.470.04
redo write size count ( 128KB)2590.240.02
redo write size count ( 256KB)70.010.00
redo write size count ( 512KB)30.000.00
redo write size count (1024KB)30.000.00
redo write size count (inf)00.000.00
redo write time20,94019.151.73
redo write time (usec)209,397,038191,525.0717,257.05
redo write total time209,617,128191,726.3717,275.19
redo write worker delay (usec)00.000.00
redo write worker delay count00.000.00
redo writes9,3308.530.77
redo writes (group 0)00.000.00
redo writes (group 1)00.000.00
redo writes adaptive all9,3318.530.77
redo writes adaptive worker00.000.00
remote Oradebug requests40.000.00
rollback changes - undo records applied1390.130.01
rollbacks only - consistent read gets2,6382.410.22
root node splits00.000.00
rows fetched via callback2,126,9251,945.39175.29
saved cleanout failures: callback failure60.010.00
saved cleanouts750.070.01
saved cleanouts successfully completed690.060.01
securefile allocation bytes73,72867.446.08
securefile allocation chunks80.010.00
securefile bytes non-transformed71,76165.645.91
securefile direct read bytes00.000.00
securefile direct read ops00.000.00
securefile direct write bytes73,72867.446.08
securefile direct write ops80.010.00
securefile number of non-transformed flushes190.020.00
segment cfs allocations00.000.00
segment chunks allocation from dispenser80.010.00
segment dispenser allocations80.010.00
segment dispenser load empty00.000.00
segment dispenser load tasks00.000.00
segment prealloc bytes00.000.00
segment prealloc ops60.010.00
segment prealloc tasks00.000.00
segment prealloc time (ms)8,9668.200.74
segment prealloc ufs2cfs bytes00.000.00
segment total chunk allocation00.000.00
session cursor cache hits324,432296.7426.74
session logical reads84,983,86477,730.527,003.78
shared hash latch upgrades - no wait8,098,2247,407.04667.40
shared hash latch upgrades - wait3,8653.540.32
shared io pool buffer get success80.010.00
sorts (disk)00.000.00
sorts (memory)4,5764.190.38
sorts (rows)75,281,63168,856.376,204.19
sql area evicted2,6312.410.22
sql area purged70.010.00
summed dirty queue length5,413,9924,951.91446.18
switch current caused by our pin4140.380.03
switch current to new buffer5040.460.04
table fetch by rowid93,469,79785,492.187,703.13
table fetch continued row2700.250.02
table scan blocks gotten2,056,1671,880.67169.46
table scan disk non-IMC rows gotten58,795,05453,776.914,845.48
table scan rows gotten58,795,05453,776.914,845.48
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)60,05054.924.95
temp space allocated (bytes)1,048,576959.0886.42
total cf enq hold time13,00311.891.07
total number of cf enq holders1730.160.01
total number of times SMON posted20.000.00
transaction lock background gets1280.120.01
transaction lock foreground requests1280.120.01
transaction rollbacks1000.090.01
transaction tables consistent read rollbacks00.000.00
transaction tables consistent reads - undo records applied00.000.00
undo change vector size18,682,37617,087.841,539.67
user calls49,47645.254.08
user commits12,13411.101.00
user logons cumulative2080.190.02
user logouts cumulative2080.190.02
user rollbacks00.000.00
workarea executions - onepass00.000.00
workarea executions - optimal31,50728.822.60
write clones created in background00.000.00
write clones created in foreground2,4352.230.20


Back to Instance Activity Statistics
Back to Top

Instance Activity Stats - Absolute Values

StatisticBegin ValueEnd Value
logons current9494
opened cursors current154158
session cursor cache count26,01731,672
session pga memory580,033,928573,349,256
session pga memory max823,371,784841,394,184
session uga memory2,129,998,3682,361,373,568
session uga memory max66,830,460,28070,019,614,336


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 Reads65,2G7810.7161,032M0M0.000M510,5K51.91ms
DBWR0M0.000M840M88.97,768M0 
Others97M4.30,089M13M0.64,012M370415.26ms
LGWR0M0.000M66M9.45,06M933222.39ms
Direct Writes0M0.000M1M0.01,001M0 
Streams AQ1M0.09,001M0M0.000M10220.97ms
TOTAL:65,3G7815.1061,122M920M99.06,841M523,6K51.11ms


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 File65,2G7812.2261,044M839M88.91,767M10.15ms1.73ms
Log File24M0.02,022M66M9.45,06M.00ns21.46 s
Control File73M4.26,067M9M0.50,008M8.42ms 
Temp File4M0.19,004M2M0.17,002M3.18ms 
Other0M0.010M0M0.030M20.00ms 
TOTAL:65,3G7816.6961,136M916M99.06,838M10.15ms14.71 s


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 65,2G7810.7361,032M0M0.000M357,7K15.85ms
Buffer Cache Reads (Data File) 65,2G7810.5561,029M0M0.000M357,5K15.86ms
Buffer Cache Reads (Temp File) 3M0.18,003M0M0.000M1952.99ms
DBWR (Data File) 0M0.000M840M88.90,768M0 
DBWR 0M0.000M840M88.97,768M0 
DBWR (Temp File) 0M0.000M0M0.070M0 
Others 96M4.29,088M13M0.61,012M312812.97ms
Others (Control File) 72M4.26,066M9M0.50,008M311612.98ms
Others (Log File) 24M0.02,022M0M0.000M3.00ns
Others (Data File) 0M0.000M2M0.01,002M0 
Others (Temp File) 0M0.010M2M0.10,002M914.33ms
LGWR (Log File) 0M0.000M66M9.45,06M0 
LGWR 0M0.000M66M9.45,06M0 
Streams AQ (Data File) 1M0.09,001M0M0.000M10220.97ms
Streams AQ 1M0.09,001M0M0.000M10220.97ms
Direct Writes (Data File) 0M0.000M1M0.01,001M0 
Direct Writes 0M0.000M1M0.01,001M0 
TOTAL: 65,3G7815.1161,121M920M99.03,841M360,9K15.83ms


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,834,7709084,932,0308,542,537107,5500130112,844


Back to Buffer Pool Statistics
Back to Top

Checkpoint Activity

MTTR WritesLog Size WritesLog Ckpt WritesOther Settings WritesAutotune Ckpt WritesThread Ckpt Writes
00007,6770


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
B011066462146764169865146764  0
E01727243901512581698651151258  1


Back to Advisory Statistics
Back to Top

MTTR Advisory

No data exists for this section of the report.

Back to Advisory Statistics
Back to Top

Buffer Pool Advisory

PSize for Est (M)Size FactorBuffers (thousands)Est Phys Read FactorEstimated Phys Reads (thousands)Est Phys Read TimeEst %DBtime for Rds
D1,5360.101793.93115,6001493936.00
D3,0720.203583.58105,1911447967.00
D4,6080.295373.2695,8351406650.00
D6,1440.397162.9686,8851367128.00
D7,6800.498952.6678,0031327903.00
D9,2160.591,0742.3569,0551288388.00
D10,7520.681,2532.0560,2251249393.00
D12,2880.781,4321.7551,4001210420.00
D13,8240.881,6111.4442,1631169627.00
D15,3600.981,7901.0932,0081124784.00
D15,7441.001,8351.0029,3791113173.00
D16,8961.071,9690.7221,099176607.00
D18,4321.172,1480.4713,774144261.00
D19,9681.272,3270.4111,911136031.00
D21,5041.372,5060.4011,699135096.00
D23,0401.462,6850.3911,535134371.00
D24,5761.562,8640.3911,411133825.00
D26,1121.663,0430.3911,322133431.00
D27,6481.763,2220.3811,263133168.00
D29,1841.853,4010.3811,217132966.00
D30,7201.953,5800.3811,176132786.00


Back to Advisory Statistics
Back to Top

PGA Aggr Summary

PGA Cache Hit %W/A MB ProcessedExtra W/A MB Read/Written
100.0026,5190


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,4204,314.320.000.000.000.00614,190
E5,9984,4203,354.170.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
2K4K3,8023,80200
64K128K868600
128K256K797900
256K512K464600
512K1024K26,77926,77900
1M2M15315300
2M4M383800
4M8M32832800
8M16M10410400
16M32M909000


Back to Advisory Statistics
Back to Top

PGA Memory Advisory

PGA Target Est (MB)Size FactrW/A MB ProcessedEstd Extra W/A MB Read/ Written to Disk Estd PGA Cache Hit %Estd PGA Overalloc CountEstd Time
7500.13182,627.08246,020.3843.00578153,801,165
1,5000.25182,627.0866,175.9673.0015089,271,957
2,9990.50182,627.0850,568.3678.00083,671,860
4,4990.75182,627.0817,663.6391.00071,865,453
5,9981.00182,627.0817,663.6391.00071,865,453
7,1981.20182,627.0817,663.6391.00071,865,453
8,3971.40182,627.0817,663.6391.00071,865,453
9,5971.60182,627.0817,663.6391.00071,865,453
10,7961.80182,627.0817,663.6391.00071,865,453
11,9962.00182,627.0817,663.6391.00071,865,453
17,9943.00182,627.0817,663.6391.00071,865,453
23,9924.00182,627.0817,663.6391.00071,865,453
35,9886.00182,627.0817,663.6391.00071,865,453
47,9848.00182,627.0817,663.6391.00071,865,453


Back to Advisory Statistics
Back to Top

Shared Pool Advisory

Shared Pool Size(M)SP Size FactrEst LC Size (M)Est LC Mem ObjEst LC Time Saved (s)Est LC Time Saved FactrEst LC Load Time (s)Est LC Load Time FactrEst LC Mem Obj Hits (K)
1,7280.87101,049527,9510.83110,600831.584,682
1,7920.90712,143571,1360.8967,415506.885,077
1,8560.941344,444613,2780.9625,273190.025,801
1,9200.971975,598628,9700.999,58172.046,236
1,9841.002606,922638,4181.001331.006,308
2,0481.033248,874638,4331.001180.896,309
2,1121.0638711,003638,4421.001090.826,310
2,1761.1045112,773638,4551.00960.726,313
2,2401.1351514,543638,4571.00940.716,313
2,3041.1657916,313638,4581.00930.706,313
2,3681.1964317,999638,4591.00920.696,314
2,4321.2370719,569638,4591.00920.696,314
2,4961.2677021,382638,4591.00920.696,314
2,5601.2977421,538638,4601.00910.686,314
2,7521.3977421,538638,4601.00910.686,314
3,0081.5277421,538638,4601.00910.686,314
3,2641.6577421,538638,4601.00910.686,314
3,5201.7777421,538638,4601.00910.686,314
3,7761.9077421,538638,4601.00910.686,314
4,0322.0377421,538638,4601.00910.686,314


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.25512,987115,601,979
6,7680.38425,69995,836,035
9,0240.50386,13786,884,366
11,2800.63307,37069,054,475
13,5360.75268,36260,226,196
15,7920.88188,56442,161,275
18,0481.00132,09429,378,632
20,3041.1363,15413,772,703
22,5601.2554,04011,698,571
24,8161.3853,27411,534,051
27,0721.5052,34911,322,525
29,3281.6352,05811,263,768
31,5841.7551,68811,175,632
33,8401.8851,68811,175,632
36,0962.0051,68811,175,632


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 block12,7864,036316
3rd level bmb12035
2nd level bmb12027
1st level bmb10100
undo block704
system undo header1200
segment header300


Back to Wait Statistics
Back to Top

Enqueue Activity

Enqueue Type (Request Reason)RequestsSucc GetsFailed GetsWaitsWt Time (s)Av Wt Time(ms)
US-Undo Segment 3,8233,82703,23425879.73
RO-Multiple Object Reuse (fast object reuse) 6686680253235930.41
TM-DML 71,95371,954041322.25
PS-PX Process Reservation 914906877800.39
TX-Transaction 14,55014,550025400.64
CF-Controlfile Transaction 2,3202,31736601.38
HW-Segment High Water Mark 22,64022,64005600.55
TS-Temporary Segment 646403000.73
WF-AWR Flush 303002300.39
FB-Format Block 2,0742,07401900.32
TX-Transaction (index contention) 550500.60
WT-AWR CDB-Wide Table Lock 23230700.29
TK-Auto Task Serialization (Auto Task Serialization) 220201.00
CR-Reuse Block Range (block range reuse ckpt) 20200400.25
DW-In memory Dispenser 660300.33
TA-Instance Undo 330300.33
AF-Advisor Framework (task serialization) 770101.00
TD-KTF map table enqueue (KTF dump entries) 220100.00
DR-Distributed Recovery 110100.00
TT-Tablespace 22,80422,804000 
JG-Job Scheduler1 4,5994,599000 
JG-Job Scheduler1 (queue lock) 4,5994,599000 
SE-Session Migration 1,0561,056000 
SJ-KTSJ Slave Task Cancel (Slave Task Cancel) 820819000 
CU-Cursor 778778000 
MR-Media Recovery 768768000 
JG-Job Scheduler1 (q mem clnup lck) 438438000 
DD-ASM Local Disk Group 375375000 
AE-Edition Lock (lock) 212212000 
BU-Buddy Instance Context (recovery set construct) 123123000 
IS-Instance State 109109000 
TO-Temp Object 8888000 
DA-Instance DP Array (Slave Process Array) 3232000 
IT-In-Mem Temp Table Meta Creation 2020000 
TH-Threshold Chain (metric threshold evaluation) 1818000 
PR-Process Startup 1111000 
PV-KSV slave startup (syncstart) 77000 
SQ-Sequence Cache 77000 
PE-Parameter 55000 
FP-File Object (global fob contention) 44000 
PW-Buffer Cache PreWarm (flush prewarm buffers) 44000 
SH-Active Session History Flushing 44000 
XR-Quiesce / Force Logging (database force logging) 44000 
PG-Global Parameter 22000 
RS-Reclaimable Space (read alert level) 22000 
RA-Real-Time ADDM Flood Control (RT ADDM flood control) 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
51.8010,0651,7362639,9/39,90/00/0/0/0/0/0


Back to Undo Statistics
Back to Top

Undo Segment Stats

End TimeNum Undo BlocksNumber of TransactionsMax Qry Len (s)Max Tx ConcyTun Ret (mins)STO/ OOS uS/uR/uU/ eS/eR/eU
02-Stu 13:321,80010,0651,73626400/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 0390.00
AQ Coord jobx_kwsbgsgn latch360.00 00 
AQ Message drive state object latch10.00 00 
AQ Sharded master pool latch360.00 00 
AQ deq hash table latch10.00 00 
ASM Keyed state latch4350.230.0000 
ASM allocation62,8860.00 00 
ASM connection state latch2,9140.00 00 
ASM db client latch1,0770.00 00 
ASM map headers360.00 00 
ASM map load waiting list80.00 00 
ASM map operation freelist25,6600.010.0000 
ASM map operation hash table17,313,2090.000.0200 
ASM network background latch2,8650.00 00 
ASM network state latch430.00 00 
ASM remote client latch170.00 00 
AWR Alerted Metric Element list11,1300.00 00 
Autotask management180.00 00 
Change Notification Hash table latch4690.00 00 
Column stats entry latch10.00 00 
Consistent RBA9,3340.00 00 
DML lock allocation130,8080.000.0000 
Event Group Locks1,1670.00 00 
FIB s.o chain latch110.00 00 
FOB consolidated s.o list latch110.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 statistics720.00 012,8510.00
I/O Staticstics latch10.00 00 
ILM Stats Stripe Latch10.00 00 
ILM Stats main anchor latch3,4500.030.0000 
ILM access tracking extent10.00 00 
ILM activity tracking latch10.00 00 
IM Global dictionary latch10.00 00 
IM Global dictionary queue latch10.00 00 
IM Global dictionary rw latch10.00 00 
IM area sb latch10.00 00 
IM area scb latch10.00 00 
IM emb latch10.00 00 
IM seg hdr latch10.00 00 
IMFS defer write list10.00 00 
IMXT hash table latch10.00 00 
IPC other latch120.00 00 
IPC stats buffer allocation latch10.00 00 
In memory undo latch10.00 00 
JS Sh mem access2200.00 00 
JS broadcast add buf latch2510.00 00 
JS broadcast drop buf latch2510.00 00 
JS broadcast load blnc latch2510.00 00 
JS mem alloc latch40.00 00 
JS queue access latch50.00 00 
JS queue state obj latch9,1980.00 00 
JS slv state obj latch10.00 00 
KCNIBR - invalid block range tree10.00 00 
KDCStatHash latch10.00 00 
KDFI Buffer Latch10.00 00 
KDFI Hash Bucket Latch10.00 00 
KDFI Hash Elem Latch10.00 00 
KDMADO action list latch10.00 00 
KDMADO bll latch10.00 00 
KDMADO latch10.00 00 
KFC FX Hash Latch10.00 00 
KFC Hash Latch10.00 00 
KFCL LE Freelist10.00 00 
KFIAS client latch10.00 00 
KFIAS cluster latch10.00 00 
KFIAS endpoint latch10.00 00 
KFIAS node latch10.00 00 
KFIAS process latch10.00 00 
KFIAS queue latch10.00 00 
KFK SGA Libload latch5,9700.00 00 
KFMD SGA6250.00 00 
KGNFS-NFS:SHM structure800.00 00 
KGNFS-NFS:SVR LIST3660.00 00 
KJC message pool KGH calls10.00 010.00
KJC message pool free list103,1010.380.01068,9660.05
KJC message pool pending avail list10.00 00 
KJCT flow control latch964,9370.050.0100 
KMG MMAN ready and startup request latch3650.00 00 
KMG resize request state object freelist20.00 00 
KSFS OFS ctx level parent latch10.00 00 
KSFS OFS req layer parent latch10.00 00 
KSFS OFS sess layer parent latch10.00 00 
KSFS Receive and Send Queue latch10.00 00 
KSFS id table parent latch10.00 00 
KSFS ksfs_node latch10.00 00 
KSFSD name cache parent latch10.00 00 
KSGL LS Segment latch10.00 00 
KSGL SGA anchor latch10.00 00 
KSIPC ASPC anchor latch10.00 00 
KSIPC SGA allocation parent latch1,1010.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 latch1890.00 010.00
KSXR hang analysis phase 2 latch1,7960.00 00 
KSXR large replies420.00 00 
KTF sga latch60.00 03400.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 latch1590.00 00 
Latch for NonceHistory10.00 00 
Locator state objects pool parent latch10.00 00 
Lost write change tracking10.00 00 
Lsod array latch5510.00 00 
MGA asr alloc latch180.00 00 
MGA heap latch6641.810.8300 
MGA shared context latch16,1410.500.9000 
MGA shared context root latch8884.950.7310 
MQL Tracking Latch0  0210.00
Memory Management Latch290.00 03650.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 Latch540.00 00 
Mutex10.00 00 
Mutex Stats10.00 00 
Nologging Standby SCN Time Map cache3370.00 00 
OS process1,6510.00 00 
OS process allocation2,6590.040.0000 
OS process: request allocation4350.230.0000 
PDB Hash Table Latch10.00 00 
PDB LRU structure10.00 00 
PL/SQL warning settings9450.00 00 
PX hash array latch10.00 00 
Parent latch for dependency tracking10.00 00 
Parent latch for query hash table access10.00 00 
Parent latch for segments scanning10.00 00 
QMT10.00 00 
Real-time descriptor latch26,2210.011.0000 
Report Request stats latch430.00 00 
Report Request struct latch560.00 00 
Request holder compeltion list latch230.00 00 
Retry Ht elm latch10.00 00 
Retry bkt latch10.00 00 
SGA Blackbox latch50.00 00 
SGA IO buffer pool latch1,5470.00 02,9950.00
SGA Logging Bkt Latch10.00 00 
SGA Logging Log Latch5,1670.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 latch4050.00 02110.00
SQL memory manager latch10.00 03640.00
SQL memory manager workarea list latch210,9560.000.0000 
SR Stats Stripe Latch10.00 00 
Sched IM Job latch180.00 00 
Sched InMem Job Cache10.00 00 
Shared B-Tree400.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 latch2,1830.00 00 
active service list13,1900.140.560411,2350.00
archive destination360.00 00 
begin backup scn array150.00 00 
buffer pool7470.00 00 
business card610.00 00 
cache buffer handles25,4730.030.0000 
cache buffers chains196,875,6120.010.01022,513,3770.01
cache buffers lru chain1,230,5200.170.0209,217,9340.44
cache table scan latch1240.00 01240.00
call allocation4,1660.620.7700 
change notification client cache latch10.00 00 
channel handle pool latch8790.00 00 
channel operations parent latch9,7800.030.00010.00
checkpoint queue latch171,0670.000.000118,3480.00
client/application info613,1840.050.0200 
compile environment latch9620.00 00 
corrupted undo seg latch4890.00 00 
cp handoff latch10.00 00 
cp pool latch10.00 00 
cp server hash latch10.00 00 
cp sga latch170.00 00 
cp srv type state latch1,0930.00 00 
cp srv type wait latch10.00 00 
cr slave free list10.00 00 
cvmap freelist lock10.00 00 
deferred cleanup latch170.00 00 
dispatcher info640.00 00 
dml lock allocation1450.00 00 
done queue latch10.00 00 
dtp latch2270.00 00 
dummy allocation1,8910.110.0000 
eighth spare latch - X parent10.00 00 
eleventh spare latch - children10.00 00 
enqueue freelist latch10.00 0130,5750.00
enqueue hash chains540,7420.050.0401,2750.16
enqueues1710.580.0000 
error message lists1460.00 00 
fast space usage latch80.00 00 
fifteenth spare latch - children10.00 00 
file cache latch2,5460.00 00 
first Audit Vault latch2000.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 element6,187,8190.010.050710,7370.00
gc xid list6560.00 00 
gcr global ctx300.00 00 
gcs commit scn state10.00 00 
gcs lock state resolution latch10.00 00 
gcs nodemap pool35,5460.00 00 
gcs opaque info freelist195,9910.000.0000 
gcs partitioned table hash10,975,4790.010.0008,020,5460.01
gcs pcm hashed value bucket hash10.00 00 
gcs remaster request queue40.00 00 
gcs resource freelist901,5110.010.000284,7990.02
gcs resource hash11,692,0550.000.070730.00
gcs resource scan list70.00 00 
gcs resource timerq list10.00 00 
gcs resource validate list10.00 00 
gcs shadows freelist341,2650.00 00 
ges cached resource lists190,9490.020.05057,0300.04
ges deadlock list6480.00 00 
ges domain table979,6370.000.0000 
ges enqueue table freelist277,2650.020.0200 
ges group table968,7050.00 00 
ges process hash list27,8140.010.0000 
ges process parent latch1,942,1930.000.7300 
ges process table freelist4350.00 00 
ges remote lock freelist7870.00 00 
ges resource hash list1,381,8250.630.15115,3280.91
ges resource scan list7,3270.010.0000 
ges resource table freelist62,1690.010.0000 
ges s-lock bitvec freelist6,0820.00 00 
ges timeout list4,3510.370.0606,1610.36
ges value block free list10.00 00 
global KZLD latch for auth type mem in SGA2000.00 00 
global tx hash mapping10.00 00 
granule from data transfer cache10.00 00 
gws:Sharding global descriptor latch740.00 00 
hash table Sql Plan Finding latch390.00 0100.00
hash table column usage latch2670.00 030,9700.00
hash table expression usage tracking latch10.00 00 
hash table modification latch20.00 00 
hash table sql contorl latch10.00 00 
heartbeat check10.00 04400.00
heartbeat structure management0  05470.00
imc buf hdl lat10.00 00 
imc cr clone buf10.00 00 
imc hash lat10.00 00 
imc sj lat10.00 00 
imc srchsp lat10.00 00 
imc-txn-wrk-lat10.00 00 
in-memory area latch10.00 00 
in-memory columnar segment hash table latch10.00 00 
in-memory columnar ts extent map chunk latch10.00 00 
in-memory global pool latch10.00 00 
internal temp table object number allocation latch350.00 00 
interrupt manipulation2,9490.00 00 
intra txn parallel recovery10.00 00 
io pool granule list160.00 00 
io pool granule metadata list330.00 00 
job workq parent latch10.00 00 
job_queue_processes parameter latch180.00 00 
k2q global data latch7300.00 00 
k2q lock allocation10.00 00 
kKCN Cqn SGA10.00 00 
kcb DW scan objtemp hash table latch10.00 00 
kcn buffer chains10.00 00 
kdlx hb parent latch10.00 00 
kgb parent10.00 00 
kgnfs mount latch10.00 00 
kjbr roi instance map10.00 00 
kjci objects freelist latch31,0070.220.00020.00
kjci process context latch21,5140.130.00018,8630.02
kjci process list latch12,0110.340.0700 
kjci request sequence latch3,6900.00 00 
kjcipctx state object freelist latch1980.00 00 
kjoedcso state object freelist latch170.00 00 
kjoeq omni enqueue hash bucket latch10.00 00 
kjoer owner hash bucket10.00 00 
kjpm my inst data360.00 00 
kjsc Request obj freelist latch4480.00 00 
kjsc Ring Buffer obj freelist latch2240.00 00 
kjsc protect control request queue2240.00 011,0180.00
kjsc protect warm up context2610.00 00 
kjsca protect pkey hash table bucket3,9980.00 00 
kjsca protect service hash table bucket7,0220.00 00 
kjscpss state object freelist latch2240.00 00 
kokc descriptor allocation latch3220.00 00 
kpoxft latch0  01025.88
krso process380.00 00 
ksbxic instance latch900.00 00 
ksevn object root latch3650.00 00 
ksfv messages10.00 00 
ksi resource reuse count10.00 00 
ksim group membership cache3,5090.00 00 
ksim membership request latch0  06810.00
ksns object latch10.00 00 
kss move lock150.00 00 
ksuosstats global area810.00 04180.00
ksutcpistat latch10.00 00 
ksv allocation latch450.00 00 
ksv class latch24,0930.040.0000 
ksv msg queue latch1030.00 01020.00
ksxp shared latch4350.00 00 
ksxp so latch4350.00 00 
ksz_so allocation latch4350.00 00 
ktfbn latch2570.00 00 
ktm adg jrnls10.00 00 
ktm adg lookuptable level 110.00 00 
ktm adg lookuptable level 210.00 00 
ktm adg space10.00 00 
ktm adg stages10.00 00 
ktm adg worklink10.00 00 
ktm global data290.00 00 
ktm prv jrnls10.00 00 
ktmpj HT ls10.00 00 
kwqbsn:qsga390.00 00 
kwslbmdl: metadata latch370.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 latch270.00 00 
kwsslLat: skiplist latch10.00 00 
kxfxscanrate_latch10.00 00 
lgwr LWN SCN9,3810.040.0000 
list of block allocation4380.00 00 
loader state object freelist2380.00 00 
lob segment dispenser latch170.00 00 
lob segment hash table latch650.00 00 
lob segment query latch10.00 00 
lock DBA buffer during media recovery10.00 00 
log write info0  09,8730.10
log write worker phase10.00 00 
logical standby cache10.00 00 
logminer context allocation10.00 00 
logminer local10.00 00 
logminer work area10.00 00 
longop free list parent10.00 00 
managed standby370.00 00 
message bitmap latch10.00 00 
message pool operations parent latch3,3800.00 00 
messages108,5510.140.0000 
msg queue latch10.00 00 
multiblock read objects321,6300.010.0000 
name-service memory objects2,1770.00 00 
name-service namespace bucket7,4080.00 00 
name-service pending queue6720.00 00 
name-service request120.00 00 
name-service request queue13,4170.00 00 
ncodef allocation latch170.00 00 
ninth spare latch - X parent10.00 00 
object queue header freelist227,1580.00 00 
object queue header operation17,999,2610.000.050255,3190.00
object queue memory10.00 00 
object stats modification630.00 00 
parallel query alloc buffer4,6720.00 01650.00
parallel query stats8200.00 00 
parallel txn reco latch5760.00 00 
parameter table management6,2130.00 00 
pdb enqueue hash chains10.00 00 
peshm10.00 00 
pesom_free_list10.00 00 
pesom_hash_node10.00 00 
pkey global statistics10.00 00 
pmon dead latch170.00 00 
post/wait queue111,5470.210.000107,1840.24
process allocation5,8280.050.0000 
process group creation4350.00 00 
process memory detail10.00 00 
process pkey statistics list10.00 00 
process queue2,3110.00 00 
process queue reference38,8580.000.0008,9710.00
qmn task queue latch1590.00 00 
quarantine object180.00 00 
query server freelists1,6700.00 00 
query server process7720.00 010.00
queued dump request40.00 00 
queuing load statistics10.00 00 
read-moslty lock queue under pkey10.00 00 
recovery domain hash bucket4520.00 00 
redo allocation29,2760.390.070223,1880.26
redo copy10.00 0223,3870.05
redo transport task10.00 00 
redo writing31,1330.00 00 
remote tool request latch9450.00 00 
resmgr group change latch1,1640.00 00 
resmgr:active threads2,2050.051.00010,7120.00
resmgr:actses change group1,0370.00 00 
resmgr:actses change state50.00 00 
resmgr:free threads list2,0580.050.0000 
resmgr:plan CPU method10.00 00 
resmgr:plan change alloc latch10.00 00 
resmgr:plan change latch10.00 00 
resmgr:pq event array10.00 00 
resmgr:resource group CPU method1,4460.480.4300 
resmgr:schema config1680.00 0180.00
resmgr:session queuing10.00 00 
row cache objects10.00 00 
rt rmv count latch0  05470.00
second Audit Vault latch10.00 00 
segmented array pool110.00 00 
sequence cache52,5980.140.0000 
service drain list1,0930.00 00 
session allocation25,2460.190.02023,3430.00
session idle bit144,6770.030.0000 
session queue latch10.00 00 
session state list latch2,3260.170.2500 
session statistics1,8951.420.9610 
session switching2340.00 00 
session timer3640.00 00 
seventh spare latch - X parent10.00 00 
sga hash table parent latch10.00 00 
shard latch10.00 00 
shardgroup list latch6560.00 00 
shared pool134,4300.490.412225299.56
shared pool sim alloc190.00 00 
shared pool simulator11,7020.00 00 
shared server configuration3660.00 00 
sim partition latch10.00 00 
simulator hash latch5,868,4120.000.1300 
simulator lru latch820.00 05,816,8950.22
sixth spare latch - X parent10.00 00 
sort extent pool106,1420.000.0000 
space background task latch3,01858.520.9207930.76
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 allocation42,1960.00 00 
temporary table state object allocation1720.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 latch380.00 00 
trace latch790.00 00 
transaction allocation1,8220.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 data51,8640.000.00020.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 chains196,875,61215,51510215,413
ges resource hash list1,381,8258,7671,3377,434
cache buffers lru chain1,230,5202,148532,095
space background task latch3,0181,7661,616161
shared pool134,430652267465
gc element6,187,81945224428
KJCT flow control latch964,9374405435
KJC message pool free list103,1013955390
gcs resource hash11,692,05533625312
ASM map operation hash table17,313,2093037298
enqueue hash chains540,74229112279
client/application info613,1842876281
post/wait queue111,5472351234
redo allocation29,2761138105
MGA shared context latch16,14181738
object queue header operation17,999,26165362
ges process parent latch1,942,193493613
session allocation25,24647146
ges enqueue table freelist277,26546145
MGA shared context root latch888443214
ges cached resource lists190,94944242
kjci process list latch12,01141338
session statistics1,89527261
call allocation4,16626208
active service list13,19018109
ges timeout list4,35116115
simulator hash latch5,868,41215213
MGA heap latch66412106
resmgr:resource group CPU method1,446734
session state list latch2,326413
Real-time descriptor latch26,221220
resmgr:active threads2,205110


Back to Latch Statistics
Back to Top

Latch Miss Sources

Latch NameWhereNoWait Misses SleepsWaiter Sleeps
ASM map operation hash tablekffmTranslate051
ASM map operation hash tablekffmDoDone_1026
KJC message pool free listkjcsmpav: allocate a msg buffer055
KJCT flow control latchkjctcsnd: send normal message043
KJCT flow control latchkjctdp: dump send queue info010
MGA shared context latchksm_mga_sync_whr103963
MGA shared context latchksm_mga_detach_whr202226
MGA shared context latchksm_mga_attach_whr20120
MGA shared context root latchksm_mga_detach_whr102727
MGA shared context root latchksm_mga_attach_whr1055
Real-time descriptor latchkeomgScanDescList022
active service listkswslogon: session logout01010
cache buffers chainskcbzibmlt: multi-block read: nowait0560
cache buffers chainskcbgtcr: convert latch0190
cache buffers chainskcbgtcr: fast path pin0872
cache buffers chainskcbzwb072
cache buffers chainskcbgtcr: slow path excl0613
cache buffers chainskclcls_3062
cache buffers chainskcbgtcr: fast path exam058
cache buffers chainskcbzgb: scan from tail nowait050
cache buffers chainskcbgtcr: convert latch 4030
cache buffers chainskcbget: convert latch010
cache buffers chainskcbgtcr: slow path shr012
cache buffers chainskcbzibmlt: finish free bufs0113
cache buffers lru chainkcbzgws0430
cache buffers lru chainkcbzgb_20916
cache buffers lru chainkcbbwlru017
call allocationksuxds01617
call allocationksuprc033
call allocationksudlp: top call010
client/application infoksuinfos_modact066
gc elementkclnfndx0116
gc elementkclnfndnewm084
gc elementKCLUNLNK022
gc elementkclulb023
gc elementkcllkop014
gc elementkclrwrite_1010
gcs resource hashkjbopen080
gcs resource hashkjbcrcomplete050
gcs resource hashkjbassume040
gcs resource hashkjblocalobj_nolock044
gcs resource hashkjbcropen031
gcs resource hashkjbclose_remaster011
ges cached resource listskjrm2c: move resource to cache012
ges cached resource listskjruch: cached obj cleanup010
ges enqueue table freelistkjlalc: lock allocation010
ges process parent latchkjata_fg0360
ges resource hash listkjlrlr: remove lock from resource queue09591,012
ges resource hash listkjrmas1: lookup master node02489
ges resource hash listkjaksast: search for resource for ast0572
ges resource hash listkjcvscn: remove from scan queue0380
ges resource hash listkjtscn: try lock res with nowait0110
ges resource hash listkjakcai: search for resp by resname081
ges resource hash listkjrref: find matched resource07313
ges resource hash listkjxsokx: search for okX resource obj070
ges resource hash listkjlmfnd: search for lockp by rename and inst id010
ges resource hash listkjxsrply: search for express resource obj010
ges timeout listkjtscn: try to lock timer queue010
kjci process list latchkjcilwplist3032
object queue header operationkcbo_unlink_q022
object queue header operationkcbo_switch_mq_bg011
post/wait queueksliwat:remove011
redo allocationkcrfw_redo_gen: redo allocation 1070
redo allocationkcrfw_redo_gen: redo allocation 3017
resmgr:active threadskskdynthreshact010
resmgr:resource group CPU methodkgkprrpicknext033
session allocationksuxds_int: free011
session state list latchkpseqd010
session statisticsksu_allocate_session_stats02626
simulator hash latchkcbsacc: lookup dba022
space background task latchktsj_grab_task09971,592
space background task latchktsj_detach_task060424
space background task latchktsj_smco_purgeexpired0140
space background task latchktsj_smco_movetasks010
unknown latchkghalo0144226
unknown latchkghfrunp: alloc: wait0733
unknown latchkghupr102325
unknown latchkghfre02122
unknown latchkghfrunp: no latch090
unknown latchksqcmi: if lk mode requested060
unknown latchksqgtl3069
unknown latchkghfrunp: alloc: clatch nowait020
unknown latchkgh_heap_sizes010
unknown latchkghalp011
unknown latchkghfnd: get next extent010
unknown latchkghfnd: min scan010
unknown latchkghfnd: req scan010


Back to Latch Statistics
Back to Top

Mutex Sleep Summary

Mutex TypeLocationSleepsWait Time (ms)
Cursor Pinkkslce [KKSCHLPIN2]8051,035
Library Cachekglhdgn2 1066813,995
Library Cachekglpndl1 954332,330
Library Cachekglget2 24002,244
Library Cachekglpin1 4236877
Row Cache[19] kqrpre90397
Library Cachekglpnal2 916773
Cursor Pinkksfbc [KKSCHLFSP2]4553
Library Cachekgllkal1 8042211
Library Cachekglpnal1 903390
Library Cachekgllkc1 571370
Library Cachekglhdgn1 621110
Library Cachekgllkdl1 85941
Row Cache[06] kqrGetClusterLock71
Cursor ParentkkscsAddChildNode [KKSPRTLOC28]750
Row Cache[10] kqreqd50
Cursor PinkksLockDelete [KKSCHLPIN6]512
Cursor StatqesdpDPCSetupNextExec [KKSSTALOC16]211
Library Cachekglhdgh3 16110
Library Cachekglini2 15710


Back to Latch Statistics
Back to Top

Parent Latch Statistics

No data exists for this section of the report.

Back to Latch Statistics
Back to Top

Child Latch Statistics

No data exists for this section of the report.

Back to Latch Statistics
Back to Top

Segment Statistics

Back to Top

Segments by Logical Reads

OwnerTablespace NameObject NameSubobject NameObj. TypeObj#Dataobj#Logical Reads%Total
SOESOE CUSTOMERS_PK INDEX74279742794,569,2005.38
SOESOE PRODUCT_DESCRIPTIONS TABLE74074740742,353,6962.77
SOESOE ORDERSSYS_P553TABLE PARTITION74013740132,246,0962.64
SOESOE ORDERSSYS_P561TABLE PARTITION74021740212,246,0322.64
SOESOE ORDERSSYS_P552TABLE PARTITION74012740122,244,9442.64


Back to Segment Statistics
Back to Top

Segments by Physical Reads

OwnerTablespace NameObject NameSubobject NameObj. TypeObj#Dataobj#Physical Reads%Total
SOESOE ORDERSSYS_P578TABLE PARTITION7403874038317,1843.71
SOESOE ORDERSSYS_P577TABLE PARTITION7403774037316,0313.70
SOESOE ORDERSSYS_P576TABLE PARTITION7403674036308,4803.61
SOESOE ORDERSSYS_P574TABLE PARTITION7403474034297,5153.48
SOESOE ORDERSSYS_P573TABLE PARTITION7403374033290,4613.40


Back to Segment Statistics
Back to Top

Segments by Physical Read Requests

OwnerTablespace NameObject NameSubobject NameObj. TypeObj#Dataobj#Phys Read Requests%Total
SOESOE ORDERSSYS_P578TABLE PARTITION7403874038317,1843.71
SOESOE ORDERSSYS_P577TABLE PARTITION7403774037316,0213.70
SOESOE ORDERSSYS_P576TABLE PARTITION7403674036308,4793.61
SOESOE ORDERSSYS_P574TABLE PARTITION7403474034297,5153.48
SOESOE ORDERSSYS_P573TABLE PARTITION7403374033290,4613.40


Back to Segment Statistics
Back to Top

Segments by UnOptimized Reads

OwnerTablespace NameObject NameSubobject NameObj. TypeObj#Dataobj#UnOptimized Reads%Total
SOESOE ORDERSSYS_P578TABLE PARTITION7403874038317,1843.71
SOESOE ORDERSSYS_P577TABLE PARTITION7403774037316,0213.70
SOESOE ORDERSSYS_P576TABLE PARTITION7403674036308,4793.61
SOESOE ORDERSSYS_P574TABLE PARTITION7403474034297,5153.48
SOESOE ORDERSSYS_P573TABLE PARTITION7403374033290,4613.40


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 INDEX743297432911,50810.63
SOESOE INVENTORIES TABLE74039740399,1858.48
SOESOE ORDER_PK INDEX74320743205,0264.64
SOESOE ORD_CUSTOMER_IX INDEX74331743315,0114.63
SOESOE ORD_WAREHOUSE_IX INDEX74333743334,8744.50


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 INDEX743297432911,15111.45
SOESOE INVENTORIES TABLE74039740397,9278.14
SOESOE ORDER_PK INDEX74320743205,0265.16
SOESOE ORD_CUSTOMER_IX INDEX74331743315,0085.14
SOESOE ITEM_ORDER_IX INDEX74328743284,7044.83


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 PARTITION744647446448766.80


Back to Segment Statistics
Back to Top

Segments by Table Scans

No data exists for this section of the report.

Back to Segment Statistics
Back to Top

Segments by DB Blocks Changes

OwnerTablespace NameObject NameSubobject NameObj. TypeObj#Dataobj#DB Block Changes% of Capture
SOESOE ORD_WAREHOUSE_IX INDEX743337433319,04014.56
SOESOE ITEM_PRODUCT_IX INDEX743297432914,68811.23
SOESOE INVENTORIES TABLE740397403914,16010.83
SOESOE ITEM_ORDER_IX INDEX743287432814,12810.80
SOESOE ORD_ORDER_DATE_IX INDEX74332743326,1924.73


Back to Segment Statistics
Back to Top

Segments by Row Lock Waits

OwnerTablespace NameObject NameSubobject NameObj. TypeObj#Dataobj#Row Lock Waits% of Capture
SOESOE CUST_ACCOUNT_MANAGER_IX INDEX7433474334240.00
SOESOE CUST_EMAIL_IX INDEX7435674356240.00
SOESOE ORD_ORDER_DATE_IX INDEX7433274332120.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 ORD_ORDER_DATE_IX INDEX7433274332847.06
SOESOE CUSTOMERS_PK INDEX7427974279211.76
SOESOE CUST_ACCOUNT_MANAGER_IX INDEX7433474334211.76
SYSSYSTEM SEG$ TABLE148211.76
SOESOE CARDDETAILS_CUST_IX INDEX743667436615.88


Back to Segment Statistics
Back to Top

Segments by Global Cache Buffer Busy

OwnerTablespace NameObject NameSubobject NameObj. TypeObj#Dataobj#GC Buffer Busy% of Capture
SOESOE ORD_WAREHOUSE_IX INDEX74333743338128.03
SOESOE ORD_SALES_REP_IX INDEX74330743305820.07
SOESOE ORD_ORDER_DATE_IX INDEX74332743324716.26
SYSSYSTEM SEG$ TABLE1483211.07
SOESOE CUST_EMAIL_IX INDEX7435674356217.27


Back to Segment Statistics
Back to Top

Segments by CR Blocks Received

OwnerTablespace NameObject NameSubobject NameObj. TypeObj#Dataobj#CR Blocks Received%Total
SOESOE INVENTORIES TABLE740397403924,60381.95
SOESOE ORD_WAREHOUSE_IX INDEX74333743334721.57
SOESOE CUST_FUNC_LOWER_NAME_IX INDEX74360743603041.01
SOESOE CUSTOMERS_PK INDEX74279742791350.45
SOESOE ORDERSSYS_P548TABLE PARTITION74008740081050.35


Back to Segment Statistics
Back to Top

Segments by Current Blocks Received

OwnerTablespace NameObject NameSubobject NameObj. TypeObj#Dataobj#Current Blocks Received%Total
SOESOE INVENTORIES TABLE740397403930,66741.29
SOESOE ORD_WAREHOUSE_IX INDEX74333743334,3295.83
SOESOE ORD_SALES_REP_IX INDEX74330743303,5824.82
SOESOE ITEM_PRODUCT_IX INDEX74329743292,9253.94
SOESOE ORD_ORDER_DATE_IX INDEX74332743322,2263.00


Back to Segment Statistics
Back to Top

Segments by Global Cache Remote Grants

OwnerTablespace NameObject NameSubobject NameObj. TypeObj#Dataobj#GC Remote Grants%Total
SOESOE ORD_WAREHOUSE_IX INDEX743337433358,63119.45
SOESOE ORD_SALES_REP_IX INDEX743307433050,69916.82
SOESOE INVENTORIES TABLE74039740397,8102.59
SOESOE ITEM_PRODUCT_IX INDEX74329743297,5262.50
SOESOE ADDRESS_CUST_IX INDEX74327743275,3781.78


Back to Segment Statistics
Back to Top

Dictionary Cache Statistics

Back to Top