WORKLOAD REPOSITORY report for

DB NameDB IdInstanceInst numStartup TimeReleaseRAC
PMTG2588850174PMTG2109-Apr-21 11:0412.1.0.2.0NO

Host NamePlatformCPUsCoresSocketsMemory (GB)
RH-TESTOF7DBAIX-Based Systems (64-bit) 8 2  32.25

Snap IdSnap TimeSessionsCursors/Session
Begin Snap:435411-Apr-21 17:00:50345 11.0
End Snap:435511-Apr-21 18:00:56343 11.0
Elapsed:  60.10 (mins)  
DB Time:  69.63 (mins)  

Report Summary

Top ADDM Findings by Average Active Sessions

Finding NameAvg active sessions of the taskPercent active sessions of findingTask NameBegin Snap TimeEnd Snap Time
Top SQL Statements1.1696.20ADDM:588850174_1_435511-Apr-21 17:0011-Apr-21 18:00

Load Profile

Per SecondPer TransactionPer ExecPer Call
DB Time(s): 1.2 0.4 0.00 0.03
DB CPU(s): 0.6 0.2 0.00 0.02
Background CPU(s): 0.0 0.0 0.00 0.00
Redo size (bytes): 36,940.9 12,227.5  
Logical read (blocks): 3,094.6 1,024.3  
Block changes: 70.0 23.2  
Physical read (blocks): 28.0 9.3  
Physical write (blocks): 7.0 2.3  
Read IO requests: 24.8 8.2  
Write IO requests: 3.0 1.0  
Read IO (MB): 0.2 0.1  
Write IO (MB): 0.1 0.0  
IM scan rows: 0.0 0.0  
Session Logical Read IM:    
User calls: 40.9 13.5  
Parses (SQL): 146.5 48.5  
Hard parses (SQL): 0.5 0.2  
SQL Work Area (MB): 0.6 0.2  
Logons: 0.6 0.2  
Executes (SQL): 382.0 126.4  
Rollbacks: 2.1 0.7  
Transactions: 3.0   

Instance Efficiency Percentages (Target 100%)

Buffer Nowait %: 100.00Redo NoWait %: 100.00
Buffer Hit %: 99.10In-memory Sort %: 100.00
Library Hit %: 99.84Soft Parse %: 99.69
Execute to Parse %: 61.66Latch Hit %: 99.90
Parse CPU to Parse Elapsd %: 41.05% Non-Parse CPU: 99.83
Flash Cache Hit %: 0.00

Top 10 Foreground Events by Total Wait Time

EventWaitsTotal Wait Time (sec)Wait Avg(ms)% DB timeWait Class
DB CPU 2248.9 53.8 
db file sequential read20,880371.77.9User I/O
log file sync3,86716.94.37.4Commit
db file scattered read1,1685.24.42.1User I/O
PX Deq: Slave Session Stats3,2571.80.54.0Other
log file sequential read6,9581.10.15.0System I/O
Disk file operations I/O6,993.60.09.0User I/O
db file parallel read29.621.97.0User I/O
direct path write437.61.39.0User I/O
SQL*Net break/reset to client1,258.50.41.0Application

Wait Classes by Total Wait Time

Wait ClassWaitsTotal Wait Time (sec)Avg Wait (ms)% DB timeAvg Active Sessions
DB CPU 2,249 53.80.6
User I/O99,560740.741.80.0
System I/O120,272340.28.80.0
Other15,276221.41.50.0
Commit3,893174.46.40.0
Application1,54410.65.00.0
Concurrency2,00710.27.00.0
Network126,33500.00.00.0
Configuration5902.27.00.0
Scheduler900.01.00.0

Host CPU

CPUsCoresSocketsLoad Average BeginLoad Average End%User%System%WIO%Idle
8 2  2.79 1.74 15.9 0.9 0.2 83.2

Instance CPU

%Total CPU%Busy CPU%DB time waiting for CPU (Resource Manager)
7.9 46.9 0.0

IO Profile

Read+Write Per SecondRead per SecondWrite Per Second
Total Requests: 224.8 214.3 10.5
Database Requests: 27.9 24.8 3.0
Optimized Requests: 0.0 0.0 0.0
Redo Requests: 170.0 164.0 6.1
Total (MB): 164.5 164.0 0.4
Database (MB): 0.3 0.2 0.1
Optimized Total (MB): 0.0 0.0 0.0
Redo (MB): 163.5 163.5 0.1
Database (blocks): 35.0 28.0 7.0
Via Buffer Cache (blocks): 31.3 27.8 3.5
Direct (blocks): 3.7 0.3 3.5

Memory Statistics

BeginEnd
Host Mem (MB): 33,024.0 33,024.0
SGA use (MB): 4,800.0 4,800.0
PGA use (MB): 1,276.9 1,291.1
% Host Mem used for SGA+PGA: 18.40 18.44

Cache Sizes

BeginEnd
Buffer Cache: 2,672M 2,672MStd Block Size: 8K
Shared Pool Size: 1,728M 1,728MLog Buffer: 12,668K
In-Memory Area: 0M 0M

Shared Pool Statistics

BeginEnd
Memory Usage %: 79.82 79.62
% SQL with executions>1: 99.03 98.66
% Memory for SQL w/exec>1: 97.66 97.29

Main Report


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 time4,143.6799.19 
DB CPU2,248.8753.8398.36
PL/SQL execution elapsed time28.980.69 
parse time elapsed8.680.21 
inbound PL/SQL rpc elapsed time5.570.13 
hard parse elapsed time2.700.06 
connection management call elapsed time1.980.05 
hard parse (sharing criteria) elapsed time0.150.00 
sequence load elapsed time0.050.00 
repeated bind elapsed time0.030.00 
PL/SQL compilation elapsed time0.010.00 
failed parse elapsed time0.010.00 
DB time4,177.69  
background elapsed time162.58  
background cpu time37.40 1.64
total CPU time2,286.27  


Back to Wait Events Statistics
Back to Top

Operating System Statistics

StatisticValueEnd Value
AVG_BUSY_TIME60,223 
AVG_IDLE_TIME300,673 
AVG_IOWAIT_TIME733 
AVG_SYS_TIME2,857 
AVG_USER_TIME56,817 
BUSY_TIME487,011 
IDLE_TIME2,410,566 
IOWAIT_TIME7,045 
SYS_TIME27,249 
USER_TIME459,762 
LOAD32
OS_CPU_WAIT_TIME760,800 
RSRC_MGR_CPU_WAIT_TIME29 
PHYSICAL_MEMORY_BYTES34,628,173,824 
NUM_CPUS8 
NUM_CPU_CORES2 
NUM_LCPUS8 
NUM_VCPUS2 
GLOBAL_RECEIVE_SIZE_MAX1,048,576 
GLOBAL_SEND_SIZE_MAX1,048,576 
TCP_RECEIVE_SIZE_DEFAULT16,384 
TCP_RECEIVE_SIZE_MAX9,223,372,036,854,775,807 
TCP_RECEIVE_SIZE_MIN4,096 
TCP_SEND_SIZE_DEFAULT16,384 
TCP_SEND_SIZE_MAX9,223,372,036,854,775,807 
TCP_SEND_SIZE_MIN4,096 


Back to Wait Events Statistics
Back to Top

Operating System Statistics - Detail

Snap TimeLoad%busy%user%sys%idle%iowait
11-Apr 17:00:502.79     
11-Apr 18:00:561.7416.8115.870.9483.190.24


Back to Wait Events Statistics
Back to Top

Foreground Wait Class

Wait ClassWaits%Time -outsTotal Wait Time (s)Avg wait (ms)%DB time
DB CPU  2,249 53.83
User I/O31,3150451.441.08
Commit3,8670174.370.40
Other13,1563530.230.07
System I/O88,699010.020.03
Application1,544010.650.02
Concurrency1,982010.270.01
Network125,863000.000.01
Configuration55402.070.00
Scheduler9000.010.00


Back to Wait Events Statistics
Back to Top

Foreground Wait Events

EventWaits%Time -outsTotal Wait Time (s)Avg wait (ms)Waits /txn% DB time
db file sequential read20,880 371.771.920.89
log file sync3,867 174.370.350.40
db file scattered read1,168 54.420.110.12
PX Deq: Slave Session Stats3,257 20.540.300.04
log file sequential read6,958 10.150.640.03
Disk file operations I/O6,993 10.090.640.02
db file parallel read29 121.970.000.02
direct path write437 11.390.040.01
SQL*Net break/reset to client1,258 10.410.120.01
enq: RO - fast object reuse253 01.840.020.01
local write wait426 00.940.040.01
control file sequential read81,741 00.007.500.01
enq: CR - block range reuse ckpt201 01.740.020.01
read by other session28 010.160.000.01
SQL*Net message to client122,697 00.0011.260.01
direct path sync318 00.750.030.01
oracle thread bootstrap8 027.440.000.01
PX Deq: Signal ACK RSG192 01.070.020.00
PX Deq: Signal ACK EXT1,632 00.120.150.00
enq: HV - contention91 01.890.010.00
PX Deq: Table Q Get Keys694 00.240.060.00
library cache: mutex X1,298 00.120.120.00
cursor: pin S80 01.250.010.00
buffer busy waits302 00.300.030.00
SQL*Net more data to client2,976 00.030.270.00
log file switch completion4 020.360.000.00
PX qref latch4,61810000.010.420.00
reliable message244 00.180.020.00
utl_file I/O1,032 00.030.090.00
undo segment extension36706.690.000.00
enq: TX - allocate ITL entry48 00.260.000.00
enq: TX - row lock contention33 00.270.000.00
cursor: mutex X141 00.060.010.00
get branch/thread/sequence enqueue1,020 00.010.090.00
rdbms ipc reply382 00.020.040.00
latch: cache buffers chains53 00.140.000.00
enq: PS - contention78 00.070.010.00
enq: TX - contention20 00.230.000.00
library cache lock2 01.930.000.00
PX Deq: Table Q qref704 00.010.060.00
latch: call allocation50 00.070.000.00
SQL*Net more data from client190 00.010.020.00
latch: shared pool13 00.110.000.00
buffer deadlock1710000.080.000.00
SQL*Net message from client122,703 558,0604548.0611.26 
Streams AQ: waiting for messages in the queue17,37198150,4768662.481.59 
PL/SQL lock timer2,16010021,60110000.290.20 
jobq slave wait2,090991,042498.750.19 
PX Deq: Execution Msg13,898 412.971.28 
PX Deq: Table Q Normal7,478 202.730.69 
PX Deq: Execute Reply12,216 50.371.12 
PX Deq Credit: send blkd1,960 31.540.18 
PX Deq Credit: need buffer187 13.870.02 
PX Deq: Parse Reply1,632 00.170.15 
PX Deq: Join ACK2,572 00.030.24 


Back to Wait Events Statistics
Back to Top

Background Wait Events

EventWaits%Time -outsTotal Wait Time (s)Avg wait (ms)Waits /txn% bg time
db file sequential read66,6170280.426.1217.34
log file parallel write10,0970262.540.9315.78
Redo Transport Attach12010858.080.006.33
oracle thread bootstrap1700634.470.023.60
db file parallel write4,876020.470.451.40
os thread creation1780212.750.021.40
log file sequential read2030210.490.021.31
control file parallel write1,395021.180.131.01
Log archive I/O120156.640.000.42
log file sync260017.610.000.28
Disk file operations I/O849000.340.080.18
direct path sync352000.650.030.14
db file async I/O submit4,869000.050.450.14
db file scattered read101002.090.010.13
control file sequential read10,117000.010.930.07
enq: PR - contention10030.620.000.02
PX Deq: Slave Join Frag1,632000.020.150.02
direct path write temp287000.070.030.01
undo segment extension36706.680.000.01
direct path write28000.710.000.01
direct path read10001.240.000.01
buffer busy waits4002.740.000.01
log file single write4001.720.000.00
LGWR wait for redo copy79000.070.010.00
latch: shared pool21000.190.000.00
ADR block file read16000.160.000.00
ADR file lock6000.250.000.00
reliable message8000.150.000.00
ADR block file write5000.200.000.00
rdbms ipc message32,9815864,8351965.833.03 
Space Manager: slave idle wait2,4189211,3064675.670.22 
LGWR worker group idle207,9563977977.860.00 
DIAG idle wait7,20307,2041000.080.66 
Streams AQ: waiting for time management or cleanup tasks8633,686460797.000.00 
LNS ASYNC dest activation13923,677282880.980.00 
pmon timer1,2021003,6063000.080.11 
heartbeat redo informer6,49303,606555.310.60 
Streams AQ: qmn coordinator idle wait1,030503,6053500.140.09 
Streams AQ: qmn slave idle wait51503,6057000.230.05 
lreg timer1,2011003,6033000.120.11 
AQPC idle1201003,60030000.660.01 
JOX Jit Process Sleep2381003,57015000.290.02 
smon timer11963,33428020.760.01 
PX Idle Wait1,64002,5701567.240.15 
SQL*Net message from client637023.630.06 
class slave wait145000.400.01 


Back to Wait Events Statistics
Back to Top

Wait Event Histogram

  % of Waits
EventTotal Waits <1ms <2ms <4ms <8ms<16ms<32ms <=1s >1s
ADR block file read16100.0       
ADR block file write5100.0       
ADR file lock6100.0       
Disk file operations I/O783699.5.1.1.1.1.1.1 
LGWR all worker groups1100.0       
LGWR wait for redo copy7998.71.3      
Log archive I/O128.3     91.7 
PX Deq Credit: free buffer6100.0       
PX Deq: Signal ACK EXT163299.4.1.1.3.1.1  
PX Deq: Signal ACK RSG19296.4.5.5  1.01.6 
PX Deq: Slave Join Frag163299.9.1      
PX Deq: Slave Session Stats325782.815.3.8.8.1.2.0 
PX Deq: Table Q Get Keys68798.11.9      
PX Deq: Table Q qref704100.0       
PX qref latch462399.7.3      
Redo Transport Attach12      100.0 
Redo Transport Open1100.0       
SQL*Net break/reset to client125893.63.11.41.2.8   
SQL*Net message to client123K100.0.0      
SQL*Net more data from client190100.0       
SQL*Net more data to client297699.9.1      
buffer busy waits30691.83.92.91.0.3   
buffer deadlock1794.15.9      
control file parallel write139682.27.64.72.72.2.6  
control file sequential read91.9K100.0.0 .0 .0.0 
cursor: mutex X14199.3.7      
cursor: pin S8016.381.32.5     
db file async I/O submit486999.9.0.0 .0 .0 
db file parallel read29   3.431.051.713.8 
db file parallel write487695.02.41.5.5.3.3  
db file scattered read127045.03.811.924.910.92.41.3 
db file sequential read87.5K89.32.04.23.8.3.1.3 
direct path read1050.040.010.0     
direct path read temp4100.0       
direct path sync67288.19.81.3.6 .1  
direct path write46581.112.34.7.6.4 .9 
direct path write temp28898.61.0.3     
enq: CR - block range reuse ckpt20167.223.94.5.51.52.5  
enq: HV - contention9149.525.316.55.53.3   
enq: PR - contention1     100.0  
enq: PS - contention78100.0       
enq: RO - fast object reuse25376.79.95.14.71.61.6.4 
enq: TX - allocate ITL entry4889.610.4      
enq: TX - contention2095.0 5.0     
enq: TX - row lock contention3397.0 3.0     
get branch/thread/sequence enqueue1021100.0       
latch free19100.0       
latch: active service list15100.0       
latch: cache buffers chains5392.57.5      
latch: call allocation50100.0       
latch: enqueue hash chains3100.0       
latch: redo allocation1100.0       
latch: redo writing1100.0       
latch: shared pool34100.0       
library cache lock2 50.050.0     
library cache: mutex X127299.1.2 .1.6   
local write wait42689.46.31.91.6.5.2  
log file parallel write10.1K73.38.65.33.94.34.0.7 
log file sequential read716197.0.1.11.01.2.3.2 
log file single write450.0 50.0     
log file switch completion4     100.0  
log file sync383458.916.44.05.16.07.22.4 
oracle thread bootstrap178     60.739.3 
os thread creation178 6.77.312.439.334.3  
rdbms ipc reply38299.7.3      
read by other session2821.4 32.125.07.1 14.3 
reliable message25297.6.8.41.2    
resmgr:cpu quantum9100.0       
row cache lock2100.0       
undo segment extension666.7    33.3  
utl_file I/O103299.9.1      
AQPC idle120       100.0
DIAG idle wait7204      100.0 
JOX Jit Process Sleep238       100.0
LGWR worker group idle2       100.0
LNS ASYNC dest activation13       100.0
PL/SQL lock timer2159       100.0
PX Deq Credit: need buffer18776.55.91.11.65.38.01.6 
PX Deq Credit: send blkd195795.92.5.7.3 .3.4.1
PX Deq: Execute Reply12.2K95.11.91.2.8.6.3.1 
PX Deq: Execution Msg13.8K66.79.414.54.41.51.22.2 
PX Deq: Join ACK2572100.0 .0     
PX Deq: Parse Reply163296.32.01.4.1.2   
PX Deq: Table Q Normal741887.65.14.41.9.5.2.1.1
PX Idle Wait1632 .1.356.218.97.516.5.5
SQL*Net message from client123.3K51.16.11.7.9.5.230.09.5
Space Manager: slave idle wait24181.31.0.9.2.4.21.794.4
Streams AQ: qmn coordinator idle wait103049.5.3.1 .1  50.0
Streams AQ: qmn slave idle wait515       100.0
Streams AQ: waiting for messages in the queue17.4K     .0.599.5
Streams AQ: waiting for time management or cleanup tasks825.0     25.050.0
class slave wait14591.06.9.7.7 .7  
heartbeat redo informer649328.03.92.12.02.11.960.0 
jobq slave wait2092      100.0 
lreg timer1202       100.0
pmon timer1202       100.0
rdbms ipc message33K17.91.91.82.81.81.539.532.7
smon timer12020.016.715.05.8 1.724.216.7


Back to Wait Events Statistics
Back to Top

Wait Event Histogram Detail (64 msec to 2 sec)

  % of Total Waits
EventWaits 64ms to 2s<32ms<64ms<1/8s<1/4s<1/2s <1s <2s>=2s
Disk file operations I/O599.9.1.0     
Log archive I/O118.375.08.38.3    
PX Deq: Signal ACK RSG398.41.0.5     
PX Deq: Slave Session Stats1100.0.0      
Redo Transport Attach12     100.0  
control file sequential read1100.0.0      
db file async I/O submit2100.0.0.0     
db file parallel read486.213.8      
db file scattered read1698.71.3      
db file sequential read25399.7.3.0     
direct path write499.1.2.6     
enq: RO - fast object reuse199.6 .4     
log file parallel write7199.3.7.0     
log file sequential read1399.8.1.1     
log file sync9397.62.2.2     
oracle thread bootstrap7060.739.3      
read by other session485.714.3      


Back to Wait Events Statistics
Back to Top

Wait Event Histogram Detail (4 sec to 2 min)

No data exists for this section of the report.

Back to Wait Events Statistics
Back to Top

Wait Event Histogram Detail (4 min 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)
PMTG24,1662,2463310,134
SYS$USERS1131447
SYS$BACKGROUND0067577


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
PMTG2 301084119821001256060
SYS$USERS 1207400002410
SYS$BACKGROUND 6825429600000


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
3,371.094547.4380.6956.210.0112aqm6fhn7z7c JDBC Thin Client SELECT csf, ROLLBACK, timestam...
664.351145.8315.9047.410.01bhm40tnqghpkc JDBC Thin Client SELECT csf, ROLLBACK, timestam...
33.76127,9220.000.8154.110.0034a34zf4x2ua2   DECLARE p1 NUMBER := :1; p2 NU...
23.95590.410.5747.642.27fhf8upax5cxsz MMON_SLAVE BEGIN sys.dbms_auto_report_int...
23.38590.400.5647.662.280w26sk6t6gq98 MMON_SLAVE SELECT XMLTYPE(DBMS_REPORT.GET...
22.53590.380.5447.632.36dfffkcnqfystw MMON_SLAVE WITH MONITOR_DATA AS (SELECT I...
21.12210.560.512.6297.969jzdzpbhgp29m APXATR SELECT INVOICE_ID FROM AP_INVO...
20.32120.320.4919.6141.208qbsngb5uhg26 FNDWFLSC BEGIN wf_local_synch.bulksynch...
18.97118.970.456.1796.7914khktjbkbymw   delete /*+ dynamic_sampling(4)...
17.8651,9640.000.4354.200.0075dp2gkkmbmzk   select segcol#, intcol#, colna...


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
1,894.964544.1784.263,371.0956.210.0112aqm6fhn7z7c JDBC Thin Client SELECT csf, ROLLBACK, timestam...
314.981142.7614.01664.3547.410.01bhm40tnqghpkc JDBC Thin Client SELECT csf, ROLLBACK, timestam...
18.27127,9220.000.8133.7654.110.0034a34zf4x2ua2   DECLARE p1 NUMBER := :1; p2 NU...
11.41590.190.5123.9547.642.27fhf8upax5cxsz MMON_SLAVE BEGIN sys.dbms_auto_report_int...
11.14590.190.5023.3847.662.280w26sk6t6gq98 MMON_SLAVE SELECT XMLTYPE(DBMS_REPORT.GET...
10.73590.180.4822.5347.632.36dfffkcnqfystw MMON_SLAVE WITH MONITOR_DATA AS (SELECT I...
9.6851,9640.000.4317.8654.200.0075dp2gkkmbmzk   select segcol#, intcol#, colna...
7.9985,3440.000.3614.4555.300.00891ys174v9xpy JDBC Thin Client declare loc_objn number := :ob...
6.51590.110.2913.4148.530.938mdz49zkajhw3 MMON_SLAVE SELECT /*+ OPT_PARAM('_fix_con...
5.44122,6570.000.249.9654.640.003zzys0hckamzz   SELECT SUM (DISTINCT CASE C.TY...


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
20.68210.3427.9421.122.6297.969jzdzpbhgp29m APXATR SELECT INVOICE_ID FROM AP_INVO...
18.36118.3624.8018.976.1796.7914khktjbkbymw   delete /*+ dynamic_sampling(4)...
8.3718.3711.3120.3219.6141.208qbsngb5uhg26 FNDWFLSC BEGIN wf_local_synch.bulksynch...
4.175260.015.634.989.9683.758br2cu3bgk8fy   merge into heat_map_stat$ D us...
4.1714.175.635.0010.1283.45amry4gv0tdajy DBMS_SCHEDULER DECLARE job BINARY_INTEGER := ...
2.1912.192.962.243.8497.992rthbjm4cgqnv   delete /*+ dynamic_sampling(4)...
1.8311.832.471.862.9398.4137u6rn76yp0jw   delete /*+ dynamic_sampling(4)...
1.6911.692.281.753.2596.45ajhwxrwhytxyv   delete /*+ dynamic_sampling(4)...
0.91290.031.233.0135.5830.1039c3gyvun83f9 FNDWFLSC BEGIN DBMS_STATS.GATHER_TABLE_...
0.54590.010.7323.9547.642.27fhf8upax5cxsz MMON_SLAVE BEGIN sys.dbms_auto_report_int...


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
3,500,330127,92227.3631.3733.7654.1034a34zf4x2ua2   DECLARE p1 NUMBER := :1; p2 NU...
3,492,5864547,692.9231.303,371.0956.2012aqm6fhn7z7c JDBC Thin Client SELECT csf, ROLLBACK, timestam...
2,029,22735,96456.4218.189.7850.909c8h6vf0drh8b e:INV:cp:INVMGR Select R.Rowid From Fnd_Concur...
1,415,3246235,887.3312.683.6248.5080qmukkhzgf6k APXIIMPT SELECT i.org_id reject_org_id,...
1,372,90211412,043.0012.30664.3547.40bhm40tnqghpkc JDBC Thin Client SELECT csf, ROLLBACK, timestam...
865,97152,84716.397.761.9154.3030unwq8h7p2p6   SELECT BO.SPARE2, IND.BO#, IND...
766,84451,96414.766.8717.8654.2075dp2gkkmbmzk   select segcol#, intcol#, colna...
763,773127,9235.976.842.7753.9080agnrtxdpfcq   SELECT O.SPARE2, O.TYPE#, O.OW...
643,51957,33711.225.771.4353.909q66y9hnkv22q   SELECT T.COLS, T.INTCOLS, T.KE...
597,98185,3447.015.3614.4555.30891ys174v9xpy JDBC Thin Client declare loc_objn number := :ob...
597,98185,3447.015.363.3354.80d2wdabdywhha9 JDBC Thin Client SELECT NVL(MAX(OBJV#), 0) FROM...
553,119122,6574.514.969.9654.603zzys0hckamzz   SELECT SUM (DISTINCT CASE C.TY...
406,3671406,367.003.6420.3219.641.28qbsngb5uhg26 FNDWFLSC BEGIN wf_local_synch.bulksynch...
367,979122,6573.003.301.2553.40f3hwp0ast732j   SELECT CASE WHEN BITAND(OPQ.FL...
362,1591362,159.003.255.0010.183.5amry4gv0tdajy DBMS_SCHEDULER DECLARE job BINARY_INTEGER := ...
362,158526688.513.254.981083.78br2cu3bgk8fy   merge into heat_map_stat$ D us...
218,0563,65859.611.951.2652.40gf1d6mzzka24b e:FND:cp:STDMGR2 Select R.Rowid From Fnd_Concur...
183,0601081,695.001.642.7641.906mncc9a8fbf3f APXIIMPT select to_char(CODE_COMBINATIO...
124,610592,112.031.1223.9547.62.3fhf8upax5cxsz MMON_SLAVE BEGIN sys.dbms_auto_report_int...
119,676592,028.411.0723.3847.72.30w26sk6t6gq98 MMON_SLAVE SELECT XMLTYPE(DBMS_REPORT.GET...
116,445591,973.641.0422.5347.62.4dfffkcnqfystw MMON_SLAVE WITH MONITOR_DATA AS (SELECT I...


Back to SQL Statistics
Back to Top

SQL ordered by Reads

Physical ReadsExecutionsReads per Exec %TotalElapsed Time (s)%CPU%IO SQL IdSQL ModuleSQL Text
54,123154,123.0053.5218.976.1796.7914khktjbkbymw   delete /*+ dynamic_sampling(4)...
16,55528,277.5016.3721.122.6297.969jzdzpbhgp29m APXATR SELECT INVOICE_ID FROM AP_INVO...
6,41716,417.006.3520.3219.6141.208qbsngb5uhg26 FNDWFLSC BEGIN wf_local_synch.bulksynch...
3,97213,972.003.932.243.8497.992rthbjm4cgqnv   delete /*+ dynamic_sampling(4)...
3,59929124.103.563.0135.5830.1039c3gyvun83f9 FNDWFLSC BEGIN DBMS_STATS.GATHER_TABLE_...
2,44212,442.002.421.862.9398.4137u6rn76yp0jw   delete /*+ dynamic_sampling(4)...
1,57611,576.001.561.753.2596.45ajhwxrwhytxyv   delete /*+ dynamic_sampling(4)...
1,1385262.161.134.989.9683.758br2cu3bgk8fy   merge into heat_map_stat$ D us...
1,13811,138.001.135.0010.1283.45amry4gv0tdajy DBMS_SCHEDULER DECLARE job BINARY_INTEGER := ...
408596.920.4023.9547.642.27fhf8upax5cxsz MMON_SLAVE BEGIN sys.dbms_auto_report_int...


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
491,588491,5884541,082.790.00549.3312aqm6fhn7z7c JDBC Thin Client SELECT csf, ROLLBACK, timestam...
98,75698,756114866.280.00110.36bhm40tnqghpkc JDBC Thin Client SELECT csf, ROLLBACK, timestam...
71,36371,3631,13362.990.0079.746922x3gymmuw4 JDBC Thin Client SELECT * FROM ( SELECT arch_lo...
54,12354,123154,123.000.0060.4814khktjbkbymw   delete /*+ dynamic_sampling(4)...
16,55516,55528,277.500.0018.509jzdzpbhgp29m APXATR SELECT INVOICE_ID FROM AP_INVO...
10,21510,2151,1359.000.0011.4187bqp3pu6q24t JDBC Thin Client SELECT THREAD#, LAST_REDO_CHAN...
3,9723,97213,972.000.004.442rthbjm4cgqnv   delete /*+ dynamic_sampling(4)...
3,0633,06313,063.000.003.428qbsngb5uhg26 FNDWFLSC BEGIN wf_local_synch.bulksynch...
2,4422,44212,442.000.002.7337u6rn76yp0jw   delete /*+ dynamic_sampling(4)...
1,5761,57611,576.000.001.76ajhwxrwhytxyv   delete /*+ dynamic_sampling(4)...
1,1381,1385262.160.001.278br2cu3bgk8fy   merge into heat_map_stat$ D us...
1,1381,13811,138.000.001.27amry4gv0tdajy DBMS_SCHEDULER DECLARE job BINARY_INTEGER := ...
1,1361,1365919.250.001.27fhf8upax5cxsz MMON_SLAVE BEGIN sys.dbms_auto_report_int...


Back to SQL Statistics
Back to Top

SQL ordered by Executions

Executions Rows ProcessedRows per ExecElapsed Time (s) %CPU %IO SQL IdSQL ModuleSQL Text
127,923123,1630.962.7753.9080agnrtxdpfcq   SELECT O.SPARE2, O.TYPE#, O.OW...
127,922127,9191.0033.7654.1034a34zf4x2ua2   DECLARE p1 NUMBER := :1; p2 NU...
122,657122,6571.009.9654.603zzys0hckamzz   SELECT SUM (DISTINCT CASE C.TY...
122,65700.001.2553.40f3hwp0ast732j   SELECT CASE WHEN BITAND(OPQ.FL...
119,475119,4751.001.2153.507y03axgp9xsjv   SELECT COUNT(1) FROM SYSTEM.LO...
118,907118,9051.007.7653.6058w0hdm0pj3xn JDBC Thin Client declare pdb_name_in VARCHAR2(1...
85,34485,3441.0014.4555.30891ys174v9xpy JDBC Thin Client declare loc_objn number := :ob...
85,34485,3441.003.3354.80d2wdabdywhha9 JDBC Thin Client SELECT NVL(MAX(OBJV#), 0) FROM...
57,33757,3381.001.4353.909q66y9hnkv22q   SELECT T.COLS, T.INTCOLS, T.KE...
52,84752,3410.991.9154.3030unwq8h7p2p6   SELECT BO.SPARE2, IND.BO#, IND...
51,9641,359,36726.1617.8654.2075dp2gkkmbmzk   select segcol#, intcol#, colna...
41,77441,7911.003.1749.402mwvn9xwq1tz3 e:FND:cp:STDMGR2 select (RUNNING_PROCESSES-MAX_...
35,96400.009.7850.909c8h6vf0drh8b e:INV:cp:INVMGR Select R.Rowid From Fnd_Concur...
22,19922,1991.000.2452.9065ydd0sp03y1v   SELECT PARTTYPE, BITAND(SPARE2...


Back to SQL Statistics
Back to Top

SQL ordered by Parse Calls

Parse CallsExecutions % Total Parses SQL IdSQL ModuleSQL Text
127,923127,92224.2234a34zf4x2ua2   DECLARE p1 NUMBER := :1; p2 NU...
118,904118,90722.5258w0hdm0pj3xn JDBC Thin Client declare pdb_name_in VARCHAR2(1...
85,34485,34416.16891ys174v9xpy JDBC Thin Client declare loc_objn number := :ob...
85,34485,34416.16d2wdabdywhha9 JDBC Thin Client SELECT NVL(MAX(OBJV#), 0) FROM...
51,96451,9649.8475dp2gkkmbmzk   select segcol#, intcol#, colna...
1,7101,7100.325us2xwzatpnwy e::cp:30 begin fnd_dcp.check_process_st...
1,2441,2440.2438243c4tqrkxm   select u.name, o.name, o.names...
1,1351,1350.2187bqp3pu6q24t JDBC Thin Client SELECT THREAD#, LAST_REDO_CHAN...
1,0801,0800.2075r3t7hw0n9a9 e::cp:30 Select S.SERVICE_HANDLE, S.CAR...
1,0501,0500.2085yg51mb2tc1t e::cp:30 Update fnd_concurrent_queues s...


Back to SQL Statistics
Back to Top

SQL ordered by Sharable Memory

Sharable Mem (b)Executions % Total SQL IdSQL ModuleSQL Text
4,016,348590.22dfffkcnqfystw MMON_SLAVE WITH MONITOR_DATA AS (SELECT I...
2,356,90430.134x4xqnxmzfsgb   SELECT * FROM (SELECT CURRENT$...
2,032,23830.118j56gp6bjt7zu   SELECT * FROM (SELECT DISTINCT...
1,788,27851,9640.1075dp2gkkmbmzk   select segcol#, intcol#, colna...
1,771,20040.10akz2hmcq2mppg APXIIMPT INSERT ALL WHEN (ZX_LOCATION_M...


Back to SQL Statistics
Back to Top

SQL ordered by Version Count

Version Count Executions SQL IdSQL ModuleSQL Text
10134x4xqnxmzfsgb   SELECT * FROM (SELECT CURRENT$...
10138j56gp6bjt7zu   SELECT * FROM (SELECT DISTINCT...
372fka2uqsss2gkh SQL Developer /* MV_REFRESH (INS) */ INSERT ...


Back to SQL Statistics
Back to Top

Complete List of SQL Text

SQL IdSQL Text
0w26sk6t6gq98SELECT XMLTYPE(DBMS_REPORT.GET_REPORT_WITH_SUMMARY(:B1 )) FROM DUAL
12aqm6fhn7z7cSELECT csf, ROLLBACK, timestamp, commit_timestamp, operation_code, status, thread#, scn, start_scn, commit_scn, SEQUENCE#, (xidusn||'.'||xidslt||'.'||xidsqn), SEG_TYPE_NAME, info, seg_owner, table_name, SSN, username, sql_redo, row_id, TABLE_SPACE, SESSION_INFO, RS_ID, RBASQN, RBABLK, RBABYTE, TX_NAME, SEG_NAME, (PXIDUSN||'.'||PXIDSLT||'.'||PXIDSQN), AUDIT_SESSIONID, SESSION#, SERIAL#, null as SRC_CON_NAME FROM v$logmnr_contents WHERE (( SEG_OWNER = 'TESTMV' AND TABLE_NAME ='TEST1') OR ( SEG_OWNER = 'ROSHANTEST' AND TABLE_NAME ='QUIESCEMARKER') OR (operation IN ('START', 'COMMIT', 'ROLLBACK'))) AND (OPERATION_CODE != 5 AND OPERATION_CODE != 68 AND OPERATION_CODE != 70 AND OPERATION_CODE != 71 AND OPERATION_CODE != 0) AND (seg_owner NOT IN ('SYS', 'SYSTEM', 'MDSYS') OR seg_owner IS NULL) AND SCN >= :1 AND SCN <= :2
14khktjbkbymwdelete /*+ dynamic_sampling(4) */ from sys.wri$_optstat_histhead_history where savtime < :1 and savtime > timestamp '1900-01-01 00:00:00 -0:0' and rownum <= NVL(:2, rownum)
2mwvn9xwq1tz3select (RUNNING_PROCESSES-MAX_PROCESSES) , MAX_PROCESSES , NVL(SLEEP_SECONDS, 0) , DIAGNOSTIC_LEVEL into :b0, :b1, :b2, :b3:b4 from FND_CONCURRENT_QUEUES where ((APPLICATION_ID=:b5 and CONCURRENT_QUEUE_ID=:b6) and (TARGET_NODE=:b7 or (TARGET_NODE is null and :b7 is null )))
2rthbjm4cgqnvdelete /*+ dynamic_sampling(4) */ from sys.wri$_optstat_ind_history h where savtime < :1 and savtime > timestamp '1900-01-01 00:00:00 -0:0' and rownum <= NVL(:2, rownum)
30unwq8h7p2p6SELECT BO.SPARE2, IND.BO#, IND.TYPE#, BO.NAME, T.COLS, T.INTCOLS, T.KERNELCOLS, T.FLAGS, T.TRIGFLAG, BO.FLAGS, T.TS#, TS.NAME, T.PROPERTY FROM SYS.IND$ IND, SYS.OBJ$ BO, SYS.TAB$ T, SYS.TS$ TS WHERE IND.OBJ# = :B1 AND BO.OBJ# = IND.BO# AND BO.TYPE# = 2 AND T.OBJ# = BO.OBJ# AND TS.TS# = T.TS#
34a34zf4x2ua2 DECLARE p1 NUMBER := :1; p2 NUMBER := :2; p3 NUMBER := :3; P35 NUMBER:= :qs; p4 NUMBER; p5 NUMBER; p6 NUMBER; p7 NUMBER; p8 NUMBER; p9 NUMBER; p10 NUMBER; p11 NUMBER; p12 VARCHAR2(31); p13 VARCHAR2(31); p14 VARCHAR2(31); p15 VARCHAR2(31); p16 NUMBER; p17 NUMBER; p18 NUMBER; p19 NUMBER; p20 NUMBER; p21 NUMBER; p22 NUMBER; p23 NUMBER; p24 VARCHAR2(31); p25 NUMBER; p26 NUMBER; p27 VARCHAR2(30); p28 NUMBER; p29 NUMBER; p30 NUMBER; p31 NUMBER; p32 NUMBER; p33 NUMBER; p34 NUMBER; BEGIN SYS.LOGMNR_GTLO3(p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35); :3 := p3; :4 := p4; :5 := p5; :6 := p6; :7 := p7; :8 := p8; :9 := p9; :10 := p10; :11 := p11; :12 := p12; :13 := p13; :14 := p14; :15 := p15; :16 := p16; :17 := p17; :18 := p18; :19 := p19; :20 := p20; :21 := p21; :22 := p22; :23 := p23; :24 := p24; :25 := p25; :26 := p26; :27 := p27; :28 := p28; :29 := p29; :30 := p30; :31 := p31; :32 := p32; :33 := p33; :34 := p34; END;
37u6rn76yp0jwdelete /*+ dynamic_sampling(4) */ from sys.wri$_optstat_tab_history where savtime < :1 and savtime > timestamp '1900-01-01 00:00:00 -0:0' and rownum <= NVL(:2, rownum)
38243c4tqrkxmselect u.name, o.name, o.namespace, o.type#, decode(bitand(i.property, 1024), 0, 0, 1), o.obj# from ind$ i, obj$ o, user$ u where i.obj#=:1 and o.obj#=i.bo# and o.owner#=u.user#
39c3gyvun83f9BEGIN DBMS_STATS.GATHER_TABLE_STATS( ownname => :ownname , tabname => :tabname , estimate_percent => :estimate_percent , degree => :degree , method_opt => :method_opt , block_sample => FALSE , partname => :partname , granularity => :granularity , stattab => :stattab , statown => :statown, no_invalidate => FALSE , cascade => TRUE ); end;
3zzys0hckamzz SELECT SUM (DISTINCT CASE C.TYPE# WHEN 1 THEN CASE WHEN (BITAND(C.PROPERTY, 128 ) = 128) THEN 2048 ELSE 0 END WHEN 5 THEN 0 WHEN 96 THEN 0 WHEN 2 THEN 0 WHEN 3 THEN 0 WHEN 4 THEN 0 WHEN 100 THEN 0 WHEN 101 THEN 0 WHEN 23 THEN CASE WHEN (BITAND(C.PROPERTY, 128 ) = 128) THEN 2048 ELSE 0 END WHEN 12 THEN 0 WHEN 178 THEN 0 WHEN 179 THEN 0 WHEN 180 THEN 0 WHEN 181 THEN 0 WHEN 231 THEN 0 WHEN 182 THEN 0 WHEN 183 THEN 0 WHEN 112 THEN 0 WHEN 113 THEN 0 WHEN 8 THEN 2 WHEN 24 THEN 4 WHEN 58 THEN 8 WHEN 69 THEN 16 WHEN 121 THEN 32 WHEN 122 THEN 64 WHEN 123 THEN CASE WHEN (BITAND(C.PROPERTY, 32 ) = 32) THEN 128 ELSE (128 + 8192) END WHEN 208 THEN 256 ELSE 1 END) AS UNSUPPORTED_FLAGS, SUM (DISTINCT CASE WHEN BITAND(C.PROPERTY, 17179869184 ) = 17179869184 THEN 4096 ELSE 0 END) AS UNSUPPORTED_FLAGS2, SUM (DISTINCT CASE WHEN C.TYPE# = 8 THEN 1 WHEN C.TYPE# = 24 THEN 2 WHEN C.TYPE# = 58 THEN 4 WHEN C.TYPE# = 112 THEN 8 WHEN C.TYPE# = 113 THEN 16 WHEN BITAND(C.PROPERTY, 2 ) = 2 THEN 32 WHEN BITAND( C.PROPERTY, 8 ) = 8 THEN 64 WHEN BITAND(C.PROPERTY, 32 ) = 32 THEN 128 WHEN BITAND(C.PROPERTY, 32768 ) = 32768 THEN 256 WHEN BITAND(C.PROPERTY, 67108864 ) = 67108864 THEN 512 WHEN BITAND(C.PROPERTY, 1073741824 ) = 1073741824 THEN 1024 WHEN C.INTCOL# <> C.SEGCOL# THEN 2048 WHEN BITAND(C.PROPERTY, 128 ) = 128 THEN 4096 ELSE 0 END) AS FIXUPNEEDEDMASK FROM SYS.COL$ C WHERE C.OBJ# = :B1
4x4xqnxmzfsgbSELECT * FROM (SELECT CURRENT$."TEST_ORDERS_ROWID", CURRENT$."ORDERID", CURRENT$."CUSTOMER_ID", CURRENT$."PRICE" FROM (SELECT "TEST_ORDERS".ROWID "TEST_ORDERS_ROWID", "TEST_ORDERS"."ORDERID" "ORDERID", "TEST_ORDERS"."CUSTOMER_ID" "CUSTOMER_ID", "TEST_ORDERS"."PRICE" "PRICE" FROM "CDCOFMV"."TEST_ORDERS" "TEST_ORDERS" WHERE "TEST_ORDERS"."PRICE"<2000) CURRENT$, (SELECT DISTINCT MLOG$."ORDERID" FROM "CDCOFMV"."MLOG$_TEST_ORDERS" MLOG$ WHERE "SNAPTIME$$" > :1 AND ("DMLTYPE$$" != 'D')) LOG$ WHERE CURRENT$."ORDERID" = LOG$."ORDERID") AS OF SNAPSHOT(:B_SCN)
58w0hdm0pj3xndeclare pdb_name_in VARCHAR2(128) := :1; schema_name_in VARCHAR2(32) := :2; table_name_in VARCHAR2(32) := :3; client_info_out NUMBER := 0; begin sys.dbms_logmnr_internal.resolve_table_inclusion_rule( schema_name_in, table_name_in, pdb_name_in, client_info_out ); :4 := client_info_out; end;
5us2xwzatpnwybegin fnd_dcp.check_process_status_by_handle (:h, :r, :a); end;
65ydd0sp03y1vSELECT PARTTYPE, BITAND(SPARE2, 255) FROM SYS.PARTOBJ$ WHERE OBJ# = :B1
6922x3gymmuw4SELECT * FROM ( SELECT arch_log.first_change#, arch_log.next_change#, arch_log.name, 'ARCHIVE', arch_log.thread#, arch_log.sequence#, arch_log.status FROM V$ARCHIVED_LOG arch_log, V$ARCHIVE_DEST arch_dest where arch_log.STANDBY_DEST = 'NO' AND arch_log.DELETED = 'NO' AND arch_dest.SCHEDULE = 'ACTIVE' AND arch_dest.VALID_NOW = 'YES' AND arch_log.DEST_ID = arch_dest.DEST_ID UNION SELECT log.first_change#, log.next_change#, logfile.MEMBER, 'REDO', log.thread#, log.sequence#, log.status FROM v$log log, v$logfile logfile WHERE log.GROUP# = logfile.GROUP# AND log.status IN ('CURRENT', 'ACTIVE', 'INACTIVE') AND log.ARCHIVED = 'NO') WHERE next_change# >= :1 AND first_change# <= :2 ORDER BY 1
6mncc9a8fbf3fselect to_char(CODE_COMBINATION_ID), nvl(ENABLED_FLAG, 'Y'), nvl(SUMMARY_FLAG, 'N'), to_char(START_DATE_ACTIVE, 'YYYY/MM/DD HH24:MI:SS'), to_char(END_DATE_ACTIVE, 'YYYY/MM/DD HH24:MI:SS'), SEGMENT1, SEGMENT2, SEGMENT3, SEGMENT4, SEGMENT5, SEGMENT6, SEGMENT7, SEGMENT8, SEGMENT9, SEGMENT10, DETAIL_BUDGETING_ALLOWED_FLAG, DETAIL_POSTING_ALLOWED_FLAG, ACCOUNT_TYPE, REFERENCE3, JGZZ_RECON_FLAG from GL_CODE_COMBINATIONS where CHART_OF_ACCOUNTS_ID = :FND_BIND1 and (SEGMENT1 = :FND_BIND2) and (SEGMENT2 = :FND_BIND3) and (SEGMENT3 = :FND_BIND4) and (SEGMENT4 = :FND_BIND5) and (SEGMENT5 = :FND_BIND6) and (SEGMENT6 = :FND_BIND7) and (SEGMENT7 = :FND_BIND8) and (SEGMENT8 = :FND_BIND9) and (SEGMENT9 = :FND_BIND10) and (SEGMENT10 = :FND_BIND11)
75dp2gkkmbmzkselect segcol#, intcol#, colname, type#, length, precision, scale, interval_leading_precision, interval_trailing_precision, property, charsetid, charsetform, col#, XTypeSchemaName, XTypeName, XFQColName, XTopIntCol, XReffedTableObjn, XReffedTableObjv, XColTypeFlags, XOpqTypeType, XOpqTypeFlags, XOpqLobIntcol, XOpqObjIntcol, XXMLIntCol, EaOwner#, EaMKeyId, EaEncAlg, EaIntAlg, EaColKlc, EaKLcLen, EaFlags, LogmnrDerivedFlags from sys.logmnr_gtcs_cat_support where obj# = :objnum order by obj#, intcol#
75r3t7hw0n9a9 Select S.SERVICE_HANDLE, S.CARTRIDGE_HANDLE, Q.CONTEXT_BUFFER, Q.SERVICE_PARAMETERS, S.DEVELOPER_PARAMETERS, '', '', S.ENV_FILE_NAME, SMQ.DIAGNOSTIC_LEVEL, Q.DIAGNOSTIC_LEVEL, DECODE(S.ALLOW_RCG, 'Y', Q.RESOURCE_CONSUMER_GROUP, ''), ALLOW_MULTIPLE_PROC_INSTANCE, ALLOW_MULTIPLE_PROC_NODE, MIGRATE_ON_FAILURE, SERVER_TYPE, ALLOW_SUSPEND, ALLOW_VERIFY, ALLOW_PARAMETER, ALLOW_START, ALLOW_RESTART, PARAMETER_CHANGE_ACTION, nvl(q.TARGET_NODE, :icmnode), A.BASEPATH, NVL(S.CARTRIDGE_APPLICATION_ID, 0), ALLOW_MULTIPLE_PROC_SI From Fnd_Concurrent_Queues Q, fnd_cp_services S, Fnd_Concurrent_Queues smq, fnd_application A Where to_number(q.manager_type) >999 and q.enabled_flag = 'Y' and q.manager_type = S.SERVICE_ID and q.APPLICATION_ID = A.APPLICATION_ID and smq.NODE_NAME = nvl(q.TARGET_NODE, :icmnode2) and smq.manager_type = 6 and smq.enabled_flag = 'Y' and Q.concurrent_queue_id = :mgr_id
7y03axgp9xsjvSELECT COUNT(1) FROM SYSTEM.LOGMNR_GT_TAB_INCLUDE$
80agnrtxdpfcqSELECT O.SPARE2, O.TYPE#, O.OWNER#, U.NAME, O.NAME, O.SUBNAME, O.FLAGS FROM SYS.OBJ$ O, SYS.USER$ U WHERE O.OBJ# = :B1 AND U.USER# = O.OWNER#
80qmukkhzgf6k SELECT i.org_id reject_org_id, i.vendor_id, v.segment1 vendor_num, -- bug 989221 v.vendor_name, -- bug 989221 i.vendor_site_id, i.vendor_site_code, i.invoice_num, i.invoice_id, -- for bug 989221 i.invoice_currency_code, i.invoice_date, i.invoice_amount, -- end of bug 989221 0 line_number, c.description, c.displayed_field FROM ap_interface_rejections r, po_vendors v, -- 989221 ap_invoices_interface i, ap_lookup_codes c WHERE status = 'REJECTED' AND source = : p_source AND ( ( : p_group_id IS NULL ) OR ( group_id = : p_group_id ) ) AND r.parent_id = i.invoice_id AND v.vendor_id (+) = i.vendor_id AND parent_table = 'AP_INVOICES_INTERFACE' AND ( ( : p_org_id IS NULL ) OR ( i.org_id IS NULL ) OR ( i.org_id = : p_org_id ) ) AND ( ( i.org_id IS NOT NULL AND mo_global.check_access ( i.org_id ) = 'Y' ) OR i.org_id IS NULL ) A ND c.lookup_type = 'REJECT CODE' AND r.reject_lookup_code = c.lookup_code GROUP BY i.org_id , i.vendor_id , v.segment1 , v.vendor_name , i.vendor_site_id , i.vendor_site_code , i.invoice_num , i.invoice_id , i.invoice_currency_code , i.invoice_date , i.invoice_amount , c.description , c.displayed_field UNION ALL SELECT i.org_id reject_org_id, i.vendor_id, v.segment1 vendor_num, -- bug 989221 v.vendor_name, -- bug 989221 i.vendor_site_id, i.vendor_site_code, i.invoice_num, i.invoice_id, --for bug 989221 i.invoice_currency_code, i.invoice_date, i.invoice_amount, --end of bug 989221 0 line_number, --c.description, --c.displayed_field c.message_text, c.message_name FROM ap_interface_rejections r, po_vendors v, --989221 ap_invoices_interface i, fnd_new_messages c WHERE status = 'REJECTED' AND source = : p_source AND ( ( : p_group_id IS NULL ) OR ( group_id = : p_group_id ) ) AND r.parent_id = i.invoice_id AND v.vendor_id (+) = i.vendor_id AND parent_table = 'AP_INVOICES_INTERFACE' AND ( ( : p_org_id IS NULL ) OR ( i.org_id IS NULL ) OR ( i.org_id = : p_org_id ) ) AND ( ( i.org_id IS NOT NULL AND mo_global.check_access ( i.org_id ) = 'Y' ) OR i.org_id IS NULL ) AND c.application_id = 235 AND c.message_name = r.reject_lookup_code AND c.Language_code = userenv ( 'LANG' ) GROUP BY i.org_id , i.vendor_id , v.segment1 , v.vendor_name , i.vendor_site_id , i.vendor_site_code , i.invoice_num , i.invoice_id , i.invoice_currency_code , i.invoice_date , i.invoice_amount , c.message_text , c.message_name Union All SELECT i.org_id reject_org_id, i.vendor_id, v.segment1 vendor_num, v.vendor_name, i.vendor_site_id, i.vendor_site_code, i.invoice_num, i.invoice_id, --for bug 989221 i.invoice_currency_code, i.invoice_date, --i.invoice_amount, com mented for bug 1642381 l.amount, -- for bug 1642381 --end for bug 989221 NVL(l.line_number, 999), -- Bug 1078230 c.description, c.displayed_field FROM ap_lookup_codes c , po_vendors v , ap_invoice_lines_interface l , ap_interface_rejections r , ap_invoices_interface i WHERE status = 'REJECTED' AND source = : p_source AND ( ( : p_group_id is NULL ) or ( group_id = : p_group_id ) ) AND i.invoice_id = l.invoice_id AND v.vendor_id (+) = i.vendor_id AND r.parent_id = l.invoice_line_id AND parent_table = 'AP_INVOICE_LINES_INTERFACE' AND ( ( : p_org_id IS NULL ) OR ( i.org_id IS NULL ) OR ( i.org_id = : p_org_id ) ) AND ( ( i.org_id IS NOT NULL AND mo_global.check_access ( i.org_id ) = 'Y' ) OR i.org_id IS NULL ) AND c.lookup_type = 'REJECT CODE' AND r.reject_lookup_code = c.lookup_code Group By i.org_id , i.vendor_id , v.segment1 , v.vendor_name , i.vendor_site_id , i.vendor_site_code , i.invoice_num , i.invoice_id , i .invoice_currency_code , i.invoice_date , l.amount , NVL ( l.line_number , 999 ) , c.description , c.displayed_field Union All SELECT i.org_id reject_org_id, i.vendor_id, v.segment1 vendor_num, v.vendor_name, i.vendor_site_id, i.vendor_site_code, i.invoice_num, i.invoice_id, --for bug 989221 i.invoice_currency_code, i.invoice_date, --i.invoice_amount, commented for bug 1642381 l.amount, -- for bug 1642381 --end for bug 989221 NVL(l.line_number, 999), -- Bug 1078230 c.message_text, --Bug6690410 c.message_name --Bug6690410 FROM fnd_new_messages c --Bug6690410 , po_vendors v , ap_invoice_lines_interface l , ap_interface_rejections r , ap_invoices_interface i WHERE status = 'REJECTED' AND source = : p_source AND ( ( : p_group_id is NULL ) or ( group_id = : p_group_id ) ) AND i.invoice_id = l.invoice_id AND v.vendor_id (+) = i.vendor_id AND r.parent_id = l.invoice_line_id AND parent_table = 'AP_INVOICE_LINES_INTERFACE' AND ( ( : p_org_id IS NULL ) OR ( i.org_id IS NULL ) OR ( i.org_id = : p_org_id ) ) AND ( ( i.org_id IS NOT NULL AND mo_global.check_access ( i.org_id ) = 'Y' ) OR i.org_id IS NULL ) AND c.application_id = 235 AND c.message_name = r.reject_lookup_code AND c.Language_code = userenv ( 'LANG' ) Group By i.org_id , i.vendor_id , v.segment1 , v.vendor_name , i.vendor_site_id , i.vendor_site_code , i.invoice_num , i.invoice_id , i.invoice_currency_code , i.invoice_date , l.amount , NVL ( l.line_number , 999 ) , c.message_text , c.message_name ORDER BY 1 ASC, 7 ASC, 8 ASC, 2 ASC, 3 ASC, 4 ASC, 5 ASC, 6 ASC, 14 ASC, 9 ASC, 10 ASC, 11 ASC , 1 , 6 ASC , 7 ASC , 1 ASC , 2 ASC , 3 ASC , 4 ASC , 5 ASC , 10 ASC , 8 ASC
85yg51mb2tc1tUpdate fnd_concurrent_queues set CONTEXT_BUFFER = :cbuf, SERVICE_PARAMETERS = :para Where CONCURRENT_QUEUE_ID = :qid
87bqp3pu6q24tSELECT THREAD#, LAST_REDO_CHANGE# FROM V$THREAD
891ys174v9xpydeclare loc_objn number := :objnum; loc_objv number; begin select nvl(max(objv#), 0) into loc_objv from ( select o.spare2 as objv#, o.obj# as keyobj# from sys.obj$ o where o.type# = 2 union select o.spare2 as objv#, tp.obj# as keyobj# from sys.obj$ o, sys.tabpart$ tp where o.obj# = tp.bo# union select o.spare2 as objv#, tsp.obj# as keyobj# from sys.obj$ o, sys.tabcompart$ tcp, sys.tabsubpart$ tsp where o.obj# = tcp.bo# and tcp.obj# = tsp.pobj# ) x where x.keyobj# = loc_objn; :objversion := loc_objv; end;
8br2cu3bgk8fymerge into heat_map_stat$ D using (select :1 "OBJ#", :2 "DATAOBJ#", :3 "TS#", sysdate "TRACK_TIME", :3 "SEGMENT_ACCESS" from dual) S on (D.OBJ#=S.OBJ# and trunc(D.TRACK_TIME)=trunc(S.TRACK_TIME)) when matched then update set D.SEGMENT_ACCESS=(D.SEGMENT_ACCESS + S.SEGMENT_ACCESS - bitand(D.SEGMENT_ACCESS, S.SEGMENT_ACCESS)) when not matched then insert (D.OBJ#, D.DATAOBJ#, D.TS#, D.TRACK_TIME, D.SEGMENT_ACCESS) values(S.OBJ#, S.DATAOBJ#, S.TS#, S.TRACK_TIME, S.SEGMENT_ACCESS)
8j56gp6bjt7zuSELECT * FROM (SELECT DISTINCT LOG$."ORDERID" FROM (SELECT MLOG$."ORDERID" FROM "CDCOFMV"."MLOG$_TEST_ORDERS" MLOG$ WHERE "SNAPTIME$$" > :1 AND ("DMLTYPE$$" != 'I')) LOG$ WHERE (LOG$."ORDERID") NOT IN (SELECT MAS_TAB$."ORDERID" FROM "CDCOFMV"."TEST_ORDERS" "MAS_TAB$" WHERE ("MAS_TAB$"."PRICE"<2000) AND LOG$."ORDERID" = MAS_TAB$."ORDERID")) AS OF SNAPSHOT(:B_SCN)
8mdz49zkajhw3 SELECT /*+ OPT_PARAM('_fix_control' '16391176:1') */ GROUP_TYPE, BUCKET_START, BUCKET_END, TM_GROUP_TYPE, TM_BUCKET_START, TM_BUCKET_END, SUM(TM_CPU_FIRST_BUCKET_VALUE) TM_CPU_FIRST_BUCKET_VALUE, SUM(TM_CPU_MIDDLE_BUCKETS_VALUE) TM_CPU_MIDDLE_BUCKETS_VALUE, SUM(TM_CPU_LAST_BUCKET_VALUE) TM_CPU_LAST_BUCKET_VALUE, SUM(TM_DB_FIRST_BUCKET_VALUE) TM_DB_FIRST_BUCKET_VALUE, SUM(TM_DB_MIDDLE_BUCKETS_VALUE) TM_DB_MIDDLE_BUCKETS_VALUE, SUM(TM_DB_LAST_BUCKET_VALUE) TM_DB_LAST_BUCKET_VALUE, SUM(RREQS_FIRST_BUCKET_VALUE) RREQS_FIRST_BUCKET_VALUE, SUM(RREQS_MIDDLE_BUCKETS_VALUE) RREQS_MIDDLE_BUCKETS_VALUE, SUM(RREQS_LAST_BUCKET_VALUE) RREQS_LAST_BUCKET_VALUE, SUM(WREQS_FIRST_BUCKET_VALUE) WREQS_FIRST_BUCKET_VALUE, SUM(WREQS_MIDDLE_BUCKETS_VALUE) WREQS_MIDDLE_BUCKETS_VALUE, SUM(WREQS_LAST_BUCKET_VALUE) WREQS_LAST_BUCKET_VALUE, SUM(RBYTES_FIRST_BUCKET_VALUE) RBYTES_FIRST_BUCKET_VALUE, SUM(RBYTES_MIDDLE_BUCKETS_VALUE) RBYTES_MIDDLE_BUCKETS_VALUE, SUM(RBYTES_LAST_BUCKET_VALUE) RBYTES _LAST_BUCKET_VALUE, SUM(WBYTES_FIRST_BUCKET_VALUE) WBYTES_FIRST_BUCKET_VALUE, SUM(WBYTES_MIDDLE_BUCKETS_VALUE) WBYTES_MIDDLE_BUCKETS_VALUE, SUM(WBYTES_LAST_BUCKET_VALUE) WBYTES_LAST_BUCKET_VALUE, SUM(IBYTES_FIRST_BUCKET_VALUE) IBYTES_FIRST_BUCKET_VALUE, SUM(IBYTES_MIDDLE_BUCKETS_VALUE) IBYTES_MIDDLE_BUCKETS_VALUE, SUM(IBYTES_LAST_BUCKET_VALUE) IBYTES_LAST_BUCKET_VALUE, SUM(CRBYTES_FIRST_BUCKET_VALUE) CRBYTES_FIRST_BUCKET_VALUE, SUM(CRBYTES_MIDDLE_BUCKETS_VALUE) CRBYTES_MIDDLE_BUCKETS_VALUE, SUM(CRBYTES_LAST_BUCKET_VALUE) CRBYTES_LAST_BUCKET_VALUE, SUM(PGA_ALLOC_FIRST_BUCKET_VALUE) PGA_ALLOC_FIRST_BUCKET_VALUE, SUM(PGA_ALLOC_MIDDLE_BUCKETS_VALUE) PGA_ALLOC_MIDDLE_BUCKETS_VALUE, SUM(PGA_ALLOC_LAST_BUCKET_VALUE) PGA_ALLOC_LAST_BUCKET_VALUE, SUM(TMP_ALLOC_FIRST_BUCKET_VALUE) TMP_ALLOC_FIRST_BUCKET_VALUE, SUM(TMP_ALLOC_MIDDLE_BUCKETS_VALUE) TMP_ALLOC_MIDDLE_BUCKETS_VALUE, SUM(TMP_ALLOC_LAST_BUCKET_VALUE) TMP_ALLOC_LAST_BUCKET_VALUE FROM ( SELECT GROUP_TYPE, BUCKET_START, TM _BUCKET_START, TM_BUCKET_END, BUCKET_END, TM_GROUP_TYPE, SUM(GVTF.TM_CPU_FIRST_BUCKET_VALUE) TM_CPU_FIRST_BUCKET_VALUE, SUM(GVTF.TM_CPU_MIDDLE_BUCKETS_VALUE) TM_CPU_MIDDLE_BUCKETS_VALUE, SUM(GVTF.TM_CPU_LAST_BUCKET_VALUE) TM_CPU_LAST_BUCKET_VALUE, SUM(GVTF.TM_DB_FIRST_BUCKET_VALUE) TM_DB_FIRST_BUCKET_VALUE, SUM(GVTF.TM_DB_MIDDLE_BUCKETS_VALUE) TM_DB_MIDDLE_BUCKETS_VALUE, SUM(GVTF.TM_DB_LAST_BUCKET_VALUE) TM_DB_LAST_BUCKET_VALUE, SUM(GVTF.RREQS_FIRST_BUCKET_VALUE) RREQS_FIRST_BUCKET_VALUE, SUM(GVTF.RREQS_MIDDLE_BUCKETS_VALUE) RREQS_MIDDLE_BUCKETS_VALUE, SUM(GVTF.RREQS_LAST_BUCKET_VALUE) RREQS_LAST_BUCKET_VALUE, SUM(GVTF.WREQS_FIRST_BUCKET_VALUE) WREQS_FIRST_BUCKET_VALUE, SUM(GVTF.WREQS_MIDDLE_BUCKETS_VALUE) WREQS_MIDDLE_BUCKETS_VALUE, SUM(GVTF.WREQS_LAST_BUCKET_VALUE) WREQS_LAST_BUCKET_VALUE, SUM(GVTF.RBYTES_FIRST_BUCKET_VALUE) RBYTES_FIRST_BUCKET_VALUE, SUM(GVTF.RBYTES_MIDDLE_BUCKETS_VALUE) RBYTES_MIDDLE_BUCKETS_VALUE, SUM(GVTF.RBYTES_LAST_BUCKET_VALUE) RBYTES_LAST_BU CKET_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_A LLOC_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_REQUE STS * 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_BUCKETS_VALUE, SUM(DELTA_READ_MEM_BYTES * LAST_BUCKET_RATIO) CRBYTES_LAST_BUCKET_VALUE, SUM(PGA_ALLOCATED * LENGTH_SEG * FIRST_BUCKET_R ATIO) PGA_ALLOC_FIRST_BUCKET_VALUE, SUM(PGA_ALLOCATED * LENGTH_SEG * MIDDLE_BUCKETS_RATIO) PGA_ALLOC_MIDDLE_BUCKETS_VALUE, SUM(PGA_ALLOCATED * LENGTH_SEG * LAST_BUCKET_RATIO) PGA_ALLOC_LAST_BUCKET_VALUE, SUM(TEMP_SPACE_ALLOCATED * LENGTH_SEG * FIRST_BUCKET_RATIO) TMP_ALLOC_FIRST_BUCKET_VALUE, SUM(TEMP_SPACE_ALLOCATED * LENGTH_SEG * MIDDLE_BUCKETS_RATIO) TMP_ALLOC_MIDDLE_BUCKETS_VALUE, SUM(TEMP_SPACE_ALLOCATED * LENGTH_SEG * LAST_BUCKET_RATIO) TMP_ALLOC_LAST_BUCKET_VALUE FROM ( SELECT USERENV('INSTANCE') INST_ID, ROW_ID, SID, SAMPLE_TIME, CASE WHEN BUCKET_END IS NULL OR BUCKET_START IS NULL THEN NULL WHEN BUCKET_START = TM_BUCKET_START AND BUCKET_START = BUCKET_END THEN 'CO' WHEN BUCKET_START = TM_BUCKET_START THEN 'CM' WHEN BUCKET_START = BUCKET_END THEN 'SO' ELSE 'SM' END GROUP_TYPE, CASE WHEN TM_BUCKET_START IS NULL OR BUCKET_END IS NULL OR (TM_BUCKET_START = BUCKET_START) THEN NULL WHEN TM_BUCKET_START = BUCKET_END THEN 'O' ELSE 'M' END TM_GROUP_TYPE, START_SEG, BUCKET_S TART, 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 (:B7 - BUCKET_START_OFFSET) / LENGTH_SEG ELSE 1 END FIRST_BUCKET_RATIO, CASE WHEN BUCKET_END >= BUCKET_START + 2 THEN :B7 / 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 (:B7 - TM_BUCKET_START_OFFSET) / TM_LENGTH_SEG ELSE 1 END TM_FIRST_BUCKET_RATIO, CASE WHEN BUCKET_END >= TM_BUCKET_START + 2 THEN :B7 / 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 / :B7 ) BUCKET_START, MOD(START_SEG, :B7 ) BUCKET_START_OFFSET, TM_START_SEG, TRUNC(TM_START_SEG/:B7 ) TM_BUCKET_START, MOD(TM_START_SEG, :B7 ) TM_BUCKET_START_OFFSET, TRUNC(END_SEG/:B7 ) BUCKET_END, MOD(END_SEG, :B7 ) 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 (SELEC T 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) SAMPLE_DATE, SAMPLE_TIME, (SAMPLE_TIME - CAST(:B6 AS TIMESTAMP)) REL_SAMPLE_TIME_INT, TRUNC((:B5 - :B6 ) * 3600 * 24) TIME_INTERVAL, :B6 AS BND_START_INTERVAL , :B5 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 ((SESSION_ID = :B2 AND SESSION_SERIAL# = :B1 AND USERENV('INSTANCE') = :B3 ) OR (:B4 = 'yes' AND QC_INSTANCE_ID = :B3 AND QC_SESSION_ID = :B2 AND QC_SESSION_SERIAL# = :B1 ))) ) ASH1 WHERE SAMPLE_DATE >= BND_START_INTERVAL AND SAMPLE_DATE <= BND_END_INTERVAL + 120/3600/24 ) ) WHERE START_SEG <= TIME_INTERVAL ) WHERE (LENGTH_SEG IS NOT NULL AND LENGTH_SEG > 0) OR (TM_LENGTH_SEG IS NOT NULL AND TM_LENGTH_SEG > 0)) ) GROUP BY INST_ID, GROUP_TYPE, BUCKET_START, BUCKET_END, TM_GROUP_TYPE, TM_BUCKET_START, TM_BUCKET_END))) GVTF WHERE INST_ID >= :B9 AND INST_ID <= :B8 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) )
8qbsngb5uhg26BEGIN wf_local_synch.bulksynchronization_conc(:errbuf, :rc, :A0, :A1, :A2, :A3, :A4); END;
9c8h6vf0drh8b Select R.Rowid From Fnd_Concurrent_Requests R Where R.Hold_Flag = 'N' And R.Status_Code = 'I' And R.Requested_Start_Date <= Sysdate And (R.Node_Name1 is null or (R.Node_Name1 is not null and FND_DCP.target_node_mgr_chk(R.request_id) = 1)) AND EXISTS ( Select Null From Fnd_Concurrent_Programs P Where P.Enabled_Flag = 'Y' And R.Program_Application_Id = P.Application_Id And R.Concurrent_Program_Id = P.Concurrent_Program_Id AND EXISTS ( Select Null From Fnd_Oracle_Userid O Where R.Oracle_Id = O.Oracle_Id AND EXISTS ( Select Null From Fnd_Conflicts_Domain C Where P.Run_Alone_Flag = C.RunAlone_Flag And R.CD_Id = C.CD_Id ) ) And (P.Execution_Method_Code != 'S' OR (R.PROGRAM_APPLICATION_ID, R.CONCURRENT_PROGRAM_ID) IN ((401, 32320), (401, 32321), (702, 31888), (702, 32763), (706, 31915))) AND ((R.PROGRAM_APPLICATION_ID, R.CONCURRENT_PROGRAM_ID) IN ((401, 32237), (401, 32319), (401, 32320), (401, 32321), (702, 31888), (702, 31889), (702, 32763), (706, 31892), (706, 319 15)))) ORDER BY NVL(R.priority, 999999999), R.Priority_Request_ID, R.Request_ID
9jzdzpbhgp29mSELECT INVOICE_ID FROM AP_INVOICES WHERE EXCHANGE_RATE_TYPE != 'User' AND EXCHANGE_RATE_TYPE IS NOT NULL AND INVOICE_CURRENCY_CODE != :b1 AND EXCHANGE_RATE IS NULL
9q66y9hnkv22qSELECT T.COLS, T.INTCOLS, T.KERNELCOLS, T.FLAGS, T.TRIGFLAG, T.TS#, TS.NAME, T.PROPERTY FROM SYS.TAB$ T, TS$ TS WHERE T.OBJ# = :B1 AND TS.TS# = T.TS#
ajhwxrwhytxyvdelete /*+ dynamic_sampling(4) */ from sys.col_usage$ c where ((timestamp < sysdate - 367) or not exists (select /*+ unnest */ 1 from sys.obj$ o where o.obj# = c.obj#)) and c.obj# < :1 and rownum <= nvl(:2, rownum)
akz2hmcq2mppg INSERT ALL WHEN (ZX_LOCATION_MISSING = 'Y') THEN INTO ZX_VALIDATION_ERRORS_GT( APPLICATION_ID, ENTITY_CODE, EVENT_CLASS_CODE, TRX_ID, TRX_LINE_ID, SUMMARY_TAX_LINE_NUMBER, MESSAGE_NAME, MESSAGE_TEXT, TRX_LEVEL_TYPE, INTERFACE_LINE_ENTITY_CODE, INTERFACE_LINE_ID ) VALUES( APPLICATION_ID, ENTITY_CODE, EVENT_CLASS_CODE, TRX_ID, TRX_LINE_ID, NULL, 'ZX_LOCATION_MISSING', :B30 , TRX_LEVEL_TYPE, INTERFACE_LINE_ENTITY_CODE, INTERFACE_LINE_ID ) WHEN (ZX_LINE_CLASS_INVALID = 'Y') THEN INTO ZX_VALIDATION_ERRORS_GT( APPLICATION_ID, ENTITY_CODE, EVENT_CLASS_CODE, TRX_ID, TRX_LINE_ID, SUMMARY_TAX_LINE_NUMBER, MESSAGE_NAME, MESSAGE_TEXT, TRX_LEVEL_TYPE, INTERFACE_LINE_ENTITY_CODE, INTERFACE_LINE_ID ) VALUES( APPLICATION_ID, ENTITY_CODE, EVENT_CLASS_CODE, TRX_ID, TRX_LINE_ID, NULL, 'ZX_LINE_CLASS_INVALID', :B29 , TRX_LEVEL_TYPE, INTERFACE_LINE_ENTITY_CODE, INTERFACE_LINE_ID ) WHEN (ZX_TRX_LINE_TYPE_INVALID = 'Y') THEN INTO ZX_VALIDATION_ERRORS_GT( APPLICATION_ID , ENTITY_CODE, EVENT_CLASS_CODE, TRX_ID, TRX_LINE_ID, SUMMARY_TAX_LINE_NUMBER, MESSAGE_NAME, MESSAGE_TEXT, TRX_LEVEL_TYPE, INTERFACE_LINE_ENTITY_CODE, INTERFACE_LINE_ID ) VALUES( APPLICATION_ID, ENTITY_CODE, EVENT_CLASS_CODE, TRX_ID, TRX_LINE_ID, NULL, 'ZX_TRX_LINE_TYPE_INVALID', :B28 , TRX_LEVEL_TYPE, INTERFACE_LINE_ENTITY_CODE, INTERFACE_LINE_ID ) WHEN (ZX_LINE_AMT_INCL_TAX_INVALID = 'Y') THEN INTO ZX_VALIDATION_ERRORS_GT( APPLICATION_ID, ENTITY_CODE, EVENT_CLASS_CODE, TRX_ID, TRX_LINE_ID, SUMMARY_TAX_LINE_NUMBER, MESSAGE_NAME, MESSAGE_TEXT, TRX_LEVEL_TYPE, INTERFACE_LINE_ENTITY_CODE, INTERFACE_LINE_ID ) VALUES( APPLICATION_ID, ENTITY_CODE, EVENT_CLASS_CODE, TRX_ID, TRX_LINE_ID, NULL, 'ZX_LINE_AMT_INCTAX_INVALID', :B27 , TRX_LEVEL_TYPE, INTERFACE_LINE_ENTITY_CODE, INTERFACE_LINE_ID ) WHEN (PRODUCT_CATEG_NOT_EXISTS = 'Y') THEN INTO ZX_VALIDATION_ERRORS_GT( APPLICATION_ID, ENTITY_CODE, EVENT_CLASS_CODE, TRX_ID, TRX_LINE_ID, SUMMARY_TAX_LINE_ NUMBER, MESSAGE_NAME, MESSAGE_TEXT, TRX_LEVEL_TYPE, INTERFACE_LINE_ENTITY_CODE, INTERFACE_LINE_ID ) VALUES( APPLICATION_ID, ENTITY_CODE, EVENT_CLASS_CODE, TRX_ID, TRX_LINE_ID, NULL, 'ZX_PRODUCT_CATEG_NOT_EXIST', :B26 , TRX_LEVEL_TYPE, INTERFACE_LINE_ENTITY_CODE, INTERFACE_LINE_ID ) WHEN (PRODUCT_CATEG_NOT_EFFECTIVE = 'Y') THEN INTO ZX_VALIDATION_ERRORS_GT( APPLICATION_ID, ENTITY_CODE, EVENT_CLASS_CODE, TRX_ID, TRX_LINE_ID, SUMMARY_TAX_LINE_NUMBER, MESSAGE_NAME, MESSAGE_TEXT, TRX_LEVEL_TYPE, INTERFACE_LINE_ENTITY_CODE, INTERFACE_LINE_ID ) VALUES( APPLICATION_ID, ENTITY_CODE, EVENT_CLASS_CODE, TRX_ID, TRX_LINE_ID, NULL, 'ZX_PRODUCT_CATEG_NOT_EFFECTIVE', :B25 , TRX_LEVEL_TYPE, INTERFACE_LINE_ENTITY_CODE, INTERFACE_LINE_ID ) WHEN (PRODUCT_CATEG_COUNTRY_INCONSIS = 'Y') THEN INTO ZX_VALIDATION_ERRORS_GT( APPLICATION_ID, ENTITY_CODE, EVENT_CLASS_CODE, TRX_ID, TRX_LINE_ID, SUMMARY_TAX_LINE_NUMBER, MESSAGE_NAME, MESSAGE_TEXT, TRX_LEVEL_TYPE, INTERFACE _LINE_ENTITY_CODE, INTERFACE_LINE_ID ) VALUES( APPLICATION_ID, ENTITY_CODE, EVENT_CLASS_CODE, TRX_ID, TRX_LINE_ID, NULL, 'ZX_PRODUCT_CATEG_COUNTRY_INCON', :B24 , TRX_LEVEL_TYPE, INTERFACE_LINE_ENTITY_CODE, INTERFACE_LINE_ID ) WHEN (USER_DEF_FC_CODE_NOT_EXISTS = 'Y') THEN INTO ZX_VALIDATION_ERRORS_GT( APPLICATION_ID, ENTITY_CODE, EVENT_CLASS_CODE, TRX_ID, TRX_LINE_ID, SUMMARY_TAX_LINE_NUMBER, MESSAGE_NAME, MESSAGE_TEXT, TRX_LEVEL_TYPE, INTERFACE_LINE_ENTITY_CODE, INTERFACE_LINE_ID ) VALUES( APPLICATION_ID, ENTITY_CODE, EVENT_CLASS_CODE, TRX_ID, TRX_LINE_ID, NULL, 'ZX_USER_DEF_FC_CODE_NOT_EXIST', :B23 , TRX_LEVEL_TYPE, INTERFACE_LINE_ENTITY_CODE, INTERFACE_LINE_ID ) WHEN (USER_DEF_FC_CODE_NOT_EFFECTIVE = 'Y') THEN INTO ZX_VALIDATION_ERRORS_GT( APPLICATION_ID, ENTITY_CODE, EVENT_CLASS_CODE, TRX_ID, TRX_LINE_ID, SUMMARY_TAX_LINE_NUMBER, MESSAGE_NAME, MESSAGE_TEXT, TRX_LEVEL_TYPE, INTERFACE_LINE_ENTITY_CODE, INTERFACE_LINE_ID ) VALUES( APPLICATION_ID , ENTITY_CODE, EVENT_CLASS_CODE, TRX_ID, TRX_LINE_ID, NULL, 'ZX_USER_DEF_FC_CODE_NOT_EFFECT', :B22 , TRX_LEVEL_TYPE, INTERFACE_LINE_ENTITY_CODE, INTERFACE_LINE_ID ) WHEN (USER_DEF_COUNTRY_INCONSIS = 'Y') THEN INTO ZX_VALIDATION_ERRORS_GT( APPLICATION_ID, ENTITY_CODE, EVENT_CLASS_CODE, TRX_ID, TRX_LINE_ID, SUMMARY_TAX_LINE_NUMBER, MESSAGE_NAME, MESSAGE_TEXT, TRX_LEVEL_TYPE, INTERFACE_LINE_ENTITY_CODE, INTERFACE_LINE_ID ) VALUES( APPLICATION_ID, ENTITY_CODE, EVENT_CLASS_CODE, TRX_ID, TRX_LINE_ID, NULL, 'ZX_USER_DEF_COUNTRY_INCONSIS', :B21 , TRX_LEVEL_TYPE, INTERFACE_LINE_ENTITY_CODE, INTERFACE_LINE_ID ) WHEN (DOC_FC_CODE_NOT_EFFECTIVE = 'Y') THEN INTO ZX_VALIDATION_ERRORS_GT( APPLICATION_ID, ENTITY_CODE, EVENT_CLASS_CODE, TRX_ID, TRX_LINE_ID, SUMMARY_TAX_LINE_NUMBER, MESSAGE_NAME, MESSAGE_TEXT, TRX_LEVEL_TYPE, INTERFACE_LINE_ENTITY_CODE, INTERFACE_LINE_ID ) VALUES( APPLICATION_ID, ENTITY_CODE, EVENT_CLASS_CODE, TRX_ID, TRX_LINE_ID, NULL, 'ZX_ DOC_FC_CODE_NOT_EFFECTIVE', :B20 , TRX_LEVEL_TYPE, INTERFACE_LINE_ENTITY_CODE, INTERFACE_LINE_ID ) WHEN (TRX_BIZ_FC_CODE_NOT_EXISTS = 'Y') THEN INTO ZX_VALIDATION_ERRORS_GT( APPLICATION_ID, ENTITY_CODE, EVENT_CLASS_CODE, TRX_ID, TRX_LINE_ID, SUMMARY_TAX_LINE_NUMBER, MESSAGE_NAME, MESSAGE_TEXT, TRX_LEVEL_TYPE, INTERFACE_LINE_ENTITY_CODE, INTERFACE_LINE_ID ) VALUES( APPLICATION_ID, ENTITY_CODE, EVENT_CLASS_CODE, TRX_ID, TRX_LINE_ID, NULL, 'ZX_TRX_BIZ_FC_CODE_NOT_EXIST', :B19 , TRX_LEVEL_TYPE, INTERFACE_LINE_ENTITY_CODE, INTERFACE_LINE_ID ) WHEN (TRX_BIZ_FC_CODE_NOT_EFFECTIVE = 'Y') THEN INTO ZX_VALIDATION_ERRORS_GT( APPLICATION_ID, ENTITY_CODE, EVENT_CLASS_CODE, TRX_ID, TRX_LINE_ID, SUMMARY_TAX_LINE_NUMBER, MESSAGE_NAME, MESSAGE_TEXT, TRX_LEVEL_TYPE, INTERFACE_LINE_ENTITY_CODE, INTERFACE_LINE_ID ) VALUES( APPLICATION_ID, ENTITY_CODE, EVENT_CLASS_CODE, TRX_ID, TRX_LINE_ID, NULL, 'ZX_TRX_BIZ_FC_CODE_NOT_EFFECT', :B18 , TRX_LEVEL_TYPE, INTERFACE_LI NE_ENTITY_CODE, INTERFACE_LINE_ID ) WHEN (TRX_BIZ_FC_COUNTRY_INCONSIS = 'Y') THEN INTO ZX_VALIDATION_ERRORS_GT( APPLICATION_ID, ENTITY_CODE, EVENT_CLASS_CODE, TRX_ID, TRX_LINE_ID, SUMMARY_TAX_LINE_NUMBER, MESSAGE_NAME, MESSAGE_TEXT, TRX_LEVEL_TYPE, INTERFACE_LINE_ENTITY_CODE, INTERFACE_LINE_ID ) VALUES( APPLICATION_ID, ENTITY_CODE, EVENT_CLASS_CODE, TRX_ID, TRX_LINE_ID, NULL, 'ZX_TRX_BIZ_FC_COUNTRY_INCONSIS', :B17 , TRX_LEVEL_TYPE, INTERFACE_LINE_ENTITY_CODE, INTERFACE_LINE_ID ) WHEN (INTENDED_USE_CODE_NOT_EXISTS = 'Y') THEN INTO ZX_VALIDATION_ERRORS_GT( APPLICATION_ID, ENTITY_CODE, EVENT_CLASS_CODE, TRX_ID, TRX_LINE_ID, SUMMARY_TAX_LINE_NUMBER, MESSAGE_NAME, MESSAGE_TEXT, TRX_LEVEL_TYPE, INTERFACE_LINE_ENTITY_CODE, INTERFACE_LINE_ID ) VALUES( APPLICATION_ID, ENTITY_CODE, EVENT_CLASS_CODE, TRX_ID, TRX_LINE_ID, NULL, 'ZX_INTENDED_USE_CODE_NOT_EXIST', :B16 , TRX_LEVEL_TYPE, INTERFACE_LINE_ENTITY_CODE, INTERFACE_LINE_ID ) WHEN (INTENDED_USE_NOT_EFF ECTIVE = 'Y') THEN INTO ZX_VALIDATION_ERRORS_GT( APPLICATION_ID, ENTITY_CODE, EVENT_CLASS_CODE, TRX_ID, TRX_LINE_ID, SUMMARY_TAX_LINE_NUMBER, MESSAGE_NAME, MESSAGE_TEXT, TRX_LEVEL_TYPE, INTERFACE_LINE_ENTITY_CODE, INTERFACE_LINE_ID ) VALUES( APPLICATION_ID, ENTITY_CODE, EVENT_CLASS_CODE, TRX_ID, TRX_LINE_ID, NULL, 'ZX_INTENDED_USE_NOT_EFFECTIVE', :B15 , TRX_LEVEL_TYPE, INTERFACE_LINE_ENTITY_CODE, INTERFACE_LINE_ID ) WHEN (INTENDED_USE_CONTRY_INCONSIS = 'Y') THEN INTO ZX_VALIDATION_ERRORS_GT( APPLICATION_ID, ENTITY_CODE, EVENT_CLASS_CODE, TRX_ID, TRX_LINE_ID, SUMMARY_TAX_LINE_NUMBER, MESSAGE_NAME, MESSAGE_TEXT, TRX_LEVEL_TYPE, INTERFACE_LINE_ENTITY_CODE, INTERFACE_LINE_ID ) VALUES( APPLICATION_ID, ENTITY_CODE, EVENT_CLASS_CODE, TRX_ID, TRX_LINE_ID, NULL, 'ZX_INTENDED_USE_COUNTRY_INCON', :B14 , TRX_LEVEL_TYPE, INTERFACE_LINE_ENTITY_CODE, INTERFACE_LINE_ID ) WHEN (PRODUCT_TYPE_CODE_NOT_EXISTS = 'Y') THEN INTO ZX_VALIDATION_ERRORS_GT( APPLICATION_ID, ENTITY_CODE, EVENT_CLASS_CODE, TRX_ID, TRX_LINE_ID, SUMMARY_TAX_LINE_NUMBER, MESSAGE_NAME, MESSAGE_TEXT, TRX_LEVEL_TYPE, INTERFACE_LINE_ENTITY_CODE, INTERFACE_LINE_ID ) VALUES( APPLICATION_ID, ENTITY_CODE, EVENT_CLASS_CODE, TRX_ID, TRX_LINE_ID, NULL, 'ZX_PRODUCT_TYPE_CODE_NOT_EXIST', :B13 , TRX_LEVEL_TYPE, INTERFACE_LINE_ENTITY_CODE, INTERFACE_LINE_ID ) WHEN (PRODUCT_TYPE_NOT_EFFECTIVE = 'Y') THEN INTO ZX_VALIDATION_ERRORS_GT( APPLICATION_ID, ENTITY_CODE, EVENT_CLASS_CODE, TRX_ID, TRX_LINE_ID, SUMMARY_TAX_LINE_NUMBER, MESSAGE_NAME, MESSAGE_TEXT, TRX_LEVEL_TYPE, INTERFACE_LINE_ENTITY_CODE, INTERFACE_LINE_ID ) VALUES( APPLICATION_ID, ENTITY_CODE, EVENT_CLASS_CODE, TRX_ID, TRX_LINE_ID, NULL, 'ZX_PRODUCT_TYPE_NOT_EFFECTIVE', :B12 , TRX_LEVEL_TYPE, INTERFACE_LINE_ENTITY_CODE, INTERFACE_LINE_ID ) WHEN (PRODUCT_FC_CODE_NOT_EXISTS = 'Y') THEN INTO ZX_VALIDATION_ERRORS_GT( APPLICATION_ID, ENTITY_CODE, EVENT_CLASS_CODE, TRX_ID, TRX_LINE_ID, SUMMARY_T AX_LINE_NUMBER, MESSAGE_NAME, MESSAGE_TEXT, TRX_LEVEL_TYPE, INTERFACE_LINE_ENTITY_CODE, INTERFACE_LINE_ID ) VALUES( APPLICATION_ID, ENTITY_CODE, EVENT_CLASS_CODE, TRX_ID, TRX_LINE_ID, NULL, 'ZX_PRODUCT_FC_CODE_NOT_EXIST', :B11 , TRX_LEVEL_TYPE, INTERFACE_LINE_ENTITY_CODE, INTERFACE_LINE_ID ) WHEN (ZX_LINE_CTRL_AMT_NOT_NULL = 'Y') THEN INTO ZX_VALIDATION_ERRORS_GT( APPLICATION_ID, ENTITY_CODE, EVENT_CLASS_CODE, TRX_ID, TRX_LINE_ID, SUMMARY_TAX_LINE_NUMBER, MESSAGE_NAME, MESSAGE_TEXT, TRX_LEVEL_TYPE, INTERFACE_LINE_ENTITY_CODE, INTERFACE_LINE_ID ) VALUES( APPLICATION_ID, ENTITY_CODE, EVENT_CLASS_CODE, TRX_ID, TRX_LINE_ID, NULL, 'ZX_LINE_CTRL_AMT_NOT_NULL', :B10 , TRX_LEVEL_TYPE, INTERFACE_LINE_ENTITY_CODE, INTERFACE_LINE_ID ) WHEN (ZX_EXEMPTION_CTRL_FLAG_INVALID = 'Y') THEN INTO ZX_VALIDATION_ERRORS_GT( APPLICATION_ID, ENTITY_CODE, EVENT_CLASS_CODE, TRX_ID, TRX_LINE_ID, SUMMARY_TAX_LINE_NUMBER, MESSAGE_NAME, MESSAGE_TEXT, TRX_LEVEL_TYPE, INTERF ACE_LINE_ENTITY_CODE, INTERFACE_LINE_ID ) VALUES( APPLICATION_ID, ENTITY_CODE, EVENT_CLASS_CODE, TRX_ID, TRX_LINE_ID, NULL, 'ZX_EXEMPTION_CTRL_FLAG_INVALID', :B9 , TRX_LEVEL_TYPE, INTERFACE_LINE_ENTITY_CODE, INTERFACE_LINE_ID ) WHEN (ZX_PRODUCT_TYPE_INVALID = 'Y') THEN INTO ZX_VALIDATION_ERRORS_GT( APPLICATION_ID, ENTITY_CODE, EVENT_CLASS_CODE, TRX_ID, TRX_LINE_ID, SUMMARY_TAX_LINE_NUMBER, MESSAGE_NAME, MESSAGE_TEXT, TRX_LEVEL_TYPE, INTERFACE_LINE_ENTITY_CODE, INTERFACE_LINE_ID ) VALUES( APPLICATION_ID, ENTITY_CODE, EVENT_CLASS_CODE, TRX_ID, TRX_LINE_ID, NULL, 'ZX_PRODUCT_TYPE_INVALID', :B8 , TRX_LEVEL_TYPE, INTERFACE_LINE_ENTITY_CODE, INTERFACE_LINE_ID ) WHEN (ZX_INVALID_TAX_LINES = 'Y') THEN INTO ZX_VALIDATION_ERRORS_GT( APPLICATION_ID, ENTITY_CODE, EVENT_CLASS_CODE, TRX_ID, TRX_LINE_ID, SUMMARY_TAX_LINE_NUMBER, MESSAGE_NAME, MESSAGE_TEXT, TRX_LEVEL_TYPE, INTERFACE_LINE_ENTITY_CODE, INTERFACE_LINE_ID ) VALUES( APPLICATION_ID, ENTITY_CODE, EV ENT_CLASS_CODE, TRX_ID, TRX_LINE_ID, NULL, 'ZX_INVALID_TAX_LINES', :B7 , TRX_LEVEL_TYPE, INTERFACE_LINE_ENTITY_CODE, INTERFACE_LINE_ID ) WHEN (ZX_INVALID_LINE_TAX_AMT = 'Y') THEN INTO ZX_VALIDATION_ERRORS_GT( APPLICATION_ID, ENTITY_CODE, EVENT_CLASS_CODE, TRX_ID, TRX_LINE_ID, SUMMARY_TAX_LINE_NUMBER, MESSAGE_NAME, MESSAGE_TEXT, TRX_LEVEL_TYPE, INTERFACE_LINE_ENTITY_CODE, INTERFACE_LINE_ID ) VALUES( APPLICATION_ID, ENTITY_CODE, EVENT_CLASS_CODE, TRX_ID, TRX_LINE_ID, NULL, 'ZX_INVALID_LINE_TAX_AMT', :B6 , TRX_LEVEL_TYPE, INTERFACE_LINE_ENTITY_CODE, INTERFACE_LINE_ID ) WHEN (ZX_INVALID_TAX_FOR_ALLOC_FLG = 'Y') THEN INTO ZX_VALIDATION_ERRORS_GT( APPLICATION_ID, ENTITY_CODE, EVENT_CLASS_CODE, TRX_ID, TRX_LINE_ID, SUMMARY_TAX_LINE_NUMBER, MESSAGE_NAME, MESSAGE_TEXT, TRX_LEVEL_TYPE, INTERFACE_LINE_ENTITY_CODE, INTERFACE_LINE_ID ) VALUES( APPLICATION_ID, ENTITY_CODE, EVENT_CLASS_CODE, TRX_ID, TRX_LINE_ID, NULL, 'ZX_INVALID_TAX_FOR_ALLOC_FLG', :B5 , TRX_LEVEL_TYPE, INTERFACE_LINE_ENTITY_CODE, INTERFACE_LINE_ID ) WHEN (ZX_INVALID_TAX_ONLY_TAX_LINES = 'Y') THEN INTO ZX_VALIDATION_ERRORS_GT( APPLICATION_ID, ENTITY_CODE, EVENT_CLASS_CODE, TRX_ID, TRX_LINE_ID, SUMMARY_TAX_LINE_NUMBER, MESSAGE_NAME, MESSAGE_TEXT, TRX_LEVEL_TYPE, INTERFACE_LINE_ENTITY_CODE, INTERFACE_LINE_ID ) VALUES( APPLICATION_ID, ENTITY_CODE, EVENT_CLASS_CODE, TRX_ID, TRX_LINE_ID, NULL, 'ZX_INVALID_TAX_ONLY_TAX_LINES', :B4 , TRX_LEVEL_TYPE, INTERFACE_LINE_ENTITY_CODE, INTERFACE_LINE_ID ) WHEN (TAX_RATE_NOT_EXISTS = 'Y') THEN INTO ZX_VALIDATION_ERRORS_GT( APPLICATION_ID, ENTITY_CODE, EVENT_CLASS_CODE, TRX_ID, TRX_LINE_ID, SUMMARY_TAX_LINE_NUMBER, MESSAGE_NAME, MESSAGE_TEXT, TRX_LEVEL_TYPE, INTERFACE_LINE_ENTITY_CODE, INTERFACE_LINE_ID ) VALUES( APPLICATION_ID, ENTITY_CODE, EVENT_CLASS_CODE, TRX_ID, TRX_LINE_ID, NULL, 'ZX_TAX_RATE_NOT_EXIST', :B3 , TRX_LEVEL_TYPE, INTERFACE_LINE_ENTITY_CODE, INTERFACE_LINE_ID ) WHEN (NVL(TAX_R ATE_NOT_EXISTS, 'N') <> 'Y' AND TAX_RATE_CODE_NOT_EFFECTIVE = 'Y') THEN INTO ZX_VALIDATION_ERRORS_GT( APPLICATION_ID, ENTITY_CODE, EVENT_CLASS_CODE, TRX_ID, TRX_LINE_ID, SUMMARY_TAX_LINE_NUMBER, MESSAGE_NAME, MESSAGE_TEXT, TRX_LEVEL_TYPE, INTERFACE_LINE_ENTITY_CODE, INTERFACE_LINE_ID ) VALUES( APPLICATION_ID, ENTITY_CODE, EVENT_CLASS_CODE, TRX_ID, TRX_LINE_ID, NULL, 'ZX_TAX_RATE_NOT_EFFECTIVE', :B2 , TRX_LEVEL_TYPE, INTERFACE_LINE_ENTITY_CODE, INTERFACE_LINE_ID ) WHEN (NVL(TAX_RATE_NOT_EXISTS, 'N') <> 'Y' AND TAX_RATE_CODE_NOT_ACTIVE = 'Y') THEN INTO ZX_VALIDATION_ERRORS_GT( APPLICATION_ID, ENTITY_CODE, EVENT_CLASS_CODE, TRX_ID, TRX_LINE_ID, SUMMARY_TAX_LINE_NUMBER, MESSAGE_NAME, MESSAGE_TEXT, TRX_LEVEL_TYPE, INTERFACE_LINE_ENTITY_CODE, INTERFACE_LINE_ID ) VALUES( APPLICATION_ID, ENTITY_CODE, EVENT_CLASS_CODE, TRX_ID, TRX_LINE_ID, NULL, 'ZX_TAX_RATE_NOT_ACTIVE', :B1 , TRX_LEVEL_TYPE, INTERFACE_LINE_ENTITY_CODE, INTERFACE_LINE_ID ) SEL ECT HEADER.APPLICATION_ID, HEADER.ENTITY_CODE, HEADER.EVENT_CLASS_CODE, HEADER.TRX_ID, LINES_GT.TRX_LINE_ID, LINES_GT.TRX_LINE_ID INTERFACE_LINE_ID , LINES_GT.ENTITY_CODE INTERFACE_LINE_ENTITY_CODE, LINES_GT.TRX_LEVEL_TYPE, CASE WHEN (LINES_GT.SHIP_FROM_LOCATION_ID IS NOT NULL OR LINES_GT.SHIP_TO_LOCATION_ID IS NOT NULL OR LINES_GT.POA_LOCATION_ID IS NOT NULL OR LINES_GT.POO_LOCATION_ID IS NOT NULL OR LINES_GT.PAYING_LOCATION_ID IS NOT NULL OR LINES_GT.OWN_HQ_LOCATION_ID IS NOT NULL OR LINES_GT.TRADING_HQ_LOCATION_ID IS NOT NULL OR LINES_GT.POC_LOCATION_ID IS NOT NULL OR LINES_GT.POI_LOCATION_ID IS NOT NULL OR LINES_GT.POD_LOCATION_ID IS NOT NULL OR LINES_GT.BILL_TO_LOCATION_ID IS NOT NULL OR LINES_GT.BILL_FROM_LOCATION_ID IS NOT NULL OR LINES_GT.TITLE_TRANSFER_LOCATION_ID IS NOT NULL) THEN NULL ELSE 'Y' END ZX_LOCATION_MISSING, NVL2(LINES_GT.LINE_CLASS, CASE WHEN (NOT EXISTS (SELECT 1 FROM FND_LOOKUPS LKP WHERE LINES_GT.LINE_CLASS = LKP.LOOKUP_CODE AND LKP.LOOKUP_TYPE = 'ZX_ LINE_CLASS')) THEN 'Y' ELSE NULL END, NULL ) ZX_LINE_CLASS_INVALID, CASE WHEN (LINES_GT.TRX_LINE_TYPE NOT IN('ITEM', 'FREIGHT', 'MISC', 'MISCELLANEOUS')) THEN 'Y' ELSE NULL END ZX_TRX_LINE_TYPE_INVALID, CASE WHEN (LINES_GT.LINE_AMT_INCLUDES_TAX_FLAG IS NULL OR LINES_GT.LINE_AMT_INCLUDES_TAX_FLAG NOT IN ('A', 'N', 'S')) THEN 'Y' ELSE NULL END ZX_LINE_AMT_INCL_TAX_INVALID, NVL2(LINES_GT.PRODUCT_CATEGORY, CASE WHEN (NOT EXISTS (SELECT 1 FROM ZX_FC_PRODUCT_CATEGORIES_V WHERE CLASSIFICATION_CODE = LINES_GT.PRODUCT_CATEGORY AND (COUNTRY_CODE IS NULL OR COUNTRY_CODE = HEADER.DEFAULT_TAXATION_COUNTRY))) THEN 'Y' ELSE NULL END, NULL ) PRODUCT_CATEG_NOT_EXISTS, CASE WHEN LINES_GT.PRODUCT_CATEGORY IS NOT NULL AND (EXISTS (SELECT 1 FROM ZX_FC_PRODUCT_CATEGORIES_V WHERE CLASSIFICATION_CODE = LINES_GT.PRODUCT_CATEGORY AND (COUNTRY_CODE IS NULL OR COUNTRY_CODE = HEADER.DEFAULT_TAXATION_COUNTRY))) THEN CASE WHEN (NOT EXISTS (SELECT 1 FROM ZX_FC_PRODUCT_CATEGORIES_V WHERE CLASSIFICATION_CODE = LINES_GT.PRODUCT_CATEGORY AND (COUNTRY_CODE IS NULL OR COUNTRY_CODE = HEADER.DEFAULT_TAXATION_COUNTRY) AND NVL(LINES_GT.TRX_LINE_DATE, HEADER.TRX_DATE) BETWEEN EFFECTIVE_FROM AND NVL(EFFECTIVE_TO, NVL(LINES_GT.TRX_LINE_DATE, HEADER.TRX_DATE)))) THEN 'Y' ELSE NULL END ELSE NULL END PRODUCT_CATEG_NOT_EFFECTIVE, CASE WHEN LINES_GT.PRODUCT_CATEGORY IS NOT NULL AND (EXISTS (SELECT 1 FROM ZX_FC_PRODUCT_CATEGORIES_V WHERE CLASSIFICATION_CODE = LINES_GT.PRODUCT_CATEGORY AND COUNTRY_CODE IS NOT NULL)) THEN CASE WHEN (NOT EXISTS (SELECT 1 FROM ZX_FC_PRODUCT_CATEGORIES_V WHERE CLASSIFICATION_CODE = LINES_GT.PRODUCT_CATEGORY AND COUNTRY_CODE IS NOT NULL AND COUNTRY_CODE = HEADER.DEFAULT_TAXATION_COUNTRY)) THEN 'Y' ELSE NULL END ELSE NULL END PRODUCT_CATEG_COUNTRY_INCONSIS, NVL2(LINES_GT.USER_DEFINED_FISC_CLASS, CASE WHEN (NOT EXISTS (SELECT 1 FROM ZX_FC_USER_DEFINED_V WHERE CLASSIFICATION_CODE = LINES_GT.USER_DEFINED_FISC_CLASS AND (COUNTRY_CODE IS NULL OR COUNTRY_CODE = HEADER.DEFAULT_TAXAT ION_COUNTRY))) THEN 'Y' ELSE NULL END, NULL) USER_DEF_FC_CODE_NOT_EXISTS, CASE WHEN LINES_GT.USER_DEFINED_FISC_CLASS IS NOT NULL AND (EXISTS (SELECT 1 FROM ZX_FC_USER_DEFINED_V WHERE CLASSIFICATION_CODE = LINES_GT.USER_DEFINED_FISC_CLASS AND (COUNTRY_CODE IS NULL OR COUNTRY_CODE = HEADER.DEFAULT_TAXATION_COUNTRY))) THEN CASE WHEN (NOT EXISTS (SELECT 1 FROM ZX_FC_USER_DEFINED_V WHERE CLASSIFICATION_CODE = LINES_GT.USER_DEFINED_FISC_CLASS AND (COUNTRY_CODE IS NULL OR COUNTRY_CODE = HEADER.DEFAULT_TAXATION_COUNTRY) AND NVL(LINES_GT.TRX_LINE_DATE, HEADER.TRX_DATE) BETWEEN EFFECTIVE_FROM AND NVL(EFFECTIVE_TO, NVL(LINES_GT.TRX_LINE_DATE, HEADER.TRX_DATE)))) THEN 'Y' ELSE NULL END ELSE NULL END USER_DEF_FC_CODE_NOT_EFFECTIVE, CASE WHEN LINES_GT.USER_DEFINED_FISC_CLASS IS NOT NULL AND (EXISTS (SELECT 1 FROM ZX_FC_USER_DEFINED_V WHERE CLASSIFICATION_CODE = LINES_GT.USER_DEFINED_FISC_CLASS AND COUNTRY_CODE IS NOT NULL)) THEN CASE WHEN (NOT EXISTS (SELECT 1 FROM ZX_FC_USER_DEFINED_V WHERE C LASSIFICATION_CODE = LINES_GT.USER_DEFINED_FISC_CLASS AND COUNTRY_CODE IS NOT NULL AND COUNTRY_CODE = HEADER.DEFAULT_TAXATION_COUNTRY)) THEN 'Y' ELSE NULL END ELSE NULL END USER_DEF_COUNTRY_INCONSIS, CASE WHEN HEADER.DOCUMENT_SUB_TYPE IS NOT NULL AND FC_DOC.CLASSIFICATION_CODE IS NOT NULL THEN CASE WHEN ( LINES_GT.TAX_DATE NOT BETWEEN FC_DOC.EFFECTIVE_FROM AND NVL(FC_DOC.EFFECTIVE_TO, LINES_GT.TAX_DATE) AND (NOT EXISTS (SELECT 1 FROM ZX_TRANSACTION_LINES_GT WHERE APPLICATION_ID = LINES_GT.APPLICATION_ID AND ENTITY_CODE = LINES_GT.ENTITY_CODE AND EVENT_CLASS_CODE = LINES_GT.EVENT_CLASS_CODE AND TRX_ID = LINES_GT.TRX_ID AND TRX_LINE_ID < LINES_GT.TRX_LINE_ID AND TRX_LEVEL_TYPE = LINES_GT.TRX_LEVEL_TYPE))) THEN 'Y' ELSE NULL END ELSE NULL END DOC_FC_CODE_NOT_EFFECTIVE, NVL2(LINES_GT.TRX_BUSINESS_CATEGORY, CASE WHEN (NOT EXISTS (SELECT 1 FROM ZX_FC_BUSINESS_CATEGORIES_V WHERE CLASSIFICATION_CODE = LINES_GT.TRX_BUSINESS_CATEGORY AND (APPLICATION_ID IS NULL OR (APPLICATION_ID = LINES_ GT.APPLICATION_ID AND (ENTITY_CODE IS NULL OR (ENTITY_CODE = LINES_GT.ENTITY_CODE AND (EVENT_CLASS_CODE IS NULL OR EVENT_CLASS_CODE = LINES_GT.EVENT_CLASS_CODE))))) AND (COUNTRY_CODE IS NULL OR COUNTRY_CODE = HEADER.DEFAULT_TAXATION_COUNTRY))) THEN 'Y' ELSE NULL END, NULL ) TRX_BIZ_FC_CODE_NOT_EXISTS, CASE WHEN LINES_GT.TRX_BUSINESS_CATEGORY IS NOT NULL AND (EXISTS (SELECT 1 FROM ZX_FC_BUSINESS_CATEGORIES_V WHERE CLASSIFICATION_CODE = LINES_GT.TRX_BUSINESS_CATEGORY AND (APPLICATION_ID IS NULL OR (APPLICATION_ID = LINES_GT.APPLICATION_ID AND (ENTITY_CODE IS NULL OR (ENTITY_CODE = LINES_GT.ENTITY_CODE AND (EVENT_CLASS_CODE IS NULL OR EVENT_CLASS_CODE = LINES_GT.EVENT_CLASS_CODE))))) AND (COUNTRY_CODE IS NOT NULL OR COUNTRY_CODE = HEADER.DEFAULT_TAXATION_COUNTRY))) THEN CASE WHEN (NOT EXISTS (SELECT 1 FROM ZX_FC_BUSINESS_CATEGORIES_V WHERE CLASSIFICATION_CODE = LINES_GT.TRX_BUSINESS_CATEGORY AND (APPLICATION_ID IS NULL OR (APPLICATION_ID = LINES_GT.APPLICATION_ID AND (ENTITY_CODE IS NUL L OR (ENTITY_CODE = LINES_GT.ENTITY_CODE AND (EVENT_CLASS_CODE IS NULL OR EVENT_CLASS_CODE = LINES_GT.EVENT_CLASS_CODE))))) AND (COUNTRY_CODE IS NOT NULL OR COUNTRY_CODE = HEADER.DEFAULT_TAXATION_COUNTRY) AND NVL(LINES_GT.TRX_LINE_DATE, HEADER.TRX_DATE) BETWEEN EFFECTIVE_FROM AND NVL(EFFECTIVE_TO, NVL(LINES_GT.TRX_LINE_DATE, HEADER.TRX_DATE)))) THEN 'Y' ELSE NULL END ELSE NULL END TRX_BIZ_FC_CODE_NOT_EFFECTIVE, CASE WHEN LINES_GT.TRX_BUSINESS_CATEGORY IS NOT NULL AND (EXISTS (SELECT 1 FROM ZX_FC_BUSINESS_CATEGORIES_V WHERE CLASSIFICATION_CODE = LINES_GT.TRX_BUSINESS_CATEGORY AND (APPLICATION_ID IS NULL OR (APPLICATION_ID = LINES_GT.APPLICATION_ID AND (ENTITY_CODE IS NULL OR (ENTITY_CODE = LINES_GT.ENTITY_CODE AND (EVENT_CLASS_CODE IS NULL OR EVENT_CLASS_CODE = LINES_GT.EVENT_CLASS_CODE))))) AND COUNTRY_CODE IS NOT NULL)) THEN CASE WHEN (NOT EXISTS (SELECT 1 FROM ZX_FC_BUSINESS_CATEGORIES_V WHERE CLASSIFICATION_CODE = LINES_GT.TRX_BUSINESS_CATEGORY AND (APPLICATION_ID IS NULL OR (AP PLICATION_ID = LINES_GT.APPLICATION_ID AND (ENTITY_CODE IS NULL OR (ENTITY_CODE = LINES_GT.ENTITY_CODE AND (EVENT_CLASS_CODE IS NULL OR EVENT_CLASS_CODE = LINES_GT.EVENT_CLASS_CODE))))) AND COUNTRY_CODE IS NOT NULL AND COUNTRY_CODE = HEADER.DEFAULT_TAXATION_COUNTRY)) THEN 'Y' ELSE NULL END ELSE NULL END TRX_BIZ_FC_COUNTRY_INCONSIS, NVL2(LINES_GT.LINE_INTENDED_USE, CASE WHEN (NOT EXISTS (SELECT 1 FROM ZX_FC_INTENDED_USE_V WHERE CLASSIFICATION_CODE = LINES_GT.LINE_INTENDED_USE AND (COUNTRY_CODE IS NULL OR COUNTRY_CODE = HEADER.DEFAULT_TAXATION_COUNTRY))) THEN 'Y' ELSE NULL END, NULL) INTENDED_USE_CODE_NOT_EXISTS, CASE WHEN LINES_GT.LINE_INTENDED_USE IS NOT NULL AND (EXISTS (SELECT 1 FROM ZX_FC_INTENDED_USE_V WHERE CLASSIFICATION_CODE = LINES_GT.LINE_INTENDED_USE AND (COUNTRY_CODE IS NULL OR COUNTRY_CODE = HEADER.DEFAULT_TAXATION_COUNTRY))) THEN CASE WHEN (NOT EXISTS (SELECT 1 FROM ZX_FC_INTENDED_USE_V WHERE CLASSIFICATION_CODE = LINES_GT.LINE_INTENDED_USE AND (COUNTRY_CODE IS NULL OR COUNTRY_CODE = HEADER.DEFAULT_TAXATION_COUNTRY) AND NVL(LINES_GT.TRX_LINE_DATE, HEADER.TRX_DATE) BETWEEN EFFECTIVE_FROM AND NVL(EFFECTIVE_TO, NVL(LINES_GT.TRX_LINE_DATE, HEADER.TRX_DATE)))) THEN 'Y' ELSE NULL END ELSE NULL END INTENDED_USE_NOT_EFFECTIVE, CASE WHEN LINES_GT.LINE_INTENDED_USE IS NOT NULL AND (EXISTS (SELECT 1 FROM ZX_FC_INTENDED_USE_V WHERE CLASSIFICATION_CODE = LINES_GT.LINE_INTENDED_USE AND COUNTRY_CODE IS NOT NULL)) THEN CASE WHEN (NOT EXISTS (SELECT 1 FROM ZX_FC_INTENDED_USE_V WHERE CLASSIFICATION_CODE = LINES_GT.LINE_INTENDED_USE AND COUNTRY_CODE IS NOT NULL AND COUNTRY_CODE = HEADER.DEFAULT_TAXATION_COUNTRY)) THEN 'Y' ELSE NULL END ELSE NULL END INTENDED_USE_CONTRY_INCONSIS, NVL2(LINES_GT.PRODUCT_TYPE, NVL(FND.LOOKUP_CODE, 'Y'), NULL ) PRODUCT_TYPE_CODE_NOT_EXISTS, CASE WHEN (FND.LOOKUP_CODE IS NOT NULL) THEN CASE WHEN ( LINES_GT.TAX_DATE BETWEEN FND.START_DATE_ACTIVE AND NVL(FND.END_DATE_ACTIVE, LINES_GT.TAX_DATE ) ) THEN NULL ELSE 'Y' END ELSE NULL END PRODUCT_TYPE_NOT_EFFECTIVE, NVL2(LINES_GT.PRODUCT_FISC_CLASSIFICATION, CASE WHEN (NOT EXISTS (SELECT 1 FROM ZX_FC_PRODUCT_FISCAL_V WHERE CLASSIFICATION_CODE = LINES_GT.PRODUCT_FISC_CLASSIFICATION AND (COUNTRY_CODE IS NULL OR COUNTRY_CODE = HEADER.DEFAULT_TAXATION_COUNTRY))) THEN 'Y' ELSE NULL END, NULL) PRODUCT_FC_CODE_NOT_EXISTS, CASE WHEN (LINES_GT.LINE_LEVEL_ACTION <> 'CREATE' AND LINES_GT.CTRL_TOTAL_LINE_TX_AMT IS NOT NULL ) THEN 'Y' ELSE NULL END ZX_LINE_CTRL_AMT_NOT_NULL, CASE WHEN (LINES_GT.EXEMPTION_CONTROL_FLAG IS NOT NULL AND LINES_GT.EXEMPTION_CONTROL_FLAG NOT IN ('R', 'S', 'E')) THEN 'Y' ELSE NULL END ZX_EXEMPTION_CTRL_FLAG_INVALID, CASE WHEN (LINES_GT.PRODUCT_TYPE IS NOT NULL AND LINES_GT.PRODUCT_TYPE NOT IN ('GOODS', 'SERVICES')) THEN 'Y' ELSE NULL END ZX_PRODUCT_TYPE_INVALID, CASE WHEN (LINES_GT.CTRL_HDR_TX_APPL_FLAG = 'Y' AND LINES_GT.LINE_LEVEL_ACTION <> 'LINE_INFO_TAX_ONLY' AND EXISTS (SELECT 1 FROM ZX_IMPORT_TAX_LINES_GT IMPTAXES_GT WHERE APPLICATI ON_ID = LINES_GT.APPLICATION_ID AND ENTITY_CODE = LINES_GT.ENTITY_CODE AND EVENT_CLASS_CODE = LINES_GT.EVENT_CLASS_CODE AND TRX_ID = LINES_GT.TRX_ID AND TRX_LINE_ID = LINES_GT.TRX_LINE_ID) ) THEN 'Y' ELSE NULL END ZX_INVALID_TAX_LINES, CASE WHEN (LINES_GT.CTRL_TOTAL_LINE_TX_AMT IS NOT NULL AND EXISTS (SELECT 1 FROM ZX_TRX_TAX_LINK_GT WHERE APPLICATION_ID = LINES_GT.APPLICATION_ID AND ENTITY_CODE = LINES_GT.ENTITY_CODE AND EVENT_CLASS_CODE = LINES_GT.EVENT_CLASS_CODE AND TRX_ID = LINES_GT.TRX_ID AND TRX_LINE_ID = LINES_GT.TRX_LINE_ID AND TRX_LEVEL_TYPE = LINES_GT.TRX_LEVEL_TYPE) ) THEN 'Y' ELSE NULL END ZX_INVALID_LINE_TAX_AMT, CASE WHEN (LINES_GT.CTRL_TOTAL_LINE_TX_AMT IS NOT NULL AND EXISTS(SELECT 1 FROM ZX_IMPORT_TAX_LINES_GT IMPTAXES_GT WHERE APPLICATION_ID = LINES_GT.APPLICATION_ID AND ENTITY_CODE = LINES_GT.ENTITY_CODE AND EVENT_CLASS_CODE = LINES_GT.EVENT_CLASS_CODE AND TRX_ID = LINES_GT.TRX_ID AND TRX_LINE_ID IS NULL AND IMPTAXES_GT.TAX_LINE_ALLOCATION_FLAG = 'N') ) THEN 'Y' E LSE NULL END ZX_INVALID_TAX_FOR_ALLOC_FLG, CASE WHEN (LINES_GT.LINE_LEVEL_ACTION = 'LINE_INFO_TAX_ONLY' AND EXISTS (SELECT 1 FROM ZX_IMPORT_TAX_LINES_GT IMPTAXES_GT WHERE APPLICATION_ID = LINES_GT.APPLICATION_ID AND ENTITY_CODE = LINES_GT.ENTITY_CODE AND EVENT_CLASS_CODE = LINES_GT.EVENT_CLASS_CODE AND TRX_ID = LINES_GT.TRX_ID AND TRX_LINE_ID = LINES_GT.TRX_LINE_ID AND IMPTAXES_GT.TAX_LINE_ALLOCATION_FLAG <> 'Y') ) THEN 'Y' ELSE NULL END ZX_INVALID_TAX_ONLY_TAX_LINES, CASE WHEN LINES_GT.OUTPUT_TAX_CLASSIFICATION_CODE IS NOT NULL AND NOT EXISTS (SELECT 1 FROM ZX_OUTPUT_CLASSIFICATIONS_V WHERE LOOKUP_CODE = LINES_GT.OUTPUT_TAX_CLASSIFICATION_CODE AND ORG_ID IN (HEADER.INTERNAL_ORGANIZATION_ID, -99)) THEN 'Y' ELSE CASE WHEN LINES_GT.INPUT_TAX_CLASSIFICATION_CODE IS NOT NULL AND NOT EXISTS (SELECT 1 FROM ZX_INPUT_CLASSIFICATIONS_V WHERE LOOKUP_CODE = LINES_GT.INPUT_TAX_CLASSIFICATION_CODE AND ORG_ID IN (HEADER.INTERNAL_ORGANIZATION_ID, -99)) THEN 'Y' ELSE NULL END END TAX_RATE_NO T_EXISTS, CASE WHEN LINES_GT.OUTPUT_TAX_CLASSIFICATION_CODE IS NOT NULL AND NOT EXISTS (SELECT 1 FROM ZX_OUTPUT_CLASSIFICATIONS_V WHERE LOOKUP_CODE = LINES_GT.OUTPUT_TAX_CLASSIFICATION_CODE AND ORG_ID IN (HEADER.INTERNAL_ORGANIZATION_ID, -99) AND LINES_GT.TAX_DATE BETWEEN START_DATE_ACTIVE AND NVL(END_DATE_ACTIVE, LINES_GT.TAX_DATE)) THEN 'Y' ELSE CASE WHEN LINES_GT.INPUT_TAX_CLASSIFICATION_CODE IS NOT NULL AND NOT EXISTS (SELECT 1 FROM ZX_INPUT_CLASSIFICATIONS_V WHERE LOOKUP_CODE = LINES_GT.INPUT_TAX_CLASSIFICATION_CODE AND ORG_ID IN (HEADER.INTERNAL_ORGANIZATION_ID, -99) AND LINES_GT.TAX_DATE BETWEEN START_DATE_ACTIVE AND NVL(END_DATE_ACTIVE, LINES_GT.TAX_DATE)) THEN 'Y' ELSE NULL END END TAX_RATE_CODE_NOT_EFFECTIVE, CASE WHEN LINES_GT.OUTPUT_TAX_CLASSIFICATION_CODE IS NOT NULL AND NOT EXISTS (SELECT 1 FROM ZX_OUTPUT_CLASSIFICATIONS_V WHERE LOOKUP_CODE = LINES_GT.OUTPUT_TAX_CLASSIFICATION_CODE AND ORG_ID IN (HEADER.INTERNAL_ORGANIZATION_ID, -99) AND ENABLED_FLAG = 'Y') THEN 'Y' ELSE CASE WHEN LINES_GT.INPUT_TAX_CLASSIFICATION_CODE IS NOT NULL AND NOT EXISTS (SELECT 1 FROM ZX_INPUT_CLASSIFICATIONS_V WHERE LOOKUP_CODE = LINES_GT.INPUT_TAX_CLASSIFICATION_CODE AND ORG_ID IN (HEADER.INTERNAL_ORGANIZATION_ID, -99) AND ENABLED_FLAG = 'Y') THEN 'Y' ELSE NULL END END TAX_RATE_CODE_NOT_ACTIVE FROM ZX_TRX_HEADERS_GT HEADER, ZX_EVNT_CLS_MAPPINGS EVNTMAP, ZX_TRANSACTION_LINES_GT LINES_GT, ZX_FC_DOCUMENT_FISCAL_V FC_DOC, FND_LOOKUPS FND WHERE LINES_GT.TRX_ID = HEADER.TRX_ID AND LINES_GT.APPLICATION_ID = HEADER.APPLICATION_ID AND LINES_GT.ENTITY_CODE = HEADER.ENTITY_CODE AND LINES_GT.EVENT_CLASS_CODE = HEADER.EVENT_CLASS_CODE AND FC_DOC.CLASSIFICATION_CODE(+) = HEADER.DOCUMENT_SUB_TYPE AND FC_DOC.COUNTRY_CODE(+) = HEADER.DEFAULT_TAXATION_COUNTRY AND HEADER.APPLICATION_ID = EVNTMAP.APPLICATION_ID (+) AND HEADER.ENTITY_CODE = EVNTMAP.ENTITY_CODE (+) AND HEADER.EVENT_CLASS_CODE = EVNTMAP.EVENT_CLASS_CODE(+) AND FND.LOOKUP_TYPE(+) = 'ZX_PRODUCT_TYPE' AND FND.LOOKUP_CODE(+) = LINES_GT.PRODUCT_TYPE
amry4gv0tdajyDECLARE job BINARY_INTEGER := :job; next_date TIMESTAMP WITH TIME ZONE := :mydate; broken BOOLEAN := FALSE; job_name VARCHAR2(30) := :job_name; job_subname VARCHAR2(30) := :job_subname; job_owner VARCHAR2(30) := :job_owner; job_start TIMESTAMP WITH TIME ZONE := :job_start; job_scheduled_start TIMESTAMP WITH TIME ZONE := :job_scheduled_start; window_start TIMESTAMP WITH TIME ZONE := :window_start; window_end TIMESTAMP WITH TIME ZONE := :window_end; chain_id VARCHAR2(14) := :chainid; credential_owner varchar2(30) := :credown; credential_name varchar2(30) := :crednam; destination_owner varchar2(30) := :destown; destination_name varchar2(30) := :destnam; job_dest_id varchar2(14) := :jdestid; log_id number := :log_id; BEGIN begin dbms_ilm.flush_all_segments; end; :mydate := next_date; IF broken THEN :b := 1; ELSE :b := 0; END IF; END;
bhm40tnqghpkcSELECT csf, ROLLBACK, timestamp, commit_timestamp, operation_code, status, thread#, scn, start_scn, commit_scn, SEQUENCE#, (xidusn||'.'||xidslt||'.'||xidsqn), SEG_TYPE_NAME, info, seg_owner, table_name, SSN, username, sql_redo, row_id, TABLE_SPACE, SESSION_INFO, RS_ID, RBASQN, RBABLK, RBABYTE, TX_NAME, SEG_NAME, (PXIDUSN||'.'||PXIDSLT||'.'||PXIDSQN), AUDIT_SESSIONID, SESSION#, SERIAL#, null as SRC_CON_NAME FROM v$logmnr_contents WHERE (( SEG_OWNER = 'CDCOFMV' AND TABLE_NAME ='MV_TEST_VIEW_CUSTOMER_ORDERS') OR ( SEG_OWNER = 'ROSHANTEST' AND TABLE_NAME ='QUIESCEMARKER') OR (operation IN ('START', 'COMMIT', 'ROLLBACK'))) AND (OPERATION_CODE != 5 AND OPERATION_CODE != 68 AND OPERATION_CODE != 70 AND OPERATION_CODE != 71 AND OPERATION_CODE != 0) AND (seg_owner NOT IN ('SYS', 'SYSTEM', 'MDSYS') OR seg_owner IS NULL) AND SCN >= :1 AND SCN <= :2
d2wdabdywhha9SELECT NVL(MAX(OBJV#), 0) FROM ( SELECT O.SPARE2 AS OBJV#, O.OBJ# AS KEYOBJ# FROM SYS.OBJ$ O WHERE O.TYPE# = 2 UNION SELECT O.SPARE2 AS OBJV#, TP.OBJ# AS KEYOBJ# FROM SYS.OBJ$ O, SYS.TABPART$ TP WHERE O.OBJ# = TP.BO# UNION SELECT O.SPARE2 AS OBJV#, TSP.OBJ# AS KEYOBJ# FROM SYS.OBJ$ O, SYS.TABCOMPART$ TCP, SYS.TABSUBPART$ TSP WHERE O.OBJ# = TCP.BO# AND TCP.OBJ# = TSP.POBJ# ) X WHERE X.KEYOBJ# = :B1
dfffkcnqfystw WITH 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, IS_FULL_SQLTEXT, PX_SERVER#, PX_SERVER_GROUP, PX_SERVER_SET, PX_QCINST_ID, PX_QCSID, CASE WHEN ELAPSED_TIME < (CPU_TIME+ APPLICATION_WAIT_TIME+ CONCURRENCY_WAIT_TIME+ CLUSTER_WAIT_TIME+ USER_IO_WAIT_TIME+ QUEUING_TIME) THEN (CPU_TIME+ APPLICATION_WAIT_TIME+ CONCURRENCY_WAIT_TIME+ CLUSTER_WAIT_TIME+ USER_IO_WAIT_TIME+ QUEUING_TIME) ELSE ELAPSED_TIME END ELAPSED_TIME, QUEUING_TIME, CPU_TIME, APPLICATION_WAIT_TIME, CONCURRENCY_WAIT_TIME, CLUSTER_WAIT_TIME, USER_IO_WAIT_TIME, CASE WHEN ELAPSED_TIME < (CPU_TIME+ APPLICATION_WAIT_TIME+ CONCURRENCY_WAIT_TIME+ CLUSTER_WAIT_TIME+ USER_IO_WAIT_TIME+ QUEUING_TIME) THEN 0 ELSE ELAPSED_TIME - (CPU_TIME+ APPLICATION_WAIT_TIME+ C ONCURRENCY_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, USER# USERID, USERNAME, MODULE, ACTION, SERVICE_NAME, CLIENT_IDENTIFIER, CLIENT_INFO, PROGRAM, PLSQL_OBJECT_ID PL_OID, PLSQL_SUBPROGRAM_ID PL_PROGID, PLSQL_ENTRY_OBJECT_ID PL_ENTRY_OID, PLSQL_ENTRY_SUBPROGRAM_ID PL_ENTRY_PROGID, PX_MAXDOP MAX_DOP, PX_IS_CROSS_INSTANCE, PX_MAXDOP_INSTANCES MAX_DOP_INSTANCES, PX_SERVERS_REQUESTED SERVERS_REQUESTED, PX_SERVERS_ALLOCATED SERVERS_ALLOCATED, ERROR_NUMBER, ERROR_FACILITY, ERROR_MESSAGE, NVL2(OTHER_XML, 'Y', NULL) HAS_OTHER_XML, NVL2(BINDS_XML, ' Y', NULL) HAS_BINDS_XML, NVL2(RM_CONSUMER_GROUP, NVL2(RM_LAST_ACTION_TIME, TO_CHAR(RM_LAST_ACTION_TIME, :B12 ), '00/00/0000 00:00:01') || XMLELEMENT( "rminfo", XMLATTRIBUTES( RM_LAST_ACTION AS "rmlastact", RM_LAST_ACTION_REASON AS "rmlastreason", TO_CHAR(RM_LAST_ACTION_TIME, :B12 ) AS "rmlasttime", RM_CONSUMER_GROUP AS "rmcg")).GETSTRINGVAL(), '00/00/0000 00:00:00') RM_INFO, CON_NAME, CON_ID FROM GV$SQL_MONITOR MO1 WHERE MO1.INST_ID BETWEEN :B11 AND :B10 AND MO1.SQL_ID = NVL(:B9 , MO1.SQL_ID) AND MO1.SQL_EXEC_START = NVL(:B8 , MO1.SQL_EXEC_START) AND MO1.SQL_EXEC_ID = NVL(:B7 , MO1.SQL_EXEC_ID) OR (MO1.DBOP_NAME = NVL(:B6 , MO1.DBOP_NAME) AND MO1.DBOP_EXEC_ID = NVL(:B5 , MO1.DBOP_EXEC_ID)) AND ((:B4 = 1 AND MO1.PX_QCSID IS NULL) OR (MO1.PX_SERVER_GROUP = NVL(:B3 , MO1.PX_SERVER_GROUP) AND MO1.PX_SERVER_SET = NVL(:B2 , MO1.PX_SERVER_SET) AND MO1.PX_SERVER# = NVL(:B1 , MO1.PX_SERVER#)))), MONITOR_AGG AS (SELECT MAX_ PX_QCSID, MAX_KEY, MAX_INST_ID, MAX_SESSION_ID, MAX_SESSION_SERIAL, MAX_PX_DOP, MAX_PX_DOP_INSTANCES, MAX_PX_IS_CROSS_INSTANCE, SUM_SERVERS_REQUESTED, SUM_SERVERS_ALLOCATED, DIST_INST_COUNT, DIST_PX_GROUP_COUNT, DIST_PX_SET_COUNT, MAX_PLAN_HASH_VALUE, MAX_FULL_PLAN_HASH_VALUE, MAX_USERID, MAX_PROGRAM, MAX_USERNAME, MAX_MODULE, MAX_ACTION, MAX_SERVICE_NAME, MAX_CLIENT_ID, MAX_CLIENT_INFO, MAX_ERROR_NUMBER, MAX_ERROR_FACILITY, MAX_ERROR_MESSAGE, QC_HAS_OTHER_XML, QC_HAS_BINDS_XML, MAX_PL_OID, MAX_PL_PROGID, MAX_PL_ENTRY_OID, MAX_PL_ENTRY_PROGID, MAX_SQL_ID, MAX_SQL_EXEC_START, MAX_SQL_EXEC_ID, MAX_LAST_REFRESH_TIME, MAX_DBOP_NAME, MAX_DBOP_EXEC_ID, CASE WHEN MAX_PL_OID IS NOT NULL THEN NVL((SELECT P.OWNER || '.' || P.OBJECT_NAME || DECODE(P.PROCEDURE_NAME, NULL, '', '.' || P.PROCEDURE_NAME) FROM DBA_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_EN TRY_OID IS NOT NULL THEN NVL((SELECT P.OWNER || '.' || P.OBJECT_NAME || DECODE(P.PROCEDURE_NAME, NULL, '', '.' || P.PROCEDURE_NAME) FROM DBA_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, IS_FULL_TEXT, 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, DECODE(:B14 , 1, 'db_name', DB.DB_UNIQUE_NAME) DB_UNIQUE_NAME, DECODE(:B14 , 1, 'platform_name', DB.PLATFORM_NAME) PLATFORM_NAME, DECODE(:B14 , 1, 'host_name', INST.HOST_NAME) HOST_NAME, AGG_RM_INFO MAX_RM_INFO, MAX_CON_NAME, DEC ODE(MAX_CON_ID, 0, NULL, MAX_CON_ID) MAX_CON_ID FROM (SELECT MAX(PX_QCSID) MAX_PX_QCSID, MAX(CASE WHEN PX_QCSID IS NULL THEN KEY ELSE NULL END) MAX_KEY, MAX(CASE WHEN PX_QCSID IS NULL THEN INST_ID ELSE NULL END) MAX_INST_ID, MAX(CASE WHEN PX_QCSID IS NULL THEN SID ELSE NULL END) MAX_SESSION_ID, MAX(CASE WHEN PX_QCSID IS NULL THEN SESSION_SERIAL# ELSE NULL END) MAX_SESSION_SERIAL, MAX(MAX_DOP) MAX_PX_DOP, MAX(MAX_DOP_INSTANCES) MAX_PX_DOP_INSTANCES, MAX(PX_IS_CROSS_INSTANCE) MAX_PX_IS_CROSS_INSTANCE, SUM(SERVERS_REQUESTED) SUM_SERVERS_REQUESTED, SUM(SERVERS_ALLOCATED) SUM_SERVERS_ALLOCATED, COUNT(DISTINCT INST_ID) DIST_INST_COUNT, COUNT(DISTINCT PX_SERVER_GROUP) DIST_PX_GROUP_COUNT, COUNT(DISTINCT PX_SERVER_SET) DIST_PX_SET_COUNT, MAX(SQL_PLAN_HASH_VALUE) MAX_PLAN_HASH_VALUE, MAX(SQL_FULL_PLAN_HASH_VALUE) MAX_FULL_PLAN_HASH_VALUE, MAX(USERID) MAX_USERID, MAX(PROGRAM) MAX_PROGRAM, MAX(USERNAME) MAX_USERNAME, MAX(MODULE) MAX_MODULE, MAX(ACTION) MAX_ACTION, MAX(SERVI CE_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_COUNT) 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, MAX(IS_FULL_SQLTEXT) IS_FULL_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, MAX(RM_INFO) AGG_RM_INFO, MAX(CON_NAME) MAX_CON_NAME, MAX(CON_ID) MAX_CON_ID FROM MONITOR_DATA) MD, (SELECT HOST_NAME FROM V$INSTANCE) INST, (SELECT DB_UNIQUE_NAME, PLATFORM_NAME FROM V$DATABASE) DB), ASH_DATA AS (SELECT AD0.INST_ID, AD0.SESSION_ID, AD0.PLAN_LINE_ID, AD0.PLSQL_OBJECT_ID, AD0.PLSQL_SUBPROGRAM_ID, AD0.ACTIVITY_BU CKET_NUM, AD0.PLAN_ACTIVITY_BUCKET_NUM, AD0.SQL, AD0.TOP_LEVEL_SQL_ID, AD0.DBOP_NAME, AD0.IS_MONITORED_SQL, AD0.IS_PX_SLAVE, AD0.BUCKET_ACTIVITY_START, AD0.ACTIVITY_START, AD0.BUCKET_ACTIVITY_END, AD0.ACTIVITY_END, AD0.ACTIVITY_COUNT, AD0.ACTIVITY_TYPE, AD0.OTHER_SQL_ACTIVITY_TYPE, AD0.EVENT_NAME, AD0.IMQ_COUNT, AD0.WAIT_COUNT, AD0.CPU_COUNT, AD0.OTHER_SQL_COUNT, AD0.PX_SERVER_SET, AD0.PX_DFO_ACTIVITY_COUNT, AD0.DFO_MOST_ACTIVE_IID, AD0.DFO_MOST_ACTIVE_SID, (CASE WHEN AD0.DFO_MOST_ACTIVE_IID = AD0.INST_ID AND AD0.DFO_MOST_ACTIVE_SID = AD0.SESSION_ID AND (((AD0.PX_DFO_ACTIVITY_COUNT / AD0.DFO_MOST_ACTIVE_COUNT) >= AD0.PX_DOP * 1.05) OR ((AD0.PX_DFO_ACTIVITY_COUNT / AD0.DFO_MOST_ACTIVE_COUNT) <= AD0.PX_DOP *0.95)) AND (AD0.DFO_DURATION * 100) > :B32 THEN AD0.ACTIVITY_COUNT ELSE NULL END) DFO_MOST_ACTIVE_COUNT, AD0.BUCKET_DISTINCT_SAMPLES, AD0.SQL_BUCKET_DISTINCT_SAMPLES, CASE WHEN AD0.PX_SERVER_GROUP IS NULL AND AD0.IS_PX_SLAVE = 1 THEN 1 ELSE AD0.PX_SE RVER_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_S QL_COUNT, MAX(GVTF.PER_SERVER_DFO_COUNT * 10000000000 + GVTF.INST_ID * 1000000 + GVTF.SESSION_ID) OVER(PARTITION BY GVTF.PX_DFO_PAIR_TYPE, GVTF.PX_DFO_PAIR_ID) MOST_ACTIVE_IN_DFO, SUM(GVTF.ACTIVITY_COUNT) OVER(PARTITION BY GVTF.PX_DFO_PAIR_TYPE, GVTF.PX_DFO_PAIR_ID) PX_DFO_ACTIVITY_COUNT, GVTF.DFO_DURATION, GVTF.PX_STEP_ID, GVTF.PX_DFO_PAIR_TYPE, GVTF.PX_DFO_PAIR_ID, GVTF.PX_STEP_ARG, GVTF.PX_DOP, GVTF.PX_MIN_DOP, COUNT(DISTINCT GVTF.GLOBAL_SAMPLE_ID) OVER(PARTITION BY GVTF.ACTIVITY_BUCKET_NUM) BUCKET_DISTINCT_SAMPLES, COUNT(DISTINCT GVTF.GLOBAL_SAMPLE_ID) OVER(PARTITION BY GVTF.SQL, GVTF.ACTIVITY_BUCKET_NUM) SQL_BUCKET_DISTINCT_SAMPLES FROM TABLE(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, A SH2.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) O VER(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 != 'Cp u' 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$TIMER UNION ALL SELECT 1 C1, 1 C2 FROM V$TIMER) 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, ASH00 0.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, SAMP LE_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$ACTIVE_SESSION_HISTORY ASH WHERE ((ASH.SESSION_ID = :B19 AND ASH.SESSION_SERIAL# = :B18 AND USERENV('INSTANCE') = :B17 ) OR (ASH.QC_SESSION_ID IS NOT NULL AND ASH.QC_SESSION_ID = :B19 AND ASH.QC_SESSION_SERIAL# = :B18 AND ASH.QC_INSTANCE_ID = :B17 )) AND SAMPLE_TIME BETWEEN :B16 AND :B15 ) ASH0 WHERE (ASH0.SAMPLE_DATE BETWEEN :B20 + 1/24/3600 AND :B22 - 1/24/3600 OR (ASH0.SQL_ID = :B9 AND ASH0.SQL_EXEC_START = :B8 AND ASH0.SQL_EXEC_ID = :B7 ) OR (ASH0.DBOP_NAME = :B6 AND ASH0.DBOP_EXEC_ID = :B5 )) AND (:B21 IS NULL OR ASH0.SQL_PLAN_LINE_ID = :B21 ) AND (ASH0.IS_PX_SLAVE = 0 OR ASH0.SQL_ID IS NOT NULL)) ASH000 ) ASH00 WHERE ASH00.C1 = DUP.C1) ASH1 WHERE ASH1.BUCKET_NUM > 0 AND ASH1.BUCKET_NUM <= :B27 GROUP BY USERENV('INSTANCE'), ASH1.GLOBAL_SAMPLE_ID, ASH1.BUCKET_NUM, ASH1.SESSION_ID, ASH1.PLAN_LINE_ID, ASH1.PLSQL_OBJECT_ID, ASH1.PLSQL_SUBPROGRAM_ID, ASH1.ACTIVITY_TYPE, ASH1.EVENT_NAME, ASH1.OTHER_SQL_ACTIVITY_TYPE, ASH1.PX_STEP_ID, ASH1.PX_STEP_ARG) ASH2)))) GVTF WHERE GVTF.INST_ID BETWEEN :B11 AND :B10 ) ASH WHERE ASH.GLOBAL_SAMPLE_ID IS NULL AND ASH.SESSION_ID = MO.SID(+) AND ASH.INST_ID = MO.INST_ID(+)) AD0), RESPONSE_TIME_DATA AS (SELECT ADH.BUCKET_NUM, ADH.SQL_ROWNUM, ADH.SQL, ADH.TOP_LEVEL_SQL_ID, ADH.DBOP_NAME, ADH.PX_ID, DECODE( ADH.PX_STEP_ID, NULL, NULL, 0, NULL, 1, 'PX Server(s) - Executing Parent DFO', 2, 'PX Server(s) - Executing Child DFO', 3, 'PX Server(s) - Sampling Child DFO', 4, 'PX Server(s) - Joining Group', 5, 'QC - Scheduling Child DFO', 6, 'QC - Scheduling Parent DFO', 7, 'QC - Initializing Objects', 8, 'QC - Flushing Objects', 9, 'QC - Allocating Slaves', 10, 'QC - Initializing Granules', 11, 'PX Server(s) - Parsing Cursor', 12, 'PX Server(s) - Executing Cursor', 13, 'PX Server(s) - Preparing Transaction', 14, 'PX Server(s) - Joining Transaction', 15, 'PX Server(s) - Load Commit', 16, 'PX Server(s) - Aborting Transaction', 17, 'QC - Executing Child DFO', 18, 'QC - Executing Parent DFO', 'PX Step - ' || PX_STEP_ID) PX_STEP_ID, ADH.PX_STEP_ARG, ADH.PX_DFO_PAIR_ID, ADH.PX_DOP, ADH.PX_MIN_DOP, ADH.DFO_MOST_ACTIVE_IID, ADH.DFO_MOST_ACTIVE_SID, ADH.DFO_MOST_ACTIVE_COUNT, ADH.ACTIVITY_START, ADH.ACTIVITY_END, ADH.ACTIVITY_TYPE, ADH.OTHER_SQL_ACTIVITY_TYPE, ADH.EVENT_NAME, ADH.PLAN_LINE_ID, ADH.PLSQL_OBJECT_ID, ADH.PLSQL_SUBPROGRAM_ID, CASE WHEN PLSQL_ROWNUM = 1 AND ADH.PLSQL_OBJECT_ID IS NOT NULL THEN NVL((SELECT P.OWNER || '.' || P.OBJECT_NAME || DECODE(P.PROCEDURE_NAME, NULL, '', '.' || P.PROCEDURE_NAME) FROM DBA_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_IDL E_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_ACTIVITY_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 WH EN ADH.PX_DFO_PAIR_ID IS NOT NULL AND ADH.DFO_PAIR_IDLE_HEIGHT > 0 THEN (ADH.DFO_PAIR_TOTAL_SECONDS * ADH.DFO_PAIR_IDLE_HEIGHT) / ADH.PX_DOP ELSE 0 END) DFO_PAIR_IDLE_RESP_TIME, ADH.DFO_PAIR_ACTIVITY_HEIGHT, ADH.DFO_PAIR_CPU_HEIGHT, ADH.DFO_PAIR_IDLE_HEIGHT, ADH.DFO_PAIR_TOTAL_HEIGHT, ADH.DFO_PAIR_CPU_ACTIVITY, ADH.DFO_PAIR_TOTAL_SECONDS FROM (SELECT ADH_1.*, (ROW_NUMBER() OVER(PARTITION BY ADH_1.PLSQL_OBJECT_ID, ADH_1.PLSQL_SUBPROGRAM_ID ORDER BY ADH_1.BUCKET_NUM, ADH_1.ACTIVITY_TYPE, ADH_1.EVENT_NAME)) PLSQL_ROWNUM, (ROW_NUMBER() OVER(PARTITION BY ADH_1.SQL ORDER BY ADH_1.BUCKET_NUM, ADH_1.ACTIVITY_TYPE, ADH_1.EVENT_NAME)) SQL_ROWNUM, (CASE WHEN ADH_1.PX_DFO_PAIR_ID IS NOT NULL AND (ADH_1.DFO_PAIR_TOTAL_HEIGHT < ADH_1.PX_DOP) AND (ADH_1.DFO_PAIR_CPU_HEIGHT < :B34 ) THEN ADH_1.PX_DOP - ADH_1.DFO_PAIR_TOTAL_HEIGHT ELSE 0 END) DFO_PAIR_IDLE_HEIGHT, (CASE WHEN ADH_1.PX_DFO_PAIR_ID IS NOT NULL AND (ADH_1.DFO_PAIR_TOTAL_HEIGHT < ADH_1.PX_DOP) AND (ADH_1.DFO_PAIR_ CPU_HEIGHT < :B34 ) THEN ADH_1.PX_DOP ELSE ADH_1.DFO_PAIR_TOTAL_HEIGHT END) DFO_PAIR_TOTAL_HEIGHT_ADJ FROM (SELECT ADH_0.*, (CASE WHEN ADH_0.DFO_PAIR_TOTAL_SECONDS > 0 THEN (ADH_0.DFO_PAIR_TOTAL_ACTIVITY * :B25 ) / ADH_0.DFO_PAIR_TOTAL_SECONDS ELSE 0 END) DFO_PAIR_TOTAL_HEIGHT, (CASE WHEN ADH_0.DFO_PAIR_TOTAL_SECONDS > 0 THEN (ADH_0.DFO_PAIR_CPU_ACTIVITY * :B25 ) / ADH_0.DFO_PAIR_TOTAL_SECONDS ELSE 0 END) DFO_PAIR_CPU_HEIGHT, (CASE WHEN ADH_0.PX_DFO_PAIR_ID IS NOT NULL AND ADH_0.DFO_PAIR_TOTAL_SECONDS > 0 THEN (ADH_0.ACTIVITY_COUNT * :B25 ) / ADH_0.DFO_PAIR_TOTAL_SECONDS ELSE 0 END) DFO_PAIR_ACTIVITY_HEIGHT FROM (SELECT AD3.*, (SUM(DECODE(AD3.PX_DFO_PAIR_ID, NULL, 0, AD3.ACTIVE_SECONDS)) OVER(PARTITION BY DECODE(AD3.PX_DFO_PAIR_ID, NULL, NULL, AD3.BUCKET_NUM), DECODE(AD3.PX_DFO_PAIR_ID, NULL, NULL, AD3.PX_STEP_ARG))) DFO_PAIR_TOTAL_SECONDS FROM (SELECT AD2.*, CASE WHEN AD2.IS_MONITORED_SQL = 0 THEN SQL_BUCKET_DISTINCT_SAMPLES * :B25 WHEN AD2.PX_ID IS NULL THE N 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_OTHER_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.BUCKET_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 */ XMLELEMENT( "sql_monitor_report", XMLATTRIBUTES(:B59 AS "version", TO_CHAR(:B58 , :B12 ) AS "sysdate"), XMLELEMENT( "report_parameters", NULL, CASE WHEN :B57 IS NOT NULL THEN XMLFOREST( :B57 AS "dbop_name", :B56 AS "dbop_exec_id") ELSE XMLFOREST( :B55 AS "sql_id", :B54 AS "sql_exec_id") END, XMLFOREST( :B53 AS "session_id", :B52 AS "session_serial", TO_CHAR(:B51 , :B12 ) AS "sql_exec_start", :B27 AS "bucket_count", TO_CHAR(:B50 , :B12 ) AS "interval_start", TO_CHAR(:B22 , :B12 ) AS "interval_end", DECODE(:B49 , 'Y', :B48 , NULL) AS "auto_refresh", :B47 AS "base_path"), CASE WHEN :B23 = 'Y' AND :B46 IS NOT NULL AND NOT (:B4 = 1 AND :B3 IS NULL AND :B2 IS NULL AND :B1 IS NULL) THEN XMLELEMENT( "parallel_filter", NULL, XMLFOREST( DECODE(:B4 , 1, 'yes', 'no') AS "qc", :B3 AS "server_group", :B2 AS "server_set", :B1 AS "server_number")) ELSE NULL END), CASE WHEN :B14 = 1 THEN XMLELEMENT( "derived_parameters_testing", NULL, XMLFOREST(:B11 AS "instance_id_low", :B10 AS "instance_id_high", :B26 AS "bucket_interval_sec", :B32 AS "interval_second", :B27 AS "bucket_calc_count", :B45 AS "bucket_calc_max_count", :B13 AS "sel_sqltext")) ELSE NULL END, (SELECT XMLCONCAT( CASE WHEN :B46 IS NULL AND :B60 IS NULL THEN XMLELEMENT( "target", XMLATTRIBUTES(:B17 AS "instance_id", :B19 AS "session_id", :B18 AS "session_serial", NVL2(:B6 , NULL, :B9 ) AS "sql_id", NVL2(:B6 , NULL, TO_CHAR(:B8 , :B12 )) AS "sql_exec_start", NVL2(:B6 , NULL, :B7 ) AS "sql_exec_id", NVL2(:B6 , :B6 , NULL) AS "dbop_name", NVL2(:B6 , :B5 , NULL) AS "dbop_exec_id", NVL2(:B6 , TO_CHAR(:B8 , :B12 ), NULL) AS "dbop_exec_start", NVL2(:B6 , NULL, MAX_PLAN_HASH_VALUE) AS "sql_plan_hash", NVL2(:B6 , NULL, MAX_FULL_PLAN_HASH_VALUE) AS "sql_full_plan_hash", MAGG.DB_UNIQUE_NAME AS "db_unique_name", MAGG.PLATFORM_NAME AS "db_platform_name", MAGG.HOST_NAME AS "report_host_name"), NVL2(SUM_SERVERS_REQUESTED, XMLELEMENT( "servers_requested", NULL, SUM_SERVERS_REQUESTED), NULL), NVL2(SUM_SERVERS_ALLOCATED, XMLELEMENT( "servers_allocated", NULL, SUM_SERVERS_ALLOCATED), NULL), NVL2(MAX_USERID, XMLELEMENT( "user_id", NULL, MAX_USERID), NULL), NVL2(MAX_USERNAME, XMLELEMENT( "user", NULL , MAX_USERNAME), NULL), NVL2(MAX_CON_ID, XMLELEMENT( "con_id", NULL, MAX_CON_ID), NULL), NVL2(MAX_CON_NAME, XMLELEMENT( "con_name", NULL, MAX_CON_NAME), NULL), NVL2(MAX_PROGRAM, XMLELEMENT( "program", NULL, MAX_PROGRAM), NULL), NVL2(MAX_MODULE, XMLELEMENT( "module", NULL, MAX_MODULE), NULL), NVL2(MAX_ACTION, XMLELEMENT( "action", NULL, MAX_ACTION), NULL), NVL2(MAX_SERVICE_NAME, XMLELEMENT( "service", NULL, MAX_SERVICE_NAME), NULL), NVL2(MAX_CLIENT_ID, XMLELEMENT( "client_id", NULL, MAX_CLIENT_ID), NULL), NVL2(MAX_CLIENT_INFO, XMLELEMENT( "client_info", NULL, MAX_CLIENT_INFO), NULL), NVL2(MAX_PL_ENTRY_OID, XMLELEMENT( "plsql_entry_object_id", NULL, MAX_PL_ENTRY_OID), NULL), NVL2(MAX_PL_ENTRY_PROGID, XMLELEMENT( "plsql_entry_subprogram_id", NULL, MAX_PL_ENTRY_PROGID), NULL), NVL2(MAX_PL_ENTRY_NAME, XMLELEMENT( "plsql_entry_name ", NULL, MAX_PL_ENTRY_NAME), NULL), NVL2(MAX_PL_OID, XMLELEMENT( "plsql_object_id", NULL, MAX_PL_OID), NULL), NVL2(MAX_PL_PROGID, XMLELEMENT( "plsql_subprogram_id", NULL, MAX_PL_PROGID), NULL), NVL2(MAX_PL_NAME, XMLELEMENT( "plsql_name", NULL, MAX_PL_NAME), NULL), CASE WHEN (:B13 = 0 OR :B6 IS NOT NULL) THEN NULL ELSE XMLELEMENT( "sql_fulltext", XMLATTRIBUTES(NVL2(SQL_VTEXT, 'Y', IS_FULL_TEXT) AS "is_full"), NVL2(SQL_VTEXT, SQL_VTEXT, SQLMON_TEXT)) END, XMLELEMENT( "status", NULL, MAX_STATUS), XMLELEMENT( "refresh_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(:B65 , 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 (:B63 = 'Y') THEN XMLELEMENT( "adaptive_plan", XMLATTRIBUTES(:B64 AS "is_final"), :B63 ) ELSE NULL END, NVL((SELECT XMLFOREST( XMLAGG( XMLELEMENT( "param", XMLATTRIBUTES(E.NAME AS "name"), DECODE(:B14 , 1, 'XXXX', E.VALUE)) ORDER BY E.NAME) AS "optimizer_env") SQL_ENV FROM GV$SQL_OPTIMIZER_ENV E WHERE E.INST_ID = :B17 AND E.SQL_ID = :B9 AND E.CHILD_ADDRESS = HEXTORAW(:B66 ) AND (DECODE(:B14 , 1, 'YES', E.ISDEFAULT) = 'NO' OR E.ID IN (2, 12, 24, 35, 36, 37, 246, 256, 257, 274, 275, 289, 290))), (SELECT XMLELEMENT( "optimizer_env", XMLATTRIBUTES('sys' AS "type"), XMLAGG( XMLELEMENT( "param", XMLATTRIBUTES(E.NAME AS "name"), DECODE(:B14 , 1, 'XXXX', E.VALUE)) ORDER BY E.NAME)) SYS_ENV FROM V$SYS_OPTIMIZER_ENV E WHERE (DECODE(:B14 , 1, 'YES', E.ISDEFAULT) = 'NO' OR E.ID IN (2, 12, 24, 35, 36, 37, 24 6, 256, 257, 274, 275, 289, 290)))) ) 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, NULL, 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", XMLAT TRIBUTES('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, XMLELEMENT( "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)), CASE WHEN SUM_IO_INTER_BYTES IS NULL OR SUM_IO_BYTES = 0 OR SUM_IO_INTER_BYTES = SUM_IO_BYTES THEN NULL ELSE XMLELEMENT ( "stat", XMLATTRIBUTES('cell_offload_efficiency' AS "name"), ROUND(SUM_IO_BYTES / DECODE(SUM_IO_INTER_BYTES, 0, 1, SUM_IO_INTER_BYTES), 2)) END), CASE WHEN :B33 = 1 THEN (SELECT CASE WHEN SUM(ACTIVITY_COUNT) > 0 THEN XMLELEMENT( "activity_sampled", XMLAGG( XMLELEMENT( "activity", XMLATTRIBUTES( AD1.ACTIVITY_TYPE AS "class", AD1.EVENT_NAME AS "event"), AD1.ACTIVITY_COUNT) ORDER BY AD1.ACTIVITY_TYPE, AD1.EVENT_NAME)) ELSE NULL END FROM (SELECT AD0.ACTIVITY_TYPE, AD0.EVENT_NAME, SUM(AD0.ACTIVITY_COUNT) ACTIVITY_COUNT FROM ASH_DATA AD0 GROUP BY AD0.ACTIVITY_TYPE, AD0.EVENT_NAME) AD1) ELSE NULL END, NVL2(MAX_ERROR_NUMBER, XMLELEMENT( "error", XMLATTRIBUTES(MAX_ERROR_NUMBER AS "number", MAX_ERROR_FACILITY AS "facility"), MAX_ERROR_MESSAGE), NULL), CASE WHEN :B62 = 1 AND MAGG.QC_HAS_BINDS_XML = 'Y' THEN (SELECT XMLTYPE(BINDS_XML) FROM GV$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 :B61 = 1 AND MAGG.QC_HAS_OTHER_XML = 'Y' THEN (SELECT XMLTYPE(OTHER_XML) FROM GV$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 (SELECT V.*, CASE WHEN :B13 = 2 AND IS_FULL_TEXT = 'N' AND :B46 IS NULL AND :B60 IS NULL THEN (SELECT SQL_FULLTEXT FROM GV$SQL SQ WHERE SQ.INST_ID BETWEEN :B11 AND :B10 AND SQ.SQL_ID = :B9 AND ROWNUM = 1) ELSE NULL END SQL_VTEXT FROM MONITOR_AGG V) 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.ACT IVITY_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.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, 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 * 24) + 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 :B67 = 'Y' THEN AD1.DFO_MOST_ACTIVE_IID END AS "skew_iid", DECODE(AD1.DFO_MOST_ACTIVE_COUN T, 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 WHEN AD01.ACTIVITY_TYPE != 'Other SQL Execution' AND AD01.ACTIVITY_TYPE != 'Non SQL' THEN AD01.EVENT_NAME END EVENT, C ASE 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 "server_group_count", DIST_PX_SET_COUNT AS "server_set_count"), CASE WHEN :B69 = 1 THEN PX_SESSIONS ELSE NULL END, CASE WHEN :B67 = 'Y' THEN DECODE(:B68 , 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_SER VER#)) 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('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), CASE WHEN MAX(IO_INTER_BYTES) IS NULL OR NVL(MAX(IO_BYTES), 0) = 0 OR MAX(IO_INTER_BYTES) = MAX(IO_BYTES) 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 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", SU M(PI.ACTIVITY_COUNT) AS "count", SUM(PI.IMQ_COUNT) AS "imq_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 :B61 = 1 AND PI.HAS_OTHER_XML = 'Y' THEN (SELECT XMLTYPE(OTHER_XML) FROM GV$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#, ASH0.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.BUF FER_GETS, 0, NULL, MO.BUFFER_GETS)) BUFFER_GETS, MAX(DECODE(MO.IO_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.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(DECODE(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(DECO DE(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 (:B69 = 1 OR :B68 = 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 (:B69 = 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#) P X_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) OTHE R_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), CASE WHEN MAX(IO_INTER_BYTES) IS NULL OR NVL(MAX(IO_BYTES), 0) = 0 OR MAX(IO_INTER_BYTES) = MAX(IO_BYTES) 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)) E ND), 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, A SH.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 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.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 :B43 = 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_s tart", 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.FIRST_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, XMLELEMENT( "stat", XMLATTRIBUTES( 'from_sql_exec_start' AS "name"), ROUND( (FIRST_MOVE_TIME - :B8 ) * 3600*24)), NU LL), 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(:B67 , '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( "s tat", 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(:B67 , '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(:B67 , 'Y', MOD(TRUNC(MIN_MAX_MEM/10 00000), 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(:B67 , '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(:B67 , '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(:B67 , '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(:B67 , '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(:B67 , '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(:B67 , '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, XMLELE MENT( "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.L INE_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.CARDINALITY, 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) OVER() MAX_LINE_IMQ_COUNT, MAX(LINE_CPU_COUNT) OVER() MAX_LINE_CPU_COUNT, MAX(LINE_WAIT_COUNT) OVER() MAX_LINE_WAIT_COUNT, MAX(LINE_OT HER_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) 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) OTH ER_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", 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"), 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 "class", AD1.EVENT_NAME AS "event"), AD1.ACTIVITY_COUNT), NULL) ORDER BY AD1.ACTIVITY_TYPE, AD1.EVENT_NAME) ACTIVITY_BUC KET 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 :B70 = '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(PLM.PLAN_OBJECT_NAME) OBJECT_NAME, MAX(PLM.PLAN_OBJECT_TYPE) OBJECT_TYPE, MAX(PLM.PLAN_COST) COST, MAX(PLM.PLAN_CARDINALITY) CARDINALI TY, 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)) MI N_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.PHYSICAL_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(OTHERSTAT_3_VALUE), 5, DECODE(MAX(OTHERSTAT_1_TYPE), 4, MAX(RMAX1 + OTHERSTAT_3_VALUE), 7, MIN(RMAX1 + OTHERSTAT_3_VALUE), NULL), 6, M IN(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 + O THERSTAT_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$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_OPTION S) 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_I D)) 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 "refr esh_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 XML ELEMENT( "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( "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", XMLATTRI BUTES('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)), 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 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) ) 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.MAX_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_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", 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)), 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 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) ) 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$sql_plan', PLAN_TAG=>'plan', FILTER_PREDS=>:B35 , FORMAT=>'-PROJECTION +ALIAS +ADAPTIVE') ELSE NULL END XPLAN_XML FROM DUAL) V1) CONST_VIEW
f3hwp0ast732jSELECT CASE WHEN BITAND(OPQ.FLAGS, 1) = 1 THEN 4 WHEN BITAND(OPQ.FLAGS, 68) = 68 THEN 8 WHEN BITAND(OPQ.FLAGS, 4) = 4 THEN 2 ELSE 0 END AS TLOFLAGS FROM SYS.TAB$ T, SYS.COL$ CC, SYS.OPQTYPE$ OPQ WHERE T.OBJ# = :B1 AND BITAND(T.PROPERTY, 1) = 1 AND CC.OBJ# = T.OBJ# AND CC.NAME = 'SYS_NC_ROWINFO$' AND CC.TYPE# = 58 AND OPQ.OBJ# = CC.OBJ# AND OPQ.INTCOL# = CC.INTCOL# AND OPQ.TYPE = 1
fhf8upax5cxszBEGIN sys.dbms_auto_report_internal.i_save_report (:rep_ref, :snap_id, :pr_class, :rep_id, :suc); END;
fka2uqsss2gkh /* MV_REFRESH (INS) */ INSERT /*+ NOAPPEND */ INTO "CDCOFMV"."MV_TEST_VIEW_CUSTOMER_ORDERS" SELECT /*+ NO_MERGE("JV$") */ "MAS$1".ROWID, "JV$"."RID$", "MAS$1"."CUSTOMER_ID", "MAS$1"."NAME", "MAS$1"."SURNAME", "MAS$1"."AGE", "JV$"."ORDERID", "JV$"."PRICE" FROM ( SELECT "MAS$"."ROWID" "RID$" , "MAS$".* FROM "CDCOFMV"."MV_TEST_VIEW_ORDERS" "MAS$" WHERE ROWID IN (SELECT /*+ HASH_SJ */ CHARTOROWID("MAS$"."M_ROW$$") RID$ FROM "CDCOFMV"."MLOG$_MV_TEST_VIEW_ORDERS" "MAS$" WHERE "MAS$".SNAPTIME$$ > :B_ST0 )) AS OF SNAPSHOT(:B_SCN) "JV$", "CDCOFMV"."MV_TEST_VIEW_CUSTOMERS" AS OF SNAPSHOT(:B_SCN) "MAS$1" WHERE "MAS$1"." CUSTOMER_ID"="JV$"."CUSTOMER_ID"
gf1d6mzzka24bSelect R.Rowid From Fnd_Concurrent_Requests R Where R.Hold_Flag = 'N' And R.Status_Code = 'I' And R.Requested_Start_Date <= Sysdate And (R.Node_Name1 is null or (R.Node_Name1 is not null and FND_DCP.target_node_mgr_chk(R.request_id) = 1)) AND EXISTS ( Select Null From Fnd_Concurrent_Programs P Where P.Enabled_Flag = 'Y' And R.Program_Application_Id = P.Application_Id And R.Concurrent_Program_Id = P.Concurrent_Program_Id AND EXISTS ( Select Null From Fnd_Oracle_Userid O Where R.Oracle_Id = O.Oracle_Id AND EXISTS ( Select Null From Fnd_Conflicts_Domain C Where P.Run_Alone_Flag = C.RunAlone_Flag And R.CD_Id = C.CD_Id ) ) And (P.Execution_Method_Code != 'S' OR (R.PROGRAM_APPLICATION_ID, R.CONCURRENT_PROGRAM_ID) IN ((0, 98), (0, 100), (0, 31721), (0, 31722), (0, 31757)))) ORDER BY NVL(R.priority, 999999999), R.Priority_Request_ID, R.Request_ID

Back to SQL Statistics
Back to Top

Instance Activity Statistics

Back to Top

Key Instance Activity Stats

StatisticTotalper Secondper Trans
db block changes252,49470.0223.18
execute count1,377,459382.00126.44
logons cumulative1,9950.550.18
opened cursors cumulative1,273,848353.26116.93
parse count (total)528,074146.4548.47
parse time elapsed9110.250.08
physical reads101,11828.049.28
physical writes25,0966.962.30
redo size133,206,64436,940.9412,227.52
session cursor cache hits120,43133.4011.05
session logical reads11,158,9233,094.601,024.32
user calls147,43940.8913.53
user commits3,3150.920.30
user rollbacks7,5792.100.70
workarea executions - onepass00.000.00
workarea executions - optimal301,09483.5027.64


Back to Instance Activity Statistics
Back to Top

Instance Activity Stats

StatisticTotalper Secondper Trans
Batched IO (bound) vector count10.000.00
Batched IO (full) vector count00.000.00
Batched IO (space) vector count00.000.00
Batched IO block miss count50.000.00
Batched IO buffer defrag count00.000.00
Batched IO double miss count10.000.00
Batched IO same unit count20.000.00
Batched IO single block count20.000.00
Batched IO slow jump count00.000.00
Batched IO vector block count00.000.00
Batched IO vector read count00.000.00
Block Cleanout Optim referenced180.000.00
CCursor + sql area evicted1,1930.330.11
CPU used by this session225,95162.6620.74
CPU used when call started225,29162.4820.68
CR blocks created2,6710.740.25
Cached Commit SCN referenced37,31610.353.43
Commit SCN cached3760.100.03
DBWR checkpoint buffers written10,9003.021.00
DBWR checkpoints2800.080.03
DBWR object drop buffers written4830.130.04
DBWR parallel query checkpoint buffers written00.000.00
DBWR thread checkpoint buffers written4,5621.270.42
DBWR transaction table writes3050.080.03
DBWR undo block writes2,3200.640.21
DDL statements parallelized1760.050.02
DFO trees parallelized2040.060.02
DML statements parallelized240.010.00
Effective IO time00.000.00
HSC Heap Segment Block Changes28,5567.922.62
Heap Segment Array Inserts7900.220.07
Heatmap BlkLevel Flushed6,6361.840.61
Heatmap BlkLevel Flushed to BF6,6361.840.61
Heatmap BlkLevel Not Updated - Repeat18,0705.011.66
Heatmap BlkLevel Ranges Flushed8030.220.07
Heatmap BlkLevel Ranges Skipped00.000.00
Heatmap BlkLevel Tracked11,8943.301.09
Heatmap Blklevel Flush Task Count10.000.00
Heatmap SegLevel - Flush10.000.00
Heatmap SegLevel - Full Table Scan960.030.01
Heatmap SegLevel - IndexLookup764,940212.1370.22
Heatmap SegLevel - Segments flushed5260.150.05
Heatmap SegLevel - TableLookup857,564237.8278.72
Heatmap SegLevel - Write570.020.01
KTFB alloc req1,0650.300.10
KTFB alloc space (block)143,720,44839,856.6413,192.62
KTFB alloc time (ms)84,32823.397.74
KTFB apply req110.000.00
KTFB apply time (ms)2890.080.03
KTFB commit req1,0450.290.10
KTFB commit time (ms)39,19710.873.60
KTFB free req1,0530.290.10
KTFB free space (block)17,7444.921.63
KTFB free time (ms)2,2690.630.21
LOB table id lookup cache misses00.000.00
Number of read IOs issued00.000.00
PX local messages recv'd34,8089.653.20
PX local messages sent34,8089.653.20
Parallel operations downgraded 25 to 50 pct1830.050.02
Parallel operations downgraded 50 to 75 pct00.000.00
Parallel operations downgraded to serial10.000.00
Parallel operations not downgraded210.010.00
Requests to/from client122,67434.0211.26
RowCR - row contention890.020.01
RowCR attempts40,60611.263.73
RowCR hits40,48711.233.72
SMON posted for undo segment shrink20.000.00
SQL*Net roundtrips to/from client122,69834.0311.26
active txn count during cleanout3,7461.040.34
background checkpoints completed10.000.00
background checkpoints started10.000.00
background timeouts19,2085.331.76
branch node splits90.000.00
buffer is not pinned count7,389,8802,049.37678.34
buffer is pinned count14,937,6034,142.501,371.18
bytes received via SQL*Net from client12,343,9113,423.221,133.09
bytes sent via SQL*Net to client27,091,9917,513.172,486.87
calls to get snapshot scn: kcmgss1,277,040354.15117.22
calls to kcmgas39,14910.863.59
calls to kcmgcs129,45835.9011.88
cell physical IO interconnect bytes621,783,526,400172,433,370.6557,075,778.08
change write time1710.050.02
cleanout - number of ktugct calls3,0810.850.28
cleanouts and rollbacks - consistent read gets1,9320.540.18
cleanouts only - consistent read gets3680.100.03
cluster key scan block gets1,620,200449.31148.72
cluster key scans623,543172.9257.24
commit batch/immediate performed1,8310.510.17
commit batch/immediate requested1,8310.510.17
commit cleanout failures: block lost1220.030.01
commit cleanout failures: buffer being written00.000.00
commit cleanout failures: callback failure280.010.00
commit cleanout failures: cannot pin550.020.01
commit cleanouts25,6107.102.35
commit cleanouts successfully completed25,4057.052.33
commit immediate performed1,8310.510.17
commit immediate requested1,8310.510.17
commit txn count during cleanout7510.210.07
consistent changes49,21013.654.52
consistent gets10,803,4472,996.02991.69
consistent gets direct00.000.00
consistent gets examination3,781,8151,048.78347.15
consistent gets examination (fastpath)3,780,1641,048.32347.00
consistent gets from cache10,803,4472,996.02991.69
consistent gets pin7,021,6321,947.24644.54
consistent gets pin (fastpath)6,866,4801,904.22630.30
cursor authentications220.010.00
cursor reload failures40.000.00
data blocks consistent reads - undo records applied6,9251.920.64
db block changes252,49470.0223.18
db block gets355,47698.5832.63
db block gets direct11,8983.301.09
db block gets from cache343,57895.2831.54
db block gets from cache (fastpath)82,98023.017.62
deferred (CURRENT) block cleanout applications10,5712.930.97
dirty buffers inspected2100.060.02
enqueue conversions9,1252.530.84
enqueue releases163,45645.3315.00
enqueue requests165,59245.9215.20
enqueue timeouts2,1680.600.20
enqueue waits7250.200.07
exchange deadlocks170.000.00
execute count1,377,459382.00126.44
failed probes on index block reclamation10.000.00
fastpath consistent get quota limit24,2446.722.23
file io service time9050.250.08
free buffer inspected108,82130.189.99
free buffer requested125,74334.8711.54
heap block compress7670.210.07
hot buffers moved to head of LRU61,19316.975.62
immediate (CR) block cleanout applications2,3000.640.21
immediate (CURRENT) block cleanout applications9,2112.550.85
index crx upgrade (positioned)21,4625.951.97
index crx upgrade (prefetch)240.010.00
index fast full scans (full)00.000.00
index fast full scans (rowid ranges)00.000.00
index fetch by key1,245,207345.32114.30
index scans kdiixs11,065,167295.3997.78
java call heap collected bytes00.000.00
java call heap collected count00.000.00
java call heap gc count00.000.00
java call heap live object count00.000.00
java call heap live object count max00.000.00
java call heap live size00.000.00
java call heap live size max00.000.00
java call heap object count00.000.00
java call heap object count max00.000.00
java call heap total size00.000.00
java call heap total size max00.000.00
java call heap used size00.000.00
java call heap used size max00.000.00
java session heap live size00.000.00
java session heap live size max00.000.00
java session heap used size00.000.00
java session heap used size max00.000.00
leaf node 90-10 splits120.000.00
leaf node splits710.020.01
lob reads7,9502.200.73
lob writes9,5712.650.88
lob writes unaligned9,5712.650.88
logical read bytes from cache91,316,428,80025,323,925.368,382,268.11
logons cumulative1,9950.550.18
max cf enq hold time290.010.00
messages received51,79014.364.75
messages sent51,79014.364.75
min active SCN optimization applied on CR2,2440.620.21
no buffer to keep pinned count2880.080.03
no work - consistent read gets6,822,3871,891.99626.25
non-idle wait count383,149106.2635.17
opened cursors cumulative1,273,848353.26116.93
parse count (describe)00.000.00
parse count (failures)140.000.00
parse count (hard)1,6190.450.15
parse count (total)528,074146.4548.47
parse time cpu3740.100.03
parse time elapsed9110.250.08
physical read IO requests89,48924.828.21
physical read bytes828,358,656229,720.9176,038.06
physical read total IO requests772,569214.2570.92
physical read total bytes620,245,106,688172,006,735.2056,934,560.92
physical read total multi block requests587,865163.0353.96
physical reads101,11828.049.28
physical reads cache100,22227.799.20
physical reads cache prefetch11,5693.211.06
physical reads direct8960.250.08
physical reads direct (lob)00.000.00
physical reads direct temporary tablespace4960.140.05
physical reads prefetch warmup00.000.00
physical write IO requests10,9343.031.00
physical write bytes205,586,43257,013.3518,871.53
physical write total IO requests37,92210.523.48
physical write total bytes1,538,419,712426,635.45141,217.16
physical write total multi block requests1,6670.460.15
physical writes25,0966.962.30
physical writes direct12,5673.491.15
physical writes direct (lob)180.000.00
physical writes direct temporary tablespace8890.250.08
physical writes from cache12,5293.471.15
physical writes non checkpoint20,0115.551.84
pinned buffers inspected10.000.00
pinned cursors current10.000.00
prefetch clients - default00.000.00
prefetch warmup blocks aged out before use00.000.00
prefetch warmup blocks flushed out before use00.000.00
prefetched blocks aged out before use00.000.00
process last non-idle time3,6211.000.33
queries parallelized40.000.00
recursive calls2,006,880556.55184.22
recursive cpu usage7,0071.940.64
redo KB read598,776,175166,052.9654,963.85
redo blocks checksummed by FG (exclusive)191,54053.1217.58
redo blocks written276,03876.5525.34
redo blocks written (group 0)00.000.00
redo blocks written (group 1)00.000.00
redo buffer allocation retries40.000.00
redo entries147,87241.0113.57
redo log space requests40.000.00
redo ordering marks4,9221.360.45
redo size133,206,64436,940.9412,227.52
redo size for direct writes95,010,23626,348.298,721.34
redo subscn max counts2,0670.570.19
redo synch long waits120.000.00
redo synch time1,6280.450.15
redo synch time (usec)17,390,1804,822.651,596.31
redo synch time overhead (usec)4,450,238,0771,234,142.62408,503.59
redo synch time overhead count ( 2ms)3,9331.090.36
redo synch time overhead count ( 8ms)340.010.00
redo synch time overhead count ( 32ms)240.010.00
redo synch time overhead count (128ms)50.000.00
redo synch time overhead count (inf)80.000.00
redo synch writes4,0251.120.37
redo wastage3,177,876881.29291.71
redo write finish time25,930,8987,191.172,380.29
redo write gather time110,16430.5510.11
redo write info find4,0041.110.37
redo write info find fail00.000.00
redo write schedule time150,77341.8113.84
redo write size count ( 4KB)8,6152.390.79
redo write size count ( 8KB)6330.180.06
redo write size count ( 16KB)3350.090.03
redo write size count ( 32KB)800.020.01
redo write size count ( 128KB)2310.060.02
redo write size count ( 256KB)1050.030.01
redo write size count ( 512KB)480.010.00
redo write size count (1024KB)270.010.00
redo write size count (inf)300.010.00
redo write time2,5950.720.24
redo write time (usec)25,950,6457,196.652,382.10
redo write total time26,068,8627,229.432,392.96
redo write worker delay (usec)00.000.00
redo writes10,1042.800.93
redo writes (group 0)00.000.00
redo writes (group 1)00.000.00
redo writes adaptive all10,1042.800.93
redo writes adaptive worker00.000.00
rollback changes - undo records applied30.000.00
rollbacks only - consistent read gets6010.170.06
root node splits90.000.00
rows fetched via callback245,08267.9722.50
securefile allocation bytes147,45640.8913.54
securefile allocation chunks180.000.00
securefile bytes non-transformed204,22656.6418.75
securefile direct write bytes147,45640.8913.54
securefile direct write ops180.000.00
securefile number of non-transformed flushes590.020.01
segment cfs allocations00.000.00
segment chunks allocation from disepnser180.000.00
segment dispenser allocations180.000.00
segment dispenser load empty00.000.00
segment dispenser load tasks10.000.00
segment prealloc bytes00.000.00
segment prealloc ops70.000.00
segment prealloc tasks10.000.00
segment prealloc time (ms)00.000.00
segment total chunk allocation00.000.00
session connect time00.000.00
session cursor cache hits120,43133.4011.05
session logical reads11,158,9233,094.601,024.32
shared hash latch upgrades - no wait126,11534.9711.58
shared hash latch upgrades - wait3110.090.03
shared io pool buffer get success180.000.00
sorts (disk)00.000.00
sorts (memory)428,736118.9039.36
sorts (rows)17,023,9394,721.091,562.69
sql area evicted7540.210.07
sql area purged2570.070.02
summed dirty queue length2100.060.02
switch current to new buffer8,7192.420.80
table fetch by rowid9,209,8962,554.09845.41
table fetch continued row2,4180.670.22
table scan blocks gotten303,30284.1127.84
table scan disk non-IMC rows gotten12,870,5223,569.261,181.43
table scan rows gotten12,889,0563,574.401,183.13
table scans (direct read)00.000.00
table scans (long tables)6,2271.730.57
table scans (rowid ranges)5,5221.530.51
table scans (short tables)13,7923.821.27
total cf enq hold time2290.060.02
total number of cf enq holders460.010.00
total number of times SMON posted1120.030.01
transaction rollbacks720.020.01
transaction tables consistent read rollbacks00.000.00
transaction tables consistent reads - undo records applied00.000.00
undo change vector size12,540,1003,477.631,151.10
user calls147,43940.8913.53
user commits3,3150.920.30
user logons cumulative1650.050.02
user logouts cumulative1670.050.02
user rollbacks7,5792.100.70
workarea executions - onepass00.000.00
workarea executions - optimal301,09483.5027.64
write clones created in background4260.120.04
write clones created in foreground30.000.00


Back to Instance Activity Statistics
Back to Top

Instance Activity Stats - Absolute Values

StatisticBegin ValueEnd Value
logons current345343
opened cursors current3,8103,789
session cursor cache count658,092668,081
session pga memory1,116,825,7841,116,610,472
session pga memory max1,443,001,1441,373,841,960
session uga memory3,891,701,7364,058,210,880
session uga memory max66,121,251,36867,760,230,848
workarea memory allocated4,8574,857


Back to Instance Activity Statistics
Back to Top

Instance Activity Stats - Thread Activity

StatisticTotalper Hour
log switches (derived)11.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 Tm(ms)
Others577G189.47163.863M1G1.69.286M97K0.02
Buffer Cache Reads783M24.70.217M0M0.000M88.7K0.81
LGWR0M0.000M269M6.07.075M10.1K2.53
DBWR0M0.000M97M2.23.027M0 
Direct Writes0M0.000M66M0.51.018M20.00
Direct Reads7M0.12.002M0M0.020M0 
Streams AQ0M0.000M0M0.000M50.00
TOTAL:577.8G214.30164.082M1.4G10.51.406M195.8K0.51


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
Log File575.6G163.96163.464M268M6.06.074M0.0021.99
Control File1.4G25.48.399M66M1.16.018M0.0012.00
Data File782M24.78.217M187M2.93.052M0.553.73
Archive Log0M0.000M936M0.26.26M  
Temp File7M0.09.002M6M0.10.002M0.0010.94
TOTAL:577.8G214.30164.081M1.4G10.51.406M0.2721.98


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 Tm(ms)
Others 577G189.48163.866M1G1.69.286M95.7K0.01
Others (Log File) 575.6G163.96163.467M0M0.000M36400.07
Others (Control File) 1.4G25.47.399M65M1.15.018M91.9K0.01
Others (Archive Log) 0M0.000M936M0.26.26M0 
Others (Data File) 1M0.040M32M0.28.009M1550.01
Buffer Cache Reads 783M24.71.217M0M0.000M88.6K0.80
Buffer Cache Reads (Data File) 783M24.71.217M0M0.000M88.6K0.80
LGWR 0M0.000M269M6.07.075M180.89
LGWR (Log File) 0M0.000M268M6.06.074M80.75
LGWR (Control File) 0M0.000M1M0.010M101.00
DBWR 0M0.000M97M2.23.027M0 
DBWR (Data File) 0M0.000M97M2.23.027M0 
Direct Writes 0M0.000M66M0.51.018M20.00
Direct Writes (Data File) 0M0.000M66M0.51.018M20.00
Direct Reads 7M0.12.002M0M0.020M0 
Direct Reads (Data File) 7M0.12.002M0M0.020M0 
Streams AQ 0M0.000M0M0.000M50.00
Streams AQ (Data File) 0M0.000M0M0.000M50.00
TOTAL: 577.8G214.30164.085M1.4G10.51.406M184.3K0.39


Back to IO Stats
Back to Top

Tablespace IO Stats

TablespaceReadsAv Rds/sAv Rd(ms)Av Blks/Rd 1-bk Rds/sAv 1-bk Rd(ms)% Opt ReadsWritesWrites avg/sAv Writes(ms)Buffer WaitsAv Buf Wt(ms)
SYSAUX 65,960180.481.00180.480.00 1,24607.2600.00
APPS_TS_TX_DATA 19,37451.411.5651.210.00 5,47324.85770.39
SYSTEM 2,13412.681.0812.600.00 645015.602910.14
APPS_TS_TX_IDX 1,44404.491.0004.470.00 38503.40335.76
APPS_TS_INTERFACE 1303.851.0003.850.00 1,650010.1800.00
APPS_UNDOTS1 1602.501.0002.500.00 1,03105.04250.40
TEMP1 31100.582.8600.00  37001.5900.00
APPS_TS_ARCHIVE 3608.611.0008.610.00 71013.8000.00
APPS_TS_MEDIA 6101.801.0001.800.00 2102.8600.00
APPS_TS_SEED 50010.201.00010.200.00 300.0075.71
APPS_TS_QUEUES 3003.001.3002.500.00 1502.0000.00
APPS_TS_TOOLS 901.111.0001.110.00 500.0000.00
APPS_TS_NOLOGGING 802.501.0001.250.00 500.0000.00
APPS_TS_SUMMARY 504.001.0004.000.00 200.0000.00
CTXD 504.001.0002.000.00 200.0000.00
XXMT_TS_INT_DATA 502.001.0004.000.00 200.0000.00
APPS_UNDOTS2 502.001.0002.000.00 100.0000.00
ILMTSDEMO_LOWCOST 303.331.0003.330.00 100.0000.00
UNDOTBS1 300.001.0000.000.00 100.0000.00
USERS 303.331.0003.330.00 100.0000.00
ODM 200.001.0000.000.00 100.0000.00
OLAP 205.001.0005.000.00 100.0000.00
OWAPUB 205.001.0005.000.00 100.0000.00
PORTAL 205.001.0005.000.00 100.0000.00
PRTG 200.001.0000.000.00 1010.0000.00
TABLEAU 200.001.0000.000.00 100.0000.00


Back to IO Stats
Back to Top

File IO Stats

TablespaceFilenameReadsAv Rds/sAv Rd(ms)Av Blks/Rd 1-bk Rds/sAv 1-bk Rd(ms)% Opt ReadsWritesWrites avg/sBuffer WaitsAv Buf Wt(ms)
APPS_TS_ARCHIVE/app/PMTG/db/apps_st/data/D01/a_archive03.dbf 100.001.0000.000.00 1000.00
APPS_TS_ARCHIVE/app/PMTG/db/apps_st/data/D01/a_archive04.dbf 100.001.0000.000.00 1000.00
APPS_TS_ARCHIVE/app/PMTG/db/apps_st/data/D01/a_archive05.dbf 100.001.0000.000.00 1000.00
APPS_TS_ARCHIVE/app/PMTG/db/apps_st/data/a_archive01.dbf 30010.001.00010.000.00 67000.00
APPS_TS_ARCHIVE/app/PMTG/db/apps_st/data/a_archive02.dbf 303.331.0003.330.00 1000.00
APPS_TS_INTERFACE/app/PMTG/db/apps_st/data/D01/a_int02.dbf 502.001.0002.000.00 353000.00
APPS_TS_INTERFACE/app/PMTG/db/apps_st/data/D01/a_int03.dbf 100.001.0000.000.00 264000.00
APPS_TS_INTERFACE/app/PMTG/db/apps_st/data/D01/a_int04.dbf 205.001.0005.000.00 296000.00
APPS_TS_INTERFACE/app/PMTG/db/apps_st/data/D01/a_int05.dbf 405.001.0007.500.00 343000.00
APPS_TS_INTERFACE/app/PMTG/db/apps_st/data/a_int01.dbf 1010.001.0000.000.00 394000.00
APPS_TS_MEDIA/app/PMTG/db/apps_st/data/D01/media03.dbf 402.501.0002.500.00 1000.00
APPS_TS_MEDIA/app/PMTG/db/apps_st/data/D01/media04.dbf 500.001.0000.000.00 1000.00
APPS_TS_MEDIA/app/PMTG/db/apps_st/data/D01/media05.dbf 502.001.0002.000.00 1000.00
APPS_TS_MEDIA/app/PMTG/db/apps_st/data/D01/media06.dbf 502.001.0002.000.00 1000.00
APPS_TS_MEDIA/app/PMTG/db/apps_st/data/D01/media07.dbf 502.001.0000.000.00 1000.00
APPS_TS_MEDIA/app/PMTG/db/apps_st/data/D01/media08.dbf 502.001.0002.000.00 1000.00
APPS_TS_MEDIA/app/PMTG/db/apps_st/data/D01/media09.dbf 502.001.0002.000.00 1000.00
APPS_TS_MEDIA/app/PMTG/db/apps_st/data/D01/media10.dbf 502.001.0002.000.00 1000.00
APPS_TS_MEDIA/app/PMTG/db/apps_st/data/D01/media11.dbf 100.001.00010.000.00 1000.00
APPS_TS_MEDIA/app/PMTG/db/apps_st/data/D01/media12.dbf 100.001.0000.000.00 1000.00
APPS_TS_MEDIA/app/PMTG/db/apps_st/data/D01/media13.dbf 1010.001.00010.000.00 1000.00
APPS_TS_MEDIA/app/PMTG/db/apps_st/data/D01/media14.dbf 100.001.0000.000.00 1000.00
APPS_TS_MEDIA/app/PMTG/db/apps_st/data/D01/media15.dbf 200.001.0000.000.00 1000.00
APPS_TS_MEDIA/app/PMTG/db/apps_st/data/D01/media16.dbf 200.001.0000.000.00 1000.00
APPS_TS_MEDIA/app/PMTG/db/apps_st/data/D01/media17.dbf 200.001.0000.000.00 1000.00
APPS_TS_MEDIA/app/PMTG/db/apps_st/data/D01/media18.dbf 200.001.0000.000.00 1000.00
APPS_TS_MEDIA/app/PMTG/db/apps_st/data/D01/media19.dbf 205.001.0005.000.00 1000.00
APPS_TS_MEDIA/app/PMTG/db/apps_st/data/D01/media20.dbf 200.001.0005.000.00 1000.00
APPS_TS_MEDIA/app/PMTG/db/apps_st/data/D01/media21.dbf 200.001.0000.000.00 1000.00
APPS_TS_MEDIA/app/PMTG/db/apps_st/data/a_media01.dbf 1010.001.0000.000.00 1000.00
APPS_TS_MEDIA/app/PMTG/db/apps_st/data/a_media02.dbf 303.331.0003.330.00 1000.00
APPS_TS_NOLOGGING/app/PMTG/db/apps_st/data/D01/a_nolog02.dbf 402.501.0002.500.00 1000.00
APPS_TS_NOLOGGING/app/PMTG/db/apps_st/data/D01/a_nolog03.dbf 100.001.0000.000.00 1000.00
APPS_TS_NOLOGGING/app/PMTG/db/apps_st/data/D01/a_nolog04.dbf 100.001.0000.000.00 1000.00
APPS_TS_NOLOGGING/app/PMTG/db/apps_st/data/D01/a_nolog05.dbf 100.001.0000.000.00 1000.00
APPS_TS_NOLOGGING/app/PMTG/db/apps_st/data/a_nolog01.dbf 1010.001.0000.000.00 1000.00
APPS_TS_QUEUES/app/PMTG/db/apps_st/data/D01/a_queue03.dbf 402.501.0000.000.00 1000.00
APPS_TS_QUEUES/app/PMTG/db/apps_st/data/D01/a_queue04.dbf 100.001.0000.000.00 1000.00
APPS_TS_QUEUES/app/PMTG/db/apps_st/data/D01/a_queue05.dbf 1010.001.0000.000.00 1000.00
APPS_TS_QUEUES/app/PMTG/db/apps_st/data/D01/a_queue07.dbf 100.001.00010.000.00 1000.00
APPS_TS_QUEUES/app/PMTG/db/apps_st/data/D01/a_queue08.dbf 300.004.0000.000.00 2000.00
APPS_TS_QUEUES/app/PMTG/db/apps_st/data/D01/a_queue09.dbf 100.001.0000.000.00 1000.00
APPS_TS_QUEUES/app/PMTG/db/apps_st/data/D01/queue10.dbf 200.001.0005.000.00 1000.00
APPS_TS_QUEUES/app/PMTG/db/apps_st/data/D01/queue11.dbf 200.001.0000.000.00 1000.00
APPS_TS_QUEUES/app/PMTG/db/apps_st/data/a_queue01.dbf 1010.001.0000.000.00 1000.00
APPS_TS_QUEUES/app/PMTG/db/apps_st/data/a_queue02.dbf 1404.291.0003.570.00 5000.00
APPS_TS_SEED/app/PMTG/db/apps_st/data/D01/a_ref03.dbf 402.501.0002.500.00 1000.00
APPS_TS_SEED/app/PMTG/db/apps_st/data/a_ref01.dbf 5012.001.00012.000.00 1000.00
APPS_TS_SEED/app/PMTG/db/apps_st/data/a_ref02.dbf 41010.731.00010.730.00 1075.71
APPS_TS_SUMMARY/app/PMTG/db/apps_st/data/a_summ01.dbf 205.001.0005.000.00 1000.00
APPS_TS_SUMMARY/app/PMTG/db/apps_st/data/a_summ02.dbf 303.331.0003.330.00 1000.00
APPS_TS_TOOLS/app/PMTG/db/apps_st/data/D01/apps_ts_tools02.dbf 402.501.0002.500.00 1000.00
APPS_TS_TOOLS/app/PMTG/db/apps_st/data/D01/apps_ts_tools03.dbf 100.001.0000.000.00 1000.00
APPS_TS_TOOLS/app/PMTG/db/apps_st/data/D01/apps_ts_tools04.dbf 100.001.0000.000.00 1000.00
APPS_TS_TOOLS/app/PMTG/db/apps_st/data/D01/apps_ts_tools05.dbf 100.001.0000.000.00 1000.00
APPS_TS_TOOLS/app/PMTG/db/apps_st/data/apps_ts_tools01.dbf 200.001.0000.000.00 1000.00
APPS_TS_TX_DATA/app/PMTG/db/apps_st/data/D01/a_txn_data13.dbf 1,09800.961.3000.850.00 50000.00
APPS_TS_TX_DATA/app/PMTG/db/apps_st/data/D01/a_txn_data14.dbf 1,12001.101.3800.890.00 71000.00
APPS_TS_TX_DATA/app/PMTG/db/apps_st/data/D01/a_txn_data15.dbf 1,56901.362.0200.900.00 760530.00
APPS_TS_TX_DATA/app/PMTG/db/apps_st/data/D01/a_txn_data16.dbf 1,13301.542.1801.120.00 82000.00
APPS_TS_TX_DATA/app/PMTG/db/apps_st/data/D01/a_txn_data17.dbf 1,05501.061.2901.010.00 93000.00
APPS_TS_TX_DATA/app/PMTG/db/apps_st/data/D01/a_txn_data18.dbf 1,10001.191.3001.160.00 131010.00
APPS_TS_TX_DATA/app/PMTG/db/apps_st/data/D01/a_txn_data19.dbf 1,11901.211.2901.160.00 163000.00
APPS_TS_TX_DATA/app/PMTG/db/apps_st/data/D01/a_txn_data21.dbf 30502.071.7702.150.00 529000.00
APPS_TS_TX_DATA/app/PMTG/db/apps_st/data/D01/a_txn_data22.dbf 43301.571.5301.630.00 465000.00
APPS_TS_TX_DATA/app/PMTG/db/apps_st/data/D01/a_txn_data23.dbf 59501.461.4101.490.00 409000.00
APPS_TS_TX_DATA/app/PMTG/db/apps_st/data/D01/a_txn_data24.dbf 40100.801.5900.760.00 5270161.88
APPS_TS_TX_DATA/app/PMTG/db/apps_st/data/D01/a_txn_data25.dbf 43500.851.4700.830.00 440060.00
APPS_TS_TX_DATA/app/PMTG/db/apps_st/data/D01/a_txn_data26.dbf 29201.061.6401.040.00 43000.00
APPS_TS_TX_DATA/app/PMTG/db/apps_st/data/D01/a_txn_data27.dbf 29101.001.6501.010.00 52000.00
APPS_TS_TX_DATA/app/PMTG/db/apps_st/data/D01/a_txn_data28.dbf 36601.071.5201.060.00 61000.00
APPS_TS_TX_DATA/app/PMTG/db/apps_st/data/D01/a_txn_data29.dbf 68501.501.2601.540.00 173000.00
APPS_TS_TX_DATA/app/PMTG/db/apps_st/data/D01/a_txn_data30.dbf 37101.051.5001.070.00 80000.00
APPS_TS_TX_DATA/app/PMTG/db/apps_st/data/D01/a_txn_data31.dbf 35501.071.5201.120.00 95000.00
APPS_TS_TX_DATA/app/PMTG/db/apps_st/data/D01/a_txn_data32.dbf 37201.051.5501.100.00 129000.00
APPS_TS_TX_DATA/app/PMTG/db/apps_st/data/D01/a_txn_data33.dbf 1,06001.511.2101.530.00 711000.00
APPS_TS_TX_DATA/app/PMTG/db/apps_st/data/D01/system12_02.dbf 30401.351.7401.330.00 208000.00
APPS_TS_TX_DATA/app/PMTG/db/apps_st/data/a_txn_data01.dbf 41304.141.9603.250.00 226010.00
APPS_TS_TX_DATA/app/PMTG/db/apps_st/data/a_txn_data02.dbf 29902.111.2601.950.00 13000.00
APPS_TS_TX_DATA/app/PMTG/db/apps_st/data/a_txn_data03.dbf 33501.791.3001.660.00 62000.00
APPS_TS_TX_DATA/app/PMTG/db/apps_st/data/a_txn_data10.dbf 67601.071.3401.030.00 50000.00
APPS_TS_TX_DATA/app/PMTG/db/apps_st/data/a_txn_data11.dbf 24200.701.0000.740.00 1000.00
APPS_TS_TX_DATA/app/PMTG/db/apps_st/data/a_txn_data12.dbf 29100.761.1500.730.00 6000.00
APPS_TS_TX_DATA/app/PMTG/db/apps_st/data/a_txn_data4.dbf 52203.603.3702.100.00 59000.00
APPS_TS_TX_DATA/app/PMTG/db/apps_st/data/a_txn_data5.dbf 42202.462.6201.410.00 12000.00
APPS_TS_TX_DATA/app/PMTG/db/apps_st/data/a_txn_data6.dbf 77301.531.4601.440.00 420000.00
APPS_TS_TX_DATA/app/PMTG/db/apps_st/data/a_txn_data7.dbf 31401.151.1600.860.00 1000.00
APPS_TS_TX_DATA/app/PMTG/db/apps_st/data/a_txn_data8.dbf 41701.251.0301.180.00 29000.00
APPS_TS_TX_DATA/app/PMTG/db/apps_st/data/a_txn_data9.dbf 21101.041.0701.050.00 6000.00
APPS_TS_TX_IDX/app/PMTG/db/apps_st/data/D01/a_txn_ind[3~30.dbf 1103.641.0002.730.00 1000.00
APPS_TS_TX_IDX/app/PMTG/db/apps_st/data/D01/a_txn_ind14.dbf 18903.811.0003.760.00 4000.00
APPS_TS_TX_IDX/app/PMTG/db/apps_st/data/D01/a_txn_ind15.dbf 7603.951.0003.820.00 14000.00
APPS_TS_TX_IDX/app/PMTG/db/apps_st/data/D01/a_txn_ind16.dbf 6603.791.0003.790.00 60110.00
APPS_TS_TX_IDX/app/PMTG/db/apps_st/data/D01/a_txn_ind17.dbf 17804.441.0004.440.00 6056.00
APPS_TS_TX_IDX/app/PMTG/db/apps_st/data/D01/a_txn_ind18.dbf 11303.271.0003.360.00 3010.00
APPS_TS_TX_IDX/app/PMTG/db/apps_st/data/D01/a_txn_ind18_02.dbf 3803.161.0003.160.00 1000.00
APPS_TS_TX_IDX/app/PMTG/db/apps_st/data/D01/a_txn_ind19.dbf 2502.801.0002.800.00 1000.00
APPS_TS_TX_IDX/app/PMTG/db/apps_st/data/D01/a_txn_ind20.dbf 2105.241.0005.240.00 1000.00
APPS_TS_TX_IDX/app/PMTG/db/apps_st/data/D01/a_txn_ind21.dbf 3003.671.0003.330.00 1000.00
APPS_TS_TX_IDX/app/PMTG/db/apps_st/data/D01/a_txn_ind22.dbf 3303.031.0003.330.00 1000.00
APPS_TS_TX_IDX/app/PMTG/db/apps_st/data/D01/a_txn_ind23.dbf 1802.781.0002.780.00 1000.00
APPS_TS_TX_IDX/app/PMTG/db/apps_st/data/D01/a_txn_ind24.dbf 1008.001.0008.000.00 1000.00
APPS_TS_TX_IDX/app/PMTG/db/apps_st/data/D01/a_txn_ind25.dbf 1707.651.0007.650.00 2000.00
APPS_TS_TX_IDX/app/PMTG/db/apps_st/data/D01/a_txn_ind26.dbf 904.441.0003.330.00 1000.00
APPS_TS_TX_IDX/app/PMTG/db/apps_st/data/D01/a_txn_ind27.dbf 1407.141.0007.140.00 3000.00
APPS_TS_TX_IDX/app/PMTG/db/apps_st/data/D01/a_txn_ind28.dbf 1403.571.0003.570.00 1000.00
APPS_TS_TX_IDX/app/PMTG/db/apps_st/data/D01/a_txn_ind29.dbf 1303.081.0002.310.00 3000.00
APPS_TS_TX_IDX/app/PMTG/db/apps_st/data/a_txn_ind01.dbf 7205.001.0005.000.00 17010.00
APPS_TS_TX_IDX/app/PMTG/db/apps_st/data/a_txn_ind02.dbf 3306.361.0006.360.00 140169.38
APPS_TS_TX_IDX/app/PMTG/db/apps_st/data/a_txn_ind03.dbf 3908.721.0008.720.00 35000.00
APPS_TS_TX_IDX/app/PMTG/db/apps_st/data/a_txn_ind04.dbf 3007.001.0006.670.00 11080.00
APPS_TS_TX_IDX/app/PMTG/db/apps_st/data/a_txn_ind05.dbf 12015.001.00015.000.00 27000.00
APPS_TS_TX_IDX/app/PMTG/db/apps_st/data/a_txn_ind06.dbf 9204.351.0004.350.00 47010.00
APPS_TS_TX_IDX/app/PMTG/db/apps_st/data/a_txn_ind07.dbf 3106.131.0006.130.00 16000.00
APPS_TS_TX_IDX/app/PMTG/db/apps_st/data/a_txn_ind08.dbf 2603.081.0003.460.00 11000.00
APPS_TS_TX_IDX/app/PMTG/db/apps_st/data/a_txn_ind09.dbf 13204.091.0004.090.00 46000.00
APPS_TS_TX_IDX/app/PMTG/db/apps_st/data/a_txn_ind10.dbf 5302.641.0002.830.00 58000.00
APPS_TS_TX_IDX/app/PMTG/db/apps_st/data/a_txn_ind11.dbf 2508.801.0008.800.00 48000.00
APPS_TS_TX_IDX/app/PMTG/db/apps_st/data/a_txn_ind12.dbf 2406.251.0006.250.00 4000.00
APPS_UNDOTS1/app/PMTG/db/apps_st/data/D01/undo01.dbf 100.001.0000.000.00 4080180.00
APPS_UNDOTS1/app/PMTG/db/apps_st/data/D01/undo02.dbf 303.331.0003.330.00 80000.00
APPS_UNDOTS1/app/PMTG/db/apps_st/data/D01/undo03.dbf 402.501.0002.500.00 1180110.00
APPS_UNDOTS1/app/PMTG/db/apps_st/data/D01/undo04.dbf 402.501.0002.500.00 380060.00
APPS_UNDOTS1/app/PMTG/db/apps_st/data/D01/undo05.dbf 402.501.0002.500.00 45000.00
APPS_UNDOTS2/app/PMTG/db/apps_st/data/D01/apps_undots2_01.dbf 502.001.0002.000.00 1000.00
CTXD/app/PMTG/db/apps_st/data/ctxd01.dbf 205.001.0000.000.00 1000.00
CTXD/app/PMTG/db/apps_st/data/ctxd02.dbf 303.331.0003.330.00 1000.00
ILMTSDEMO_LOWCOST/app/PMTG/db/tech_st/12.1.0/dbs/ILMTSDEMO_LOWCOST.dbf 303.331.0003.330.00 1000.00
ODM/app/PMTG/db/apps_st/data/odm.dbf 200.001.0000.000.00 1000.00
OLAP/app/PMTG/db/apps_st/data/olap.dbf 205.001.0005.000.00 1000.00
OWAPUB/app/PMTG/db/apps_st/data/owad01.dbf 205.001.0005.000.00 1000.00
PORTAL/app/PMTG/db/apps_st/data/portal01.dbf 205.001.0005.000.00 1000.00
PRTG/app/PMTG/db/apps_st/data/prtg01.dbf 200.001.0000.000.00 1000.00
SYSAUX/app/PMTG/db/apps_st/data/sysaux01.dbf 41,848120.431.00120.430.00 548000.00
SYSAUX/app/PMTG/db/apps_st/data/sysaux02.dbf 6,17020.571.0020.560.00 339000.00
SYSAUX/app/PMTG/db/apps_st/data/sysaux03.dbf 17,94250.561.0050.550.00 359000.00
SYSTEM/app/PMTG/db/apps_st/data/system01.dbf 9604.061.0104.000.00 57000.00
SYSTEM/app/PMTG/db/apps_st/data/system02.dbf 9504.421.0404.410.00 40000.00
SYSTEM/app/PMTG/db/apps_st/data/system03.dbf 9705.881.2405.590.00 760660.00
SYSTEM/app/PMTG/db/apps_st/data/system04.dbf 9204.131.2203.670.00 65030.00
SYSTEM/app/PMTG/db/apps_st/data/system05.dbf 9105.271.2905.340.00 58070.00
SYSTEM/app/PMTG/db/apps_st/data/system06.dbf 69701.661.0401.610.00 52000.00
SYSTEM/app/PMTG/db/apps_st/data/system07.dbf 4406.361.9106.190.00 26000.00
SYSTEM/app/PMTG/db/apps_st/data/system08.dbf 3707.031.1106.940.00 24000.00
SYSTEM/app/PMTG/db/apps_st/data/system09.dbf 47501.371.0601.370.00 39000.00
SYSTEM/app/PMTG/db/apps_st/data/system10.dbf 12102.311.0002.230.00 29010.00
SYSTEM/app/PMTG/db/apps_st/data/system11.dbf 20902.491.0002.490.00 10102140.19
SYSTEM/app/PMTG/db/apps_st/data/system12.dbf 3105.481.0005.480.00 33000.00
SYSTEM/app/PMTG/db/apps_st/data/system13.dbf 1902.631.0002.630.00 10000.00
SYSTEM/app/PMTG/db/apps_st/data/system14.dbf 3003.331.0003.330.00 35000.00
TABLEAU/app/PMTG/db/apps_st/data/tableau01.dbf 200.001.0000.000.00 1000.00
TEMP1/app/PMTG/db/apps_st/data/temp1_01.dbf 21000.001.3300.00  25200 
TEMP1/app/PMTG/db/apps_st/data/temp1_04.dbf 10101.786.0300.00  11800 
UNDOTBS1/app/PMTG/db/tech_st/12.1.0/dbs/E:ORADATALFICHEUNDOTBS01.DBF 300.001.0000.000.00 1000.00
USERS/app/PMTG/db/tech_st/12.1.0/dbs/E:ORADATALFICHEUSERS01.DBF 303.331.0003.330.00 1000.00
XXMT_TS_INT_DATA/app/PMTG/db/apps_st/data/XXMTDBF.dbf 200.001.0005.000.00 1000.00
XXMT_TS_INT_DATA/app/PMTG/db/apps_st/data/XXMTDBF01.dbf 303.331.0003.330.00 1000.00


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
D328,4899911,140,141100,21212,52900434


Back to Buffer Pool Statistics
Back to Top

Checkpoint Activity

MTTR WritesLog Size WritesLog Ckpt WritesOther Settings WritesAutotune Ckpt WritesThread Ckpt Writes
004,56206,3380


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
B018484429899586339738399586100000  
E018535493111535339738311535100000  


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
D2560.103116.18124,845177728.00
D5120.196311.1786,181153390.00
D7680.299410.5881,668150549.00
D1,0240.3812610.3980,169149605.00
D1,2800.481571.4411,10416130.00
D1,5360.571891.3410,32815642.00
D1,7920.672201.289,90315374.00
D2,0480.772521.249,56115159.00
D2,3040.862831.058,07214222.00
D2,5600.963151.017,75814024.00
D2,6721.003281.007,71713998.00
D2,8161.053460.987,53313882.00
D3,0721.153780.947,23413694.00
D3,3281.254090.866,62513311.00
D3,5841.344410.796,06512958.00
D3,8401.444720.775,96012892.00
D4,0961.535040.745,70612732.00
D4,3521.635350.735,60412668.00
D4,6081.725660.715,45812576.00
D4,8641.825980.695,36212516.00
D5,1201.926290.695,31212484.00


Back to Advisory Statistics
Back to Top

PGA Aggr Summary

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


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)
B2,0489171,276.934.740.37100.000.00209,710
E2,0489181,291.074.740.37100.000.00209,710


Back to Advisory Statistics
Back to Top

PGA Aggr Target Histogram

Low Optimal High OptimalTotal ExecsOptimal Execs1-Pass ExecsM-Pass Execs
2K4K296,184296,18400
64K128K2,6772,67700
128K256K80080000
256K512K44144100
512K1024K71271200
1M2M21621600
2M4M232300
4M8M141400
8M16M1100


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
2560.13390,826.35397.75100.001413,451,158
5120.25390,826.35196.17100.00513,444,227
1,0240.50390,826.350.00100.00013,437,483
1,5360.75390,826.350.00100.00013,437,483
2,0481.00390,826.350.00100.00013,437,483
2,4581.20390,826.350.00100.00013,437,483
2,8671.40390,826.350.00100.00013,437,483
3,2771.60390,826.350.00100.00013,437,483
3,6861.80390,826.350.00100.00013,437,483
4,0962.00390,826.350.00100.00013,437,483
6,1443.00390,826.350.00100.00013,437,483
8,1924.00390,826.350.00100.00013,437,483
12,2886.00390,826.350.00100.00013,437,483
16,3848.00390,826.350.00100.00013,437,483


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,2000.699611,0042,118,5990.442,650,047982.59188,289
1,3760.8027118,5172,786,6630.581,981,983734.88200,330
1,5520.9044624,3273,776,7170.79991,929367.79218,270
1,5680.9146225,1433,866,4910.81902,155334.50219,901
1,5840.9247825,9593,956,3610.83812,285301.18221,532
1,6000.9349426,7754,046,2170.85722,429267.86223,163
1,6160.9451027,5914,136,1740.87632,472234.51224,794
1,6320.9452628,4074,226,1760.89542,470201.14226,426
1,6480.9554229,2234,316,0990.91452,547167.80228,057
1,6640.9655830,0394,406,1970.92362,449134.39229,688
1,6800.9757430,8554,496,0810.94272,565101.06231,319
1,6960.9859031,6714,585,8650.96182,78167.77232,950
1,7120.9960632,4874,675,8950.9892,75134.39234,582
1,7281.0062233,3034,765,9491.002,6971.00236,218
1,7441.0163834,1194,765,9591.002,6871.00236,219
1,7601.0265434,9354,765,9591.002,6871.00236,219
1,7761.0367035,7514,765,9591.002,6871.00236,219
1,7921.0468636,5674,765,9591.002,6871.00236,219
1,8081.0570237,3834,765,9591.002,6871.00236,219
1,8241.0671838,1994,765,9591.002,6871.00236,219
1,8401.0673439,0154,765,9591.002,6871.00236,219
1,8561.0775039,8314,765,9591.002,6871.00236,219
1,8721.0876640,6474,765,9591.002,6871.00236,219
1,9041.1079842,2804,765,9591.002,6871.00236,219
2,0801.2097451,2634,765,9591.002,6871.00236,219
2,2561.311,15060,2464,765,9591.002,6871.00236,219
2,4321.411,32669,2294,765,9591.002,6871.00236,219
2,6081.511,50278,2124,765,9591.002,6871.00236,219
2,7841.611,67887,1954,765,9591.002,6871.00236,219
2,9601.711,85496,1784,765,9591.002,6871.00236,219
3,1361.812,030105,1614,765,9591.002,6871.00236,219
3,3121.922,206111,6464,765,9591.002,6871.00236,219
3,4882.022,382116,2014,765,9591.002,6871.00236,219


Back to Advisory Statistics
Back to Top

SGA Target Advisory

SGA Target Size (M)SGA Size FactorEst DB Time (s)Est Physical Reads
6000.13247,3367,713,987
1,2000.25247,3367,713,987
1,8000.382,978,806127,897,133
2,4000.50330,423127,897,133
3,0000.63303,24983,663,589
3,6000.75258,37010,577,419
4,2000.88257,8829,792,135
4,8001.00256,5997,713,987
5,4001.13256,0346,784,452
6,0001.25255,4445,841,802
6,6001.38255,2905,588,784
7,2001.50255,2135,439,132
7,8001.63255,2135,439,132
8,4001.75255,2135,439,132
9,0001.88255,2135,439,132
9,6002.00255,2135,439,132


Back to Advisory Statistics
Back to Top

Streams Pool Advisory

Size for Est (MB)Size FactorEst Spill CountEst Spill Time (s)Est Unspill CountEst Unspill Time (s)
160.500000
321.000000
481.500000
642.000000
802.500000
963.000000
1123.500000
1284.000000
1444.500000
1605.000000
1765.500000
1926.000000
2086.500000
2247.000000
2407.500000
2568.000000
2728.500000
2889.000000
3049.500000
32010.000000


Back to Advisory Statistics
Back to Top

Java Pool Advisory

Java Pool Size(M)JP 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
160.251619824,6351.002,6971.00246,303
320.503241524,6351.002,6971.00246,303
480.754053224,6351.002,6971.00246,303
641.004053224,6351.002,6971.00246,303
801.254053224,6351.002,6971.00246,303
961.504053224,6351.002,6971.00246,303
1121.754053224,6351.002,6971.00246,303
1282.004053224,6351.002,6971.00246,303
1442.254053224,6351.002,6971.00246,303
1602.504053224,6351.002,6971.00246,303
1762.754053224,6351.002,6971.00246,303
1923.004053224,6351.002,6971.00246,303
2083.254053224,6351.002,6971.00246,303


Back to Advisory Statistics
Back to Top

Wait Statistics

Back to Top

Buffer Wait Statistics

ClassWaitsTotal Wait Time (s)Avg Time (ms)
data block32901
segment header8000
undo block701
undo header2000


Back to Wait Statistics
Back to Top

Enqueue Activity

Enqueue Type (Request Reason)RequestsSucc GetsFailed GetsWaitsWt Time (s)Av Wt Time(ms)
RO-Multiple Object Reuse (fast object reuse) 2,7902,790025301.86
CR-Reuse Block Range (block range reuse ckpt) 2,0642,064020101.73
HV-Direct Loader High Water Mark 43343309101.95
PR-Process Startup 17817801030.00
TX-Transaction (allocate ITL entry) 505004800.27
PS-PX Process Reservation 6,4496,42807800.08
TX-Transaction (row lock contention) 8333503300.18
TX-Transaction 14,16214,20602000.20
TM-DML 83,50583,4733000 
JS-Job Scheduler 17,71917,719000 
JS-Job Scheduler (queue lock) 17,71917,719000 
HW-Segment High Water Mark 5,1275,127000 
TT-Tablespace 3,6013,601000 
CF-Controlfile Transaction 3,3773,377000 
UL-User-defined 2,135532,08200 
SE-Session Migration 2,1282,174000 
JS-Job Scheduler (q mem clnup lck) 1,9621,962000 
TS-Temporary Segment 1,3401,343000 
CI-Cross-Instance Call Invocation 1,2641,264000 
MR-Media Recovery 1,2521,254000 
XR-Quiesce / Force Logging (database force logging) 1,2011,201000 
WL-Being Written Redo Log 1,0211,021000 
CU-Cursor 773773000 
AE-Edition Lock (lock) 627627000 
FB-Format Block 468467000 
SR-Synchronized Replication 454454000 
TO-Temp Object 421421000 
PW-Buffer Cache PreWarm (flush prewarm buffers) 380380000 
DV-Diana Versioning 362362000 
DL-Direct Loader Index Creation 352352000 
IS-Instance State 280280000 
SJ-KTSJ Slave Task Cancel (Slave Task Cancel) 235237000 
PV-KSV slave startup (syncstart) 145145000 
JD-Job Queue Date 122122000 
KM-Scheduler 8989000 
TH-Threshold Chain (metric threshold evaluation) 6060000 
WF-AWR Flush 2423100 
WT-AWR CDB-Wide Table Lock 2222000 
MS-Materialized View Refresh Log 2121000 
WR-LNS archiving log 1313000 
TA-Instance Undo 1212000 
TQ-Queue table enqueue (INI contention) 1111000 
JI-Materialized View 99000 
MN-LogMiner 88000 
TD-KTF map table enqueue (KTF dump entries) 88000 
AF-Advisor Framework (task serialization) 77000 
DW-In memory Dispenser 77000 
OD-Online DDLs (Serializing DDLs) 61500 
SQ-Sequence Cache 66000 
TK-Auto Task Serialization (Auto Task Serialization) 66000 
RS-Reclaimable Space (read alert level) 44000 
TQ-Queue table enqueue (TM contention) 33000 
US-Undo Segment 33000 
DR-Distributed Recovery 22000 
MW-MWIN Schedule 22000 
FH-Flush Stat 11000 
FU-DBFUS 11000 
JQ-Job Queue 11000 
SH-Active Session History Flushing 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
13.9814,7591,2051221/31.10/00/0/0/0/0/0


Back to Undo Statistics
Back to Top

Undo Segment Stats

End TimeNum Undo BlocksNumber of TransactionsMax Qry Len (s)Max Tx ConcyTun Ret (mins)STO/ OOS uS/uR/uU/ eS/eR/eU
11-Apr 17:52794821,2013310/00/0/0/0/0/0
11-Apr 17:421,22210,72260012210/00/0/0/0/0/0
11-Apr 17:321367901,2034310/00/0/0/0/0/0
11-Apr 17:22304696024210/00/0/0/0/0/0
11-Apr 17:121217141,2053310/00/0/0/0/0/0
11-Apr 17:022,3871,5826045220/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 05150.00
AQ Coord jobx_kwsbgsgn latch1200.00 00 
AQ Sharded master pool latch1200.00 00 
AQ deq hash table latch330.00 00 
AQ deq log cmt cbk chunk latch60.00 00 
AQ deq log statistics latch10.00 00 
AQ dequeue txn counter latch32,9220.360.0000 
AQ disk delete txn counter latch30.00 00 
AQ ht cmt cbk chunk latch80.00 00 
ASM db client latch3,3710.00 00 
ASM map operation hash table10.00 00 
ASM network state latch570.00 00 
ASM remote client latch570.00 00 
AWR Alerted Metric Element list50,4230.00 00 
Change Notification Hash table latch1,6050.00 00 
Consistent RBA10,1000.010.0000 
DML lock allocation166,6380.000.0000 
Event Group Locks2,3380.210.0000 
FAL Queue980.00 00 
FIB s.o chain latch6,1330.00 00 
FOB s.o list latch8,8520.070.0000 
File State Object Pool Parent Latch10.00 00 
I/O Staticstics latch10.00 00 
ILM Stats Stripe Latch1030.00 00 
ILM Stats main anchor latch42,1430.040.0000 
ILM access tracking extent10.00 00 
ILM activity tracking latch5252.670.0000 
IM area sb latch10.00 00 
IM area scb latch10.00 00 
IM emb latch10.00 00 
IM seg hdr latch10.00 00 
IPC stats buffer allocation latch10.00 00 
In memory undo latch10.00 00 
JS Sh mem access219.521.0000 
JS mem alloc latch590.00 00 
JS queue access latch600.00 00 
JS queue state obj latch35,4380.00 00 
JS slv state obj latch510.00 00 
KCNIBR - invalid block range tree10.00 00 
KFC FX Hash Latch10.00 00 
KFC Hash Latch10.00 00 
KFCL LE Freelist10.00 00 
KGNFS-NFS:SHM structure10.00 00 
KGNFS-NFS:SVR LIST10.00 00 
KJC message pool free list10.00 00 
KJC message pool pending avail list10.00 00 
KJCT flow control latch10.00 00 
KMG MMAN ready and startup request latch1,2020.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 id table parent latch10.00 00 
KSFS ksfs_node latch10.00 00 
KSFSD name cache parent latch10.00 00 
KSXR hang analysis phase 1 latch10.00 00 
KSXR hang analysis phase 2 latch10.00 00 
KTF sga latch1150.00 01,2090.00
KTILM latch26,7520.260.0000 
KWQMN job cache list latch190.00 00 
KWQP Prop Status4510.00 00 
KWQS pqsubs latch770.00 00 
KWQS pqueue ctx latch230.00 00 
Locator state objects pool parent latch10.00 00 
Lsod array latch10.00 00 
MQL Tracking Latch0  0720.00
Memory Management Latch10.00 01,2020.00
Memory Queue60.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 Latch400.00 00 
Mutex10.00 00 
Mutex Stats10.00 00 
OS process2,2660.00 00 
OS process allocation8,5790.00 00 
OS process: request allocation6870.00 00 
PL/SQL warning settings342,2740.000.0000 
PX hash array latch10.00 00 
Parent latch for dependency tracking10.00 00 
Policy Hash Table Latch20.00 00 
QMT10.00 00 
RTT parent context10.00 00 
Real-time descriptor latch71,2430.210.0300 
Report Request stats latch1850.00 00 
Report Request struct latch1090.00 00 
Request holder compeltion list latch3570.00 00 
Retry Ht elm latch10.00 00 
Retry bkt latch10.00 00 
SGA Blackbox latch160.00 00 
SGA IO buffer pool latch1930.00 03300.00
SGA Logging Bkt Latch10.00 00 
SGA Logging Log Latch16,9970.00 00 
SGA blob parent10.00 00 
SGA bucket locks10.00 00 
SGA heap locks10.00 00 
SGA pool locks10.00 00 
SQL memory manager latch10.00 01,2010.00
SQL memory manager workarea list latch99,1520.020.0000 
SR Stats Stripe Latch10.00 00 
SR Stats main anchor latch97,5170.010.0000 
Sched IM Job latch580.00 00 
Sched InMem Job Cache10.00 00 
Shared B-Tree2,4920.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 
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 latch43,5080.00 00 
active service list24,4982.360.0301,7020.00
alert log latch140.00 00 
archive destination3890.00 00 
archive process latch2160.00 00 
begin backup scn array2,3690.300.0000 
bq:time manger info latch1290.00 00 
buffer pool10.00 00 
bufq statistics50.00 00 
business card10.00 00 
cache buffer handles40,2780.00 00 
cache buffers chains19,146,8040.010.040125,2530.00
cache buffers lru chain39,7050.000.000153,5010.05
cache table scan latch1,2680.240.3301,2680.08
call allocation10,4395.290.0900 
cas latch10.00 00 
change notification client cache latch10.00 00 
channel handle pool latch6950.00 00 
channel operations parent latch4,1170.190.0000 
checkpoint queue latch1,335,2300.000.00012,4950.04
client/application info14,2841.180.0500 
compile environment latch2,0540.050.0000 
constraint object allocation60.00 00 
corrupted undo seg latch812.470.0000 
cp handoff latch10.00 00 
cp pool latch10.00 00 
cp server hash latch10.00 00 
cp sga latch570.00 00 
cp srv type state latch1720.00 00 
cp srv type wait latch10.00 00 
cvmap freelist lock10.00 00 
deferred cleanup latch570.00 00 
dml lock allocation1,4074.760.0000 
done queue latch10.00 00 
dtp latch3440.00 00 
dummy allocation3,9926.360.0000 
eighth spare latch - X parent10.00 00 
eleventh spare latch - children10.00 00 
enqueue freelist latch10.00 0130,4100.04
enqueue hash chains339,5820.120.0100 
enqueues410.00 00 
error message lists3,4684.120.0000 
event stats latch1,9960.00 00 
fast space usage latch180.00 00 
fifteenth spare latch - children10.00 00 
file cache latch3,9770.380.0000 
first Audit Vault latch1650.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 element10.00 00 
gcs commit scn state10.00 00 
gcs opaque info freelist10.00 00 
gcs partitioned table hash10.00 00 
gcs pcm hashed value bucket hash10.00 00 
gcs resource freelist10.00 00 
gcs resource hash10.00 00 
gcs resource scan list10.00 00 
gcs resource validate list10.00 00 
gcs shadows freelist10.00 00 
ges cached resource lists10.00 00 
ges domain table10.00 00 
ges enqueue table freelist10.00 00 
ges group table10.00 00 
ges process hash list10.00 00 
ges process parent latch10.00 00 
ges resource hash list10.00 00 
ges resource scan list10.00 00 
ges resource table freelist10.00 00 
ges timeout list10.00 00 
ges value block free list10.00 00 
global KZLD latch for auth type mem in SGA1650.00 00 
global ctx hash table latch5900.00 00 
global tx hash mapping10.00 00 
granule from data transfer cache10.00 00 
granule operation10.00 00 
hash table column usage latch2330.00 06,4210.00
hash table modification latch1870.00 00 
heartbeat check10.00 00 
imc buf hdl lat10.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 
interrupt manipulation12,3724.110.0000 
intra txn parallel recovery10.00 00 
io pool granule list360.00 00 
io pool granule metadata list730.00 00 
job workq parent latch210.00 0200.00
job_queue_processes free list latch780.00 00 
job_queue_processes parameter latch100.00 00 
k2q lock allocation10.00 00 
kcb DW scan objtemp hash table latch10.00 00 
kcbtsemkid latch10.00 00 
kcn buffer chains10.00 00 
kdlx hb parent latch10.00 00 
kgb parent10.00 00 
kgnfs mount latch10.00 00 
kjci objects freelist latch10.00 00 
kjci process context latch10.00 046,7790.00
kjoedcso state object freelist latch570.00 00 
kjoeq omni enqueue hash bucket latch10.00 00 
kjoer owner hash bucket10.00 00 
kokc descriptor allocation latch1220.00 00 
krso process latch1340.00 00 
ksfv messages10.00 00 
ksi resource reuse count10.00 00 
ksim group membership cache10.00 00 
kss move lock2910.00 00 
ksuosstats global area1,6230.00 00 
ksv allocation latch6360.00 00 
ksv class latch5790.00 00 
ksv msg queue latch10.00 00 
ksz_so allocation latch6870.00 00 
ktfbn latch7690.00 00 
ktm global data4720.00 00 
ktm prv jrnls10.00 00 
ktmpj HT ls10.00 00 
kwqbsn:qsga2,2170.00 00 
kwslbmdl: metadata latch1200.00 00 
kwslbql: queue latch10.00 00 
kwsptQcachLt: queue cache latch10.00 00 
kwsptTrncTsksLt: trunc task latch10.00 00 
kwsptjobAdPtLt: AdPt list latch1,0330.00 00 
kxfxscanrate_latch10.00 00 
lgwr LWN SCN12,7970.030.0000 
list of block allocation1,5310.390.0000 
loader state object freelist1,7320.460.0000 
lob segment dispenser latch390.00 00 
lob segment hash table latch1200.00 00 
lob segment query latch10.00 00 
lock DBA buffer during media recovery10.00 00 
log write info0  010,0980.00
log write slave phase10.00 00 
logical standby cache10.00 00 
logminer context allocation140.00 00 
logminer local10.00 00 
logminer work area10.00 00 
longop free list parent8860.00 05970.00
managed standby latch1210.00 00 
mapped buffers lru chain10.00 00 
message bitmap latch10.00 00 
message pool operations parent latch1,4650.00 00 
messages160,7410.160.0000 
msg queue latch10.00 00 
multiblock read objects2,6580.190.0000 
name-service namespace bucket10.00 00 
ncodef allocation latch570.00 00 
ninth spare latch - X parent10.00 00 
object queue header freelist16,6540.00 00 
object queue header operation448,2810.000.0000 
object queue memory10.00 00 
object stats modification2,1040.620.0000 
parallel query alloc buffer31,0031.680.0004360.00
parallel query stats2,24510.380.0000 
parameter table management45,6897.520.0000 
peshm10.00 00 
pesom_free_list16,6610.00 00 
pesom_hash_node16,6610.00 00 
pkey global statistics10.00 00 
post/wait queue28,8120.160.00027,3950.57
process allocation8650.00 03430.00
process group creation6870.00 00 
process pkey statistics list10.00 00 
process queue19,0490.570.0000 
process queue reference762,7950.010.00053,6908.61
qmn task queue latch3,3810.00 00 
query server freelists18,8690.290.0000 
query server process4,0340.00 080.00
queued dump request120.00 00 
queuing load statistics10.00 00 
readredo stats and histogram40,1580.00 00 
recovery domain hash list10.00 00 
redo allocation37,7260.390.010147,5330.53
redo copy10.00 0147,7890.09
redo transport task latch1180.00 00 
redo writing75,0670.020.0600 
resmgr group change latch2,6150.650.0000 
resmgr:active threads4,9170.00 01,2630.00
resmgr:actses change group2,5020.00 00 
resmgr:actses change state9260.00 00 
resmgr:free threads list4,2658.070.0000 
resmgr:plan CPU method10.00 00 
resmgr:pq event array1,1880.00 00 
resmgr:resource group CPU method84,5662.830.0000 
resmgr:schema config7990.00 0600.00
resmgr:session queuing10.00 00 
rm cas latch10.00 00 
row cache objects684,7040.290.0000 
rules engine rule set statistics1000.00 00 
second Audit Vault latch10.00 00 
sequence cache1,3600.00 00 
session allocation27,1940.010.00023,4720.01
session idle bit316,3480.090.0000 
session queue latch10.00 00 
session state list latch4,7355.200.0000 
session statistics3,9930.030.0000 
session switching4020.00 00 
session timer1,2020.00 00 
seventh spare latch - X parent10.00 00 
sga hash table parent latch10.00 00 
shard latch10.00 00 
shared pool326,1943.720.0000 
shared pool sim alloc140.00 00 
shared pool simulator4,8380.00 00 
sim partition latch10.00 00 
simulator hash latch567,5940.00 00 
simulator lru latch12,5510.00 0542,3910.17
sixth spare latch - X parent10.00 00 
sort extent pool2,7580.00 00 
space background state object latch160.00 00 
space background task latch1,4600.890.0802,5100.04
state object free list20.00 00 
statistics aggregation1120.00 00 
subscriber Ht bkt10.00 00 
tablespace key chain8580.00 00 
temp lob duration state obj allocation420.00 00 
temporary table state object allocation1130.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 shared parent2 lmid10.00 00 
thirteenth spare latch - children10.00 00 
threshold alerts latch2240.00 00 
transaction allocation49,5760.200.0000 
twelfth spare latch - children10.00 00 
twenty-fifth spare latch - S par10.00 00 
twenty-first spare latch - S par10.00 00 
twenty-fourth spare latch - S par10.00 00 
twenty-second spare latch - S par10.00 00 
twenty-third spare latch - S par10.00 00 
undo global data78,9620.100.0000 
virtual circuit buffers10.00 00 
virtual circuit holder10.00 00 
virtual circuit queues10.00 00 


Back to Latch Statistics
Back to Top

Latch Sleep Breakdown

Latch NameGet RequestsMissesSleepsSpin Gets
shared pool326,19412,1223412,088
parameter table management45,6893,43513,434
resmgr:resource group CPU method84,5662,39712,396
cache buffers chains19,146,8041,497601,446
active service list24,49857815563
call allocation10,43955250505
enqueue hash chains339,5824173414
client/application info14,2841688160
Real-time descriptor latch71,2431505145
redo allocation37,7261471146
redo writing75,06717116
space background task latch1,46013112
cache table scan latch1,268312
JS Sh mem access21220


Back to Latch Statistics
Back to Top

Latch Miss Sources

Latch NameWhereNoWait Misses SleepsWaiter Sleeps
JS Sh mem accessjsksGetShMemLatch022
Real-time descriptor latchkeomgAddNewEntry055
active service listkswslogon: session logout0130130
active service listkswslogon: session login022
cache buffers chainskcbrls: pin release08187
cache buffers chainskcbgtcr: slow path excl02743
cache buffers chainskcbgtcr: fast path exam0226
cache buffers chainskcbgcur: fast path excl0146
cache buffers chainskcbgtcr: fast path pin0113
cache buffers chainskcbzwb0116
cache buffers chainskcbchg: cr pin cleanout033
cache buffers chainskcbgcur: fast path shr030
cache buffers chainskcbgcur: slow path011
cache buffers chainskcbzgb: scan from tail. nowait010
cache table scan latchkcbz_find_table_scan_read_buffer010
call allocationksuxds05050
client/application infoksuinfos_modact08790
client/application infokskirefrattrmap041
enqueue hash chainsksqrcl021
enqueue hash chainsksqgtl3012
parameter table managementkspcpy010
parameter table managementkspptval012
redo allocationkcrfw_redo_gen: redo allocation 1010
redo writingkcrfwcr010
resmgr:resource group CPU methodkgkprrpicknext011
shared poolkghalo02728
shared poolkghfre065
shared poolkghupr1011
space background task latchktsjCreateTask010


Back to Latch Statistics
Back to Top

Mutex Sleep Summary

Mutex TypeLocationSleepsWait Time (ms)
Library Cachekgllkdl1 8544911
Library Cachekglget1 115535
Library Cachekglhdgn1 6214616
Library Cachekglpndl1 9514013
Cursor StatkkocsStoreBindAwareStats [KKSSTALOC8]1408
Library Cachekglpnal1 901133
Library Cachekgllkc1 579316
Library Cachekglhdgn2 1068215
Cursor Pinkksfbc [KKSCHLFSP2]7797
Library Cachekglpin1 4752
Library Cachekglget2 25834
Library Cachekglhdgh1 64194
Cursor PinkksLockDelete [KKSCHLPIN6]22
Library Cachekglobpn1 7110
Cursor Pinkksxsccmp [KKSCHLPIN5]11


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
APPLSYSAPPS_TS_TX_DATA FND_CONCURRENT_REQUESTS TABLE3694411688102,014,19218.05
SYSSYSTEM I_OBJ1 INDEX228584822858481,075,2329.64
SYSSYSTEM COL$ TABLE228585822858531,042,0169.34
SYSSYSTEM I_OBJ# INDEX22858542285854742,4806.65
APAPPS_TS_INTERFACE AP_INTERFACE_REJECTS_N1 INDEX3159731597665,5845.96


Back to Segment Statistics
Back to Top

Segments by Physical Reads

OwnerTablespace NameObject NameSubobject NameObj. TypeObj#Dataobj#Physical Reads%Total
SYSSYSAUX I_WRI$_OPTSTAT_HH_ST INDEX2257497225749754,13053.53
APPLSYSAPPS_TS_TX_DATA WF_LOCAL_ROLESHZ_PARTYTABLE PARTITION13588926505271,3581.34
APPLSYSAPPS_TS_TX_DATA WF_UR_ASSIGNMENTS_STAGE TABLE21081226494591,2241.21
APPLSYSAPPS_TS_TX_DATA WF_LOCAL_USER_ROLES_STAGE TABLE13607226494531,0261.01
APPLSYSAPPS_TS_TX_DATA WF_LOCAL_ROLESPER_ROLETABLE PARTITION13588326508673990.39


Back to Segment Statistics
Back to Top

Segments by Physical Read Requests

OwnerTablespace NameObject NameSubobject NameObj. TypeObj#Dataobj#Phys Read Requests%Total
SYSSYSAUX I_WRI$_OPTSTAT_HH_ST INDEX2257497225749754,13060.49
APPLSYSAPPS_TS_TX_DATA WF_UR_ASSIGNMENTS_STAGE TABLE21081226494591390.16
APPLSYSAPPS_TS_TX_IDX FND_USER_PREFERENCES_U1 INDEX1322241322241380.15
SYSSYSAUX HEAT_MAP_STAT$ TABLE225877722587771100.12
APPLSYSAPPS_TS_TX_DATA WF_LOCAL_ROLESHZ_PARTYTABLE PARTITION1358892650527890.10


Back to Segment Statistics
Back to Top

Segments by UnOptimized Reads

OwnerTablespace NameObject NameSubobject NameObj. TypeObj#Dataobj#UnOptimized Reads%Total
SYSSYSAUX I_WRI$_OPTSTAT_HH_ST INDEX2257497225749754,13060.49
APPLSYSAPPS_TS_TX_DATA WF_UR_ASSIGNMENTS_STAGE TABLE21081226494591390.16
APPLSYSAPPS_TS_TX_IDX FND_USER_PREFERENCES_U1 INDEX1322241322241380.15
SYSSYSAUX HEAT_MAP_STAT$ TABLE225877722587771100.12
APPLSYSAPPS_TS_TX_DATA WF_LOCAL_ROLESHZ_PARTYTABLE PARTITION1358892650527890.10


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
APPLSYSAPPS_TS_TX_DATA WF_LOCAL_ROLESHZ_PARTYTABLE PARTITION13588926505271,4375.73
APPLSYSAPPS_TS_TX_DATA WF_UR_ASSIGNMENTS_STAGE TABLE21081226494591,3045.20
APPLSYSAPPS_TS_TX_DATA WF_LOCAL_USER_ROLES_STAGE TABLE13607226494531,0974.37
APAPPS_TS_INTERFACE AP_INVOICES_INTERFACE TABLE31791317918803.51
** MISSING **APPS_TS_TX_DATA ** MISSING: 2651482/2651482** MISSING **UNDEFINED265148226514827392.94


Back to Segment Statistics
Back to Top

Segments by Physical Write Requests

OwnerTablespace NameObject NameSubobject NameObj. TypeObj#Dataobj#Phys Write Requests%Total
APAPPS_TS_INTERFACE AP_INVOICES_INTERFACE TABLE31791317918217.51
** MISSING **APPS_TS_TX_DATA ** MISSING: 2651482/2651482** MISSING **UNDEFINED265148226514822081.90
APPLSYSAPPS_TS_TX_DATA WF_LOCAL_ROLESHZ_PARTYTABLE PARTITION13588926505271741.59
APPLSYSAPPS_TS_TX_DATA WF_UR_ASSIGNMENTS_STAGE TABLE21081226494591551.42
** MISSING **APPS_TS_TX_DATA ** MISSING: 2651489/2651489** MISSING **UNDEFINED265148926514891451.33


Back to Segment Statistics
Back to Top

Segments by Direct Physical Writes

OwnerTablespace NameObject NameSubobject NameObj. TypeObj#Dataobj#Direct Writes%Total
APPLSYSAPPS_TS_TX_DATA WF_LOCAL_ROLESHZ_PARTYTABLE PARTITION13588926505271,35710.80
APPLSYSAPPS_TS_TX_DATA WF_UR_ASSIGNMENTS_STAGE TABLE21081226494591,2199.70
APPLSYSAPPS_TS_TX_DATA WF_LOCAL_USER_ROLES_STAGE TABLE13607226494531,0258.16
** MISSING **APPS_TS_TX_DATA ** MISSING: 2651482/2651482** MISSING **UNDEFINED265148226514826625.27
** MISSING **APPS_TS_TX_DATA ** MISSING: 2651486/2651486** MISSING **UNDEFINED265148626514864453.54


Back to Segment Statistics
Back to Top

Segments by Table Scans

OwnerTablespace NameObject NameSubobject NameObj. TypeObj#Dataobj#Table Scans%Total
APPLSYSAPPS_TS_TX_DATA WF_LOCAL_ROLES_STAGE TABLE135971265135572911.71
APPLSYSAPPS_TS_TX_DATA WF_LOCAL_ROLES_STAGE TABLE13597126512605919.49
APPLSYSAPPS_TS_TX_DATA FND_USER TABLE123184712318475078.14
APPLSYSAPPS_TS_TX_DATA WF_LOCAL_ROLESPER_ROLETABLE PARTITION13588326508674707.55
APPLSYSAPPS_TS_TX_DATA WF_UR_ASSIGNMENTS_STAGE TABLE21081226503964567.32


Back to Segment Statistics
Back to Top

Segments by DB Blocks Changes

OwnerTablespace NameObject NameSubobject NameObj. TypeObj#Dataobj#DB Block Changes% of Capture
APPLSYSTEMP1 MO_GLOB_ORG_ACCESS_TMP TABLE135449511168025,32830.65
APPLSYSAPPS_TS_TX_DATA FND_CONCURRENT_QUEUES TABLE36834368345,1046.18
SYSSYSTEM SEG$ TABLE1483,8884.71
APAPPS_TS_INTERFACE AP_INVOICES_INTERFACE TABLE31791317913,2163.89
APAPPS_TS_INTERFACE AP_INTERFACE_REJECTS_N1 INDEX31597315972,1762.63


Back to Segment Statistics
Back to Top

Segments by Row Lock Waits

OwnerTablespace NameObject NameSubobject NameObj. TypeObj#Dataobj#Row Lock Waits% of Capture
APPLSYSAPPS_TS_TX_DATA FND_CONCURRENT_REQUESTS TABLE3694411688105060.24
SYSSYSTEM I_FILE#_BLOCK# INDEX993339.76


Back to Segment Statistics
Back to Top

Segments by ITL Waits

OwnerTablespace NameObject NameSubobject NameObj. TypeObj#Dataobj#ITL Waits% of Capture
SYSSYSTEM SEG$ TABLE14850100.00


Back to Segment Statistics
Back to Top

Segments by Buffer Busy Waits

OwnerTablespace NameObject NameSubobject NameObj. TypeObj#Dataobj#Buffer Busy Waits% of Capture
SYSSYSTEM SEG$ TABLE14822460.87
SYSSYSTEM I_FILE#_BLOCK# INDEX996617.93
APPLSYSAPPS_TS_TX_DATA WF_LOCAL_USER_ROLES_STAGE TABLE13607226494535013.59
APPLSYSAPPS_TS_TX_DATA WF_LOCAL_USER_ROLES_STAGE TABLE1360722650390102.72
APPLSYSAPPS_TS_TX_DATA WF_LOCAL_ROLESHZ_PARTYTABLE PARTITION135889265052761.63


Back to Segment Statistics
Back to Top

Dictionary Cache Stats

CacheGet RequestsPct MissScan ReqsPct MissMod ReqsFinal Usage
dc_awr_control9050.000 214
dc_free_extents7,4060.000 01,073
dc_global_oids14,3540.000 0144
dc_histogram_data1680.000 01,201
dc_histogram_defs5,62429.570 75019,208
dc_object_grants960.000 0226
dc_objects32,1672.670 1,9639,366
dc_profiles6540.000 03
dc_props3,8790.000 060
dc_rollback_segments22,8910.000 0516
dc_segments14,0013.140 1,8518,946
dc_sequences650.000 6531
dc_table_scns600.000 128
dc_tablespace_quotas5,3600.000 08
dc_tablespaces22,1150.000 027
dc_users116,1720.000 0292
outstanding_alerts30.000 04
sch_lj_objs1100.000 025
sch_lj_oids422.380 082



Back to Top

Library Cache Activity

NamespaceGet RequestsPct MissPin RequestsPct MissReloadsInvali- dations
ACCOUNT_STATUS6600.000 00
APP CONTEXT1260.002,4760.0000
BODY5,2180.00535,5040.0000
CLUSTER140.00140.0000
DBLINK6620.000 00
DIRECTORY1800.001800.0000
EDITION5600.005600.0000
INDEX3,5930.503,95118.303470
OBJECT ID177100.000 00
QUEUE1,1670.0045,4370.0000
SCHEMA4610.000 00
SQL AREA11,9584.451,736,9920.179751,124
SQL AREA BUILD98018.370 00
SQL AREA STATS1,17317.991,17317.9900
SUBSCRIPTION30.0030.0000
SUMMARY1050.00930.0006
TABLE/PROCEDURE260,8410.00941,0410.154540
TRIGGER4,2070.004,2370.0000
USER PRIVILEGE770.00770.0000



Back to Top

Memory Statistics

Back to Top

Memory Dynamic Components

ComponentBegin Snap Size (Mb)Current Size (Mb)Min Size (Mb)Max Size (Mb)Oper CountLast Op Typ/Mod
ASM Buffer Cache0.000.000.000.000STA/
DEFAULT 16K buffer cache0.000.000.000.000STA/
DEFAULT 2K buffer cache0.000.000.000.000STA/
DEFAULT 32K buffer cache0.000.000.000.000STA/
DEFAULT 4K buffer cache0.000.000.000.000STA/
DEFAULT 8K buffer cache0.000.000.000.000STA/
DEFAULT buffer cache2,672.002,672.002,592.002,672.000GRO/DEF
Data Transfer Cache0.000.000.000.000STA/
In-Memory Area0.000.000.000.000STA/
KEEP buffer cache0.000.000.000.000STA/
PGA Target2,048.002,048.002,048.002,048.000STA/
RECYCLE buffer cache0.000.000.000.000STA/
SGA Target4,800.004,800.004,800.004,800.000STA/
Shared IO Pool256.00256.00256.00256.000STA/
java pool64.0064.0064.0064.000SHR/DEF
large pool32.0032.0032.0032.000STA/
shared pool1,728.001,728.001,728.001,808.000SHR/DEF
streams pool32.0032.0032.0032.000SHR/DEF


Back to Memory Statistics
Back to Top

Memory Resize Operations Summary

No data exists for this section of the report.

Back to Memory Statistics
Back to Top

Memory Resize Ops

No data exists for this section of the report.

Back to Memory Statistics
Back to Top

Process Memory Summary

CategoryAlloc (MB)Used (MB)Avg Alloc (MB)Std Dev Alloc (MB)Max Alloc (MB)Hist Max Alloc (MB)Num ProcNum Alloc
BOther795.67 2.313.764346345345
PL/SQL178.14128.180.520.40331345345
Freeable149.130.000.781.6116 192192
JAVA125.42123.554.050.22593131
SQL28.887.360.090.22253320313
EOther797.44 2.324.184346343343
PL/SQL176.80127.280.520.40331343343
Freeable143.060.000.761.6116 189189
JAVA125.42123.524.050.22593131
SQL27.908.040.090.22219320312


Back to Memory Statistics
Back to Top

SGA Memory Summary

SGA regionsBegin Size (Bytes)End Size (Bytes) (if different)
Database Buffers3,070,230,528 
Fixed Size3,801,872 
Redo Buffers12,972,032 
Variable Size4,429,188,336 

Back to Memory Statistics
Back to Top

SGA breakdown difference

PoolNameBegin MBEnd MB% Diff
javaJOXLE34.4134.410.00
javafree memory28.5728.570.00
javajoxs heap1.021.020.00
largePX msg pool7.817.810.00
largefree memory24.1924.190.00
sharedKGLH0318.23317.98-0.08
sharedKGLHD69.0268.97-0.07
sharedKGLS20.9922.477.02
sharedKKSSP27.2326.75-1.74
sharedKQR L PO27.9028.100.71
sharedMultiblock Index SO28.5328.530.00
sharedPLMCD32.8832.880.00
sharedSQLA431.69427.09-1.07
shareddb_block_hash_buckets22.0022.000.00
shareddbktb: trace buffer18.7518.750.00
sharedevent statistics per sess25.9425.940.00
sharedfree memory348.69352.150.99
sharedprivate strands25.9825.980.00
streamsKTG hash buckets3.153.150.00
streamsfree memory28.8428.84-0.00
 buffer_cache2,672.002,672.000.00
 fixed_sga3.633.630.00
 log_buffer12.3712.370.00
 shared_io_pool256.00256.000.00


Back to Memory Statistics
Back to Top

Replication Statistics (GoldenGate, XStream)

Back to Top

Replication System Resource Usage

No data exists for this section of the report.

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

Replication SGA Usage

No data exists for this section of the report.

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

GoldenGate Capture

No data exists for this section of the report.

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

GoldenGate Capture Rate

No data exists for this section of the report.

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

GoldenGate Apply Reader

No data exists for this section of the report.

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

GoldenGate Apply Coordinator

No data exists for this section of the report.

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

GoldenGate Apply Server

No data exists for this section of the report.

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

GoldenGate Apply Coordinator Rate

No data exists for this section of the report.

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

GoldenGate Apply Reader and Server Rate

No data exists for this section of the report.

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

XStream Capture

No data exists for this section of the report.

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

XStream Capture Rate

No data exists for this section of the report.

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

XStream Apply Reader

No data exists for this section of the report.

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

XStream Apply Coordinator

No data exists for this section of the report.

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

XStream Apply Server

No data exists for this section of the report.

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

XStream Apply Coordinator Rate

No data exists for this section of the report.

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

XStream Apply Reader and Server Rate

No data exists for this section of the report.

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

Table Statistics by DML Operations

No data exists for this section of the report.

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

Table Statistics by Conflict Resolutions

No data exists for this section of the report.

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

Replication Large Transaction Statistics

No data exists for this section of the report.

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

Replication Long Running Transaction Statistics

No data exists for this section of the report.

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

Streams Statistics

Back to Top

Streams CPU/IO Usage

Session TypeFirst LogonCPU time(s)User IO Wait time(s)SYS IO Wait time(s)
QMON Slave09-Apr-21 11:03:000.060.000.00
QMON Coordinator09-Apr-21 11:03:000.030.000.00


Back to Streams Statistics
Back to Top

Streams Capture

No data exists for this section of the report.

Back to Streams Statistics
Back to Top

Streams Capture Rate

No data exists for this section of the report.

Back to Streams Statistics
Back to Top

Streams Apply

No data exists for this section of the report.

Back to Streams Statistics
Back to Top

Streams Apply Rate

No data exists for this section of the report.

Back to Streams Statistics
Back to Top

Buffered Queues

Queue NameEnq MsgsEnq Msgs/secDeq MsgsDeq Msgs/secSpill MsgsSpill Msgs/sec%Spill Msgs
APPLSYS.WF_CONTROL(139556) 00.0000.0000.00 


Back to Streams Statistics
Back to Top

Buffered Queue Subscribers

Subscriber/QueueEnq MsgsEnq Msgs/secDeq MsgsDeq Msgs/secSpill MsgsSpill Msgs/sec%Spill Msgs
WFBESCL_6850(23572)/APPLSYS.WF_CONTROL 00.0000.0000.00 
WFBESCL_6851(23573)/APPLSYS.WF_CONTROL 00.0000.0000.00 
WFBESCL_6852(23574)/APPLSYS.WF_CONTROL 00.0000.0000.00 


Back to Streams Statistics
Back to Top

Rule Set

No data exists for this section of the report.

Back to Streams Statistics
Back to Top

Persistent Queues

Queue NameEnq MsgsDeq Msgs%Exp Msgs%Delay MsgsEnq Time(s)Deq Time(s)%Transf Time%Eval Time
APPLSYS.FND_CP_GSM_IPC_AQ(2635713) 00  0.000.00  
APPLSYS.FND_CP_GSM_OPP_AQ(297178) 00  0.000.00  
APPLSYS.WF_CONTROL(139556) 110.000.000.056.410.000.00
APPLSYS.WF_DEFERRED(139552) 00  0.000.00  
APPLSYS.WF_NOTIFICATION_OUT(139530) 00  0.000.00  


Back to Streams Statistics
Back to Top

Persistent Queues Rate

Queue NameEnqueue Msgs/secDequeue Msgs/secAvg Enqueue sec / msgAvg Dequeue sec / msg
APPLSYS.FND_CP_GSM_IPC_AQ(2635713) 0.000.00  
APPLSYS.FND_CP_GSM_OPP_AQ(297178) 0.000.00  
APPLSYS.WF_CONTROL(139556) 0.000.000.056.41
APPLSYS.WF_DEFERRED(139552) 0.000.00  
APPLSYS.WF_NOTIFICATION_OUT(139530) 0.000.00  


Back to Streams Statistics
Back to Top

Persistent Queue Subscribers

Subscriber/QueueEnqueue MsgsDequeue MsgsExpire MsgsEnqueue Msgs/secDequeue Msgs/secExpire Msgs/sec
FNDCPGSMIPC_SERVICE_1481655(190)/APPLSYS.FND_CP_GSM_IPC_AQ 0000.000.000.00
FNDCPGSMIPC_SERVICE_1481656(192)/APPLSYS.FND_CP_GSM_IPC_AQ 0000.000.000.00
FNDCPGSMIPC_SERVICE_1481657(194)/APPLSYS.FND_CP_GSM_IPC_AQ 0000.000.000.00
FNDCPGSMIPC_SERVICE_1481658(196)/APPLSYS.FND_CP_GSM_IPC_AQ 0000.000.000.00
FNDCPGSMIPC_SERVICE_1481659(198)/APPLSYS.FND_CP_GSM_IPC_AQ 0000.000.000.00
FNDCPGSMIPC_SERVICE_1481660(200)/APPLSYS.FND_CP_GSM_IPC_AQ 0000.000.000.00
FNDCPGSMIPC_SERVICE_1481661(202)/APPLSYS.FND_CP_GSM_IPC_AQ 0000.000.000.00
FNDCPGSMIPC_SERVICE_1481662(204)/APPLSYS.FND_CP_GSM_IPC_AQ 0000.000.000.00
FNDCPGSMIPC_SERVICE_1481663(206)/APPLSYS.FND_CP_GSM_IPC_AQ 0000.000.000.00
FNDCPGSMIPC_SERVICE_1481664(208)/APPLSYS.FND_CP_GSM_IPC_AQ 0000.000.000.00
FNDCPGSMIPC_SERVICE_1481665(210)/APPLSYS.FND_CP_GSM_IPC_AQ 0000.000.000.00
FNDCPGSMIPC_SERVICE_1481666(212)/APPLSYS.FND_CP_GSM_IPC_AQ 0000.000.000.00
FNDCPGSMIPC_SERVICE_1481667(214)/APPLSYS.FND_CP_GSM_IPC_AQ 0000.000.000.00
FNDCPGSMIPC_SERVICE_1481668(216)/APPLSYS.FND_CP_GSM_IPC_AQ 0000.000.000.00
FNDCPGSMIPC_SERVICE_1481669(218)/APPLSYS.FND_CP_GSM_IPC_AQ 0000.000.000.00
FNDCPGSMIPC_SERVICE_1481670(220)/APPLSYS.FND_CP_GSM_IPC_AQ 0000.000.000.00
OPP1481666(24571)/APPLSYS.FND_CP_GSM_OPP_AQ 0000.000.000.00
OPP1481667(24569)/APPLSYS.FND_CP_GSM_OPP_AQ 0000.000.000.00
OPP1481668(24572)/APPLSYS.FND_CP_GSM_OPP_AQ 0000.000.000.00
OPP1481669(24570)/APPLSYS.FND_CP_GSM_OPP_AQ 0000.000.000.00
WFBESCL_6850(23572)/APPLSYS.WF_CONTROL 1100.000.000.00
WFBESCL_6851(23573)/APPLSYS.WF_CONTROL 1100.000.000.00
WFBESCL_6852(23574)/APPLSYS.WF_CONTROL 1100.000.000.00
WF_DEFERRED(1)/APPLSYS.WF_DEFERRED 0000.000.000.00
WF_NOTIFICATION_OUT(1)/APPLSYS.WF_NOTIFICATION_OUT 0000.000.000.00


Back to Streams Statistics
Back to Top

Resource Limit Stats

Resource NameCurrent UtilizationMaximum Utilization Initial Allocation Limit
smartio_overhead_memory0164,8880UNLIMITED
smartio_sessions010UNLIMITED



Back to Top

Shared Server Statistics

Back to Top

Shared Servers Activity

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


Back to Shared Server Statistics
Back to Top

Shared Servers Rates

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


Back to Shared Server Statistics
Back to Top

Shared Servers Utilization

No data exists for this section of the report.

Back to Shared Server Statistics
Back to Top

Shared Servers Common Queue

No data exists for this section of the report.

Back to Shared Server Statistics
Back to Top

Shared Servers Dispatchers

No data exists for this section of the report.

Back to Shared Server Statistics
Back to Top

init.ora Parameters

Back to Top

init.ora Parameters

Parameter NameBegin valueEnd value (if different)
O7_DICTIONARY_ACCESSIBILITYFALSE  
_b_tree_bitmap_plansFALSE  
_fast_full_scan_enabledFALSE  
_like_with_bind_as_equalityTRUE  
_optimizer_autostats_jobFALSE  
_sort_elimination_cost_ratio5  
_system_trig_enabledTRUE  
_trace_files_publicTRUE  
aq_tm_processes1  
audit_sys_operationsTRUE  
compatible12.1.0  
control_files/app/PMTG/db/apps_st/data/cntrl01.dbf, /app/PMTG/db/apps_st/data/cntrl02.dbf, /app/PMTG/db/apps_st/data/cntrl03.dbf  
cursor_sharingEXACT  
db_block_checkingFALSE  
db_block_checksumTRUE  
db_block_size8192  
db_files512  
db_namePMTG2  
diagnostic_dest/app/PMTG/db/tech_st/12.1.0/admin/PMTG_ofdb  
dml_locks10000  
fal_clientPMTGSTBY  
fal_serverPMTG  
heat_mapON  
job_queue_processes1000  
local_listener(ADDRESS=(PROTOCOL=TCP)(HOST=rh-testof7db.mauritiustelecom.com)(PORT=1551))  
log_archive_configDG_CONFIG=(PMTG, PMTGSTBY)  
log_archive_dest_1LOCATION=/app/PMTG/db/archive  
log_archive_dest_2SERVICE=PMTGSTBY LGWR ASYNC VALID_FOR=(ONLINE_LOGFILES, PRIMARY_ROLE) DB_UNIQUE_NAME=PMTGSTBY  
log_archive_format%t_%s_%r.dbf  
log_buffer10485760  
log_checkpoint_interval100000  
log_checkpoint_timeout1200  
log_checkpoints_to_alertTRUE  
max_dump_file_sizeUNLIMITED  
nls_compbinary  
nls_date_formatDD-MON-RR  
nls_length_semanticsBYTE  
nls_numeric_characters.,  
nls_sortbinary  
nls_territoryamerica  
olap_page_pool_size4194304  
open_cursors600  
optimizer_features_enable11.1.0.7  
optimizer_secure_view_mergingFALSE  
os_authent_prefix    
parallel_max_servers8  
parallel_min_servers0  
pga_aggregate_limit6442450944  
pga_aggregate_target2147483648  
plsql_code_typeINTERPRETED  
processes1200  
sec_case_sensitive_logonFALSE  
session_cached_cursors500  
sessions1824  
sga_max_size7516192768  
sga_target5033164800  
shared_pool_reserved_size94791270  
shared_pool_size419430400  
sql92_securityTRUE  
standby_file_managementAUTO  
undo_managementAUTO  
undo_tablespaceAPPS_UNDOTS1  
user_dump_dest/tmp  
utl_file_dir/usr/tmp, /usr/tmp/PMTG, /tmp, /app/PMTG/db/tech_st/12.1.0/appsutil/outbound/PMTG_ofdb, /usr/tmp, /D01/Bank, /D01/Bank/MUR, /D01/Bank/FOREX  
workarea_size_policyAUTO  


Back to init.ora Parameters
Back to Top

init.ora Multi-Valued Parameters

Parameter NameBegin valueEnd value (if different)
control_files/app/PMTG/db/apps_st/data/cntrl01.dbf  
/app/PMTG/db/apps_st/data/cntrl02.dbf  
/app/PMTG/db/apps_st/data/cntrl03.dbf  
utl_file_dir/D01/Bank  
/D01/Bank/FOREX  
/D01/Bank/MUR  
/app/PMTG/db/tech_st/12.1.0/appsutil/outbound/PMTG_ofdb  
/tmp  
/usr/tmp  
/usr/tmp  
/usr/tmp  
/usr/tmp  
/usr/tmp/PMTG  


Back to init.ora Parameters
Back to Top

Active Session History (ASH) Report

Back to Top

Top SQL with Top Events

SQL IDPlan HashExecutions% ActivityEvent% EventTop Row Source% Row SourceSQL Text
12aqm6fhn7z7c97807606916077.52 CPU + Wait for CPU77.29FIXED TABLE - FULL75.46 SELECT csf, ROLLBACK, timestam...
bhm40tnqghpkc9780760696715.37 CPU + Wait for CPU15.37FIXED TABLE - FULL15.37 SELECT csf, ROLLBACK, timestam...


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

Top SQL with Top Row Sources

SQL IDPlan HashExecutions% ActivityRow Source% Row SourceTop Event% EventSQL Text
12aqm6fhn7z7c97807606916077.52 FIXED TABLE - FULL75.69CPU + Wait for CPU75.46 SELECT csf, ROLLBACK, timestam...
** Row Source Not Available **1.15CPU + Wait for CPU1.15
bhm40tnqghpkc9780760696715.37 FIXED TABLE - FULL15.37CPU + Wait for CPU15.37 SELECT csf, ROLLBACK, timestam...


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

Top Sessions

Sid, Serial#% ActivityEvent% EventUserProgram# Samples ActiveXIDs
504,3114377.75CPU + Wait for CPU77.52 ROSHANTESTJDBC Thin Client338/361 [ 94%]0
1384,549697.57CPU + Wait for CPU7.57 ROSHANTESTJDBC Thin Client33/361 [ 9%]0
1384,320625.73CPU + Wait for CPU5.73 ROSHANTESTJDBC Thin Client25/361 [ 7%]0
1384,209192.06CPU + Wait for CPU2.06 ROSHANTESTJDBC Thin Client9/361 [ 2%]0
1142,183081.15log file parallel write1.15 SYSoracle@RH-TESTOF7DB (LGWR)5/361 [ 1%]0


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

Top Blocking Sessions

Blocking Sid (Inst)% ActivityEvent Caused% EventUserProgram# Samples ActiveXIDs
1142,18308( 1)1.15log file sync1.15 SYSoracle@RH-TESTOF7DB (LGWR)5/361 [ 1%]0


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

Top PL/SQL Procedures

No data exists for this section of the report.

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

Top Events

EventEvent ClassSession Type% ActivityAvg Active Sessions
CPU + Wait for CPUCPUFOREGROUND 93.581.13
log file parallel writeSystem I/OBACKGROUND 1.150.01
log file syncCommitFOREGROUND 0.01


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

Top Event P1/P2/P3 Values

Event% EventP1, P2, P3 Values% ActivityParameter 1Parameter 2Parameter 3
db file sequential read1.38"35","56689","1"0.23 file#block#blocks
log file parallel write1.15"2","4","2"0.23 filesblocksrequests
log file sync1.15"54","2083411628","0"0.23 buffer#sync scnNOT DEFINED


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

Top DB Objects

No data exists for this section of the report.

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

Activity Over Time

Slot Time (Duration)Slot CountEventEvent Count% Event
17:00:50 (4.2 min)39CPU + Wait for CPU358.03
db file sequential read40.92
17:05:00 (5.0 min)33CPU + Wait for CPU327.34
log file parallel write10.23
17:10:00 (5.0 min)29CPU + Wait for CPU296.65
17:15:00 (5.0 min)50CPU + Wait for CPU5011.47
17:20:00 (5.0 min)51CPU + Wait for CPU5111.70
17:25:00 (5.0 min)47CPU + Wait for CPU4710.78
17:30:00 (5.0 min)30CPU + Wait for CPU306.88
17:35:00 (5.0 min)45CPU + Wait for CPU317.11
log file sync51.15
db file scattered read30.69
17:40:00 (5.0 min)28CPU + Wait for CPU286.42
17:45:00 (5.0 min)27CPU + Wait for CPU255.73
control file parallel write10.23
db file sequential read10.23
17:50:00 (5.0 min)28CPU + Wait for CPU265.96
log file parallel write10.23
log file sequential read10.23
17:55:00 (5.0 min)24CPU + Wait for CPU235.28
Redo Transport Attach10.23
18:00:00 (56 secs)5CPU + Wait for CPU51.15


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

ADDM Task ADDM:588850174_1_4355

          ADDM Report for Task 'ADDM:588850174_1_4355'
          --------------------------------------------

Analysis Period
---------------
AWR snapshot range from 4354 to 4355.
Time period starts at 11-APR-21 05.00.50 PM
Time period ends at 11-APR-21 06.00.56 PM

Analysis Target
---------------
Database 'PMTG2' with DB ID 588850174.
Database version 12.1.0.2.0.
ADDM performed an analysis of instance PMTG2, numbered 1 and hosted at
RH-TESTOF7DB.

Activity During the Analysis Period
-----------------------------------
Total database time was 4178 seconds.
The average number of active sessions was 1.16.

Summary of Findings
-------------------
   Description         Active Sessions      Recommendations
                       Percent of Activity
   ------------------  -------------------  ---------------
1  Top SQL Statements  1.11 | 96.2          2


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


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

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

   Recommendation 1: SQL Tuning
   Estimated benefit is .93 active sessions, 80.05% of total activity.
   -------------------------------------------------------------------
   Action
      Run SQL Tuning Advisor on the SELECT statement with SQL_ID
      "12aqm6fhn7z7c".
      Related Object
         SQL statement with SQL_ID 12aqm6fhn7z7c.
         SELECT csf, ROLLBACK, timestamp, commit_timestamp, operation_code,
         status, thread#, scn, start_scn, commit_scn, SEQUENCE#,
         (xidusn||'.'||xidslt||'.'||xidsqn), SEG_TYPE_NAME, info, seg_owner,
         table_name, SSN, username, sql_redo, row_id, TABLE_SPACE,
         SESSION_INFO, RS_ID, RBASQN, RBABLK, RBABYTE, TX_NAME, SEG_NAME,
         (PXIDUSN||'.'||PXIDSLT||'.'||PXIDSQN), AUDIT_SESSIONID, SESSION#,
         SERIAL#, null as SRC_CON_NAME FROM  v$logmnr_contents  WHERE  ((
         SEG_OWNER = 'TESTMV' AND TABLE_NAME ='TEST1') OR ( SEG_OWNER =
         'ROSHANTEST' AND TABLE_NAME ='QUIESCEMARKER') OR (operation IN
         ('START', 'COMMIT', 'ROLLBACK'))) AND (OPERATION_CODE != 5 AND
         OPERATION_CODE != 68 AND OPERATION_CODE != 70 AND OPERATION_CODE !=
         71 AND OPERATION_CODE != 0) AND (seg_owner NOT IN ('SYS', 'SYSTEM',
         'MDSYS') OR seg_owner IS NULL) AND SCN >= :1  AND SCN <= :2
   Rationale
      The SQL spent 99% of its database time on CPU, I/O and Cluster waits.
      This part of database time may be improved by the SQL Tuning Advisor.
   Rationale
      Database time for this SQL was divided as follows: 100% for SQL
      execution, 0% for parsing, 0% for PL/SQL execution and 0% for Java
      execution.
   Rationale
      SQL statement with SQL_ID "12aqm6fhn7z7c" was executed 454 times and had
      an average elapsed time of 7.4 seconds.

   Recommendation 2: SQL Tuning
   Estimated benefit is .18 active sessions, 15.91% of total activity.
   -------------------------------------------------------------------
   Action
      Run SQL Tuning Advisor on the SELECT statement with SQL_ID
      "bhm40tnqghpkc".
      Related Object
         SQL statement with SQL_ID bhm40tnqghpkc.
         SELECT csf, ROLLBACK, timestamp, commit_timestamp, operation_code,
         status, thread#, scn, start_scn, commit_scn, SEQUENCE#,
         (xidusn||'.'||xidslt||'.'||xidsqn), SEG_TYPE_NAME, info, seg_owner,
         table_name, SSN, username, sql_redo, row_id, TABLE_SPACE,
         SESSION_INFO, RS_ID, RBASQN, RBABLK, RBABYTE, TX_NAME, SEG_NAME,
         (PXIDUSN||'.'||PXIDSLT||'.'||PXIDSQN), AUDIT_SESSIONID, SESSION#,
         SERIAL#, null as SRC_CON_NAME FROM  v$logmnr_contents  WHERE  ((
         SEG_OWNER = 'CDCOFMV' AND TABLE_NAME ='MV_TEST_VIEW_CUSTOMER_ORDERS')
         OR ( SEG_OWNER = 'ROSHANTEST' AND TABLE_NAME ='QUIESCEMARKER') OR
         (operation IN ('START', 'COMMIT', 'ROLLBACK'))) AND (OPERATION_CODE
         != 5 AND OPERATION_CODE != 68 AND OPERATION_CODE != 70 AND
         OPERATION_CODE != 71 AND OPERATION_CODE != 0) AND (seg_owner NOT IN
         ('SYS', 'SYSTEM', 'MDSYS') OR seg_owner IS NULL) AND SCN >= :1  AND
         SCN <= :2
   Rationale
      The SQL spent 100% of its database time on CPU, I/O and Cluster waits.
      This part of database time may be improved by the SQL Tuning Advisor.
   Rationale
      Database time for this SQL was divided as follows: 100% for SQL
      execution, 0% for parsing, 0% for PL/SQL execution and 0% for Java
      execution.
   Rationale
      SQL statement with SQL_ID "bhm40tnqghpkc" was executed 114 times and had
      an average elapsed time of 5.8 seconds.



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

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

Miscellaneous Information
-------------------------
Wait class "Application" was not consuming significant database time.
Wait class "Commit" was not consuming significant database time.
Wait class "Concurrency" was not consuming significant database time.
Wait class "Configuration" was not consuming significant database time.
CPU was not a bottleneck for the instance.
Wait class "Network" was not consuming significant database time.
Wait class "User I/O" was not consuming significant database time.
Session connect and disconnect calls were not consuming significant database
time.
Hard parsing of SQL statements was not consuming significant database time.

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


Back to Top

End of Report