WORKLOAD REPOSITORY report for

DB NameDB IdUnique NameRoleEditionReleaseRACCDB
ABS12620954958ABS1PRIMARYEE19.29.0.0.0NONO

InstanceInst NumStartup TimeUser NameSystem Data Visible
abs1111-Jan-26 13:44SYSYES

Host NamePlatformCPUsCoresSocketsMemory (GB)
BASHIRMicrosoft Windows x86 64-bit 8 8 4 40.00

Snap IdSnap TimeSessionsCursors/Session
Begin Snap:3118723-Feb-26 00:00:0277 2.9
End Snap:3126826-Feb-26 09:00:5382 2.9
Elapsed:  4,860.85 (mins)  
DB Time:  1,541.19 (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
Hard Parse Due to Parse Errors1.3637.25ADDM:2620954958_1_3123424-Feb-26 22:0024-Feb-26 23:00
Top SQL Statements1.3633.74ADDM:2620954958_1_3123424-Feb-26 22:0024-Feb-26 23:00
Top SQL Statements.7852.16ADDM:2620954958_1_3118823-Feb-26 00:0023-Feb-26 01:00
Top SQL Statements.8645.89ADDM:2620954958_1_3124625-Feb-26 10:0025-Feb-26 11:00
Top Segments by "User I/O" and "Cluster".8634.85ADDM:2620954958_1_3124625-Feb-26 10:0025-Feb-26 11:00

Load Profile

Per SecondPer TransactionPer ExecPer Call
DB Time(s): 0.3 0.1 0.00 0.01
DB CPU(s): 0.1 0.0 0.00 0.00
Background CPU(s): 0.0 0.0 0.00 0.00
Redo size (bytes): 1,961,017.1 303,304.2  
Logical read (blocks): 56,076.0 8,673.1  
Block changes: 11,654.3 1,802.5  
Physical read (blocks): 2,633.7 407.4  
Physical write (blocks): 295.8 45.8  
Read IO requests: 103.8 16.1  
Write IO requests: 122.4 18.9  
Read IO (MB): 20.6 3.2  
Write IO (MB): 2.3 0.4  
IM scan rows: 0.0 0.0  
Session Logical Read IM: 0.0 0.0  
User calls: 43.8 6.8  
Parses (SQL): 6.6 1.0  
Hard parses (SQL): 0.2 0.0  
SQL Work Area (MB): 4.7 0.7  
Logons: 0.0 0.0  
User logons: 0.0 0.0  
Executes (SQL): 472.1 73.0  
Rollbacks: 0.0 0.0  
Transactions: 6.5   

Instance Efficiency Percentages (Target 100%)

Buffer Nowait %: 100.00Redo NoWait %: 99.99
Buffer Hit %: 99.78In-memory Sort %: 99.99
Library Hit %: 99.90Soft Parse %: 97.49
Execute to Parse %: 98.60Latch Hit %: 99.99
Parse CPU to Parse Elapsd %: 82.31% Non-Parse CPU: 95.93
Flash Cache Hit %: 0.00

Top 10 Foreground Events by Total Wait Time

EventWaitsTotal Wait Time (sec)Avg Wait% DB timeWait Class
DB CPU 40.1K 43.4 
SQL*Net more data from dblink1,953,04716.2K8.28ms17.5Network
SQL*Net message from dblink2,016,63714.3K7.11ms15.5Network
direct path read3,486,69610.4K2.98ms11.2User I/O
log file switch (checkpoint incomplete)10,2676799.2662.24ms7.4Configuration
db file sequential read5,253,8061888.6359.47us2.0User I/O
db file scattered read752,304710.8944.78us.8User I/O
db file parallel read431,498457.31.06ms.5User I/O
direct path write temp490,378415.4847.04us.4User I/O
log file switch completion7,229388.553.74ms.4Configuration

Wait Classes by Total Wait Time

Wait ClassWaitsTotal Wait Time (sec)Avg Wait Time% DB timeAvg Active Sessions
DB CPU 40,095 43.40.1
Network18,630,79530,5271.64ms33.00.1
User I/O27,055,23316,963626.97us18.30.1
Configuration21,2837,419348.59ms8.00.0
System I/O5,834,8383,331570.84us3.60.0
Other1,563,2301,448926.01us1.60.0
Concurrency16,3261307.99ms.10.0
Commit92,42587942.04us.10.0
Application6,0266.98ms.00.0
Scheduler240169.71us.00.0
Administrative66403.99us.00.0

Host CPU

CPUsCoresSocketsLoad Average BeginLoad Average End%User%System%WIO%Idle
8 8 4   9.0 0.8  90.1

Instance CPU

%Total CPU%Busy CPU%DB time waiting for CPU (Resource Manager)
1.9 19.2 0.0

IO Profile

Read+Write Per SecondRead per SecondWrite Per Second
Total Requests: 252.7 112.1 140.6
Database Requests: 226.2 103.8 122.4
Optimized Requests: 0.0 0.0 0.0
Redo Requests: 7.5 0.0 7.4
Total (MB): 27.2 20.7 6.5
Database (MB): 22.9 20.6 2.3
Optimized Total (MB): 0.0 0.0 0.0
Redo (MB): 1.9 0.0 1.9
Database (blocks): 2,929.6 2,633.7 295.8
Via Buffer Cache (blocks): 307.3 115.6 191.7
Direct (blocks): 2,622.3 2,518.1 104.2

Memory Statistics

BeginEnd
Host Mem (MB): 40,958.9 40,958.9
SGA use (MB): 12,960.0 12,960.0
PGA use (MB): 1,165.6 1,081.6
% Host Mem used for SGA+PGA: 34.49 34.28

Database Resource Limits

BeginEnd
CPUs:88
SGA Target: 13,589,544,960 13,589,544,960
PGA Target: 4,026,531,840 4,026,531,840
Memory Target 0 0

Cache Sizes

BeginEnd
Buffer Cache: 9,184M 9,184MStd Block Size: 8K
Shared Pool Size: 3,456M 3,456MLog Buffer: 19,268K
In-Memory Area: 0M 0M

Shared Pool Statistics

BeginEnd
Memory Usage %: 89.81 91.81
% SQL with executions>1: 97.11 97.36
% Memory for SQL w/exec>1: 97.82 97.19

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 time91,675.5699.14 
DB CPU40,094.8143.3690.78
parse time elapsed2,931.523.17 
hard parse elapsed time2,856.993.09 
failed parse elapsed time2,572.602.78 
PL/SQL execution elapsed time562.060.61 
connection management call elapsed time94.300.10 
hard parse (sharing criteria) elapsed time48.040.05 
PL/SQL compilation elapsed time6.810.01 
repeated bind elapsed time0.600.00 
sequence load elapsed time0.590.00 
hard parse (bind mismatch) elapsed time0.170.00 
DB time92,471.19  
background elapsed time32,530.82  
background cpu time4,070.71 9.22
total CPU time44,165.52  


Back to Wait Events Statistics
Back to Top

Operating System Statistics

StatisticValueEnd Value
FREE_MEMORY_BYTES6,934,982,6565,435,916,288
AVG_BUSY_TIME2,824,969 
AVG_IDLE_TIME26,245,886 
AVG_SYS_TIME197,865 
AVG_USER_TIME2,594,151 
BUSY_TIME22,988,703 
IDLE_TIME210,371,060 
SYS_TIME1,957,814 
USER_TIME21,059,245 
RSRC_MGR_CPU_WAIT_TIME0 
PHYSICAL_MEMORY_BYTES42,948,571,136 
NUM_CPUS8 
NUM_CPU_CORES8 
NUM_CPU_SOCKETS4 


Back to Wait Events Statistics
Back to Top

Operating System Statistics - Detail

Snap TimeLoad%busy%user%sys%idle%iowait
23-Feb 00:00:020.00     
23-Feb 01:00:140.005.584.900.6994.420.00
23-Feb 02:00:250.000.800.470.3399.200.00
23-Feb 03:00:520.0042.6140.711.9257.390.00
23-Feb 04:00:280.0054.7453.900.8645.260.00
23-Feb 05:00:540.0036.1135.420.7163.890.00
23-Feb 06:00:170.001.641.150.5098.360.00
23-Feb 07:00:290.002.401.780.6397.600.00
23-Feb 08:00:410.002.722.070.6697.280.00
23-Feb 09:00:520.006.285.091.2093.720.00
23-Feb 10:00:030.004.373.321.0795.630.00
23-Feb 11:00:270.004.833.860.9995.170.00
23-Feb 12:00:350.005.414.321.1094.590.00
23-Feb 13:00:450.004.993.901.1195.010.00
23-Feb 14:00:560.004.373.420.9795.630.00
23-Feb 15:00:040.004.183.290.9095.820.00
23-Feb 16:00:130.004.123.240.9095.880.00
23-Feb 17:00:350.003.662.900.7796.340.00
23-Feb 18:00:410.002.652.090.5797.350.00
23-Feb 19:00:550.002.592.040.5697.410.00
23-Feb 20:00:190.002.641.790.8797.360.00
23-Feb 21:00:260.002.742.160.5997.260.00
23-Feb 22:00:340.003.632.800.8496.370.00
23-Feb 23:00:370.005.063.931.1494.940.00
24-Feb 00:00:430.000.600.270.3399.400.00
24-Feb 01:00:530.003.352.690.6796.650.00
24-Feb 02:00:080.000.730.410.3399.270.00
24-Feb 03:00:470.0044.5542.611.9555.450.00
24-Feb 04:00:130.0057.3856.470.9342.620.00
24-Feb 05:00:420.0032.3231.630.7067.680.00
24-Feb 06:00:030.001.721.260.4798.280.00
24-Feb 07:00:230.004.113.300.8295.890.00
24-Feb 08:00:340.003.302.640.6796.700.00
24-Feb 09:00:400.005.264.251.0294.740.00
24-Feb 10:00:490.005.064.001.0894.940.00
24-Feb 11:00:520.004.303.450.8695.700.00
24-Feb 12:00:010.006.074.951.1493.930.00
24-Feb 13:00:230.005.814.671.1594.190.00
24-Feb 14:00:350.004.323.410.9295.680.00
24-Feb 15:00:470.006.024.921.1193.980.00
24-Feb 16:00:590.004.033.240.8095.970.00
24-Feb 17:00:050.002.922.320.6197.080.00
24-Feb 18:00:170.002.752.180.5897.250.00
24-Feb 19:00:240.002.401.880.5397.600.00
24-Feb 20:00:290.002.411.780.6597.590.00
24-Feb 21:00:040.002.171.660.5297.830.00
24-Feb 22:00:220.002.651.950.7197.350.00
24-Feb 23:00:300.0013.4512.171.3186.550.00
25-Feb 00:00:450.001.160.700.4798.840.00
25-Feb 01:00:520.003.332.670.6796.670.00
25-Feb 02:00:010.000.710.390.3399.290.00
25-Feb 03:00:280.0043.1141.112.0256.890.00
25-Feb 04:00:090.0057.7256.860.8942.280.00
25-Feb 05:00:350.0035.8435.120.7364.160.00
25-Feb 06:00:380.001.410.950.4698.590.00
25-Feb 07:00:470.003.182.420.7796.820.00
25-Feb 08:00:580.002.491.850.6597.510.00
25-Feb 09:00:190.005.174.181.0194.830.00
25-Feb 10:00:220.007.686.551.1492.320.00
25-Feb 11:00:270.007.416.480.9492.590.00
25-Feb 12:00:310.005.444.311.1494.560.00
25-Feb 13:00:370.004.623.621.0195.380.00
25-Feb 14:00:520.005.114.140.9994.890.00
25-Feb 15:00:040.004.273.410.8795.730.00
25-Feb 16:00:100.005.154.270.9094.850.00
25-Feb 17:00:160.003.022.380.6596.980.00
25-Feb 18:00:280.002.511.940.5897.490.00
25-Feb 19:00:360.002.071.560.5297.930.00
25-Feb 20:00:480.002.171.500.6897.830.00
25-Feb 21:00:510.002.051.550.5197.950.00
25-Feb 22:00:080.001.801.340.4698.200.00
25-Feb 23:00:170.007.966.701.2792.040.00
26-Feb 00:00:270.000.880.350.5499.120.00
26-Feb 01:00:340.003.312.650.6796.690.00
26-Feb 02:00:490.001.510.970.5698.490.00
26-Feb 03:00:060.0043.3141.322.0156.690.00
26-Feb 04:00:270.0057.3856.470.9442.620.00
26-Feb 05:00:440.0035.9535.190.7764.050.00
26-Feb 06:00:010.001.521.050.4898.480.00
26-Feb 07:00:040.003.742.950.8096.260.00
26-Feb 08:00:330.002.912.240.6897.090.00
26-Feb 09:00:530.005.594.541.0694.410.00


Back to Wait Events Statistics
Back to Top

Foreground Wait Class

Wait ClassWaits%Time -outsTotal Wait Time (s)Avg wait%DB time
DB CPU  40,095 43.36
Network18,621,448030,5271.64ms33.01
User I/O12,611,739014,4261.14ms15.60
Configuration20,819157,238347.64ms7.83
System I/O925,0640185199.90us0.20
Concurrency15,32501016.60ms0.11
Commit91,849086934.59us0.09
Other54,062552.95ms0.06
Application5,38004743.99us0.00
Scheduler2400169.71us0.00
Administrative184005.34us0.00


Back to Wait Events Statistics
Back to Top

Foreground Wait Events

EventWaits%Time -outsTotal Wait Time (s)Avg waitWaits /txn% DB time
SQL*Net more data from dblink1,953,047 16,1678.28ms1.0417.48
SQL*Net message from dblink2,016,637 14,3447.11ms1.0715.51
direct path read3,486,696 10,3962.98ms1.8511.24
log file switch (checkpoint incomplete)10,267 6,799662.24ms0.017.35
db file sequential read5,253,806 1,889359.47us2.792.04
db file scattered read752,304 711944.78us0.400.77
db file parallel read431,498 4571.06ms0.230.49
direct path write temp490,378 415847.04us0.260.45
log file switch completion7,229 38853.74ms0.000.42
direct path read temp441,522 384870.32us0.230.42
control file sequential read925,064 185199.90us0.490.20
Disk file operations I/O18,171 1136.21ms0.010.12
library cache lock48 931932.45ms0.000.10
log file sync91,849 86934.59us0.050.09
read by other session52,575 48903.94us0.030.05
PGA memory operation40,503 451.12ms0.020.05
undo segment extension3,144994213.43ms0.000.05
SQL*Net more data to client312,607 928.13us0.170.01
utl_file I/O1,678,748 84.67us0.890.01
buffer busy waits13,375 7496.91us0.010.01
log buffer space25 6236.55ms0.000.01
SQL*Net message to client12,316,626 5440.30ns6.530.01
direct path write3,634 41.04ms0.000.00
enq: RO - fast object reuse1,085 22.15ms0.000.00
enq: FB - contention7 2308.12ms0.000.00
SQL*Net message to dblink2,016,108 21.01us1.070.00
kupp process wait20 2100.44ms0.000.00
log file switch (private strand flush incomplete)152 211.86ms0.000.00
local write wait2,407 2695.96us0.000.00
row cache lock3 1392.02ms0.000.00
SQL*Net break/reset to client4,225 1256.53us0.000.00
enq: TQ - DDL contention20 137.59ms0.000.00
SQL*Net break/reset to dblink14 029.87ms0.000.00
oracle thread bootstrap20 015.18ms0.000.00
enq: TX - contention6 041.15ms0.000.00
enq: CR - block range reuse ckpt91 02.39ms0.000.00
ADR block file read669 0292.04us0.000.00
reliable message1,233 0145.00us0.000.00
enq: KO - fast object checkpoint55 03.07ms0.000.00
library cache: mutex X76 02.11ms0.000.00
SQL*Net more data from client6,370 021.66us0.000.00
resmgr:internal state change11000107.77ms0.000.00
library cache load lock41 02.52ms0.000.00
enq: CF - contention26 03.47ms0.000.00
cursor: pin S5 015.10ms0.000.00
latch: cache buffers chains1,606 042.88us0.000.00
latch: redo allocation1,130 044.93us0.000.00
latch: cache buffers lru chain174 0277.33us0.000.00
cursor: pin S wait on X1 013.39ms0.000.00
Compression analysis6,756 01.60us0.000.00
row cache mutex45 0225.98us0.000.00
asynch descriptor resize2,69810002.84us0.000.00
latch: shared pool110 065.88us0.000.00
latch: checkpoint queue latch65 064.00us0.000.00
resmgr:cpu quantum24 0169.71us0.000.00
log file sync: SCN ordering4 0673.25us0.000.00
rdbms ipc reply80 030.96us0.000.00
SQL*Net vector data to client16 0134.69us0.000.00
SQL*Net more data to dblink37 055.89us0.000.00
enq: JG - queue lock2 0.99ms0.000.00
AWR Flush499 03.23us0.000.00
write complete waits1 01.57ms0.000.00
enq: US - contention1 01.13ms0.000.00
SQL*Net message from client12,316,683 5,196,124421.88ms6.53 
jobq slave wait170,4849985,471501.34ms0.09 
wait for unread message on broadcast channel15,90387,669482.23ms0.01 
single-task message523 1935.51ms0.00 
PL/SQL lock timer7710012154.68ms0.00 
auto-sqltune: wait graph update1 54995.39ms0.00 


Back to Wait Events Statistics
Back to Top

Background Wait Events

EventWaits%Time -outsTotal Wait Time (s)Avg waitWaits /txn% bg time
db file sequential read14,099,29302,333165.48us7.487.17
log file parallel write1,581,11302,0891.32ms0.846.42
LGWR worker group ordering224,13409534.25ms0.122.93
control file sequential read1,457,2660515353.41us0.771.58
db file async I/O submit678,1770240354.37us0.360.74
log file switch (checkpoint incomplete)3470180517.93ms0.000.55
db file parallel write923,3840176190.18us0.490.54
latch free389,6400125320.35us0.210.38
control file parallel write243,6710117481.23us0.130.36
LGWR any worker group616,2710100161.75us0.330.31
Disk file operations I/O174,464091519.71us0.090.28
LGWR all worker groups172,733082476.04us0.090.25
direct path read107,218082763.17us0.060.25
oracle thread bootstrap3,41304914.24ms0.000.15
enq: CF - contention6,2510304.80ms0.000.09
enq: CR - block range reuse ckpt23,4190261.13ms0.010.08
db file scattered read25,654023887.74us0.010.07
buffer busy waits53902241.48ms0.000.07
reliable message24,356012480.95us0.010.04
enq: JG - queue lock1880739.84ms0.000.02
os thread creation3,433071.97ms0.000.02
direct path write15,91606395.45us0.010.02
row cache lock2206265.68ms0.000.02
log file single write13,08206429.46us0.010.02
log file sequential read13,08203245.43us0.010.01
KSV master wait23,867100293.53us0.010.01
log file sync576012.13ms0.000.00
Datapump dump file I/O9,46401105.28us0.010.00
undo segment extension7999111.04ms0.000.00
PGA memory operation9,0450196.06us0.000.00
enq: UL - contention200141.15ms0.000.00
log file switch completion320125.55ms0.000.00
utl_file I/O7,3060184.98us0.000.00
enq: KO - fast object checkpoint400115.47ms0.000.00
enq: TQ - DDL contention200129.51ms0.000.00
wait list latch free380114.11ms0.000.00
enq: RO - fast object reuse58600775.18us0.000.00
library cache lock210021.26ms0.000.00
local write wait184001.52ms0.000.00
ADR block file read91700298.52us0.000.00
cursor: pin S210012.56ms0.000.00
library cache: bucket mutex X115001.75ms0.000.00
library cache: mutex X18900949.98us0.000.00
ADR block file write27000617.00us0.000.00
latch: cache buffers lru chain71100165.43us0.000.00
read by other session26300317.86us0.000.00
LGWR wait for redo copy3,8030019.28us0.000.00
enq: TX - contention15004.19ms0.000.00
ADR file lock37200149.08us0.000.00
direct path read temp20001.65ms0.000.00
enq: PR - contention20012.14ms0.000.00
db file parallel read4200550.55us0.000.00
row cache mutex3700604.62us0.000.00
AQ Background Master: slave start1300.97ms0.000.00
latch: checkpoint queue latch1390070.60us0.000.00
asynch descriptor resize3,94010002.16us0.000.00
log file switch (private strand flush incomplete)1007.18ms0.000.00
latch: redo allocation950058.86us0.000.00
latch: shared pool2000277.95us0.000.00
SQL*Net message to client9,34700523.80ns0.000.00
enq: WF - contention1002.03ms0.000.00
Compression analysis1,288001.41us0.000.00
index (re)build lock or pin object480003.48us0.000.00
direct path sync3,67200414.76ns0.000.00
rdbms ipc reply280036.46us0.000.00
Space Manager: slave idle wait1,230,58004,614,8973750.18ms0.65 
rdbms ipc message5,910,645544,351,271736.18ms3.13 
pmon timer598,647971,749,7312922.81ms0.32 
class slave wait24,62801,449,77158.87 s0.01 
DIAG idle wait582,236100582,6791000.76ms0.31 
LGWR worker group idle1,691,7030580,320343.04ms0.90 
Streams AQ: qmn slave idle wait23,0840523,52122.68 s0.01 
wait for unread message on broadcast channel309,17096299,297968.07ms0.16 
smon timer2,15230291,754135.57 s0.00 
AQPC idle9,721100291,66530.00 s0.01 
Streams AQ: qmn coordinator idle wait25,1970291,66111.58 s0.01 
Streams AQ: waiting for time management or cleanup tasks1,14966291,658253.84 s0.00 
heartbeat redo informer287,5500291,6551014.27ms0.15 
lreg timer96,980100291,6543007.37ms0.05 
dispatcher timer4,860100291,64160.01 s0.00 
pman timer97,147100291,6413002.05ms0.05 
Data Guard: Timer4860291,603600.01 s0.00 
SQL*Net message from client12,4410221.78ms0.01 
PL/SQL lock timer421004105.07ms0.00 


Back to Wait Events Statistics
Back to Top

Wait Event Histogram

  % of Total Waits
EventTotal Waits<8us<16us<32us<64us<128us<256us<512us>=512us
ADR block file read1586    2.165.421.411.0
ADR block file write270     15.223.761.1
ADR file lock37249.2.8   8.941.1 
AQ Background Master: slave start13       100.0
AWR Flush121299.9.1      
Compression analysis804499.3.6.0     
Data Pump slave startup20  85.015.0    
Datapump dump file I/O946462.27.5.1 .012.914.62.7
Disk file operations I/O192.7K37.0.0 21.910.85.92.921.5
KSV master wait23.9K42.654.92.2.2.0.0.0.1
LGWR all worker groups172.7K.113.029.24.71.122.412.616.9
LGWR any worker group616.3K.32.310.527.413.040.04.52.0
LGWR wait for redo copy380319.141.735.23.2.5.2.0.1
LGWR worker group ordering224.1K.41.41.43.72.2.6.989.4
PGA memory operation49.5K13.2.51.43.917.216.414.233.2
SQL*Net break/reset to client422549.6.2.0.0.19.235.45.4
SQL*Net break/reset to dblink1450.0      50.0
SQL*Net message from dblink2M .0.081.37.14.92.44.3
SQL*Net message to client12.3M100.0.0.0.0.0.0.0.0
SQL*Net message to dblink2M99.9.1.0.0.0.0 .0
SQL*Net more data from client6370.56.190.82.2.3.0  
SQL*Net more data from dblink2M31.43.22.21.72.23.21.454.7
SQL*Net more data to client312.6K.157.414.717.010.5.3.0.0
SQL*Net more data to dblink37 8.121.624.340.55.4  
SQL*Net vector data to client16    56.343.8  
asynch descriptor resize663899.8.2.1     
buffer busy waits13.9K39.146.610.02.7.8.4.1.3
control file parallel write243.7K     7.375.317.5
control file sequential read2.4M    .182.113.93.8
cursor: pin S26       100.0
cursor: pin S wait on X1       100.0
db file async I/O submit678.2K.020.346.817.76.42.71.24.9
db file parallel read431.5K     2.053.444.6
db file parallel write923.4K40.64.56.69.613.411.56.67.1
db file scattered read778K     11.937.550.6
db file sequential read19.4M.0 .0 2.483.710.53.4
direct path read3.6M.0.1.3.81.74.48.584.4
direct path read temp441.5K.1.2.82.43.712.920.959.0
direct path sync3672100.0       
direct path write19.6K.3.51.33.07.130.635.721.6
direct path write temp490.4K.1.21.02.14.513.026.153.0
enq: CF - contention6277 .1.4.61.42.86.388.4
enq: CR - block range reuse ckpt23.5K.2.653.123.93.41.41.715.8
enq: FB - contention7  14.328.614.314.3 28.6
enq: HW - contention3     100.0  
enq: JG - queue lock190      1.198.9
enq: KO - fast object checkpoint95      10.589.5
enq: PR - contention2       100.0
enq: RO - fast object reuse1671  10.728.54.6.23.352.8
enq: TQ - DDL contention40       100.0
enq: TX - contention21       100.0
enq: TX - row lock contention1   100.0    
enq: UL - contention20       100.0
enq: US - contention1       100.0
enq: WF - contention1       100.0
index (re)build lock or pin object66493.26.6 .2    
kupp process wait20       100.0
latch free389.7K.3.61.01.0.3.694.71.5
latch: In memory undo latch2  100.0     
latch: active service list616.716.716.733.3   16.7
latch: cache buffers chains164347.012.221.711.84.21.3.71.0
latch: cache buffers lru chain8859.74.933.124.111.86.74.15.8
latch: call allocation475.025.0      
latch: checkpoint queue latch2043.96.420.623.036.38.81.0 
latch: enqueue hash chains825.050.0  25.0   
latch: messages1844.4 27.816.75.65.6  
latch: object queue header operation5  40.020.020.020.0  
latch: redo allocation12255.14.824.749.214.11.6.2.2
latch: redo writing3  33.3 33.333.3  
latch: shared pool1306.93.831.534.613.16.2.83.1
latch: undo global data1421.47.128.635.77.1   
library cache load lock41  7.32.417.1 9.863.4
library cache lock69  4.37.25.8  82.6
library cache: bucket mutex X12365.013.83.31.6 2.4.813.0
library cache: mutex X26558.17.59.44.23.82.61.512.8
local write wait2591      18.181.9
log buffer space25      4.096.0
log file parallel write1.6M     40.330.029.7
log file sequential read13.1K    .389.47.03.3
log file single write13.1K     24.761.114.3
log file switch (checkpoint incomplete)10.6K     .0.0100.0
log file switch (private strand flush incomplete)153       100.0
log file switch completion7261     .0 100.0
log file sync92.4K.0.0.2.4.7.826.171.7
log file sync: SCN ordering4       100.0
oracle thread bootstrap3433       100.0
os thread creation3433       100.0
rdbms ipc reply108  64.832.41.9 .9 
read by other session52.8K7.8.1.61.01.710.443.734.7
reliable message25.6K.0 3.58.310.617.023.237.3
resmgr:cpu quantum24   8.358.329.2 4.2
resmgr:internal state change1       100.0
row cache lock25   4.0 8.0 88.0
row cache mutex8262.229.31.21.21.21.2 3.7
undo segment extension322333.93.7.1.1.2.4.661.1
utl_file I/O1.7M97.81.8.2.0.0.0.0.0
wait list latch free38       100.0
write complete waits1       100.0
AQPC idle9721       100.0
DIAG idle wait582.2K       100.0
Data Guard: Timer486       100.0
LGWR worker group idle1.7M1.124.59.43.33.72.63.052.5
PL/SQL lock timer119       100.0
SQL*Net message from client12.3M.0.0.08.974.68.94.43.2
Space Manager: slave idle wait1.2M.6.41.0.5.1.0.197.3
Streams AQ: qmn coordinator idle wait25.2K9.1.91.328.614.8.3.145.0
Streams AQ: qmn slave idle wait23.1K12.7.0.0    87.2
Streams AQ: waiting for time management or cleanup tasks1149       100.0
auto-sqltune: wait graph update1       100.0
class slave wait24.8K.0.0.33.7.4.0.195.5
dispatcher timer4860       100.0
heartbeat redo informer287.5K       100.0
jobq slave wait170.5K     .0.0100.0
lreg timer97K       100.0
pman timer97.1K       100.0
pmon timer598.7K     .0.0100.0
rdbms ipc message5.9M8.73.03.73.33.41.64.072.3
single-task message523       100.0
smon timer2152.0      100.0
wait for unread message on broadcast channel325.1K  .0.0.0.0.499.6


Back to Wait Events Statistics
Back to Top

Wait Event Histogram (up to 64 us)

  % of Total Waits
EventWaits 1us - 64us <1us <2us <4us<8us<16us<32us<64us>=64us
ADR file lock186.525.518.05.1.8  50.0
AWR Flush121214.431.441.113.0.1   
Compression analysis80449.062.418.19.9.6.0  
Data Pump slave startup20     85.015.0 
Datapump dump file I/O66071.128.78.324.27.5.1 30.2
Disk file operations I/O113.4K22.113.81.0.0.0 21.941.1
KSV master wait23.8K.1.3.241.954.92.2.2.1
LGWR all worker groups81.1K.0.0.0.113.029.24.753.0
LGWR any worker group249.5K.0.0.1.22.310.527.459.5
LGWR wait for redo copy37736.55.82.44.341.735.23.2.8
LGWR worker group ordering15.4K.1.1.1.11.41.43.793.1
PGA memory operation9423 .112.5.6.51.43.981.0
SQL*Net break/reset to client2108 .042.76.9.2.0.050.1
SQL*Net break/reset to dblink7  14.335.7   50.0
SQL*Net message from dblink1.6M    .0.081.318.7
SQL*Net message to client12.3M59.638.12.1.2.0.0.0.0
SQL*Net message to dblink2M25.753.719.31.2.1.0.0.0
SQL*Net more data from client6347  .3.26.190.82.2.4
SQL*Net more data from dblink752.8K.0.211.120.13.22.21.761.5
SQL*Net more data to client278.8K   .157.414.717.010.8
SQL*Net more data to dblink20    8.121.624.345.9
asynch descriptor resize6638.112.880.66.3.2.1  
buffer busy waits13.7K3.212.610.213.146.610.02.71.6
db file async I/O submit575.3K   .020.346.817.715.2
db file parallel write566.2K .027.113.64.56.69.638.7
db file sequential read2.0    .0 100.0
direct path read39.5K  .0.0.1.3.898.9
direct path read temp15.6K  .0.1.2.82.496.5
direct path sync367259.140.3.6     
direct path write973  .0.3.51.33.095.0
direct path write temp16.8K   .1.21.02.196.6
enq: CF - contention74    .1.4.698.8
enq: CR - block range reuse ckpt18.3K .0.1.1.653.123.922.2
enq: FB - contention3     14.328.657.1
enq: RO - fast object reuse654     10.728.560.9
enq: TX - row lock contention1      100.0 
index (re)build lock or pin object664 15.727.749.86.6 .2 
latch free11.6K.0.0.1.2.61.01.097.0
latch: In memory undo latch2     100.0  
latch: active service list5  16.7 16.716.733.316.7
latch: cache buffers chains1525.65.531.59.512.221.711.87.2
latch: cache buffers lru chain635 .34.94.54.933.124.128.2
latch: call allocation4  75.0 25.0   
latch: checkpoint queue latch110  2.02.06.420.623.046.1
latch: enqueue hash chains6  25.0 50.0  25.0
latch: messages16  11.133.3 27.816.711.1
latch: object queue header operation3     40.020.040.0
latch: redo allocation1028 .13.02.04.824.749.216.1
latch: redo writing1     33.3 66.7
latch: shared pool100 3.83.1 3.831.534.623.1
latch: undo global data13  7.114.37.128.635.77.1
library cache load lock4     7.32.490.2
library cache lock8     4.37.288.4
library cache: bucket mutex X103.81.619.543.113.83.31.616.3
library cache: mutex X210 2.340.415.57.59.44.220.8
log file sync571  .0.0.0.2.499.4
rdbms ipc reply105     64.832.42.8
read by other session50571.74.51.6.0.1.61.090.4
reliable message3037   .0 3.58.388.1
resmgr:cpu quantum2      8.391.7
row cache lock1      4.096.0
row cache mutex77 1.217.143.929.31.21.26.1
undo segment extension1217.4.915.916.73.7.1.162.2
utl_file I/O1.7M.1.132.864.81.8.2.0.1


Back to Wait Events Statistics
Back to Top

Wait Event Histogram (up to 32 ms)

  % of Total Waits
EventWaits 1ms to 32ms <512us <1ms <2ms <4ms<8ms<16ms<32ms>=32ms
ADR block file read17589.09.31.1.4.1.1  
ADR block file write16538.954.85.2.7 .4  
AQ Background Master: slave start13 100.0      
Datapump dump file I/O25397.31.6.9.2    
Disk file operations I/O41.1K78.54.93.77.31.13.9.4.2
KSV master wait499.9.0     .1
LGWR all worker groups29.1K83.19.21.14.51.6.3.1.0
LGWR any worker group12.1K98.0.9.5.3.2.1.0.0
LGWR wait for redo copy499.9.1  .0.0  
LGWR worker group ordering200.3K10.6.81.927.556.42.7.0.0
PGA memory operation16.3K66.818.17.41.54.8.8.2.2
SQL*Net break/reset to client22994.61.63.5.2.1  .0
SQL*Net break/reset to dblink150.0     7.142.9
SQL*Net message from dblink78.8K95.71.6.5.31.0.4.2.4
SQL*Net message to client4100.0.0      
SQL*Net message to dblink1100.0   .0   
SQL*Net more data from dblink993.9K45.31.52.83.718.516.57.93.8
SQL*Net more data to client13100.0.0.0.0.0.0 .0
buffer busy waits1399.7.0.0.0 .0 .2
control file parallel write42.5K82.513.72.2.9.4.2.1.0
control file sequential read90.8K96.22.3.8.3.2.2.1.0
cursor: pin S26    3.896.2  
cursor: pin S wait on X1     100.0  
db file async I/O submit32.6K95.1.8.9.9.81.1.3.0
db file parallel read192.3K55.424.38.96.73.11.4.2.0
db file parallel write66K92.93.32.11.2.4.1.0.0
db file scattered read393.6K49.425.112.012.01.3.2.0.0
db file sequential read648.8K96.62.0.8.3.1.1.0.0
direct path read3M15.612.221.128.617.24.4.8.0
direct path read temp260.3K41.040.114.62.3.9.7.4.0
direct path write421878.412.45.42.7.8.2.0.0
direct path write temp259.8K47.030.615.94.41.5.6.0.0
enq: CF - contention549511.610.726.25.732.511.01.5.8
enq: CR - block range reuse ckpt353984.24.53.52.72.01.11.3.7
enq: FB - contention171.4   14.3  14.3
enq: JG - queue lock871.1.51.63.25.812.122.653.2
enq: KO - fast object checkpoint8010.522.124.215.813.74.24.25.3
enq: PR - contention2     100.0  
enq: RO - fast object reuse87447.225.719.24.41.7.7.7.5
enq: TQ - DDL contention29     20.052.527.5
enq: TX - contention19  23.823.819.019.04.89.5
enq: UL - contention3      15.085.0
enq: US - contention1  100.0     
enq: WF - contention1  100.0     
latch free571398.51.4.1.0.0 .0 
latch: active service list183.316.7      
latch: cache buffers chains1699.0.2.5 .1.1  
latch: cache buffers lru chain5194.22.41.51.0.8.1  
latch: redo allocation299.8.2      
latch: shared pool496.91.5.8.8    
library cache load lock2636.626.812.27.32.414.6  
library cache lock3617.44.31.48.77.213.017.430.4
library cache: bucket mutex X1687.0 .8 1.610.6  
library cache: mutex X3487.2.4 1.92.37.9.4 
local write wait212018.176.53.6.7.3.5.2.0
log buffer space174.0 4.04.024.016.020.028.0
log file parallel write469.9K70.37.82.04.913.91.0.1.0
log file sequential read43296.71.7.8.3.4.1.0 
log file single write186685.711.91.2.6.5.1.0 
log file switch (checkpoint incomplete)4992.0.0.0.242.53.6.753.0
log file switch (private strand flush incomplete)150    45.847.15.22.0
log file switch completion3744.0 .0.126.022.92.548.4
log file sync66.3K28.359.74.63.03.9.5.1.0
log file sync: SCN ordering4 100.0      
oracle thread bootstrap3341     93.63.72.7
os thread creation3433  76.623.4    
read by other session18.3K65.316.26.77.53.4.8.1.0
reliable message954962.735.51.4.1.1.1.0.0
resmgr:cpu quantum195.8 4.2     
row cache lock1412.04.0 24.024.04.0 32.0
row cache mutex396.3    3.7  
undo segment extension176238.9.92.24.18.816.122.66.5
utl_file I/O304100.0.0.0.0.0.0.0 
wait list latch free38  10.5  89.5  
write complete waits1  100.0     


Back to Wait Events Statistics
Back to Top

Wait Event Histogram (up to 2 sec)

  % of Total Waits
EventWaits 64ms to 2s<32ms<64ms<1/8s<1/4s<1/2s <1s <2s>=2s
Disk file operations I/O37799.8.1.1.0.0   
KSV master wait2099.9 .1     
LGWR all worker groups80100.0.0.0 .0   
LGWR any worker group27100.0.0.0.0.0   
LGWR worker group ordering12100.0.0 .0    
PGA memory operation12099.8.2.0     
SQL*Net break/reset to client1100.0  .0    
SQL*Net break/reset to dblink657.114.328.6     
SQL*Net message from dblink724299.6.1.1.1.0.1.0.1
SQL*Net more data from dblink73.8K96.22.21.4.2.0.0.0.0
SQL*Net more data to client2100.0 .0.0    
buffer busy waits1799.8   .0.1.0.1
control file parallel write20100.0.0.0.0    
control file sequential read447100.0.0.0.0.0.0  
db file async I/O submit332100.0.0.0.0.0.0  
db file parallel read25100.0.0.0.0    
db file parallel write8100.0.0.0.0    
db file scattered read10100.0.0.0.0    
db file sequential read36100.0.0.0.0    
direct path read203100.0.0.0.0    
direct path read temp29100.0.0.0.0    
direct path write5100.0.0      
direct path write temp12100.0.0      
enq: CF - contention5299.2.5.3.0    
enq: CR - block range reuse ckpt17499.3.6.1.0.0   
enq: JG - queue lock10146.835.816.8.5    
enq: KO - fast object checkpoint594.71.14.2     
enq: RO - fast object reuse899.5.1.3  .1  
enq: TQ - DDL contention1172.517.510.0     
enq: TX - contention290.5 9.5     
enq: UL - contention1715.085.0      
kupp process wait20  100.0     
library cache lock1669.68.77.24.31.4 1.47.2
local write wait1100.0.0      
log buffer space672.08.04.04.04.0 4.04.0
log file parallel write205100.0.0.0.0.0   
log file switch (checkpoint incomplete)507047.0.72.03.15.810.026.25.2
log file switch (private strand flush incomplete)398.0 1.3 .7   
log file switch completion351551.6.947.3.2.0   
log file sync12100.0.0.0.0    
oracle thread bootstrap9297.31.51.1     
read by other session7100.0.0 .0    
reliable message4100.0.0.0  .0  
resmgr:internal state change1  100.0     
row cache lock768.0  4.0 16.08.04.0
undo segment extension20893.54.51.7.2    


Back to Wait Events Statistics
Back to Top

Wait Event Histogram (up to 2 min)

  % of Total Waits
EventWaits 4s to 2m<2s <4s <8s<16s<32s< 1m< 2m>=2m
SQL*Net message from dblink120999.9.0.0.0.0.0  
SQL*Net more data from dblink60100.0.0 .0.0.0  
buffer busy waits799.9.1      
enq: FB - contention185.714.3      
library cache lock592.81.41.4 4.3   
log buffer space196.04.0      
log file switch (checkpoint incomplete)55294.85.2.0     
row cache lock196.04.0      


Back to Wait Events Statistics
Back to Top

Wait Event Histogram (up to 1 hr)

No data exists for this section of the report.

Back to Wait Events Statistics
Back to Top

Service Statistics

Service NameDB Time (s)DB CPU (s)Physical Reads (K)Logical Reads (K)
SYS$USERS46,95013,017117,6175,713,949
ABS145,52227,078649,73410,601,765
ABS1XDB0000
SYS$BACKGROUND0077638,918


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
SYS$USERS 53936742653111129600186009526812
ABS1 2125625514115440566640167614913715
SYS$BACKGROUND 405646196805290000


Back to Wait Events Statistics
Back to Top

Top 10 Channel Waits

ChannelWaitsTotal Wait Time (s)Avg Wait
parameters to cluster db instances - broadcast channel 7047.00us
obj broadcast channel 1,767067.08us
RBR channel 23,81412494.42us


Back to Wait Events Statistics
Back to Top

Top Process Types by Wait Class

Process TypeDescriptionWait Class TypeWait Time (sec)
JJob queue slavesNetwork26,811.30
 Others (foregrounds + unclassified backgrounds)User I/O11,780.79
JJob queue slavesConfiguration4,418.61
 Others (foregrounds + unclassified backgrounds)Network3,714.64
 Others (foregrounds + unclassified backgrounds)Configuration2,822.22
JJob queue slavesUser I/O2,646.41
DW*Data Pump slave classUser I/O2,335.36
LGLog Writer SlaveSystem I/O2,056.45
LGLog Writer SlaveOther953.30
DBW0db writer process 0System I/O415.93
LGWRRedo etc.System I/O395.05
CKPTcheckpointSystem I/O253.98
LGWRRedo etc.Other206.80
 Others (foregrounds + unclassified backgrounds)System I/O184.70
Wspace management slave poolOther125.46
JJob queue slavesConcurrency95.59
 Others (foregrounds + unclassified backgrounds)Commit84.70
LGLog Writer SlaveUser I/O74.61
Wspace management slave poolConfiguration66.25
MZMMON slave class 2User I/O55.52


Back to Wait Events Statistics
Back to Top

Top Process Types by CPU Used

Process TypeDescriptionCPU Time (sec)
 Others (foregrounds + unclassified backgrounds)27,191.54
JJob queue slaves12,898.87
DW*Data Pump slave class1,922.69
DBW0db writer process 0680.22
MMMON slave class 1617.35
DMData Pump master process414.75
LGLog Writer Slave186.66
MZMMON slave class 2105.71
LGWRRedo etc.90.25
CKPTcheckpoint27.81
DIA0diagnosibility process 08.92
DBRMDataBase Resource Manager7.20
PSP0process spawner 05.75
GEN1generic12.56
SMONSystem Monitor Process1.77
MMONManageability Monitor Process1.46
Wspace management slave pool1.35
VKTMVirtual Keeper of TiMe process0.52
CJQ0Job Queue Coordinator0.45
Q*QMON MS0.33


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
29,968.5937280.5632.4124.743.009a89m4m7dd1gh DBMS_SCHEDULER call ABSDATAWAREHOUSE.CALL_LOA...
11,610.1898511.7912.5699.210.00422ydn0svdm6t nqsserver.exe WITH OBISUBWITH0 AS (select D1...
6,011.9637715.956.5015.050.05fwupcb42fp2mf DBMS_SCHEDULER insert into FACT_REALTIME_CUST...
5,620.3847119.586.086.410.120wd9s1awuy6m6 DBMS_SCHEDULER call ABSDATAWAREHOUSE.CALL_LOA...
5,578.2231,859.416.0368.7622.744xm1ruvkx3awx DBMS_SCHEDULER DECLARE job BINARY_INTEGER := ...
4,652.987,4930.625.0382.330.240vmwws2tu68sw DBMS_SCHEDULER DELETE FROM FACT_REALTIME_CUST...
4,214.7841,053.694.5620.4829.44cawm4m974z436   BEGIN SYS.KUPW$WORKER.MAIN('S...
4,131.8241,032.954.4736.024.50c0874a95q5fr1 SQL*Plus BEGIN load_staging.main; END;
3,782.2137210.174.0912.760.0840rmtbaz0j6mk DBMS_SCHEDULER insert into FACT_REALTIME_CUST...
3,686.694921.673.9932.739.69fpxb4nrq50xq5 SQL*Plus BEGIN load_warehouse.main; END...
3,629.234907.313.925.030.188du95rruycqyk DBMS_SCHEDULER call ABSDATAWAREHOUSE.CALL_LOA...
3,533.903729.503.823.570.018kk9yw7t318ts DBMS_SCHEDULER insert into FACT_REALTIME_CUST...
3,220.193738.633.4814.190.03ggcuamzctqwg9 DBMS_SCHEDULER insert into FACT_REALTIME_CUST...
2,953.961,4881.993.1929.2028.399a7qyx2kq02vu DBMS_SCHEDULER DELETE FROM FACT_REALTIME_DATA...
2,905.903727.813.141.110.01fqj6fcj86dcbq DBMS_SCHEDULER insert into FACT_REALTIME_CUST...
2,885.974761.403.120.050.005n4cgxzw9jj6m DBMS_SCHEDULER insert into FACT_REALTIME_CUST...
2,608.994652.252.823.370.097hqtfwfryzvt4 DBMS_SCHEDULER insert into FACT_REALTIME_CUST...
2,559.004639.752.7722.8842.455ghx2munh9s9n   BEGIN SYS.KUPW$WORKER.MAIN('S...
1,393.823464.611.5168.8223.75b6usrg82hwsa3 DBMS_SCHEDULER call dbms_stats.gather_databas...
1,009.785771.751.0998.920.00ggxg64bdfsps5 nqsserver.exe WITH OBISUBWITH0 AS (select D1...


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
11,518.0998511.6928.7311,610.1899.210.00422ydn0svdm6t nqsserver.exe WITH OBISUBWITH0 AS (select D1...
7,413.4837219.9318.4929,968.5924.743.009a89m4m7dd1gh DBMS_SCHEDULER call ABSDATAWAREHOUSE.CALL_LOA...
3,835.7531,278.589.575,578.2268.7622.744xm1ruvkx3awx DBMS_SCHEDULER DECLARE job BINARY_INTEGER := ...
3,830.667,4930.519.554,652.9882.330.240vmwws2tu68sw DBMS_SCHEDULER DELETE FROM FACT_REALTIME_CUST...
1,488.264372.063.714,131.8236.024.50c0874a95q5fr1 SQL*Plus BEGIN load_staging.main; END;
1,206.744301.693.013,686.6932.739.69fpxb4nrq50xq5 SQL*Plus BEGIN load_warehouse.main; END...
998.935771.732.491,009.7898.920.00ggxg64bdfsps5 nqsserver.exe WITH OBISUBWITH0 AS (select D1...
959.163319.722.391,393.8268.8223.75b6usrg82hwsa3 DBMS_SCHEDULER call dbms_stats.gather_databas...
904.683772.402.266,011.9615.050.05fwupcb42fp2mf DBMS_SCHEDULER insert into FACT_REALTIME_CUST...
863.364215.842.154,214.7820.4829.44cawm4m974z436   BEGIN SYS.KUPW$WORKER.MAIN('S...
862.511,4880.582.152,953.9629.2028.399a7qyx2kq02vu DBMS_SCHEDULER DELETE FROM FACT_REALTIME_DATA...
752.497,9280.091.88764.5598.420.00dqpwrs34cbf54 Data Pump Worker SELECT COUNT(*) FROM sys.v_$op...
660.611660.611.65726.5590.929.0333c3k6rkxjhdk SQL*Plus select count(*) from V_ERROR_C...
585.624146.411.462,559.0022.8842.455ghx2munh9s9n   BEGIN SYS.KUPW$WORKER.MAIN('S...
521.183111.681.30527.1398.870.00gjdsfpvgrgzan nqsserver.exe WITH OBISUBWITH0 AS (select D1...
506.392,7130.191.26520.0297.381.69fhf8upax5cxsz   BEGIN sys.dbms_auto_report_int...
487.743162.581.22488.2299.900.00as2dr3ag24gay   select not_stale.obj# from (se...
482.503721.301.203,782.2112.760.0840rmtbaz0j6mk DBMS_SCHEDULER insert into FACT_REALTIME_CUST...
456.833731.221.143,220.1914.190.03ggcuamzctqwg9 DBMS_SCHEDULER insert into FACT_REALTIME_CUST...
454.382,6660.171.13458.8399.031.360w26sk6t6gq98   SELECT XMLTYPE(DBMS_REPORT.GET...
417.211332.091.04523.4079.7120.174uty0m1dzyu2s DBMS_SCHEDULER /* SQL Analyze(20, 1) */ WITH ...
403.80874.641.01407.8799.000.89g9q79c07ckt5p ORACLE.EXE SELECT /*+ */ "PRODUCTLISTPERC...


Back to SQL Statistics
Back to Top

SQL ordered by User I/O Wait Time

User I/O Time (s)Executions UIO per Exec (s)%TotalElapsed Time (s)%CPU%IO SQL IdSQL ModuleSQL Text
1,268.323422.777.485,578.2268.7622.744xm1ruvkx3awx DBMS_SCHEDULER DECLARE job BINARY_INTEGER := ...
1,240.664310.177.314,214.7820.4829.44cawm4m974z436   BEGIN SYS.KUPW$WORKER.MAIN('S...
1,086.334271.586.402,559.0022.8842.455ghx2munh9s9n   BEGIN SYS.KUPW$WORKER.MAIN('S...
898.043722.415.2929,968.5924.743.009a89m4m7dd1gh DBMS_SCHEDULER call ABSDATAWAREHOUSE.CALL_LOA...
838.661,4880.564.942,953.9629.2028.399a7qyx2kq02vu DBMS_SCHEDULER DELETE FROM FACT_REALTIME_DATA...
357.36489.342.113,686.6932.739.69fpxb4nrq50xq5 SQL*Plus BEGIN load_warehouse.main; END...
331.023110.341.951,393.8268.8223.75b6usrg82hwsa3 DBMS_SCHEDULER call dbms_stats.gather_databas...
186.12446.531.104,131.8236.024.50c0874a95q5fr1 SQL*Plus BEGIN load_staging.main; END;
133.44266.720.79147.749.7690.322kbb65tvbd61p nqsserver.exe WITH SAWITH0 AS (select sum(T1...
131.55265.770.78148.4810.9788.59apwhfjtaqwvx1 nqsserver.exe WITH SAWITH0 AS (select sum(T1...


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
5,629,388,2369855,715,114.9634.4211,610.1899.20422ydn0svdm6t nqsserver.exe WITH OBISUBWITH0 AS (select D1...
4,647,073,77837212,492,133.8128.4129,968.5924.739a89m4m7dd1gh DBMS_SCHEDULER call ABSDATAWAREHOUSE.CALL_LOA...
2,128,551,7607,493284,072.0413.014,652.9882.3.20vmwws2tu68sw DBMS_SCHEDULER DELETE FROM FACT_REALTIME_CUST...
707,824,3203771,877,518.094.336,011.96150fwupcb42fp2mf DBMS_SCHEDULER insert into FACT_REALTIME_CUST...
672,765,3971,488452,127.284.112,953.9629.228.49a7qyx2kq02vu DBMS_SCHEDULER DELETE FROM FACT_REALTIME_DATA...
569,236,3483189,745,449.333.485,578.2268.822.74xm1ruvkx3awx DBMS_SCHEDULER DECLARE job BINARY_INTEGER := ...
492,588,108577853,705.563.011,009.7898.90ggxg64bdfsps5 nqsserver.exe WITH OBISUBWITH0 AS (select D1...
486,816,0954121,704,023.752.983,686.6932.79.7fpxb4nrq50xq5 SQL*Plus BEGIN load_warehouse.main; END...
356,579,441372958,546.882.183,782.2112.8.140rmtbaz0j6mk DBMS_SCHEDULER insert into FACT_REALTIME_CUST...
343,692,56138,216,7198.992.10313.971000dkuf170dck8u0 SQL*Plus SELECT P.BUSINESS_UNIT_ID FROM...
326,762,509373876,038.902.003,220.1914.20ggcuamzctqwg9 DBMS_SCHEDULER insert into FACT_REALTIME_CUST...
268,058,888311861,925.681.64527.1398.90gjdsfpvgrgzan nqsserver.exe WITH OBISUBWITH0 AS (select D1...
237,703,879475,057,529.341.455,620.386.4.10wd9s1awuy6m6 DBMS_SCHEDULER call ABSDATAWAREHOUSE.CALL_LOA...
215,548,439762,836,163.671.32341.6699.20brab8cr5yc1jf ORACLE.EXE SELECT /*+ */ "WEEK_ID", "BUSI...
187,250,775246761,182.011.14378.74990b4cfwuykk8w7j nqsserver.exe WITH OBISUBWITH0 AS (select D1...
170,250,10085,125,3182.001.04241.41990dk3h7kk54rbpc SQL*Plus SELECT NVL(S.STRING, '???') FR...


Back to SQL Statistics
Back to Top

SQL ordered by Reads

Physical ReadsExecutionsReads per Exec %TotalElapsed Time (s)%CPU%IO SQL IdSQL ModuleSQL Text
102,642,950334,214,316.6713.365,578.2268.7622.744xm1ruvkx3awx DBMS_SCHEDULER DECLARE job BINARY_INTEGER := ...
70,510,702417,627,675.509.184,214.7820.4829.44cawm4m974z436   BEGIN SYS.KUPW$WORKER.MAIN('S...
40,759,021410,189,755.255.312,559.0022.8842.455ghx2munh9s9n   BEGIN SYS.KUPW$WORKER.MAIN('S...
20,373,648141,455,260.572.65437.2073.3325.911xsrcjpuz06ch nqsserver.exe select sum(T12363.REVENUE) as ...
18,885,619131,452,739.922.46404.3073.5525.645p6c3ax87q3ct nqsserver.exe select sum(T12363.REVENUE) as ...
17,180,13644,295,034.002.243,686.6932.739.69fpxb4nrq50xq5 SQL*Plus BEGIN load_warehouse.main; END...
15,860,81943,965,204.752.064,131.8236.024.50c0874a95q5fr1 SQL*Plus BEGIN load_staging.main; END;
12,946,67343,236,668.251.69164.4831.7468.367g0v4bq61a9t6 SQL*Plus INSERT /*+ APPEND */ INTO "FAC...
12,015,666101,201,566.601.56192.8463.7236.75c3w87bxryvmn7 DBMS_SCHEDULER /* SQL Analyze(392, 1) */ WITH...
10,935,92533,645,308.331.421,393.8268.8223.75b6usrg82hwsa3 DBMS_SCHEDULER call dbms_stats.gather_databas...
8,088,08510808,808.501.05168.3532.2967.747g3rn4q29jr4m DBMS_SCHEDULER /* SQL Analyze(20, 1) */ WITH ...
7,952,52961,325,421.501.04170.7339.6660.19dcu3y38pfhrba nqsserver.exe WITH SAWITH0 AS (select sum(T1...


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
7,630,5767,630,57641,907,644.000.0025.20cawm4m974z436   BEGIN SYS.KUPW$WORKER.MAIN('S...
7,101,8977,101,89741,775,474.250.0023.465ghx2munh9s9n   BEGIN SYS.KUPW$WORKER.MAIN('S...
3,113,3063,113,3063728,369.100.0010.289a89m4m7dd1gh DBMS_SCHEDULER call ABSDATAWAREHOUSE.CALL_LOA...
3,045,3463,045,3461,4882,046.600.0010.069a7qyx2kq02vu DBMS_SCHEDULER DELETE FROM FACT_REALTIME_DATA...
1,945,7041,945,7043648,568.000.006.434xm1ruvkx3awx DBMS_SCHEDULER DECLARE job BINARY_INTEGER := ...
571,426571,4264142,856.500.001.89fpxb4nrq50xq5 SQL*Plus BEGIN load_warehouse.main; END...
401,763401,7633133,921.000.001.33b6usrg82hwsa3 DBMS_SCHEDULER call dbms_stats.gather_databas...
336,030336,030484,007.500.001.11c0874a95q5fr1 SQL*Plus BEGIN load_staging.main; END;
273,902273,902391,300.670.000.906mcpb06rctk0x DBMS_SCHEDULER call dbms_space.auto_space_adv...
267,757267,7571267,757.000.000.885x8tabwf7qj35 nqsserver.exe WITH SAWITH0 AS (select sum(T1...


Back to SQL Statistics
Back to Top

SQL ordered by Executions

Executions Rows ProcessedRows per ExecElapsed Time (s) %CPU %IO SQL IdSQL ModuleSQL Text
85,125,31885,124,7821.00241.41990dk3h7kk54rbpc SQL*Plus SELECT NVL(S.STRING, '???') FR...
38,216,71937,958,7990.99313.971000dkuf170dck8u0 SQL*Plus SELECT P.BUSINESS_UNIT_ID FROM...
1,641,9951,641,9951.008.81100.6.6b9nbhsbx8tqz5   SELECT /*+ OPT_PARAM('_paralle...
356,638356,5271.007.7798.605t0s77hdvw8up   select owner, object_name, sub...
314,286314,2861.0016.3867.626.4gd95m0bzhg0vp   INSERT INTO wri$_adv_objects (...
60,70460,7041.000.22108.20f9jyt3tpyw0ha Data Pump Worker SELECT BITAND(:B2 , :B1 ) FROM...
44,64944,6521.002.1246.452.9grwydz59pu6mc   select text from view$ where r...
40,74740,7471.002.7484.90cpqph43y6ccq8   SELECT /* OPT_DYN_SAMP */ /*+ ...
39,58839,5891.001.2956.945.923s96rf87635s   select count(*) from sys.col_g...
32,67932,1130.981.7882.248.3f3ww8rgva3hrs   update /* KSXM:FLUSH COL */ sy...


Back to SQL Statistics
Back to Top

SQL ordered by Parse Calls

Parse CallsExecutions % Total Parses SQL IdSQL ModuleSQL Text
356,636356,63818.565t0s77hdvw8up   select owner, object_name, sub...
314,286314,28616.35gd95m0bzhg0vp   INSERT INTO wri$_adv_objects (...
44,65244,6492.32grwydz59pu6mc   select text from view$ where r...
40,74740,7472.12cpqph43y6ccq8   SELECT /* OPT_DYN_SAMP */ /*+ ...
36,47260,7041.90f9jyt3tpyw0ha Data Pump Worker SELECT BITAND(:B2 , :B1 ) FROM...
27,31927,3231.422syvqzbxp4k9z   select u.name, o.name, a.inter...
23,22523,2331.213dbzmtf9ahvzt   merge /* KSXM:OPTIM_DML_INF */...
23,16423,1641.21bxpcry2tpc217   select /*+ opt_param('parallel...
16,79516,7950.87gj5r9jj2xad7f JDBC Thin Client SELECT 1, status, '', archive...
10,94032,6790.57f3ww8rgva3hrs   update /* KSXM:FLUSH COL */ sy...


Back to SQL Statistics
Back to Top

SQL ordered by Sharable Memory

Sharable Mem (b)Executions % Total SQL IdSQL ModuleSQL Text
20,331,4192,6980.560za9fv0j1vgkk   WITH MONITOR_DATA AS (SELECT *...
10,883,7604870.301q2dgp71gqrja nqsserver.exe WITH OBISUBWITH0 AS (select D1...
8,763,4083110.24gjdsfpvgrgzan nqsserver.exe WITH OBISUBWITH0 AS (select D1...
7,739,454800.216hqb0kh6gb54q nqsserver.exe WITH OBISUBWITH0 AS (select D1...
7,258,3363910.20g1anakgx5mzg2 nqsserver.exe WITH OBISUBWITH0 AS (select D1...
5,746,2402460.16b4cfwuykk8w7j nqsserver.exe WITH OBISUBWITH0 AS (select D1...
5,605,9527880.153dycdjz6vbw06 nqsserver.exe WITH OBISUBWITH0 AS (select D1...
5,458,3682180.15b0a30xjr88atm nqsserver.exe WITH OBISUBWITH0 AS (select D1...
5,154,1761260.143a8r7v74n6trv nqsserver.exe WITH OBISUBWITH0 AS (select D1...
4,469,30640.124fucqazcnbk49 nqsserver.exe WITH OBISUBWITH0 AS (select D1...
3,022,15230.083b9t5g7ndxtha nqsserver.exe WITH OBISUBWITH0 AS (select D1...
2,840,5543840.08dfr78c08r03sz nqsserver.exe WITH OBISUBWITH0 AS (select D1...
2,458,5122620.0752sndf8u0nvmw nqsserver.exe WITH OBISUBWITH0 AS (select D1...
1,896,968670.05guwkyanaxz7mg SQL*Plus MERGE /*+ APPEND */ INTO "FACT...


Back to SQL Statistics
Back to Top

SQL ordered by Version Count

Version Count Executions SQL IdSQL ModuleSQL Text
364871q2dgp71gqrja nqsserver.exe WITH OBISUBWITH0 AS (select D1...
29311gjdsfpvgrgzan nqsserver.exe WITH OBISUBWITH0 AS (select D1...
24806hqb0kh6gb54q nqsserver.exe WITH OBISUBWITH0 AS (select D1...
24391g1anakgx5mzg2 nqsserver.exe WITH OBISUBWITH0 AS (select D1...


Back to SQL Statistics
Back to Top

Complete List of SQL Text

SQL IdSQL Text
0vmwws2tu68swDELETE FROM FACT_REALTIME_CUSTOMER_DATA F WHERE F.DATASET=:B1
0w26sk6t6gq98SELECT XMLTYPE(DBMS_REPORT.GET_REPORT_WITH_SUMMARY(:B1 )) FROM DUAL
0wd9s1awuy6m6call ABSDATAWAREHOUSE.CALL_LOAD_REALTIME_CUST_DATA_HOURLY ( )
0za9fv0j1vgkkWITH MONITOR_DATA AS (SELECT * FROM TABLE(GV$(CURSOR( SELECT USERENV('instance') AS INST_ID, KEY, NVL2(PX_QCSID, NULL, STATUS) STATUS, FIRST_REFRESH_TIME, LAST_REFRESH_TIME, REFRESH_COUNT, PROCESS_NAME, SID, SQL_ID, SQL_EXEC_START, SQL_EXEC_ID, DBOP_NAME, DBOP_EXEC_ID, SQL_PLAN_HASH_VALUE, SQL_FULL_PLAN_HASH_VALUE, SESSION_SERIAL#, SQL_TEXT, PX_SERVER#, PX_SERVER_GROUP, PX_SERVER_SET, PX_QCINST_ID, PX_QCSID, CASE WHEN ELAPSED_TIME < (CPU_TIME+ APPLICATION_WAIT_TIME+ CONCURRENCY_WAIT_TIME+ CLUSTER_WAIT_TIME+ USER_IO_WAIT_TIME+ QUEUING_TIME) THEN (CPU_TIME+ APPLICATION_WAIT_TIME+ CONCURRENCY_WAIT_TIME+ CLUSTER_WAIT_TIME+ USER_IO_WAIT_TIME+ QUEUING_TIME) ELSE ELAPSED_TIME END ELAPSED_TIME, QUEUING_TIME, CPU_TIME, APPLICATION_WAIT_TIME, CONCURRENCY_WAIT_TIME, CLUSTER_WAIT_TIME, USER_IO_WAIT_TIME, CASE WHEN ELAPSED_TIME < (CPU_TIME+ APPLICATION_WAIT_TIME+ CONCURRENCY_WAIT_TIME+ CLUSTER_WAIT_TIME+ USER_IO_WAIT_TIME+ QUEUING_TIME) THEN 0 ELSE ELAPSED_TIME - (CPU_TIME+ APPLICATION_WAIT_TIME+ CONCURRENCY_WAIT_TIME+ CLUSTER_WAIT_TIME+ USER_IO_WAIT_TIME+ QUEUING_TIME) END OTHER_WAIT_TIME, PLSQL_EXEC_TIME, JAVA_EXEC_TIME, FETCHES, BUFFER_GETS, IO_INTERCONNECT_BYTES IO_INTER_BYTES, PHYSICAL_READ_REQUESTS READ_REQS, PHYSICAL_READ_BYTES READ_BYTES, PHYSICAL_WRITE_REQUESTS WRITE_REQS, PHYSICAL_WRITE_BYTES WRITE_BYTES, NVL(PHYSICAL_READ_BYTES, 0) + NVL(PHYSICAL_WRITE_BYTES, 0) IO_BYTES, NVL(PHYSICAL_READ_REQUESTS, 0) + NVL(PHYSICAL_WRITE_REQUESTS, 0) IO_REQS, IO_CELL_UNCOMPRESSED_BYTES IO_UNC_BYTES, IO_CELL_OFFLOAD_ELIGIBLE_BYTES IO_ELIG_BYTES, IO_CELL_OFFLOAD_RETURNED_BYTES IO_RET_BYTES, USER# USERID, USERNAME, MODULE, ACTION, SERVICE_NAME, CLIENT_IDENTIFIER, CLIENT_INFO, PROGRAM, PLSQL_OBJECT_ID PL_OID, PLSQL_SUBPROGRAM_ID PL_PROGID, PLSQL_ENTRY_OBJECT_ID PL_ENTRY_OID, PLSQL_ENTRY_SUBPROGRAM_ID PL_ENTRY_PROGID, PX_MAXDOP MAX_DOP, PX_IS_CROSS_INSTANCE, PX_MAXDOP_INSTANCES MAX_DOP_INSTANCES, PX_SERVERS_REQUESTED SERVERS_REQUESTED, PX_SERVERS_ALLOCATED SERVERS_ALLOCATED, ERROR_NUMBER, ERROR_FACILITY, ERROR_MESSAGE, NVL2(OTHER_XML, 'Y', NULL) HAS_OTHER_XML, NVL2(BINDS_XML, 'Y', NULL) HAS_BINDS_XML, NVL2(RM_CONSUMER_GROUP, NVL2(RM_LAST_ACTION_TIME, TO_CHAR(RM_LAST_ACTION_TIME, :B12 ), '00/00/0000 00:00:01') || XMLELEMENT( "rminfo", XMLATTRIBUTES( RM_LAST_ACTION AS "rmlastact", RM_LAST_ACTION_REASON AS "rmlastreason", TO_CHAR(RM_LAST_ACTION_TIME, :B12 ) AS "rmlasttime", RM_CONSUMER_GROUP AS "rmcg")).GETSTRINGVAL(), '00/00/0000 00:00:00') RM_INFO, CON_NAME, CON_ID FROM V$ALL_SQL_MONITOR MO1 WHERE USERENV('INSTANCE') 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 ALL_PROCEDURES P WHERE P.OBJECT_ID = MAX_PL_OID AND P.SUBPROGRAM_ID = MAX_PL_PROGID AND ROWNUM = 1), 'Unavailable') END MAX_PL_NAME, CASE WHEN MAX_PL_ENTRY_OID IS NOT NULL THEN NVL((SELECT P.OWNER || '.' || P.OBJECT_NAME || DECODE(P.PROCEDURE_NAME, NULL, '', '.' || P.PROCEDURE_NAME) FROM ALL_PROCEDURES P WHERE P.OBJECT_ID = MAX_PL_ENTRY_OID AND P.SUBPROGRAM_ID = MAX_PL_ENTRY_PROGID AND ROWNUM = 1), 'Unavailable') END MAX_PL_ENTRY_NAME, MAX_STATUS, SUM_REFRESH_COUNT, MIN_FIRST_REFRESH_TIME, SQLMON_TEXT, SUM_ELAPSED_TIME, MAX_ELAPSED_TIME, MAX_QUEUING_TIME, SUM_CPU_TIME, SUM_USER_IO_WAIT_TIME, SUM_APPLICATION_WAIT_TIME, SUM_CONCURRENCY_WAIT_TIME, SUM_CLUSTER_WAIT_TIME, SUM_PLSQL_EXEC_TIME, SUM_JAVA_EXEC_TIME, SUM_OTHER_WAIT_TIME, SUM_FETCHES, SUM_BUFFER_GETS, SUM_READ_REQS, SUM_READ_BYTES, SUM_WRITE_REQS, SUM_WRITE_BYTES, SUM_IO_BYTES, SUM_IO_INTER_BYTES, SUM_IO_UNC_BYTES, SUM_IO_ELIG_BYTES, SUM_IO_RET_BYTES, DECODE(:B14 , 1, 'db_name', SYS_CONTEXT('userenv', 'db_unique_name')) DB_UNIQUE_NAME, DECODE(:B14 , 1, 'platform_name', SYS.DBMS_UTILITY.PORT_STRING) PLATFORM_NAME, DECODE(:B14 , 1, 'host_name', SYS_CONTEXT('userenv', 'server_host')) HOST_NAME, AGG_RM_INFO MAX_RM_INFO, MAX_CON_NAME, DECODE(MAX_CON_ID, 0, NULL, MAX_CON_ID) MAX_CON_ID FROM (SELECT MAX(PX_QCSID) MAX_PX_QCSID, MAX(CASE WHEN PX_QCSID IS NULL THEN KEY ELSE NULL END) MAX_KEY, MAX(CASE WHEN PX_QCSID IS NULL THEN INST_ID ELSE NULL END) MAX_INST_ID, MAX(CASE WHEN PX_QCSID IS NULL THEN SID ELSE NULL END) MAX_SESSION_ID, MAX(CASE WHEN PX_QCSID IS NULL THEN SESSION_SERIAL# ELSE NULL END) MAX_SESSION_SERIAL, MAX(MAX_DOP) MAX_PX_DOP, MAX(MAX_DOP_INSTANCES) MAX_PX_DOP_INSTANCES, MAX(PX_IS_CROSS_INSTANCE) MAX_PX_IS_CROSS_INSTANCE, SUM(SERVERS_REQUESTED) SUM_SERVERS_REQUESTED, SUM(SERVERS_ALLOCATED) SUM_SERVERS_ALLOCATED, COUNT(DISTINCT INST_ID) DIST_INST_COUNT, COUNT(DISTINCT PX_SERVER_GROUP) DIST_PX_GROUP_COUNT, COUNT(DISTINCT PX_SERVER_SET) DIST_PX_SET_COUNT, MAX(SQL_PLAN_HASH_VALUE) MAX_PLAN_HASH_VALUE, MAX(SQL_FULL_PLAN_HASH_VALUE) MAX_FULL_PLAN_HASH_VALUE, MAX(USERID) MAX_USERID, MAX(PROGRAM) MAX_PROGRAM, MAX(USERNAME) MAX_USERNAME, MAX(MODULE) MAX_MODULE, MAX(ACTION) MAX_ACTION, MAX(SERVICE_NAME) MAX_SERVICE_NAME, MAX(CLIENT_IDENTIFIER) MAX_CLIENT_ID, MAX(CLIENT_INFO) MAX_CLIENT_INFO, MAX(ERROR_NUMBER) MAX_ERROR_NUMBER, MAX(ERROR_FACILITY) MAX_ERROR_FACILITY, MAX(ERROR_MESSAGE) MAX_ERROR_MESSAGE, MAX(NVL2(PX_QCSID, HAS_OTHER_XML, NULL)) QC_HAS_OTHER_XML, MAX(HAS_BINDS_XML) QC_HAS_BINDS_XML, MAX(PL_OID) MAX_PL_OID, MAX(PL_PROGID) MAX_PL_PROGID, MAX(PL_ENTRY_OID) MAX_PL_ENTRY_OID, MAX(PL_ENTRY_PROGID) MAX_PL_ENTRY_PROGID, MAX(SQL_ID) MAX_SQL_ID, MAX(SQL_EXEC_START) MAX_SQL_EXEC_START, MAX(SQL_EXEC_ID) MAX_SQL_EXEC_ID, MAX(LAST_REFRESH_TIME) MAX_LAST_REFRESH_TIME, MAX(STATUS) MAX_STATUS, SUM(REFRESH_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, SUM(ELAPSED_TIME) SUM_ELAPSED_TIME, MAX(ELAPSED_TIME) MAX_ELAPSED_TIME, MAX(QUEUING_TIME) MAX_QUEUING_TIME, SUM(CPU_TIME) SUM_CPU_TIME, SUM(USER_IO_WAIT_TIME) SUM_USER_IO_WAIT_TIME, SUM(APPLICATION_WAIT_TIME) SUM_APPLICATION_WAIT_TIME, SUM(CONCURRENCY_WAIT_TIME) SUM_CONCURRENCY_WAIT_TIME, SUM(CLUSTER_WAIT_TIME) SUM_CLUSTER_WAIT_TIME, SUM(PLSQL_EXEC_TIME) SUM_PLSQL_EXEC_TIME, SUM(JAVA_EXEC_TIME) SUM_JAVA_EXEC_TIME, SUM(OTHER_WAIT_TIME) SUM_OTHER_WAIT_TIME, SUM(FETCHES) SUM_FETCHES, SUM(BUFFER_GETS) SUM_BUFFER_GETS, SUM(READ_REQS) SUM_READ_REQS, SUM(READ_BYTES) SUM_READ_BYTES, SUM(WRITE_REQS) SUM_WRITE_REQS, SUM(WRITE_BYTES) SUM_WRITE_BYTES, NVL(SUM(READ_BYTES), 0) + NVL(SUM(WRITE_BYTES), 0) SUM_IO_BYTES, SUM(IO_INTER_BYTES) SUM_IO_INTER_BYTES, SUM(IO_UNC_BYTES) SUM_IO_UNC_BYTES, SUM(IO_ELIG_BYTES) SUM_IO_ELIG_BYTES, SUM(IO_RET_BYTES) SUM_IO_RET_BYTES, MAX(RM_INFO) AGG_RM_INFO, MAX(CON_NAME) MAX_CON_NAME, MAX(CON_ID) MAX_CON_ID FROM MONITOR_DATA) MD), ASH_DATA AS (SELECT AD0.INST_ID, AD0.SESSION_ID, AD0.PLAN_LINE_ID, AD0.PLSQL_OBJECT_ID, AD0.PLSQL_SUBPROGRAM_ID, AD0.ACTIVITY_BUCKET_NUM, AD0.PLAN_ACTIVITY_BUCKET_NUM, AD0.SQL, AD0.TOP_LEVEL_SQL_ID, AD0.DBOP_NAME, AD0.IS_MONITORED_SQL, AD0.IS_PX_SLAVE, AD0.BUCKET_ACTIVITY_START, AD0.ACTIVITY_START, AD0.BUCKET_ACTIVITY_END, AD0.ACTIVITY_END, AD0.ACTIVITY_COUNT, AD0.ACTIVITY_TYPE, AD0.OTHER_SQL_ACTIVITY_TYPE, AD0.EVENT_NAME, AD0.IMQ_COUNT, AD0.WAIT_COUNT, AD0.CPU_COUNT, AD0.OTHER_SQL_COUNT, AD0.PX_SERVER_SET, AD0.PX_DFO_ACTIVITY_COUNT, AD0.DFO_MOST_ACTIVE_IID, AD0.DFO_MOST_ACTIVE_SID, (CASE WHEN AD0.DFO_MOST_ACTIVE_IID = AD0.INST_ID AND AD0.DFO_MOST_ACTIVE_SID = AD0.SESSION_ID AND (((AD0.PX_DFO _ACTIVITY_COUNT / AD0.DFO_MOST_ACTIVE_COUNT) >= AD0.PX_DOP * 1.05) OR ((AD0.PX_DFO_ACTIVITY_COUNT / AD0.DFO_MOST_ACTIVE_COUNT) <= AD0.PX_DOP *0.95)) AND (AD0.DFO_DURATION * 100) > :B32 THEN AD0.ACTIVITY_COUNT ELSE NULL END) DFO_MOST_ACTIVE_COUNT, AD0.BUCKET_DISTINCT_SAMPLES, AD0.SQL_BUCKET_DISTINCT_SAMPLES, CASE WHEN AD0.PX_SERVER_GROUP IS NULL AND AD0.IS_PX_SLAVE = 1 THEN 1 ELSE AD0.PX_SERVER_GROUP END PX_SERVER_GROUP, AD0.PX_STEP_ID, AD0.PX_DFO_PAIR_TYPE, AD0.PX_DFO_PAIR_ID, AD0.PX_STEP_ARG, AD0.PX_DOP, CASE WHEN AD0.PX_DOP IS NOT NULL AND AD0.PX_DOP <> AD0.PX_MIN_DOP AND AD0.PX_MIN_DOP != 0 THEN PX_MIN_DOP ELSE NULL END PX_MIN_DOP FROM (SELECT /*+ use_hash(ash) leading(mo) */ ASH.INST_ID, ASH.IS_PX_SLAVE, ASH.SESSION_ID, ASH.PLAN_LINE_ID, ASH.PLSQL_OBJECT_ID, ASH.PLSQL_SUBPROGRAM_ID, ASH.ACTIVITY_BUCKET_NUM, ASH.PLAN_ACTIVITY_BUCKET_NUM, ASH.SQL, ASH.TOP_LEVEL_SQL_ID, ASH.DBOP_NAME, ASH.IS_MONITORED_SQL, ASH.BUCKET_ACTIVITY_START, ASH.ACTIVITY_START, ASH.BUCKET_ACTIVITY_END, ASH.ACTIVITY_END, ASH.ACTIVITY_COUNT, ASH.ACTIVITY_TYPE, ASH.OTHER_SQL_ACTIVITY_TYPE, ASH.EVENT_NAME, ASH.IMQ_COUNT, ASH.WAIT_COUNT, ASH.CPU_COUNT, ASH.OTHER_SQL_COUNT, MO.PX_SERVER_SET, ASH.PX_DFO_ACTIVITY_COUNT, TRUNC(ASH.MOST_ACTIVE_IN_DFO / 10000000000) DFO_MOST_ACTIVE_COUNT, MOD(TRUNC(ASH.MOST_ACTIVE_IN_DFO / 1000000), 10000) DFO_MOST_ACTIVE_IID, MOD(ASH.MOST_ACTIVE_IN_DFO, 1000000) DFO_MOST_ACTIVE_SID, ASH.DFO_DURATION, ASH.BUCKET_DISTINCT_SAMPLES, ASH.SQL_BUCKET_DISTINCT_SAMPLES, MO.PX_SERVER_GROUP, ASH.PX_STEP_ID, ASH.PX_DFO_PAIR_TYPE, ASH.PX_DFO_PAIR_ID, ASH.PX_STEP_ARG, ASH.PX_DOP, ASH.PX_MIN_DOP FROM (SELECT /*+ no_merge */ MD.INST_ID, MD.SID, MD.SESSION_SERIAL#, MD.PX_SERVER_SET, MD.PX_SERVER_GROUP FROM MONITOR_DATA MD WHERE MD.SID IS NOT NULL OR :B31 = 1) MO, (SELECT /*+ no_merge */ GVTF.INST_ID, GVTF.GLOBAL_SAMPLE_ID, GVTF.IS_PX_SLAVE, GVTF.SESSION_ID, GVTF.PLAN_LINE_ID, GVTF.PLSQL_OBJECT_ID, GVTF.PLSQL_SUBPROGRAM_ID, GVTF.ACTIVITY_BUCKET_NUM, GVTF.PLAN_ACTIVITY_BUCKET_NUM, GVTF.SQL, GVTF.TOP_LEVEL_SQL_ID, GVTF.DBOP_NAME, GVTF.IS_MONITORED_SQL, GVTF.BUCKET_ACTIVITY_START, GVTF.ACTIVITY_START, GVTF.BUCKET_ACTIVITY_END, GVTF.ACTIVITY_END, GVTF.ACTIVITY_COUNT, GVTF.ACTIVITY_TYPE, GVTF.OTHER_SQL_ACTIVITY_TYPE, GVTF.EVENT_NAME, GVTF.IMQ_COUNT, GVTF.WAIT_COUNT, GVTF.CPU_COUNT, GVTF.OTHER_SQL_COUNT, MAX(GVTF.PER_SERVER_DFO_COUNT * 10000000000 + GVTF.INST_ID * 1000000 + GVTF.SESSION_ID) OVER(PARTITION BY GVTF.PX_DFO_PAIR_TYPE, GVTF.PX_DFO_PAIR_ID) MOST_ACTIVE_IN_DFO, SUM(GVTF.ACTIVITY_COUNT) OVER(PARTITION BY GVTF.PX_DFO_PAIR_TYPE, GVTF.PX_DFO_PAIR_ID) PX_DFO_ACTIVITY_COUNT, GVTF.DFO_DURATION, GVTF.PX_STEP_ID, GVTF.PX_DFO_PAIR_TYPE, GVTF.PX_DFO_PAIR_ID, GVTF.PX_STEP_ARG, GVTF.PX_DOP, GVTF.PX_MIN_DOP, COUNT(DISTINCT GVTF.GLOBAL_SAMPLE_ID) OVER(PARTITION BY GVTF.ACTIVITY_BUCKET_NUM) BUCKET_DISTINCT_SAMPLES, COUNT(DISTINCT GVTF.GLOBAL_SAMPLE_ID) OVER(PARTITION BY GVTF.SQL, GVTF.ACTIVITY_BUCKET_NUM) SQL_BUCKET_DISTINCT_SAMPLES FROM TABLE(SYS.GV$(CURSOR( (SELECT USERENV('INSTANCE') INST_ID, ASH2.GLOBAL_SAMPLE_ID, CASE WHEN :B30 = 1 AND :B27 > 1 THEN BUCKET_NUM ELSE NULL END ACTIVITY_BUCKET_NUM, CASE WHEN :B29 = 1 AND :B27 > 1 THEN BUCKET_NUM ELSE NULL END PLAN_ACTIVITY_BUCKET_NUM, ASH2.SQL, ASH2.TOP_LEVEL_SQL_ID, ASH2.DBOP_NAME, ASH2.IS_MONITORED_SQL, ASH2.PLAN_LINE_ID, ASH2.PLSQL_OBJECT_ID, ASH2.PLSQL_SUBPROGRAM_ID, ASH2.ACTIVITY_TYPE, ASH2.OTHER_SQL_ACTIVITY_TYPE, ASH2.EVENT_NAME, ASH2.IS_PX_SLAVE, ASH2.SESSION_ID, ASH2.PX_STEP_ID, ASH2.PX_DFO_PAIR_TYPE, ASH2.PX_DFO_PAIR_ID, ASH2.PX_STEP_ARG, CASE WHEN ASH2.PX_DFO_PAIR_ID IS NOT NULL THEN DECODE(ASH2.PX_DOP, 0, :B28 , ASH2.PX_DOP) ELSE NULL END PX_DOP, ASH2.PX_MIN_DOP, :B20 + NUMTODSINTERVAL(:B26 * (ASH2.BUCKET_NUM-1), 'SECOND') BUCKET_ACTIVITY_START, :B20 + NUMTODSINTERVAL( :B26 * ASH2.BUCKET_NUM - 1, 'SECOND') BUCKET_ACTIVITY_END, ASH2.ACTIVITY_START, ASH2.ACTIVITY_END, ASH2.ACTIVITY_COUNT, ASH2.IMQ_COUNT, ASH2.WAIT_COUNT, ASH2.CPU_COUNT, ASH2.OTHER_SQL_COUNT, SUM(ASH2.ACTIVITY_COUNT) OVER(PARTITION BY ASH2.PX_DFO_PAIR_ID, ASH2.PX_DFO_PAIR_TYPE, DECODE(ASH2.PX_DFO_PAIR_ID, NULL, NULL, ASH2.SESSION_ID)) PER_SERVER_DFO_COUNT, CEIL((MAX(ASH2.MAX_SAMPLE_DATE) OVER(PARTITION BY ASH2.PX_DFO_PAIR_ID, ASH2.PX_DFO_PAIR_TYPE) - MIN(ASH2.MIN_SAMPLE_DATE) OVER(PARTITION BY ASH2.PX_DFO_PAIR_ID, ASH2.PX_DFO_PAIR_TYPE)) * 3600 * 24) DFO_DURATION FROM (SELECT ASH1.BUCKET_NUM, ASH1.GLOBAL_SAMPLE_ID, ASH1.PLAN_LINE_ID, ASH1.PLSQL_OBJECT_ID, ASH1.PLSQL_SUBPROGRAM_ID, ASH1.ACTIVITY_TYPE, ASH1.OTHER_SQL_ACTIVITY_TYPE, ASH1.EVENT_NAME, ASH1.SESSION_ID, ASH1.PX_STEP_ID, ASH1.PX_STEP_ARG, MAX(ASH1.SQL) SQL, MAX(ASH1.IS_MONITORED_SQL) IS_MONITORED_SQL, MAX(ASH1.PX_DFO_PAIR_TYPE) PX_DFO_PAIR_TYPE, MAX(ASH1.PX_DFO_PAIR_ID) PX_DFO_PAIR_ID, MIN(SAMPLE_DATE) MIN_SAMPLE_DATE, MAX(SAMPLE_DATE) MAX_SAMPLE_DATE, MAX(ASH1.IS_PX_SLAVE) IS_PX_SLAVE, MAX(ASH1.PX_DOP) PX_DOP, MIN(ASH1.PX_DOP) PX_MIN_DOP, MIN(ASH1.SAMPLE_DATE) ACTIVITY_START, MAX(ASH1.SAMPLE_DATE) ACTIVITY_END, COUNT(ASH1.SQL) ACTIVITY_COUNT, COUNT(CASE WHEN ASH1.ACTIVITY_TYPE = 'Cpu' AND ASH1.EVENT_NAME = 'in memory' THEN 1 ELSE NULL END) IMQ_COUNT, COUNT(CASE WHEN ASH1.ACTIVITY_TYPE != 'Other SQL Execution' AND ASH1.ACTIVITY_TYPE != 'Non SQL' AND ASH1.ACTIVITY_TYPE != 'Cpu' THEN 1 ELSE NULL END) WAIT_COUNT, COUNT(CASE WHEN ASH1.ACTIVITY_TYPE = 'Cpu' AND ASH1.EVENT_NAME IS NULL THEN 1 ELSE NULL END) CPU_COUNT, COUNT(CASE WHEN ASH1.ACTIVITY_TYPE = 'Other SQL Execution' AND ASH1.ACTIVITY_TYPE != 'Non SQL' THEN 1 ELSE NULL END) OTHER_SQL_COUNT, MAX(ASH1.TOP_LEVEL_SQL_ID) TOP_LEVEL_SQL_ID, MAX(ASH1.DBOP_NAME) DBOP_NAME FROM ( SELECT (CASE WHEN :B27 > 1 THEN (TRUNC(DELTA_TIME_SECONDS/ :B26 ) + 1) ELSE 1 END) BUCKET_NUM, ASH00.SQL, ASH00.SAMPLE_DATE, NVL2(DUP.C2, TRUNC(DELTA_TIME_SECONDS/ (:B25 )) + 1, NULL) GLOBAL_SAMPLE_ID, NVL2(DUP.C2, NULL, ASH00.IS_MONITORED_SQL) IS_MONITORED_SQL, NVL2(DUP.C2, NULL, ASH00.IN_INMEMORY_QUERY) IN_INMEMORY_QUERY, NVL2(DUP.C2, NULL, ASH00.WAIT_CLASS) WAIT_CLASS, NVL2(DUP.C2, NULL, ASH00.ACTIVITY_TYPE) ACTIVITY_TYPE, NVL2(DUP.C2, NULL, ASH00.OTHER_SQL_ACTIVITY_TYPE) OTHER_SQL_ACTIVITY_TYPE, NVL2(DUP.C2, NULL, ASH00.EVENT_NAME) EVENT_NAME, NVL2(DUP.C2, NULL, ASH00.TOP_LEVEL_SQL_ID) TOP_LEVEL_SQL_ID, NVL2(DUP.C2, NULL, ASH00.DBOP_NAME) DBOP_NAME, NVL2(DUP.C2, NULL, ASH00.IS_PX_SLAVE) IS_PX_SLAVE, NVL2(DUP.C2, NULL, ASH00.SESSION_ID) SESSION_ID, NVL2(DUP.C2, NULL, ASH00.PLSQL_OBJECT_ID) PLSQL_OBJECT_ID, NVL2(DUP.C2, NULL, ASH00.PLSQL_SUBPROGRAM_ID) PLSQL_SUBPROGRAM_ID, NVL2(DUP.C2, NULL, ASH00.PLAN_LINE_ID) PLAN_LINE_ID, NVL2(DUP.C2, NULL, ASH00.PX_STEP_ID) PX_STEP_ID, NVL2(DUP.C2, NULL, ASH00.PX_STEP_ARG) PX_STEP_ARG, NVL2(DUP.C2, NULL, ASH00.PX_DFO_PAIR_ID) PX_DFO_PAIR_ID, NVL2(DUP.C2, NULL, ASH00.PX_DFO_PAIR_TYPE) PX_DFO_PAIR_TYPE, NVL2(DUP.C2, NULL, ASH00.PX_DOP) PX_DOP FROM (SELECT 1 C1, NULL C2 FROM V$DUAL UNION ALL SELECT 1 C1, 1 C2 FROM V$DUAL) DUP, (SELECT /*+ no_merge */ 1 C1, ASH000.SAMPLE_DATE, ASH000.IS_MONITORED_SQL, ((EXTRACT(SECOND FROM(DELTA_TIME)) + EXTRACT(MINUTE FROM(DELTA_TIME)) * 60 + EXTRACT(HOUR FROM(DELTA_TIME)) * 3600 + EXTRACT(DAY FROM(DELTA_TIME)) * 86400)) DELTA_TIME_SECONDS, ASH000.IN_INMEMORY_QUERY, ASH000.WAIT_CLASS, DECODE(ASH000.IS_MONITORED_SQL, 1, NVL(ASH000.WAIT_CLASS, 'Cpu'), DECODE(SQL_ID, NULL, 'Non SQL', 'Other SQL Execution')) ACTIVITY_TYPE, NVL(ASH000.WAIT_CLASS, 'Cpu') OTHER_SQL_ACTIVITY_TYPE, DECODE(:B24 , 1, CASE WHEN ASH000.IS_MONITORED_SQL = 1 THEN NVL(ASH000.EVENT, DECODE(ASH000.IN_INMEMORY_QUERY, 'Y', 'in memory', ASH000.EVENT)) WHEN ASH000.SQL_ID IS NOT NULL THEN 'sql_id: ' || ASH000.SQL_ID WHEN ASH000.CALL_NAME IS NOT NULL THEN 'call: ' || ASH000.CALL_NAME ELSE 'anonymous: '|| ASH000.EVENT END, NULL) EVENT_NAME, CASE WHEN ASH000.IS_MONITORED_SQL = 1 AND (NVL(ASH000.SQL_ID, :B9 ) = :B9 OR NVL(ASH000.DBOP_NAME, :B6 ) = :B6 ) THEN 'this' WHEN ASH000.IS_PX_SLAVE = 1 AND ASH000.SQL_ID IS NOT NULL AND ASH000.TOP_LEVEL_SQL_ID != ASH000.SQL_ID THEN ASH000.TOP_LEVEL_SQL_ID WHEN ASH000.SQL_ID IS NOT NULL THEN ASH000.SQL_ID ELSE NVL(CALL_NAME, 'anonymous') END SQL, CASE WHEN ASH000.IS_PX_SLAVE = 0 AND (ASH000.SQL_ID IS NULL OR ASH000.TOP_LEVEL_SQL_ID != ASH000.SQL_ID) THEN ASH000.TOP_LEVEL_SQL_ID END TOP_LEVEL_SQL_ID, ASH000.DBOP_NAME, ASH000.IS_PX_SLAVE, CASE WHEN ASH000.IS_PX_SLAVE = 1 AND ASH000.IS_MONITORED_SQL != 1 THEN 65536 ELSE ASH000.SESSION_ID END SESSION_ID, DECODE(ASH000.IS_MONITORED_SQL, 1, ASH000.PLSQL_OBJECT_ID, NULL) PLSQL_OBJECT_ID, DECODE(ASH000.IS_MONITORED_SQL, 1, ASH000.PLSQL_SUBPROGRAM_ID, NULL) PLSQL_SUBPROGRAM_ID, DECODE(ASH000.IS_MONITORED_SQL, 1, ASH000.SQL_PLAN_LINE_ID, NULL) PLAN_LINE_ID, DECODE(ASH000.IS_MONITORED_SQL, 1, ASH000.PX_STEP_ID, NULL) PX_STEP_ID, CASE WHEN ASH000.IS_PX_SLAVE = 1 AND ASH000.IS_MONITORED_SQL = 1 AND ASH000.PX_STEP_ID IN (1, 2, 3) THEN ASH000.PX_STEP_ARG ELSE NULL END PX_DFO_PAIR_ID, CASE WHEN ASH000.IS_PX_SLAVE = 0 OR ASH000.IS_MONITORED_SQL != 1 THEN NULL WHEN ASH000.PX_STEP_ID = 1 THEN 1 WHEN ASH000.PX_STEP_ID IN (2, 3) THEN 0 ELSE NULL END PX_DFO_PAIR_TYPE, DECODE(ASH000.IS_MONITORED_SQL, 1, ASH000.PX_STEP_ARG, NULL) PX_STEP_ARG, DECODE(ASH000.IS_MONITORED_SQL, 1, ASH000.PX_DOP, NULL) PX_DOP FROM (SELECT ASH0.*, CASE WHEN ASH0.IS_TARGET_SQL = 1 OR (ASH0.IS_PX_SLAVE = 1 AND ((NVL(ASH0.TOP_LEVEL_SQL_ID, ASH0.SQL_ID) IS NOT NULL AND NVL(ASH0.TOP_LEVEL_SQL_ID, ASH0.SQL_ID) = :B9 ) OR (SQL_ID IS NULL AND :B23 = 'Y'))) THEN 1 ELSE 0 END IS_MONITORED_SQL FROM (SELECT (CASE WHEN (ASH.SQL_ID = :B9 AND ASH.SQL_EXEC_ID = :B7 AND ASH.SQL_EXEC_START = :B8 ) THEN 1 ELSE 0 END) IS_TARGET_SQL, ASH.SQL_ID, ASH.SQL_PLAN_LINE_ID, ASH.PLSQL_OBJECT_ID, ASH.PLSQL_SUBPROGRAM_ID, ASH.TOP_LEVEL_SQL_ID, DECODE(ASH.SQL_ID, NULL, ASH.TOP_LEVEL_CALL_NAME, NULL) CALL_NAME, ASH.EVENT, ASH.IN_INMEMORY_QUERY, ASH.WAIT_CLASS, ASH.SQL_EXEC_ID, ASH.SQL_EXEC_START, ASH.DBOP_NAME, ASH.DBOP_EXEC_ID, ASH.SESSION_ID, ASH.SESSION_SERIAL#, CASE WHEN QC_INSTANCE_ID IS NOT NULL AND (ASH.SESSION_ID != ASH.QC_SESSION_ID OR ASH.SESSION_SERIAL# != ASH.QC_SESSION_SERIAL# OR USERENV('instance') != ASH.QC_INSTANCE_ID) THEN 1 ELSE 0 END IS_PX_SLAVE, SAMPLE_TIME - CAST(:B20 AS TIMESTAMP) DELTA_TIME, CAST(FROM_TZ(ASH.SAMPLE_TIME, DBTIMEZONE) AS DATE) SAMPLE_DATE, TRUNC(MOD(PX_FLAGS/65536, 32)) PX_STEP_ID, MOD(PX_FLAGS, 65536) PX_STEP_ARG, TRUNC(PX_FLAGS/2097152) PX_DOP FROM V$ALL_ACTIVE_SESSION_HISTORY ASH WHERE ((ASH.SESSION_ID = :B19 AND ASH.SESSION_SERIAL# = :B18 AND USERENV('INSTANCE') = :B17 ) OR (ASH.QC_SESSION_ID IS NOT NULL AND ASH.QC_SESSION_ID = :B19 AND ASH.QC_SESSION_SERIAL# = :B18 AND ASH.QC_INSTANCE_ID = :B17 )) AND SAMPLE_TIME BETWEEN :B16 AND :B15 ) ASH0 WHERE (ASH0.SAMPLE_DATE BETWEEN :B20 + 1/24/3600 AND :B22 - 1/24/3600 OR (ASH0.SQL_ID = :B9 AND ASH0.SQL_EXEC_START = :B8 AND ASH0.SQL_EXEC_ID = :B7 ) OR (ASH0.DBOP_NAME = :B6 AND ASH0.DBOP_EXEC_ID = :B5 )) AND (:B21 IS NULL OR ASH0.SQL_PLAN_LINE_ID = :B21 ) AND (ASH0.IS_PX_SLAVE = 0 OR ASH0.SQL_ID IS NOT NULL)) ASH000 ) ASH00 WHERE ASH00.C1 = DUP.C1) ASH1 WHERE ASH1.BUCKET_NUM > 0 AND ASH1.BUCKET_NUM <= :B27 GROUP BY USERENV('INSTANCE'), ASH1.GLOBAL_SAMPLE_ID, ASH1.BUCKET_NUM, ASH1.SESSION_ID, ASH1.PLAN_LINE_ID, ASH1.PLSQL_OBJECT_ID, ASH1.PLSQL_SUBPROGRAM_ID, ASH1.ACTIVITY_TYPE, ASH1.EVENT_NAME, ASH1.OTHER_SQL_ACTIVITY_TYPE, ASH1.PX_STEP_ID, ASH1.PX_STEP_ARG) ASH2)))) GVTF WHERE GVTF.INST_ID BETWEEN :B11 AND :B10 ) ASH WHERE ASH.GLOBAL_SAMPLE_ID IS NULL AND ASH.SESSION_ID = MO.SID(+) AND ASH.INST_ID = MO.INST_ID(+)) AD0), RESPONSE_TIME_DATA AS (SELECT ADH.BUCKET_NUM, ADH.SQL_ROWNUM, ADH.SQL, ADH.TOP_LEVEL_SQL_ID, ADH.DBOP_NAME, ADH.PX_ID, DECODE( ADH.PX_STEP_ID, NULL, NULL, 0, NULL, 1, 'PX Server(s) - Executing Parent DFO', 2, 'PX Server(s) - Executing Child DFO', 3, 'PX Server(s) - Sampling Child DFO', 4, 'PX Server(s) - Joining Group', 5, 'QC - Scheduling Child DFO', 6, 'QC - Scheduling Parent DFO', 7, 'QC - Initializing Objects', 8, 'QC - Flushing Objects', 9, 'QC - Allocating Slaves', 10, 'QC - Initializing Granules', 11, 'PX Server(s) - Parsing Cursor', 12, 'PX Server(s) - Executing Cursor', 13, 'PX Server(s) - Preparing Transaction', 14, 'PX Server(s) - Joining Transaction', 15, 'PX Server(s) - Load Commit', 16, 'PX Server(s) - Aborting Transaction', 17, 'QC - Executing Child DFO', 18, 'QC - Executing Parent DFO', 'PX Step - ' || PX_STEP_ID) PX_STEP_ID, ADH.PX_STEP_ARG, ADH.PX_DFO_PAIR_ID, ADH.PX_DOP, ADH.PX_MIN_DOP, ADH.DFO_MOST_ACTIVE_IID, ADH.DFO_MOST_ACTIVE_SID, ADH.DFO_MOST_ACTIVE_COUNT, ADH.ACTIVITY_START, ADH.ACTIVITY_END, ADH.ACTIVITY_TYPE, ADH.OTHER_SQL_ACTIVITY_TYPE, ADH.EVENT_NAME, ADH.PLAN_LINE_ID, ADH.PLSQL_OBJECT_ID, ADH.PLSQL_SUBPROGRAM_ID, CASE WHEN PLSQL_ROWNUM = 1 AND ADH.PLSQL_OBJECT_ID IS NOT NULL THEN NVL((SELECT P.OWNER || '.' || P.OBJECT_NAME || DECODE(P.PROCEDURE_NAME, NULL, '', '.' || P.PROCEDURE_NAME) FROM ALL_PROCEDURES P WHERE P.OBJECT_ID = ADH.PLSQL_OBJECT_ID AND P.SUBPROGRAM_ID = ADH.PLSQL_SUBPROGRAM_ID), 'Unavailable') ELSE NULL END PLSQL_NAME, ADH.ACTIVITY_COUNT, ADH.BUCKET_ACTIVE_SECONDS, ADH.BUCKET_IDLE_SECONDS, (CASE WHEN ADH.IS_MONITORED_SQL = 0 THEN ADH.ACTIVE_SECONDS WHEN ADH.PX_DFO_PAIR_ID IS NOT NULL AND ADH.DFO_PAIR_CPU_HEIGHT >= :B34 THEN DECODE(ADH.ACTIVITY_TYPE, 'Cpu', (ADH.DFO_PAIR_ACTIVITY_HEIGHT / ADH.DFO_PAIR_CPU_HEIGHT) * ADH.DFO_PAIR_TOTAL_SECONDS, 0) WHEN ADH.PX_DFO_PAIR_ID IS NOT NULL AND ADH.PX_DOP > :B34 THEN (ADH.DFO_PAIR_TOTAL_SECONDS * DECODE(ADH.ACTIVITY_TYPE, 'Cpu', ADH.DFO_PAIR_ACTIVITY_HEIGHT, (ADH.DFO_PAIR_ACTIVITY_HEIGHT * (:B34 - ADH.DFO_PAIR_CPU_HEIGHT)) / (ADH.DFO_PAIR_TOTAL_HEIGHT_ADJ - ADH.DFO_PAIR_CPU_HEIGHT))) / :B34 WHEN ADH.PX_DFO_PAIR_ID IS NOT NULL THEN (ADH.DFO_PAIR_TOTAL_SECONDS * ADH.DFO_PAIR_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 WHEN ADH.PX_DFO_PAIR_ID IS NOT NULL AND ADH.DFO_PAIR_IDLE_HEIGHT > 0 THEN (ADH.DFO_PAIR_TOTAL_SECONDS * ADH.DFO_PAIR_IDLE_HEIGHT) / ADH.PX_DOP ELSE 0 END) DFO_PAIR_IDLE_RESP_TIME, ADH.DFO_PAIR_ACTIVITY_HEIGHT, ADH.DFO_PAIR_CPU_HEIGHT, ADH.DFO_PAIR_IDLE_HEIGHT, ADH.DFO_PAIR_TOTAL_HEIGHT, ADH.DFO_PAIR_CPU_ACTIVITY, ADH.DFO_PAIR_TOTAL_SECONDS FROM (SELECT ADH_1.*, (ROW_NUMBER() OVER(PARTITION BY ADH_1.PLSQL_OBJECT_ID, ADH_1.PLSQL_SUBPROGRAM_ID ORDER BY ADH_1.BUCKET_NUM, ADH_1.ACTIVITY_TYPE, ADH_1.EVENT_NAME)) PLSQL_ROWNUM, (ROW_NUMBER() OVER(PARTITION BY ADH_1.SQL ORDER BY ADH_1.BUCKET_NUM, ADH_1.ACTIVITY_TYPE, ADH_1.EVENT_NAME)) SQL_ROWNUM, (CASE WHEN ADH_1.PX_DFO_PAIR_ID IS NOT NULL AND (ADH_1.DFO_PAIR_TOTAL_HEIGHT < ADH_1.PX_DOP) AND (ADH_1.DFO_PAIR_CPU_HEIGHT < :B34 ) THEN ADH_1.PX_DOP - ADH_1.DFO_PAIR_TOTAL_HEIGHT ELSE 0 END) DFO_PAIR_IDLE_HEIGHT, (CASE WHEN ADH_1.PX_DFO_PAIR_ID IS NOT NULL AND (ADH_1.DFO_PAIR_TOTAL_HEIGHT < ADH_1.PX_DOP) AND (ADH_1.DFO_PAIR_CPU_HEIGHT < :B34 ) THEN ADH_1.PX_DOP ELSE ADH_1.DFO_PAIR_TOTAL_HEIGHT END) DFO_PAIR_TOTAL_HEIGHT_ADJ FROM (SELECT ADH_0.*, (CASE WHEN ADH_0.DFO_PAIR_TOTAL_SECONDS > 0 THEN (ADH_0.DFO_PAIR_TOTAL_ACTIVITY * :B25 ) / ADH_0.DFO_PAIR_TOTAL_SECONDS ELSE 0 END) DFO_PAIR_TOTAL_HEIGHT, (CASE WHEN ADH_0.DFO_PAIR_TOTAL_SECONDS > 0 THEN (ADH_0.DFO_PAIR_CPU_ACTIVITY * :B25 ) / ADH_0.DFO_PAIR_TOTAL_SECONDS ELSE 0 END) DFO_PAIR_CPU_HEIGHT, (CASE WHEN ADH_0.PX_DFO_PAIR_ID IS NOT NULL AND ADH_0.DFO_PAIR_TOTAL_SECONDS > 0 THEN (ADH_0.ACTIVITY_COUNT * :B25 ) / ADH_0.DFO_PAIR_TOTAL_SECON DS ELSE 0 END) DFO_PAIR_ACTIVITY_HEIGHT FROM (SELECT AD3.*, (SUM(DECODE(AD3.PX_DFO_PAIR_ID, NULL, 0, AD3.ACTIVE_SECONDS)) OVER(PARTITION BY DECODE(AD3.PX_DFO_PAIR_ID, NULL, NULL, AD3.BUCKET_NUM), DECODE(AD3.PX_DFO_PAIR_ID, NULL, NULL, AD3.PX_STEP_ARG))) DFO_PAIR_TOTAL_SECONDS FROM (SELECT AD2.*, CASE WHEN AD2.IS_MONITORED_SQL = 0 THEN SQL_BUCKET_DISTINCT_SAMPLES * :B25 WHEN AD2.PX_ID IS NULL THEN AD2.ACTIVITY_COUNT * :B25 WHEN AD2.BUCKET_PARALLEL_MON_ACTIVITY > 0 THEN (AD2.ACTIVITY_COUNT * AD2.BUCKET_PARALLEL_MON_SECONDS) / AD2.BUCKET_PARALLEL_MON_ACTIVITY ELSE 0 END ACTIVE_SECONDS, CASE WHEN AD2.BUCKET_INTERVAL > BUCKET_ACTIVE_SECONDS THEN AD2.BUCKET_INTERVAL - BUCKET_ACTIVE_SECONDS ELSE 0 END BUCKET_IDLE_SECONDS FROM (SELECT AD1.*, (AD1.BUCKET_SERIAL_MON_ACTIVITY * :B25 ) BUCKET_SERIAL_MON_SECONDS, (AD1.BUCKET_TOTAL_MON_ACTIVITY - AD1.BUCKET_SERIAL_MON_ACTIVITY) BUCKET_PARALLEL_MON_ACTIVITY, (AD1.BUCKET_ACTIVE_SECONDS - (AD1.BUCKET_OTHER_ACTIVITY + AD1.BUCKET_SERIAL_MON_ACTIVITY) * :B25 ) BUCKET_PARALLEL_MON_SECONDS, (AD1.BUCKET_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 opt_param('_gby_hash_aggregation_enabled', 'false') */ XMLELEMENT( "sql_monitor_report", XMLATTRIBUTES(:B59 AS "version", TO_CHAR(:B58 , :B12 ) AS "sysdate"), XMLELEMENT( "report_parameters", NULL, CASE WHEN :B57 IS NOT NULL THEN XMLFOREST( :B57 AS "dbop_name", :B56 AS "dbop_exec_id") ELSE XMLFOREST( :B55 AS "sql_id", :B54 AS "sql_exec_id") END, XMLFOREST( :B53 AS "session_id", :B52 AS "session_serial", TO_CHAR(:B51 , :B12 ) AS "sql_exec_start", :B27 AS "bucket_count", TO_CHAR(:B50 , :B12 ) AS "interval_start", TO_CHAR(:B22 , :B12 ) AS "interval_end", DECODE(:B49 , 'Y', :B48 , NULL) AS "auto_refresh", :B47 AS "base_path"), CASE WHEN :B23 = 'Y' AND :B46 IS NOT NULL AND NOT (:B4 = 1 AND :B3 IS NULL AND :B2 IS NULL AND :B1 IS NULL) THEN XMLELEMENT( "parallel_filter", NULL, XMLFOREST( DECODE(:B4 , 1, 'yes', 'no') AS "qc", :B3 AS "server_group", :B2 AS "server_set", :B1 AS "server_number")) ELSE NULL END), CASE WHEN :B14 = 1 THEN XMLELEMENT( "derived_parameters_testing", NULL, XMLFOREST(:B11 AS "instance_id_low", :B10 AS "instance_id_high", :B26 AS "bucket_interval_sec", :B32 AS "interval_second", :B27 AS "bucket_calc_count", :B45 AS "bucket_calc_max_count", :B13 AS "sel_sqltext")) ELSE NULL END, (SELECT XMLCONCAT( CASE WHEN :B46 IS NULL AND :B67 IS NULL THEN XMLELEMENT( "target", XMLATTRIBUTES(:B17 AS "instance_id", :B19 AS "session_id", :B18 AS "session_serial", NVL2(:B6 , NULL, :B9 ) AS "sql_id", NVL2(:B6 , NULL, TO_CHAR(:B8 , :B12 )) AS "sql_exec_start", NVL2(:B6 , NULL, :B7 ) AS "sql_exec_id", NVL2(:B6 , :B6 , NULL) AS "dbop_name", NVL2(:B6 , :B5 , NULL) AS "dbop_exec_id", NVL2(:B6 , TO_CHAR(:B8 , :B12 ), NULL) AS "dbop_exec_start", NVL2(:B6 , NULL, MAX_PLAN_HASH_VALUE) AS "sql_plan_hash", NVL2(:B6 , NULL, MAX_FULL_PLAN_HASH_VALUE) AS "sql_full_plan_hash", MAGG.DB_UNIQUE_NAME AS "db_unique_name", MAGG.PLATFORM_NAME AS "db_platform_name", MAGG.HOST_NAME AS "report_host_name"), NVL2(SUM_SERVERS_REQUESTED, XMLELEMENT( "servers_requested", NULL, SUM_SERVERS_REQUESTED), NULL), NVL2(SUM_SERVERS_ALLOCATED, XMLELEMENT( "servers_allocated", NULL, SUM_SERVERS_ALLOCATED), NULL), NVL2(MAX_USERID, XMLELEMENT( "user_id", NULL, MAX_USERID), NULL), NVL2(MAX_USERNAME, XMLELEMENT( "user", NULL, MAX_USERNAME), NULL), NVL2(MAX_CON_ID, XMLELEMENT( "con_id", NULL, MAX_CON_ID), NULL), NVL2(MAX_CON_NAME, XMLELEMENT( "con_name", NULL, MAX_CON_NAME), NULL), NVL2(MAX_PROGRAM, XMLELEMENT( "program", NULL, MAX_PROGRAM), NULL), NVL2(MAX_MODULE, XMLELEMENT( "module", NULL, MAX_MODULE), NULL), NVL2(MAX_ACTION, XMLELEMENT( "action", NULL, MAX_ACTION), NULL), NVL2(MAX_SERVICE_NAME, XMLELEMENT( "service", NULL, MAX_SERVICE_NAME), NULL), NVL2(MAX_CLIENT_ID, XMLELEMENT( "client_id", NULL, MAX_CLIENT_ID), NULL), NVL2(MAX_CLIENT_INFO, XMLELEMENT( "client_info", NULL, MAX_CLIENT_INFO), NULL), NVL2(MAX_PL_ENTRY_OID, XMLELEMENT( "plsql_entry_object_id", NULL, MAX_PL_ENTRY_OID), NULL), NVL2(MAX_PL_ENTRY_PROGID, XMLELEMENT( "plsql_entry_subprogram_id", NULL, MAX_PL_ENTRY_PROGID), NULL), NVL2(MAX_PL_ENTRY_NAME, XMLELEMENT( "plsql_entry_name", NULL, MAX_PL_ENTRY_NAME), NULL), NVL2(MAX_PL_OID, XMLELEMENT( "plsql_object_id", NULL, MAX_PL_OID), NULL), NVL2(MAX_PL_PROGID, XMLELEMENT( "plsql_subprogram_id", NULL, MAX_PL_PROGID), NULL), NVL2(MAX_PL_NAME, XMLELEMENT( "plsql_name", NULL, MAX_PL_NAME), NULL), CASE WHEN (:B13 = 0 OR :B6 IS NOT NULL) THEN NULL ELSE XMLELEMENT( "sql_fulltext", XMLATTRIBUTES( NVL2(:B65 , 'Y', :B66 ) AS "is_full"), NVL2(:B65 , :B65 , SQLMON_TEXT)) END, XMLELEMENT( "status", NULL, MAX_STATUS), XMLELEMENT( "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(:B64 , LEAST(MAX_ELAPSED_TIME/1000000, 1), CEIL(MAX_QUEUING_TIME/1000000))), DECODE(MAX_RM_INFO, '00/00/0000 00:00:00', NULL, XMLTYPE(SUBSTR(MAX_RM_INFO, 20))), CASE WHEN (:B62 = 'Y') THEN XMLELEMENT( "adaptive_plan", XMLATTRIBUTES(:B63 AS "is_final"), :B62 ) ELSE NULL END ) END, XMLELEMENT( "stats", XMLATTRIBUTES('monitor' AS "type"), DECODE(NVL(SUM_ELAPSED_TIME, 0), 0, NULL, XMLELEMENT( "stat", XMLATTRIBUTES('elapsed_time' AS "name"), SUM_ELAPSED_TIME)), DECODE(NVL(MAX_QUEUING_TIME, 0), 0, NULL, XMLELEMENT( "stat", XMLATTRIBUTES('queuing_time' AS "name"), MAX_QUEUING_TIME)), DECODE(NVL(SUM_CPU_TIME, 0), 0, 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", XMLATTRIBUTES('concurrency_wait_time' AS "name"), SUM_CONCURRENCY_WAIT_TIME)), DECODE(NVL(SUM_CLUSTER_WAIT_TIME, 0), 0, NULL, XMLELEMENT( "stat", XMLATTRIBUTES('cluster_wait_time' AS "name"), SUM_CLUSTER_WAIT_TIME)), DECODE(NVL(SUM_PLSQL_EXEC_TIME, 0), 0, NULL, XMLELEMENT( "stat", XMLATTRIBUTES('plsql_exec_time' AS "name"), SUM_PLSQL_EXEC_TIME)), DECODE(NVL(SUM_JAVA_EXEC_TIME, 0), 0, NULL, 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)), DECODE(NVL(SUM_IO_UNC_BYTES, 0), 0, NULL, XMLELEMENT( "stat", XMLATTRIBUTES('unc_bytes' AS "name"), SUM_IO_UNC_BYTES)), DECODE(NVL(SUM_IO_ELIG_BYTES, 0), 0, NULL , XMLELEMENT( "stat", XMLATTRIBUTES('elig_bytes' AS "name"), SUM_IO_ELIG_BYTES)), DECODE(NVL(SUM_IO_RET_BYTES, 0), 0, NULL, XMLELEMENT( "stat", XMLATTRIBUTES('ret_bytes' AS "name"), SUM_IO_RET_BYTES)), CASE WHEN SUM_IO_INTER_BYTES IS NULL OR SUM_IO_BYTES = 0 OR SUM_IO_INTER_BYTES = SUM_IO_BYTES OR NVL(SUM_IO_ELIG_BYTES, 0) = 0 THEN NULL ELSE XMLELEMENT( "stat", XMLATTRIBUTES('cell_offload_efficiency' AS "name"), ROUND(SUM_IO_BYTES / DECODE(SUM_IO_INTER_BYTES, 0, 1, SUM_IO_INTER_BYTES), 2)) END, CASE WHEN NVL(SUM_IO_ELIG_BYTES, 0) = 0 OR SUM_IO_BYTES = 0 OR SUM_IO_UNC_BYTES = SUM_IO_RET_BYTES THEN NULL ELSE XMLELEMENT( "stat", XMLATTRIBUTES('cell_offload_efficiency2' AS "name"), GREATEST(0, ROUND(100* (GREATEST(SUM_IO_UNC_BYTES, SUM_IO_ELIG_BYTES) - SUM_IO_RET_BYTES) / SUM_IO_ELIG_BYTES, 2))) END), CASE WHEN :B33 = 1 THEN (SELECT CASE WHEN SUM(ACTIVITY_COUNT) > 0 THEN XMLELEMENT( "activity_sampled", XMLAGG( XMLELEMENT( "activity", XMLATTRIBUTES( AD1.ACTIVITY_TYPE AS "class", AD1.EVENT_NAME AS "event"), AD1.ACTIVITY_COUNT) ORDER BY AD1.ACTIVITY_TYPE, AD1.EVENT_NAME)) ELSE NULL END FROM (SELECT AD0.ACTIVITY_TYPE, AD0.EVENT_NAME, SUM(AD0.ACTIVITY_COUNT) ACTIVITY_COUNT FROM ASH_DATA AD0 GROUP BY AD0.ACTIVITY_TYPE, AD0.EVENT_NAME) AD1) ELSE NULL END, NVL2(MAX_ERROR_NUMBER, XMLELEMENT( "error", XMLATTRIBUTES(MAX_ERROR_NUMBER AS "number", MAX_ERROR_FACILITY AS "facility"), MAX_ERROR_MESSAGE), NULL), CASE WHEN :B61 = 1 AND MAGG.QC_HAS_BINDS_XML = 'Y' THEN (SELECT XMLTYPE(BINDS_XML) FROM GV$ALL_SQL_MONITOR MON WHERE MON.INST_ID = :B17 AND MON.KEY = MAGG.MAX_KEY AND MON.SID = MAGG.MAX_SESSION_ID AND MON.SQL_ID = :B9 AND MON.SQL_EXEC_START = :B8 AND MON.SQL_EXEC_ID = :B7 AND ROWNUM = 1) ELSE NULL END, CASE WHEN :B60 = 1 AND MAGG.QC_HAS_OTHER_XML = 'Y' THEN (SELECT XMLTYPE(OTHER_XML) FROM GV$ALL_SQL_MONITOR MON WHERE MON.INST_ID = MAGG.MAX_INST_ID AND MON.KEY = MAGG.MAX_KEY AND MON.SID = MAGG.MAX_SESSION_ID AND MON.SQL_ID = :B9 AND MON.SQL_EXEC_START = :B8 AND MON.SQL_EXEC_ID = :B7 AND ROWNUM = 1) ELSE NULL END) FROM MONITOR_AGG MAGG), CASE WHEN :B44 = 1 THEN (SELECT CASE WHEN AT.ACTIVITY_COUNT > 0 THEN XMLELEMENT( "activity_sampled", XMLATTRIBUTES( :B41 AS "ash_missing_seconds", TO_CHAR(AT.ACTIVITY_START, :B12 ) AS "first_sample_time", TO_CHAR(AT.ACTIVITY_END, :B12 ) AS "last_sample_time", ROUND((AT.ACTIVITY_END - AT.ACTIVITY_START) * 3600 * 24) + 1 AS "duration", AT.ACTIVITY_COUNT AS "count", AT.IMQ_COUNT AS "imq_count", AT.WAIT_COUNT AS "wait_count", AT.CPU_COUNT AS "cpu_count", DECODE(AT.OTHER_SQL_COUNT, 0, NULL, AT.OTHER_SQL_COUNT) AS "other_sql_count", :B40 AS "cpu_cores", :B39 AS "hyperthread"), AT.ACTIVITY_TOTAL, AH.GLOB_ACTIVITY_HISTO) WHEN :B41 IS NOT NULL THEN XMLELEMENT( "activity_sampled", XMLATTRIBUTES( DECODE( :B41 , -1, 'all', TO_CHAR( :B41 )) AS "ash_missing_seconds")) ELSE NULL END FROM (SELECT MIN(AD1.ACTIVITY_START) ACTIVITY_START, MAX(AD1.ACTIVITY_END) ACTIVITY_END, SUM(AD1.ACTIVITY_COUNT) ACTIVITY_COUNT, SUM(AD1.IMQ_COUNT) IMQ_COUNT, SUM(AD1.WAIT_COUNT) WAIT_COUNT, SUM(AD1.CPU_COUNT) CPU_COUNT, SUM(AD1.OTHER_SQL_COUNT) OTHER_SQL_COUNT, SUBSTR(MAX(LPAD(AD1.ACTIVITY_COUNT, 10)|| AD1.ACTIVITY_TYPE), 11) MOST_ACTIVE, XMLAGG( XMLELEMENT( "activity", XMLATTRIBUTES( AD1.ACTIVITY_TYPE AS "class", AD1.EVENT_NAME AS "event"), AD1.ACTIVITY_COUNT) ORDER BY AD1.ACTIVITY_TYPE, AD1.EVENT_NAME) ACTIVITY_TOTAL FROM (SELECT AD0.ACTIVITY_TYPE, AD0.EVENT_NAME, MIN(AD0.ACTIVITY_START) ACTIVITY_START, MAX(AD0.ACTIVITY_END) ACTIVITY_END, SUM(AD0.ACTIVITY_COUNT) ACTIVITY_COUNT, SUM(AD0.IMQ_COUNT) IMQ_COUNT, SUM(AD0.WAIT_COUNT) WAIT_COUNT, SUM(AD0.CPU_COUNT) CPU_COUNT, SUM(AD0.OTHER_SQL_COUNT) OTHER_SQL_COUNT FROM ASH_DATA AD0 GROUP BY AD0.ACTIVITY_TYPE, AD0.EVENT_NAME) AD1) AT, (SELECT CASE WHEN :B30 = 1 AND :B27 > 1 THEN XMLELEMENT( "activity_histogram", XMLATTRIBUTES( :B26 AS "bucket_interval", :B27 AS "bucket_count ", TO_CHAR( :B20 , :B12 ) AS "start_time", TO_CHAR( :B22 , :B12 ) AS "end_time", ROUND(( :B22 - :B20 ) *3600*24) + 1 AS "duration"), XMLAGG( XMLELEMENT( "bucket", XMLATTRIBUTES( AD2.BUCKET_NUM AS "number"), ACTIVITY_BUCKET) ORDER BY AD2.BUCKET_NUM)) ELSE NULL END GLOB_ACTIVITY_HISTO FROM (SELECT AD1.BUCKET_NUM, SUM(ACTIVITY_COUNT) ACTIVITY_COUNT, SUM(IMQ_COUNT) IMQ_COUNT, SUM(WAIT_COUNT) WAIT_COUNT, SUM(CPU_COUNT) CPU_COUNT, SUM(OTHER_SQL_COUNT) OTHER_SQL_COUNT, MIN(AD1.ACTIVITY_START) ACTIVITY_START, MAX(AD1.ACTIVITY_END) ACTIVITY_END, MIN(AD1.BUCKET_ACTIVITY_START) BUCKET_ACTIVITY_START, MAX(AD1.BUCKET_ACTIVITY_END) BUCKET_ACTIVITY_END, SUBSTR(MAX(LPAD(AD1.ACTIVITY_COUNT, 10)|| AD1.ACTIVITY_TYPE), 11) MOST_ACTIVE, XMLAGG( XMLELEMENT( "activity", XMLATTRIBUTES( AD1.ACTIVITY_TYPE AS "class", AD1.EVENT_NAME AS "event"), AD1.ACTIVITY_COUNT) ORDER BY AD1.ACTIVITY_TYPE, AD1.EVENT_NAME) ACTIVITY_BUCKET FROM (SELECT AD0.ACTIVITY_BUCKET_NUM BUCKET_NUM, AD0.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 :B68 = 'Y' THEN AD1.DFO_MOST_ACTIVE_IID END AS "skew_iid", DECODE(AD1.DFO_MOST_ACTIVE_COUNT, NULL, NULL, AD1.DFO_MOST_ACTIVE_SID) AS "skew_sid", AD1.DFO_MOST_ACTIVE_COUNT AS "skew_count", DECODE(AD1.PX_DOP, :B28 , NULL, AD1.PX_DOP) AS "dop", DECODE(AD1.PX_DOP, AD1.PX_MIN_DOP, NULL, AD1.PX_MIN_DOP) AS "min_dop", AD1.PX_ID AS "px", AD1.PX_STEP_ID AS "step", AD1.PX_STEP_ARG AS "arg", DECODE(AD1.ACTIVITY_COUNT, AD1.RESP_TIME, NULL, ROUND(AD1.RESP_TIME, 2)) AS "rt"), AD1.ACTIVITY_COUNT)) ORDER BY AD1.PX_STEP_ID, AD1.PX_STEP_ARG, AD1.DFO_PAIR_ROWNUM) ACTIVITY_BUCKET_XML FROM (SELECT AD01.*, CASE WHEN AD01.ACTIVITY_TYPE != 'Other SQL Execution' AND AD01.ACTIVITY_TYPE != 'Non SQL' THEN AD01.ACTIVITY_TYPE END CLASS, CASE WHEN (AD01.ACTIVITY_TYPE = 'Other SQL Execution' OR AD01.ACTIVITY_TYPE = 'Non SQL') THEN AD01.OTHER_SQL_ACTIVITY_TYPE END OTHER_SQL_CLASS, CASE WHEN AD01.ACTIVITY_TYPE != 'Other SQL Execution' AND AD01.ACTIVITY_TYPE != 'Non SQL' THEN AD01.EVENT_NAME END EVENT, CASE WHEN AD01.SQL IN ('this', 'anonymous') THEN NULL ELSE AD01.SQL END RPI, DECODE(AD01.ACTIVITY_TYPE, 'Other SQL Execution', SUBSTR(AD01.EVENT_NAME, 9), NULL) OTHER_SQL, DECODE(AD01.ACTIVITY_TYPE, 'Non SQL', AD01.EVENT_NAME, NULL) NON_SQL, ROW_NUMBER() OVER(PARTITION BY AD01.BUCKET_NUM, AD01.PX_DFO_PAIR_ID ORDER BY AD01.ACTIVITY_TYPE, AD01.EVENT_NAME, AD01.PLAN_LINE_ID) DFO_PAIR_ROWNUM FROM RESPONSE_TIME_DATA AD01) AD1 GROUP BY AD1.BUCKET_NUM) AD2) AH) ELSE NULL END, CASE WHEN :B23 = 'Y' THEN (SELECT XMLELEMENT( "parallel_info", XMLATTRIBUTES( :B17 AS "qc_instance_id", MAX_PX_QCSID AS "qc_session_id", MAX_PX_IS_CROSS_INSTANCE AS "is_cross_instance", MAX_PX_DOP AS "dop", MAX_PX_DOP_INSTANCES AS "max_dop_instances", DIST_INST_COUNT AS "inst_count", DIST_PX_GROUP_COUNT AS "server_group_count", DIST_PX_SET_COUNT AS "server_set_count"), CASE WHEN :B70 = 1 THEN PX_SESSIONS ELSE NULL END, CASE WHEN :B68 = 'Y' THEN DECODE(:B69 , 1, PX_INSTANCES, NULL) ELSE NULL END) FROM (SELECT MAX_PX_QCSID, MAX_PX_DOP, MAX_PX_DOP_INSTANCES, MAX_PX_IS_CROSS_INSTANCE, SUM_SERVERS_REQUESTED, SUM_SERVERS_ALLOCATED, DIST_INST_COUNT, DIST_PX_GROUP_COUNT, DIST_PX_SET_COUNT, (SELECT XMLELEMENT( "sessions", XMLATTRIBUTES(MAX(PX_SESSION.ACTIVITY_COUNT) AS "max_activity_count", MAX(PX_SESSION.IMQ_COUNT) AS "max_imq_count", MAX(PX_SESSION.CPU_COUNT) AS "max_cpu_count", MAX(PX_SESSION.WAIT_COUNT) AS "max_wait_count", MAX(PX_SESSION.OTHER_SQL_COUNT) AS "max_other_sql_count", MAX(PX_SESSION.MAX_IO_REQS) AS "max_io_reqs", MAX(PX_SESSION.MAX_IO_BYTES) AS "max_io_bytes", MAX(PX_SESSION.MAX_BUFFER_GETS) AS "max_buffer_gets", MAX(PX_SESSION.MAX_ELAPSED_TIME) AS "max_elapsed_time"), XMLAGG(PX_SESSION.PX_SESSION_XML ORDER BY PX_SERVER_GROUP NULLS FIRST, PX_SERVER_SET, PX_SERVER#)) FROM (SELECT PX_SERVER_GROUP, PX_SERVER_SET, PX_SERVER#, MAX(PI.MAX_ELAPSED_TIME) MAX_ELAPSED_TIME, MAX(PI.MAX_IO_REQS) MAX_IO_REQS, MAX(PI.MAX_IO_BYTES) MAX_IO_BYTES, MAX(PI.MAX_BUFFER_GETS) MAX_BUFFER_GETS, SUM(PI.ACTIVITY_COUNT) ACTIVITY_COUNT, SUM(PI.IMQ_COUNT) IMQ_COUNT, SUM(PI.WAIT_COUNT) WAIT_COUNT, SUM(PI.CPU_COUNT) CPU_COUNT, SUM(PI.OTHER_SQL_COUNT) OTHER_SQL_COUNT, XMLELEMENT( "session", XMLATTRIBUTES( INST_ID AS "inst_id", PROCESS_NAME AS "process_name", SID AS "session_id", SESSION_SERIAL# AS "session_serial", PX_SERVER_GROUP AS "server_group", PX_SERVER_SET AS "server_set", PX_SERVER# AS "server_num"), XMLELEMENT( "stats", XMLATTRIBUTES( 'monitor' AS "type"), NVL2(MAX(ELAPSED_TIME), XMLELEMENT( "stat", XMLATTRIBUTES('elapsed_time' AS "name"), MAX(ELAPSED_TIME)), NULL), NVL2(MAX(QUEUING_TIME), XMLELEMENT( "stat", XMLATTRIBUTES('queuing_time' AS "name"), MAX(QUEUING_TIME)), NULL), NVL2(MAX(CPU_TIME), XMLELEMENT( "stat", XMLATTRIBUTES('cpu_time' AS "name"), MAX(CPU_TIME)), NULL), NVL2(MAX(USER_IO_WAIT_TIME), XMLELEMENT( "stat", XMLATTRIBUTES('user_io_wait_time' AS "name"), MAX(USER_IO_WAIT_TIME)), NULL), NVL2(MAX(APPLICATION_WAIT_TIME), XMLELEMENT( "stat", XMLATTRIBUTES('application_wait_time' AS "name"), MAX(APPLICATION_WAIT_TIME)), NULL), NVL2(MAX(CONCURRENCY_WAIT_TIME), XMLELEMENT( "stat", XMLATTRIBUTES('concurrency_wait_time' AS "name"), MAX(CONCURRENCY_WAIT_TIME)), NULL), NVL2(MAX(CLUSTER_WAIT_TIME), XMLELEMENT( "stat", XMLATTRIBUTES('cluster_wait_time' AS "name"), MAX(CLUSTER_WAIT_TIME)), NULL), NVL2(MAX(PLSQL_EXEC_TIME), XMLELEMENT( "stat", XMLATTRIBUTES('plsql_exec_time' AS "name"), MAX(PLSQL_EXEC_TIME)), NULL), NVL2(MAX(JAVA_EXEC_TIME), XMLELEMENT( "stat", XMLATTRIBUTES('java_exec_time' AS "name"), MAX(JAVA_EXEC_TIME)), NULL), NVL2(MAX(OTHER_WAIT_TIME), XMLELEMENT( "stat", XMLATTRIBUTES( 'other_wait_time' AS "name"), MAX(OTHER_WAIT_TIME)), NULL), NVL2(MAX(FETCHES), XMLELEMENT( "stat", XMLATTRIBUTES('user_fetch_count' AS "name"), MAX(FETCHES)), NULL), NVL2(MAX(BUFFER_GETS), XMLELEMENT( "stat", XMLATTRIBUTES('buffer_gets' AS "name"), MAX(BUFFER_GETS)), NULL), NVL2(MAX(READ_REQS), XMLELEMENT( "stat", XMLATTRIBUTES('disk_reads' AS "name"), MAX(READ_REQS)), NULL), NVL2(MAX(WRITE_REQS), XMLELEMENT( "stat", XMLATTRIBUTES('direct_writes' AS "name"), MAX(WRITE_REQS)), NULL), NVL2(MAX(READ_REQS), XMLELEMENT( "stat", XMLATTRIBUTES('read_reqs' AS "name"), MAX(READ_REQS)), NULL), NVL2(MAX(READ_BYTES), XMLELEMENT( "stat", XMLATTRIBUTES('read_bytes' AS "name"), MAX(READ_BYTES)), NULL), NVL2(MAX(WRITE_REQS), XMLELEMENT( "stat", XMLATTRIBUTES('write_reqs' AS "name"), MAX(WRITE_REQS)), NULL), NVL2(MAX(WRITE_BYTES), XMLELEMENT( "stat", XMLATTRIBUTES('write_bytes' AS "name"), MAX(WRITE_BYTES)), NULL), NVL2(MAX(IO_UNC_BYTES), XMLELEMENT( "stat", XMLATTRIBUTES('unc_bytes' AS "name"), MAX(IO_UNC_BYTES)), NULL), NVL2(MAX(IO_ELIG_BYTES), XMLELEMENT( "stat", XMLATTRIBUTES('elig_bytes' AS "name"), MAX(IO_ELIG_BYTES)), NULL), NVL2(MAX(IO_RET_BYTES), XMLELEMENT( "stat", XMLATTRIBUTES('ret_bytes' AS "name"), MAX(IO_RET_BYTES)), NULL), CASE WHEN MAX(IO_INTER_BYTES) IS NULL OR NVL(MAX(IO_BYTES), 0) = 0 OR MAX(IO_INTER_BYTES) = MAX(IO_BYTES) OR NVL(MAX(IO_ELIG_BYTES), 0) = 0 THEN NULL ELSE XMLELEMENT( "stat", XMLATTRIBUTES('cell_offload_efficiency' AS "name"), ROUND(MAX(IO_BYTES) / DECODE(MAX(IO_INTER_BYTES), 0, 1, MAX(IO_INTER_BYTES)), 2)) END, CASE WHEN NVL(MAX(IO_ELIG_BYTES), 0) = 0 OR NVL(MAX(IO_BYTES), 0) = 0 OR MAX(IO_UNC_BYTES) = MAX(IO_RET_BYTES) THEN NULL ELSE XMLELEMENT( "stat", XMLATTRIBUTES('cell_offload_efficiency2' AS "name"), GREATEST(0, ROUND(100* (GREATEST( NVL(MAX(IO_UNC_BYTES), 0), NVL(MAX(IO_ELIG_BYTES), 0)) - MAX(IO_RET_BYTES)) / MAX(IO_ELIG_BYTES), 2))) END), CASE WHEN SUM(PI.ACTIVITY_COUNT) > 0 AND :B33 = 1 THEN XMLELEMENT( "activity_sampled", XMLATTRIBUTES( TO_CHAR(MIN(PI.ACTIVITY_START), :B12 ) AS "first_sample_time", TO_CHAR(MAX(PI.ACTIVITY_END), :B12 ) AS "last_sample_time", ROUND((MAX(PI.ACTIVITY_END) - MIN(PI.ACTIVITY_START)) * 3600 * 24) + 1 AS "duration", SUM(PI.ACTIVITY_COUNT) AS "count", SUM(PI.IMQ_COUNT) AS "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 :B60 = 1 AND PI.HAS_OTHER_XML = 'Y' THEN (SELECT XMLTYPE(OTHER_XML) FROM GV$ALL_SQL_MONITOR MON WHERE MON.INST_ID = PI.INST_ID AND MON.KEY = PI.KEY AND MON.SID = PI.SID AND MON.SQL_ID = :B9 AND MON.SQL_EXEC_START = :B8 AND MON.SQL_EXEC_ID = :B7 AND ROWNUM = 1) ELSE NULL END) PX_SESSION_XML FROM (SELECT MO.HAS_OTHER_XML, MO.KEY, MO.INST_ID, DECODE(MO.PROCESS_NAME, 'ora', 'PX Coordinator', MO.PROCESS_NAME) PROCESS_NAME, MO.SID, MO.SESSION_SERIAL#, MO.PX_SERVER_GROUP, MO.PX_SERVER_SET, MO.PX_SERVER#, 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.BUFFER_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.IO_UNC_BYTES, 0, NULL, MO.IO_UNC_BYTES)) IO_UNC_BYTES, MAX(DECODE(MO.IO_ELIG_BYTES, 0, NULL, MO.IO_ELIG_BYTES)) IO_ELIG_BYTES, MAX(DECODE(MO.IO_RET_BYTES, 0, NULL, MO.IO_RET_BYTES)) IO_RET_BYTES, MAX(DECODE(MO.APPLICATION_WAIT_TIME, 0, NULL, MO.APPLICATION_WAIT_TIME)) APPLICATION_WAIT_TIME, MAX(DECODE(MO.CONCURRENCY_WAIT_TIME, 0, NULL, MO.CONCURRENCY_WAIT_TIME)) CONCURRENCY_WAIT_TIME, MAX(DECODE(MO.CLUSTER_WAIT_TIME, 0, NULL, MO.CLUSTER_WAIT_TIME)) CLUSTER_WAIT_TIME, MAX(DECODE(MO.USER_IO_WAIT_TIME, 0, NULL, MO.USER_IO_WAIT_TIME)) USER_IO_WAIT_TIME, MAX(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(DECODE(MO.OTHER_WAIT_TIME, 0, NULL, MO.OTHER_WAIT_TIME)) OTHER_WAIT_TIME FROM MONITOR_DATA MO, (SELECT ASH1.INST_ID, ASH1.SESSION_ID, ASH1.ACTIVITY_TYPE, ASH1.EVENT_NAME, SUM(ASH1.ACTIVITY_COUNT) ACTIVITY_COUNT, SUM(ASH1.IMQ_COUNT) IMQ_COUNT, SUM(ASH1.WAIT_COUNT) WAIT_COUNT, SUM(ASH1.CPU_COUNT) CPU_COUNT, SUM(ASH1.OTHER_SQL_COUNT)OTHER_SQL_COUNT, MIN(ASH1.ACTIVITY_START) ACTIVITY_START, MAX(ASH1.ACTIVITY_END) ACTIVITY_END FROM ASH_DATA ASH1 GROUP BY ASH1.INST_ID, ASH1.SESSION_ID, ASH1.ACTIVITY_TYPE, ASH1.EVENT_NAME) ASH0 WHERE MO.INST_ID = ASH0.INST_ID(+) AND MO.SID = ASH0.SESSION_ID(+) AND (:B70 = 1 OR :B69 = 1) GROUP BY MO.INST_ID, MO.KEY, MO.HAS_OTHER_XML, MO.PROCESS_NAME, MO.SID, MO.SESSION_SERIAL#, MO.PX_SERVER_GROUP, MO.PX_SERVER_SET, M O.PX_SERVER#, ASH0.ACTIVITY_TYPE, ASH0.EVENT_NAME) PI WHERE (:B70 = 1) GROUP BY PI.INST_ID, PI.KEY, PI.HAS_OTHER_XML, PI.SID, PI.PROCESS_NAME, PI.SESSION_SERIAL#, PI.PX_SERVER_GROUP, PI.PX_SERVER_SET, PI.PX_SERVER#) PX_SESSION) PX_SESSIONS, (SELECT XMLELEMENT( "instances", XMLATTRIBUTES( MAX(PX_INSTANCE.ACTIVITY_COUNT) AS "max_activity_count", MAX(PX_INSTANCE.IMQ_COUNT) AS "max_imq_count", MAX(PX_INSTANCE.CPU_COUNT) AS "max_cpu_count", MAX(PX_INSTANCE.WAIT_COUNT) AS "max_wait_count", MAX(PX_INSTANCE.OTHER_SQL_COUNT) AS "max_other_sql_count", MAX(PX_INSTANCE.ELAPSED_TIME) AS "max_elapsed_time", MAX(PX_INSTANCE.BUFFER_GETS) AS "max_buffer_gets", MAX(PX_INSTANCE.IO_REQS) AS "max_io_reqs", MAX(PX_INSTANCE.IO_BYTES) AS "max_io_bytes"), XMLAGG(PX_INSTANCE.PX_INSTANCES_XML ORDER BY INST_ID)) FROM (SELECT PI.INST_ID, MAX(PI.ELAPSED_TIME) ELAPSED_TIME, MAX(PI.IO_REQS) IO_REQS, MAX(PI.IO_BYTES) IO_BYTES, MAX(PI.BUFFER_GETS) BUFFER_GETS, SUM(PI.ACTIVITY_COUNT) ACTIVITY_COUNT, SUM(PI.IMQ_COUNT) IMQ_COUNT, SUM(PI.WAIT_COUNT) WAIT_COUNT, SUM(PI.CPU_COUNT) CPU_COUNT, SUM(PI.OTHER_SQL_COUNT) OTHER_SQL_COUNT, XMLELEMENT( "instance", XMLATTRIBUTES( INST_ID AS "inst_id"), XMLELEMENT( "stats", XMLATTRIBUTES( 'monitor' AS "type"), NVL2(MAX(ELAPSED_TIME), XMLELEMENT( "stat", XMLATTRIBUTES('elapsed_time' AS "name"), MAX(ELAPSED_TIME)), NULL), NVL2(MAX(QUEUING_TIME), XMLELEMENT( "stat", XMLATTRIBUTES('queuing_time' AS "name"), MAX(QUEUING_TIME)), NULL), NVL2(MAX(CPU_TIME), XMLELEMENT( "stat", XMLATTRIBUTES('cpu_time' AS "name"), MAX(CPU_TIME)), NULL), NVL2(MAX(USER_IO_WAIT_TIME), XMLELEMENT( "stat", XMLATTRIBUTES('user_io_wait_time' AS "name"), MAX(USER_IO_WAIT_TIME)), NULL), NVL2(MAX(APPLICATION_WAIT_TIME), XMLELEMENT( "stat", XMLATTRIBUTES('application_wait_time' AS "name"), MAX(APPLICATION_WAIT_TIME)), NULL), NVL2(MAX(CONCURRENCY_WAIT_TIME), XMLELEMENT( "stat", XMLATTRIBUTES('concurrency_wait_time' AS "name"), MAX(CONCURRENCY_WAIT_TIME)), NULL), NVL2(MAX(CLUSTER_WAIT_TIME), XMLELEMENT( "stat", XMLATTRIBUTES('cluster_wait_time' AS "name"), MAX(CLUSTER_WAIT_TIME)), NULL), NVL2(MAX(PLSQL_EXEC_TIME), XMLELEMENT( "stat", XMLATTRIBUTES('plsql_exec_time' AS "name"), MAX(PLSQL_EXEC_TIME)), NULL), NVL2(MAX(JAVA_EXEC_TIME), XMLELEMENT( "stat", XMLATTRIBUTES('java_exec_time' AS "name"), MAX(JAVA_EXEC_TIME)), NULL), NVL2(MAX(OTHER_WAIT_TIME), XMLELEMENT( "stat", XMLATTRIBUTES( 'other_wait_time' AS "name"), MAX(OTHER_WAIT_TIME)), NULL), NVL2(MAX(FETCHES), XMLELEMENT( "stat", XMLATTRIBUTES('user_fetch_count' AS "name"), MAX(FETCHES)), NULL), NVL2(MAX(BUFFER_GETS), XMLELEMENT( "stat", XMLATTRIBUTES('buffer_gets' AS "name"), MAX(BUFFER_GETS)), NULL), NVL2(MAX(READ_REQS), XMLELEMENT( "stat", XMLATTRIBUTES('disk_reads' AS "name"), MAX(READ_REQS)), NULL), NVL2(MAX(WRITE_REQS), XMLELEMENT( "stat", XMLATTRIBUTES('direct_writes' AS "name"), MAX(WRITE_REQS)), NULL), NVL2(MAX(READ_REQS), XMLELEMENT( "stat", XMLATTRIBUTES('read_reqs' AS "name"), MAX(READ_REQS)), NULL), NVL2(MAX(READ_BYTES), XMLELEMENT( "stat", XMLATTRIBUTES('read_bytes' AS "name"), MAX(READ_BYTES)), NULL), NVL2(MAX(WRITE_REQS), XMLELEMENT( "stat", XMLATTRIBUTES('write_reqs' AS "name"), MAX(WRITE_REQS)), NULL), NVL2(MAX(WRITE_BYTES), XMLELEMENT( "stat", XMLATTRIBUTES('write_bytes' AS "name"), MAX(WRITE_BYTES)), NULL), NVL2(MAX(IO_UNC_BYTES), XMLELEMENT( "stat", XMLATTRIBUTES('unc_bytes' AS "name"), MAX(IO_UNC_BYTES)), NULL), NVL2(MAX(IO_ELIG_BYTES), XMLELEMENT( "stat", XMLATTRIBUTES('elig_bytes' AS "name"), MAX(IO_ELIG_BYTES)), NULL), NVL2(MAX(IO_RET_BYTES), XMLELEMENT( "stat", XMLATTRIBUTES('ret_bytes' AS "name"), MAX(IO_RET_BYTES)), NULL), CASE WHEN MAX(IO_INTER_BYTES) IS NULL OR NVL(MAX(IO_BYTES), 0) = 0 OR MAX(IO_INTER_BYTES) = MAX(IO_BYTES) OR NVL(MAX(IO_ELIG_BYTES), 0) = 0 THEN NULL ELSE XMLELEMENT( "stat", XMLATTRIBUTES('cell_offload_efficiency' AS "name"), ROUND(MAX(IO_BYTES)/ DECODE(MAX(IO_INTER_BYTES), 0, 1, MAX(IO_INTER_BYTES)), 2)) END, CASE WHEN NVL(MAX(IO_ELIG_BYTES), 0) = 0 OR NVL(MAX(IO_BYTES), 0) = 0 OR MAX(IO_UNC_BYTES) = MAX(IO_RET_BYTES) THEN NULL ELSE XMLELEMENT( "stat", XMLATTRIBUTES('cell_offload_efficiency2' AS "name"), GREATEST(0, ROUND(100* (GREATEST( NVL(MAX(IO_UNC_BYTES), 0), NVL(MAX(IO_ELIG_BYTES), 0)) - MAX(IO_RET_BYTES)) / MAX(IO_ELIG_BYTES), 2))) END), CASE WHEN :B33 = 1 AND SUM(PI.ACTIVITY_COUNT) > 0 THEN XMLELEMENT( "activity_sampled", XMLATTRIBUTES( TO_CHAR(MIN(PI.ACTIVITY_START), :B12 ) AS "start_time", TO_CHAR(MAX(PI.ACTIVITY_END), :B12 ) AS "end_time", ROUND((MAX(PI.ACTIVITY_END) - MIN(PI.ACTIVITY_START)) * 3600 * 24) + 1 AS "duration", SUM(PI.ACTIVITY_COUNT) AS "count", SUM(PI.IMQ_COUNT) AS "imq_count", SUM(PI.WAIT_COUNT) AS "wait_count", SUM(PI.CPU_COUNT) AS "cpu_count", SUM(PI.OTHER_SQL_COUNT) AS "other_sql_count", :B40 AS "cpu_cores", :B39 AS "hyperthread"), XMLAGG( NVL2(ACTIVITY_TYPE, XMLELEMENT( "activity", XMLATTRIBUTES( PI.ACTIVITY_TYPE AS "class", PI.EVENT_NAME AS "event"), ACTIVITY_COUNT), NULL) ORDER BY PI.ACTIVITY_TYPE, PI.EVENT_NAME)) ELSE NULL END) PX_INSTANCES_XML FROM (SELECT MO.INST_ID, ASH.ACTIVITY_TYPE, ASH.EVENT_NAME, ASH.ACTIVITY_COUNT, ASH.IMQ_COUNT, ASH.WAIT_COUNT, ASH.CPU_COUNT, ASH.OTHER_SQL_COUNT, ASH.ACTIVITY_START, ASH.ACTIVITY_END, MO.ELAPSED_TIME, MO.QUEUING_TIME, MO.CPU_TIME, MO.APPLICATION_WAIT_TIME, MO.CONCURRENCY_WAIT_TIME, MO.CLUSTER_WAIT_TIME, MO.USER_IO_WAIT_TIME, MO.PLSQL_EXEC_TIME, MO.JAVA_EXEC_TIME, MO.OTHER_WAIT_TIME, MO.FETCHES, MO.BUFFER_GETS, MO.IO_INTER_BYTES, MO.IO_BYTES, MO.READ_REQS, MO.READ_BYTES, MO.WRITE_REQS, MO.WRITE_BYTES, MO.IO_REQS, MO.IO_UNC_BYTES, MO.IO_ELIG_BYTES, MO.IO_RET_BYTES FROM (SELECT MO0.INST_ID, SUM(MO0.ELAPSED_TIME) ELAPSED_TIME, SUM(MO0.QUEUING_TIME) QUEUING_TIME, SUM(MO0.CPU_TIME) CPU_TIME, SUM(MO0.FETCHES) FETCHES, SUM(MO0.BUFFER_GETS) BUFFER_GETS, SUM(MO0.IO_INTER_BYTES) IO_INTER_BYTES, SUM(MO0.IO_BYTES) IO_BYTES, SUM(MO0.READ_REQS) READ_REQS, SUM(MO0.READ_BYTES) READ_BYTES, SUM(MO0.WRITE_REQS) WRITE_REQS, SUM(MO0.WRITE_BYTES) WRITE_BYTES, SUM(MO0.IO_REQS) IO_REQS, SUM(MO0.IO_UNC_BYTES) IO_UNC_BYTES, SUM(MO0.IO_ELIG_BYTES) IO_ELIG_BYTES, SUM(MO0.IO_RET_BYTES) IO_RET_BYTES, SUM(MO0.APPLICATION_WAIT_TIME) APPLICATION_WAIT_TIME, SUM(MO0.CONCURRENCY_WAIT_TIME) CONCURRENCY_WAIT_TIME, SUM(MO0.CLUSTER_WAIT_TIME) CLUSTER_WAIT_TIME, SUM(MO0.USER_IO_WAIT_TIME) USER_IO_WAIT_TIME, SUM(MO0.PLSQL_EXEC_TIME) PLSQL_EXEC_TIME, SUM(MO0.JAVA_EXEC_TIME) JAVA_EXEC_TIME, SUM(MO0.OTHER_WAIT_TIME) OTHER_WAIT_TIME FROM MONITOR_DATA MO0 GROUP BY MO0.INST_ID) MO, (SELECT ASH0.INST_ID, ASH0.ACTIVITY_TYPE, ASH0.EVENT_NAME, SUM(ASH0.ACTIVITY_COUNT) ACTIVITY_COUNT, SUM(ASH0.IMQ_COUNT) IMQ_COUNT, SUM(ASH0.WAIT_COUNT) WAIT_COUNT, SUM(ASH0.CPU_COUNT) CPU_COUNT, SUM(ASH0.OTHER_SQL_COUNT) OTHER_SQL_COUNT, MIN(ASH0.ACTIVITY_START) ACTIVITY_START, MAX(ASH0.ACTIVITY_END) ACTIVITY_END FROM ASH_DATA ASH0 GROUP BY ASH0.INST_ID, ASH0.ACTIVITY_TYPE, ASH0.EVENT_NAME) ASH, MONITOR_AGG WHERE MO.INST_ID = ASH.INST_ID(+) AND MONITOR_AGG.DIST_INST_COUNT > 0 ) PI GROUP BY PI.INST_ID)PX_INSTANCE) P X_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_start", PLI.PARTITION_STOP AS "partition_stop"), CASE WHEN PLI.CARDINALITY IS NULL AND PLI.BYTES IS NULL AND PLI.COST IS NULL AND PLI.TEMP_SPACE IS NULL AND PLI.TIME IS NULL THEN NULL ELSE XMLELEMENT( "optimizer", NULL, NVL2(PLI.CARDINALITY, XMLFOREST(PLI.CARDINALITY AS "cardinality"), NULL), NVL2(PLI.BYTES, XMLFOREST(PLI.BYTES AS "bytes"), NULL), NVL2(PLI.COST, XMLFOREST(PLI.COST AS "cost"), NULL), NVL2(PLI.CPU_COST, XMLFOREST(PLI.CPU_COST AS "cpu_cost"), NULL), NVL2(PLI.IO_COST, XMLFOREST(PLI.IO_COST AS "io_cost"), NULL), NVL2(PLI.TEMP_SPACE, XMLFOREST(PLI.TEMP_SPACE AS "temp"), NULL), NVL2(PLI.TIME, XMLFOREST(PLI.TIME AS "time"), NULL)) END, XMLELEMENT( "stats ", XMLATTRIBUTES('plan_monitor' AS "type"), NVL2(PLI.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)), NULL), NVL2(PLI.PERCENT_COMPLETE, XMLELEMENT( "stat", XMLATTRIBUTES('percent_complete' AS "name"), PLI.PERCENT_COMPLETE), NULL), NVL2(PLI.TIME_REMAINING, XMLELEMENT( "stat", XMLATTRIBUTES('time_left' AS "name"), PLI.TIME_REMAINING), NULL), CASE WHEN PLI.HAS_EXECUTED = 1 THEN XMLELEMENT( "stat", XMLATTRIBUTES('starts' AS "name"), PLI.STARTS) ELSE NULL END, CASE WHEN PLI.DOP > 0 AND PLI.HAS_EXECUTED = 1 THEN XMLELEMENT( "stat", XMLATTRIBUTES( 'max_starts' AS "name", DECODE(:B68 , 'Y', MOD(TRUNC(MAX_STARTS/1000000), 10000), NULL) AS "iid", MOD(MAX_STARTS, 1000000) AS "sid"), TRUNC(PLI.MAX_STARTS/10000000000)) ELSE NULL END, CASE WHEN PLI.DOP > 0 AND PLI.HAS_EXECUTED = 1 THEN XMLELEMENT( "stat", XMLATTRIBUTES('dop' AS "name"), PLI.DOP) ELSE NULL END, CASE WHEN NEED_ROWS IS NOT NULL AND PLI.FIRST_MOVE_TIME IS NOT NULL THEN XMLELEMENT( "stat", XMLATTRIBUTES('cardinality' AS "name"), PLI.OUTPUT_ROWS) ELSE NULL END, CASE WHEN PLI.NEED_ROWS IS NOT NULL AND PLI.DOP > 0 AND PLI.MAX_OUTPUT_ROWS IS NOT NULL AND (PLI.FIRST_MOVE_TIME IS NOT NULL) THEN XMLELEMENT( "stat", XMLATTRIBUTES( 'max_card' AS "name", DECODE(:B68 , 'Y', MOD(TRUNC(MAX_OUTPUT_ROWS/1000000), 10000), NULL) AS "iid", MOD(MAX_OUTPUT_ROWS, 1000000) AS "sid"), TRUNC(PLI.MAX_OUTPUT_ROWS/10000000000)) ELSE NULL END, CASE WHEN PLI.MEM > 0 THEN XMLELEMENT( "stat", XMLATTRIBUTES('memory' AS "name"), PLI.MEM) ELSE NULL END, CASE WHEN PLI.MAX_MEM > 0 THEN XMLELEMENT( "stat", XMLATTRIBUTES('max_memory' AS "name"), PLI.MAX_MEM) ELSE NULL END, CASE WHEN PLI.DOP > 0 AND PLI.MIN_MAX_MEM IS NOT NULL AND PLI.MAX_MEM > 0 THEN XMLELEMENT( "stat", XMLATTRIBUTES( 'min_max_mem' AS "name", DECODE(:B68 , 'Y', MOD(TRUNC(MIN_MAX_MEM/1000000), 10000), NULL) AS "iid", MOD(MIN_MAX_MEM, 1000000) AS "sid"), TRUNC(PLI.MIN_MAX_MEM/10000000000)) ELSE NULL END, CASE WHEN PLI.TEMP > 0 THEN XMLELEMENT( "stat", XMLATTRIBUTES('temp' AS "name"), PLI.TEMP) ELSE NULL END, CASE WHEN PLI.MAX_TEMP > 0 THEN XMLELEMENT( "stat", XMLATTRIBUTES('max_temp' AS "name"), PLI.MAX_TEMP) ELSE NULL END, CASE WHEN PLI.MAX_TEMP > 0 THEN XMLELEMENT( "stat", XMLATTRIBUTES('spill_count' AS "name"), PLI.SPILL_COUNT) ELSE NULL END, CASE WHEN PLI.DOP > 0 AND PLI.MAX_MAX_TEMP IS NOT NULL AND PLI.MAX_TEMP > 0 THEN XMLELEMENT( "stat", XMLATTRIBUTES( 'max_max_temp' AS "name", DECODE(:B68 , 'Y', MOD(TRUNC(MAX_MAX_TEMP/1000000), 10000), NULL) AS "iid", MOD(MAX_MAX_TEMP, 1000000) AS "sid"), TRUNC(PLI.MAX_MAX_TEMP/10000000000)) ELSE NULL END, CASE WHEN PLI.READ_REQS > 0 THEN XMLELEMENT( "stat", XMLATTRIBUTES('read_reqs' AS "name"), PLI.READ_REQS) ELSE NULL END, CASE WHEN PLI.DOP > 0 AND PLI.MAX_READ_REQS IS NOT NULL AND PLI.READ_REQS > 0 THEN XMLELEMENT( "stat", XMLATTRIBUTES( 'max_read_reqs' AS "name", DECODE(:B68 , 'Y', MOD(TRUNC(PLI.MAX_READ_REQS/1000000), 10000), NULL) AS "iid", MOD(PLI.MAX_READ_REQS, 1000000) AS "sid"), TRUNC(PLI.MAX_READ_REQS/10000000000)) ELSE NULL END, CASE WHEN PLI.READ_BYTES > 0 THEN XMLELEMENT( "stat", XMLATTRIBUTES('read_bytes' AS "name"), PLI.READ_BYTES) ELSE NULL END, CASE WHEN PLI.DOP > 0 AND PLI.MAX_READ_BYTES IS NOT NULL AND PLI.READ_BYTES > 0 THEN XMLELEMENT( "stat", XMLATTRIBUTES( 'max_read_bytes' AS "name", DECODE(:B68 , 'Y', MOD(TRUNC(PLI.MAX_READ_BYTES/1000000), 10000), NULL) AS "iid", MOD(PLI.MAX_READ_BYTES, 1000000) AS "sid"), TRUNC(PLI.MAX_READ_BYTES/10000000000)) ELSE NULL END, CASE WHEN PLI.WRITE_REQS > 0 THEN XMLELEMENT( "stat", XMLATTRIBUTES('write_reqs' AS "name"), PLI.WRITE_REQS) ELSE NULL END, CASE WHEN PLI.DOP > 0 AND PLI.MAX_WRITE_REQS IS NOT NULL AND PLI.WRITE_REQS > 0 THEN XMLELEMENT( "stat", XMLATTRIBUTES( 'max_write_reqs' AS "name", DECODE(:B68 , 'Y', MOD(TRUNC(PLI.MAX_WRITE_REQS/1000000), 10000), NULL) AS "iid", MOD(PLI.MAX_WRITE_REQS, 1000000) AS "sid"), TRUNC(PLI.MAX_WRITE_REQS/10000000000)) ELSE NULL END, CASE WHEN PLI.WRITE_BYTES > 0 THEN XMLELEMENT( "stat", XMLATTRIBUTES('write_bytes' AS "name"), PLI.WRITE_BYTES) ELSE NULL END, CASE WHEN PLI.DOP > 0 AND PLI.MAX_WRITE_BYTES IS NOT NULL AND PLI.WRITE_BYTES > 0 THEN XMLELEMENT( "stat", XMLATTRIBUTES( 'max_write_bytes' AS "name", DECODE(:B68 , 'Y', MOD(TRUNC(PLI.MAX_WRITE_BYTES/1000000), 10000), NULL) AS "iid", MOD(PLI.MAX_WRITE_BYTES, 1000000) AS "sid"), TRUNC(PLI.MAX_WRITE_BYTES/10000000000)) ELSE NULL END, CASE WHEN PLI.IO_INTER_BYTES IS NOT NULL AND PLI.IO_BYTES > 0 AND PLI.IO_BYTES != PLI.IO_INTER_BYTES THEN XMLELEMENT( "stat", XMLATTRIBUTES('io_inter_bytes' AS "name"), PLI.IO_INTER_BYTES) ELSE NULL END, CASE WHEN PLI.DOP > 0 AND PLI.MAX_IO_INTER_BYTES IS NOT NULL AND PLI.IO_BYTES > 0 AND PLI.IO_BYTES != PLI.IO_INTER_BYTES THEN XMLELEMENT( "stat", XMLATTRIBUTES( 'max_io_inter_bytes' AS "name", DECODE(:B68 , 'Y', MOD(TRUNC(MAX_IO_INTER_BYTES/1000000), 10000), NULL) AS "iid", MOD(MAX_IO_INTER_BYTES, 1000000) AS "sid"), TRUNC(PLI.MAX_IO_INTER_BYTES/10000000000)) ELSE NULL END, CASE WHEN PLI.IO_INTER_BYTES IS NOT NULL AND PLI.IO_BYTES > 0 AND PLI.IO_BYTES != PLI.IO_INTER_BYTES THEN XMLELEMENT( "stat", XMLATTRIBUTES('cell_offload_efficiency' AS "name"), ROUND(PLI.IO_BYTES / DECODE(PLI.IO_INTER_BYTES, 0, 1, PLI.IO_INTER_BYTES), 2)) ELSE NULL END), NVL2(STAT_GID, XMLELEMENT( "rwsstats", XMLATTRIBUTES( PLI.STAT_GID AS "group_id"), DECODE(GID_ROWNUM, 1, (SELECT XMLELEMENT( "metadata", NULL, XMLAGG( XMLELEMENT( "stat", XMLATTRIBUTES( ROWNUM AS "id", NAME AS "name", DESCRIPTION AS "desc", TYPE AS "type", DECODE(FLAGS, 0, NULL, FLAGS) AS "flags"), NULL) ORDER BY ID)) FROM V$SQL_MONITOR_STATNAME WHERE GROUP_ID = PLI.STAT_GID), NULL), NVL2(STAT1_VALUE, XMLELEMENT( "stat", XMLATTRIBUTES(1 AS "id"), STAT1_VALUE), NULL), NVL2(STAT2_VALUE, XMLELEMENT( "stat", XMLATTRIBUTES(2 AS "id"), STAT2_VALUE), NULL), NVL2(STAT3_VALUE, XMLELEMENT( "stat", XMLATTRIBUTES(3 AS "id"), STAT3_VALUE), NULL), NVL2(STAT4_VALUE, XMLELEMENT( "stat", XMLATTRIBUTES(4 AS "id"), STAT4_VALUE), NULL), NVL2(STAT5_VALUE, XMLELEMENT( "stat", XMLATTRIBUTES(5 AS "id"), STAT5_VALUE), NULL), NVL2(STAT6_VALUE, XMLELEMENT( "stat", XMLATTRIBUTES(6 AS "id"), STAT6_VALUE), NULL), NVL2(STAT7_VALUE, XMLELEMENT( "stat", XMLATTRIBUTES(7 AS "id"), STAT7_VALUE), NULL), NVL2(STAT8_VALUE, XMLELEMENT( "stat", XMLATTRIBUTES(8 AS "id"), STAT8_VALUE), NULL), NVL2(STAT9_VALUE, XMLELEMENT( "stat", XMLATTRIBUTES(9 AS "id"), STAT9_VALUE), NULL), NVL2(STAT10_VALUE, XMLELEMENT( "stat", XMLATTRIBUTES(10 AS "id"), STAT10_VALUE), NULL)), NULL), CASE WHEN PLI.LINE_ACTIVITY_COUNT > 0 AND :B33 = 1 THEN XMLELEMENT( "activity_sampled", XMLATTRIBUTES( TO_CHAR(PLI.LINE_ACTIVITY_START, :B12 ) AS "start_time", TO_CHAR(PLI.LINE_ACTIVITY_END, :B12 ) AS "end_time", ROUND((PLI.LINE_ACTIVITY_END - PLI.LINE_ACTIVITY_START) * 3600*24) + 1 AS "duration", PLI.LINE_ACTIVITY_COUNT AS "count", PLI.LINE_IMQ_COUNT AS "imq_count", PLI.LINE_WAIT_COUNT AS "wait_count", PLI.LINE_CPU_COUNT AS "cpu_count", PLI.LINE_OTHER_SQL_COUNT AS "other_sql_count", :B40 AS "cpu_cores", :B39 AS "hyperthread"), PLI.ACTIVITY_TOTAL, PLI.PLAN_ACTIVITY_HISTO) ELSE NULL END) ORDER BY PLI.PLAN_LINE_ID) ) FROM (SELECT AT.MAX_LINE_ACTIVITY_COUNT, PM.OVERALL_MAX_IO_REQS, PM.OVERALL_MAX_IO_BYTES, AT.MAX_LINE_IMQ_COUNT, AT.MAX_LINE_CPU_COUNT, AT.MAX_LINE_WAIT_COUNT, AT.LINE_OTHER_SQL_COUNT, AT.MAX_LINE_OTHER_SQL_COUNT, PM.PLAN_LINE_ID, PM.PARENT_ID, PM.OPERATION, PM.OPTIONS, PM.DEPTH, PM.POSITION, PM.INACTIVE, CASE WHEN PM.OPERATION = 'PX COORDINATOR' AND :B23 = 'Y' AND (PM.PX_SERVER_SET IS NOT NULL OR AH.PX_SERVER_SET IS NOT NULL) THEN 'QC' WHEN PM.PX_SERVER_SET IS NOT NULL THEN TO_CHAR(PM.PX_SERVER_SET) WHEN AH.PX_SERVER_SET IS NOT NULL THEN TO_CHAR(AH.PX_SERVER_SET) WHEN (:B23 = 'N' OR (PM.LAST_CHANGE_TIME IS NULL AND AT.LINE_ACTIVITY_END IS NULL)) THEN NULL ELSE 'QC' END PX_TYPE, PM.FIRST_CHANGE_TIME, AT.LINE_ACTIVITY_START, PM.LAST_CHANGE_TIME, PM.OVERALL_LAST_CHANGE_TIME, AT.LINE_ACTIVITY_END, AT.OVERALL_LINE_ACTIVITY_END, LEAST(NVL(AT.LINE_ACTIVITY_START, PM.FIRST_CHANGE_TIME), NVL(PM.FIRST_CHANGE_TIME, AT.LINE_ACTIVITY_START)) FIRST_MOVE_TIME, GREATEST(NVL(AT.LINE_ACTIVITY_END, PM.LAST_CHANGE_TIME), NVL(PM.LAST_CHANGE_TIME, AT.LINE_ACTIVITY_END)) LAST_MOVE_TIME, GREATEST(NVL(AT.OVERALL_LINE_ACTIVITY_END, PM.OVERALL_LAST_CHANGE_TIME), NVL(PM.OVERALL_LAST_CHANGE_TIME, AT.OVERALL_LINE_ACTIVITY_END)) OVERALL_LAST_MOVE_TIME, CASE WHEN PM.STARTS IS NOT NULL AND PM.STARTS > 0 THEN 1 ELSE 0 END HAS_EXECUTED, PM.OBJECT_NAME, PM.OBJECT_TYPE, PM.OBJECT_OWNER, PM.PARTITION_START, PM.PARTITION_STOP, PM.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_OTHER_SQL_COUNT) OVER() MAX_LINE_OTHER_SQL_COUNT FROM (SELECT AD1.PLAN_LINE_ID, MIN(AD1.LINE_ACTIVITY_START) LINE_ACTIVITY_START, MAX(AD1.LINE_ACTIVITY_END) LINE_ACTIVITY_END, SUM(AD1.ACTIVITY_COUNT) LINE_ACTIVITY_COUNT, SUM(AD1.IMQ_COUNT) LINE_IMQ_COUNT, SUM(AD1.WAIT_COUNT) LINE_WAIT_COUNT, SUM(AD1.OTHER_SQL_COUNT) LINE_OTHER_SQL_COUNT, SUM(AD1.CPU_COUNT) LINE_CPU_COUNT, SUBSTR(MAX(LPAD(AD1.ACTIVITY_COUNT, 10)|| AD1.ACTIVITY_TYPE), 11) MOST_ACTIVE, XMLAGG(XMLELEMENT( "activity", XMLATTRIBUTES( AD1.ACTIVITY_TYPE AS "class", AD1.EVENT_NAME AS "event"), AD1.ACTIVITY_COUNT) ORDER BY AD1.ACTIVITY_TYPE, AD1.EVENT_NAME) ACTIVITY_TOTAL FROM (SELECT AD0.PLAN_LINE_ID, AD0.ACTIVITY_TYPE, AD0.EVENT_NAME, MIN(AD0.ACTIVITY_START) LINE_ACTIVITY_START, MAX(AD0.ACTIVITY_END) LINE_ACTIVITY_END, SUM(AD0.ACTIVITY_COUNT) 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, 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_BUCKET FROM (SELECT AD0.PLAN_LINE_ID, AD0.PLAN_ACTIVITY_BUCKET_NUM BUCKET_NUM, AD0.ACTIVITY_TYPE, AD0.EVENT_NAME, MIN(NVL2(AD0.ACTIVITY_START, AD0.PX_SERVER_SET, NULL)) PX_SERVER_SET, MIN(AD0.ACTIVITY_START) LINE_ACTIVITY_START, MAX(AD0.ACTIVITY_END) LINE_ACTIVITY_END, MIN(AD0.BUCKET_ACTIVITY_START) BUCKET_ACTIVITY_START, MAX(AD0.BUCKET_ACTIVITY_END) BUCKET_ACTIVITY_END, SUM(AD0.IMQ_COUNT) IMQ_COUNT, SUM(AD0.CPU_COUNT) CPU_COUNT, SUM(AD0.WAIT_COUNT) WAIT_COUNT, SUM(AD0.OTHER_SQL_COUNT) OTHER_SQL_COUNT, SUM(AD0.ACTIVITY_COUNT) ACTIVITY_COUNT FROM ASH_DATA AD0 GROUP BY AD0.PLAN_LINE_ID, AD0.PLAN_ACTIVITY_BUCKET_NUM, AD0.ACTIVITY_TYPE, AD0.EVENT_NAME) AD1 GROUP BY AD1.PLAN_LINE_ID, AD1.BUCKET_NUM) AD2 GROUP BY AD2.PLAN_LINE_ID) AH, (SELECT LO2.SQL_PLAN_LINE_ID PLAN_LINE_ID, DECODE(SUM(LO2.TOTALWORK), 0, NULL, ROUND(SUM(LO2.SOFAR)*100/SUM(LO2.TOTALWORK))) PERCENT_COMPLETE, MAX(LO2.TIME_REMAINING) TIME_REMAINING FROM MONITOR_DATA MO, (SELECT * FROM TABLE( GV$(CURSOR( SELECT USERENV('instance') INST_ID, SQL_PLAN_LINE_ID, TOTALWORK, SOFAR, TIME_REMAINING, SID FROM V$SESSION_LONGOPS L WHERE (:B49 = 'Y' OR :B71 = 'DONE (ERROR)') AND L.SQL_ID = :B9 AND L.SQL_EXEC_START = :B8 AND L.SQL_EXEC_ID = :B7 )))) LO2 WHERE LO2.INST_ID = MO.INST_ID AND LO2.SID = MO.SID GROUP BY LO2.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) CARDINALITY, MAX(PLM.PLAN_BYTES) BYTES, MAX(PLM.PLAN_CPU_COST) CPU_COST, MAX(PLM.PLAN_IO_COST) IO_COST, MAX(PLM.PLAN_TEMP_SPACE) TEMP_SPACE, MAX(PLM.PLAN_TIME) TIME, MAX(PLM.PLAN_PARTITION_START) PARTITION_START, MAX(PLM.PLAN_PARTITION_STOP) PARTITION_STOP, MIN(PLM.FIRST_CHANGE_TIME) FIRST_CHANGE_TIME, MAX(PLM.LAST_CHANGE_TIME) LAST_CHANGE_TIME, MIN(PLM.LAST_CHANGE_TIME) MIN_LAST_CHANGE_TIME, MIN(NVL2(PLM.FIRST_CHANGE_TIME, MO.PX_SERVER_SET, NULL)) PX_SERVER_SET, COUNT(CASE WHEN PLM.PAR IS NOT NULL AND PLM.STARTS IS NOT NULL AND PLM.STARTS > 0 AND PLM.PLAN_LINE_ID != 0 AND PLM.PLAN_OPERATION != 'PX COORDINATOR' THEN 1 ELSE NULL END) DOP, SUM(PLM.STARTS) STARTS, MAX(NVL2(PAR, PLM.STARTS * 10000000000 + PLM.ES, NULL)) MAX_STARTS, SUM(PLM.OUTPUT_ROWS) OUTPUT_ROWS, MAX(NVL2(PAR, PLM.OUTPUT_ROWS * 10000000000 +PLM.ES, NULL)) MAX_OUTPUT_ROWS, SUM(PLM.WORKAREA_MEM) MEM, SUM(PLM.WORKAREA_MAX_MEM) MAX_MEM, MIN(NVL2(PAR, PLM.WORKAREA_MAX_MEM * 10000000000 + PLM.ES, NULL)) MIN_MAX_MEM, SUM(PLM.WORKAREA_TEMPSEG) TEMP, SUM(PLM.WORKAREA_MAX_TEMPSEG) MAX_TEMP, MAX(NVL2(PAR, PLM.WORKAREA_MAX_TEMPSEG * 10000000000 + PLM.ES, NULL)) MAX_MAX_TEMP, COUNT(PLM.WORKAREA_MAX_TEMPSEG) SPILL_COUNT, SUM(PLM.PHYSICAL_READ_REQUESTS) READ_REQS, MAX(NVL2(PAR, PLM.PHYSICAL_READ_REQUESTS * 10000000000 + PLM.ES, NULL)) MAX_READ_REQS, SUM(PLM.PHYSICAL_READ_BYTES) READ_BYTES, MAX(NVL2(PAR, PLM.PHYSICAL_READ_BYTES * 10000000000 + PLM.ES, NULL)) MAX_READ_BYTES, SUM(PLM.PHYSICAL_WRITE_REQUESTS) WRITE_REQS, MAX(NVL2(PAR, PLM.PHYSICAL_WRITE_REQUESTS * 10000000000 + PLM.ES, NULL)) MAX_WRITE_REQS, SUM(PLM.PHYSICAL_WRITE_BYTES) WRITE_BYTES, MAX(NVL2(PAR, PLM.PHYSICAL_WRITE_BYTES * 10000000000 + PLM.ES, NULL)) MAX_WRITE_BYTES, NVL(SUM(PLM.PHYSICAL_READ_BYTES), 0) + NVL(SUM(PLM.PHYSICAL_WRITE_BYTES), 0) IO_BYTES, SUM(NVL(PLM.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, MIN(OTHERSTAT_3_VALUE), NULL)), 10000000000000000), SUM(DECODE(OTHERSTAT_3_TYPE, 1, OTHERSTAT_3_VALUE, 2, OTHERSTAT_3_VALUE, NULL))) STAT3_VALUE, NVL(MOD((DECODE(MAX(OTHERSTAT_4_TYPE), 3, MAX(OTHERSTAT_4_VALUE), 5, DECODE(MAX(OTHERSTAT_1_TYPE), 4, MAX(RMAX1 + OTHERSTAT_4_VALUE), 7, MIN(RMAX1 + OTHERSTAT_4_VALUE), NULL), 6, MIN(OTHERSTAT_4_VALUE), NULL)), 10000000000000000), SUM(DECODE(OTHERSTAT_4_TYPE, 1, OTHERSTAT_4_VALUE, 2, OTHERSTAT_4_VALUE, NULL))) STAT4_VALUE, NVL(MOD((DECODE(MAX(OTHERSTAT_5_TYPE), 3, MAX(OTHERSTAT_5_VALUE), 5, DECODE(MAX(OTHERSTAT_1_TYPE), 4, MAX(RMAX1 + OTHERSTAT_5_VALUE), 7, MIN(RMAX1 + OTHERSTAT_5_VALUE), NULL), 6, MIN(OTHERSTAT_5_VALUE), NULL)), 10000000000000000), SUM(DECODE(OTHERSTAT_5_TYPE, 1, OTHERSTAT_5_VALUE, 2, OTHERSTAT_5_VALUE, NULL))) STAT5_VALUE, NVL(MOD((DECODE(MAX(OTHERSTAT_6_TYPE), 3, MAX(OTHERSTAT_6_VALUE), 5, DECODE(MAX(OTHERSTAT_1_TYPE), 4, MAX(RMAX1 + OTHERSTAT_6_VALUE), 7, MIN(RMAX1 + OTHERSTAT_6_VALUE), NULL), 6, MIN(OTHERSTAT_6_VALUE), NULL)), 10000000000000000), SUM(DECODE(OTHERSTAT_6_TYPE, 1, OTHERSTAT_6_VALUE, 2, OTHERSTAT_6_VALUE, NULL))) STAT6_VALUE, NVL(MOD((DECODE(MAX(OTHERSTAT_7_TYPE), 3, MAX(OTHERSTAT_7_VALUE), 5, DECODE(MAX(OTHERSTAT_1_TYPE), 4, MAX(RMAX1 + OTHERSTAT_7_VALUE), 7, MIN(RMAX1 + OTHERSTAT_7_VALUE), NULL), 6, MIN(OTHERSTAT_7_VALUE), NULL)), 10000000000000000), SUM(DECODE(OTHERSTAT_7_TYPE, 1, OTHERSTAT_7_VALUE, 2, OTHERSTAT_7_VALUE, NULL))) STAT7_VALUE, NVL(MOD((DECODE(MAX(OTHERSTAT_8_TYPE), 3, MAX(OTHERSTAT_8_VALUE), 5, DECODE(MAX(OTHERSTAT_1_TYPE), 4, MAX(RMAX1 + OTHERSTAT_8_VALUE), 7, MIN(RMAX1 + OTHERSTAT_8_VALUE), NULL), 6, MIN(OTHERSTAT_8_VALUE), NULL)), 10000000000000000), SUM(DECODE(OTHERSTAT_8_TYPE, 1, OTHERSTAT_8_VALUE, 2, OTHERSTAT_8_VALUE, NULL))) STAT8_VALUE, NVL(MOD((DECODE(MAX(OTHERSTAT_9_TYPE), 3, MAX(OTHERSTAT_9_VALUE), 5, DECODE(MAX(OTHERSTAT_1_TYPE), 4, MAX(RMAX1 + OTHERSTAT_9_VALUE), 7, MIN(RMAX1 + OTHERSTAT_9_VALUE), NULL), 6, MIN(OTHERSTAT_9_VALUE), NULL)), 10000000000000000), SUM(DECODE(OTHERSTAT_9_TYPE, 1, OTHERSTAT_9_VALUE, 2, OTHERSTAT_9_VALUE, NULL))) STAT9_VALUE, NVL(MOD((DECODE(MAX(OTHERSTAT_10_TYPE), 3, MAX(OTHERSTAT_10_VALUE), 5, DECODE(MAX(OTHERSTAT_1_TYPE), 4, MAX(RMAX1 + OTHERSTAT_10_VALUE), 7, MIN(RMAX1 + OTHERSTAT_10_VALUE), NULL), 6, MIN(OTHERSTAT_10_VALUE), NULL)), 10000000000000000), SUM(DECODE(OTHERSTAT_10_TYPE, 1, OTHERSTAT_10_VALUE, 2, OTHERSTAT_10_VALUE, NULL))) STAT10_VALUE FROM (SELECT A.*, OTHERSTAT_1_VALUE * 10000000000000000 RMAX1, A.I NST_ID * 1000000 + A.SID ES, DECODE(A.PROCESS_NAME, 'ora', NULL, 1) PAR FROM (SELECT * FROM TABLE(GV$(CURSOR( SELECT USERENV('instance') INST_ID, A0.* FROM V$ALL_SQL_PLAN_MONITOR A0 WHERE A0.SQL_ID = :B9 AND A0.SQL_EXEC_START = :B8 AND A0.SQL_EXEC_ID = :B7 AND USERENV('instance') BETWEEN :B11 AND :B10 ))) ) A ) PLM, MONITOR_DATA MO WHERE PLM.INST_ID = MO.INST_ID AND PLM.INST_ID BETWEEN :B11 AND :B10 AND PLM.KEY = MO.KEY GROUP BY PLM.PLAN_LINE_ID, PLM.PLAN_OPERATION, PLM.PLAN_OPTIONS) PM0) PM WHERE AH.PLAN_LINE_ID(+) = PM.PLAN_LINE_ID AND AT.PLAN_LINE_ID(+) = PM.PLAN_LINE_ID AND LO.PLAN_LINE_ID(+) = PM.PLAN_LINE_ID AND (:B21 IS NULL OR PM.PLAN_LINE_ID = :B21 )) PLI) ELSE NULL END, CASE WHEN :B42 = 1 THEN DBMS_SQLTUNE.BUILD_STASH_XML( SESSION_ID=>:B19 , SESSION_SERIAL=>:B18 , SESSION_INST_ID=>:B17 , PX_MODE=>'yes', START_TIME=>:B20 , END_TIME=>:B22 , MISSING_SECONDS=> :B41 , INSTANCE_LOW_FILTER=>:B11 , INSTANCE_HIGH_FILTER=>:B10 , BUCKET_MAX_COUNT=>NULL, BUCKET_INTERVAL=>:B26 , REPORT_LEVEL=>'typical', CPU_CORES=>:B40 , IS_HYPER=>:B39 ) ELSE NULL END), (CASE WHEN :B38 = 1 THEN (SELECT XMLELEMENT( "skewed_sessions", XMLATTRIBUTES( DECODE(MIN(INST_ID), NULL, :B17 , MIN(INST_ID)) AS "min_iid", DECODE(MAX(INST_ID), NULL, :B17 , MAX(INST_ID)) AS "max_iid"), XMLAGG( XMLELEMENT( "s", XMLATTRIBUTES( INST_ID AS "i"), SESSION_ID) ORDER BY INST_ID, SESSION_ID)) FROM (SELECT SESS.* FROM (SELECT DECODE(AD.DFO_MOST_ACTIVE_IID, :B17 , NULL, AD.DFO_MOST_ACTIVE_IID) INST_ID, AD.DFO_MOST_ACTIVE_SID SESSION_ID FROM ASH_DATA AD WHERE AD.DFO_MOST_ACTIVE_COUNT IS NOT NULL GROUP BY AD.DFO_MOST_ACTIVE_IID, AD.DFO_MOST_ACTIVE_SID ORDER BY MAX(AD.DFO_MOST_ACTIVE_COUNT) DESC) SESS WHERE ROWNUM <= 100)) ELSE NULL END), (CASE WHEN :B37 = 1 THEN (SELECT XMLELEMENT( "report_repository_summary", CASE WHEN MA.MAX_DBOP_NAME IS NOT NULL THEN XMLELEMENT( "dbop", XMLATTRIBUTES('F' AS "detail", MA.MAX_DBOP_NAME AS "dbop_name", TO_CHAR(MA.MIN_FIRST_REFRESH_TIME, :B12 ) AS "dbop_exec_start", MA.MAX_DBOP_EXEC_ID AS "dbop_exec_id"), XMLFOREST( MA.MAX_STATUS AS "status", TO_CHAR(NVL(MA.MAX_SQL_EXEC_START, MA.MIN_FIRST_REFRESH_TIME), :B12 )AS "first_refresh_time", TO_CHAR(MA.MAX_LAST_REFRESH_TIME, :B12 )AS "last_refresh_time", MA.SUM_REFRESH_COUNT AS "refresh_count", MA.MAX_INST_ID AS "inst_id", MA.MAX_SESSION_ID AS "session_id", MA.MAX_SESSION_SERIAL AS "session_serial", MA.MAX_USERID AS "user_id", MA.MAX_USERNAME AS "user", MA.MAX_CON_ID AS "con_id", MA.MAX_CON_NAME AS "con_name", MA.MAX_MODULE AS "module", MA.MAX_ACTION AS "action", MA.MAX_SERVICE_NAME AS "service", MA.MAX_CLIENT_ID AS "client_id", MA.MAX_CLIENT_INFO AS "client_info", MA.MAX_PROGRAM AS "program", MA.MAX_PL_ENTRY_OID AS "plsql_entry_object_id", MA.MAX_PL_ENTRY_PROGID AS "plsql_entry_subprogram_id", MA.MAX_PL_OID AS "plsql_object_id", MA.MAX_PL_PROGID AS "plsql_subprogram_id", MA.MAX_PX_IS_CROSS_INSTANCE AS "is_cross_instance", MA.MAX_PX_DOP AS "dop", MA.MAX_PX_DOP_INSTANCES AS "instances"), CASE WHEN MA.MAX_ERROR_NUMBER IS NULL THEN NULL ELSE XMLELEMENT( "error", XMLATTRIBUTES(MA.MAX_ERROR_NUMBER AS "number", MA.MAX_ERROR_FACILITY AS "facility"), MA.MAX_ERROR_MESSAGE) END, XMLELEMENT( "stats", XMLATTRIBUTES('monitor' AS "type"), XMLELEMENT( "stat", XMLATTRIBUTES('duration' AS "name"), GREATEST(ROUND((MA.MAX_LAST_REFRESH_TIME- NVL(MA.MAX_SQL_EXEC_START, MA.MIN_FIRST_REFRESH_TIME))*86400), LEAST(MA.SUM_ELAPSED_TIME/1000000, 1), CEIL(MA.MAX_QUEUING_TIME/1000000))), DECODE(MA.SUM_ELAPSED_TIME, 0, NULL, XMLELEMENT( "stat", XMLATTRIBUTES('elapsed_time' AS "name"), MA.SUM_ELAPSED_TIME)), DECODE(MA.MAX_QUEUING_TIME, 0, NULL, XMLELEMENT( "stat", XMLATTRIBUTES('queuing_time' AS "name"), MA.MAX_QUEUING_TIME)), DECODE(MA.SUM_CPU_TIME, 0, NULL, XMLELEMENT( "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 OR NVL(MA.SUM_IO_ELIG_BYTES, 0) = 0 THEN NULL ELSE XMLELEMENT( "stat", XMLATTRIBUTES('cell_offload_efficiency' AS "name"), ROUND(MA.SUM_IO_BYTES / DECODE(MA.SUM_IO_INTER_BYTES, 0, 1, MA.SUM_IO_INTER_BYTES), 2)) END, CASE WHEN NVL(MA.SUM_IO_ELIG_BYTES, 0) = 0 OR MA.SUM_IO_BYTES = 0 OR MA.SUM_IO_UNC_BYTES = MA.SUM_IO_RET_BYTES THEN NULL ELSE XMLELEMENT( "stat", XMLATTRIBUTES('cell_offload_efficiency2' AS "name"), GREATEST(0, ROUND(100 * (GREATEST(MA.SUM_IO_UNC_BYTES, MA.SUM_IO_ELIG_BYTES) - MA.SUM_IO_RET_BYTES) / MA.SUM_IO_ELIG_BYTES, 2))) END) ) ELSE XMLELEMENT( "sql", XMLATTRIBUTES( MA.MAX_SQL_ID AS "sql_id", TO_CHAR(MA.MAX_SQL_EXEC_START, :B12 ) AS "sql_exec_start", MA.MAX_SQL_EXEC_ID AS "sql_exec_id"), XMLFOREST(MA.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)), DECODE(MA.SUM_IO_UNC_BYTES, 0, NULL, XMLELEMENT( "stat", XMLATTRIBUTES('unc_bytes' AS "name"), MA.SUM_IO_UNC_BYTES)), DECODE(MA.SUM_IO_ELIG_BYTES, 0, NULL, XMLELEMENT( "stat", XMLATTRIBUTES('elig_bytes' AS "name"), MA.SUM_IO_ELIG_BYTES)), DECODE(MA.SUM_IO_RET_BYTES, 0, NULL, XMLELEMENT( "stat", XMLATTRIBUTES('ret_bytes' AS "name"), MA.SUM_IO_RET_BYTES)), CASE WHEN MA.SUM_IO_INTER_BYTES IS NULL OR MA.SUM_IO_INTER_BYTES = MA.SUM_IO_BYTES OR MA.SUM_IO_BYTES = 0 OR NVL(MA.SUM_IO_ELIG_BYTES, 0) = 0 THEN NULL ELSE XMLELEMENT( "stat", XMLATTRIBUTES('cell_offload_efficiency' AS "name"), ROUND(MA.SUM_IO_BYTES / DECODE(MA.SUM_IO_INTER_BYTES, 0, 1, MA.SUM_IO_INTER_BYTES), 2)) END, CASE WHEN NVL(MA.SUM_IO_ELIG_BYTES, 0) = 0 OR MA.SUM_IO_BYTES = 0 OR MA.SUM_IO_UNC_BYTES = MA.SUM_IO_RET_BYTES THEN NULL ELSE XMLELEMENT( "stat", XMLATTRIBUTES('cell_offload_efficiency2' AS "name"), GREATEST(0, ROUND(100 * (GREATEST(MA.SUM_IO_UNC_BYTES, MA.SUM_IO_ELIG_BYTES) - MA.SUM_IO_RET_BYTES) / MA.SUM_IO_ELIG_BYTES, 2))) END) ) END) FROM MONITOR_AGG MA) ELSE NULL END) FROM (SELECT CASE WHEN V1.XPLAN_XML IS NULL OR V1.XPLAN_XML.EXISTSNODE('/error') > 0 THEN NULL ELSE V1.XPLAN_XML END XPLAN_XML FROM (SELECT CASE WHEN :B36 = 1 THEN DBMS_XPLAN.BUILD_PLAN_XML( TABLE_NAME=>'gv$all_sql_plan', PLAN_TAG=>'plan', FILTER_PREDS=>:B35 , FORMAT=>'-PROJECTION +ALIAS +ADAPTIVE') ELSE NULL END XPLAN_XML FROM DUAL) V1) CONST_VIEW
1q2dgp71gqrjaWITH OBISUBWITH0 AS (select D1.c1 as c1 from (select D1.c1 as c1, Case when D1.c2 is not null then Rank() OVER ( ORDER BY D1.c2) end as c2 from (select distinct D1.c2 as c1, D1.c2 as c2, D1.c2 as c3 from (select sum(T80629.NUMBER3) as c1, T5959.CUSTOMER_BUSINESS_UNIT_NAME as c2 from DIM_V_CUSTOMER T5959, FACT_V_REALTIME_CUSTOMER_DATA T80629 where ( T5959.DIMENSION_KEY = T80629.CUSTOMER and T80629.DATASET = 12 and (T5959.CUSTOMER_BUSINESS_UNIT_CODE in ('0', '3010')) and T5959.CUSTOMER_BUSINESS_UNIT_CODE >= '3000' ) group by T5959.CUSTOMER_BUSINESS_UNIT_NAME having 0 < nvl(sum(T80629.NUMBER3) , 0) ) D1 ) D1 ) D1 where ( D1.c2 <= 1 ) ), OBISUBWITH1 AS (select D1.c1 as c1 from (select D1.c1 as c1, Case when D1.c2 is not null then Rank() OVER ( ORDER BY D1.c2) end as c2 from (select distinct D1.c2 as c1, D1.c2 as c2, D1.c2 as c3 from (select sum(T80629.NUMBER3) as c1, T80629.DATE1 as c2 from DIM_V_CUSTOMER T5959, FACT_V_REALTIME_CUSTOMER_DATA T80629 where ( T5959.DIMENSION_KEY = T80629.CUSTOMER and T80629.DATASET = 12 and (T5959.CUSTOMER_BUSINESS_UNIT_CODE in ('0', '3010')) and T5959.CUSTOMER_BUSINESS_UNIT_CODE >= '3000' ) group by T80629.DATE1 having 0 < nvl(sum(T80629.NUMBER3) , 0) ) D1 ) D1 ) D1 where ( D1.c2 <= 1 ) ), SAWITH0 AS (select sum(T80629.NUMBER3) as c1, sum(case when not case when T80629.TEXT8 = 'Completed' then 'Completed' when T80629.TEXT8 in ('In Progress', 'New') then 'Packing notes' else 'Not generated' end = 'Completed' then T80629.NUMBER3 end ) as c2, case when T80629.TEXT8 = 'Completed' then 'Completed' when T80629.TEXT8 in ('In Progress', 'New') then 'Packing notes' else 'To be generated' end as c3, T80629.TEXT9 as c4, T80629.TEXT6 as c5, T80629.TEXT5 as c6, T80629.TEXT2 as c7, T80629.TEXT10 as c8, T80629.NUMBER1 as c9, T80629.DATE1 as c10, T5959.CUSTOMER_BUSINESS_UNIT_CODE as c11, T5959.CUSTOMER_BUSINESS_UNIT_NAME as c12, T5959.CUSTOMER_NUMBER as c13 from DIM_V_CUSTOMER T5959, FACT_V_REALTIME_CUSTOMER_DATA T80629 where ( T5959.DIMENSION_KEY = T80629.CUSTOMER and T80629.DATASET = 12 and (T5959.CUSTOMER_BUSINESS_UNIT_CODE in ('0', '3010')) and T5959.CUSTOMER_BUSINESS_UNIT_CODE >= '3000' ) group by T5959.CUSTOMER_NUMBER, T5959.CUSTOMER_BUSINESS_UNIT_CODE, T5959.CUSTOMER_BUSINESS_UNIT_NAME, T80629.TEXT2, T80629.TEXT5, T80629.TEXT6, T80629.TEXT9, T80629.TEXT10, T80629.DATE1, T80629.NUMBER1, case when T80629.TEXT8 = 'Completed' then 'Completed' when T80629.TEXT8 in ('In Progress', 'New') then 'Packing notes' else 'To be generated' end ), SAWITH1 AS (select distinct 0 as c1, D1.c10 as c2, D1.c9 as c3, D1.c8 as c4, D1.c7 as c5, D1.c6 as c6, D1.c5 as c7, D1.c4 as c8, D1.c11 as c9, D1.c12 as c10, D1.c13 as c11, D1.c3 as c12, NULL as c13, nvl(D1.c1 , 0) as c14, nvl(D1.c2 , 0) as c15, cast(NULL as DOUBLE PRECISION ) as c16, cast(NULL as DOUBLE PRECISION ) as c17, cast(NULL as DOUBLE PRECISION ) as c19, cast(NULL as DOUBLE PRECISION ) as c20 from SAWITH0 D1 where ( 0 < nvl(D1.c1 , 0) ) ), SAWITH2 AS (select sum(T80629.NUMBER3) as c1, case when T80629.TEXT8 = 'Completed' then 'Completed' when T80629.TEXT8 in ('In Progress', 'New') then 'Packing notes' else 'To be generated' end as c2, T80629.TEXT9 as c3, T80629.TEXT6 as c4, T80629.TEXT5 as c5, T80629.TEXT2 as c6, T80629.TEXT10 as c7, T80629.NUMBER1 as c8, T80629.DATE1 as c9, T5959.CUSTOMER_BUSINESS_UNIT_CODE as c10, T5959.CUSTOMER_BUSINESS_UNIT_NAME as c11, T5959.CUSTOMER_NUMBER as c12 from DIM_V_CUSTOMER T5959, FACT_V_REALTIME_CUSTOMER_DATA T80629 where ( T5959.DIMENSION_KEY = T80629.CUSTOMER and T80629.DATASET = 12 and (T5959.CUSTOMER_BUSINESS_UNIT_CODE in ('0', '3010')) and T5959.CUSTOMER_BUSINESS_UNIT_CODE >= '3000' ) group by T5959.CUSTOMER_NUMBER, T5959.CUSTOMER_BUSINESS_UNIT_CODE, T5959.CUSTOMER_BUSINESS_UNIT_NAME, T80629.TEXT2, T80629.TEXT5, T80629.TEXT6, T80629.TEXT9, T80629.TEXT10, T80629.DATE1, T80629.NUMBER1, case when T80629.TEXT8 = 'Completed' then 'Completed' when T80629.TEXT8 in ('In Progress', 'New') then 'Packing notes' else 'To be generated' end ), SAWITH3 AS (select sum(T80629.NUMBER3) as c1, sum(case when not case when T80629.TEXT8 = 'Completed' then 'Completed' when T80629.TEXT8 in ('In Progress', 'New') then 'Packing notes' else 'Not generated' end = 'Completed' then T80629.NUMBER3 end ) as c2, case when T80629.TEXT8 = 'Completed' then 'Completed' when T80629.TEXT8 in ('In Progress', 'New') then 'Packing notes' else 'To be generated' end as c3, T80629.TEXT9 as c4, T80629.TEXT6 as c5, T80629.TEXT5 as c6, T80629.TEXT2 as c7, T80629.TEXT10 as c8, T80629.NUMBER1 as c9, T80629.DATE1 as c10, T5959.CUSTOMER_BUSINESS_UNIT_CODE as c11, T5959.CUSTOMER_BUSINESS_UNIT_NAME as c12, T5959.CUSTOMER_NUMBER as c13 from DIM_V_CUSTOMER T5959, FACT_V_REALTIME_CUSTOMER_DATA T80629 where ( T5959.DIMENSION_KEY = T80629.CUSTOMER and T80629.DATASET = 12 and T5959.CUSTOMER_BUSINESS_UNIT_CODE >= '3000' and (T5959.CUSTOMER_BUSINESS_UNIT_CODE in ('0', '3010')) and T80629.DATE1 in (select distinct D1.c1 as c1 from OBISUBWITH1 D1) ) group by T5959.CUSTOMER_NUMBER, T5959.CUSTOMER_BUSINESS_UNIT_CODE, T5959.CUSTOMER_BUSINESS_UNIT_NAME, T80629.TEXT2, T80629.TEXT5, T80629.TEXT6, T80629.TEXT9, T80629.TEXT10, T80629.DATE1, T80629.NUMBER1, case when T80629.TEXT8 = 'Completed' then 'Completed' when T80629.TEXT8 in ('In Progress', 'New') then 'Packing notes' else 'To be generated' end ), SAWITH4 AS (select distinct 2 as c1, D1.c10 as c2, D1.c9 as c3, D1.c8 as c4, D1.c7 as c5, D1.c6 as c6, D1.c5 as c7, D1.c4 as c8, D1.c11 as c9, D1.c12 as c10, D1.c13 as c11, D1.c3 as c12, NULL as c13, nvl(D1.c1 , 0) as c14, nvl(D1.c2 , 0) as c15, cast(NULL as DOUBLE PRECISION ) as c17, cast(NULL as DOUBLE PRECISION ) as c19 from SAWITH3 D1 where ( 0 < nvl(D1.c1 , 0) ) ), SAWITH5 AS (select sum(T80629.NUMBER3) as c1, sum(case when not case when T80629.TEXT8 = 'Completed' then 'Completed' when T80629.TEXT8 in ('In Progress', 'New') then 'Packing notes' else 'Not generated' end = 'Completed' then T80629.NUMBER3 end ) as c2, case when T80629.TEXT8 = 'Completed' then 'Completed' when T80629.TEXT8 in ('In Progress', 'New') then 'Packing notes' else 'To be generated' end as c3, T80629.TEXT9 as c4, T80629.TEXT6 as c5, T80629.TEXT5 as c6, T80629.TEXT2 as c7, T80629.TEXT10 as c8, T80629.NUMBER1 as c9, T80629.DATE1 as c10, T5959.CUSTOMER_BUSINESS_UNIT_CODE as c11, T5959.CUSTOMER_BUSINESS_UNIT_NAME as c12, T5959.CUSTOMER_NUMBER as c13 from DIM_V_CUSTOMER T5959, FACT_V_REALTIME_CUSTOMER_DATA T80629 where ( T5959.DIMENSION_KEY = T80629.CUSTOMER and T80629.DATASET = 12 and T5959.CUSTOMER_BUSINESS_UNIT_CODE >= '3000' and (T5959.CUSTOMER_BUSINESS_UNIT_CODE in ('0', '3010')) and T5959.CUSTOMER_BUSINESS_UNIT_NAME in (select distinct D1.c1 as c1 from OBISUBWITH0 D1) ) group by T5959.CUSTOMER_NUMBER, T5959.CUSTOMER_BUSINESS_UNIT_CODE, T5959.CUSTOMER_BUSINESS_UNIT_NAME, T80629.TEXT2, T80629.TEXT5, T80629.TEXT6, T80629.TEXT9, T80629.TEXT10, T80629.DATE1, T80629.NUMBER1, case when T80629.TEXT8 = 'Completed' then 'Completed' when T80629.TEXT8 in ('In Progress', 'New') then 'Packing notes' else 'To be generated' end ), SAWITH6 AS (select distinct 3 as c1, D1.c10 as c2, D1.c9 as c3, D1.c8 as c4, D1.c7 as c5, D1.c6 as c6, D1.c5 as c7, D1.c4 as c8, D1.c11 as c9, D1.c12 as c10, D1.c13 as c11, D1.c3 as c12, NULL as c13, nvl(D1.c1 , 0) as c14, nvl(D1.c2 , 0) as c15, cast(NULL as DOUBLE PRECISION ) as c16, cast(NULL as DOUBLE PRECISION ) as c18, cast(NULL as DOUBLE PRECISION ) as c20, cast(NULL as DOUBLE PRECISION ) as c21 from SAWITH5 D1 where ( 0 < nvl(D1.c1 , 0) ) ), SAWITH7 AS ((select D1.c1 as c1, D1.c2 as c2, D1.c3 as c3, D1.c4 as c4, D1.c5 as c5, D1.c6 as c6, D1.c7 as c7, D1.c8 as c8, D1.c9 as c9, D1.c10 as c10, D1.c11 as c11, D1.c12 as c12, D1.c13 as c13, D1.c14 as c14, D1.c15 as c15, D1.c16 as c16, D1.c17 as c17, sum(D1.c14) over (partition by D1.c10, D1.c2, D1.c4, D1.c8, D1.c12) as c18, D1.c19 as c19, D1.c20 as c20, sum(D1.c14) over (partition by D1.c10, D1.c4, D1.c8, D1.c12) as c21 from SAWITH1 D1 union all select distinct 1 as c1, D1.c9 as c2, D1.c8 as c3, D1.c7 as c4, D1.c6 as c5, D1.c5 as c6, D1.c4 as c7, D1.c3 as c8, D1.c10 as c9, D1.c11 as c10, D1.c12 as c11, D1.c2 as c12, NULL as c13, cast(NULL as DOUBLE PRECISION ) as c14, cast(NULL as DOUBLE PRECISION ) as c15, cast(NULL as DOUBLE PRECISION ) as c16, cast(NULL as DOUBLE PRECISION ) as c17, cast(NULL as DOUBLE PRECISION ) as c18, cast(NULL as DOUBLE PRECISION ) as c19, cast(NULL as DOUBLE PRECISION ) as c20, cast(NULL as DOUBLE PRECISION ) as c21 from SAWITH2 D1 where ( 0 < nvl(D1.c1 , 0) ) union all select D1.c1 as c1, D1.c2 as c2, D1.c3 as c3, D1.c4 as c4, D1.c5 as c5, D1.c6 as c6, D1.c7 as c7, D1.c8 as c8, D1.c9 as c9, D1.c10 as c10, D1.c11 as c11, D1.c12 as c12, D1.c13 as c13, D1.c14 as c14, D1.c15 as c15, sum(D1.c14) over (partition by D1.c10, D1.c2, D1.c3, D1.c4, D1.c8, D1.c12) as c16, D1.c17 as c17, sum(D1.c14) over (partition by D1.c10, D1.c2, D1.c4, D1.c8, D1.c12) as c18, D1.c19 as c19, sum(D1.c14) over (partition by D1.c10, D1.c3, D1.c4, D1.c8, D1.c12) as c20, sum(D1.c14) over (partition by D1.c10, D1.c4, D1.c8, D1.c12) as c21 from SAWITH4 D1 union all select D1.c1 as c1, D1.c2 as c2, D1.c3 as c3, D1.c4 as c4, D1.c5 as c5, D1.c6 as c6, D1.c7 as c7, D1.c8 as c8, D1.c9 as c9, D1.c10 as c10, D1.c11 as c11, D1.c12 as c12, D1.c13 as c13, D1.c14 as c14, D1.c15 as c15, D1.c16 as c16, sum(D1.c14) over (partition by D1.c10, D1.c9, D1.c2, D1.c4, D1.c8, D1.c12) as c17, D1.c18 as c18, sum(D1.c14) over (partition by D1.c10, D1.c9, D1.c2, D1.c4, D1.c8) as c19, D1.c20 as c20, D1.c21 as c21 from SAWITH6 D1)) select D1.c1 as c1, D1.c2 as c2, D1.c3 as c3, D1.c4 as c4, D1.c5 as c5, D1.c6 as c6, D1.c7 as c7, D1.c8 as c8, D1.c9 as c9, D1.c10 as c10, D1.c11 as c11, D1.c12 as c12, D1.c13 as c13, D1.c14 as c14, D1.c15 as c15, D1.c16 as c16, D1.c17 as c17, D1.c18 as c18, D1.c19 as c19, D1.c20 as c20, D1.c21 as c21 from ( select D1.c1 as c1, D1.c2 as c2, D1.c3 as c3, D1.c4 as c4, D1.c5 as c5, D1.c6 as c6, D1.c7 as c7, D1.c8 as c8, D1.c9 as c9, D1.c10 as c10, D1.c11 as c11, D1.c12 as c12, D1.c13 as c13, D1.c14 as c14, D1.c15 as c15, D1.c16 as c16, D1.c17 as c17, D1.c18 as c18, D1.c19 as c19, D1.c20 as c20, D1.c21 as c21 from SAWITH7 D1 order by c1, c10, c8, c4, c2, c12 ) D1 where rownum <= 5000001
1xsrcjpuz06chselect sum(T12363.REVENUE) as c1, sum(T12363.SHORTAGE_QTY) as c2, sum(T12363.NOCHARGEPREVREJECTED) as c3, sum(T12363.QUANTITY_DELIVERED) as c4, sum(T12363.QUANTITY_ORDERED) as c5, sum(T12363.WEIGHT_DELIVERED) as c6, sum(case when T6115.REASON_CODE = 'C7' then T12363.WEIGHT_DELIVERED end ) as c7, sum(case when T6115.REASON_CODE = 'C7' then T12363.QUANTITY_DELIVERED end ) as c8, sum(case when T24684.ORIGIN_NUMBER = 3 and T6115.REASON_CODE in ('C5', 'URS') then T12363.QUANTITY_DELIVERED end ) as c9, T5913.BUSINESS_UNIT_CODE as c10, T5913.BUSINESS_UNIT_NAME as c11, T8754.WEEK_NAME_AND_YEAR as c12, T8754.WEEK_START_DATE as c13, T8754.WEEK_NUMBER as c14, T8754.YEAR as c15, T8754.WEEK_SOURCE_ID as c16, T5913.DIMENSION_KEY as c17 from DELIVERY_NOTE T24684, DATE_CAL_WEEK_BASED T8754, ( DIM_V_BUSINESS_UNIT T5913 inner join FACT_DELIVERIES T12363 On T5913.DIMENSION_KEY = T12363.BUSINESS_UNIT) left outer join REASON T6115 On T6115.DIMENSION_KEY = T12363.CORRECTIONREASON where ( T5913.DIVISION = 'Johnsons Hotel Linen' and T8754.DIMENSION_KEY = T12363.DATE_CAL_WEEK_BASED and T12363.DELIVERY_NOTE = T24684.DIMENSION_KEY and T8754.YEAR between T8754.CURRENT_YEAR - 2 and T8754.CURRENT_YEAR ) group by T5913.DIMENSION_KEY, T5913.BUSINESS_UNIT_CODE, T5913.BUSINESS_UNIT_NAME, T8754.YEAR, T8754.WEEK_SOURCE_ID, T8754.WEEK_NUMBER, T8754.WEEK_START_DATE, T8754.WEEK_NAME_AND_YEAR order by c12, c13, c14, c11, c10, c17, c15, c16
23s96rf87635sselect count(*) from sys.col_group_usage$ where obj# = :1 and cols = :2 and trunc(sysdate) = trunc(timestamp) and bitand(flags, :3) = :3
2kbb65tvbd61pWITH SAWITH0 AS (select sum(T12363.QUANTITY_ORDERED) as c1, sum(T12363.NOCHARGEPREVREJECTED) as c2, sum(T12363.QUANTITY_DELIVERED) as c3, sum(T12363.REVENUE) as c4, sum(case when T6115.REASON_CODE = 'C7' then T12363.QUANTITY_DELIVERED end ) as c5, sum(case when T24684.ORIGIN_NUMBER = 3 and T6115.REASON_CODE in ('C5', 'URS') then T12363.QUANTITY_DELIVERED end ) as c6, sum(case when T6115.REASON_DESCRIPTION = 'Unrecognised Shortages' and T24684.ORIGIN_NUMBER = 3 then T12363.QUANTITY_DELIVERED end ) as c7, sum(case when T8705.YEAR in (2025) and T8705.MONTH_NAME_AND_YEAR in ('December 2025') then T12363.REVENUE end ) as c8, sum(case when T8705.YEAR in (2025) and T8705.MONTH_NAME_AND_YEAR in ('December 2025') then T12363.QUANTITY_DELIVERED end ) as c9, sum(case when T6115.REASON_CODE = 'C7' and T8705.YEAR in (2025) and T8705.MONTH_NAME_AND_YEAR in ('December 2025') then T12363.QUANTITY_DELIVERED end ) as c10, sum(case when T8705.YEAR in (2025) and T8705.MONTH_NAME_AND_YEAR in ('December 2025') then T12363.NOCHARGEPREVREJECTED end ) as c11, sum(case when T24684.ORIGIN_NUMBER = 3 and T6115.REASON_CODE in ('C5', 'URS') and T8705.YEAR in (2025) and T8705.MONTH_NAME_AND_YEAR in ('December 2025') then T12363.QUANTITY_DELIVERED end ) as c12, T5913.BUSINESS_UNIT_NAME as c13, T6063.PRODUCT_CODE as c14, T6063.PRODUCT_DESCRIPTION as c15, T5959.CHAIN as c16, T5959.NAME as c17, T8705.MONTH_NAME_AND_YEAR as c18, T8705.YEAR as c19, T5959.CUSTOMER_NUMBER as c20, T8705.MONTH_SOURCE_ID as c21, T5913.DIMENSION_KEY as c22, T5959.DIMENSION_KEY as c23, T6063.PRODUCT_SOURCE_ID as c24, T5959.CHAIN_CODE as c25 from DELIVERY_NOTE T24684, DATE_CAL_MONTH_BASED T8705, ( DIM_V_BUSINESS_UNIT T5913 inner join ( DIM_V_PRODUCT T6063 inner join ( DIM_V_CUSTOMER T5959 inner join FACT_DELIVERIES T12363 On T5959.DIMENSION_KEY = T12363.CUSTOMER) On T6063.DIMENSION_KEY = T12363.PRODUCT) On T5913.DIMENSION_KEY = T12363.BUSINESS_UNIT) left outer join REASON T6115 On T6115.DIMENSION_KEY = T12363.CORRECTIONREASON where ( T6063.PRODUCT_GROUP_DESCRIPTION not in ('Container', 'Direct Sales', 'Miscellaneous') and T5913.DIVISION = 'Johnsons Hotel Linen' and T8705.DIMENSION_KEY = T12363.DATE_CAL_MONTH_BASED and T12363.DELIVERY_NOTE = T24684.DIMENSION_KEY and TO_DATE('2026-02-25' , 'YYYY-MM-DD') < T5959.DATE_INACTIVE and (T5913.BUSINESS_UNIT_CODE in ('0', '3030')) and T8705.MONTH_SEQ between T8705.CURRENT_MONTH_SEQ - 2 and T8705.CURRENT_MONTH_SEQ - 1 ) group by T5913.DIMENSION_KEY, T5913.BUSINESS_UNIT_NAME, T5959.DIMENSION_KEY, T5959.CUSTOMER_NUMBER, T5959.CHAIN_CODE, T5959.CHAIN, T5959.NAME, T6063.PRODUCT_SOURCE_ID, T6063.PRODUCT_CODE, T6063.PRODUCT_DESCRIPTION, T8705.YEAR, T8705.MONTH_SOURCE_ID, T8705.MONTH_NAME_AND_YEAR) select 0 as c1, D1.c13 as c2, D1.c14 as c3, D1.c15 as c4, D1.c16 as c5, D1.c17 as c6, D1.c18 as c7, D1.c19 as c8, D1.c20 as c9, D1.c21 as c10, D1.c4 as c11, nvl(D1.c4 / nullif( nvl(D1.c3 , 0) - nvl(D1.c5 , 0) - (nvl(-D1.c5 , 0) + nvl(D1.c2 , 0)), 0) * nvl(D1.c6 * -1 , 0) , 0) as c12, nvl((nvl(nvl(D1.c7 , 0) , 0) + nvl(nvl(D1.c6 , 0) , 0)) * -1 * 100.0 / nullif( D1.c1, 0) , 0) as c13, nvl(D1.c6 * -1 , 0) as c14, 0 as c15, 0 as c16, 0 as c17, 0 as c18, 0 as c19, 0 as c20, D1.c22 as c21, D1.c23 as c22, D1.c24 as c23, D1.c25 as c24, D1.c7 as c25, D1.c6 as c26, D1.c1 as c27, nvl(D1.c8 / nullif( nvl(D1.c9 , 0) - nvl(D1.c10 , 0) - (nvl(-D1.c10 , 0) + nvl(D1.c11 , 0)), 0) * nvl(D1.c12 * -1 , 0) , 0) as c28 from SAWITH0 D1 order by c2, c9, c7, c8, c21, c22, c5, c24, c23, c4, c3, c10, c6
2syvqzbxp4k9zselect u.name, o.name, a.interface_version#, o.obj# from association$ a, user$ u, obj$ o where a.obj# = :1 and a.property = :2 and a.statstype# = o.obj# and u.user# = o.owner#
33c3k6rkxjhdkselect count(*) from V_ERROR_CIRC_INV_SNAPSHOT
3a8r7v74n6trvWITH OBISUBWITH0 AS (select D1.c1 as c1 from (select D1.c1 as c1, Case when D1.c2 is not null then Rank() OVER ( ORDER BY D1.c2) end as c2 from (select distinct D1.c2 as c1, D1.c2 as c2, D1.c2 as c3 from (select sum(T80629.NUMBER3) as c1, T5959.CUSTOMER_BUSINESS_UNIT_NAME as c2 from DIM_V_CUSTOMER T5959, FACT_V_REALTIME_CUSTOMER_DATA T80629 where ( T5959.DIMENSION_KEY = T80629.CUSTOMER and T80629.DATASET = 12 and (T5959.CUSTOMER_BUSINESS_UNIT_CODE in ('0', '3020')) and T5959.CUSTOMER_BUSINESS_UNIT_CODE >= '3000' ) group by T5959.CUSTOMER_BUSINESS_UNIT_NAME having 0 < nvl(sum(T80629.NUMBER3) , 0) ) D1 ) D1 ) D1 where ( D1.c2 <= 1 ) ), OBISUBWITH1 AS (select D1.c1 as c1 from (select D1.c1 as c1, Case when D1.c2 is not null then Rank() OVER ( ORDER BY D1.c2) end as c2 from (select distinct D1.c2 as c1, D1.c2 as c2, D1.c2 as c3 from (select sum(T80629.NUMBER3) as c1, T80629.DATE1 as c2 from DIM_V_CUSTOMER T5959, FACT_V_REALTIME_CUSTOMER_DATA T80629 where ( T5959.DIMENSION_KEY = T80629.CUSTOMER and T80629.DATASET = 12 and (T5959.CUSTOMER_BUSINESS_UNIT_CODE in ('0', '3020')) and T5959.CUSTOMER_BUSINESS_UNIT_CODE >= '3000' ) group by T80629.DATE1 having 0 < nvl(sum(T80629.NUMBER3) , 0) ) D1 ) D1 ) D1 where ( D1.c2 <= 1 ) ), SAWITH0 AS (select sum(T80629.NUMBER3) as c1, sum(case when not case when T80629.TEXT8 = 'Completed' then 'Completed' when T80629.TEXT8 in ('In Progress', 'New') then 'Packing notes' else 'Not generated' end = 'Completed' then T80629.NUMBER3 end ) as c2, case when T80629.TEXT8 = 'Completed' then 'Completed' when T80629.TEXT8 in ('In Progress', 'New') then 'Packing notes' else 'To be generated' end as c3, T80629.TEXT9 as c4, T80629.TEXT6 as c5, T80629.TEXT5 as c6, T80629.TEXT2 as c7, T80629.TEXT10 as c8, T80629.NUMBER1 as c9, T80629.DATE1 as c10, T5959.CUSTOMER_BUSINESS_UNIT_CODE as c11, T5959.CUSTOMER_BUSINESS_UNIT_NAME as c12, T5959.CUSTOMER_NUMBER as c13 from DIM_V_CUSTOMER T5959, FACT_V_REALTIME_CUSTOMER_DATA T80629 where ( T5959.DIMENSION_KEY = T80629.CUSTOMER and T80629.DATASET = 12 and (T5959.CUSTOMER_BUSINESS_UNIT_CODE in ('0', '3020')) and T5959.CUSTOMER_BUSINESS_UNIT_CODE >= '3000' ) group by T5959.CUSTOMER_NUMBER, T5959.CUSTOMER_BUSINESS_UNIT_CODE, T5959.CUSTOMER_BUSINESS_UNIT_NAME, T80629.TEXT2, T80629.TEXT5, T80629.TEXT6, T80629.TEXT9, T80629.TEXT10, T80629.DATE1, T80629.NUMBER1, case when T80629.TEXT8 = 'Completed' then 'Completed' when T80629.TEXT8 in ('In Progress', 'New') then 'Packing notes' else 'To be generated' end ), SAWITH1 AS (select distinct 0 as c1, D1.c10 as c2, D1.c9 as c3, D1.c8 as c4, D1.c7 as c5, D1.c6 as c6, D1.c5 as c7, D1.c4 as c8, D1.c11 as c9, D1.c12 as c10, D1.c13 as c11, D1.c3 as c12, NULL as c13, nvl(D1.c1 , 0) as c14, nvl(D1.c2 , 0) as c15, cast(NULL as DOUBLE PRECISION ) as c16, cast(NULL as DOUBLE PRECISION ) as c17, cast(NULL as DOUBLE PRECISION ) as c19, cast(NULL as DOUBLE PRECISION ) as c20 from SAWITH0 D1 where ( 0 < nvl(D1.c1 , 0) ) ), SAWITH2 AS (select sum(T80629.NUMBER3) as c1, case when T80629.TEXT8 = 'Completed' then 'Completed' when T80629.TEXT8 in ('In Progress', 'New') then 'Packing notes' else 'To be generated' end as c2, T80629.TEXT9 as c3, T80629.TEXT6 as c4, T80629.TEXT5 as c5, T80629.TEXT2 as c6, T80629.TEXT10 as c7, T80629.NUMBER1 as c8, T80629.DATE1 as c9, T5959.CUSTOMER_BUSINESS_UNIT_CODE as c10, T5959.CUSTOMER_BUSINESS_UNIT_NAME as c11, T5959.CUSTOMER_NUMBER as c12 from DIM_V_CUSTOMER T5959, FACT_V_REALTIME_CUSTOMER_DATA T80629 where ( T5959.DIMENSION_KEY = T80629.CUSTOMER and T80629.DATASET = 12 and (T5959.CUSTOMER_BUSINESS_UNIT_CODE in ('0', '3020')) and T5959.CUSTOMER_BUSINESS_UNIT_CODE >= '3000' ) group by T5959.CUSTOMER_NUMBER, T5959.CUSTOMER_BUSINESS_UNIT_CODE, T5959.CUSTOMER_BUSINESS_UNIT_NAME, T80629.TEXT2, T80629.TEXT5, T80629.TEXT6, T80629.TEXT9, T80629.TEXT10, T80629.DATE1, T80629.NUMBER1, case when T80629.TEXT8 = 'Completed' then 'Completed' when T80629.TEXT8 in ('In Progress', 'New') then 'Packing notes' else 'To be generated' end ), SAWITH3 AS (select sum(T80629.NUMBER3) as c1, sum(case when not case when T80629.TEXT8 = 'Completed' then 'Completed' when T80629.TEXT8 in ('In Progress', 'New') then 'Packing notes' else 'Not generated' end = 'Completed' then T80629.NUMBER3 end ) as c2, case when T80629.TEXT8 = 'Completed' then 'Completed' when T80629.TEXT8 in ('In Progress', 'New') then 'Packing notes' else 'To be generated' end as c3, T80629.TEXT9 as c4, T80629.TEXT6 as c5, T80629.TEXT5 as c6, T80629.TEXT2 as c7, T80629.TEXT10 as c8, T80629.NUMBER1 as c9, T80629.DATE1 as c10, T5959.CUSTOMER_BUSINESS_UNIT_CODE as c11, T5959.CUSTOMER_BUSINESS_UNIT_NAME as c12, T5959.CUSTOMER_NUMBER as c13 from DIM_V_CUSTOMER T5959, FACT_V_REALTIME_CUSTOMER_DATA T80629 where ( T5959.DIMENSION_KEY = T80629.CUSTOMER and T80629.DATASET = 12 and T5959.CUSTOMER_BUSINESS_UNIT_CODE >= '3000' and (T5959.CUSTOMER_BUSINESS_UNIT_CODE in ('0', '3020')) and T80629.DATE1 in (select distinct D1.c1 as c1 from OBISUBWITH1 D1) ) group by T5959.CUSTOMER_NUMBER, T5959.CUSTOMER_BUSINESS_UNIT_CODE, T5959.CUSTOMER_BUSINESS_UNIT_NAME, T80629.TEXT2, T80629.TEXT5, T80629.TEXT6, T80629.TEXT9, T80629.TEXT10, T80629.DATE1, T80629.NUMBER1, case when T80629.TEXT8 = 'Completed' then 'Completed' when T80629.TEXT8 in ('In Progress', 'New') then 'Packing notes' else 'To be generated' end ), SAWITH4 AS (select distinct 2 as c1, D1.c10 as c2, D1.c9 as c3, D1.c8 as c4, D1.c7 as c5, D1.c6 as c6, D1.c5 as c7, D1.c4 as c8, D1.c11 as c9, D1.c12 as c10, D1.c13 as c11, D1.c3 as c12, NULL as c13, nvl(D1.c1 , 0) as c14, nvl(D1.c2 , 0) as c15, cast(NULL as DOUBLE PRECISION ) as c17, cast(NULL as DOUBLE PRECISION ) as c19 from SAWITH3 D1 where ( 0 < nvl(D1.c1 , 0) ) ), SAWITH5 AS (select sum(T80629.NUMBER3) as c1, sum(case when not case when T80629.TEXT8 = 'Completed' then 'Completed' when T80629.TEXT8 in ('In Progress', 'New') then 'Packing notes' else 'Not generated' end = 'Completed' then T80629.NUMBER3 end ) as c2, case when T80629.TEXT8 = 'Completed' then 'Completed' when T80629.TEXT8 in ('In Progress', 'New') then 'Packing notes' else 'To be generated' end as c3, T80629.TEXT9 as c4, T80629.TEXT6 as c5, T80629.TEXT5 as c6, T80629.TEXT2 as c7, T80629.TEXT10 as c8, T80629.NUMBER1 as c9, T80629.DATE1 as c10, T5959.CUSTOMER_BUSINESS_UNIT_CODE as c11, T5959.CUSTOMER_BUSINESS_UNIT_NAME as c12, T5959.CUSTOMER_NUMBER as c13 from DIM_V_CUSTOMER T5959, FACT_V_REALTIME_CUSTOMER_DATA T80629 where ( T5959.DIMENSION_KEY = T80629.CUSTOMER and T80629.DATASET = 12 and T5959.CUSTOMER_BUSINESS_UNIT_CODE >= '3000' and (T5959.CUSTOMER_BUSINESS_UNIT_CODE in ('0', '3020')) and T5959.CUSTOMER_BUSINESS_UNIT_NAME in (select distinct D1.c1 as c1 from OBISUBWITH0 D1) ) group by T5959.CUSTOMER_NUMBER, T5959.CUSTOMER_BUSINESS_UNIT_CODE, T5959.CUSTOMER_BUSINESS_UNIT_NAME, T80629.TEXT2, T80629.TEXT5, T80629.TEXT6, T80629.TEXT9, T80629.TEXT10, T80629.DATE1, T80629.NUMBER1, case when T80629.TEXT8 = 'Completed' then 'Completed' when T80629.TEXT8 in ('In Progress', 'New') then 'Packing notes' else 'To be generated' end ), SAWITH6 AS (select distinct 3 as c1, D1.c10 as c2, D1.c9 as c3, D1.c8 as c4, D1.c7 as c5, D1.c6 as c6, D1.c5 as c7, D1.c4 as c8, D1.c11 as c9, D1.c12 as c10, D1.c13 as c11, D1.c3 as c12, NULL as c13, nvl(D1.c1 , 0) as c14, nvl(D1.c2 , 0) as c15, cast(NULL as DOUBLE PRECISION ) as c16, cast(NULL as DOUBLE PRECISION ) as c18, cast(NULL as DOUBLE PRECISION ) as c20, cast(NULL as DOUBLE PRECISION ) as c21 from SAWITH5 D1 where ( 0 < nvl(D1.c1 , 0) ) ), SAWITH7 AS ((select D1.c1 as c1, D1.c2 as c2, D1.c3 as c3, D1.c4 as c4, D1.c5 as c5, D1.c6 as c6, D1.c7 as c7, D1.c8 as c8, D1.c9 as c9, D1.c10 as c10, D1.c11 as c11, D1.c12 as c12, D1.c13 as c13, D1.c14 as c14, D1.c15 as c15, D1.c16 as c16, D1.c17 as c17, sum(D1.c14) over (partition by D1.c10, D1.c2, D1.c4, D1.c8, D1.c12) as c18, D1.c19 as c19, D1.c20 as c20, sum(D1.c14) over (partition by D1.c10, D1.c4, D1.c8, D1.c12) as c21 from SAWITH1 D1 union all select distinct 1 as c1, D1.c9 as c2, D1.c8 as c3, D1.c7 as c4, D1.c6 as c5, D1.c5 as c6, D1.c4 as c7, D1.c3 as c8, D1.c10 as c9, D1.c11 as c10, D1.c12 as c11, D1.c2 as c12, NULL as c13, cast(NULL as DOUBLE PRECISION ) as c14, cast(NULL as DOUBLE PRECISION ) as c15, cast(NULL as DOUBLE PRECISION ) as c16, cast(NULL as DOUBLE PRECISION ) as c17, cast(NULL as DOUBLE PRECISION ) as c18, cast(NULL as DOUBLE PRECISION ) as c19, cast(NULL as DOUBLE PRECISION ) as c20, cast(NULL as DOUBLE PRECISION ) as c21 from SAWITH2 D1 where ( 0 < nvl(D1.c1 , 0) ) union all select D1.c1 as c1, D1.c2 as c2, D1.c3 as c3, D1.c4 as c4, D1.c5 as c5, D1.c6 as c6, D1.c7 as c7, D1.c8 as c8, D1.c9 as c9, D1.c10 as c10, D1.c11 as c11, D1.c12 as c12, D1.c13 as c13, D1.c14 as c14, D1.c15 as c15, sum(D1.c14) over (partition by D1.c10, D1.c2, D1.c3, D1.c4, D1.c8, D1.c12) as c16, D1.c17 as c17, sum(D1.c14) over (partition by D1.c10, D1.c2, D1.c4, D1.c8, D1.c12) as c18, D1.c19 as c19, sum(D1.c14) over (partition by D1.c10, D1.c3, D1.c4, D1.c8, D1.c12) as c20, sum(D1.c14) over (partition by D1.c10, D1.c4, D1.c8, D1.c12) as c21 from SAWITH4 D1 union all select D1.c1 as c1, D1.c2 as c2, D1.c3 as c3, D1.c4 as c4, D1.c5 as c5, D1.c6 as c6, D1.c7 as c7, D1.c8 as c8, D1.c9 as c9, D1.c10 as c10, D1.c11 as c11, D1.c12 as c12, D1.c13 as c13, D1.c14 as c14, D1.c15 as c15, D1.c16 as c16, sum(D1.c14) over (partition by D1.c10, D1.c9, D1.c2, D1.c4, D1.c8, D1.c12) as c17, D1.c18 as c18, sum(D1.c14) over (partition by D1.c10, D1.c9, D1.c2, D1.c4, D1.c8) as c19, D1.c20 as c20, D1.c21 as c21 from SAWITH6 D1)) select D1.c1 as c1, D1.c2 as c2, D1.c3 as c3, D1.c4 as c4, D1.c5 as c5, D1.c6 as c6, D1.c7 as c7, D1.c8 as c8, D1.c9 as c9, D1.c10 as c10, D1.c11 as c11, D1.c12 as c12, D1.c13 as c13, D1.c14 as c14, D1.c15 as c15, D1.c16 as c16, D1.c17 as c17, D1.c18 as c18, D1.c19 as c19, D1.c20 as c20, D1.c21 as c21 from ( select D1.c1 as c1, D1.c2 as c2, D1.c3 as c3, D1.c4 as c4, D1.c5 as c5, D1.c6 as c6, D1.c7 as c7, D1.c8 as c8, D1.c9 as c9, D1.c10 as c10, D1.c11 as c11, D1.c12 as c12, D1.c13 as c13, D1.c14 as c14, D1.c15 as c15, D1.c16 as c16, D1.c17 as c17, D1.c18 as c18, D1.c19 as c19, D1.c20 as c20, D1.c21 as c21 from SAWITH7 D1 order by c1, c10, c8, c4, c2, c12 ) D1 where rownum <= 5000001
3b9t5g7ndxthaWITH OBISUBWITH0 AS (select D1.c1 as c1 from (select D1.c1 as c1, Case when D1.c2 is not null then Rank() OVER ( ORDER BY D1.c2) end as c2 from (select distinct D1.c2 as c1, D1.c2 as c2, D1.c2 as c3 from (select sum(T80629.NUMBER3) as c1, T5959.CUSTOMER_BUSINESS_UNIT_NAME as c2 from DIM_V_CUSTOMER T5959, FACT_V_REALTIME_CUSTOMER_DATA T80629 where ( T5959.DIMENSION_KEY = T80629.CUSTOMER and T5959.CUSTOMER_BUSINESS_UNIT_NAME = 'JHL Clacton-on-Sea' and T80629.DATASET = 12 and T5959.CUSTOMER_BUSINESS_UNIT_CODE >= '3000' ) group by T5959.CUSTOMER_BUSINESS_UNIT_NAME having 0 < nvl(sum(T80629.NUMBER3) , 0) ) D1 ) D1 ) D1 where ( D1.c2 <= 1 ) ), OBISUBWITH1 AS (select D1.c1 as c1 from (select D1.c1 as c1, Case when D1.c2 is not null then Rank() OVER ( ORDER BY D1.c2) end as c2 from (select distinct D1.c2 as c1, D1.c2 as c2, D1.c2 as c3 from (select sum(T80629.NUMBER3) as c1, T80629.DATE1 as c2 from DIM_V_CUSTOMER T5959, FACT_V_REALTIME_CUSTOMER_DATA T80629 where ( T5959.DIMENSION_KEY = T80629.CUSTOMER and T5959.CUSTOMER_BUSINESS_UNIT_NAME = 'JHL Clacton-on-Sea' and T80629.DATASET = 12 and T5959.CUSTOMER_BUSINESS_UNIT_CODE >= '3000' ) group by T80629.DATE1 having 0 < nvl(sum(T80629.NUMBER3) , 0) ) D1 ) D1 ) D1 where ( D1.c2 <= 1 ) ), SAWITH0 AS (select sum(T80629.NUMBER3) as c1, sum(case when not case when T80629.TEXT8 = 'Completed' then 'Completed' when T80629.TEXT8 in ('In Progress', 'New') then 'Packing notes' else 'Not generated' end = 'Completed' then T80629.NUMBER3 end ) as c2, case when T80629.TEXT8 = 'Completed' then 'Completed' when T80629.TEXT8 in ('In Progress', 'New') then 'Packing notes' else 'To be generated' end as c3, T80629.TEXT9 as c4, T80629.TEXT6 as c5, T80629.TEXT5 as c6, T80629.TEXT2 as c7, T80629.TEXT10 as c8, T80629.NUMBER1 as c9, T80629.DATE1 as c10, T5959.CUSTOMER_BUSINESS_UNIT_CODE as c11, T5959.CUSTOMER_BUSINESS_UNIT_NAME as c12, T5959.CUSTOMER_NUMBER as c13 from DIM_V_CUSTOMER T5959, FACT_V_REALTIME_CUSTOMER_DATA T80629 where ( T5959.DIMENSION_KEY = T80629.CUSTOMER and T5959.CUSTOMER_BUSINESS_UNIT_NAME = 'JHL Clacton-on-Sea' and T80629.DATASET = 12 and T5959.CUSTOMER_BUSINESS_UNIT_CODE >= '3000' ) group by T5959.CUSTOMER_NUMBER, T5959.CUSTOMER_BUSINESS_UNIT_CODE, T5959.CUSTOMER_BUSINESS_UNIT_NAME, T80629.TEXT2, T80629.TEXT5, T80629.TEXT6, T80629.TEXT9, T80629.TEXT10, T80629.DATE1, T80629.NUMBER1, case when T80629.TEXT8 = 'Completed' then 'Completed' when T80629.TEXT8 in ('In Progress', 'New') then 'Packing notes' else 'To be generated' end ), SAWITH1 AS (select distinct 0 as c1, D1.c10 as c2, D1.c9 as c3, D1.c8 as c4, D1.c7 as c5, D1.c6 as c6, D1.c5 as c7, D1.c4 as c8, D1.c11 as c9, D1.c12 as c10, D1.c13 as c11, D1.c3 as c12, NULL as c13, nvl(D1.c1 , 0) as c14, nvl(D1.c2 , 0) as c15, cast(NULL as DOUBLE PRECISION ) as c16, cast(NULL as DOUBLE PRECISION ) as c17, cast(NULL as DOUBLE PRECISION ) as c19, cast(NULL as DOUBLE PRECISION ) as c20 from SAWITH0 D1 where ( 0 < nvl(D1.c1 , 0) ) ), SAWITH2 AS (select sum(T80629.NUMBER3) as c1, case when T80629.TEXT8 = 'Completed' then 'Completed' when T80629.TEXT8 in ('In Progress', 'New') then 'Packing notes' else 'To be generated' end as c2, T80629.TEXT9 as c3, T80629.TEXT6 as c4, T80629.TEXT5 as c5, T80629.TEXT2 as c6, T80629.TEXT10 as c7, T80629.NUMBER1 as c8, T80629.DATE1 as c9, T5959.CUSTOMER_BUSINESS_UNIT_CODE as c10, T5959.CUSTOMER_BUSINESS_UNIT_NAME as c11, T5959.CUSTOMER_NUMBER as c12 from DIM_V_CUSTOMER T5959, FACT_V_REALTIME_CUSTOMER_DATA T80629 where ( T5959.DIMENSION_KEY = T80629.CUSTOMER and T5959.CUSTOMER_BUSINESS_UNIT_NAME = 'JHL Clacton-on-Sea' and T80629.DATASET = 12 and T5959.CUSTOMER_BUSINESS_UNIT_CODE >= '3000' ) group by T5959.CUSTOMER_NUMBER, T5959.CUSTOMER_BUSINESS_UNIT_CODE, T5959.CUSTOMER_BUSINESS_UNIT_NAME, T80629.TEXT2, T80629.TEXT5, T80629.TEXT6, T80629.TEXT9, T80629.TEXT10, T80629.DATE1, T80629.NUMBER1, case when T80629.TEXT8 = 'Completed' then 'Completed' when T80629.TEXT8 in ('In Progress', 'New') then 'Packing notes' else 'To be generated' end ), SAWITH3 AS (select sum(T80629.NUMBER3) as c1, sum(case when not case when T80629.TEXT8 = 'Completed' then 'Completed' when T80629.TEXT8 in ('In Progress', 'New') then 'Packing notes' else 'Not generated' end = 'Completed' then T80629.NUMBER3 end ) as c2, case when T80629.TEXT8 = 'Completed' then 'Completed' when T80629.TEXT8 in ('In Progress', 'New') then 'Packing notes' else 'To be generated' end as c3, T80629.TEXT9 as c4, T80629.TEXT6 as c5, T80629.TEXT5 as c6, T80629.TEXT2 as c7, T80629.TEXT10 as c8, T80629.NUMBER1 as c9, T80629.DATE1 as c10, T5959.CUSTOMER_BUSINESS_UNIT_CODE as c11, T5959.CUSTOMER_BUSINESS_UNIT_NAME as c12, T5959.CUSTOMER_NUMBER as c13 from DIM_V_CUSTOMER T5959, FACT_V_REALTIME_CUSTOMER_DATA T80629 where ( T5959.DIMENSION_KEY = T80629.CUSTOMER and T5959.CUSTOMER_BUSINESS_UNIT_NAME = 'JHL Clacton-on-Sea' and T80629.DATASET = 12 and T5959.CUSTOMER_BUSINESS_UNIT_CODE >= '3000' and T80629.DATE1 in (select distinct D1.c1 as c1 from OBISUBWITH1 D1) ) group by T5959.CUSTOMER_NUMBER, T5959.CUSTOMER_BUSINESS_UNIT_CODE, T5959.CUSTOMER_BUSINESS_UNIT_NAME, T80629.TEXT2, T80629.TEXT5, T80629.TEXT6, T80629.TEXT9, T80629.TEXT10, T80629.DATE1, T80629.NUMBER1, case when T80629.TEXT8 = 'Completed' then 'Completed' when T80629.TEXT8 in ('In Progress', 'New') then 'Packing notes' else 'To be generated' end ), SAWITH4 AS (select distinct 2 as c1, D1.c10 as c2, D1.c9 as c3, D1.c8 as c4, D1.c7 as c5, D1.c6 as c6, D1.c5 as c7, D1.c4 as c8, D1.c11 as c9, D1.c12 as c10, D1.c13 as c11, D1.c3 as c12, NULL as c13, nvl(D1.c1 , 0) as c14, nvl(D1.c2 , 0) as c15, cast(NULL as DOUBLE PRECISION ) as c17, cast(NULL as DOUBLE PRECISION ) as c19 from SAWITH3 D1 where ( 0 < nvl(D1.c1 , 0) ) ), SAWITH5 AS (select sum(T80629.NUMBER3) as c1, sum(case when not case when T80629.TEXT8 = 'Completed' then 'Completed' when T80629.TEXT8 in ('In Progress', 'New') then 'Packing notes' else 'Not generated' end = 'Completed' then T80629.NUMBER3 end ) as c2, case when T80629.TEXT8 = 'Completed' then 'Completed' when T80629.TEXT8 in ('In Progress', 'New') then 'Packing notes' else 'To be generated' end as c3, T80629.TEXT9 as c4, T80629.TEXT6 as c5, T80629.TEXT5 as c6, T80629.TEXT2 as c7, T80629.TEXT10 as c8, T80629.NUMBER1 as c9, T80629.DATE1 as c10, T5959.CUSTOMER_BUSINESS_UNIT_CODE as c11, T5959.CUSTOMER_BUSINESS_UNIT_NAME as c12, T5959.CUSTOMER_NUMBER as c13 from DIM_V_CUSTOMER T5959, FACT_V_REALTIME_CUSTOMER_DATA T80629 where ( T5959.DIMENSION_KEY = T80629.CUSTOMER and T5959.CUSTOMER_BUSINESS_UNIT_NAME = 'JHL Clacton-on-Sea' and T80629.DATASET = 12 and T5959.CUSTOMER_BUSINESS_UNIT_CODE >= '3000' and T5959.CUSTOMER_BUSINESS_UNIT_NAME in (select distinct D1.c1 as c1 from OBISUBWITH0 D1) ) group by T5959.CUSTOMER_NUMBER, T5959.CUSTOMER_BUSINESS_UNIT_CODE, T5959.CUSTOMER_BUSINESS_UNIT_NAME, T80629.TEXT2, T80629.TEXT5, T80629.TEXT6, T80629.TEXT9, T80629.TEXT10, T80629.DATE1, T80629.NUMBER1, case when T80629.TEXT8 = 'Completed' then 'Completed' when T80629.TEXT8 in ('In Progress', 'New') then 'Packing notes' else 'To be generated' end ), SAWITH6 AS (select distinct 3 as c1, D1.c10 as c2, D1.c9 as c3, D1.c8 as c4, D1.c7 as c5, D1.c6 as c6, D1.c5 as c7, D1.c4 as c8, D1.c11 as c9, D1.c12 as c10, D1.c13 as c11, D1.c3 as c12, NULL as c13, nvl(D1.c1 , 0) as c14, nvl(D1.c2 , 0) as c15, cast(NULL as DOUBLE PRECISION ) as c16, cast(NULL as DOUBLE PRECISION ) as c18, cast(NULL as DOUBLE PRECISION ) as c20, cast(NULL as DOUBLE PRECISION ) as c21 from SAWITH5 D1 where ( 0 < nvl(D1.c1 , 0) ) ), SAWITH7 AS ((select D1.c1 as c1, D1.c2 as c2, D1.c3 as c3, D1.c4 as c4, D1.c5 as c5, D1.c6 as c6, D1.c7 as c7, D1.c8 as c8, D1.c9 as c9, D1.c10 as c10, D1.c11 as c11, D1.c12 as c12, D1.c13 as c13, D1.c14 as c14, D1.c15 as c15, D1.c16 as c16, D1.c17 as c17, sum(D1.c14) over (partition by D1.c10, D1.c2, D1.c4, D1.c8, D1.c12) as c18, D1.c19 as c19, D1.c20 as c20, sum(D1.c14) over (partition by D1.c10, D1.c4, D1.c8, D1.c12) as c21 from SAWITH1 D1 union all select distinct 1 as c1, D1.c9 as c2, D1.c8 as c3, D1.c7 as c4, D1.c6 as c5, D1.c5 as c6, D1.c4 as c7, D1.c3 as c8, D1.c10 as c9, D1.c11 as c10, D1.c12 as c11, D1.c2 as c12, NULL as c13, cast(NULL as DOUBLE PRECISION ) as c14, cast(NULL as DOUBLE PRECISION ) as c15, cast(NULL as DOUBLE PRECISION ) as c16, cast(NULL as DOUBLE PRECISION ) as c17, cast(NULL as DOUBLE PRECISION ) as c18, cast(NULL as DOUBLE PRECISION ) as c19, cast(NULL as DOUBLE PRECISION ) as c20, cast(NULL as DOUBLE PRECISION ) as c21 from SAWITH2 D1 where ( 0 < nvl(D1.c1 , 0) ) union all select D1.c1 as c1, D1.c2 as c2, D1.c3 as c3, D1.c4 as c4, D1.c5 as c5, D1.c6 as c6, D1.c7 as c7, D1.c8 as c8, D1.c9 as c9, D1.c10 as c10, D1.c11 as c11, D1.c12 as c12, D1.c13 as c13, D1.c14 as c14, D1.c15 as c15, sum(D1.c14) over (partition by D1.c10, D1.c2, D1.c3, D1.c4, D1.c8, D1.c12) as c16, D1.c17 as c17, sum(D1.c14) over (partition by D1.c10, D1.c2, D1.c4, D1.c8, D1.c12) as c18, D1.c19 as c19, sum(D1.c14) over (partition by D1.c10, D1.c3, D1.c4, D1.c8, D1.c12) as c20, sum(D1.c14) over (partition by D1.c10, D1.c4, D1.c8, D1.c12) as c21 from SAWITH4 D1 union all select D1.c1 as c1, D1.c2 as c2, D1.c3 as c3, D1.c4 as c4, D1.c5 as c5, D1.c6 as c6, D1.c7 as c7, D1.c8 as c8, D1.c9 as c9, D1.c10 as c10, D1.c11 as c11, D1.c12 as c12, D1.c13 as c13, D1.c14 as c14, D1.c15 as c15, D1.c16 as c16, sum(D1.c14) over (partition by D1.c10, D1.c9, D1.c2, D1.c4, D1.c8, D1.c12) as c17, D1.c18 as c18, sum(D1.c14) over (partition by D1.c10, D1.c9, D1.c2, D1.c4, D1.c8) as c19, D1.c20 as c20, D1.c21 as c21 from SAWITH6 D1)) select D1.c1 as c1, D1.c2 as c2, D1.c3 as c3, D1.c4 as c4, D1.c5 as c5, D1.c6 as c6, D1.c7 as c7, D1.c8 as c8, D1.c9 as c9, D1.c10 as c10, D1.c11 as c11, D1.c12 as c12, D1.c13 as c13, D1.c14 as c14, D1.c15 as c15, D1.c16 as c16, D1.c17 as c17, D1.c18 as c18, D1.c19 as c19, D1.c20 as c20, D1.c21 as c21 from ( select D1.c1 as c1, D1.c2 as c2, D1.c3 as c3, D1.c4 as c4, D1.c5 as c5, D1.c6 as c6, D1.c7 as c7, D1.c8 as c8, D1.c9 as c9, D1.c10 as c10, D1.c11 as c11, D1.c12 as c12, D1.c13 as c13, D1.c14 as c14, D1.c15 as c15, D1.c16 as c16, D1.c17 as c17, D1.c18 as c18, D1.c19 as c19, D1.c20 as c20, D1.c21 as c21 from SAWITH7 D1 order by c1, c10, c8, c4, c2, c12 ) D1 where rownum <= 5000001
3dbzmtf9ahvztmerge /* KSXM:OPTIM_DML_INF */ into sys.mon_mods_all$ m using dual on (m.obj# = :objn and (:pobjn = 0 or m.obj# = :pobjn or m.obj# in (select obj# from tabpart$ where bo# = :pobjn and obj# = :objn union all select obj# from tabcompart$ where bo# = :pobjn and obj# = :objn union all select tsp.obj# from tabsubpart$ tsp, tabcompart$ tcp where tsp.pobj# = tcp.obj# and (tcp.bo# = :pobjn or tcp.obj# = :pobjn) and tsp.obj# = :objn))) when matched then update set inserts = decode(:reset, 1, 0, inserts) + :ins, updates = decode(:reset, 1, 0, updates) + :upd, deletes = decode(:reset, 1, 0, deletes) + :del, flags = decode(:reset, 1, 0, flags - bitand(flags, :flag)) + :flag, drop_segments = decode(:reset, 1, 0, drop_segments) + :dropseg, timestamp = :time when NOT matched then insert (obj#, inserts, updates, deletes, timestamp, flags, drop_segments) values (:objn, :ins, :upd, :del, :time, :flag, :dropseg) where :ins != 0 or :upd != 0 or :del != 0 or :flag != 0 or :dropseg !=0
3dycdjz6vbw06WITH OBISUBWITH0 AS (select D1.c1 as c1 from (select D1.c1 as c1, Case when D1.c2 is not null then Rank() OVER ( ORDER BY D1.c2) end as c2 from (select distinct D1.c2 as c1, D1.c2 as c2, D1.c2 as c3 from (select sum(T80629.NUMBER3) as c1, T5959.CUSTOMER_BUSINESS_UNIT_NAME as c2 from DIM_V_CUSTOMER T5959, FACT_V_REALTIME_CUSTOMER_DATA T80629 where ( T5959.DIMENSION_KEY = T80629.CUSTOMER and T80629.DATASET = 12 and (T5959.CUSTOMER_BUSINESS_UNIT_CODE in ('0', '3040')) and T5959.CUSTOMER_BUSINESS_UNIT_CODE >= '3000' ) group by T5959.CUSTOMER_BUSINESS_UNIT_NAME having 0 < nvl(sum(T80629.NUMBER3) , 0) ) D1 ) D1 ) D1 where ( D1.c2 <= 1 ) ), OBISUBWITH1 AS (select D1.c1 as c1 from (select D1.c1 as c1, Case when D1.c2 is not null then Rank() OVER ( ORDER BY D1.c2) end as c2 from (select distinct D1.c2 as c1, D1.c2 as c2, D1.c2 as c3 from (select sum(T80629.NUMBER3) as c1, T80629.DATE1 as c2 from DIM_V_CUSTOMER T5959, FACT_V_REALTIME_CUSTOMER_DATA T80629 where ( T5959.DIMENSION_KEY = T80629.CUSTOMER and T80629.DATASET = 12 and (T5959.CUSTOMER_BUSINESS_UNIT_CODE in ('0', '3040')) and T5959.CUSTOMER_BUSINESS_UNIT_CODE >= '3000' ) group by T80629.DATE1 having 0 < nvl(sum(T80629.NUMBER3) , 0) ) D1 ) D1 ) D1 where ( D1.c2 <= 1 ) ), SAWITH0 AS (select sum(T80629.NUMBER3) as c1, sum(case when not case when T80629.TEXT8 = 'Completed' then 'Completed' when T80629.TEXT8 in ('In Progress', 'New') then 'Packing notes' else 'Not generated' end = 'Completed' then T80629.NUMBER3 end ) as c2, case when T80629.TEXT8 = 'Completed' then 'Completed' when T80629.TEXT8 in ('In Progress', 'New') then 'Packing notes' else 'To be generated' end as c3, T80629.TEXT9 as c4, T80629.TEXT6 as c5, T80629.TEXT5 as c6, T80629.TEXT2 as c7, T80629.TEXT10 as c8, T80629.NUMBER1 as c9, T80629.DATE1 as c10, T5959.CUSTOMER_BUSINESS_UNIT_CODE as c11, T5959.CUSTOMER_BUSINESS_UNIT_NAME as c12, T5959.CUSTOMER_NUMBER as c13 from DIM_V_CUSTOMER T5959, FACT_V_REALTIME_CUSTOMER_DATA T80629 where ( T5959.DIMENSION_KEY = T80629.CUSTOMER and T80629.DATASET = 12 and (T5959.CUSTOMER_BUSINESS_UNIT_CODE in ('0', '3040')) and T5959.CUSTOMER_BUSINESS_UNIT_CODE >= '3000' ) group by T5959.CUSTOMER_NUMBER, T5959.CUSTOMER_BUSINESS_UNIT_CODE, T5959.CUSTOMER_BUSINESS_UNIT_NAME, T80629.TEXT2, T80629.TEXT5, T80629.TEXT6, T80629.TEXT9, T80629.TEXT10, T80629.DATE1, T80629.NUMBER1, case when T80629.TEXT8 = 'Completed' then 'Completed' when T80629.TEXT8 in ('In Progress', 'New') then 'Packing notes' else 'To be generated' end ), SAWITH1 AS (select distinct 0 as c1, D1.c10 as c2, D1.c9 as c3, D1.c8 as c4, D1.c7 as c5, D1.c6 as c6, D1.c5 as c7, D1.c4 as c8, D1.c11 as c9, D1.c12 as c10, D1.c13 as c11, D1.c3 as c12, NULL as c13, nvl(D1.c1 , 0) as c14, nvl(D1.c2 , 0) as c15, cast(NULL as DOUBLE PRECISION ) as c16, cast(NULL as DOUBLE PRECISION ) as c17, cast(NULL as DOUBLE PRECISION ) as c19, cast(NULL as DOUBLE PRECISION ) as c20 from SAWITH0 D1 where ( 0 < nvl(D1.c1 , 0) ) ), SAWITH2 AS (select sum(T80629.NUMBER3) as c1, case when T80629.TEXT8 = 'Completed' then 'Completed' when T80629.TEXT8 in ('In Progress', 'New') then 'Packing notes' else 'To be generated' end as c2, T80629.TEXT9 as c3, T80629.TEXT6 as c4, T80629.TEXT5 as c5, T80629.TEXT2 as c6, T80629.TEXT10 as c7, T80629.NUMBER1 as c8, T80629.DATE1 as c9, T5959.CUSTOMER_BUSINESS_UNIT_CODE as c10, T5959.CUSTOMER_BUSINESS_UNIT_NAME as c11, T5959.CUSTOMER_NUMBER as c12 from DIM_V_CUSTOMER T5959, FACT_V_REALTIME_CUSTOMER_DATA T80629 where ( T5959.DIMENSION_KEY = T80629.CUSTOMER and T80629.DATASET = 12 and (T5959.CUSTOMER_BUSINESS_UNIT_CODE in ('0', '3040')) and T5959.CUSTOMER_BUSINESS_UNIT_CODE >= '3000' ) group by T5959.CUSTOMER_NUMBER, T5959.CUSTOMER_BUSINESS_UNIT_CODE, T5959.CUSTOMER_BUSINESS_UNIT_NAME, T80629.TEXT2, T80629.TEXT5, T80629.TEXT6, T80629.TEXT9, T80629.TEXT10, T80629.DATE1, T80629.NUMBER1, case when T80629.TEXT8 = 'Completed' then 'Completed' when T80629.TEXT8 in ('In Progress', 'New') then 'Packing notes' else 'To be generated' end ), SAWITH3 AS (select sum(T80629.NUMBER3) as c1, sum(case when not case when T80629.TEXT8 = 'Completed' then 'Completed' when T80629.TEXT8 in ('In Progress', 'New') then 'Packing notes' else 'Not generated' end = 'Completed' then T80629.NUMBER3 end ) as c2, case when T80629.TEXT8 = 'Completed' then 'Completed' when T80629.TEXT8 in ('In Progress', 'New') then 'Packing notes' else 'To be generated' end as c3, T80629.TEXT9 as c4, T80629.TEXT6 as c5, T80629.TEXT5 as c6, T80629.TEXT2 as c7, T80629.TEXT10 as c8, T80629.NUMBER1 as c9, T80629.DATE1 as c10, T5959.CUSTOMER_BUSINESS_UNIT_CODE as c11, T5959.CUSTOMER_BUSINESS_UNIT_NAME as c12, T5959.CUSTOMER_NUMBER as c13 from DIM_V_CUSTOMER T5959, FACT_V_REALTIME_CUSTOMER_DATA T80629 where ( T5959.DIMENSION_KEY = T80629.CUSTOMER and T80629.DATASET = 12 and T5959.CUSTOMER_BUSINESS_UNIT_CODE >= '3000' and (T5959.CUSTOMER_BUSINESS_UNIT_CODE in ('0', '3040')) and T80629.DATE1 in (select distinct D1.c1 as c1 from OBISUBWITH1 D1) ) group by T5959.CUSTOMER_NUMBER, T5959.CUSTOMER_BUSINESS_UNIT_CODE, T5959.CUSTOMER_BUSINESS_UNIT_NAME, T80629.TEXT2, T80629.TEXT5, T80629.TEXT6, T80629.TEXT9, T80629.TEXT10, T80629.DATE1, T80629.NUMBER1, case when T80629.TEXT8 = 'Completed' then 'Completed' when T80629.TEXT8 in ('In Progress', 'New') then 'Packing notes' else 'To be generated' end ), SAWITH4 AS (select distinct 2 as c1, D1.c10 as c2, D1.c9 as c3, D1.c8 as c4, D1.c7 as c5, D1.c6 as c6, D1.c5 as c7, D1.c4 as c8, D1.c11 as c9, D1.c12 as c10, D1.c13 as c11, D1.c3 as c12, NULL as c13, nvl(D1.c1 , 0) as c14, nvl(D1.c2 , 0) as c15, cast(NULL as DOUBLE PRECISION ) as c17, cast(NULL as DOUBLE PRECISION ) as c19 from SAWITH3 D1 where ( 0 < nvl(D1.c1 , 0) ) ), SAWITH5 AS (select sum(T80629.NUMBER3) as c1, sum(case when not case when T80629.TEXT8 = 'Completed' then 'Completed' when T80629.TEXT8 in ('In Progress', 'New') then 'Packing notes' else 'Not generated' end = 'Completed' then T80629.NUMBER3 end ) as c2, case when T80629.TEXT8 = 'Completed' then 'Completed' when T80629.TEXT8 in ('In Progress', 'New') then 'Packing notes' else 'To be generated' end as c3, T80629.TEXT9 as c4, T80629.TEXT6 as c5, T80629.TEXT5 as c6, T80629.TEXT2 as c7, T80629.TEXT10 as c8, T80629.NUMBER1 as c9, T80629.DATE1 as c10, T5959.CUSTOMER_BUSINESS_UNIT_CODE as c11, T5959.CUSTOMER_BUSINESS_UNIT_NAME as c12, T5959.CUSTOMER_NUMBER as c13 from DIM_V_CUSTOMER T5959, FACT_V_REALTIME_CUSTOMER_DATA T80629 where ( T5959.DIMENSION_KEY = T80629.CUSTOMER and T80629.DATASET = 12 and T5959.CUSTOMER_BUSINESS_UNIT_CODE >= '3000' and (T5959.CUSTOMER_BUSINESS_UNIT_CODE in ('0', '3040')) and T5959.CUSTOMER_BUSINESS_UNIT_NAME in (select distinct D1.c1 as c1 from OBISUBWITH0 D1) ) group by T5959.CUSTOMER_NUMBER, T5959.CUSTOMER_BUSINESS_UNIT_CODE, T5959.CUSTOMER_BUSINESS_UNIT_NAME, T80629.TEXT2, T80629.TEXT5, T80629.TEXT6, T80629.TEXT9, T80629.TEXT10, T80629.DATE1, T80629.NUMBER1, case when T80629.TEXT8 = 'Completed' then 'Completed' when T80629.TEXT8 in ('In Progress', 'New') then 'Packing notes' else 'To be generated' end ), SAWITH6 AS (select distinct 3 as c1, D1.c10 as c2, D1.c9 as c3, D1.c8 as c4, D1.c7 as c5, D1.c6 as c6, D1.c5 as c7, D1.c4 as c8, D1.c11 as c9, D1.c12 as c10, D1.c13 as c11, D1.c3 as c12, NULL as c13, nvl(D1.c1 , 0) as c14, nvl(D1.c2 , 0) as c15, cast(NULL as DOUBLE PRECISION ) as c16, cast(NULL as DOUBLE PRECISION ) as c18, cast(NULL as DOUBLE PRECISION ) as c20, cast(NULL as DOUBLE PRECISION ) as c21 from SAWITH5 D1 where ( 0 < nvl(D1.c1 , 0) ) ), SAWITH7 AS ((select D1.c1 as c1, D1.c2 as c2, D1.c3 as c3, D1.c4 as c4, D1.c5 as c5, D1.c6 as c6, D1.c7 as c7, D1.c8 as c8, D1.c9 as c9, D1.c10 as c10, D1.c11 as c11, D1.c12 as c12, D1.c13 as c13, D1.c14 as c14, D1.c15 as c15, D1.c16 as c16, D1.c17 as c17, sum(D1.c14) over (partition by D1.c10, D1.c2, D1.c4, D1.c8, D1.c12) as c18, D1.c19 as c19, D1.c20 as c20, sum(D1.c14) over (partition by D1.c10, D1.c4, D1.c8, D1.c12) as c21 from SAWITH1 D1 union all select distinct 1 as c1, D1.c9 as c2, D1.c8 as c3, D1.c7 as c4, D1.c6 as c5, D1.c5 as c6, D1.c4 as c7, D1.c3 as c8, D1.c10 as c9, D1.c11 as c10, D1.c12 as c11, D1.c2 as c12, NULL as c13, cast(NULL as DOUBLE PRECISION ) as c14, cast(NULL as DOUBLE PRECISION ) as c15, cast(NULL as DOUBLE PRECISION ) as c16, cast(NULL as DOUBLE PRECISION ) as c17, cast(NULL as DOUBLE PRECISION ) as c18, cast(NULL as DOUBLE PRECISION ) as c19, cast(NULL as DOUBLE PRECISION ) as c20, cast(NULL as DOUBLE PRECISION ) as c21 from SAWITH2 D1 where ( 0 < nvl(D1.c1 , 0) ) union all select D1.c1 as c1, D1.c2 as c2, D1.c3 as c3, D1.c4 as c4, D1.c5 as c5, D1.c6 as c6, D1.c7 as c7, D1.c8 as c8, D1.c9 as c9, D1.c10 as c10, D1.c11 as c11, D1.c12 as c12, D1.c13 as c13, D1.c14 as c14, D1.c15 as c15, sum(D1.c14) over (partition by D1.c10, D1.c2, D1.c3, D1.c4, D1.c8, D1.c12) as c16, D1.c17 as c17, sum(D1.c14) over (partition by D1.c10, D1.c2, D1.c4, D1.c8, D1.c12) as c18, D1.c19 as c19, sum(D1.c14) over (partition by D1.c10, D1.c3, D1.c4, D1.c8, D1.c12) as c20, sum(D1.c14) over (partition by D1.c10, D1.c4, D1.c8, D1.c12) as c21 from SAWITH4 D1 union all select D1.c1 as c1, D1.c2 as c2, D1.c3 as c3, D1.c4 as c4, D1.c5 as c5, D1.c6 as c6, D1.c7 as c7, D1.c8 as c8, D1.c9 as c9, D1.c10 as c10, D1.c11 as c11, D1.c12 as c12, D1.c13 as c13, D1.c14 as c14, D1.c15 as c15, D1.c16 as c16, sum(D1.c14) over (partition by D1.c10, D1.c9, D1.c2, D1.c4, D1.c8, D1.c12) as c17, D1.c18 as c18, sum(D1.c14) over (partition by D1.c10, D1.c9, D1.c2, D1.c4, D1.c8) as c19, D1.c20 as c20, D1.c21 as c21 from SAWITH6 D1)) select D1.c1 as c1, D1.c2 as c2, D1.c3 as c3, D1.c4 as c4, D1.c5 as c5, D1.c6 as c6, D1.c7 as c7, D1.c8 as c8, D1.c9 as c9, D1.c10 as c10, D1.c11 as c11, D1.c12 as c12, D1.c13 as c13, D1.c14 as c14, D1.c15 as c15, D1.c16 as c16, D1.c17 as c17, D1.c18 as c18, D1.c19 as c19, D1.c20 as c20, D1.c21 as c21 from ( select D1.c1 as c1, D1.c2 as c2, D1.c3 as c3, D1.c4 as c4, D1.c5 as c5, D1.c6 as c6, D1.c7 as c7, D1.c8 as c8, D1.c9 as c9, D1.c10 as c10, D1.c11 as c11, D1.c12 as c12, D1.c13 as c13, D1.c14 as c14, D1.c15 as c15, D1.c16 as c16, D1.c17 as c17, D1.c18 as c18, D1.c19 as c19, D1.c20 as c20, D1.c21 as c21 from SAWITH7 D1 order by c1, c10, c8, c4, c2, c12 ) D1 where rownum <= 5000001
40rmtbaz0j6mkinsert into FACT_REALTIME_CUSTOMER_DATA select * from FACT_V_REALTIME_CUSTOMER_DTA42
422ydn0svdm6tWITH OBISUBWITH0 AS (select D1.c1 as c1 from (select D1.c1 as c1, Case when D1.c2 is not null then Rank() OVER ( ORDER BY D1.c2) end as c2 from (select distinct D1.c2 as c1, D1.c2 as c2, D1.c2 as c3 from (select sum(T80629.NUMBER3) as c1, T5959.CUSTOMER_BUSINESS_UNIT_NAME as c2 from DIM_V_CUSTOMER T5959, FACT_V_REALTIME_CUSTOMER_DATA T80629 where ( T5959.DIMENSION_KEY = T80629.CUSTOMER and T80629.DATASET = 12 and T5959.CUSTOMER_BUSINESS_UNIT_CODE >= '3000' ) group by T5959.CUSTOMER_BUSINESS_UNIT_NAME having 0 < nvl(sum(T80629.NUMBER3) , 0) ) D1 ) D1 ) D1 where ( D1.c2 <= 1 ) ), OBISUBWITH1 AS (select D1.c1 as c1 from (select D1.c1 as c1, Case when D1.c2 is not null then Rank() OVER ( ORDER BY D1.c2) end as c2 from (select distinct D1.c2 as c1, D1.c2 as c2, D1.c2 as c3 from (select sum(T80629.NUMBER3) as c1, T80629.DATE1 as c2 from DIM_V_CUSTOMER T5959, FACT_V_REALTIME_CUSTOMER_DATA T80629 where ( T5959.DIMENSION_KEY = T80629.CUSTOMER and T80629.DATASET = 12 and T5959.CUSTOMER_BUSINESS_UNIT_CODE >= '3000' ) group by T80629.DATE1 having 0 < nvl(sum(T80629.NUMBER3) , 0) ) D1 ) D1 ) D1 where ( D1.c2 <= 1 ) ), SAWITH0 AS (select sum(T80629.NUMBER3) as c1, sum(case when not case when T80629.TEXT8 = 'Completed' then 'Completed' when T80629.TEXT8 in ('In Progress', 'New') then 'Packing notes' else 'Not generated' end = 'Completed' then T80629.NUMBER3 end ) as c2, case when T80629.TEXT8 = 'Completed' then 'Completed' when T80629.TEXT8 in ('In Progress', 'New') then 'Packing notes' else 'To be generated' end as c3, T80629.TEXT9 as c4, T80629.TEXT6 as c5, T80629.TEXT5 as c6, T80629.TEXT2 as c7, T80629.TEXT10 as c8, T80629.NUMBER1 as c9, T80629.DATE1 as c10, T5959.CUSTOMER_BUSINESS_UNIT_CODE as c11, T5959.CUSTOMER_BUSINESS_UNIT_NAME as c12, T5959.CUSTOMER_NUMBER as c13 from DIM_V_CUSTOMER T5959, FACT_V_REALTIME_CUSTOMER_DATA T80629 where ( T5959.DIMENSION_KEY = T80629.CUSTOMER and T80629.DATASET = 12 and T5959.CUSTOMER_BUSINESS_UNIT_CODE >= '3000' ) group by T5959.CUSTOMER_NUMBER, T5959.CUSTOMER_BUSINESS_UNIT_CODE, T5959.CUSTOMER_BUSINESS_UNIT_NAME, T80629.TEXT2, T80629.TEXT5, T80629.TEXT6, T80629.TEXT9, T80629.TEXT10, T80629.DATE1, T80629.NUMBER1, case when T80629.TEXT8 = 'Completed' then 'Completed' when T80629.TEXT8 in ('In Progress', 'New') then 'Packing notes' else 'To be generated' end ), SAWITH1 AS (select distinct 0 as c1, D1.c10 as c2, D1.c9 as c3, D1.c8 as c4, D1.c7 as c5, D1.c6 as c6, D1.c5 as c7, D1.c4 as c8, D1.c11 as c9, D1.c12 as c10, D1.c13 as c11, D1.c3 as c12, NULL as c13, nvl(D1.c1 , 0) as c14, nvl(D1.c2 , 0) as c15, cast(NULL as DOUBLE PRECISION ) as c16, cast(NULL as DOUBLE PRECISION ) as c17, cast(NULL as DOUBLE PRECISION ) as c19, cast(NULL as DOUBLE PRECISION ) as c20 from SAWITH0 D1 where ( 0 < nvl(D1.c1 , 0) ) ), SAWITH2 AS (select sum(T80629.NUMBER3) as c1, case when T80629.TEXT8 = 'Completed' then 'Completed' when T80629.TEXT8 in ('In Progress', 'New') then 'Packing notes' else 'To be generated' end as c2, T80629.TEXT9 as c3, T80629.TEXT6 as c4, T80629.TEXT5 as c5, T80629.TEXT2 as c6, T80629.TEXT10 as c7, T80629.NUMBER1 as c8, T80629.DATE1 as c9, T5959.CUSTOMER_BUSINESS_UNIT_CODE as c10, T5959.CUSTOMER_BUSINESS_UNIT_NAME as c11, T5959.CUSTOMER_NUMBER as c12 from DIM_V_CUSTOMER T5959, FACT_V_REALTIME_CUSTOMER_DATA T80629 where ( T5959.DIMENSION_KEY = T80629.CUSTOMER and T80629.DATASET = 12 and T5959.CUSTOMER_BUSINESS_UNIT_CODE >= '3000' ) group by T5959.CUSTOMER_NUMBER, T5959.CUSTOMER_BUSINESS_UNIT_CODE, T5959.CUSTOMER_BUSINESS_UNIT_NAME, T80629.TEXT2, T80629.TEXT5, T80629.TEXT6, T80629.TEXT9, T80629.TEXT10, T80629.DATE1, T80629.NUMBER1, case when T80629.TEXT8 = 'Completed' then 'Completed' when T80629.TEXT8 in ('In Progress', 'New') then 'Packing notes' else 'To be generated' end ), SAWITH3 AS (select sum(T80629.NUMBER3) as c1, sum(case when not case when T80629.TEXT8 = 'Completed' then 'Completed' when T80629.TEXT8 in ('In Progress', 'New') then 'Packing notes' else 'Not generated' end = 'Completed' then T80629.NUMBER3 end ) as c2, case when T80629.TEXT8 = 'Completed' then 'Completed' when T80629.TEXT8 in ('In Progress', 'New') then 'Packing notes' else 'To be generated' end as c3, T80629.TEXT9 as c4, T80629.TEXT6 as c5, T80629.TEXT5 as c6, T80629.TEXT2 as c7, T80629.TEXT10 as c8, T80629.NUMBER1 as c9, T80629.DATE1 as c10, T5959.CUSTOMER_BUSINESS_UNIT_CODE as c11, T5959.CUSTOMER_BUSINESS_UNIT_NAME as c12, T5959.CUSTOMER_NUMBER as c13 from DIM_V_CUSTOMER T5959, FACT_V_REALTIME_CUSTOMER_DATA T80629 where ( T5959.DIMENSION_KEY = T80629.CUSTOMER and T80629.DATASET = 12 and T5959.CUSTOMER_BUSINESS_UNIT_CODE >= '3000' and T80629.DATE1 in (select distinct D1.c1 as c1 from OBISUBWITH1 D1) ) group by T5959.CUSTOMER_NUMBER, T5959.CUSTOMER_BUSINESS_UNIT_CODE, T5959.CUSTOMER_BUSINESS_UNIT_NAME, T80629.TEXT2, T80629.TEXT5, T80629.TEXT6, T80629.TEXT9, T80629.TEXT10, T80629.DATE1, T80629.NUMBER1, case when T80629.TEXT8 = 'Completed' then 'Completed' when T80629.TEXT8 in ('In Progress', 'New') then 'Packing notes' else 'To be generated' end ), SAWITH4 AS (select distinct 2 as c1, D1.c10 as c2, D1.c9 as c3, D1.c8 as c4, D1.c7 as c5, D1.c6 as c6, D1.c5 as c7, D1.c4 as c8, D1.c11 as c9, D1.c12 as c10, D1.c13 as c11, D1.c3 as c12, NULL as c13, nvl(D1.c1 , 0) as c14, nvl(D1.c2 , 0) as c15, cast(NULL as DOUBLE PRECISION ) as c17, cast(NULL as DOUBLE PRECISION ) as c19 from SAWITH3 D1 where ( 0 < nvl(D1.c1 , 0) ) ), SAWITH5 AS (select sum(T80629.NUMBER3) as c1, sum(case when not case when T80629.TEXT8 = 'Completed' then 'Completed' when T80629.TEXT8 in ('In Progress', 'New') then 'Packing notes' else 'Not generated' end = 'Completed' then T80629.NUMBER3 end ) as c2, case when T80629.TEXT8 = 'Completed' then 'Completed' when T80629.TEXT8 in ('In Progress', 'New') then 'Packing notes' else 'To be generated' end as c3, T80629.TEXT9 as c4, T80629.TEXT6 as c5, T80629.TEXT5 as c6, T80629.TEXT2 as c7, T80629.TEXT10 as c8, T80629.NUMBER1 as c9, T80629.DATE1 as c10, T5959.CUSTOMER_BUSINESS_UNIT_CODE as c11, T5959.CUSTOMER_BUSINESS_UNIT_NAME as c12, T5959.CUSTOMER_NUMBER as c13 from DIM_V_CUSTOMER T5959, FACT_V_REALTIME_CUSTOMER_DATA T80629 where ( T5959.DIMENSION_KEY = T80629.CUSTOMER and T80629.DATASET = 12 and T5959.CUSTOMER_BUSINESS_UNIT_CODE >= '3000' and T5959.CUSTOMER_BUSINESS_UNIT_NAME in (select distinct D1.c1 as c1 from OBISUBWITH0 D1) ) group by T5959.CUSTOMER_NUMBER, T5959.CUSTOMER_BUSINESS_UNIT_CODE, T5959.CUSTOMER_BUSINESS_UNIT_NAME, T80629.TEXT2, T80629.TEXT5, T80629.TEXT6, T80629.TEXT9, T80629.TEXT10, T80629.DATE1, T80629.NUMBER1, case when T80629.TEXT8 = 'Completed' then 'Completed' when T80629.TEXT8 in ('In Progress', 'New') then 'Packing notes' else 'To be generated' end ), SAWITH6 AS (select distinct 3 as c1, D1.c10 as c2, D1.c9 as c3, D1.c8 as c4, D1.c7 as c5, D1.c6 as c6, D1.c5 as c7, D1.c4 as c8, D1.c11 as c9, D1.c12 as c10, D1.c13 as c11, D1.c3 as c12, NULL as c13, nvl(D1.c1 , 0) as c14, nvl(D1.c2 , 0) as c15, cast(NULL as DOUBLE PRECISION ) as c16, cast(NULL as DOUBLE PRECISION ) as c18, cast(NULL as DOUBLE PRECISION ) as c20, cast(NULL as DOUBLE PRECISION ) as c21 from SAWITH5 D1 where ( 0 < nvl(D1.c1 , 0) ) ), SAWITH7 AS ((select D1.c1 as c1, D1.c2 as c2, D1.c3 as c3, D1.c4 as c4, D1.c5 as c5, D1.c6 as c6, D1.c7 as c7, D1.c8 as c8, D1.c9 as c9, D1.c10 as c10, D1.c11 as c11, D1.c12 as c12, D1.c13 as c13, D1.c14 as c14, D1.c15 as c15, D1.c16 as c16, D1.c17 as c17, sum(D1.c14) over (partition by D1.c10, D1.c2, D1.c4, D1.c8, D1.c12) as c18, D1.c19 as c19, D1.c20 as c20, sum(D1.c14) over (partition by D1.c10, D1.c4, D1.c8, D1.c12) as c21 from SAWITH1 D1 union all select distinct 1 as c1, D1.c9 as c2, D1.c8 as c3, D1.c7 as c4, D1.c6 as c5, D1.c5 as c6, D1.c4 as c7, D1.c3 as c8, D1.c10 as c9, D1.c11 as c10, D1.c12 as c11, D1.c2 as c12, NULL as c13, cast(NULL as DOUBLE PRECISION ) as c14, cast(NULL as DOUBLE PRECISION ) as c15, cast(NULL as DOUBLE PRECISION ) as c16, cast(NULL as DOUBLE PRECISION ) as c17, cast(NULL as DOUBLE PRECISION ) as c18, cast(NULL as DOUBLE PRECISION ) as c19, cast(NULL as DOUBLE PRECISION ) as c20, cast(NULL as DOUBLE PRECISION ) as c21 from SAWITH2 D1 where ( 0 < nvl(D1.c1 , 0) ) union all select D1.c1 as c1, D1.c2 as c2, D1.c3 as c3, D1.c4 as c4, D1.c5 as c5, D1.c6 as c6, D1.c7 as c7, D1.c8 as c8, D1.c9 as c9, D1.c10 as c10, D1.c11 as c11, D1.c12 as c12, D1.c13 as c13, D1.c14 as c14, D1.c15 as c15, sum(D1.c14) over (partition by D1.c10, D1.c2, D1.c3, D1.c4, D1.c8, D1.c12) as c16, D1.c17 as c17, sum(D1.c14) over (partition by D1.c10, D1.c2, D1.c4, D1.c8, D1.c12) as c18, D1.c19 as c19, sum(D1.c14) over (partition by D1.c10, D1.c3, D1.c4, D1.c8, D1.c12) as c20, sum(D1.c14) over (partition by D1.c10, D1.c4, D1.c8, D1.c12) as c21 from SAWITH4 D1 union all select D1.c1 as c1, D1.c2 as c2, D1.c3 as c3, D1.c4 as c4, D1.c5 as c5, D1.c6 as c6, D1.c7 as c7, D1.c8 as c8, D1.c9 as c9, D1.c10 as c10, D1.c11 as c11, D1.c12 as c12, D1.c13 as c13, D1.c14 as c14, D1.c15 as c15, D1.c16 as c16, sum(D1.c14) over (partition by D1.c10, D1.c9, D1.c2, D1.c4, D1.c8, D1.c12) as c17, D1.c18 as c18, sum(D1.c14) over (partition by D1.c10, D1.c9, D1.c2, D1.c4, D1.c8) as c19, D1.c20 as c20, D1.c21 as c21 from SAWITH6 D1)) select D1.c1 as c1, D1.c2 as c2, D1.c3 as c3, D1.c4 as c4, D1.c5 as c5, D1.c6 as c6, D1.c7 as c7, D1.c8 as c8, D1.c9 as c9, D1.c10 as c10, D1.c11 as c11, D1.c12 as c12, D1.c13 as c13, D1.c14 as c14, D1.c15 as c15, D1.c16 as c16, D1.c17 as c17, D1.c18 as c18, D1.c19 as c19, D1.c20 as c20, D1.c21 as c21 from ( select D1.c1 as c1, D1.c2 as c2, D1.c3 as c3, D1.c4 as c4, D1.c5 as c5, D1.c6 as c6, D1.c7 as c7, D1.c8 as c8, D1.c9 as c9, D1.c10 as c10, D1.c11 as c11, D1.c12 as c12, D1.c13 as c13, D1.c14 as c14, D1.c15 as c15, D1.c16 as c16, D1.c17 as c17, D1.c18 as c18, D1.c19 as c19, D1.c20 as c20, D1.c21 as c21 from SAWITH7 D1 order by c1, c10, c8, c4, c2, c12 ) D1 where rownum <= 5000001
4fucqazcnbk49WITH OBISUBWITH0 AS (select D1.c1 as c1 from (select D1.c1 as c1, Case when D1.c2 is not null then Rank() OVER ( ORDER BY D1.c2) end as c2 from (select distinct D1.c2 as c1, D1.c2 as c2, D1.c2 as c3 from (select sum(T80629.NUMBER3) as c1, T5959.CUSTOMER_BUSINESS_UNIT_NAME as c2 from DIM_V_CUSTOMER T5959, FACT_V_REALTIME_CUSTOMER_DATA T80629 where ( T5959.DIMENSION_KEY = T80629.CUSTOMER and T80629.DATASET = 12 and (T5959.CUSTOMER_BUSINESS_UNIT_CODE in ('0', '3010')) and T5959.CUSTOMER_BUSINESS_UNIT_CODE >= '3000' ) group by T5959.CUSTOMER_BUSINESS_UNIT_NAME having 0 < nvl(sum(T80629.NUMBER3) , 0) ) D1 ) D1 ) D1 where ( D1.c2 <= 1 ) ), OBISUBWITH1 AS (select D1.c1 as c1 from (select D1.c2 as c1, Case when D1.c3 is not null then Rank() OVER ( PARTITION BY D1.c1 ORDER BY D1.c3) end as c2 from (select distinct D1.c2 as c1, D1.c3 as c2, D1.c3 as c3, D1.c3 as c4 from (select sum(T80629.NUMBER3) as c1, T5959.CUSTOMER_BUSINESS_UNIT_NAME as c2, T5959.CUSTOMER_NUMBER as c3 from DIM_V_CUSTOMER T5959, FACT_V_REALTIME_CUSTOMER_DATA T80629 where ( T5959.DIMENSION_KEY = T80629.CUSTOMER and T80629.DATASET = 12 and (T5959.CUSTOMER_BUSINESS_UNIT_CODE in ('0', '3010')) and T5959.CUSTOMER_BUSINESS_UNIT_CODE >= '3000' ) group by T5959.CUSTOMER_NUMBER, T5959.CUSTOMER_BUSINESS_UNIT_NAME having 0 < nvl(sum(T80629.NUMBER3) , 0) ) D1 ) D1 ) D1 where ( D1.c2 <= 1 ) ), OBISUBWITH2 AS (select D1.c1 as c1 from (select D1.c1 as c1, Case when D1.c2 is not null then Rank() OVER ( ORDER BY D1.c2) end as c2 from (select distinct D1.c2 as c1, D1.c2 as c2, D1.c2 as c3 from (select sum(T80629.NUMBER3) as c1, T80629.DATE1 as c2 from DIM_V_CUSTOMER T5959, FACT_V_REALTIME_CUSTOMER_DATA T80629 where ( T5959.DIMENSION_KEY = T80629.CUSTOMER and T80629.DATASET = 12 and (T5959.CUSTOMER_BUSINESS_UNIT_CODE in ('0', '3010')) and T5959.CUSTOMER_BUSINESS_UNIT_CODE >= '3000' ) group by T80629.DATE1 having 0 < nvl(sum(T80629.NUMBER3) , 0) ) D1 ) D1 ) D1 where ( D1.c2 <= 1 ) ), SAWITH0 AS (select sum(T80629.NUMBER3) as c1, sum(case when not case when T80629.TEXT8 = 'Completed' then 'Completed' when T80629.TEXT8 in ('In Progress', 'New') then 'Packing notes' else 'Not generated' end = 'Completed' then T80629.NUMBER3 end ) as c2, case when T80629.TEXT8 = 'Completed' then 'Completed' when T80629.TEXT8 in ('In Progress', 'New') then 'Packing notes' else 'To be generated' end as c3, T80629.TEXT9 as c4, T80629.TEXT6 as c5, T80629.TEXT5 as c6, T80629.TEXT2 as c7, T80629.TEXT10 as c8, T80629.NUMBER1 as c9, T80629.DATE1 as c10, T5959.CUSTOMER_BUSINESS_UNIT_CODE as c11, T5959.CUSTOMER_BUSINESS_UNIT_NAME as c12, T5959.CUSTOMER_NUMBER as c13 from DIM_V_CUSTOMER T5959, FACT_V_REALTIME_CUSTOMER_DATA T80629 where ( T5959.DIMENSION_KEY = T80629.CUSTOMER and T80629.DATASET = 12 and (T5959.CUSTOMER_BUSINESS_UNIT_CODE in ('0', '3010')) and T5959.CUSTOMER_BUSINESS_UNIT_CODE >= '3000' ) group by T5959.CUSTOMER_NUMBER, T5959.CUSTOMER_BUSINESS_UNIT_CODE, T5959.CUSTOMER_BUSINESS_UNIT_NAME, T80629.TEXT2, T80629.TEXT5, T80629.TEXT6, T80629.TEXT9, T80629.TEXT10, T80629.DATE1, T80629.NUMBER1, case when T80629.TEXT8 = 'Completed' then 'Completed' when T80629.TEXT8 in ('In Progress', 'New') then 'Packing notes' else 'To be generated' end ), SAWITH1 AS (select distinct 0 as c1, D1.c10 as c2, D1.c9 as c3, D1.c8 as c4, D1.c7 as c5, D1.c6 as c6, D1.c5 as c7, D1.c4 as c8, D1.c11 as c9, D1.c12 as c10, NULL as c11, D1.c13 as c12, D1.c3 as c13, NULL as c14, nvl(D1.c1 , 0) as c15, nvl(D1.c2 , 0) as c16, cast(NULL as DOUBLE PRECISION ) as c17, cast(NULL as DOUBLE PRECISION ) as c19, cast(NULL as DOUBLE PRECISION ) as c20, cast(NULL as DOUBLE PRECISION ) as c21, cast(NULL as DOUBLE PRECISION ) as c22, cast(NULL as DOUBLE PRECISION ) as c24, cast(NULL as DOUBLE PRECISION ) as c25, cast(NULL as DOUBLE PRECISION ) as c26 from SAWITH0 D1 where ( 0 < nvl(D1.c1 , 0) ) ), SAWITH2 AS (select sum(T80629.NUMBER3) as c1, case when T80629.TEXT8 = 'Completed' then 'Completed' when T80629.TEXT8 in ('In Progress', 'New') then 'Packing notes' else 'To be generated' end as c2, T80629.TEXT9 as c3, T80629.TEXT6 as c4, T80629.TEXT5 as c5, T80629.TEXT2 as c6, T80629.TEXT10 as c7, T80629.NUMBER1 as c8, T80629.DATE1 as c9, T5959.CUSTOMER_BUSINESS_UNIT_CODE as c10, T5959.CUSTOMER_BUSINESS_UNIT_NAME as c11, T5959.CUSTOMER_NUMBER as c12 from DIM_V_CUSTOMER T5959, FACT_V_REALTIME_CUSTOMER_DATA T80629 where ( T5959.DIMENSION_KEY = T80629.CUSTOMER and T80629.DATASET = 12 and (T5959.CUSTOMER_BUSINESS_UNIT_CODE in ('0', '3010')) and T5959.CUSTOMER_BUSINESS_UNIT_CODE >= '3000' ) group by T5959.CUSTOMER_NUMBER, T5959.CUSTOMER_BUSINESS_UNIT_CODE, T5959.CUSTOMER_BUSINESS_UNIT_NAME, T80629.TEXT2, T80629.TEXT5, T80629.TEXT6, T80629.TEXT9, T80629.TEXT10, T80629.DATE1, T80629.NUMBER1, case when T80629.TEXT8 = 'Completed' then 'Completed' when T80629.TEXT8 in ('In Progress', 'New') then 'Packing notes' else 'To be generated' end ), SAWITH3 AS (select sum(T80629.NUMBER3) as c1, sum(case when not case when T80629.TEXT8 = 'Completed' then 'Completed' when T80629.TEXT8 in ('In Progress', 'New') then 'Packing notes' else 'Not generated' end = 'Completed' then T80629.NUMBER3 end ) as c2, case when T80629.TEXT8 = 'Completed' then 'Completed' when T80629.TEXT8 in ('In Progress', 'New') then 'Packing notes' else 'To be generated' end as c3, T80629.TEXT9 as c4, T80629.TEXT6 as c5, T80629.TEXT5 as c6, T80629.TEXT2 as c7, T80629.TEXT10 as c8, T80629.NUMBER1 as c9, T80629.DATE1 as c10, T5959.CUSTOMER_BUSINESS_UNIT_CODE as c11, T5959.CUSTOMER_BUSINESS_UNIT_NAME as c12, T5959.CUSTOMER_NUMBER as c13 from DIM_V_CUSTOMER T5959, FACT_V_REALTIME_CUSTOMER_DATA T80629 where ( T5959.DIMENSION_KEY = T80629.CUSTOMER and T80629.DATASET = 12 and T5959.CUSTOMER_BUSINESS_UNIT_CODE >= '3000' and (T5959.CUSTOMER_BUSINESS_UNIT_CODE in ('0', '3010')) and T80629.DATE1 in (select distinct D1.c1 as c1 from OBISUBWITH2 D1) ) group by T5959.CUSTOMER_NUMBER, T5959.CUSTOMER_BUSINESS_UNIT_CODE, T5959.CUSTOMER_BUSINESS_UNIT_NAME, T80629.TEXT2, T80629.TEXT5, T80629.TEXT6, T80629.TEXT9, T80629.TEXT10, T80629.DATE1, T80629.NUMBER1, case when T80629.TEXT8 = 'Completed' then 'Completed' when T80629.TEXT8 in ('In Progress', 'New') then 'Packing notes' else 'To be generated' end ), SAWITH4 AS (select distinct 2 as c1, D1.c10 as c2, D1.c9 as c3, D1.c8 as c4, D1.c7 as c5, D1.c6 as c6, D1.c5 as c7, D1.c4 as c8, D1.c11 as c9, D1.c12 as c10, NULL as c11, D1.c13 as c12, D1.c3 as c13, NULL as c14, nvl(D1.c1 , 0) as c15, nvl(D1.c2 , 0) as c16, cast(NULL as DOUBLE PRECISION ) as c19, cast(NULL as DOUBLE PRECISION ) as c20, cast(NULL as DOUBLE PRECISION ) as c21, cast(NULL as DOUBLE PRECISION ) as c24, cast(NULL as DOUBLE PRECISION ) as c25, cast(NULL as DOUBLE PRECISION ) as c26 from SAWITH3 D1 where ( 0 < nvl(D1.c1 , 0) ) ), SAWITH5 AS (select sum(T80629.NUMBER3) as c1, sum(case when not case when T80629.TEXT8 = 'Completed' then 'Completed' when T80629.TEXT8 in ('In Progress', 'New') then 'Packing notes' else 'Not generated' end = 'Completed' then T80629.NUMBER3 end ) as c2, case when T80629.TEXT8 = 'Completed' then 'Completed' when T80629.TEXT8 in ('In Progress', 'New') then 'Packing notes' else 'To be generated' end as c3, T80629.TEXT9 as c4, T80629.TEXT6 as c5, T80629.TEXT5 as c6, T80629.TEXT2 as c7, T80629.TEXT10 as c8, T80629.NUMBER1 as c9, T80629.DATE1 as c10, T5959.CUSTOMER_BUSINESS_UNIT_CODE as c11, T5959.CUSTOMER_BUSINESS_UNIT_NAME as c12, T5959.NAME as c13, T5959.CUSTOMER_NUMBER as c14, T5959.DIMENSION_KEY as c15 from DIM_V_CUSTOMER T5959, FACT_V_REALTIME_CUSTOMER_DATA T80629 where ( T5959.DIMENSION_KEY = T80629.CUSTOMER and T80629.DATASET = 12 and T5959.CUSTOMER_BUSINESS_UNIT_CODE >= '3000' and T5959.CUSTOMER_NUMBER in (select distinct D1.c1 as c1 from OBISUBWITH1 D1) and (T5959.CUSTOMER_BUSINESS_UNIT_CODE in ('0', '3010')) and T5959.CUSTOMER_BUSINESS_UNIT_NAME in (select distinct D1.c1 as c1 from OBISUBWITH0 D1) ) group by T5959.DIMENSION_KEY, T5959.CUSTOMER_NUMBER, T5959.CUSTOMER_BUSINESS_UNIT_CODE, T5959.CUSTOMER_BUSINESS_UNIT_NAME, T5959.NAME, T80629.TEXT2, T80629.TEXT5, T80629.TEXT6, T80629.TEXT9, T80629.TEXT10, T80629.DATE1, T80629.NUMBER1, case when T80629.TEXT8 = 'Completed' then 'Completed' when T80629.TEXT8 in ('In Progress', 'New') then 'Packing notes' else 'To be generated' end ), SAWITH6 AS (select distinct 3 as c1, D1.c10 as c2, D1.c9 as c3, D1.c8 as c4, D1.c7 as c5, D1.c6 as c6, D1.c5 as c7, D1.c4 as c8, D1.c11 as c9, D1.c12 as c10, D1.c13 as c11, D1.c14 as c12, D1.c3 as c13, NULL as c14, nvl(D1.c1 , 0) as c15, nvl(D1.c2 , 0) as c16, cast(NULL as DOUBLE PRECISION ) as c17, cast(NULL as DOUBLE PRECISION ) as c18, cast(NULL as DOUBLE PRECISION ) as c22, cast(NULL as DOUBLE PRECISION ) as c23, D1.c15 as c27 from SAWITH5 D1 where ( 0 < nvl(D1.c1 , 0) ) ), SAWITH7 AS ((select D1.c1 as c1, D1.c2 as c2, D1.c3 as c3, D1.c4 as c4, D1.c5 as c5, D1.c6 as c6, D1.c7 as c7, D1.c8 as c8, D1.c9 as c9, D1.c10 as c10, D1.c11 as c11, D1.c12 as c12, D1.c13 as c13, D1.c14 as c14, D1.c15 as c15, D1.c16 as c16, D1.c17 as c17, sum(D1.c15) over (partition by D1.c10, D1.c2, D1.c4, D1.c8, D1.c13) as c18, D1.c19 as c19, D1.c20 as c20, D1.c21 as c21, D1.c22 as c22, sum(D1.c15) over (partition by D1.c10, D1.c4, D1.c8, D1.c13) as c23, D1.c24 as c24, D1.c25 as c25, D1.c26 as c26 from SAWITH1 D1 union all select distinct 1 as c1, D1.c9 as c2, D1.c8 as c3, D1.c7 as c4, D1.c6 as c5, D1.c5 as c6, D1.c4 as c7, D1.c3 as c8, D1.c10 as c9, D1.c11 as c10, NULL as c11, D1.c12 as c12, D1.c2 as c13, NULL as c14, cast(NULL as DOUBLE PRECISION ) as c15, cast(NULL as DOUBLE PRECISION ) as c16, cast(NULL as DOUBLE PRECISION ) as c17, cast(NULL as DOUBLE PRECISION ) as c18, cast(NULL as DOUBLE PRECISION ) as c19, cast(NULL as DOUBLE PRECISION ) as c20, cast(NULL as DOUBLE PRECISION ) as c21, cast(NULL as DOUBLE PRECISION ) as c22, cast(NULL as DOUBLE PRECISION ) as c23, cast(NULL as DOUBLE PRECISION ) as c24, cast(NULL as DOUBLE PRECISION ) as c25, cast(NULL as DOUBLE PRECISION ) as c26 from SAWITH2 D1 where ( 0 < nvl(D1.c1 , 0) ) union all select D1.c1 as c1, D1.c2 as c2, D1.c3 as c3, D1.c4 as c4, D1.c5 as c5, D1.c6 as c6, D1.c7 as c7, D1.c8 as c8, D1.c9 as c9, D1.c10 as c10, D1.c11 as c11, D1.c12 as c12, D1.c13 as c13, D1.c14 as c14, D1.c15 as c15, D1.c16 as c16, sum(D1.c15) over (partition by D1.c10, D1.c2, D1.c3, D1.c4, D1.c8, D1.c13) as c17, sum(D1.c15) over (partition by D1.c10, D1.c2, D1.c4, D1.c8, D1.c13) as c18, D1.c19 as c19, D1.c20 as c20, D1.c21 as c21, sum(D1.c15) over (partition by D1.c10, D1.c3, D1.c4, D1.c8, D1.c13) as c22, sum(D1.c15) over (partition by D1.c10, D1.c4, D1.c8, D1.c13) as c23, D1.c24 as c24, D1.c25 as c25, D1.c26 as c26 from SAWITH4 D1 union all select D1.c1 as c1, D1.c2 as c2, D1.c3 as c3, D1.c4 as c4, D1.c5 as c5, D1.c6 as c6, D1.c7 as c7, D1.c8 as c8, D1.c9 as c9, D1.c10 as c10, D1.c11 as c11, D1.c12 as c12, D1.c13 as c13, D1.c14 as c14, D1.c15 as c15, D1.c16 as c16, D1.c17 as c17, D1.c18 as c18, sum(D1.c15) over (partition by D1.c12, D1.c10, D1.c9, D1.c2, D1.c4, D1.c5, D1.c8) as c19, sum(D1.c15) over (partition by D1.c12, D1.c10, D1.c9, D1.c2, D1.c4, D1.c8) as c20, sum(D1.c15) over (partition by D1.c12, D1.c10, D1.c9, D1.c2, D1.c4, D1.c5, D1.c6, D1.c7, D1.c8) as c21, D1.c22 as c22, D1.c23 as c23, sum(D1.c15) over (partition by D1.c12, D1.c10, D1.c9, D1.c4, D1.c5, D1.c8) as c24, sum(D1.c15) over (partition by D1.c12, D1.c10, D1.c9, D1.c4, D1.c8) as c25, sum(D1.c15) over (partition by D1.c12, D1.c10, D1.c9, D1.c4, D1.c5, D1.c6, D1.c7, D1.c8) as c26 from SAWITH6 D1)) select D1.c1 as c1, D1.c2 as c2, D1.c3 as c3, D1.c4 as c4, D1.c5 as c5, D1.c6 as c6, D1.c7 as c7, D1.c8 as c8, D1.c9 as c9, D1.c10 as c10, D1.c11 as c11, D1.c12 as c12, D1.c13 as c13, D1.c14 as c14, D1.c15 as c15, D1.c16 as c16, D1.c17 as c17, D1.c18 as c18, D1.c19 as c19, D1.c20 as c20, D1.c21 as c21, D1.c22 as c22, D1.c23 as c23, D1.c24 as c24, D1.c25 as c25, D1.c26 as c26 from ( select D1.c1 as c1, D1.c2 as c2, D1.c3 as c3, D1.c4 as c4, D1.c5 as c5, D1.c6 as c6, D1.c7 as c7, D1.c8 as c8, D1.c9 as c9, D1.c10 as c10, D1.c11 as c11, D1.c12 as c12, D1.c13 as c13, D1.c14 as c14, D1.c15 as c15, D1.c16 as c16, D1.c17 as c17, D1.c18 as c18, D1.c19 as c19, D1.c20 as c20, D1.c21 as c21, D1.c22 as c22, D1.c23 as c23, D1.c24 as c24, D1.c25 as c25, D1.c26 as c26 from SAWITH7 D1 order by c1, c10, c8, c4, c2, c13 ) D1 where rownum <= 5000001
4uty0m1dzyu2s/* SQL Analyze(20, 1) */ WITH SAWITH0 AS (select sum(T12363.QUANTITY_DELIVERED) as c1, T5913.BUSINESS_UNIT_NAME as c2, T5959.EMAIL as c3, T5959.PHONE_NUMBER as c4, T5959.VISIT_ADDRESS_1 as c5, T5959.VISIT_CITY as c6, T5959.VISIT_ZIPCODE as c7, T5959.INVOICE_FREQUENCY as c8, T5959.TAXABLE as c9, T5959.WEEKLY_MINIMUM_INVOICE_AMOUNT as c10, T5959.CONTACT_PERSON_OF_CUSTOMER as c11, T5959.DATE3 as c12, T5959.NUMBER1 as c13, T5959.STRING1 as c14, T5959.STRING10 as c15, T5959.STRING11 as c16, T5959.STRING12 as c17, T5959.STRING13 as c18, T5959.STRING14 as c19, T5959.STRING16 as c20, T5959.STRING17 as c21, T5959.STRING7 as c22, T5959.STRING9 as c23, T5959.CHAIN_CODE as c24, T5959.CHAIN as c25, T5959.CUSTOMER_SERVICE_EMPLOYEE as c26, T5959.MARKET_SEGMENT as c27, T5959.NATIONAL_ACCOUNT_NAME as c28, T5959.ACTIVE as c29, T5959.CUSTOMER_BUSINESS_UNIT_NAME as c30, T5959.NAME as c31, T5959.CUSTOMER_NUMBER as c32, T5959.DATE_ACTIVE as c33, T5959.DATE_INACTIVE as c34, T5959.LEGACY_CUSTOMER_NUMBER as c35, T5959.LEGAL_NAME as c36, T5959.PAYMENT_METHOD as c37, T5959.PAYMENT_TERMS as c38, T5913.DIMENSION_KEY as c39, T5959.DIMENSION_KEY as c40, T5959.NATIONAL_ACCOUNT_CODE as c41, T5959.MARKET_SEGMENT_CODE as c42 from DIM_V_CUSTOMER T5959, DIM_V_BUSINESS_UNIT T5913, FACT_DELIVERIES T12363 where ( T5913.DIMENSION_KEY = T12363.BUSINESS_UNIT and T5913.DIVISION = 'Johnsons Hotel Linen' and T5959.DIMENSION_KEY = T12363.CUSTOMER ) group by T5913.DIMENSION_KEY, T5913.BUSINESS_UNIT_NAME, T5959.DIMENSION_KEY, T5959.CUSTOMER_NUMBER, T5959.LEGAL_NAME, T5959.LEGACY_CUSTOMER_NUMBER, T5959.VISIT_ADDRESS_1, T5959.VISIT_ZIPCODE, T5959.VISIT_CITY, T5959.PHONE_NUMBER, T5959.EMAIL, T5959.DATE_ACTIVE, T5959.DATE_INACTIVE, T5959.ACTIVE, T5959.CUSTOMER_BUSINESS_UNIT_NAME, T5959.CHAIN_CODE, T5959.CHAIN, T5959.MARKET_SEGMENT_CODE, T5959.MARKET_SEGMENT, T5959.NATIONAL_ACCOUNT_CODE, T5959.NATIONAL_ACCOUNT_NAME, T5959.CUSTOMER_SERVICE_EMPLOYEE, T5959.TAXABLE, T5959.INVOICE_FREQUENCY, T5959.PAYMENT_METHOD, T5959.PAYMENT_TERMS, T5959.NAME, T5959.WEEKLY_MINIMUM_INVOICE_AMOUNT, T5959.CONTACT_PERSON_OF_CUSTOMER, T5959.STRING1, T5959.STRING7, T5959.STRING9, T5959.STRING10, T5959.STRING11, T5959.STRING12, T5959.STRING13, T5959.STRING14, T5959.STRING16, T5959.STRING17, T5959.NUMBER1, T5959.DATE3) select 0 as c1, D1.c2 as c2, D1.c3 as c3, D1.c4 as c4, D1.c5 as c5, D1.c6 as c6, D1.c7 as c7, D1.c8 as c8, D1.c9 as c9, D1.c10 as c10, D1.c11 as c11, D1.c12 as c12, D1.c13 as c13, D1.c14 as c14, D1.c15 as c15, D1.c16 as c16, D1.c17 as c17, D1.c18 as c18, D1.c19 as c19, D1.c20 as c20, D1.c21 as c21, D1.c22 as c22, D1.c23 as c23, D1.c24 as c24, D1.c25 as c25, D1.c26 as c26, D1.c27 as c27, D1.c28 as c28, D1.c29 as c29, D1.c30 as c30, D1.c31 as c31, D1.c32 as c32, D1.c33 as c33, D1.c34 as c34, D1.c35 as c35, D1.c36 as c36, D1.c37 as c37, D1.c38 as c38, D1.c1 as c39, 0 as c40, D1.c39 as c41, D1.c40 as c42, D1.c41 as c43, D1.c42 as c44 from SAWITH0 D1 order by c5, c36, c28, c32, c29, c4, c33, c9, c3, c25, c35, c30, c37, c8, c6, c24, c7, c38, c27, c34, c26, c11, c10, c12, c13, c22, c23, c14, c15, c16, c17, c18, c19, c20, c21, c2, c41, c42, c44, c43, c31
4xm1ruvkx3awxDECLARE job BINARY_INTEGER := :job; next_date TIMESTAMP WITH TIME ZONE := :mydate; broken BOOLEAN := FALSE; job_name VARCHAR2(128) := :job_name; job_subname VARCHAR2(128) := :job_subname; job_owner VARCHAR2(128) := :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(128) := :credown; credential_name VARCHAR2(128) := :crednam; destination_owner VARCHAR2(128) := :destown; destination_name VARCHAR2(128) := :destnam; job_dest_id varchar2(14) := :jdestid; log_id number := :log_id; BEGIN DECLARE ename VARCHAR2(30); exec_task BOOLEAN; BEGIN -- check if tuning pack is enabled exec_task := prvt_advisor.is_pack_enabled( dbms_management_packs.TUNING_PACK); -- check if we are in a pdb, -- since auto sqltune is not run in a pdb IF (exec_task AND -- tuning pack enabled sys_context('userenv', 'con_id') <> 0 AND -- not in non-cdb sys_context('userenv', 'con_id') <> 1 ) THEN -- not in root exec_task := FALSE; END IF; -- execute auto sql tuning task IF (exec_task) THEN ename := dbms_sqltune.execute_tuning_task( 'SYS_AUTO_SQL_TUNING_TASK'); END IF; -- check whether we are in non-CDB or a PDB -- auto SPM evolve only runs in a non-CDB or a PDB, not the root. IF (sys_context('userenv', 'con_id') = 0 OR sys_context('userenv', 'con_id') > 2) THEN exec_task := TRUE; ELSE exec_task := FALSE; END IF; -- execute auto SPM evolve task IF (exec_task) THEN ename := dbms_spm.execute_evolve_task('SYS_AUTO_SPM_EVOLVE_TASK'); END IF; END; :mydate := next_date; IF broken THEN :b := 1; ELSE :b := 0; END IF; END;
52sndf8u0nvmwWITH OBISUBWITH0 AS (select D1.c1 as c1 from (select D1.c1 as c1, Case when D1.c2 is not null then Rank() OVER ( ORDER BY D1.c2) end as c2 from (select distinct D1.c2 as c1, D1.c2 as c2, D1.c2 as c3 from (select sum(T80629.NUMBER3) as c1, T5959.CUSTOMER_BUSINESS_UNIT_NAME as c2 from DIM_V_CUSTOMER T5959, FACT_V_REALTIME_CUSTOMER_DATA T80629 where ( T5959.DIMENSION_KEY = T80629.CUSTOMER and T80629.DATASET = 12 and (T5959.CUSTOMER_BUSINESS_UNIT_CODE in ('0', '3060')) and T5959.CUSTOMER_BUSINESS_UNIT_CODE >= '3000' ) group by T5959.CUSTOMER_BUSINESS_UNIT_NAME having 0 < nvl(sum(T80629.NUMBER3) , 0) ) D1 ) D1 ) D1 where ( D1.c2 <= 1 ) ), OBISUBWITH1 AS (select D1.c1 as c1 from (select D1.c1 as c1, Case when D1.c2 is not null then Rank() OVER ( ORDER BY D1.c2) end as c2 from (select distinct D1.c2 as c1, D1.c2 as c2, D1.c2 as c3 from (select sum(T80629.NUMBER3) as c1, T80629.DATE1 as c2 from DIM_V_CUSTOMER T5959, FACT_V_REALTIME_CUSTOMER_DATA T80629 where ( T5959.DIMENSION_KEY = T80629.CUSTOMER and T80629.DATASET = 12 and (T5959.CUSTOMER_BUSINESS_UNIT_CODE in ('0', '3060')) and T5959.CUSTOMER_BUSINESS_UNIT_CODE >= '3000' ) group by T80629.DATE1 having 0 < nvl(sum(T80629.NUMBER3) , 0) ) D1 ) D1 ) D1 where ( D1.c2 <= 1 ) ), SAWITH0 AS (select sum(T80629.NUMBER3) as c1, sum(case when not case when T80629.TEXT8 = 'Completed' then 'Completed' when T80629.TEXT8 in ('In Progress', 'New') then 'Packing notes' else 'Not generated' end = 'Completed' then T80629.NUMBER3 end ) as c2, case when T80629.TEXT8 = 'Completed' then 'Completed' when T80629.TEXT8 in ('In Progress', 'New') then 'Packing notes' else 'To be generated' end as c3, T80629.TEXT9 as c4, T80629.TEXT6 as c5, T80629.TEXT5 as c6, T80629.TEXT2 as c7, T80629.TEXT10 as c8, T80629.NUMBER1 as c9, T80629.DATE1 as c10, T5959.CUSTOMER_BUSINESS_UNIT_CODE as c11, T5959.CUSTOMER_BUSINESS_UNIT_NAME as c12, T5959.CUSTOMER_NUMBER as c13 from DIM_V_CUSTOMER T5959, FACT_V_REALTIME_CUSTOMER_DATA T80629 where ( T5959.DIMENSION_KEY = T80629.CUSTOMER and T80629.DATASET = 12 and (T5959.CUSTOMER_BUSINESS_UNIT_CODE in ('0', '3060')) and T5959.CUSTOMER_BUSINESS_UNIT_CODE >= '3000' ) group by T5959.CUSTOMER_NUMBER, T5959.CUSTOMER_BUSINESS_UNIT_CODE, T5959.CUSTOMER_BUSINESS_UNIT_NAME, T80629.TEXT2, T80629.TEXT5, T80629.TEXT6, T80629.TEXT9, T80629.TEXT10, T80629.DATE1, T80629.NUMBER1, case when T80629.TEXT8 = 'Completed' then 'Completed' when T80629.TEXT8 in ('In Progress', 'New') then 'Packing notes' else 'To be generated' end ), SAWITH1 AS (select distinct 0 as c1, D1.c10 as c2, D1.c9 as c3, D1.c8 as c4, D1.c7 as c5, D1.c6 as c6, D1.c5 as c7, D1.c4 as c8, D1.c11 as c9, D1.c12 as c10, D1.c13 as c11, D1.c3 as c12, NULL as c13, nvl(D1.c1 , 0) as c14, nvl(D1.c2 , 0) as c15, cast(NULL as DOUBLE PRECISION ) as c16, cast(NULL as DOUBLE PRECISION ) as c17, cast(NULL as DOUBLE PRECISION ) as c19, cast(NULL as DOUBLE PRECISION ) as c20 from SAWITH0 D1 where ( 0 < nvl(D1.c1 , 0) ) ), SAWITH2 AS (select sum(T80629.NUMBER3) as c1, case when T80629.TEXT8 = 'Completed' then 'Completed' when T80629.TEXT8 in ('In Progress', 'New') then 'Packing notes' else 'To be generated' end as c2, T80629.TEXT9 as c3, T80629.TEXT6 as c4, T80629.TEXT5 as c5, T80629.TEXT2 as c6, T80629.TEXT10 as c7, T80629.NUMBER1 as c8, T80629.DATE1 as c9, T5959.CUSTOMER_BUSINESS_UNIT_CODE as c10, T5959.CUSTOMER_BUSINESS_UNIT_NAME as c11, T5959.CUSTOMER_NUMBER as c12 from DIM_V_CUSTOMER T5959, FACT_V_REALTIME_CUSTOMER_DATA T80629 where ( T5959.DIMENSION_KEY = T80629.CUSTOMER and T80629.DATASET = 12 and (T5959.CUSTOMER_BUSINESS_UNIT_CODE in ('0', '3060')) and T5959.CUSTOMER_BUSINESS_UNIT_CODE >= '3000' ) group by T5959.CUSTOMER_NUMBER, T5959.CUSTOMER_BUSINESS_UNIT_CODE, T5959.CUSTOMER_BUSINESS_UNIT_NAME, T80629.TEXT2, T80629.TEXT5, T80629.TEXT6, T80629.TEXT9, T80629.TEXT10, T80629.DATE1, T80629.NUMBER1, case when T80629.TEXT8 = 'Completed' then 'Completed' when T80629.TEXT8 in ('In Progress', 'New') then 'Packing notes' else 'To be generated' end ), SAWITH3 AS (select sum(T80629.NUMBER3) as c1, sum(case when not case when T80629.TEXT8 = 'Completed' then 'Completed' when T80629.TEXT8 in ('In Progress', 'New') then 'Packing notes' else 'Not generated' end = 'Completed' then T80629.NUMBER3 end ) as c2, case when T80629.TEXT8 = 'Completed' then 'Completed' when T80629.TEXT8 in ('In Progress', 'New') then 'Packing notes' else 'To be generated' end as c3, T80629.TEXT9 as c4, T80629.TEXT6 as c5, T80629.TEXT5 as c6, T80629.TEXT2 as c7, T80629.TEXT10 as c8, T80629.NUMBER1 as c9, T80629.DATE1 as c10, T5959.CUSTOMER_BUSINESS_UNIT_CODE as c11, T5959.CUSTOMER_BUSINESS_UNIT_NAME as c12, T5959.CUSTOMER_NUMBER as c13 from DIM_V_CUSTOMER T5959, FACT_V_REALTIME_CUSTOMER_DATA T80629 where ( T5959.DIMENSION_KEY = T80629.CUSTOMER and T80629.DATASET = 12 and T5959.CUSTOMER_BUSINESS_UNIT_CODE >= '3000' and (T5959.CUSTOMER_BUSINESS_UNIT_CODE in ('0', '3060')) and T80629.DATE1 in (select distinct D1.c1 as c1 from OBISUBWITH1 D1) ) group by T5959.CUSTOMER_NUMBER, T5959.CUSTOMER_BUSINESS_UNIT_CODE, T5959.CUSTOMER_BUSINESS_UNIT_NAME, T80629.TEXT2, T80629.TEXT5, T80629.TEXT6, T80629.TEXT9, T80629.TEXT10, T80629.DATE1, T80629.NUMBER1, case when T80629.TEXT8 = 'Completed' then 'Completed' when T80629.TEXT8 in ('In Progress', 'New') then 'Packing notes' else 'To be generated' end ), SAWITH4 AS (select distinct 2 as c1, D1.c10 as c2, D1.c9 as c3, D1.c8 as c4, D1.c7 as c5, D1.c6 as c6, D1.c5 as c7, D1.c4 as c8, D1.c11 as c9, D1.c12 as c10, D1.c13 as c11, D1.c3 as c12, NULL as c13, nvl(D1.c1 , 0) as c14, nvl(D1.c2 , 0) as c15, cast(NULL as DOUBLE PRECISION ) as c17, cast(NULL as DOUBLE PRECISION ) as c19 from SAWITH3 D1 where ( 0 < nvl(D1.c1 , 0) ) ), SAWITH5 AS (select sum(T80629.NUMBER3) as c1, sum(case when not case when T80629.TEXT8 = 'Completed' then 'Completed' when T80629.TEXT8 in ('In Progress', 'New') then 'Packing notes' else 'Not generated' end = 'Completed' then T80629.NUMBER3 end ) as c2, case when T80629.TEXT8 = 'Completed' then 'Completed' when T80629.TEXT8 in ('In Progress', 'New') then 'Packing notes' else 'To be generated' end as c3, T80629.TEXT9 as c4, T80629.TEXT6 as c5, T80629.TEXT5 as c6, T80629.TEXT2 as c7, T80629.TEXT10 as c8, T80629.NUMBER1 as c9, T80629.DATE1 as c10, T5959.CUSTOMER_BUSINESS_UNIT_CODE as c11, T5959.CUSTOMER_BUSINESS_UNIT_NAME as c12, T5959.CUSTOMER_NUMBER as c13 from DIM_V_CUSTOMER T5959, FACT_V_REALTIME_CUSTOMER_DATA T80629 where ( T5959.DIMENSION_KEY = T80629.CUSTOMER and T80629.DATASET = 12 and T5959.CUSTOMER_BUSINESS_UNIT_CODE >= '3000' and (T5959.CUSTOMER_BUSINESS_UNIT_CODE in ('0', '3060')) and T5959.CUSTOMER_BUSINESS_UNIT_NAME in (select distinct D1.c1 as c1 from OBISUBWITH0 D1) ) group by T5959.CUSTOMER_NUMBER, T5959.CUSTOMER_BUSINESS_UNIT_CODE, T5959.CUSTOMER_BUSINESS_UNIT_NAME, T80629.TEXT2, T80629.TEXT5, T80629.TEXT6, T80629.TEXT9, T80629.TEXT10, T80629.DATE1, T80629.NUMBER1, case when T80629.TEXT8 = 'Completed' then 'Completed' when T80629.TEXT8 in ('In Progress', 'New') then 'Packing notes' else 'To be generated' end ), SAWITH6 AS (select distinct 3 as c1, D1.c10 as c2, D1.c9 as c3, D1.c8 as c4, D1.c7 as c5, D1.c6 as c6, D1.c5 as c7, D1.c4 as c8, D1.c11 as c9, D1.c12 as c10, D1.c13 as c11, D1.c3 as c12, NULL as c13, nvl(D1.c1 , 0) as c14, nvl(D1.c2 , 0) as c15, cast(NULL as DOUBLE PRECISION ) as c16, cast(NULL as DOUBLE PRECISION ) as c18, cast(NULL as DOUBLE PRECISION ) as c20, cast(NULL as DOUBLE PRECISION ) as c21 from SAWITH5 D1 where ( 0 < nvl(D1.c1 , 0) ) ), SAWITH7 AS ((select D1.c1 as c1, D1.c2 as c2, D1.c3 as c3, D1.c4 as c4, D1.c5 as c5, D1.c6 as c6, D1.c7 as c7, D1.c8 as c8, D1.c9 as c9, D1.c10 as c10, D1.c11 as c11, D1.c12 as c12, D1.c13 as c13, D1.c14 as c14, D1.c15 as c15, D1.c16 as c16, D1.c17 as c17, sum(D1.c14) over (partition by D1.c10, D1.c2, D1.c4, D1.c8, D1.c12) as c18, D1.c19 as c19, D1.c20 as c20, sum(D1.c14) over (partition by D1.c10, D1.c4, D1.c8, D1.c12) as c21 from SAWITH1 D1 union all select distinct 1 as c1, D1.c9 as c2, D1.c8 as c3, D1.c7 as c4, D1.c6 as c5, D1.c5 as c6, D1.c4 as c7, D1.c3 as c8, D1.c10 as c9, D1.c11 as c10, D1.c12 as c11, D1.c2 as c12, NULL as c13, cast(NULL as DOUBLE PRECISION ) as c14, cast(NULL as DOUBLE PRECISION ) as c15, cast(NULL as DOUBLE PRECISION ) as c16, cast(NULL as DOUBLE PRECISION ) as c17, cast(NULL as DOUBLE PRECISION ) as c18, cast(NULL as DOUBLE PRECISION ) as c19, cast(NULL as DOUBLE PRECISION ) as c20, cast(NULL as DOUBLE PRECISION ) as c21 from SAWITH2 D1 where ( 0 < nvl(D1.c1 , 0) ) union all select D1.c1 as c1, D1.c2 as c2, D1.c3 as c3, D1.c4 as c4, D1.c5 as c5, D1.c6 as c6, D1.c7 as c7, D1.c8 as c8, D1.c9 as c9, D1.c10 as c10, D1.c11 as c11, D1.c12 as c12, D1.c13 as c13, D1.c14 as c14, D1.c15 as c15, sum(D1.c14) over (partition by D1.c10, D1.c2, D1.c3, D1.c4, D1.c8, D1.c12) as c16, D1.c17 as c17, sum(D1.c14) over (partition by D1.c10, D1.c2, D1.c4, D1.c8, D1.c12) as c18, D1.c19 as c19, sum(D1.c14) over (partition by D1.c10, D1.c3, D1.c4, D1.c8, D1.c12) as c20, sum(D1.c14) over (partition by D1.c10, D1.c4, D1.c8, D1.c12) as c21 from SAWITH4 D1 union all select D1.c1 as c1, D1.c2 as c2, D1.c3 as c3, D1.c4 as c4, D1.c5 as c5, D1.c6 as c6, D1.c7 as c7, D1.c8 as c8, D1.c9 as c9, D1.c10 as c10, D1.c11 as c11, D1.c12 as c12, D1.c13 as c13, D1.c14 as c14, D1.c15 as c15, D1.c16 as c16, sum(D1.c14) over (partition by D1.c10, D1.c9, D1.c2, D1.c4, D1.c8, D1.c12) as c17, D1.c18 as c18, sum(D1.c14) over (partition by D1.c10, D1.c9, D1.c2, D1.c4, D1.c8) as c19, D1.c20 as c20, D1.c21 as c21 from SAWITH6 D1)) select D1.c1 as c1, D1.c2 as c2, D1.c3 as c3, D1.c4 as c4, D1.c5 as c5, D1.c6 as c6, D1.c7 as c7, D1.c8 as c8, D1.c9 as c9, D1.c10 as c10, D1.c11 as c11, D1.c12 as c12, D1.c13 as c13, D1.c14 as c14, D1.c15 as c15, D1.c16 as c16, D1.c17 as c17, D1.c18 as c18, D1.c19 as c19, D1.c20 as c20, D1.c21 as c21 from ( select D1.c1 as c1, D1.c2 as c2, D1.c3 as c3, D1.c4 as c4, D1.c5 as c5, D1.c6 as c6, D1.c7 as c7, D1.c8 as c8, D1.c9 as c9, D1.c10 as c10, D1.c11 as c11, D1.c12 as c12, D1.c13 as c13, D1.c14 as c14, D1.c15 as c15, D1.c16 as c16, D1.c17 as c17, D1.c18 as c18, D1.c19 as c19, D1.c20 as c20, D1.c21 as c21 from SAWITH7 D1 order by c1, c10, c8, c4, c2, c12 ) D1 where rownum <= 5000001
5ghx2munh9s9n BEGIN SYS.KUPW$WORKER.MAIN('SYS_EXPORT_SCHEMA_16', 'ABSDWHSTAGING', 0, 0); END;
5n4cgxzw9jj6minsert into FACT_REALTIME_CUSTOMER_DATA select * from FACT_V_REALTIME_CUSTOMER_DTA40
5p6c3ax87q3ctselect sum(T12363.REVENUE) as c1, sum(T12363.SHORTAGE_QTY) as c2, sum(T12363.NOCHARGEPREVREJECTED) as c3, sum(T12363.QUANTITY_DELIVERED) as c4, sum(T12363.QUANTITY_ORDERED) as c5, sum(T12363.WEIGHT_DELIVERED) as c6, sum(case when T6115.REASON_CODE = 'C7' then T12363.QUANTITY_DELIVERED end ) as c7, sum(case when T6115.REASON_CODE = 'C7' then T12363.WEIGHT_DELIVERED end ) as c8, sum(case when T24684.ORIGIN_NUMBER = 3 and T6115.REASON_CODE in ('C5', 'URS') then T12363.QUANTITY_DELIVERED end ) as c9, T5913.BUSINESS_UNIT_CODE as c10, T5913.BUSINESS_UNIT_NAME as c11, T8754.WEEK_NAME_AND_YEAR as c12, T8754.WEEK_START_DATE as c13, T8754.WEEK_NUMBER as c14, T8754.YEAR as c15, T8754.WEEK_SOURCE_ID as c16, T5913.DIMENSION_KEY as c17 from DELIVERY_NOTE T24684, DATE_CAL_WEEK_BASED T8754, ( DIM_V_BUSINESS_UNIT T5913 inner join FACT_DELIVERIES T12363 On T5913.DIMENSION_KEY = T12363.BUSINESS_UNIT) left outer join REASON T6115 On T6115.DIMENSION_KEY = T12363.CORRECTIONREASON where ( T5913.DIVISION = 'Johnsons Hotel Linen' and T8754.DIMENSION_KEY = T12363.DATE_CAL_WEEK_BASED and T12363.DELIVERY_NOTE = T24684.DIMENSION_KEY and T8754.YEAR between T8754.CURRENT_YEAR - 1 and T8754.CURRENT_YEAR ) group by T5913.DIMENSION_KEY, T5913.BUSINESS_UNIT_CODE, T5913.BUSINESS_UNIT_NAME, T8754.YEAR, T8754.WEEK_SOURCE_ID, T8754.WEEK_NUMBER, T8754.WEEK_START_DATE, T8754.WEEK_NAME_AND_YEAR order by c12, c13, c14, c11, c10, c17, c15, c16
5t0s77hdvw8upselect owner, object_name, subobject_name, object_type from dba_objects where object_id = :1
5x8tabwf7qj35WITH SAWITH0 AS (select sum(T12363.QUANTITY_DELIVERED) as c1, sum(case when T6115.REASON_CODE = 'C7' then T12363.QUANTITY_DELIVERED end ) as c2, T5913.BUSINESS_UNIT_NAME as c3, T24684.CONSIGNMENT_NOTE_NUMBER as c4, T24684.NOTE_NUMBER as c5, T24684.TRANSPORT_ARTICLE as c6, T78298.CONS_POINT_DESCRIPTION as c7, T5959.AUTO_LOAD_PACKING as c8, T5959.CONSIGNMENT_NOTE as c9, T5959.NAME as c10, T5959.CUSTOMER_NUMBER as c11, T8754.DAY as c12, T8754.DAY_SOURCE_ID as c13, T5913.DIMENSION_KEY as c14, T5959.DIMENSION_KEY as c15, T24684.DIMENSION_KEY as c16, T78298.CONS_POINT_SOURCE_ID as c17 from DIM_V_DEPARTMENT T78298, DELIVERY_NOTE T24684, DATE_CAL_WEEK_BASED T8754, ( DIM_V_BUSINESS_UNIT T5913 inner join ( DIM_V_CUSTOMER T5959 inner join FACT_DELIVERIES T12363 On T5959.DIMENSION_KEY = T12363.CUSTOMER) On T5913.DIMENSION_KEY = T12363.BUSINESS_UNIT) left outer join REASON T6115 On T6115.DIMENSION_KEY = T12363.CORRECTIONREASON where ( T8754.DIMENSION_KEY = T12363.DATE_CAL_WEEK_BASED and T12363.DELIVERY_NOTE = T24684.DIMENSION_KEY and T12363.DEPARTMENT = T78298.DIMENSION_KEY and TO_DATE('2026-02-24' , 'YYYY-MM-DD') < T5959.DATE_INACTIVE and (T5959.CUSTOMER_BUSINESS_UNIT_CODE in ('0', '3030')) and T8754.JULIAN_DATE between T8754.CURRENT_JULIAN_DATE - 14 and T8754.CURRENT_JULIAN_DATE - 1 ) group by T5913.DIMENSION_KEY, T5913.BUSINESS_UNIT_NAME, T5959.DIMENSION_KEY, T5959.CUSTOMER_NUMBER, T5959.NAME, T5959.AUTO_LOAD_PACKING, T5959.CONSIGNMENT_NOTE, T8754.DAY_SOURCE_ID, T8754.DAY, T24684.DIMENSION_KEY, T24684.CONSIGNMENT_NOTE_NUMBER, T24684.TRANSPORT_ARTICLE, T24684.NOTE_NUMBER, T78298.CONS_POINT_SOURCE_ID, T78298.CONS_POINT_DESCRIPTION) select 0 as c1, D1.c3 as c2, D1.c4 as c3, D1.c5 as c4, D1.c6 as c5, D1.c7 as c6, D1.c8 as c7, D1.c9 as c8, D1.c10 as c9, D1.c11 as c10, D1.c12 as c11, D1.c13 as c12, nvl(D1.c1 , 0) - nvl(D1.c2 , 0) as c13, 0 as c14, D1.c14 as c15, D1.c15 as c16, D1.c16 as c17, D1.c17 as c18, D1.c1 as c19, D1.c2 as c20 from SAWITH0 D1 order by c2, c10, c7, c8, c3, c15, c16, c12, c11, c9, c17, c5, c4, c6, c18
6hqb0kh6gb54qWITH OBISUBWITH0 AS (select D1.c1 as c1 from (select D1.c1 as c1, Case when D1.c2 is not null then Rank() OVER ( ORDER BY D1.c2) end as c2 from (select distinct D1.c2 as c1, D1.c2 as c2, D1.c2 as c3 from (select sum(T80629.NUMBER3) as c1, T5959.CUSTOMER_BUSINESS_UNIT_NAME as c2 from DIM_V_CUSTOMER T5959, FACT_V_REALTIME_CUSTOMER_DATA T80629 where ( T5959.DIMENSION_KEY = T80629.CUSTOMER and T80629.DATASET = 12 and (T5959.CUSTOMER_BUSINESS_UNIT_CODE in ('0', '3040')) and T5959.CUSTOMER_BUSINESS_UNIT_CODE >= '3000' ) group by T5959.CUSTOMER_BUSINESS_UNIT_NAME having 0 < nvl(sum(T80629.NUMBER3) , 0) ) D1 ) D1 ) D1 where ( D1.c2 <= 1 ) ), OBISUBWITH1 AS (select D1.c1 as c1 from (select D1.c1 as c1, Case when D1.c2 is not null then Rank() OVER ( ORDER BY D1.c2) end as c2 from (select distinct D1.c2 as c1, D1.c2 as c2, D1.c2 as c3 from (select sum(T80629.NUMBER3) as c1, T80629.DATE1 as c2 from DIM_V_CUSTOMER T5959, FACT_V_REALTIME_CUSTOMER_DATA T80629 where ( T5959.DIMENSION_KEY = T80629.CUSTOMER and T80629.DATASET = 12 and (T5959.CUSTOMER_BUSINESS_UNIT_CODE in ('0', '3040')) and T5959.CUSTOMER_BUSINESS_UNIT_CODE >= '3000' ) group by T80629.DATE1 having 0 < nvl(sum(T80629.NUMBER3) , 0) ) D1 ) D1 ) D1 where ( D1.c2 <= 1 ) ), SAWITH0 AS (select sum(T80629.NUMBER3) as c1, sum(case when not case when T80629.TEXT8 = 'Completed' then 'Completed' when T80629.TEXT8 in ('In Progress', 'New') then 'Packing notes' else 'Not generated' end = 'Completed' then T80629.NUMBER3 end ) as c2, case when T80629.TEXT8 = 'Completed' then 'Completed' when T80629.TEXT8 in ('In Progress', 'New') then 'Packing notes' else 'To be generated' end as c3, T80629.TEXT9 as c4, T80629.TEXT6 as c5, T80629.TEXT5 as c6, T80629.TEXT2 as c7, T80629.TEXT10 as c8, T80629.NUMBER1 as c9, T80629.DATE1 as c10, T5959.CUSTOMER_BUSINESS_UNIT_CODE as c11, T5959.CUSTOMER_BUSINESS_UNIT_NAME as c12, T5959.CUSTOMER_NUMBER as c13 from DIM_V_CUSTOMER T5959, FACT_V_REALTIME_CUSTOMER_DATA T80629 where ( T5959.DIMENSION_KEY = T80629.CUSTOMER and T80629.DATASET = 12 and (T5959.CUSTOMER_BUSINESS_UNIT_CODE in ('0', '3040')) and T5959.CUSTOMER_BUSINESS_UNIT_CODE >= '3000' ) group by T5959.CUSTOMER_NUMBER, T5959.CUSTOMER_BUSINESS_UNIT_CODE, T5959.CUSTOMER_BUSINESS_UNIT_NAME, T80629.TEXT2, T80629.TEXT5, T80629.TEXT6, T80629.TEXT9, T80629.TEXT10, T80629.DATE1, T80629.NUMBER1, case when T80629.TEXT8 = 'Completed' then 'Completed' when T80629.TEXT8 in ('In Progress', 'New') then 'Packing notes' else 'To be generated' end ), SAWITH1 AS (select distinct 0 as c1, D1.c10 as c2, D1.c9 as c3, D1.c8 as c4, D1.c7 as c5, D1.c6 as c6, D1.c5 as c7, D1.c4 as c8, D1.c11 as c9, D1.c12 as c10, NULL as c11, D1.c13 as c12, D1.c3 as c13, NULL as c14, nvl(D1.c1 , 0) as c15, nvl(D1.c2 , 0) as c16, cast(NULL as DOUBLE PRECISION ) as c17, cast(NULL as DOUBLE PRECISION ) as c19, cast(NULL as DOUBLE PRECISION ) as c20, cast(NULL as DOUBLE PRECISION ) as c21, cast(NULL as DOUBLE PRECISION ) as c22, cast(NULL as DOUBLE PRECISION ) as c23, cast(NULL as DOUBLE PRECISION ) as c25, cast(NULL as DOUBLE PRECISION ) as c26, cast(NULL as DOUBLE PRECISION ) as c27, cast(NULL as DOUBLE PRECISION ) as c28 from SAWITH0 D1 where ( 0 < nvl(D1.c1 , 0) ) ), SAWITH2 AS (select sum(T80629.NUMBER3) as c1, case when T80629.TEXT8 = 'Completed' then 'Completed' when T80629.TEXT8 in ('In Progress', 'New') then 'Packing notes' else 'To be generated' end as c2, T80629.TEXT9 as c3, T80629.TEXT6 as c4, T80629.TEXT5 as c5, T80629.TEXT2 as c6, T80629.TEXT10 as c7, T80629.NUMBER1 as c8, T80629.DATE1 as c9, T5959.CUSTOMER_BUSINESS_UNIT_CODE as c10, T5959.CUSTOMER_BUSINESS_UNIT_NAME as c11, T5959.CUSTOMER_NUMBER as c12 from DIM_V_CUSTOMER T5959, FACT_V_REALTIME_CUSTOMER_DATA T80629 where ( T5959.DIMENSION_KEY = T80629.CUSTOMER and T80629.DATASET = 12 and (T5959.CUSTOMER_BUSINESS_UNIT_CODE in ('0', '3040')) and T5959.CUSTOMER_BUSINESS_UNIT_CODE >= '3000' ) group by T5959.CUSTOMER_NUMBER, T5959.CUSTOMER_BUSINESS_UNIT_CODE, T5959.CUSTOMER_BUSINESS_UNIT_NAME, T80629.TEXT2, T80629.TEXT5, T80629.TEXT6, T80629.TEXT9, T80629.TEXT10, T80629.DATE1, T80629.NUMBER1, case when T80629.TEXT8 = 'Completed' then 'Completed' when T80629.TEXT8 in ('In Progress', 'New') then 'Packing notes' else 'To be generated' end ), SAWITH3 AS (select sum(T80629.NUMBER3) as c1, sum(case when not case when T80629.TEXT8 = 'Completed' then 'Completed' when T80629.TEXT8 in ('In Progress', 'New') then 'Packing notes' else 'Not generated' end = 'Completed' then T80629.NUMBER3 end ) as c2, case when T80629.TEXT8 = 'Completed' then 'Completed' when T80629.TEXT8 in ('In Progress', 'New') then 'Packing notes' else 'To be generated' end as c3, T80629.TEXT9 as c4, T80629.TEXT6 as c5, T80629.TEXT5 as c6, T80629.TEXT2 as c7, T80629.TEXT10 as c8, T80629.NUMBER1 as c9, T80629.DATE1 as c10, T5959.CUSTOMER_BUSINESS_UNIT_CODE as c11, T5959.CUSTOMER_BUSINESS_UNIT_NAME as c12, T5959.CUSTOMER_NUMBER as c13 from DIM_V_CUSTOMER T5959, FACT_V_REALTIME_CUSTOMER_DATA T80629 where ( T5959.DIMENSION_KEY = T80629.CUSTOMER and T80629.DATASET = 12 and T5959.CUSTOMER_BUSINESS_UNIT_CODE >= '3000' and (T5959.CUSTOMER_BUSINESS_UNIT_CODE in ('0', '3040')) and T80629.DATE1 in (select distinct D1.c1 as c1 from OBISUBWITH1 D1) ) group by T5959.CUSTOMER_NUMBER, T5959.CUSTOMER_BUSINESS_UNIT_CODE, T5959.CUSTOMER_BUSINESS_UNIT_NAME, T80629.TEXT2, T80629.TEXT5, T80629.TEXT6, T80629.TEXT9, T80629.TEXT10, T80629.DATE1, T80629.NUMBER1, case when T80629.TEXT8 = 'Completed' then 'Completed' when T80629.TEXT8 in ('In Progress', 'New') then 'Packing notes' else 'To be generated' end ), SAWITH4 AS (select distinct 2 as c1, D1.c10 as c2, D1.c9 as c3, D1.c8 as c4, D1.c7 as c5, D1.c6 as c6, D1.c5 as c7, D1.c4 as c8, D1.c11 as c9, D1.c12 as c10, NULL as c11, D1.c13 as c12, D1.c3 as c13, NULL as c14, nvl(D1.c1 , 0) as c15, nvl(D1.c2 , 0) as c16, cast(NULL as DOUBLE PRECISION ) as c19, cast(NULL as DOUBLE PRECISION ) as c20, cast(NULL as DOUBLE PRECISION ) as c21, cast(NULL as DOUBLE PRECISION ) as c22, cast(NULL as DOUBLE PRECISION ) as c25, cast(NULL as DOUBLE PRECISION ) as c26, cast(NULL as DOUBLE PRECISION ) as c27, cast(NULL as DOUBLE PRECISION ) as c28 from SAWITH3 D1 where ( 0 < nvl(D1.c1 , 0) ) ), SAWITH5 AS (select sum(T80629.NUMBER3) as c1, sum(case when not case when T80629.TEXT8 = 'Completed' then 'Completed' when T80629.TEXT8 in ('In Progress', 'New') then 'Packing notes' else 'Not generated' end = 'Completed' then T80629.NUMBER3 end ) as c2, case when T80629.TEXT8 = 'Completed' then 'Completed' when T80629.TEXT8 in ('In Progress', 'New') then 'Packing notes' else 'To be generated' end as c3, T80629.TEXT9 as c4, T80629.TEXT6 as c5, T80629.TEXT5 as c6, T80629.TEXT2 as c7, T80629.TEXT10 as c8, T80629.NUMBER1 as c9, T80629.DATE1 as c10, T5959.CUSTOMER_BUSINESS_UNIT_CODE as c11, T5959.CUSTOMER_BUSINESS_UNIT_NAME as c12, T5959.NAME as c13, T5959.CUSTOMER_NUMBER as c14, T5959.DIMENSION_KEY as c15 from DIM_V_CUSTOMER T5959, FACT_V_REALTIME_CUSTOMER_DATA T80629 where ( T5959.DIMENSION_KEY = T80629.CUSTOMER and T80629.DATASET = 12 and T5959.CUSTOMER_BUSINESS_UNIT_CODE >= '3000' and (T5959.CUSTOMER_BUSINESS_UNIT_CODE in ('0', '3040')) and T5959.CUSTOMER_BUSINESS_UNIT_NAME in (select distinct D1.c1 as c1 from OBISUBWITH0 D1) ) group by T5959.DIMENSION_KEY, T5959.CUSTOMER_NUMBER, T5959.CUSTOMER_BUSINESS_UNIT_CODE, T5959.CUSTOMER_BUSINESS_UNIT_NAME, T5959.NAME, T80629.TEXT2, T80629.TEXT5, T80629.TEXT6, T80629.TEXT9, T80629.TEXT10, T80629.DATE1, T80629.NUMBER1, case when T80629.TEXT8 = 'Completed' then 'Completed' when T80629.TEXT8 in ('In Progress', 'New') then 'Packing notes' else 'To be generated' end ), SAWITH6 AS (select distinct 3 as c1, D1.c10 as c2, D1.c9 as c3, D1.c8 as c4, D1.c7 as c5, D1.c6 as c6, D1.c5 as c7, D1.c4 as c8, D1.c11 as c9, D1.c12 as c10, D1.c13 as c11, D1.c14 as c12, D1.c3 as c13, NULL as c14, nvl(D1.c1 , 0) as c15, nvl(D1.c2 , 0) as c16, cast(NULL as DOUBLE PRECISION ) as c17, cast(NULL as DOUBLE PRECISION ) as c18, cast(NULL as DOUBLE PRECISION ) as c23, cast(NULL as DOUBLE PRECISION ) as c24, D1.c15 as c29 from SAWITH5 D1 where ( 0 < nvl(D1.c1 , 0) ) ), SAWITH7 AS ((select D1.c1 as c1, D1.c2 as c2, D1.c3 as c3, D1.c4 as c4, D1.c5 as c5, D1.c6 as c6, D1.c7 as c7, D1.c8 as c8, D1.c9 as c9, D1.c10 as c10, D1.c11 as c11, D1.c12 as c12, D1.c13 as c13, D1.c14 as c14, D1.c15 as c15, D1.c16 as c16, D1.c17 as c17, sum(D1.c15) over (partition by D1.c10, D1.c2, D1.c4, D1.c8, D1.c13) as c18, D1.c19 as c19, D1.c20 as c20, D1.c21 as c21, D1.c22 as c22, D1.c23 as c23, sum(D1.c15) over (partition by D1.c10, D1.c4, D1.c8, D1.c13) as c24, D1.c25 as c25, D1.c26 as c26, D1.c27 as c27, D1.c28 as c28 from SAWITH1 D1 union all select distinct 1 as c1, D1.c9 as c2, D1.c8 as c3, D1.c7 as c4, D1.c6 as c5, D1.c5 as c6, D1.c4 as c7, D1.c3 as c8, D1.c10 as c9, D1.c11 as c10, NULL as c11, D1.c12 as c12, D1.c2 as c13, NULL as c14, cast(NULL as DOUBLE PRECISION ) as c15, cast(NULL as DOUBLE PRECISION ) as c16, cast(NULL as DOUBLE PRECISION ) as c17, cast(NULL as DOUBLE PRECISION ) as c18, cast(NULL as DOUBLE PRECISION ) as c19, cast(NULL as DOUBLE PRECISION ) as c20, cast(NULL as DOUBLE PRECISION ) as c21, cast(NULL as DOUBLE PRECISION ) as c22, cast(NULL as DOUBLE PRECISION ) as c23, cast(NULL as DOUBLE PRECISION ) as c24, cast(NULL as DOUBLE PRECISION ) as c25, cast(NULL as DOUBLE PRECISION ) as c26, cast(NULL as DOUBLE PRECISION ) as c27, cast(NULL as DOUBLE PRECISION ) as c28 from SAWITH2 D1 where ( 0 < nvl(D1.c1 , 0) ) union all select D1.c1 as c1, D1.c2 as c2, D1.c3 as c3, D1.c4 as c4, D1.c5 as c5, D1.c6 as c6, D1.c7 as c7, D1.c8 as c8, D1.c9 as c9, D1.c10 as c10, D1.c11 as c11, D1.c12 as c12, D1.c13 as c13, D1.c14 as c14, D1.c15 as c15, D1.c16 as c16, sum(D1.c15) over (partition by D1.c10, D1.c2, D1.c3, D1.c4, D1.c8, D1.c13) as c17, sum(D1.c15) over (partition by D1.c10, D1.c2, D1.c4, D1.c8, D1.c13) as c18, D1.c19 as c19, D1.c20 as c20, D1.c21 as c21, D1.c22 as c22, sum(D1.c15) over (partition by D1.c10, D1.c3, D1.c4, D1.c8, D1.c13) as c23, sum(D1.c15) over (partition by D1.c10, D1.c4, D1.c8, D1.c13) as c24, D1.c25 as c25, D1.c26 as c26, D1.c27 as c27, D1.c28 as c28 from SAWITH4 D1 union all select D1.c1 as c1, D1.c2 as c2, D1.c3 as c3, D1.c4 as c4, D1.c5 as c5, D1.c6 as c6, D1.c7 as c7, D1.c8 as c8, D1.c9 as c9, D1.c10 as c10, D1.c11 as c11, D1.c12 as c12, D1.c13 as c13, D1.c14 as c14, D1.c15 as c15, D1.c16 as c16, D1.c17 as c17, D1.c18 as c18, sum(D1.c15) over (partition by D1.c12, D1.c10, D1.c9, D1.c2, D1.c4, D1.c5, D1.c8) as c19, sum(D1.c15) over (partition by D1.c10, D1.c9, D1.c2, D1.c4, D1.c8) as c20, sum(D1.c15) over (partition by D1.c12, D1.c10, D1.c9, D1.c2, D1.c4, D1.c8) as c21, sum(D1.c15) over (partition by D1.c12, D1.c10, D1.c9, D1.c2, D1.c4, D1.c5, D1.c6, D1.c7, D1.c8) as c22, D1.c23 as c23, D1.c24 as c24, sum(D1.c15) over (partition by D1.c12, D1.c10, D1.c9, D1.c4, D1.c5, D1.c8) as c25, sum(D1.c15) over (partition by D1.c10, D1.c9, D1.c4, D1.c8) as c26, sum(D1.c15) over (partition by D1.c12, D1.c10, D1.c9, D1.c4, D1.c8) as c27, sum(D1.c15) over (partition by D1.c12, D1.c10, D1.c9, D1.c4, D1.c5, D1.c6, D1.c7, D1.c8) as c28 from SAWITH6 D1)) select D1.c1 as c1, D1.c2 as c2, D1.c3 as c3, D1.c4 as c4, D1.c5 as c5, D1.c6 as c6, D1.c7 as c7, D1.c8 as c8, D1.c9 as c9, D1.c10 as c10, D1.c11 as c11, D1.c12 as c12, D1.c13 as c13, D1.c14 as c14, D1.c15 as c15, D1.c16 as c16, D1.c17 as c17, D1.c18 as c18, D1.c19 as c19, D1.c20 as c20, D1.c21 as c21, D1.c22 as c22, D1.c23 as c23, D1.c24 as c24, D1.c25 as c25, D1.c26 as c26, D1.c27 as c27, D1.c28 as c28 from ( select D1.c1 as c1, D1.c2 as c2, D1.c3 as c3, D1.c4 as c4, D1.c5 as c5, D1.c6 as c6, D1.c7 as c7, D1.c8 as c8, D1.c9 as c9, D1.c10 as c10, D1.c11 as c11, D1.c12 as c12, D1.c13 as c13, D1.c14 as c14, D1.c15 as c15, D1.c16 as c16, D1.c17 as c17, D1.c18 as c18, D1.c19 as c19, D1.c20 as c20, D1.c21 as c21, D1.c22 as c22, D1.c23 as c23, D1.c24 as c24, D1.c25 as c25, D1.c26 as c26, D1.c27 as c27, D1.c28 as c28 from SAWITH7 D1 order by c1, c10, c8, c4, c2, c13 ) D1 where rownum <= 5000001
6mcpb06rctk0xcall dbms_space.auto_space_advisor_job_proc ( )
7g0v4bq61a9t6INSERT /*+ APPEND */ INTO "FACT_SCANS_AGGR" (SUM_SCANS, SUM_SINCE_LAST_INSCAN, SUM_SINCE_LAST_OUTSCAN, SUM_SINCE_LAST_SCAN, DATE_CAL_MONTH_BASED, DATE_CAL_WEEK_BASED, DATE_FISCAL_BASED, BUSINESS_UNIT, ROUTE, CUSTOMER, WEARER_EMPLOYMENT, PRODUCT, TRANSACTION_TYPE, WORKSTATION, SYSTEM_USER, STAY, DEPARTMENT, REASON ) ( SELECT SUM(NUMBER_OF_SCANS) SUM_SCANS, SUM(DAYS_SINCE_LAST_INSCAN) SUM_SINCE_LAST_INSCAN, SUM(DAYS_SINCE_LAST_OUTSCAN) SUM_SINCE_LAST_OUTSCAN, SUM(DAYS_SINCE_LAST_SCAN) SUM_SINCE_LAST_SCAN, DATE_CAL_MONTH_BASED, DATE_CAL_WEEK_BASED, DATE_FISCAL_BASED, BUSINESS_UNIT, ROUTE, CUSTOMER, WEARER_EMPLOYMENT, PRODUCT, TRANSACTION_TYPE, WORKSTATION, SYSTEM_USER, STAY, DEPARTMENT, REASON FROM FACT_SCANS FS, DATE_CAL_WEEK_BASED TW WHERE TW.DIMENSION_KEY = FS.DATE_CAL_WEEK_BASED AND TW.DAY_SOURCE_ID >= TO_NUMBER(TO_CHAR(:B2 -:B1 , 'yyyymmdd')) GROUP BY DATE_CAL_MONTH_BASED, DATE_CAL_WEEK_BASED, DATE_FISCAL_BASED, BUSINESS_UNIT, ROUTE, CUSTOMER, WEARER_EMPLOYMENT, PRODUCT, TRANSACTION_TYPE, WORKSTATION, SYSTEM_USER, STAY, DEPARTMENT, REASON)
7g3rn4q29jr4m/* SQL Analyze(20, 1) */ WITH SAWITH0 AS (select sum(T12363.NOCHARGEPREVREJECTED) as c1, sum(T12363.QUANTITY_ORDERED) as c2, sum(T12363.SHORTAGE_QTY) as c3, sum(T12363.QUANTITY_DELIVERED) as c4, sum(T12363.REVENUE) as c5, sum(case when T6115.REASON_CODE = 'C7' then T12363.QUANTITY_DELIVERED end ) as c6, sum(case when T8754.WEEK_SEQ = T8754.CURRENT_WEEK_SEQ then T12363.QUANTITY_DELIVERED end ) as c7, sum(case when T6115.REASON_CODE = 'C7' and T8754.WEEK_SEQ = T8754.CURRENT_WEEK_SEQ then T12363.QUANTITY_DELIVERED end ) as c8, sum(case when T8754.CURRENT_WEEK_SEQ - 1 = T8754.WEEK_SEQ then T12363.QUANTITY_DELIVERED end ) as c9, sum(case when T8754.CURRENT_WEEK_SEQ - 1 = T8754.WEEK_SEQ and T6115.REASON_CODE = 'C7' then T12363.QUANTITY_DELIVERED end ) as c10, sum(case when T6115.REASON_DESCRIPTION = 'Unrecognised Shortages' and T24684.ORIGIN_NUMBER = 3 then T12363.QUANTITY_DELIVERED end ) as c11, sum(case when T24684.ORIGIN_NUMBER = 3 and T6115.REASON_CODE in ('C5', 'URS') then T12363.QUANTITY_DELIVERED end ) as c12, sum(case when T6115.REASON_DESCRIPTION = 'Short - Customer Notified' and T24684.ORIGIN_NUMBER = 3 then T12363.QUANTITY_DELIVERED end ) as c13, T5913.BUSINESS_UNIT_NAME as c14, T6063.PRODUCT_GROUP_DESCRIPTION as c15, T8754.DAY_OF_WEEK_NAME as c16, T8754.WEEK_NUMBER as c17, T8754.DAY_OF_WEEK_NUMBER as c18, T5913.DIMENSION_KEY as c19, T8754.WEEK_SOURCE_ID as c20, T8754.DAY_SOURCE_ID as c21, T6063.PRODUCT_GROUP_SOURCE_ID as c22 from DELIVERY_NOTE T24684, DATE_CAL_WEEK_BASED T8754, ( DIM_V_BUSINESS_UNIT T5913 inner join ( DIM_V_PRODUCT T6063 inner join FACT_DELIVERIES T12363 On T6063.DIMENSION_KEY = T12363.PRODUCT) On T5913.DIMENSION_KEY = T12363.BUSINESS_UNIT) left outer join REASON T6115 On T6115.DIMENSION_KEY = T12363.CORRECTIONREASON where ( T6063.PRODUCT_GROUP_DESCRIPTION not in ('Container', 'Direct Sales', 'Miscellaneous') and T5913.DIVISION = 'Johnsons Hotel Linen' and T8754.DIMENSION_KEY = T12363.DATE_CAL_WEEK_BASED and T12363.DELIVERY_NOTE = T24684.DIMENSION_KEY and T8754.WEEK_SEQ between T8754.CURRENT_WEEK_SEQ - 1 and T8754.CURRENT_WEEK_SEQ ) group by T5913.DIMENSION_KEY, T5913.BUSINESS_UNIT_NAME, T6063.PRODUCT_GROUP_SOURCE_ID, T6063.PRODUCT_GROUP_DESCRIPTION, T8754.WEEK_SOURCE_ID, T8754.WEEK_NUMBER, T8754.DAY_SOURCE_ID, T8754.DAY_OF_WEEK_NUMBER, T8754.DAY_OF_WEEK_NAME) select distinct 0 as c1, D1.c14 as c2, D1.c15 as c3, D1.c16 as c4, D1.c17 as c5, D1.c18 as c6, D1.c4 as c7, D1.c3 as c8, D1.c2 as c9, D1.c5 as c10, D1.c5 / nullif( nvl(D1.c4 , 0) - nvl(D1.c6 , 0), 0) as c11, floor(D1.c4 / nullif( D1.c2, 0)) * 100.0 as c12, floor((nvl(nvl(D1.c7 , 0) - nvl(D1.c8 , 0) , 0) - nvl(nvl(D1.c9 , 0) - nvl(D1.c10 , 0) , 0)) / nullif( nvl(nvl(D1.c9 , 0) - nvl(D1.c10 , 0) , 0), 0)) * 100.0 as c13, sum(D1.c4) over () * 1.0 as c14, (nvl(nvl(D1.c11 , 0) , 0) + nvl(nvl(D1.c12 , 0) , 0)) * -1 * 100.0 / nullif( D1.c2, 0) as c15, (nvl(-D1.c6 , 0) + nvl(D1.c1 , 0)) * 100.0 / nullif( nvl(-D1.c6 , 0) + D1.c4, 0) as c16, nvl(D1.c4 , 0) - nvl(D1.c6 , 0) as c17, nvl(-D1.c6 , 0) + nvl(D1.c1 , 0) as c18, (nvl(nvl(D1.c13 , 0) , 0) + nvl(nvl(D1.c11 , 0) , 0)) * -1 + nvl(D1.c3 , 0) as c19, nvl(D1.c3 * 100.0 / nullif( D1.c2, 0) , 0) as c20, nvl(D1.c12 * -1 , 0) as c21, nvl(nvl(D1.c7 , 0) - nvl(D1.c8 , 0) , 0) as c22, nvl(nvl(D1.c9 , 0) - nvl(D1.c10 , 0) , 0) as c23, nvl(nvl(D1.c7 , 0) - nvl(D1.c8 , 0) , 0) - nvl(nvl(D1.c9 , 0) - nvl(D1.c10 , 0) , 0) as c24, 0 as c25, 0 as c26, 0 as c27, 0 as c28, 0 as c29, 0 as c30, 0 as c31, 0 as c32, 0 as c33, 0 as c34, 0 as c35, 0 as c36, 0 as c37, 0 as c38, 0 as c39, 0 as c40, 0 as c41, 0 as c42, 0 as c43, 0 as c44, 0 as c45, 0 as c46, 0 as c47, 0 as c48, 0 as c49, 0 as c50, 0 as c51, 0 as c52, 0 as c53, 0 as c54, 0 as c55, 0 as c56, 0 as c57, 0 as c58, 0 as c59, 0 as c60, 0 as c61, 0 as c62, 0 as c63, D1.c19 as c64, D1.c22 as c65, D1.c21 as c66, D1.c20 as c67, D1.c6 as c68, D1.c7 as c69, D1.c8 as c70, D1.c9 as c71, D1.c10 as c72, D1.c11 as c73, D1.c12 as c74, D1.c1 as c75 from SAWITH0 D1 order by c5, c2, c64, c3, c67, c66, c6, c4, c65
7hqtfwfryzvt4insert into FACT_REALTIME_CUSTOMER_DATA select * from FACT_V_REALTIME_CUSTOMER_DATA4
8du95rruycqykcall ABSDATAWAREHOUSE.CALL_LOAD_REALTIME_CUST_DATA_DAILY ( )
8kk9yw7t318tsinsert into FACT_REALTIME_CUSTOMER_DATA select * from FACT_V_REALTIME_CUSTOMER_DTA21
9a7qyx2kq02vuDELETE FROM FACT_REALTIME_DATA F WHERE F.DATASET=:B1
9a89m4m7dd1ghcall ABSDATAWAREHOUSE.CALL_LOAD_REALTIME_CUST_DATA ( )
apwhfjtaqwvx1WITH SAWITH0 AS (select sum(T12363.QUANTITY_ORDERED) as c1, sum(T12363.NOCHARGEPREVREJECTED) as c2, sum(T12363.QUANTITY_DELIVERED) as c3, sum(T12363.REVENUE) as c4, sum(case when T6115.REASON_CODE = 'C7' then T12363.QUANTITY_DELIVERED end ) as c5, sum(case when T24684.ORIGIN_NUMBER = 3 and T6115.REASON_CODE in ('C5', 'URS') then T12363.QUANTITY_DELIVERED end ) as c6, sum(case when T6115.REASON_DESCRIPTION = 'Unrecognised Shortages' and T24684.ORIGIN_NUMBER = 3 then T12363.QUANTITY_DELIVERED end ) as c7, sum(case when T8705.YEAR in (2025) and T8705.MONTH_NAME_AND_YEAR in ('December 2025') then T12363.REVENUE end ) as c8, sum(case when T8705.YEAR in (2025) and T8705.MONTH_NAME_AND_YEAR in ('December 2025') then T12363.QUANTITY_DELIVERED end ) as c9, sum(case when T6115.REASON_CODE = 'C7' and T8705.YEAR in (2025) and T8705.MONTH_NAME_AND_YEAR in ('December 2025') then T12363.QUANTITY_DELIVERED end ) as c10, sum(case when T8705.YEAR in (2025) and T8705.MONTH_NAME_AND_YEAR in ('December 2025') then T12363.NOCHARGEPREVREJECTED end ) as c11, sum(case when T24684.ORIGIN_NUMBER = 3 and T6115.REASON_CODE in ('C5', 'URS') and T8705.YEAR in (2025) and T8705.MONTH_NAME_AND_YEAR in ('December 2025') then T12363.QUANTITY_DELIVERED end ) as c12, T5913.BUSINESS_UNIT_CODE as c13, T5913.BUSINESS_UNIT_NAME as c14, T8705.MONTH_NAME_AND_YEAR as c15, T8705.YEAR as c16, T8705.MONTH_SOURCE_ID as c17, T5913.DIMENSION_KEY as c18 from DELIVERY_NOTE T24684, DATE_CAL_MONTH_BASED T8705, ( DIM_V_BUSINESS_UNIT T5913 inner join ( DIM_V_PRODUCT T6063 inner join ( DIM_V_CUSTOMER T5959 inner join FACT_DELIVERIES T12363 On T5959.DIMENSION_KEY = T12363.CUSTOMER) On T6063.DIMENSION_KEY = T12363.PRODUCT) On T5913.DIMENSION_KEY = T12363.BUSINESS_UNIT) left outer join REASON T6115 On T6115.DIMENSION_KEY = T12363.CORRECTIONREASON where ( T6063.PRODUCT_GROUP_DESCRIPTION not in ('Container', 'Direct Sales', 'Miscellaneous') and T8705.DIMENSION_KEY = T12363.DATE_CAL_MONTH_BASED and T5913.DIVISION = 'Johnsons Hotel Linen' and T12363.DELIVERY_NOTE = T24684.DIMENSION_KEY and TO_DATE('2026-02-25' , 'YYYY-MM-DD') < T5959.DATE_INACTIVE and (T5913.BUSINESS_UNIT_CODE in ('0', '3030')) and (T8705.YEAR in (2025, 2026)) ) group by T5913.DIMENSION_KEY, T5913.BUSINESS_UNIT_CODE, T5913.BUSINESS_UNIT_NAME, T8705.YEAR, T8705.MONTH_SOURCE_ID, T8705.MONTH_NAME_AND_YEAR) select 0 as c1, D1.c13 as c2, D1.c14 as c3, D1.c15 as c4, D1.c16 as c5, D1.c17 as c6, D1.c4 as c7, nvl(D1.c4 / nullif( nvl(D1.c3 , 0) - nvl(D1.c5 , 0) - (nvl(-D1.c5 , 0) + nvl(D1.c2 , 0)), 0) * nvl(D1.c6 * -1 , 0) , 0) as c8, nvl((nvl(nvl(D1.c7 , 0) , 0) + nvl(nvl(D1.c6 , 0) , 0)) * -1 * 100.0 / nullif( D1.c1, 0) , 0) as c9, nvl(D1.c6 * -1 , 0) as c10, 0 as c11, 0 as c12, 0 as c13, 0 as c14, 0 as c15, 0 as c16, 0 as c17, 0 as c18, 0 as c19, 0 as c20, 0 as c21, D1.c18 as c22, D1.c7 as c23, D1.c6 as c24, D1.c1 as c25, nvl(D1.c8 / nullif( nvl(D1.c9 , 0) - nvl(D1.c10 , 0) - (nvl(-D1.c10 , 0) + nvl(D1.c11 , 0)), 0) * nvl(D1.c12 * -1 , 0) , 0) as c26 from SAWITH0 D1 order by c5, c2, c3, c22, c6, c4
as2dr3ag24gayselect not_stale.obj# from (select s.obj# obj#, count(*) cnt, max(timestamp) max_time from optstat_snapshot$ s, wri$_optstat_tab_history t where s.obj# = t.obj# and bitand(s.flags, :gather_stats_flag) > 0 and t.analyzetime = (select max(analyzetime) from wri$_optstat_tab_history where analyzetime < s.timestamp) and dbms_stats_internal.is_stale(s.obj#, null, null, s.inserts + s.updates + s.deletes, t.rowcnt, 0) is null group by s.obj#) not_stale, (select obj# obj#, count(*) cnt from optstat_snapshot$ where bitand(flags, :gather_stats_flag) > 0 group by obj#) total, (select obj#, max(timestamp) max_time from optstat_snapshot$ group by obj#) max where not_stale.obj# = total.obj# and not_stale.cnt > 0.5 * total.cnt and not_stale.obj# = max.obj# and not_stale.max_time = max.max_time and dbms_stats_internal.check_advisor_obj_filter(:rule_id, not_stale.obj#, :exec_mode) = 'T'
b0a30xjr88atmWITH OBISUBWITH0 AS (select D1.c1 as c1 from (select D1.c1 as c1, Case when D1.c2 is not null then Rank() OVER ( ORDER BY D1.c2) end as c2 from (select distinct D1.c2 as c1, D1.c2 as c2, D1.c2 as c3 from (select sum(T80629.NUMBER3) as c1, T5959.CUSTOMER_BUSINESS_UNIT_NAME as c2 from DIM_V_CUSTOMER T5959, FACT_V_REALTIME_CUSTOMER_DATA T80629 where ( T5959.DIMENSION_KEY = T80629.CUSTOMER and T80629.DATASET = 12 and (T5959.CUSTOMER_BUSINESS_UNIT_CODE in ('0', '3030')) and T5959.CUSTOMER_BUSINESS_UNIT_CODE >= '3000' ) group by T5959.CUSTOMER_BUSINESS_UNIT_NAME having 0 < nvl(sum(T80629.NUMBER3) , 0) ) D1 ) D1 ) D1 where ( D1.c2 <= 1 ) ), OBISUBWITH1 AS (select D1.c1 as c1 from (select D1.c1 as c1, Case when D1.c2 is not null then Rank() OVER ( ORDER BY D1.c2) end as c2 from (select distinct D1.c2 as c1, D1.c2 as c2, D1.c2 as c3 from (select sum(T80629.NUMBER3) as c1, T80629.DATE1 as c2 from DIM_V_CUSTOMER T5959, FACT_V_REALTIME_CUSTOMER_DATA T80629 where ( T5959.DIMENSION_KEY = T80629.CUSTOMER and T80629.DATASET = 12 and (T5959.CUSTOMER_BUSINESS_UNIT_CODE in ('0', '3030')) and T5959.CUSTOMER_BUSINESS_UNIT_CODE >= '3000' ) group by T80629.DATE1 having 0 < nvl(sum(T80629.NUMBER3) , 0) ) D1 ) D1 ) D1 where ( D1.c2 <= 1 ) ), SAWITH0 AS (select sum(T80629.NUMBER3) as c1, sum(case when not case when T80629.TEXT8 = 'Completed' then 'Completed' when T80629.TEXT8 in ('In Progress', 'New') then 'Packing notes' else 'Not generated' end = 'Completed' then T80629.NUMBER3 end ) as c2, case when T80629.TEXT8 = 'Completed' then 'Completed' when T80629.TEXT8 in ('In Progress', 'New') then 'Packing notes' else 'To be generated' end as c3, T80629.TEXT9 as c4, T80629.TEXT6 as c5, T80629.TEXT5 as c6, T80629.TEXT2 as c7, T80629.TEXT10 as c8, T80629.NUMBER1 as c9, T80629.DATE1 as c10, T5959.CUSTOMER_BUSINESS_UNIT_CODE as c11, T5959.CUSTOMER_BUSINESS_UNIT_NAME as c12, T5959.CUSTOMER_NUMBER as c13 from DIM_V_CUSTOMER T5959, FACT_V_REALTIME_CUSTOMER_DATA T80629 where ( T5959.DIMENSION_KEY = T80629.CUSTOMER and T80629.DATASET = 12 and (T5959.CUSTOMER_BUSINESS_UNIT_CODE in ('0', '3030')) and T5959.CUSTOMER_BUSINESS_UNIT_CODE >= '3000' ) group by T5959.CUSTOMER_NUMBER, T5959.CUSTOMER_BUSINESS_UNIT_CODE, T5959.CUSTOMER_BUSINESS_UNIT_NAME, T80629.TEXT2, T80629.TEXT5, T80629.TEXT6, T80629.TEXT9, T80629.TEXT10, T80629.DATE1, T80629.NUMBER1, case when T80629.TEXT8 = 'Completed' then 'Completed' when T80629.TEXT8 in ('In Progress', 'New') then 'Packing notes' else 'To be generated' end ), SAWITH1 AS (select distinct 0 as c1, D1.c10 as c2, D1.c9 as c3, D1.c8 as c4, D1.c7 as c5, D1.c6 as c6, D1.c5 as c7, D1.c4 as c8, D1.c11 as c9, D1.c12 as c10, D1.c13 as c11, D1.c3 as c12, NULL as c13, nvl(D1.c1 , 0) as c14, nvl(D1.c2 , 0) as c15, cast(NULL as DOUBLE PRECISION ) as c16, cast(NULL as DOUBLE PRECISION ) as c17, cast(NULL as DOUBLE PRECISION ) as c19, cast(NULL as DOUBLE PRECISION ) as c20 from SAWITH0 D1 where ( 0 < nvl(D1.c1 , 0) ) ), SAWITH2 AS (select sum(T80629.NUMBER3) as c1, case when T80629.TEXT8 = 'Completed' then 'Completed' when T80629.TEXT8 in ('In Progress', 'New') then 'Packing notes' else 'To be generated' end as c2, T80629.TEXT9 as c3, T80629.TEXT6 as c4, T80629.TEXT5 as c5, T80629.TEXT2 as c6, T80629.TEXT10 as c7, T80629.NUMBER1 as c8, T80629.DATE1 as c9, T5959.CUSTOMER_BUSINESS_UNIT_CODE as c10, T5959.CUSTOMER_BUSINESS_UNIT_NAME as c11, T5959.CUSTOMER_NUMBER as c12 from DIM_V_CUSTOMER T5959, FACT_V_REALTIME_CUSTOMER_DATA T80629 where ( T5959.DIMENSION_KEY = T80629.CUSTOMER and T80629.DATASET = 12 and (T5959.CUSTOMER_BUSINESS_UNIT_CODE in ('0', '3030')) and T5959.CUSTOMER_BUSINESS_UNIT_CODE >= '3000' ) group by T5959.CUSTOMER_NUMBER, T5959.CUSTOMER_BUSINESS_UNIT_CODE, T5959.CUSTOMER_BUSINESS_UNIT_NAME, T80629.TEXT2, T80629.TEXT5, T80629.TEXT6, T80629.TEXT9, T80629.TEXT10, T80629.DATE1, T80629.NUMBER1, case when T80629.TEXT8 = 'Completed' then 'Completed' when T80629.TEXT8 in ('In Progress', 'New') then 'Packing notes' else 'To be generated' end ), SAWITH3 AS (select sum(T80629.NUMBER3) as c1, sum(case when not case when T80629.TEXT8 = 'Completed' then 'Completed' when T80629.TEXT8 in ('In Progress', 'New') then 'Packing notes' else 'Not generated' end = 'Completed' then T80629.NUMBER3 end ) as c2, case when T80629.TEXT8 = 'Completed' then 'Completed' when T80629.TEXT8 in ('In Progress', 'New') then 'Packing notes' else 'To be generated' end as c3, T80629.TEXT9 as c4, T80629.TEXT6 as c5, T80629.TEXT5 as c6, T80629.TEXT2 as c7, T80629.TEXT10 as c8, T80629.NUMBER1 as c9, T80629.DATE1 as c10, T5959.CUSTOMER_BUSINESS_UNIT_CODE as c11, T5959.CUSTOMER_BUSINESS_UNIT_NAME as c12, T5959.CUSTOMER_NUMBER as c13 from DIM_V_CUSTOMER T5959, FACT_V_REALTIME_CUSTOMER_DATA T80629 where ( T5959.DIMENSION_KEY = T80629.CUSTOMER and T80629.DATASET = 12 and T5959.CUSTOMER_BUSINESS_UNIT_CODE >= '3000' and (T5959.CUSTOMER_BUSINESS_UNIT_CODE in ('0', '3030')) and T80629.DATE1 in (select distinct D1.c1 as c1 from OBISUBWITH1 D1) ) group by T5959.CUSTOMER_NUMBER, T5959.CUSTOMER_BUSINESS_UNIT_CODE, T5959.CUSTOMER_BUSINESS_UNIT_NAME, T80629.TEXT2, T80629.TEXT5, T80629.TEXT6, T80629.TEXT9, T80629.TEXT10, T80629.DATE1, T80629.NUMBER1, case when T80629.TEXT8 = 'Completed' then 'Completed' when T80629.TEXT8 in ('In Progress', 'New') then 'Packing notes' else 'To be generated' end ), SAWITH4 AS (select distinct 2 as c1, D1.c10 as c2, D1.c9 as c3, D1.c8 as c4, D1.c7 as c5, D1.c6 as c6, D1.c5 as c7, D1.c4 as c8, D1.c11 as c9, D1.c12 as c10, D1.c13 as c11, D1.c3 as c12, NULL as c13, nvl(D1.c1 , 0) as c14, nvl(D1.c2 , 0) as c15, cast(NULL as DOUBLE PRECISION ) as c17, cast(NULL as DOUBLE PRECISION ) as c19 from SAWITH3 D1 where ( 0 < nvl(D1.c1 , 0) ) ), SAWITH5 AS (select sum(T80629.NUMBER3) as c1, sum(case when not case when T80629.TEXT8 = 'Completed' then 'Completed' when T80629.TEXT8 in ('In Progress', 'New') then 'Packing notes' else 'Not generated' end = 'Completed' then T80629.NUMBER3 end ) as c2, case when T80629.TEXT8 = 'Completed' then 'Completed' when T80629.TEXT8 in ('In Progress', 'New') then 'Packing notes' else 'To be generated' end as c3, T80629.TEXT9 as c4, T80629.TEXT6 as c5, T80629.TEXT5 as c6, T80629.TEXT2 as c7, T80629.TEXT10 as c8, T80629.NUMBER1 as c9, T80629.DATE1 as c10, T5959.CUSTOMER_BUSINESS_UNIT_CODE as c11, T5959.CUSTOMER_BUSINESS_UNIT_NAME as c12, T5959.CUSTOMER_NUMBER as c13 from DIM_V_CUSTOMER T5959, FACT_V_REALTIME_CUSTOMER_DATA T80629 where ( T5959.DIMENSION_KEY = T80629.CUSTOMER and T80629.DATASET = 12 and T5959.CUSTOMER_BUSINESS_UNIT_CODE >= '3000' and (T5959.CUSTOMER_BUSINESS_UNIT_CODE in ('0', '3030')) and T5959.CUSTOMER_BUSINESS_UNIT_NAME in (select distinct D1.c1 as c1 from OBISUBWITH0 D1) ) group by T5959.CUSTOMER_NUMBER, T5959.CUSTOMER_BUSINESS_UNIT_CODE, T5959.CUSTOMER_BUSINESS_UNIT_NAME, T80629.TEXT2, T80629.TEXT5, T80629.TEXT6, T80629.TEXT9, T80629.TEXT10, T80629.DATE1, T80629.NUMBER1, case when T80629.TEXT8 = 'Completed' then 'Completed' when T80629.TEXT8 in ('In Progress', 'New') then 'Packing notes' else 'To be generated' end ), SAWITH6 AS (select distinct 3 as c1, D1.c10 as c2, D1.c9 as c3, D1.c8 as c4, D1.c7 as c5, D1.c6 as c6, D1.c5 as c7, D1.c4 as c8, D1.c11 as c9, D1.c12 as c10, D1.c13 as c11, D1.c3 as c12, NULL as c13, nvl(D1.c1 , 0) as c14, nvl(D1.c2 , 0) as c15, cast(NULL as DOUBLE PRECISION ) as c16, cast(NULL as DOUBLE PRECISION ) as c18, cast(NULL as DOUBLE PRECISION ) as c20, cast(NULL as DOUBLE PRECISION ) as c21 from SAWITH5 D1 where ( 0 < nvl(D1.c1 , 0) ) ), SAWITH7 AS ((select D1.c1 as c1, D1.c2 as c2, D1.c3 as c3, D1.c4 as c4, D1.c5 as c5, D1.c6 as c6, D1.c7 as c7, D1.c8 as c8, D1.c9 as c9, D1.c10 as c10, D1.c11 as c11, D1.c12 as c12, D1.c13 as c13, D1.c14 as c14, D1.c15 as c15, D1.c16 as c16, D1.c17 as c17, sum(D1.c14) over (partition by D1.c10, D1.c2, D1.c4, D1.c8, D1.c12) as c18, D1.c19 as c19, D1.c20 as c20, sum(D1.c14) over (partition by D1.c10, D1.c4, D1.c8, D1.c12) as c21 from SAWITH1 D1 union all select distinct 1 as c1, D1.c9 as c2, D1.c8 as c3, D1.c7 as c4, D1.c6 as c5, D1.c5 as c6, D1.c4 as c7, D1.c3 as c8, D1.c10 as c9, D1.c11 as c10, D1.c12 as c11, D1.c2 as c12, NULL as c13, cast(NULL as DOUBLE PRECISION ) as c14, cast(NULL as DOUBLE PRECISION ) as c15, cast(NULL as DOUBLE PRECISION ) as c16, cast(NULL as DOUBLE PRECISION ) as c17, cast(NULL as DOUBLE PRECISION ) as c18, cast(NULL as DOUBLE PRECISION ) as c19, cast(NULL as DOUBLE PRECISION ) as c20, cast(NULL as DOUBLE PRECISION ) as c21 from SAWITH2 D1 where ( 0 < nvl(D1.c1 , 0) ) union all select D1.c1 as c1, D1.c2 as c2, D1.c3 as c3, D1.c4 as c4, D1.c5 as c5, D1.c6 as c6, D1.c7 as c7, D1.c8 as c8, D1.c9 as c9, D1.c10 as c10, D1.c11 as c11, D1.c12 as c12, D1.c13 as c13, D1.c14 as c14, D1.c15 as c15, sum(D1.c14) over (partition by D1.c10, D1.c2, D1.c3, D1.c4, D1.c8, D1.c12) as c16, D1.c17 as c17, sum(D1.c14) over (partition by D1.c10, D1.c2, D1.c4, D1.c8, D1.c12) as c18, D1.c19 as c19, sum(D1.c14) over (partition by D1.c10, D1.c3, D1.c4, D1.c8, D1.c12) as c20, sum(D1.c14) over (partition by D1.c10, D1.c4, D1.c8, D1.c12) as c21 from SAWITH4 D1 union all select D1.c1 as c1, D1.c2 as c2, D1.c3 as c3, D1.c4 as c4, D1.c5 as c5, D1.c6 as c6, D1.c7 as c7, D1.c8 as c8, D1.c9 as c9, D1.c10 as c10, D1.c11 as c11, D1.c12 as c12, D1.c13 as c13, D1.c14 as c14, D1.c15 as c15, D1.c16 as c16, sum(D1.c14) over (partition by D1.c10, D1.c9, D1.c2, D1.c4, D1.c8, D1.c12) as c17, D1.c18 as c18, sum(D1.c14) over (partition by D1.c10, D1.c9, D1.c2, D1.c4, D1.c8) as c19, D1.c20 as c20, D1.c21 as c21 from SAWITH6 D1)) select D1.c1 as c1, D1.c2 as c2, D1.c3 as c3, D1.c4 as c4, D1.c5 as c5, D1.c6 as c6, D1.c7 as c7, D1.c8 as c8, D1.c9 as c9, D1.c10 as c10, D1.c11 as c11, D1.c12 as c12, D1.c13 as c13, D1.c14 as c14, D1.c15 as c15, D1.c16 as c16, D1.c17 as c17, D1.c18 as c18, D1.c19 as c19, D1.c20 as c20, D1.c21 as c21 from ( select D1.c1 as c1, D1.c2 as c2, D1.c3 as c3, D1.c4 as c4, D1.c5 as c5, D1.c6 as c6, D1.c7 as c7, D1.c8 as c8, D1.c9 as c9, D1.c10 as c10, D1.c11 as c11, D1.c12 as c12, D1.c13 as c13, D1.c14 as c14, D1.c15 as c15, D1.c16 as c16, D1.c17 as c17, D1.c18 as c18, D1.c19 as c19, D1.c20 as c20, D1.c21 as c21 from SAWITH7 D1 order by c1, c10, c8, c4, c2, c12 ) D1 where rownum <= 5000001
b4cfwuykk8w7jWITH OBISUBWITH0 AS (select D1.c1 as c1 from (select D1.c1 as c1, Case when D1.c2 is not null then Rank() OVER ( ORDER BY D1.c2) end as c2 from (select distinct D1.c2 as c1, D1.c2 as c2, D1.c2 as c3 from (select sum(T80629.NUMBER3) as c1, T5959.CUSTOMER_BUSINESS_UNIT_NAME as c2 from DIM_V_CUSTOMER T5959, FACT_V_REALTIME_CUSTOMER_DATA T80629 where ( T5959.DIMENSION_KEY = T80629.CUSTOMER and T80629.DATASET = 12 and (T5959.CUSTOMER_BUSINESS_UNIT_CODE in ('0', '3080')) and T5959.CUSTOMER_BUSINESS_UNIT_CODE >= '3000' ) group by T5959.CUSTOMER_BUSINESS_UNIT_NAME having 0 < nvl(sum(T80629.NUMBER3) , 0) ) D1 ) D1 ) D1 where ( D1.c2 <= 1 ) ), OBISUBWITH1 AS (select D1.c1 as c1 from (select D1.c1 as c1, Case when D1.c2 is not null then Rank() OVER ( ORDER BY D1.c2) end as c2 from (select distinct D1.c2 as c1, D1.c2 as c2, D1.c2 as c3 from (select sum(T80629.NUMBER3) as c1, T80629.DATE1 as c2 from DIM_V_CUSTOMER T5959, FACT_V_REALTIME_CUSTOMER_DATA T80629 where ( T5959.DIMENSION_KEY = T80629.CUSTOMER and T80629.DATASET = 12 and (T5959.CUSTOMER_BUSINESS_UNIT_CODE in ('0', '3080')) and T5959.CUSTOMER_BUSINESS_UNIT_CODE >= '3000' ) group by T80629.DATE1 having 0 < nvl(sum(T80629.NUMBER3) , 0) ) D1 ) D1 ) D1 where ( D1.c2 <= 1 ) ), SAWITH0 AS (select sum(T80629.NUMBER3) as c1, sum(case when not case when T80629.TEXT8 = 'Completed' then 'Completed' when T80629.TEXT8 in ('In Progress', 'New') then 'Packing notes' else 'Not generated' end = 'Completed' then T80629.NUMBER3 end ) as c2, case when T80629.TEXT8 = 'Completed' then 'Completed' when T80629.TEXT8 in ('In Progress', 'New') then 'Packing notes' else 'To be generated' end as c3, T80629.TEXT9 as c4, T80629.TEXT6 as c5, T80629.TEXT5 as c6, T80629.TEXT2 as c7, T80629.TEXT10 as c8, T80629.NUMBER1 as c9, T80629.DATE1 as c10, T5959.CUSTOMER_BUSINESS_UNIT_CODE as c11, T5959.CUSTOMER_BUSINESS_UNIT_NAME as c12, T5959.CUSTOMER_NUMBER as c13 from DIM_V_CUSTOMER T5959, FACT_V_REALTIME_CUSTOMER_DATA T80629 where ( T5959.DIMENSION_KEY = T80629.CUSTOMER and T80629.DATASET = 12 and (T5959.CUSTOMER_BUSINESS_UNIT_CODE in ('0', '3080')) and T5959.CUSTOMER_BUSINESS_UNIT_CODE >= '3000' ) group by T5959.CUSTOMER_NUMBER, T5959.CUSTOMER_BUSINESS_UNIT_CODE, T5959.CUSTOMER_BUSINESS_UNIT_NAME, T80629.TEXT2, T80629.TEXT5, T80629.TEXT6, T80629.TEXT9, T80629.TEXT10, T80629.DATE1, T80629.NUMBER1, case when T80629.TEXT8 = 'Completed' then 'Completed' when T80629.TEXT8 in ('In Progress', 'New') then 'Packing notes' else 'To be generated' end ), SAWITH1 AS (select distinct 0 as c1, D1.c10 as c2, D1.c9 as c3, D1.c8 as c4, D1.c7 as c5, D1.c6 as c6, D1.c5 as c7, D1.c4 as c8, D1.c11 as c9, D1.c12 as c10, D1.c13 as c11, D1.c3 as c12, NULL as c13, nvl(D1.c1 , 0) as c14, nvl(D1.c2 , 0) as c15, cast(NULL as DOUBLE PRECISION ) as c16, cast(NULL as DOUBLE PRECISION ) as c17, cast(NULL as DOUBLE PRECISION ) as c19, cast(NULL as DOUBLE PRECISION ) as c20 from SAWITH0 D1 where ( 0 < nvl(D1.c1 , 0) ) ), SAWITH2 AS (select sum(T80629.NUMBER3) as c1, case when T80629.TEXT8 = 'Completed' then 'Completed' when T80629.TEXT8 in ('In Progress', 'New') then 'Packing notes' else 'To be generated' end as c2, T80629.TEXT9 as c3, T80629.TEXT6 as c4, T80629.TEXT5 as c5, T80629.TEXT2 as c6, T80629.TEXT10 as c7, T80629.NUMBER1 as c8, T80629.DATE1 as c9, T5959.CUSTOMER_BUSINESS_UNIT_CODE as c10, T5959.CUSTOMER_BUSINESS_UNIT_NAME as c11, T5959.CUSTOMER_NUMBER as c12 from DIM_V_CUSTOMER T5959, FACT_V_REALTIME_CUSTOMER_DATA T80629 where ( T5959.DIMENSION_KEY = T80629.CUSTOMER and T80629.DATASET = 12 and (T5959.CUSTOMER_BUSINESS_UNIT_CODE in ('0', '3080')) and T5959.CUSTOMER_BUSINESS_UNIT_CODE >= '3000' ) group by T5959.CUSTOMER_NUMBER, T5959.CUSTOMER_BUSINESS_UNIT_CODE, T5959.CUSTOMER_BUSINESS_UNIT_NAME, T80629.TEXT2, T80629.TEXT5, T80629.TEXT6, T80629.TEXT9, T80629.TEXT10, T80629.DATE1, T80629.NUMBER1, case when T80629.TEXT8 = 'Completed' then 'Completed' when T80629.TEXT8 in ('In Progress', 'New') then 'Packing notes' else 'To be generated' end ), SAWITH3 AS (select sum(T80629.NUMBER3) as c1, sum(case when not case when T80629.TEXT8 = 'Completed' then 'Completed' when T80629.TEXT8 in ('In Progress', 'New') then 'Packing notes' else 'Not generated' end = 'Completed' then T80629.NUMBER3 end ) as c2, case when T80629.TEXT8 = 'Completed' then 'Completed' when T80629.TEXT8 in ('In Progress', 'New') then 'Packing notes' else 'To be generated' end as c3, T80629.TEXT9 as c4, T80629.TEXT6 as c5, T80629.TEXT5 as c6, T80629.TEXT2 as c7, T80629.TEXT10 as c8, T80629.NUMBER1 as c9, T80629.DATE1 as c10, T5959.CUSTOMER_BUSINESS_UNIT_CODE as c11, T5959.CUSTOMER_BUSINESS_UNIT_NAME as c12, T5959.CUSTOMER_NUMBER as c13 from DIM_V_CUSTOMER T5959, FACT_V_REALTIME_CUSTOMER_DATA T80629 where ( T5959.DIMENSION_KEY = T80629.CUSTOMER and T80629.DATASET = 12 and T5959.CUSTOMER_BUSINESS_UNIT_CODE >= '3000' and (T5959.CUSTOMER_BUSINESS_UNIT_CODE in ('0', '3080')) and T80629.DATE1 in (select distinct D1.c1 as c1 from OBISUBWITH1 D1) ) group by T5959.CUSTOMER_NUMBER, T5959.CUSTOMER_BUSINESS_UNIT_CODE, T5959.CUSTOMER_BUSINESS_UNIT_NAME, T80629.TEXT2, T80629.TEXT5, T80629.TEXT6, T80629.TEXT9, T80629.TEXT10, T80629.DATE1, T80629.NUMBER1, case when T80629.TEXT8 = 'Completed' then 'Completed' when T80629.TEXT8 in ('In Progress', 'New') then 'Packing notes' else 'To be generated' end ), SAWITH4 AS (select distinct 2 as c1, D1.c10 as c2, D1.c9 as c3, D1.c8 as c4, D1.c7 as c5, D1.c6 as c6, D1.c5 as c7, D1.c4 as c8, D1.c11 as c9, D1.c12 as c10, D1.c13 as c11, D1.c3 as c12, NULL as c13, nvl(D1.c1 , 0) as c14, nvl(D1.c2 , 0) as c15, cast(NULL as DOUBLE PRECISION ) as c17, cast(NULL as DOUBLE PRECISION ) as c19 from SAWITH3 D1 where ( 0 < nvl(D1.c1 , 0) ) ), SAWITH5 AS (select sum(T80629.NUMBER3) as c1, sum(case when not case when T80629.TEXT8 = 'Completed' then 'Completed' when T80629.TEXT8 in ('In Progress', 'New') then 'Packing notes' else 'Not generated' end = 'Completed' then T80629.NUMBER3 end ) as c2, case when T80629.TEXT8 = 'Completed' then 'Completed' when T80629.TEXT8 in ('In Progress', 'New') then 'Packing notes' else 'To be generated' end as c3, T80629.TEXT9 as c4, T80629.TEXT6 as c5, T80629.TEXT5 as c6, T80629.TEXT2 as c7, T80629.TEXT10 as c8, T80629.NUMBER1 as c9, T80629.DATE1 as c10, T5959.CUSTOMER_BUSINESS_UNIT_CODE as c11, T5959.CUSTOMER_BUSINESS_UNIT_NAME as c12, T5959.CUSTOMER_NUMBER as c13 from DIM_V_CUSTOMER T5959, FACT_V_REALTIME_CUSTOMER_DATA T80629 where ( T5959.DIMENSION_KEY = T80629.CUSTOMER and T80629.DATASET = 12 and T5959.CUSTOMER_BUSINESS_UNIT_CODE >= '3000' and (T5959.CUSTOMER_BUSINESS_UNIT_CODE in ('0', '3080')) and T5959.CUSTOMER_BUSINESS_UNIT_NAME in (select distinct D1.c1 as c1 from OBISUBWITH0 D1) ) group by T5959.CUSTOMER_NUMBER, T5959.CUSTOMER_BUSINESS_UNIT_CODE, T5959.CUSTOMER_BUSINESS_UNIT_NAME, T80629.TEXT2, T80629.TEXT5, T80629.TEXT6, T80629.TEXT9, T80629.TEXT10, T80629.DATE1, T80629.NUMBER1, case when T80629.TEXT8 = 'Completed' then 'Completed' when T80629.TEXT8 in ('In Progress', 'New') then 'Packing notes' else 'To be generated' end ), SAWITH6 AS (select distinct 3 as c1, D1.c10 as c2, D1.c9 as c3, D1.c8 as c4, D1.c7 as c5, D1.c6 as c6, D1.c5 as c7, D1.c4 as c8, D1.c11 as c9, D1.c12 as c10, D1.c13 as c11, D1.c3 as c12, NULL as c13, nvl(D1.c1 , 0) as c14, nvl(D1.c2 , 0) as c15, cast(NULL as DOUBLE PRECISION ) as c16, cast(NULL as DOUBLE PRECISION ) as c18, cast(NULL as DOUBLE PRECISION ) as c20, cast(NULL as DOUBLE PRECISION ) as c21 from SAWITH5 D1 where ( 0 < nvl(D1.c1 , 0) ) ), SAWITH7 AS ((select D1.c1 as c1, D1.c2 as c2, D1.c3 as c3, D1.c4 as c4, D1.c5 as c5, D1.c6 as c6, D1.c7 as c7, D1.c8 as c8, D1.c9 as c9, D1.c10 as c10, D1.c11 as c11, D1.c12 as c12, D1.c13 as c13, D1.c14 as c14, D1.c15 as c15, D1.c16 as c16, D1.c17 as c17, sum(D1.c14) over (partition by D1.c10, D1.c2, D1.c4, D1.c8, D1.c12) as c18, D1.c19 as c19, D1.c20 as c20, sum(D1.c14) over (partition by D1.c10, D1.c4, D1.c8, D1.c12) as c21 from SAWITH1 D1 union all select distinct 1 as c1, D1.c9 as c2, D1.c8 as c3, D1.c7 as c4, D1.c6 as c5, D1.c5 as c6, D1.c4 as c7, D1.c3 as c8, D1.c10 as c9, D1.c11 as c10, D1.c12 as c11, D1.c2 as c12, NULL as c13, cast(NULL as DOUBLE PRECISION ) as c14, cast(NULL as DOUBLE PRECISION ) as c15, cast(NULL as DOUBLE PRECISION ) as c16, cast(NULL as DOUBLE PRECISION ) as c17, cast(NULL as DOUBLE PRECISION ) as c18, cast(NULL as DOUBLE PRECISION ) as c19, cast(NULL as DOUBLE PRECISION ) as c20, cast(NULL as DOUBLE PRECISION ) as c21 from SAWITH2 D1 where ( 0 < nvl(D1.c1 , 0) ) union all select D1.c1 as c1, D1.c2 as c2, D1.c3 as c3, D1.c4 as c4, D1.c5 as c5, D1.c6 as c6, D1.c7 as c7, D1.c8 as c8, D1.c9 as c9, D1.c10 as c10, D1.c11 as c11, D1.c12 as c12, D1.c13 as c13, D1.c14 as c14, D1.c15 as c15, sum(D1.c14) over (partition by D1.c10, D1.c2, D1.c3, D1.c4, D1.c8, D1.c12) as c16, D1.c17 as c17, sum(D1.c14) over (partition by D1.c10, D1.c2, D1.c4, D1.c8, D1.c12) as c18, D1.c19 as c19, sum(D1.c14) over (partition by D1.c10, D1.c3, D1.c4, D1.c8, D1.c12) as c20, sum(D1.c14) over (partition by D1.c10, D1.c4, D1.c8, D1.c12) as c21 from SAWITH4 D1 union all select D1.c1 as c1, D1.c2 as c2, D1.c3 as c3, D1.c4 as c4, D1.c5 as c5, D1.c6 as c6, D1.c7 as c7, D1.c8 as c8, D1.c9 as c9, D1.c10 as c10, D1.c11 as c11, D1.c12 as c12, D1.c13 as c13, D1.c14 as c14, D1.c15 as c15, D1.c16 as c16, sum(D1.c14) over (partition by D1.c10, D1.c9, D1.c2, D1.c4, D1.c8, D1.c12) as c17, D1.c18 as c18, sum(D1.c14) over (partition by D1.c10, D1.c9, D1.c2, D1.c4, D1.c8) as c19, D1.c20 as c20, D1.c21 as c21 from SAWITH6 D1)) select D1.c1 as c1, D1.c2 as c2, D1.c3 as c3, D1.c4 as c4, D1.c5 as c5, D1.c6 as c6, D1.c7 as c7, D1.c8 as c8, D1.c9 as c9, D1.c10 as c10, D1.c11 as c11, D1.c12 as c12, D1.c13 as c13, D1.c14 as c14, D1.c15 as c15, D1.c16 as c16, D1.c17 as c17, D1.c18 as c18, D1.c19 as c19, D1.c20 as c20, D1.c21 as c21 from ( select D1.c1 as c1, D1.c2 as c2, D1.c3 as c3, D1.c4 as c4, D1.c5 as c5, D1.c6 as c6, D1.c7 as c7, D1.c8 as c8, D1.c9 as c9, D1.c10 as c10, D1.c11 as c11, D1.c12 as c12, D1.c13 as c13, D1.c14 as c14, D1.c15 as c15, D1.c16 as c16, D1.c17 as c17, D1.c18 as c18, D1.c19 as c19, D1.c20 as c20, D1.c21 as c21 from SAWITH7 D1 order by c1, c10, c8, c4, c2, c12 ) D1 where rownum <= 5000001
b6usrg82hwsa3call dbms_stats.gather_database_stats_job_proc ( )
b9nbhsbx8tqz5SELECT /*+ OPT_PARAM('_parallel_syspls_obey_force' 'false') */ SPARE4 FROM SYS.OPTSTAT_HIST_CONTROL$ WHERE SNAME = :B1
brab8cr5yc1jfSELECT /*+ */ "WEEK_ID", "BUSINESS_UNIT_ID", "TARGET_TYPE", "TARGET" FROM "ABSDWHSTAGING"."V_STFACT_WKLY_BU_TARGETS" "V_STFACT_WKLY_BU_TARGETS"
bxpcry2tpc217select /*+ opt_param('parallel_execution_enabled', 'false') EXEC_FROM_DBMS_XPLAN */ * from gv$all_sql_plan where 1=0
c0874a95q5fr1BEGIN load_staging.main; END;
c3w87bxryvmn7/* SQL Analyze(392, 1) */ WITH SAWITH0 AS (select sum(T12363.NOCHARGEPREVREJECTED) as c1, sum(T12363.QUANTITY_ORDERED) as c2, sum(T12363.SHORTAGE_QTY) as c3, sum(T12363.QUANTITY_DELIVERED) as c4, sum(T12363.REVENUE) as c5, sum(case when T6115.REASON_CODE = 'C7' then T12363.QUANTITY_DELIVERED end ) as c6, sum(case when T6115.REASON_DESCRIPTION = 'Unrecognised Shortages' and T24684.ORIGIN_NUMBER = 3 then T12363.QUANTITY_DELIVERED end ) as c7, sum(case when T24684.ORIGIN_NUMBER = 3 and T6115.REASON_CODE in ('C5', 'URS') then T12363.QUANTITY_DELIVERED end ) as c8, T78298.CONS_POINT_DESCRIPTION as c9, T6063.PRODUCT_CODE as c10, T6063.PRODUCT_DESCRIPTION as c11, T5959.NUMBER1 as c12, T5959.STRING7 as c13, T5959.NAME as c14, T8705.DAY as c15, T8705.MONTH_NAME_AND_YEAR as c16, T5959.CUSTOMER_NUMBER as c17, T8705.MONTH_SOURCE_ID as c18, T6063.PRODUCT_SOURCE_ID as c19, T8705.DAY_SOURCE_ID as c20, T5959.DIMENSION_KEY as c21, T78298.CONS_POINT_SOURCE_ID as c22 from DIM_V_DEPARTMENT T78298, DELIVERY_NOTE T24684, DATE_CAL_MONTH_BASED T8705, ( DIM_V_BUSINESS_UNIT T5913 inner join ( DIM_V_PRODUCT T6063 inner join ( DIM_V_CUSTOMER T5959 inner join FACT_DELIVERIES T12363 On T5959.DIMENSION_KEY = T12363.CUSTOMER) On T6063.DIMENSION_KEY = T12363.PRODUCT) On T5913.DIMENSION_KEY = T12363.BUSINESS_UNIT) left outer join REASON T6115 On T6115.DIMENSION_KEY = T12363.CORRECTIONREASON where ( T6063.PRODUCT_GROUP_DESCRIPTION not in ('Container', 'Direct Sales', 'Miscellaneous') and T8705.DIMENSION_KEY = T12363.DATE_CAL_MONTH_BASED and T12363.DELIVERY_NOTE = T24684.DIMENSION_KEY and T5913.DIVISION = 'Johnsons Hotel Linen' and T12363.DEPARTMENT = T78298.DIMENSION_KEY and (T5913.BUSINESS_UNIT_CODE in ('0', '3040')) ) group by T5959.DIMENSION_KEY, T5959.CUSTOMER_NUMBER, T5959.NAME, T5959.STRING7, T5959.NUMBER1, T6063.PRODUCT_SOURCE_ID, T6063.PRODUCT_CODE, T6063.PRODUCT_DESCRIPTION, T8705.MONTH_SOURCE_ID, T8705.MONTH_NAME_AND_YEAR, T8705.DAY_SOURCE_ID, T8705.DAY, T78298.CONS_POINT_SOURCE_ID, T78298.CONS_POINT_DESCRIPTION) select 0 as c1, D1.c9 as c2, D1.c10 as c3, D1.c11 as c4, D1.c12 as c5, D1.c13 as c6, D1.c14 as c7, D1.c15 as c8, D1.c16 as c9, D1.c17 as c10, D1.c18 as c11, D1.c4 as c12, D1.c3 as c13, D1.c5 as c14, D1.c5 / nullif( nvl(D1.c4 , 0) - nvl(D1.c6 , 0), 0) as c15, 0 as c16, 0 as c17, 0 as c18, 0 as c19, (nvl(nvl(D1.c7 , 0) , 0) + nvl(nvl(D1.c8 , 0) , 0)) * -1 * 100.0 / nullif( D1.c2, 0) as c20, (nvl(-D1.c6 , 0) + nvl(D1.c1 , 0)) * 100.0 / nullif( nvl(-D1.c6 , 0) + D1.c4, 0) as c21, nvl(D1.c4 , 0) - nvl(D1.c6 , 0) as c22, nvl(-D1.c6 , 0) + nvl(D1.c1 , 0) as c23, nvl(D1.c3 * 100.0 / nullif( D1.c2, 0) , 0) as c24, nvl(D1.c8 * -1 , 0) as c25, 0 as c26, 0 as c27, 0 as c28, 0 as c29, 0 as c30, 0 as c31, 0 as c32, 0 as c33, 0 as c34, 0 as c35, 0 as c36, 0 as c37, 0 as c38, 0 as c39, 0 as c40, 0 as c41, 0 as c42, 0 as c43, 0 as c44, 0 as c45, 0 as c46, 0 as c47, 0 as c48, 0 as c49, 0 as c50, 0 as c51, 0 as c52, 0 as c53, 0 as c54, 0 as c55, 0 as c56, 0 as c57, 0 as c58, 0 as c59, 0 as c60, 0 as c61, 0 as c62, 0 as c63, 0 as c64, D1.c19 as c65, D1.c20 as c66, D1.c21 as c67, D1.c22 as c68, D1.c6 as c69, D1.c7 as c70, D1.c8 as c71, D1.c2 as c72, D1.c1 as c73 from SAWITH0 D1 order by c10, c9, c2, c5, c6, c4, c3, c67, c65, c11, c66, c8, c7, c68
cawm4m974z436 BEGIN SYS.KUPW$WORKER.MAIN('SYS_EXPORT_SCHEMA_09', 'ABSDATAWAREHOUSE', 0, 0); END;
cpqph43y6ccq8SELECT /* OPT_DYN_SAMP */ /*+ ALL_ROWS IGNORE_WHERE_CLAUSE RESULT_CACHE(SNAPSHOT=3600) opt_param('parallel_execution_enabled', 'false') NO_PARALLEL(SAMPLESUB) NO_PARALLEL_INDEX(SAMPLESUB) NO_SQL_TUNE */ NVL(SUM(C1), :"SYS_B_00"), NVL(SUM(C2), :"SYS_B_01"), NVL(SUM(C3), :"SYS_B_02"), NVL(SUM(C4), :"SYS_B_03") FROM (SELECT /*+ IGNORE_WHERE_CLAUSE NO_PARALLEL("V") FULL("V") NO_PARALLEL_INDEX("V") */ :"SYS_B_04" AS C1, CASE WHEN "V"."DATASET"=:"SYS_B_05" THEN :"SYS_B_06" ELSE :"SYS_B_07" END AS C2, CASE WHEN "V"."DATASET"=:"SYS_B_08" THEN :"SYS_B_09" ELSE :"SYS_B_10" END AS C3, CASE WHEN "V"."DATASET"=:"SYS_B_11" THEN :"SYS_B_12" ELSE :"SYS_B_13" END AS C4 FROM "ABSDATAWAREHOUSE"."FACT_REALTIME_CUSTOMER_DATA" SAMPLE BLOCK (:"SYS_B_14" , :"SYS_B_15") SEED (:"SYS_B_16") "V") SAMPLESUB
dcu3y38pfhrbaWITH SAWITH0 AS (select sum(T12363.NOCHARGEPREVREJECTED) as c1, sum(T12363.QUANTITY_DELIVERED) as c2, sum(T12363.QUANTITY_ORDERED) as c3, sum(T12363.SHORTAGE_QTY) as c4, sum(T12363.REVENUE) as c5, sum(T12363.WEIGHT_DELIVERED) as c6, sum(case when T6115.REASON_CODE = 'C7' then T12363.QUANTITY_DELIVERED end ) as c7, sum(case when T6115.REASON_DESCRIPTION = 'Short - Customer Notified' and T24684.ORIGIN_NUMBER = 3 then T12363.QUANTITY_DELIVERED end ) as c8, sum(case when T6115.REASON_DESCRIPTION = 'Unrecognised Shortages' and T24684.ORIGIN_NUMBER = 3 then T12363.QUANTITY_DELIVERED end ) as c9, sum(case when T24684.ORIGIN_NUMBER = 3 and T6115.REASON_CODE in ('C5', 'URS') then T12363.QUANTITY_DELIVERED end ) as c10, T5913.BUSINESS_UNIT_NAME as c11, T8754.WEEK_NUMBER as c12, T8754.YEAR as c13, T5913.DIMENSION_KEY as c14, T8754.WEEK_SOURCE_ID as c15 from DELIVERY_NOTE T24684, DATE_CAL_WEEK_BASED T8754, ( DIM_V_BUSINESS_UNIT T5913 inner join ( DIM_V_PRODUCT T6063 inner join FACT_DELIVERIES T12363 On T6063.DIMENSION_KEY = T12363.PRODUCT) On T5913.DIMENSION_KEY = T12363.BUSINESS_UNIT) left outer join REASON T6115 On T6115.DIMENSION_KEY = T12363.CORRECTIONREASON where ( T6063.PRODUCT_GROUP_DESCRIPTION not in ('Container', 'Direct Sales', 'Miscellaneous') and T5913.DIVISION = 'Johnsons Hotel Linen' and T8754.DIMENSION_KEY = T12363.DATE_CAL_WEEK_BASED and T12363.DELIVERY_NOTE = T24684.DIMENSION_KEY and T8754.WEEK_SEQ between T8754.CURRENT_WEEK_SEQ - 13 and T8754.CURRENT_WEEK_SEQ - 1 ) group by T5913.DIMENSION_KEY, T5913.BUSINESS_UNIT_NAME, T8754.YEAR, T8754.WEEK_SOURCE_ID, T8754.WEEK_NUMBER), SAWITH1 AS (select sum(case when T46200.TARGET_TYPE = 'Rev_Del' then T58674.TARGET end ) as c1, sum(case when T46200.TARGET_TYPE = 'PCS_DEL' then T58674.TARGET end ) as c2, sum(case when T46200.TARGET_TYPE = 'PCS_DELFC3' then T58674.TARGET end ) as c3, sum(case when T46200.TARGET_TYPE = 'Rev_DelFC3' then T58674.TARGET end ) as c4, sum(case when T46200.TARGET_TYPE = 'PCS_DELFC1' then T58674.TARGET end ) as c5, sum(case when T46200.TARGET_TYPE = 'Rev_DelFC1' then T58674.TARGET end ) as c6, T5913.BUSINESS_UNIT_NAME as c7, T8754.WEEK_NUMBER as c8, T8754.YEAR as c9, T5913.DIMENSION_KEY as c10, T8754.WEEK_SOURCE_ID as c11 from TARGET_TYPE T46200, DATE_CAL_WEEK_BASED T8754, DIM_V_BUSINESS_UNIT T5913, FACT_WKLY_BU_TARGETS T58674 where ( T5913.DIMENSION_KEY = T58674.BUSINESS_UNIT and T5913.DIVISION = 'Johnsons Hotel Linen' and T8754.DIMENSION_KEY = T58674.DATE_CAL_WEEK_BASED and T46200.DIMENSION_KEY = T58674.TARGET_TYPE and (T46200.TARGET_TYPE in ('PCS_DEL', 'PCS_DELFC1', 'PCS_DELFC3', 'Rev_Del', 'Rev_DelFC1', 'Rev_DelFC3')) and T8754.WEEK_SEQ between T8754.CURRENT_WEEK_SEQ - 13 and T8754.CURRENT_WEEK_SEQ - 1 ) group by T5913.DIMENSION_KEY, T5913.BUSINESS_UNIT_NAME, T8754.YEAR, T8754.WEEK_SOURCE_ID, T8754.WEEK_NUMBER), SAWITH2 AS (select 0 as c1, coalesce( D1.c11, D2.c7) as c2, coalesce( D1.c12, D2.c8) as c3, coalesce( D1.c13, D2.c9) as c4, D1.c2 as c5, D1.c3 as c6, D1.c4 as c7, D1.c5 as c8, D1.c5 - D2.c1 as c9, D1.c5 / nullif( nvl(D1.c2 , 0) - nvl(D1.c7 , 0), 0) as c10, D1.c6 as c11, D1.c6 / nullif( D1.c2, 0) as c12, floor(D1.c2 / nullif( D1.c3, 0)) * 100.0 as c13, nvl(D1.c2 , 0) - nvl(D1.c7 , 0) - D2.c2 as c14, floor(((nvl(nvl(D1.c8 , 0) , 0) + nvl(nvl(D1.c9 , 0) , 0)) * -1 + nvl(D1.c4 , 0)) / nullif( D1.c2, 0)) * 100.0 as c15, 0 as c16, 0 as c17, (D1.c2 - D2.c3) * 100.0 / nullif( D2.c3, 0) as c19, (D1.c5 - D2.c1) * 100.0 / nullif( D2.c1, 0) as c20, (D1.c5 - D2.c4) / nullif( D2.c4, 0) * 100.0 as c21, (nvl(nvl(D1.c9 , 0) , 0) + nvl(nvl(D1.c10 , 0) , 0)) * -1 * 100.0 / nullif( D1.c3, 0) as c22, (nvl(D1.c2 , 0) - nvl(D1.c7 , 0) - D2.c2) * 100.0 / nullif( D2.c2, 0) as c23, (nvl(-D1.c7 , 0) + nvl(D1.c1 , 0)) * 100.0 / nullif( nvl(-D1.c7 , 0) + D1.c2, 0) as c24, D2.c2 as c25, D2.c5 as c26, D2.c3 as c27, D2.c1 as c28, D2.c6 as c29, D2.c4 as c30, nvl(D1.c2 , 0) - nvl(D1.c7 , 0) as c31, nvl(-D1.c7 , 0) + nvl(D1.c1 , 0) as c32, (nvl(nvl(D1.c8 , 0) , 0) + nvl(nvl(D1.c9 , 0) , 0)) * -1 + nvl(D1.c4 , 0) as c33, nvl(-D1.c7 , 0) as c34, nvl(D1.c4 * 100.0 / nullif( D1.c3, 0) , 0) as c35, nvl(nvl(-D1.c7 , 0) * 100.0 / nullif( D1.c2 - D1.c7, 0) , 0) as c36, nvl(D1.c10 * -1 , 0) as c37, 0 as c38, 0 as c39, 0 as c40, 0 as c41, 0 as c42, 0 as c43, 0 as c44, 0 as c45, 0 as c46, 0 as c47, 0 as c48, 0 as c49, 0 as c50, coalesce( D1.c14, D2.c10) as c51, coalesce( D1.c15, D2.c11) as c52, D1.c7 as c53, D1.c9 as c54, D1.c10 as c55, D1.c1 as c56, ROW_NUMBER() OVER (PARTITION BY coalesce( D1.c12, D2.c8), coalesce( D1.c11, D2.c7), coalesce( D1.c13, D2.c9), coalesce( D1.c14, D2.c10), coalesce( D1.c15, D2.c11) ORDER BY coalesce( D1.c12, D2.c8) DESC, coalesce( D1.c11, D2.c7) DESC, coalesce( D1.c13, D2.c9) DESC, coalesce( D1.c14, D2.c10) DESC, coalesce( D1.c15, D2.c11) DESC) as c58 from SAWITH0 D1 left outer join SAWITH1 D2 On SYS_OP_MAP_NONNULL(D1.c12) = SYS_OP_MAP_NONNULL(D2.c8) and SYS_OP_MAP_NONNULL(D1.c13) = SYS_OP_MAP_NONNULL(D2.c9) and SYS_OP_MAP_NONNULL(D1.c11) = SYS_OP_MAP_NONNULL(D2.c7) and D1.c14 = D2.c10 and SYS_OP_MAP_NONNULL(D1.c15) = SYS_OP_MAP_NONNULL(D2.c11) ), SAWITH3 AS (select D1.c1 as c1, D1.c2 as c2, D1.c3 as c3, D1.c4 as c4, D1.c5 as c5, D1.c6 as c6, D1.c7 as c7, D1.c8 as c8, D1.c9 as c9, D1.c10 as c10, D1.c11 as c11, D1.c12 as c12, D1.c13 as c13, D1.c14 as c14, D1.c15 as c15, D1.c16 as c16, D1.c17 as c17, D1.c19 as c19, D1.c20 as c20, D1.c21 as c21, D1.c22 as c22, D1.c23 as c23, D1.c24 as c24, D1.c25 as c25, D1.c26 as c26, D1.c27 as c27, D1.c28 as c28, D1.c29 as c29, D1.c30 as c30, D1.c31 as c31, D1.c32 as c32, D1.c33 as c33, D1.c34 as c34, D1.c35 as c35, D1.c36 as c36, D1.c37 as c37, D1.c38 as c38, D1.c39 as c39, D1.c40 as c40, D1.c41 as c41, D1.c42 as c42, D1.c43 as c43, D1.c44 as c44, D1.c45 as c45, D1.c46 as c46, D1.c47 as c47, D1.c48 as c48, D1.c49 as c49, D1.c50 as c50, D1.c51 as c51, D1.c52 as c52, D1.c53 as c53, D1.c54 as c54, D1.c55 as c55, D1.c56 as c56, sum(case D1.c58 when 1 then D1.c5 else NULL end ) over () as c57 from SAWITH2 D1) select D1.c1 as c1, D1.c2 as c2, D1.c3 as c3, D1.c4 as c4, D1.c5 as c5, D1.c6 as c6, D1.c7 as c7, D1.c8 as c8, D1.c9 as c9, D1.c10 as c10, D1.c11 as c11, D1.c12 as c12, D1.c13 as c13, D1.c14 as c14, D1.c15 as c15, D1.c16 as c16, D1.c17 as c17, D1.c18 as c18, D1.c19 as c19, D1.c20 as c20, D1.c21 as c21, D1.c22 as c22, D1.c23 as c23, D1.c24 as c24, D1.c25 as c25, D1.c26 as c26, D1.c27 as c27, D1.c28 as c28, D1.c29 as c29, D1.c30 as c30, D1.c31 as c31, D1.c32 as c32, D1.c33 as c33, D1.c34 as c34, D1.c35 as c35, D1.c36 as c36, D1.c37 as c37, D1.c38 as c38, D1.c39 as c39, D1.c40 as c40, D1.c41 as c41, D1.c42 as c42, D1.c43 as c43, D1.c44 as c44, D1.c45 as c45, D1.c46 as c46, D1.c47 as c47, D1.c48 as c48, D1.c49 as c49, D1.c50 as c50, D1.c51 as c51, D1.c52 as c52, D1.c53 as c53, D1.c54 as c54, D1.c55 as c55, D1.c56 as c56 from (select D1.c1 as c1, D1.c2 as c2, D1.c3 as c3, D1.c4 as c4, D1.c5 as c5, D1.c6 as c6, D1.c7 as c7, D1.c8 as c8, D1.c9 as c9, D1.c10 as c10, D1.c11 as c11, D1.c12 as c12, D1.c13 as c13, D1.c14 as c14, D1.c15 as c15, D1.c16 as c16, D1.c17 as c17, D1.c57 * 1.0 as c18, D1.c19 as c19, D1.c20 as c20, D1.c21 as c21, D1.c22 as c22, D1.c23 as c23, D1.c24 as c24, D1.c25 as c25, D1.c26 as c26, D1.c27 as c27, D1.c28 as c28, D1.c29 as c29, D1.c30 as c30, D1.c31 as c31, D1.c32 as c32, D1.c33 as c33, D1.c34 as c34, D1.c35 as c35, D1.c36 as c36, D1.c37 as c37, D1.c38 as c38, D1.c39 as c39, D1.c40 as c40, D1.c41 as c41, D1.c42 as c42, D1.c43 as c43, D1.c44 as c44, D1.c45 as c45, D1.c46 as c46, D1.c47 as c47, D1.c48 as c48, D1.c49 as c49, D1.c50 as c50, D1.c51 as c51, D1.c52 as c52, D1.c53 as c53, D1.c54 as c54, D1.c55 as c55, D1.c56 as c56, ROW_NUMBER() OVER (PARTITION BY D1.c2, D1.c3, D1.c4, D1.c51, D1.c52 ORDER BY D1.c2 ASC, D1.c3 ASC, D1.c4 ASC, D1.c51 ASC, D1.c52 ASC) as c57 from SAWITH3 D1 ) D1 where ( D1.c57 = 1 )
dfr78c08r03szWITH OBISUBWITH0 AS (select D1.c1 as c1 from (select D1.c1 as c1, Case when D1.c2 is not null then Rank() OVER ( ORDER BY D1.c2) end as c2 from (select distinct D1.c2 as c1, D1.c2 as c2, D1.c2 as c3 from (select sum(T80629.NUMBER3) as c1, T5959.CUSTOMER_BUSINESS_UNIT_NAME as c2 from DIM_V_CUSTOMER T5959, FACT_V_REALTIME_CUSTOMER_DATA T80629 where ( T5959.DIMENSION_KEY = T80629.CUSTOMER and T80629.DATASET = 12 and (T5959.CUSTOMER_BUSINESS_UNIT_CODE in ('3020', '3022')) and T5959.CUSTOMER_BUSINESS_UNIT_CODE >= '3000' ) group by T5959.CUSTOMER_BUSINESS_UNIT_NAME having 0 < nvl(sum(T80629.NUMBER3) , 0) ) D1 ) D1 ) D1 where ( D1.c2 <= 1 ) ), OBISUBWITH1 AS (select D1.c1 as c1 from (select D1.c1 as c1, Case when D1.c2 is not null then Rank() OVER ( ORDER BY D1.c2) end as c2 from (select distinct D1.c2 as c1, D1.c2 as c2, D1.c2 as c3 from (select sum(T80629.NUMBER3) as c1, T80629.DATE1 as c2 from DIM_V_CUSTOMER T5959, FACT_V_REALTIME_CUSTOMER_DATA T80629 where ( T5959.DIMENSION_KEY = T80629.CUSTOMER and T80629.DATASET = 12 and (T5959.CUSTOMER_BUSINESS_UNIT_CODE in ('3020', '3022')) and T5959.CUSTOMER_BUSINESS_UNIT_CODE >= '3000' ) group by T80629.DATE1 having 0 < nvl(sum(T80629.NUMBER3) , 0) ) D1 ) D1 ) D1 where ( D1.c2 <= 1 ) ), SAWITH0 AS (select sum(T80629.NUMBER3) as c1, sum(case when not case when T80629.TEXT8 = 'Completed' then 'Completed' when T80629.TEXT8 in ('In Progress', 'New') then 'Packing notes' else 'Not generated' end = 'Completed' then T80629.NUMBER3 end ) as c2, case when T80629.TEXT8 = 'Completed' then 'Completed' when T80629.TEXT8 in ('In Progress', 'New') then 'Packing notes' else 'To be generated' end as c3, T80629.TEXT9 as c4, T80629.TEXT6 as c5, T80629.TEXT5 as c6, T80629.TEXT2 as c7, T80629.TEXT10 as c8, T80629.NUMBER1 as c9, T80629.DATE1 as c10, T5959.CUSTOMER_BUSINESS_UNIT_CODE as c11, T5959.CUSTOMER_BUSINESS_UNIT_NAME as c12, T5959.CUSTOMER_NUMBER as c13 from DIM_V_CUSTOMER T5959, FACT_V_REALTIME_CUSTOMER_DATA T80629 where ( T5959.DIMENSION_KEY = T80629.CUSTOMER and T80629.DATASET = 12 and (T5959.CUSTOMER_BUSINESS_UNIT_CODE in ('3020', '3022')) and T5959.CUSTOMER_BUSINESS_UNIT_CODE >= '3000' ) group by T5959.CUSTOMER_NUMBER, T5959.CUSTOMER_BUSINESS_UNIT_CODE, T5959.CUSTOMER_BUSINESS_UNIT_NAME, T80629.TEXT2, T80629.TEXT5, T80629.TEXT6, T80629.TEXT9, T80629.TEXT10, T80629.DATE1, T80629.NUMBER1, case when T80629.TEXT8 = 'Completed' then 'Completed' when T80629.TEXT8 in ('In Progress', 'New') then 'Packing notes' else 'To be generated' end ), SAWITH1 AS (select distinct 0 as c1, D1.c10 as c2, D1.c9 as c3, D1.c8 as c4, D1.c7 as c5, D1.c6 as c6, D1.c5 as c7, D1.c4 as c8, D1.c11 as c9, D1.c12 as c10, D1.c13 as c11, D1.c3 as c12, NULL as c13, nvl(D1.c1 , 0) as c14, nvl(D1.c2 , 0) as c15, cast(NULL as DOUBLE PRECISION ) as c16, cast(NULL as DOUBLE PRECISION ) as c17, cast(NULL as DOUBLE PRECISION ) as c19, cast(NULL as DOUBLE PRECISION ) as c20 from SAWITH0 D1 where ( 0 < nvl(D1.c1 , 0) ) ), SAWITH2 AS (select sum(T80629.NUMBER3) as c1, case when T80629.TEXT8 = 'Completed' then 'Completed' when T80629.TEXT8 in ('In Progress', 'New') then 'Packing notes' else 'To be generated' end as c2, T80629.TEXT9 as c3, T80629.TEXT6 as c4, T80629.TEXT5 as c5, T80629.TEXT2 as c6, T80629.TEXT10 as c7, T80629.NUMBER1 as c8, T80629.DATE1 as c9, T5959.CUSTOMER_BUSINESS_UNIT_CODE as c10, T5959.CUSTOMER_BUSINESS_UNIT_NAME as c11, T5959.CUSTOMER_NUMBER as c12 from DIM_V_CUSTOMER T5959, FACT_V_REALTIME_CUSTOMER_DATA T80629 where ( T5959.DIMENSION_KEY = T80629.CUSTOMER and T80629.DATASET = 12 and (T5959.CUSTOMER_BUSINESS_UNIT_CODE in ('3020', '3022')) and T5959.CUSTOMER_BUSINESS_UNIT_CODE >= '3000' ) group by T5959.CUSTOMER_NUMBER, T5959.CUSTOMER_BUSINESS_UNIT_CODE, T5959.CUSTOMER_BUSINESS_UNIT_NAME, T80629.TEXT2, T80629.TEXT5, T80629.TEXT6, T80629.TEXT9, T80629.TEXT10, T80629.DATE1, T80629.NUMBER1, case when T80629.TEXT8 = 'Completed' then 'Completed' when T80629.TEXT8 in ('In Progress', 'New') then 'Packing notes' else 'To be generated' end ), SAWITH3 AS (select sum(T80629.NUMBER3) as c1, sum(case when not case when T80629.TEXT8 = 'Completed' then 'Completed' when T80629.TEXT8 in ('In Progress', 'New') then 'Packing notes' else 'Not generated' end = 'Completed' then T80629.NUMBER3 end ) as c2, case when T80629.TEXT8 = 'Completed' then 'Completed' when T80629.TEXT8 in ('In Progress', 'New') then 'Packing notes' else 'To be generated' end as c3, T80629.TEXT9 as c4, T80629.TEXT6 as c5, T80629.TEXT5 as c6, T80629.TEXT2 as c7, T80629.TEXT10 as c8, T80629.NUMBER1 as c9, T80629.DATE1 as c10, T5959.CUSTOMER_BUSINESS_UNIT_CODE as c11, T5959.CUSTOMER_BUSINESS_UNIT_NAME as c12, T5959.CUSTOMER_NUMBER as c13 from DIM_V_CUSTOMER T5959, FACT_V_REALTIME_CUSTOMER_DATA T80629 where ( T5959.DIMENSION_KEY = T80629.CUSTOMER and T80629.DATASET = 12 and T5959.CUSTOMER_BUSINESS_UNIT_CODE >= '3000' and (T5959.CUSTOMER_BUSINESS_UNIT_CODE in ('3020', '3022')) and T80629.DATE1 in (select distinct D1.c1 as c1 from OBISUBWITH1 D1) ) group by T5959.CUSTOMER_NUMBER, T5959.CUSTOMER_BUSINESS_UNIT_CODE, T5959.CUSTOMER_BUSINESS_UNIT_NAME, T80629.TEXT2, T80629.TEXT5, T80629.TEXT6, T80629.TEXT9, T80629.TEXT10, T80629.DATE1, T80629.NUMBER1, case when T80629.TEXT8 = 'Completed' then 'Completed' when T80629.TEXT8 in ('In Progress', 'New') then 'Packing notes' else 'To be generated' end ), SAWITH4 AS (select distinct 2 as c1, D1.c10 as c2, D1.c9 as c3, D1.c8 as c4, D1.c7 as c5, D1.c6 as c6, D1.c5 as c7, D1.c4 as c8, D1.c11 as c9, D1.c12 as c10, D1.c13 as c11, D1.c3 as c12, NULL as c13, nvl(D1.c1 , 0) as c14, nvl(D1.c2 , 0) as c15, cast(NULL as DOUBLE PRECISION ) as c17, cast(NULL as DOUBLE PRECISION ) as c19 from SAWITH3 D1 where ( 0 < nvl(D1.c1 , 0) ) ), SAWITH5 AS (select sum(T80629.NUMBER3) as c1, sum(case when not case when T80629.TEXT8 = 'Completed' then 'Completed' when T80629.TEXT8 in ('In Progress', 'New') then 'Packing notes' else 'Not generated' end = 'Completed' then T80629.NUMBER3 end ) as c2, case when T80629.TEXT8 = 'Completed' then 'Completed' when T80629.TEXT8 in ('In Progress', 'New') then 'Packing notes' else 'To be generated' end as c3, T80629.TEXT9 as c4, T80629.TEXT6 as c5, T80629.TEXT5 as c6, T80629.TEXT2 as c7, T80629.TEXT10 as c8, T80629.NUMBER1 as c9, T80629.DATE1 as c10, T5959.CUSTOMER_BUSINESS_UNIT_CODE as c11, T5959.CUSTOMER_BUSINESS_UNIT_NAME as c12, T5959.CUSTOMER_NUMBER as c13 from DIM_V_CUSTOMER T5959, FACT_V_REALTIME_CUSTOMER_DATA T80629 where ( T5959.DIMENSION_KEY = T80629.CUSTOMER and T80629.DATASET = 12 and T5959.CUSTOMER_BUSINESS_UNIT_CODE >= '3000' and (T5959.CUSTOMER_BUSINESS_UNIT_CODE in ('3020', '3022')) and T5959.CUSTOMER_BUSINESS_UNIT_NAME in (select distinct D1.c1 as c1 from OBISUBWITH0 D1) ) group by T5959.CUSTOMER_NUMBER, T5959.CUSTOMER_BUSINESS_UNIT_CODE, T5959.CUSTOMER_BUSINESS_UNIT_NAME, T80629.TEXT2, T80629.TEXT5, T80629.TEXT6, T80629.TEXT9, T80629.TEXT10, T80629.DATE1, T80629.NUMBER1, case when T80629.TEXT8 = 'Completed' then 'Completed' when T80629.TEXT8 in ('In Progress', 'New') then 'Packing notes' else 'To be generated' end ), SAWITH6 AS (select distinct 3 as c1, D1.c10 as c2, D1.c9 as c3, D1.c8 as c4, D1.c7 as c5, D1.c6 as c6, D1.c5 as c7, D1.c4 as c8, D1.c11 as c9, D1.c12 as c10, D1.c13 as c11, D1.c3 as c12, NULL as c13, nvl(D1.c1 , 0) as c14, nvl(D1.c2 , 0) as c15, cast(NULL as DOUBLE PRECISION ) as c16, cast(NULL as DOUBLE PRECISION ) as c18, cast(NULL as DOUBLE PRECISION ) as c20, cast(NULL as DOUBLE PRECISION ) as c21 from SAWITH5 D1 where ( 0 < nvl(D1.c1 , 0) ) ), SAWITH7 AS ((select D1.c1 as c1, D1.c2 as c2, D1.c3 as c3, D1.c4 as c4, D1.c5 as c5, D1.c6 as c6, D1.c7 as c7, D1.c8 as c8, D1.c9 as c9, D1.c10 as c10, D1.c11 as c11, D1.c12 as c12, D1.c13 as c13, D1.c14 as c14, D1.c15 as c15, D1.c16 as c16, D1.c17 as c17, sum(D1.c14) over (partition by D1.c10, D1.c2, D1.c4, D1.c8, D1.c12) as c18, D1.c19 as c19, D1.c20 as c20, sum(D1.c14) over (partition by D1.c10, D1.c4, D1.c8, D1.c12) as c21 from SAWITH1 D1 union all select distinct 1 as c1, D1.c9 as c2, D1.c8 as c3, D1.c7 as c4, D1.c6 as c5, D1.c5 as c6, D1.c4 as c7, D1.c3 as c8, D1.c10 as c9, D1.c11 as c10, D1.c12 as c11, D1.c2 as c12, NULL as c13, cast(NULL as DOUBLE PRECISION ) as c14, cast(NULL as DOUBLE PRECISION ) as c15, cast(NULL as DOUBLE PRECISION ) as c16, cast(NULL as DOUBLE PRECISION ) as c17, cast(NULL as DOUBLE PRECISION ) as c18, cast(NULL as DOUBLE PRECISION ) as c19, cast(NULL as DOUBLE PRECISION ) as c20, cast(NULL as DOUBLE PRECISION ) as c21 from SAWITH2 D1 where ( 0 < nvl(D1.c1 , 0) ) union all select D1.c1 as c1, D1.c2 as c2, D1.c3 as c3, D1.c4 as c4, D1.c5 as c5, D1.c6 as c6, D1.c7 as c7, D1.c8 as c8, D1.c9 as c9, D1.c10 as c10, D1.c11 as c11, D1.c12 as c12, D1.c13 as c13, D1.c14 as c14, D1.c15 as c15, sum(D1.c14) over (partition by D1.c10, D1.c2, D1.c3, D1.c4, D1.c8, D1.c12) as c16, D1.c17 as c17, sum(D1.c14) over (partition by D1.c10, D1.c2, D1.c4, D1.c8, D1.c12) as c18, D1.c19 as c19, sum(D1.c14) over (partition by D1.c10, D1.c3, D1.c4, D1.c8, D1.c12) as c20, sum(D1.c14) over (partition by D1.c10, D1.c4, D1.c8, D1.c12) as c21 from SAWITH4 D1 union all select D1.c1 as c1, D1.c2 as c2, D1.c3 as c3, D1.c4 as c4, D1.c5 as c5, D1.c6 as c6, D1.c7 as c7, D1.c8 as c8, D1.c9 as c9, D1.c10 as c10, D1.c11 as c11, D1.c12 as c12, D1.c13 as c13, D1.c14 as c14, D1.c15 as c15, D1.c16 as c16, sum(D1.c14) over (partition by D1.c10, D1.c9, D1.c2, D1.c4, D1.c8, D1.c12) as c17, D1.c18 as c18, sum(D1.c14) over (partition by D1.c10, D1.c9, D1.c2, D1.c4, D1.c8) as c19, D1.c20 as c20, D1.c21 as c21 from SAWITH6 D1)) select D1.c1 as c1, D1.c2 as c2, D1.c3 as c3, D1.c4 as c4, D1.c5 as c5, D1.c6 as c6, D1.c7 as c7, D1.c8 as c8, D1.c9 as c9, D1.c10 as c10, D1.c11 as c11, D1.c12 as c12, D1.c13 as c13, D1.c14 as c14, D1.c15 as c15, D1.c16 as c16, D1.c17 as c17, D1.c18 as c18, D1.c19 as c19, D1.c20 as c20, D1.c21 as c21 from ( select D1.c1 as c1, D1.c2 as c2, D1.c3 as c3, D1.c4 as c4, D1.c5 as c5, D1.c6 as c6, D1.c7 as c7, D1.c8 as c8, D1.c9 as c9, D1.c10 as c10, D1.c11 as c11, D1.c12 as c12, D1.c13 as c13, D1.c14 as c14, D1.c15 as c15, D1.c16 as c16, D1.c17 as c17, D1.c18 as c18, D1.c19 as c19, D1.c20 as c20, D1.c21 as c21 from SAWITH7 D1 order by c1, c10, c8, c4, c2, c12 ) D1 where rownum <= 5000001
dk3h7kk54rbpcSELECT NVL(S.STRING, '???') FROM STMISC_STRINGS S WHERE S.STRING_ID = :B1
dkuf170dck8u0SELECT P.BUSINESS_UNIT_ID FROM V_STDIM_BUSINESS_UNIT P WHERE P.BUSINESS_UNIT_CODE=:B1
dqpwrs34cbf54SELECT COUNT(*) FROM sys.v_$open_cursor WHERE sid = SYS_CONTEXT('USERENV', 'SID') AND cursor_type = 'OPEN_PLSQL'
f3ww8rgva3hrsupdate /* KSXM:FLUSH COL */ sys.col_usage$ set equality_preds = equality_preds + decode(bitand(:flag, 1), 0, 0, 1), equijoin_preds = equijoin_preds + decode(bitand(:flag, 2), 0, 0, 1), nonequijoin_preds = nonequijoin_preds + decode(bitand(:flag, 4), 0, 0, 1), range_preds = range_preds + decode(bitand(:flag, 8), 0, 0, 1), like_preds = like_preds + decode(bitand(:flag, 16), 0, 0, 1), null_preds = null_preds + decode(bitand(:flag, 32), 0, 0, 1), flags = flags + :flag - bitand(flags, :flag), timestamp = :time where obj# = :objn and intcol# = :coln
f9jyt3tpyw0haSELECT BITAND(:B2 , :B1 ) FROM SYS.DUAL
fhf8upax5cxszBEGIN sys.dbms_auto_report_internal.i_save_report (:rep_ref, :snap_id, :pr_class, :rep_id, :suc); END;
fpxb4nrq50xq5BEGIN load_warehouse.main; END;
fqj6fcj86dcbqinsert into FACT_REALTIME_CUSTOMER_DATA select * from FACT_V_REALTIME_CUSTOMER_DTA43
fwupcb42fp2mfinsert into FACT_REALTIME_CUSTOMER_DATA select * from FACT_V_REALTIME_CUSTOMER_DTA12
g1anakgx5mzg2WITH OBISUBWITH0 AS (select D1.c1 as c1 from (select D1.c1 as c1, Case when D1.c2 is not null then Rank() OVER ( ORDER BY D1.c2) end as c2 from (select distinct D1.c2 as c1, D1.c2 as c2, D1.c2 as c3 from (select sum(T80629.NUMBER3) as c1, T5959.CUSTOMER_BUSINESS_UNIT_NAME as c2 from DIM_V_CUSTOMER T5959, FACT_V_REALTIME_CUSTOMER_DATA T80629 where ( T5959.DIMENSION_KEY = T80629.CUSTOMER and T80629.DATASET = 12 and (T5959.CUSTOMER_BUSINESS_UNIT_CODE in ('0', '3070')) and T5959.CUSTOMER_BUSINESS_UNIT_CODE >= '3000' ) group by T5959.CUSTOMER_BUSINESS_UNIT_NAME having 0 < nvl(sum(T80629.NUMBER3) , 0) ) D1 ) D1 ) D1 where ( D1.c2 <= 1 ) ), OBISUBWITH1 AS (select D1.c1 as c1 from (select D1.c1 as c1, Case when D1.c2 is not null then Rank() OVER ( ORDER BY D1.c2) end as c2 from (select distinct D1.c2 as c1, D1.c2 as c2, D1.c2 as c3 from (select sum(T80629.NUMBER3) as c1, T80629.DATE1 as c2 from DIM_V_CUSTOMER T5959, FACT_V_REALTIME_CUSTOMER_DATA T80629 where ( T5959.DIMENSION_KEY = T80629.CUSTOMER and T80629.DATASET = 12 and (T5959.CUSTOMER_BUSINESS_UNIT_CODE in ('0', '3070')) and T5959.CUSTOMER_BUSINESS_UNIT_CODE >= '3000' ) group by T80629.DATE1 having 0 < nvl(sum(T80629.NUMBER3) , 0) ) D1 ) D1 ) D1 where ( D1.c2 <= 1 ) ), SAWITH0 AS (select sum(T80629.NUMBER3) as c1, sum(case when not case when T80629.TEXT8 = 'Completed' then 'Completed' when T80629.TEXT8 in ('In Progress', 'New') then 'Packing notes' else 'Not generated' end = 'Completed' then T80629.NUMBER3 end ) as c2, case when T80629.TEXT8 = 'Completed' then 'Completed' when T80629.TEXT8 in ('In Progress', 'New') then 'Packing notes' else 'To be generated' end as c3, T80629.TEXT9 as c4, T80629.TEXT6 as c5, T80629.TEXT5 as c6, T80629.TEXT2 as c7, T80629.TEXT10 as c8, T80629.NUMBER1 as c9, T80629.DATE1 as c10, T5959.CUSTOMER_BUSINESS_UNIT_CODE as c11, T5959.CUSTOMER_BUSINESS_UNIT_NAME as c12, T5959.CUSTOMER_NUMBER as c13 from DIM_V_CUSTOMER T5959, FACT_V_REALTIME_CUSTOMER_DATA T80629 where ( T5959.DIMENSION_KEY = T80629.CUSTOMER and T80629.DATASET = 12 and (T5959.CUSTOMER_BUSINESS_UNIT_CODE in ('0', '3070')) and T5959.CUSTOMER_BUSINESS_UNIT_CODE >= '3000' ) group by T5959.CUSTOMER_NUMBER, T5959.CUSTOMER_BUSINESS_UNIT_CODE, T5959.CUSTOMER_BUSINESS_UNIT_NAME, T80629.TEXT2, T80629.TEXT5, T80629.TEXT6, T80629.TEXT9, T80629.TEXT10, T80629.DATE1, T80629.NUMBER1, case when T80629.TEXT8 = 'Completed' then 'Completed' when T80629.TEXT8 in ('In Progress', 'New') then 'Packing notes' else 'To be generated' end ), SAWITH1 AS (select distinct 0 as c1, D1.c10 as c2, D1.c9 as c3, D1.c8 as c4, D1.c7 as c5, D1.c6 as c6, D1.c5 as c7, D1.c4 as c8, D1.c11 as c9, D1.c12 as c10, D1.c13 as c11, D1.c3 as c12, NULL as c13, nvl(D1.c1 , 0) as c14, nvl(D1.c2 , 0) as c15, cast(NULL as DOUBLE PRECISION ) as c16, cast(NULL as DOUBLE PRECISION ) as c17, cast(NULL as DOUBLE PRECISION ) as c19, cast(NULL as DOUBLE PRECISION ) as c20 from SAWITH0 D1 where ( 0 < nvl(D1.c1 , 0) ) ), SAWITH2 AS (select sum(T80629.NUMBER3) as c1, case when T80629.TEXT8 = 'Completed' then 'Completed' when T80629.TEXT8 in ('In Progress', 'New') then 'Packing notes' else 'To be generated' end as c2, T80629.TEXT9 as c3, T80629.TEXT6 as c4, T80629.TEXT5 as c5, T80629.TEXT2 as c6, T80629.TEXT10 as c7, T80629.NUMBER1 as c8, T80629.DATE1 as c9, T5959.CUSTOMER_BUSINESS_UNIT_CODE as c10, T5959.CUSTOMER_BUSINESS_UNIT_NAME as c11, T5959.CUSTOMER_NUMBER as c12 from DIM_V_CUSTOMER T5959, FACT_V_REALTIME_CUSTOMER_DATA T80629 where ( T5959.DIMENSION_KEY = T80629.CUSTOMER and T80629.DATASET = 12 and (T5959.CUSTOMER_BUSINESS_UNIT_CODE in ('0', '3070')) and T5959.CUSTOMER_BUSINESS_UNIT_CODE >= '3000' ) group by T5959.CUSTOMER_NUMBER, T5959.CUSTOMER_BUSINESS_UNIT_CODE, T5959.CUSTOMER_BUSINESS_UNIT_NAME, T80629.TEXT2, T80629.TEXT5, T80629.TEXT6, T80629.TEXT9, T80629.TEXT10, T80629.DATE1, T80629.NUMBER1, case when T80629.TEXT8 = 'Completed' then 'Completed' when T80629.TEXT8 in ('In Progress', 'New') then 'Packing notes' else 'To be generated' end ), SAWITH3 AS (select sum(T80629.NUMBER3) as c1, sum(case when not case when T80629.TEXT8 = 'Completed' then 'Completed' when T80629.TEXT8 in ('In Progress', 'New') then 'Packing notes' else 'Not generated' end = 'Completed' then T80629.NUMBER3 end ) as c2, case when T80629.TEXT8 = 'Completed' then 'Completed' when T80629.TEXT8 in ('In Progress', 'New') then 'Packing notes' else 'To be generated' end as c3, T80629.TEXT9 as c4, T80629.TEXT6 as c5, T80629.TEXT5 as c6, T80629.TEXT2 as c7, T80629.TEXT10 as c8, T80629.NUMBER1 as c9, T80629.DATE1 as c10, T5959.CUSTOMER_BUSINESS_UNIT_CODE as c11, T5959.CUSTOMER_BUSINESS_UNIT_NAME as c12, T5959.CUSTOMER_NUMBER as c13 from DIM_V_CUSTOMER T5959, FACT_V_REALTIME_CUSTOMER_DATA T80629 where ( T5959.DIMENSION_KEY = T80629.CUSTOMER and T80629.DATASET = 12 and T5959.CUSTOMER_BUSINESS_UNIT_CODE >= '3000' and (T5959.CUSTOMER_BUSINESS_UNIT_CODE in ('0', '3070')) and T80629.DATE1 in (select distinct D1.c1 as c1 from OBISUBWITH1 D1) ) group by T5959.CUSTOMER_NUMBER, T5959.CUSTOMER_BUSINESS_UNIT_CODE, T5959.CUSTOMER_BUSINESS_UNIT_NAME, T80629.TEXT2, T80629.TEXT5, T80629.TEXT6, T80629.TEXT9, T80629.TEXT10, T80629.DATE1, T80629.NUMBER1, case when T80629.TEXT8 = 'Completed' then 'Completed' when T80629.TEXT8 in ('In Progress', 'New') then 'Packing notes' else 'To be generated' end ), SAWITH4 AS (select distinct 2 as c1, D1.c10 as c2, D1.c9 as c3, D1.c8 as c4, D1.c7 as c5, D1.c6 as c6, D1.c5 as c7, D1.c4 as c8, D1.c11 as c9, D1.c12 as c10, D1.c13 as c11, D1.c3 as c12, NULL as c13, nvl(D1.c1 , 0) as c14, nvl(D1.c2 , 0) as c15, cast(NULL as DOUBLE PRECISION ) as c17, cast(NULL as DOUBLE PRECISION ) as c19 from SAWITH3 D1 where ( 0 < nvl(D1.c1 , 0) ) ), SAWITH5 AS (select sum(T80629.NUMBER3) as c1, sum(case when not case when T80629.TEXT8 = 'Completed' then 'Completed' when T80629.TEXT8 in ('In Progress', 'New') then 'Packing notes' else 'Not generated' end = 'Completed' then T80629.NUMBER3 end ) as c2, case when T80629.TEXT8 = 'Completed' then 'Completed' when T80629.TEXT8 in ('In Progress', 'New') then 'Packing notes' else 'To be generated' end as c3, T80629.TEXT9 as c4, T80629.TEXT6 as c5, T80629.TEXT5 as c6, T80629.TEXT2 as c7, T80629.TEXT10 as c8, T80629.NUMBER1 as c9, T80629.DATE1 as c10, T5959.CUSTOMER_BUSINESS_UNIT_CODE as c11, T5959.CUSTOMER_BUSINESS_UNIT_NAME as c12, T5959.CUSTOMER_NUMBER as c13 from DIM_V_CUSTOMER T5959, FACT_V_REALTIME_CUSTOMER_DATA T80629 where ( T5959.DIMENSION_KEY = T80629.CUSTOMER and T80629.DATASET = 12 and T5959.CUSTOMER_BUSINESS_UNIT_CODE >= '3000' and (T5959.CUSTOMER_BUSINESS_UNIT_CODE in ('0', '3070')) and T5959.CUSTOMER_BUSINESS_UNIT_NAME in (select distinct D1.c1 as c1 from OBISUBWITH0 D1) ) group by T5959.CUSTOMER_NUMBER, T5959.CUSTOMER_BUSINESS_UNIT_CODE, T5959.CUSTOMER_BUSINESS_UNIT_NAME, T80629.TEXT2, T80629.TEXT5, T80629.TEXT6, T80629.TEXT9, T80629.TEXT10, T80629.DATE1, T80629.NUMBER1, case when T80629.TEXT8 = 'Completed' then 'Completed' when T80629.TEXT8 in ('In Progress', 'New') then 'Packing notes' else 'To be generated' end ), SAWITH6 AS (select distinct 3 as c1, D1.c10 as c2, D1.c9 as c3, D1.c8 as c4, D1.c7 as c5, D1.c6 as c6, D1.c5 as c7, D1.c4 as c8, D1.c11 as c9, D1.c12 as c10, D1.c13 as c11, D1.c3 as c12, NULL as c13, nvl(D1.c1 , 0) as c14, nvl(D1.c2 , 0) as c15, cast(NULL as DOUBLE PRECISION ) as c16, cast(NULL as DOUBLE PRECISION ) as c18, cast(NULL as DOUBLE PRECISION ) as c20, cast(NULL as DOUBLE PRECISION ) as c21 from SAWITH5 D1 where ( 0 < nvl(D1.c1 , 0) ) ), SAWITH7 AS ((select D1.c1 as c1, D1.c2 as c2, D1.c3 as c3, D1.c4 as c4, D1.c5 as c5, D1.c6 as c6, D1.c7 as c7, D1.c8 as c8, D1.c9 as c9, D1.c10 as c10, D1.c11 as c11, D1.c12 as c12, D1.c13 as c13, D1.c14 as c14, D1.c15 as c15, D1.c16 as c16, D1.c17 as c17, sum(D1.c14) over (partition by D1.c10, D1.c2, D1.c4, D1.c8, D1.c12) as c18, D1.c19 as c19, D1.c20 as c20, sum(D1.c14) over (partition by D1.c10, D1.c4, D1.c8, D1.c12) as c21 from SAWITH1 D1 union all select distinct 1 as c1, D1.c9 as c2, D1.c8 as c3, D1.c7 as c4, D1.c6 as c5, D1.c5 as c6, D1.c4 as c7, D1.c3 as c8, D1.c10 as c9, D1.c11 as c10, D1.c12 as c11, D1.c2 as c12, NULL as c13, cast(NULL as DOUBLE PRECISION ) as c14, cast(NULL as DOUBLE PRECISION ) as c15, cast(NULL as DOUBLE PRECISION ) as c16, cast(NULL as DOUBLE PRECISION ) as c17, cast(NULL as DOUBLE PRECISION ) as c18, cast(NULL as DOUBLE PRECISION ) as c19, cast(NULL as DOUBLE PRECISION ) as c20, cast(NULL as DOUBLE PRECISION ) as c21 from SAWITH2 D1 where ( 0 < nvl(D1.c1 , 0) ) union all select D1.c1 as c1, D1.c2 as c2, D1.c3 as c3, D1.c4 as c4, D1.c5 as c5, D1.c6 as c6, D1.c7 as c7, D1.c8 as c8, D1.c9 as c9, D1.c10 as c10, D1.c11 as c11, D1.c12 as c12, D1.c13 as c13, D1.c14 as c14, D1.c15 as c15, sum(D1.c14) over (partition by D1.c10, D1.c2, D1.c3, D1.c4, D1.c8, D1.c12) as c16, D1.c17 as c17, sum(D1.c14) over (partition by D1.c10, D1.c2, D1.c4, D1.c8, D1.c12) as c18, D1.c19 as c19, sum(D1.c14) over (partition by D1.c10, D1.c3, D1.c4, D1.c8, D1.c12) as c20, sum(D1.c14) over (partition by D1.c10, D1.c4, D1.c8, D1.c12) as c21 from SAWITH4 D1 union all select D1.c1 as c1, D1.c2 as c2, D1.c3 as c3, D1.c4 as c4, D1.c5 as c5, D1.c6 as c6, D1.c7 as c7, D1.c8 as c8, D1.c9 as c9, D1.c10 as c10, D1.c11 as c11, D1.c12 as c12, D1.c13 as c13, D1.c14 as c14, D1.c15 as c15, D1.c16 as c16, sum(D1.c14) over (partition by D1.c10, D1.c9, D1.c2, D1.c4, D1.c8, D1.c12) as c17, D1.c18 as c18, sum(D1.c14) over (partition by D1.c10, D1.c9, D1.c2, D1.c4, D1.c8) as c19, D1.c20 as c20, D1.c21 as c21 from SAWITH6 D1)) select D1.c1 as c1, D1.c2 as c2, D1.c3 as c3, D1.c4 as c4, D1.c5 as c5, D1.c6 as c6, D1.c7 as c7, D1.c8 as c8, D1.c9 as c9, D1.c10 as c10, D1.c11 as c11, D1.c12 as c12, D1.c13 as c13, D1.c14 as c14, D1.c15 as c15, D1.c16 as c16, D1.c17 as c17, D1.c18 as c18, D1.c19 as c19, D1.c20 as c20, D1.c21 as c21 from ( select D1.c1 as c1, D1.c2 as c2, D1.c3 as c3, D1.c4 as c4, D1.c5 as c5, D1.c6 as c6, D1.c7 as c7, D1.c8 as c8, D1.c9 as c9, D1.c10 as c10, D1.c11 as c11, D1.c12 as c12, D1.c13 as c13, D1.c14 as c14, D1.c15 as c15, D1.c16 as c16, D1.c17 as c17, D1.c18 as c18, D1.c19 as c19, D1.c20 as c20, D1.c21 as c21 from SAWITH7 D1 order by c1, c10, c8, c4, c2, c12 ) D1 where rownum <= 5000001
g9q79c07ckt5pSELECT /*+ */ "PRODUCTLISTPERCUSTOMER_ID", "CUSTOMER_SOURCE_ID", "PRODUCT_SOURCE_ID", "SIZE_SOURCE_ID", "FINISHING_METHOD_SOURCE_ID", "DATE_ACTIVE", "DATE_INACTIVE", "CUSTOM_PRODUCT_CODE", "CUSTOM_PRODUCT_DESCRIPTION", "SPECIFIC_BUNDLE_QUANTITY", "SALES_EMPLOYEE_1", "SALES_EMPLOYEE_2", "COMPETITOR_CODE_GAINED_FROM", "COMPETITOR_GAINED_FROM", "COMPETITOR_CODE_LOST_TO", "COMPETITOR_LOST_TO", "GAIN_REASON_CODE", "GAIN_REASON", "LOST_REASON_CODE", "LOST_REASON", "EAN_NUMBER", "SOIL_WEIGHT", "ORDER_VIA_WEB_YN", "CODE_UNIQUELY_YN", "ON_SITE_INVENTORY_COUNT_YN", "DELAYED_EVEN_EXCHANGE", "DELAYED_EVEN_EXCHANGE_SCHEME", "STRAIGHT_EVEN_EXCHANGE_YN", "SPECIFIC_WASHING_PROCESS_CODE", "SPECIFIC_WASHING_PROCESS", "DEFAULT_STOCK_ROOM", "FIXED_STOCKROOM_YN", "SPECIFIC_MAX_NUMBER_OF_WASHES", "NR_OF_WASHES_SPECIAL_TREATMENT", "TREATMENT_CHECK_SCHEME_CODE", "TREATMENT_CHECK_SCHEME", "LOCATION", "UNIQUE_LOCATION_YN", "SOIL_COUNT_METHOD", "CLEAN_COUNT_YN", "SEASON_TYPE", "QUANTITY_CHARGED_FOR_LOSS", "HAS_SPECIFIC_PUTUP_TYPE_YN", "SPECIFIC_PUTUP_TYPE", "BUDGET_RELEVANT_YN", "SPECIFIC_FILL_PERCENTAGE", "EMBLEM_TEMPLATE", "SPECIFIC_FINISHING_CODE", "SPECIFIC_FINISHING", "AUTO_SALES_DURING_ISSUE_YN", "AUTO_REPLACE_AFTER_LIFETIME_YN", "IS_CUSTOMER_RELATED_YN", "DEPOSIT_STOCK_ALLOWED_YN", "DEPOSIT_STOCK_LOCATION", "DEPOSIT_STOCK_CHARGE_PERC", "ALLOWED_TO_REPLACE_YN", "ALLOW_RETURN_TO_STOCK", "WEARER_GARMENTS_BUDGET_VALUE", "IMAGE_CARE_FOR_REPAIR_YN", "IMAGE_CARE_FOR_LOSS_CHARGES_YN", "IMAGE_CARE_FOR_RES_VALUE_YN", "DELIVERY_LABEL_LAYOUT_CODE", "DELIVERY_LABEL_LAYOUT", "BILLING_METHOD_NR", "BILLING_METHOD", "CHARGE_SRC_YN", "SRC_BASED_ON", "SRC_PERCENTAGE_OF_SOIL_COUNT", "SRC_PERCENTAGE_OF_INVENTORY", "SRC_FIXED_QUANTITY", "SRC_FREQUENCY", "SRC_CHARGE_RENT_YN", "AUTO_REPLACE_DIFFERENCE_YN", "DELIVER_SRC_QUANTITY_YN", "CHARGE_STOCK_ROOM_INVENTORY_YN", "MINIMUM_TURN_AROUND_PERCENTAGE", "MINIMUM_BILLING_QUANTITY", "MINIMUM_BILLING_FREQUENCY", "FREE_OF_CHARGE_QUANTITY", "FREQUENCY_FOR_FREE_QUANTITY", "RESIDUAL_VALUE_SCHEME_CODE", "RESIDUAL_VALUE_SCHEME", "PERCENTAGE_AFER_DEPRECIATION", "CHARGE_RES_VALUE_NEW_ONLY_YN", "CHARGE_OVERUSE_YN", "RENT_CHANGES_PER_WEEK_YN", "PRICE_USAGE", "RENT_PRICE_PER_FREQUENCY_YN", "CHARGE_RENT_INACTIVE_SEASON_YN", "CHARGE_WASHES_PACK", "CHARGE_WASHES_ONLY_FOR_COG", "INV_FREQ_RELATED_RENT_PRICE_YN", "INVOICE_WASH_BASED_ON_SOIL_YN", "CHARGE_BASED_ON_CIRC_INV_YN", "CHARGE_BASED_ON_REAL_QTY_YN", "CHARGE_BASED_ON_MAX_QTY_YN", "CHARGE_BASED_ON_ONSITE_INV_YN", "MIN_QTY_TO_DELIVER", "MAX_QTY_TO_DELIVER", "REMARK", "RENT_PRICE", "NET_RENT_PRICE", "RENT_PRICE_DEFINED_YN", "RENT_PRICE_START_DATE", "RENT_PRICE_IS_CUST_SPECIFIC_YN", "RENT_PRICE_PRICE_LIST_CODE", "RENT_PRICE_PRICE_LIST", "RENT_PRICE_REASON_NOT_DEFINED", "RENT_PRICE_PRICE_TYPE", "RENT_PRICE_INVOICE_FREQUENCY", "WASH_PRICE", "NET_WASH_PRICE", "WASH_PRICE_DEFINED_YN", "WASH_PRICE_START_DATE", "WASH_PRICE_IS_CUST_SPECIFIC_YN", "WASH_PRICE_PRICE_LIST_CODE", "WASH_PRICE_PRICE_LIST", "WASH_PRICE_REASON_NOT_DEFINED", "WASH_PRICE_PRICE_TYPE", "REPLACE_PRICE", "REPLACE_PRICE_DEFINED_YN", "REPLACE_PRICE_START_DATE", "REPLACE_PRICE_IS_CUST_SPEC_YN", "REPLACE_PRICE_PRICE_LIST_CODE", "REPLACE_PRICE_PRICE_LIST", "REPLACE_PRICE_REASON_NOT_DEF", "SALES_PRICE", "SALES_PRICE_DEFINED_YN", "SALES_PRICE_START_DATE", "SALES_PRICE_IS_CUST_SPECIF_YN", "SALES_PRICE_PRICE_LIST_CODE", "SALES_PRICE_PRICE_LIST", "SALES_PRICE_REASON_NOT_DEFINED", "RENT_DISCOUNT", "RENT_DISCOUNT_DEFINED_YN", "RENT_DISCOUNT_START_DATE", "RENT_DISCOUNT_IS_CUST_SPEC_YN", "RENT_DISCOUNT_PRICE_LIST_CODE", "RENT_DISCOUNT_PRICE_LIST", "RENT_DISC_REASON_NOT_DEFINED", "WASH_DISCOUNT", "WASH_DISCOUNT_DEFINED_YN", "WASH_DISCOUNT_START_DATE", "WASH_DISCOUNT_IS_CUST_SPEC_YN", "WASH_DISCOUNT_PRICE_LIST_CODE", "WASH_DISCOUNT_PRICE_LIST", "WASH_DISC_REASON_NOT_DEFINED", "CIRCULATING_INVENTORY", "FIXED_RENT_QTY", "DELIVERY_SCHEME_FREQUENCY", "DELIVERY_SCHEME_CODE", "DELIVERY_SCHEME", "DELIVER_BILL_MO", "DELIVER_BILL_TU", "DELIVER_BILL_WE", "DELIVER_BILL_TH", "DELIVER_BILL_FR", "DELIVER_BILL_SA", "DELIVER_BILL_SU", "AVG_WEEKLY_RENT_AMOUNT", "AVG_WEEKLY_WASH_AMOUNT", "AVG_WEEKLY_SALES_AMOUNT", "AVG_WEEKLY_AUTO_REPLACE_AMOUNT", "AVG_WEEKLY_TOTAL_AMOUNT", "BUSINESS_UNIT_CODE", "EXCESS_BILLING_YN", "EXCESS_BILLING_PER_SIZE_YN", "NOMINAL_STOCK_QTY", "CHARGEABLE_STOCK_QTY", "LOAN_QTY", "FREE_OF_CHARGE_QTY", "HEAVY_SOIL_PRICE", "HEAVY_SOIL_PRICE_DEFINED_YN", "HEAVY_SOIL_PRICE_START_DATE", "HSOIL_PRICE_CUST_SPECIFIC_YN", "HSOIL_PRICE_PRICE_LIST_CODE", "HSOIL_PRICE_PRICE_LIST", "LOAN_PRICE", "LOAN_PRICE_DEFINED_YN", "LOAN_PRICE_START_DATE", "LOAN_PRICE_IS_CUST_SPECIFIC_YN", "LOAN_PRICE_PRICE_LIST_CODE", "LOAN_PRICE_PRICE_LIST", "WASH_BUDGET_CODE", "WASH_BUDGET_DESCRIPTION", "RENT_BUDGET_CODE", "RENT_BUDGET_DESCRIPTION", "SALES_BUDGET_CODE", "SALES_BUDGET_DESCRIPTION", "INSTALL_DATE", "STRING1", "STRING2", "STRING3", "STRING4", "STRING5", "STRING6", "STRING7", "STRING8", "STRING9", "STRING10", "NUMBER1", "NUMBER2", "NUMBER3", "NUMBER4", "NUMBER5", "DATE1", "DATE2", "DATE3" FROM "ABSDWHSTAGING"."V_STFACT_CUSTOMER_PRODUCTS" "V_STFACT_CUSTOMER_PRODUCTS" WHERE "BUSINESS_UNIT_CODE"=:1
gd95m0bzhg0vpINSERT INTO wri$_adv_objects (task_id, id, type, attr1, attr2, attr3, attr4, attr5, exec_name, attr6, attr7, attr8, attr9, attr10, attr11, attr17, attr18) VALUES(:1, :2, :3, :4, :5, :6, ' ', :7, :8, :9, :10, :11, :12, :13, :14, :15, :16)
ggcuamzctqwg9insert into FACT_REALTIME_CUSTOMER_DATA select * from FACT_V_REALTIME_CUSTOMER_DTA20
ggxg64bdfsps5WITH OBISUBWITH0 AS (select D1.c1 as c1 from (select D1.c1 as c1, Case when D1.c2 is not null then Rank() OVER ( ORDER BY D1.c2) end as c2 from (select distinct D1.c2 as c1, D1.c2 as c2, D1.c2 as c3 from (select sum(T80629.NUMBER3) as c1, T5959.CUSTOMER_BUSINESS_UNIT_NAME as c2 from DIM_V_CUSTOMER T5959, FACT_V_REALTIME_CUSTOMER_DATA T80629 where ( T5959.DIMENSION_KEY = T80629.CUSTOMER and T80629.DATASET = 12 and (T5959.CUSTOMER_BUSINESS_UNIT_CODE in ('0', '3000')) and T5959.CUSTOMER_BUSINESS_UNIT_CODE >= '3000' ) group by T5959.CUSTOMER_BUSINESS_UNIT_NAME having 0 < nvl(sum(T80629.NUMBER3) , 0) ) D1 ) D1 ) D1 where ( D1.c2 <= 1 ) ), OBISUBWITH1 AS (select D1.c1 as c1 from (select D1.c1 as c1, Case when D1.c2 is not null then Rank() OVER ( ORDER BY D1.c2) end as c2 from (select distinct D1.c2 as c1, D1.c2 as c2, D1.c2 as c3 from (select sum(T80629.NUMBER3) as c1, T80629.DATE1 as c2 from DIM_V_CUSTOMER T5959, FACT_V_REALTIME_CUSTOMER_DATA T80629 where ( T5959.DIMENSION_KEY = T80629.CUSTOMER and T80629.DATASET = 12 and (T5959.CUSTOMER_BUSINESS_UNIT_CODE in ('0', '3000')) and T5959.CUSTOMER_BUSINESS_UNIT_CODE >= '3000' ) group by T80629.DATE1 having 0 < nvl(sum(T80629.NUMBER3) , 0) ) D1 ) D1 ) D1 where ( D1.c2 <= 1 ) ), SAWITH0 AS (select sum(T80629.NUMBER3) as c1, sum(case when not case when T80629.TEXT8 = 'Completed' then 'Completed' when T80629.TEXT8 in ('In Progress', 'New') then 'Packing notes' else 'Not generated' end = 'Completed' then T80629.NUMBER3 end ) as c2, case when T80629.TEXT8 = 'Completed' then 'Completed' when T80629.TEXT8 in ('In Progress', 'New') then 'Packing notes' else 'To be generated' end as c3, T80629.TEXT9 as c4, T80629.TEXT6 as c5, T80629.TEXT5 as c6, T80629.TEXT2 as c7, T80629.TEXT10 as c8, T80629.NUMBER1 as c9, T80629.DATE1 as c10, T5959.CUSTOMER_BUSINESS_UNIT_CODE as c11, T5959.CUSTOMER_BUSINESS_UNIT_NAME as c12, T5959.CUSTOMER_NUMBER as c13 from DIM_V_CUSTOMER T5959, FACT_V_REALTIME_CUSTOMER_DATA T80629 where ( T5959.DIMENSION_KEY = T80629.CUSTOMER and T80629.DATASET = 12 and (T5959.CUSTOMER_BUSINESS_UNIT_CODE in ('0', '3000')) and T5959.CUSTOMER_BUSINESS_UNIT_CODE >= '3000' ) group by T5959.CUSTOMER_NUMBER, T5959.CUSTOMER_BUSINESS_UNIT_CODE, T5959.CUSTOMER_BUSINESS_UNIT_NAME, T80629.TEXT2, T80629.TEXT5, T80629.TEXT6, T80629.TEXT9, T80629.TEXT10, T80629.DATE1, T80629.NUMBER1, case when T80629.TEXT8 = 'Completed' then 'Completed' when T80629.TEXT8 in ('In Progress', 'New') then 'Packing notes' else 'To be generated' end ), SAWITH1 AS (select distinct 0 as c1, D1.c10 as c2, D1.c9 as c3, D1.c8 as c4, D1.c7 as c5, D1.c6 as c6, D1.c5 as c7, D1.c4 as c8, D1.c11 as c9, D1.c12 as c10, D1.c13 as c11, D1.c3 as c12, NULL as c13, nvl(D1.c1 , 0) as c14, nvl(D1.c2 , 0) as c15, cast(NULL as DOUBLE PRECISION ) as c16, cast(NULL as DOUBLE PRECISION ) as c17, cast(NULL as DOUBLE PRECISION ) as c19, cast(NULL as DOUBLE PRECISION ) as c20 from SAWITH0 D1 where ( 0 < nvl(D1.c1 , 0) ) ), SAWITH2 AS (select sum(T80629.NUMBER3) as c1, case when T80629.TEXT8 = 'Completed' then 'Completed' when T80629.TEXT8 in ('In Progress', 'New') then 'Packing notes' else 'To be generated' end as c2, T80629.TEXT9 as c3, T80629.TEXT6 as c4, T80629.TEXT5 as c5, T80629.TEXT2 as c6, T80629.TEXT10 as c7, T80629.NUMBER1 as c8, T80629.DATE1 as c9, T5959.CUSTOMER_BUSINESS_UNIT_CODE as c10, T5959.CUSTOMER_BUSINESS_UNIT_NAME as c11, T5959.CUSTOMER_NUMBER as c12 from DIM_V_CUSTOMER T5959, FACT_V_REALTIME_CUSTOMER_DATA T80629 where ( T5959.DIMENSION_KEY = T80629.CUSTOMER and T80629.DATASET = 12 and (T5959.CUSTOMER_BUSINESS_UNIT_CODE in ('0', '3000')) and T5959.CUSTOMER_BUSINESS_UNIT_CODE >= '3000' ) group by T5959.CUSTOMER_NUMBER, T5959.CUSTOMER_BUSINESS_UNIT_CODE, T5959.CUSTOMER_BUSINESS_UNIT_NAME, T80629.TEXT2, T80629.TEXT5, T80629.TEXT6, T80629.TEXT9, T80629.TEXT10, T80629.DATE1, T80629.NUMBER1, case when T80629.TEXT8 = 'Completed' then 'Completed' when T80629.TEXT8 in ('In Progress', 'New') then 'Packing notes' else 'To be generated' end ), SAWITH3 AS (select sum(T80629.NUMBER3) as c1, sum(case when not case when T80629.TEXT8 = 'Completed' then 'Completed' when T80629.TEXT8 in ('In Progress', 'New') then 'Packing notes' else 'Not generated' end = 'Completed' then T80629.NUMBER3 end ) as c2, case when T80629.TEXT8 = 'Completed' then 'Completed' when T80629.TEXT8 in ('In Progress', 'New') then 'Packing notes' else 'To be generated' end as c3, T80629.TEXT9 as c4, T80629.TEXT6 as c5, T80629.TEXT5 as c6, T80629.TEXT2 as c7, T80629.TEXT10 as c8, T80629.NUMBER1 as c9, T80629.DATE1 as c10, T5959.CUSTOMER_BUSINESS_UNIT_CODE as c11, T5959.CUSTOMER_BUSINESS_UNIT_NAME as c12, T5959.CUSTOMER_NUMBER as c13 from DIM_V_CUSTOMER T5959, FACT_V_REALTIME_CUSTOMER_DATA T80629 where ( T5959.DIMENSION_KEY = T80629.CUSTOMER and T80629.DATASET = 12 and T5959.CUSTOMER_BUSINESS_UNIT_CODE >= '3000' and (T5959.CUSTOMER_BUSINESS_UNIT_CODE in ('0', '3000')) and T80629.DATE1 in (select distinct D1.c1 as c1 from OBISUBWITH1 D1) ) group by T5959.CUSTOMER_NUMBER, T5959.CUSTOMER_BUSINESS_UNIT_CODE, T5959.CUSTOMER_BUSINESS_UNIT_NAME, T80629.TEXT2, T80629.TEXT5, T80629.TEXT6, T80629.TEXT9, T80629.TEXT10, T80629.DATE1, T80629.NUMBER1, case when T80629.TEXT8 = 'Completed' then 'Completed' when T80629.TEXT8 in ('In Progress', 'New') then 'Packing notes' else 'To be generated' end ), SAWITH4 AS (select distinct 2 as c1, D1.c10 as c2, D1.c9 as c3, D1.c8 as c4, D1.c7 as c5, D1.c6 as c6, D1.c5 as c7, D1.c4 as c8, D1.c11 as c9, D1.c12 as c10, D1.c13 as c11, D1.c3 as c12, NULL as c13, nvl(D1.c1 , 0) as c14, nvl(D1.c2 , 0) as c15, cast(NULL as DOUBLE PRECISION ) as c17, cast(NULL as DOUBLE PRECISION ) as c19 from SAWITH3 D1 where ( 0 < nvl(D1.c1 , 0) ) ), SAWITH5 AS (select sum(T80629.NUMBER3) as c1, sum(case when not case when T80629.TEXT8 = 'Completed' then 'Completed' when T80629.TEXT8 in ('In Progress', 'New') then 'Packing notes' else 'Not generated' end = 'Completed' then T80629.NUMBER3 end ) as c2, case when T80629.TEXT8 = 'Completed' then 'Completed' when T80629.TEXT8 in ('In Progress', 'New') then 'Packing notes' else 'To be generated' end as c3, T80629.TEXT9 as c4, T80629.TEXT6 as c5, T80629.TEXT5 as c6, T80629.TEXT2 as c7, T80629.TEXT10 as c8, T80629.NUMBER1 as c9, T80629.DATE1 as c10, T5959.CUSTOMER_BUSINESS_UNIT_CODE as c11, T5959.CUSTOMER_BUSINESS_UNIT_NAME as c12, T5959.CUSTOMER_NUMBER as c13 from DIM_V_CUSTOMER T5959, FACT_V_REALTIME_CUSTOMER_DATA T80629 where ( T5959.DIMENSION_KEY = T80629.CUSTOMER and T80629.DATASET = 12 and T5959.CUSTOMER_BUSINESS_UNIT_CODE >= '3000' and (T5959.CUSTOMER_BUSINESS_UNIT_CODE in ('0', '3000')) and T5959.CUSTOMER_BUSINESS_UNIT_NAME in (select distinct D1.c1 as c1 from OBISUBWITH0 D1) ) group by T5959.CUSTOMER_NUMBER, T5959.CUSTOMER_BUSINESS_UNIT_CODE, T5959.CUSTOMER_BUSINESS_UNIT_NAME, T80629.TEXT2, T80629.TEXT5, T80629.TEXT6, T80629.TEXT9, T80629.TEXT10, T80629.DATE1, T80629.NUMBER1, case when T80629.TEXT8 = 'Completed' then 'Completed' when T80629.TEXT8 in ('In Progress', 'New') then 'Packing notes' else 'To be generated' end ), SAWITH6 AS (select distinct 3 as c1, D1.c10 as c2, D1.c9 as c3, D1.c8 as c4, D1.c7 as c5, D1.c6 as c6, D1.c5 as c7, D1.c4 as c8, D1.c11 as c9, D1.c12 as c10, D1.c13 as c11, D1.c3 as c12, NULL as c13, nvl(D1.c1 , 0) as c14, nvl(D1.c2 , 0) as c15, cast(NULL as DOUBLE PRECISION ) as c16, cast(NULL as DOUBLE PRECISION ) as c18, cast(NULL as DOUBLE PRECISION ) as c20, cast(NULL as DOUBLE PRECISION ) as c21 from SAWITH5 D1 where ( 0 < nvl(D1.c1 , 0) ) ), SAWITH7 AS ((select D1.c1 as c1, D1.c2 as c2, D1.c3 as c3, D1.c4 as c4, D1.c5 as c5, D1.c6 as c6, D1.c7 as c7, D1.c8 as c8, D1.c9 as c9, D1.c10 as c10, D1.c11 as c11, D1.c12 as c12, D1.c13 as c13, D1.c14 as c14, D1.c15 as c15, D1.c16 as c16, D1.c17 as c17, sum(D1.c14) over (partition by D1.c10, D1.c2, D1.c4, D1.c8, D1.c12) as c18, D1.c19 as c19, D1.c20 as c20, sum(D1.c14) over (partition by D1.c10, D1.c4, D1.c8, D1.c12) as c21 from SAWITH1 D1 union all select distinct 1 as c1, D1.c9 as c2, D1.c8 as c3, D1.c7 as c4, D1.c6 as c5, D1.c5 as c6, D1.c4 as c7, D1.c3 as c8, D1.c10 as c9, D1.c11 as c10, D1.c12 as c11, D1.c2 as c12, NULL as c13, cast(NULL as DOUBLE PRECISION ) as c14, cast(NULL as DOUBLE PRECISION ) as c15, cast(NULL as DOUBLE PRECISION ) as c16, cast(NULL as DOUBLE PRECISION ) as c17, cast(NULL as DOUBLE PRECISION ) as c18, cast(NULL as DOUBLE PRECISION ) as c19, cast(NULL as DOUBLE PRECISION ) as c20, cast(NULL as DOUBLE PRECISION ) as c21 from SAWITH2 D1 where ( 0 < nvl(D1.c1 , 0) ) union all select D1.c1 as c1, D1.c2 as c2, D1.c3 as c3, D1.c4 as c4, D1.c5 as c5, D1.c6 as c6, D1.c7 as c7, D1.c8 as c8, D1.c9 as c9, D1.c10 as c10, D1.c11 as c11, D1.c12 as c12, D1.c13 as c13, D1.c14 as c14, D1.c15 as c15, sum(D1.c14) over (partition by D1.c10, D1.c2, D1.c3, D1.c4, D1.c8, D1.c12) as c16, D1.c17 as c17, sum(D1.c14) over (partition by D1.c10, D1.c2, D1.c4, D1.c8, D1.c12) as c18, D1.c19 as c19, sum(D1.c14) over (partition by D1.c10, D1.c3, D1.c4, D1.c8, D1.c12) as c20, sum(D1.c14) over (partition by D1.c10, D1.c4, D1.c8, D1.c12) as c21 from SAWITH4 D1 union all select D1.c1 as c1, D1.c2 as c2, D1.c3 as c3, D1.c4 as c4, D1.c5 as c5, D1.c6 as c6, D1.c7 as c7, D1.c8 as c8, D1.c9 as c9, D1.c10 as c10, D1.c11 as c11, D1.c12 as c12, D1.c13 as c13, D1.c14 as c14, D1.c15 as c15, D1.c16 as c16, sum(D1.c14) over (partition by D1.c10, D1.c9, D1.c2, D1.c4, D1.c8, D1.c12) as c17, D1.c18 as c18, sum(D1.c14) over (partition by D1.c10, D1.c9, D1.c2, D1.c4, D1.c8) as c19, D1.c20 as c20, D1.c21 as c21 from SAWITH6 D1)) select D1.c1 as c1, D1.c2 as c2, D1.c3 as c3, D1.c4 as c4, D1.c5 as c5, D1.c6 as c6, D1.c7 as c7, D1.c8 as c8, D1.c9 as c9, D1.c10 as c10, D1.c11 as c11, D1.c12 as c12, D1.c13 as c13, D1.c14 as c14, D1.c15 as c15, D1.c16 as c16, D1.c17 as c17, D1.c18 as c18, D1.c19 as c19, D1.c20 as c20, D1.c21 as c21 from ( select D1.c1 as c1, D1.c2 as c2, D1.c3 as c3, D1.c4 as c4, D1.c5 as c5, D1.c6 as c6, D1.c7 as c7, D1.c8 as c8, D1.c9 as c9, D1.c10 as c10, D1.c11 as c11, D1.c12 as c12, D1.c13 as c13, D1.c14 as c14, D1.c15 as c15, D1.c16 as c16, D1.c17 as c17, D1.c18 as c18, D1.c19 as c19, D1.c20 as c20, D1.c21 as c21 from SAWITH7 D1 order by c1, c10, c8, c4, c2, c12 ) D1 where rownum <= 5000001
gj5r9jj2xad7f SELECT 1, status, '', archiver, database_status, active_state FROM v$instance
gjdsfpvgrgzanWITH OBISUBWITH0 AS (select D1.c1 as c1 from (select D1.c1 as c1, Case when D1.c2 is not null then Rank() OVER ( ORDER BY D1.c2) end as c2 from (select distinct D1.c2 as c1, D1.c2 as c2, D1.c2 as c3 from (select sum(T80629.NUMBER3) as c1, T5959.CUSTOMER_BUSINESS_UNIT_NAME as c2 from DIM_V_CUSTOMER T5959, FACT_V_REALTIME_CUSTOMER_DATA T80629 where ( T5959.DIMENSION_KEY = T80629.CUSTOMER and T80629.DATASET = 12 and (T5959.CUSTOMER_BUSINESS_UNIT_CODE in ('0', '3045')) and T5959.CUSTOMER_BUSINESS_UNIT_CODE >= '3000' ) group by T5959.CUSTOMER_BUSINESS_UNIT_NAME having 0 < nvl(sum(T80629.NUMBER3) , 0) ) D1 ) D1 ) D1 where ( D1.c2 <= 1 ) ), OBISUBWITH1 AS (select D1.c1 as c1 from (select D1.c1 as c1, Case when D1.c2 is not null then Rank() OVER ( ORDER BY D1.c2) end as c2 from (select distinct D1.c2 as c1, D1.c2 as c2, D1.c2 as c3 from (select sum(T80629.NUMBER3) as c1, T80629.DATE1 as c2 from DIM_V_CUSTOMER T5959, FACT_V_REALTIME_CUSTOMER_DATA T80629 where ( T5959.DIMENSION_KEY = T80629.CUSTOMER and T80629.DATASET = 12 and (T5959.CUSTOMER_BUSINESS_UNIT_CODE in ('0', '3045')) and T5959.CUSTOMER_BUSINESS_UNIT_CODE >= '3000' ) group by T80629.DATE1 having 0 < nvl(sum(T80629.NUMBER3) , 0) ) D1 ) D1 ) D1 where ( D1.c2 <= 1 ) ), SAWITH0 AS (select sum(T80629.NUMBER3) as c1, sum(case when not case when T80629.TEXT8 = 'Completed' then 'Completed' when T80629.TEXT8 in ('In Progress', 'New') then 'Packing notes' else 'Not generated' end = 'Completed' then T80629.NUMBER3 end ) as c2, case when T80629.TEXT8 = 'Completed' then 'Completed' when T80629.TEXT8 in ('In Progress', 'New') then 'Packing notes' else 'To be generated' end as c3, T80629.TEXT9 as c4, T80629.TEXT6 as c5, T80629.TEXT5 as c6, T80629.TEXT2 as c7, T80629.TEXT10 as c8, T80629.NUMBER1 as c9, T80629.DATE1 as c10, T5959.CUSTOMER_BUSINESS_UNIT_CODE as c11, T5959.CUSTOMER_BUSINESS_UNIT_NAME as c12, T5959.CUSTOMER_NUMBER as c13 from DIM_V_CUSTOMER T5959, FACT_V_REALTIME_CUSTOMER_DATA T80629 where ( T5959.DIMENSION_KEY = T80629.CUSTOMER and T80629.DATASET = 12 and (T5959.CUSTOMER_BUSINESS_UNIT_CODE in ('0', '3045')) and T5959.CUSTOMER_BUSINESS_UNIT_CODE >= '3000' ) group by T5959.CUSTOMER_NUMBER, T5959.CUSTOMER_BUSINESS_UNIT_CODE, T5959.CUSTOMER_BUSINESS_UNIT_NAME, T80629.TEXT2, T80629.TEXT5, T80629.TEXT6, T80629.TEXT9, T80629.TEXT10, T80629.DATE1, T80629.NUMBER1, case when T80629.TEXT8 = 'Completed' then 'Completed' when T80629.TEXT8 in ('In Progress', 'New') then 'Packing notes' else 'To be generated' end ), SAWITH1 AS (select distinct 0 as c1, D1.c10 as c2, D1.c9 as c3, D1.c8 as c4, D1.c7 as c5, D1.c6 as c6, D1.c5 as c7, D1.c4 as c8, D1.c11 as c9, D1.c12 as c10, D1.c13 as c11, D1.c3 as c12, NULL as c13, nvl(D1.c1 , 0) as c14, nvl(D1.c2 , 0) as c15, cast(NULL as DOUBLE PRECISION ) as c16, cast(NULL as DOUBLE PRECISION ) as c17, cast(NULL as DOUBLE PRECISION ) as c19, cast(NULL as DOUBLE PRECISION ) as c20 from SAWITH0 D1 where ( 0 < nvl(D1.c1 , 0) ) ), SAWITH2 AS (select sum(T80629.NUMBER3) as c1, case when T80629.TEXT8 = 'Completed' then 'Completed' when T80629.TEXT8 in ('In Progress', 'New') then 'Packing notes' else 'To be generated' end as c2, T80629.TEXT9 as c3, T80629.TEXT6 as c4, T80629.TEXT5 as c5, T80629.TEXT2 as c6, T80629.TEXT10 as c7, T80629.NUMBER1 as c8, T80629.DATE1 as c9, T5959.CUSTOMER_BUSINESS_UNIT_CODE as c10, T5959.CUSTOMER_BUSINESS_UNIT_NAME as c11, T5959.CUSTOMER_NUMBER as c12 from DIM_V_CUSTOMER T5959, FACT_V_REALTIME_CUSTOMER_DATA T80629 where ( T5959.DIMENSION_KEY = T80629.CUSTOMER and T80629.DATASET = 12 and (T5959.CUSTOMER_BUSINESS_UNIT_CODE in ('0', '3045')) and T5959.CUSTOMER_BUSINESS_UNIT_CODE >= '3000' ) group by T5959.CUSTOMER_NUMBER, T5959.CUSTOMER_BUSINESS_UNIT_CODE, T5959.CUSTOMER_BUSINESS_UNIT_NAME, T80629.TEXT2, T80629.TEXT5, T80629.TEXT6, T80629.TEXT9, T80629.TEXT10, T80629.DATE1, T80629.NUMBER1, case when T80629.TEXT8 = 'Completed' then 'Completed' when T80629.TEXT8 in ('In Progress', 'New') then 'Packing notes' else 'To be generated' end ), SAWITH3 AS (select sum(T80629.NUMBER3) as c1, sum(case when not case when T80629.TEXT8 = 'Completed' then 'Completed' when T80629.TEXT8 in ('In Progress', 'New') then 'Packing notes' else 'Not generated' end = 'Completed' then T80629.NUMBER3 end ) as c2, case when T80629.TEXT8 = 'Completed' then 'Completed' when T80629.TEXT8 in ('In Progress', 'New') then 'Packing notes' else 'To be generated' end as c3, T80629.TEXT9 as c4, T80629.TEXT6 as c5, T80629.TEXT5 as c6, T80629.TEXT2 as c7, T80629.TEXT10 as c8, T80629.NUMBER1 as c9, T80629.DATE1 as c10, T5959.CUSTOMER_BUSINESS_UNIT_CODE as c11, T5959.CUSTOMER_BUSINESS_UNIT_NAME as c12, T5959.CUSTOMER_NUMBER as c13 from DIM_V_CUSTOMER T5959, FACT_V_REALTIME_CUSTOMER_DATA T80629 where ( T5959.DIMENSION_KEY = T80629.CUSTOMER and T80629.DATASET = 12 and T5959.CUSTOMER_BUSINESS_UNIT_CODE >= '3000' and (T5959.CUSTOMER_BUSINESS_UNIT_CODE in ('0', '3045')) and T80629.DATE1 in (select distinct D1.c1 as c1 from OBISUBWITH1 D1) ) group by T5959.CUSTOMER_NUMBER, T5959.CUSTOMER_BUSINESS_UNIT_CODE, T5959.CUSTOMER_BUSINESS_UNIT_NAME, T80629.TEXT2, T80629.TEXT5, T80629.TEXT6, T80629.TEXT9, T80629.TEXT10, T80629.DATE1, T80629.NUMBER1, case when T80629.TEXT8 = 'Completed' then 'Completed' when T80629.TEXT8 in ('In Progress', 'New') then 'Packing notes' else 'To be generated' end ), SAWITH4 AS (select distinct 2 as c1, D1.c10 as c2, D1.c9 as c3, D1.c8 as c4, D1.c7 as c5, D1.c6 as c6, D1.c5 as c7, D1.c4 as c8, D1.c11 as c9, D1.c12 as c10, D1.c13 as c11, D1.c3 as c12, NULL as c13, nvl(D1.c1 , 0) as c14, nvl(D1.c2 , 0) as c15, cast(NULL as DOUBLE PRECISION ) as c17, cast(NULL as DOUBLE PRECISION ) as c19 from SAWITH3 D1 where ( 0 < nvl(D1.c1 , 0) ) ), SAWITH5 AS (select sum(T80629.NUMBER3) as c1, sum(case when not case when T80629.TEXT8 = 'Completed' then 'Completed' when T80629.TEXT8 in ('In Progress', 'New') then 'Packing notes' else 'Not generated' end = 'Completed' then T80629.NUMBER3 end ) as c2, case when T80629.TEXT8 = 'Completed' then 'Completed' when T80629.TEXT8 in ('In Progress', 'New') then 'Packing notes' else 'To be generated' end as c3, T80629.TEXT9 as c4, T80629.TEXT6 as c5, T80629.TEXT5 as c6, T80629.TEXT2 as c7, T80629.TEXT10 as c8, T80629.NUMBER1 as c9, T80629.DATE1 as c10, T5959.CUSTOMER_BUSINESS_UNIT_CODE as c11, T5959.CUSTOMER_BUSINESS_UNIT_NAME as c12, T5959.CUSTOMER_NUMBER as c13 from DIM_V_CUSTOMER T5959, FACT_V_REALTIME_CUSTOMER_DATA T80629 where ( T5959.DIMENSION_KEY = T80629.CUSTOMER and T80629.DATASET = 12 and T5959.CUSTOMER_BUSINESS_UNIT_CODE >= '3000' and (T5959.CUSTOMER_BUSINESS_UNIT_CODE in ('0', '3045')) and T5959.CUSTOMER_BUSINESS_UNIT_NAME in (select distinct D1.c1 as c1 from OBISUBWITH0 D1) ) group by T5959.CUSTOMER_NUMBER, T5959.CUSTOMER_BUSINESS_UNIT_CODE, T5959.CUSTOMER_BUSINESS_UNIT_NAME, T80629.TEXT2, T80629.TEXT5, T80629.TEXT6, T80629.TEXT9, T80629.TEXT10, T80629.DATE1, T80629.NUMBER1, case when T80629.TEXT8 = 'Completed' then 'Completed' when T80629.TEXT8 in ('In Progress', 'New') then 'Packing notes' else 'To be generated' end ), SAWITH6 AS (select distinct 3 as c1, D1.c10 as c2, D1.c9 as c3, D1.c8 as c4, D1.c7 as c5, D1.c6 as c6, D1.c5 as c7, D1.c4 as c8, D1.c11 as c9, D1.c12 as c10, D1.c13 as c11, D1.c3 as c12, NULL as c13, nvl(D1.c1 , 0) as c14, nvl(D1.c2 , 0) as c15, cast(NULL as DOUBLE PRECISION ) as c16, cast(NULL as DOUBLE PRECISION ) as c18, cast(NULL as DOUBLE PRECISION ) as c20, cast(NULL as DOUBLE PRECISION ) as c21 from SAWITH5 D1 where ( 0 < nvl(D1.c1 , 0) ) ), SAWITH7 AS ((select D1.c1 as c1, D1.c2 as c2, D1.c3 as c3, D1.c4 as c4, D1.c5 as c5, D1.c6 as c6, D1.c7 as c7, D1.c8 as c8, D1.c9 as c9, D1.c10 as c10, D1.c11 as c11, D1.c12 as c12, D1.c13 as c13, D1.c14 as c14, D1.c15 as c15, D1.c16 as c16, D1.c17 as c17, sum(D1.c14) over (partition by D1.c10, D1.c2, D1.c4, D1.c8, D1.c12) as c18, D1.c19 as c19, D1.c20 as c20, sum(D1.c14) over (partition by D1.c10, D1.c4, D1.c8, D1.c12) as c21 from SAWITH1 D1 union all select distinct 1 as c1, D1.c9 as c2, D1.c8 as c3, D1.c7 as c4, D1.c6 as c5, D1.c5 as c6, D1.c4 as c7, D1.c3 as c8, D1.c10 as c9, D1.c11 as c10, D1.c12 as c11, D1.c2 as c12, NULL as c13, cast(NULL as DOUBLE PRECISION ) as c14, cast(NULL as DOUBLE PRECISION ) as c15, cast(NULL as DOUBLE PRECISION ) as c16, cast(NULL as DOUBLE PRECISION ) as c17, cast(NULL as DOUBLE PRECISION ) as c18, cast(NULL as DOUBLE PRECISION ) as c19, cast(NULL as DOUBLE PRECISION ) as c20, cast(NULL as DOUBLE PRECISION ) as c21 from SAWITH2 D1 where ( 0 < nvl(D1.c1 , 0) ) union all select D1.c1 as c1, D1.c2 as c2, D1.c3 as c3, D1.c4 as c4, D1.c5 as c5, D1.c6 as c6, D1.c7 as c7, D1.c8 as c8, D1.c9 as c9, D1.c10 as c10, D1.c11 as c11, D1.c12 as c12, D1.c13 as c13, D1.c14 as c14, D1.c15 as c15, sum(D1.c14) over (partition by D1.c10, D1.c2, D1.c3, D1.c4, D1.c8, D1.c12) as c16, D1.c17 as c17, sum(D1.c14) over (partition by D1.c10, D1.c2, D1.c4, D1.c8, D1.c12) as c18, D1.c19 as c19, sum(D1.c14) over (partition by D1.c10, D1.c3, D1.c4, D1.c8, D1.c12) as c20, sum(D1.c14) over (partition by D1.c10, D1.c4, D1.c8, D1.c12) as c21 from SAWITH4 D1 union all select D1.c1 as c1, D1.c2 as c2, D1.c3 as c3, D1.c4 as c4, D1.c5 as c5, D1.c6 as c6, D1.c7 as c7, D1.c8 as c8, D1.c9 as c9, D1.c10 as c10, D1.c11 as c11, D1.c12 as c12, D1.c13 as c13, D1.c14 as c14, D1.c15 as c15, D1.c16 as c16, sum(D1.c14) over (partition by D1.c10, D1.c9, D1.c2, D1.c4, D1.c8, D1.c12) as c17, D1.c18 as c18, sum(D1.c14) over (partition by D1.c10, D1.c9, D1.c2, D1.c4, D1.c8) as c19, D1.c20 as c20, D1.c21 as c21 from SAWITH6 D1)) select D1.c1 as c1, D1.c2 as c2, D1.c3 as c3, D1.c4 as c4, D1.c5 as c5, D1.c6 as c6, D1.c7 as c7, D1.c8 as c8, D1.c9 as c9, D1.c10 as c10, D1.c11 as c11, D1.c12 as c12, D1.c13 as c13, D1.c14 as c14, D1.c15 as c15, D1.c16 as c16, D1.c17 as c17, D1.c18 as c18, D1.c19 as c19, D1.c20 as c20, D1.c21 as c21 from ( select D1.c1 as c1, D1.c2 as c2, D1.c3 as c3, D1.c4 as c4, D1.c5 as c5, D1.c6 as c6, D1.c7 as c7, D1.c8 as c8, D1.c9 as c9, D1.c10 as c10, D1.c11 as c11, D1.c12 as c12, D1.c13 as c13, D1.c14 as c14, D1.c15 as c15, D1.c16 as c16, D1.c17 as c17, D1.c18 as c18, D1.c19 as c19, D1.c20 as c20, D1.c21 as c21 from SAWITH7 D1 order by c1, c10, c8, c4, c2, c12 ) D1 where rownum <= 5000001
grwydz59pu6mcselect text from view$ where rowid=:1
guwkyanaxz7mgMERGE /*+ APPEND */ INTO "FACT_MONTHLY_EXT_CUST_DATA" USING (SELECT /*+ ORDERED NO_MERGE("INGRP1") NO_MERGE */ "V_STFACT_MONTHLY_EXT_CUST_DATA". "TARGET" "TARGET", "DATE_CAL_MONTH_BASED". "MONTH_ID" "MONTH_ID", "TARGET_TYPE". "ID" "ID", "CUSTOMER". "CUSTOMER_ID" "CUSTOMER_ID" FROM "ABSDWHSTAGING". "V_STFACT_MONTHLY_EXT_CUST_DATA"@ "ABSDWHSTAGING_LOCATION" "V_STFACT_MONTHLY_EXT_CUST_DATA", "DATE_CAL_MONTH_BASED" "DATE_CAL_MONTH_BASED", "TARGET_TYPE" "TARGET_TYPE", "CUSTOMER" "CUSTOMER" WHERE ( "DATE_CAL_MONTH_BASED". "DIMENSION_KEY" = "DATE_CAL_MONTH_BASED". "MONTH_ID" ) AND ( "TARGET_TYPE". "DIMENSION_KEY" = "TARGET_TYPE". "ID" ) AND ( "CUSTOMER". "DIMENSION_KEY" = "CUSTOMER". "CUSTOMER_ID" ) AND ( "DATE_CAL_MONTH_BASED". "MONTH_SOURCE_ID" = "V_STFACT_MONTHLY_EXT_CUST_DATA". "MONTH_ID" ) AND ( "TARGET_TYPE". "TARGET_TYPE" = "V_STFACT_MONTHLY_EXT_CUST_DATA". "TARGET_TYPE" ) AND ( "CUSTOMER". "CUSTOMER_NUMBER" = "V_STFACT_MONTHLY_EXT_CUST_DATA". "CUSTOMER" ) ) MERGE_SUBQUERY ON ( "FACT_MONTHLY_EXT_CUST_DATA". "DATE_CAL_MONTH_BASED" = "MERGE_SUBQUERY". "MONTH_ID" AND "FACT_MONTHLY_EXT_CUST_DATA". "TARGET_TYPE" = "MERGE_SUBQUERY". "ID" AND "FACT_MONTHLY_EXT_CUST_DATA". "CUSTOMER_ID" = "MERGE_SUBQUERY". "CUSTOMER_ID" ) WHEN MATCHED THEN UPDATE SET "TARGET" = "MERGE_SUBQUERY". "TARGET" WHEN NOT MATCHED THEN INSERT ( "FACT_MONTHLY_EXT_CUST_DATA". "TARGET", "FACT_MONTHLY_EXT_CUST_DATA". "DATE_CAL_MONTH_BASED", "FACT_MONTHLY_EXT_CUST_DATA". "TARGET_TYPE", "FACT_MONTHLY_EXT_CUST_DATA". "CUSTOMER_ID") VALUES ( "MERGE_SUBQUERY". "TARGET", "MERGE_SUBQUERY". "MONTH_ID", "MERGE_SUBQUERY". "ID", "MERGE_SUBQUERY". "CUSTOMER_ID")

Back to SQL Statistics
Back to Top

Instance Activity Statistics

Back to Top

Key Instance Activity Stats

StatisticTotalper Secondper Trans
db block changes3,398,999,09511,654.341,802.54
execute count137,678,385472.0773.01
logons cumulative8,3430.030.00
opened cursors cumulative138,122,246473.5973.25
parse count (total)1,921,9006.591.02
parse time elapsed218,5950.750.12
physical reads768,127,0722,633.72407.35
physical writes86,280,930295.8445.76
redo size571,932,620,8521,961,017.10303,304.24
session cursor cache hits137,746,291472.3073.05
session logical reads16,354,630,47456,076.038,673.10
user calls12,768,41443.786.77
user commits1,884,6166.461.00
user rollbacks1,0570.000.00
workarea executions - multipass00.000.00
workarea executions - onepass3460.000.00
workarea executions - optimal1,131,4463.880.60


Back to Instance Activity Statistics
Back to Top

Instance Activity Stats

StatisticTotalper Secondper Trans
ASSM bg: segment fix monitor4860.000.00
ASSM cbk:blocks examined13,026,22044.666.91
ASSM cbk:blocks marked full2,856,6569.791.51
ASSM gsp:L1 bitmaps examined11,336,14438.876.01
ASSM gsp:L2 bitmap full3,8300.010.00
ASSM gsp:L2 bitmaps examined633,0812.170.34
ASSM gsp:L3 bitmaps examined00.000.00
ASSM gsp:Optimized index block rejects00.000.00
ASSM gsp:Optimized reject DB13,460,60446.157.14
ASSM gsp:Optimized reject l1249,5960.860.13
ASSM gsp:Search all9,0190.030.00
ASSM gsp:Search hint467,8381.600.25
ASSM gsp:Search steal9,0190.030.00
ASSM gsp:bump HWM9,0190.030.00
ASSM gsp:get free block8,799,87730.174.67
ASSM gsp:get free data block7,679,96426.334.07
ASSM gsp:get free index block1,119,0643.840.59
ASSM gsp:good hint8,343,77728.614.42
ASSM gsp:reject L150,2960.170.03
ASSM gsp:reject db1,370,5364.700.73
ASSM rsv:alloc from reserve1,6390.010.00
ASSM rsv:alloc from reserve succ1,6390.010.00
ASSM rsv:clear reserve3640.000.00
ASSM rsv:fill reserve2,5370.010.00
ASSM wasted db state change1,068,0583.660.57
Batched IO (bound) vector count1,082,2353.710.57
Batched IO (full) vector count8,1730.030.00
Batched IO (space) vector count9,6420.030.01
Batched IO block miss count8,686,99429.794.61
Batched IO buffer defrag count14,0670.050.01
Batched IO double miss count943,0993.230.50
Batched IO same unit count4,348,81514.912.31
Batched IO single block count660,9892.270.35
Batched IO slow jump count725,3072.490.38
Batched IO vector block count3,819,68513.102.03
Batched IO vector read count463,0571.590.25
Block Cleanout Optim referenced721,2152.470.38
CCursor + sql area evicted40,5480.140.02
CCursor + sql area evicted - failed54,4540.190.03
CPU used by this session4,245,13214.562.25
CPU used when call started2,655,5739.111.41
CR blocks created4,516,96515.492.40
Cached Commit SCN referenced278,527,055955.00147.71
Client Advertised Receive Window00.000.00
Client Advertised Send Window00.000.00
Client Data Segments In125,1220.430.07
Client Data Segments Out118,4930.410.06
Client Path Maximum Transmission Unit(MTU)00.000.00
Client Send Congestion Window10.000.00
Client Time (usec) Busy Sending Data328,012,0001,124.67173.95
Client Total Bytes Acked9,918,89034.015.26
Client Total Bytes Received23,855,94381.8012.65
Client Total Number of Retransmitted Packets1160.000.00
Commit SCN cached32,8710.110.02
DBWR checkpoint buffers written53,846,797184.6328.56
DBWR checkpoints32,1240.110.02
DBWR object drop buffers written64,9810.220.03
DBWR parallel query checkpoint buffers written8,1610.030.00
DBWR thread checkpoint buffers written40,142,842137.6421.29
DBWR transaction table writes20,6110.070.01
DBWR undo block writes32,218,095110.4717.09
DDLs executed1,8260.010.00
DFO trees parallelized00.000.00
Effective IO time10,474,894,83535,915.855,554.99
HSC Heap Segment Block Changes600,433,4802,058.74318.42
HSC IDL Compressed Blocks30,1190.100.02
Heap Segment Array Deletes6,279,35021.533.33
Heap Segment Array Inserts75,5070.260.04
Heap Segment Array Updates1,997,9656.851.06
Heatmap BlkLevel Flushed3,862,85613.242.05
Heatmap BlkLevel Flushed to BF3,862,85613.242.05
Heatmap BlkLevel Ranges Flushed6,3170.020.00
Heatmap Blklevel Flush Task Count800.000.00
IMU CR rollbacks9790.000.00
IMU Flushes116,6080.400.06
IMU Redo allocation size170,298,676583.9190.31
IMU commits1,745,2635.980.93
IMU contention1,0050.000.00
IMU ktichg flush21,7050.070.01
IMU pool not allocated70,3580.240.04
IMU recursive-transaction flush470.000.00
IMU undo allocation size2,214,041,7607,591.411,174.14
IMU- failed to get a private strand70,3580.240.04
KTFB alloc req37,9910.130.02
KTFB alloc space (block)218,093,846,528747,790.47115,658.36
KTFB alloc time (ms)21,402,65873.3811.35
KTFB apply req50,9170.170.03
KTFB apply time (ms)1,127,5523.870.60
KTFB commit req9,3790.030.00
KTFB commit time (ms)240,3320.820.13
KTFB free req37,1080.130.02
KTFB free space (block)26,048,88089.3213.81
KTFB free time (ms)111,9290.380.06
LOB table id lookup cache misses110.000.00
Misses for writing mapping00.000.00
Number of read IOs issued5,617,91019.262.98
PX local messages recv'd00.000.00
PX local messages sent00.000.00
Parallel operations not downgraded00.000.00
Requests to/from client12,316,72442.236.53
RowCR - row contention4090.000.00
RowCR attempts712,0582.440.38
RowCR hits697,2862.390.37
SCN increments due to another database7,747,71226.574.11
SMON posted for undo segment recovery00.000.00
SMON posted for undo segment shrink1,5000.010.00
SQL*Net roundtrips to/from client12,316,75242.236.53
SQL*Net roundtrips to/from dblink2,016,1086.911.07
active txn count during cleanout11,891,52940.776.31
background checkpoints completed6,5370.020.00
background checkpoints started6,5410.020.00
background timeouts3,198,84210.971.70
blocks cleaned out using minact12,749,74243.726.76
branch node splits2,9080.010.00
buffer is not pinned count2,895,131,5309,926.701,535.33
buffer is pinned count16,647,159,59657,079.048,828.23
bytes received via SQL*Net from client684,957,8092,348.55363.24
bytes received via SQL*Net from dblink16,460,676,73456,439.648,729.34
bytes sent via SQL*Net to client16,450,717,64156,405.498,724.06
bytes sent via SQL*Net to dblink357,740,4321,226.60189.71
bytes via SQL*Net vector to client1,257,2484.310.67
calls to get snapshot scn: kcmgss147,642,935506.2378.30
calls to kcmadj2,054,3257.041.09
calls to kcmgas9,320,65131.964.94
calls to kcmgcs70,342,523241.1937.30
cell physical IO interconnect bytes8,329,219,241,47228,558,855.964,417,106.91
change write time166,7130.570.09
cleanout - number of ktugct calls22,379,40176.7311.87
cleanouts and rollbacks - consistent read gets2,311,2217.921.23
cleanouts only - consistent read gets10,324,69935.405.48
cluster key scan block gets93,755,589321.4649.72
cluster key scans38,328,188131.4220.33
commit batch performed3,2050.010.00
commit batch requested3,2050.010.00
commit batch/immediate performed14,9230.050.01
commit batch/immediate requested14,9230.050.01
commit cleanout failures: block lost48,0690.160.03
commit cleanout failures: buffer being written2,2020.010.00
commit cleanout failures: callback failure10,1020.030.01
commit cleanout failures: cannot pin2590.000.00
commit cleanouts29,951,278102.7015.88
commit cleanouts successfully completed29,890,646102.4915.85
commit immediate performed11,7180.040.01
commit immediate requested11,7180.040.01
commit txn count during cleanout11,713,05140.166.21
consistent changes70,936,019243.2237.62
consistent gets11,802,350,43440,467.376,258.96
consistent gets direct722,085,1092,475.85382.93
consistent gets examination3,251,579,65511,148.871,724.36
consistent gets examination (fastpath)3,242,051,66111,116.201,719.31
consistent gets from cache11,080,265,32537,991.525,876.03
consistent gets pin7,828,685,67026,842.654,151.67
consistent gets pin (fastpath)7,822,527,05626,821.534,148.40
cumulative DB time in requests52,932,987,286181,494.2728,071.14
cumulative begin requests264,8230.910.14
cumulative end requests264,8130.910.14
cumulative time in requests1,442,283,7034,945.24764.86
cursor authentications14,1720.050.01
cursor reload failures6980.000.00
data blocks consistent reads - undo records applied65,560,012224.7934.77
db block changes3,398,999,09511,654.341,802.54
db block gets4,552,280,04015,608.662,414.14
db block gets direct4,207,83314.432.23
db block gets from cache4,548,072,20715,594.232,411.91
db block gets from cache (fastpath)3,496,447,88711,988.461,854.22
deferred (CURRENT) block cleanout applications18,914,32464.8510.03
dirty buffers inspected882,8953.030.47
enqueue conversions8,083,51527.724.29
enqueue releases74,458,593255.3039.49
enqueue requests74,461,536255.3139.49
enqueue timeouts2,9290.010.00
enqueue waits31,8390.110.02
exchange deadlocks10.000.00
execute count137,678,385472.0773.01
failed probes on index block reclamation4,6730.020.00
fastpath consistent get quota limit2,738,2709.391.45
file io service time554,853,4001,902.46294.25
free buffer inspected71,032,204243.5537.67
free buffer requested75,492,724258.8540.03
heap block compress10,538,94236.145.59
hot buffers moved to head of LRU46,238,277158.5424.52
immediate (CR) block cleanout applications12,635,92043.336.70
immediate (CURRENT) block cleanout applications10,404,20035.675.52
index crx upgrade (positioned)23,0810.080.01
index crx upgrade (prefetch)40.000.00
index fast full scans (direct read)00.000.00
index fast full scans (full)14,4190.050.01
index fast full scans (rowid ranges)00.000.00
index fetch by key6,196,195,82121,245.243,285.93
index range scans278,922,354956.36147.92
index reclamation/extension switch710.000.00
index split cancel wait noclean00.000.00
leaf node 90-10 splits46,7550.160.02
leaf node splits1,120,4073.840.59
lob reads878,5793.010.47
lob writes1,466,8985.030.78
lob writes unaligned1,466,4065.030.78
logical read bytes from cache128,027,341,062,144438,974,444.7867,894,773.41
logons cumulative8,3430.030.00
max cf enq hold time160.000.00
messages received2,809,5019.631.49
messages sent2,809,5019.631.49
min active SCN optimization applied on CR15,989,16154.828.48
no buffer to keep pinned count60,911,735208.8532.30
no work - consistent read gets8,071,560,57627,675.414,280.47
non-idle wait count55,240,645189.4129.29
opened cursors cumulative138,122,246473.5973.25
parse count (describe)7820.000.00
parse count (failures)4,4690.020.00
parse count (hard)48,1920.170.03
parse count (total)1,921,9006.591.02
parse time cpu179,9230.620.10
parse time elapsed218,5950.750.12
physical read IO requests30,274,986103.8116.06
physical read bytes6,292,496,973,82421,575,433.363,337,003.27
physical read total IO requests32,691,807112.0917.34
physical read total bytes6,331,710,551,04021,709,887.133,357,798.81
physical read total multi block requests6,369,89821.843.38
physical reads768,127,0722,633.72407.35
physical reads cache33,713,586115.6017.88
physical reads cache prefetch27,058,16292.7814.35
physical reads direct734,413,4862,518.12389.47
physical reads direct (lob)106,9880.370.06
physical reads direct temporary tablespace19,287,77466.1310.23
physical reads prefetch warmup00.000.00
physical write IO requests35,701,976122.4118.93
physical write bytes706,813,378,5602,423,490.23374,833.48
physical write total IO requests40,995,657140.5621.74
physical write total bytes1,997,508,690,4326,848,968.831,059,308.10
physical write total multi block requests5,152,17517.672.73
physical writes86,280,930295.8445.76
physical writes direct30,375,649104.1516.11
physical writes direct (lob)24,5860.080.01
physical writes direct temporary tablespace25,998,29889.1413.79
physical writes from cache55,905,281191.6929.65
physical writes non checkpoint61,644,730211.3632.69
pinned buffers inspected32,0670.110.02
pinned cursors current180.000.00
prefetch clients - default130.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 use3,023,52910.371.60
process last non-idle time291,6521.000.15
queries parallelized00.000.00
recursive aborts on index block reclamation720.000.00
recursive calls158,958,424545.0384.30
recursive cpu usage1,993,0776.831.06
redo blocks checksummed by FG (exclusive)199,719,714684.79105.91
redo blocks written1,155,848,4553,963.12612.96
redo blocks written (group 0)1,125,647,2153,859.57596.95
redo blocks written (group 1)10,654,94536.535.65
redo buffer allocation retries48,9010.170.03
redo entries1,711,982,0975,869.97907.89
redo log space requests119,4450.410.06
redo ordering marks628,5942.160.33
redo size571,932,620,8521,961,017.10303,304.24
redo size for direct writes7,879,74027.024.18
redo subscn max counts480,5801.650.25
redo synch long waits00.000.00
redo synch time8,6040.030.00
redo synch time (usec)87,452,881299.8546.38
redo synch time overhead (usec)13,462,40646.167.14
redo synch time overhead count ( 2ms)92,3130.320.05
redo synch time overhead count ( 8ms)670.000.00
redo synch time overhead count ( 32ms)240.000.00
redo synch time overhead count (128ms)150.000.00
redo synch time overhead count (inf)150.000.00
redo synch writes93,9260.320.05
redo wastage380,603,5321,305.00201.84
redo write active strands1,618,7385.550.86
redo write finish time2,184,830,1587,491.251,158.65
redo write gather time60,693,684208.1032.19
redo write info find92,4340.320.05
redo write info find fail00.000.00
redo write issue time92,188,167316.0948.89
redo write schedule time91,912,782315.1548.74
redo write size count ( 4KB)1,037,1033.560.55
redo write size count ( 8KB)191,9220.660.10
redo write size count ( 16KB)16,3850.060.01
redo write size count ( 32KB)11,8830.040.01
redo write size count ( 128KB)10,2370.040.01
redo write size count ( 256KB)5,2680.020.00
redo write size count ( 512KB)8,2040.030.00
redo write size count (1024KB)7,6480.030.00
redo write size count (inf)292,4801.000.16
redo write time219,4360.750.12
redo write time (usec)2,194,354,2867,523.901,163.70
redo write total time3,156,175,80310,821.761,673.77
redo write worker delay (usec)39,579,325135.7120.99
redo write worker delay count1,562,4615.360.83
redo writes1,581,1305.420.84
redo writes (group 0)940,0523.220.50
redo writes (group 1)622,4092.130.33
redo writes adaptive all1,581,1305.420.84
redo writes adaptive worker1,562,4615.360.83
rollback changes - undo records applied75,3240.260.04
rollbacks only - consistent read gets2,205,8627.561.17
root node splits790.000.00
rows fetched via callback175,680,107602.3693.17
securefile allocation bytes201,408,512690.58106.81
securefile allocation chunks7,5140.030.00
securefile bytes non-transformed174,464,661598.2092.52
securefile direct read bytes811,237,3762,781.53430.21
securefile direct read ops20,2120.070.01
securefile direct write bytes201,408,512690.58106.81
securefile direct write ops7,3360.030.00
securefile number of non-transformed flushes8,0940.030.00
segment cfs allocations650.000.00
segment chunks allocation from dispenser4,7790.020.00
segment dispenser allocations3,4020.010.00
segment dispenser load empty640.000.00
segment dispenser load tasks2180.000.00
segment prealloc bytes251,133,952861.08133.18
segment prealloc ops3,9960.010.00
segment prealloc tasks3,0070.010.00
segment prealloc time (ms)2,9220.010.00
segment prealloc ufs2cfs bytes8,331,26428.574.42
segment total chunk allocation240.000.00
session connect time00.000.00
session cursor cache hits137,746,291472.3073.05
session logical reads16,354,630,47456,076.038,673.10
shared hash latch upgrades - no wait34,236,623117.3918.16
shared hash latch upgrades - wait16,8470.060.01
shared io pool buffer get success22,0950.080.01
sorts (disk)1160.000.00
sorts (memory)912,0093.130.48
sorts (rows)8,638,649,06529,619.824,581.20
sql area evicted26,9820.090.01
sql area purged7,3760.030.00
summed dirty queue length6,499,31522.283.45
switch current caused by our pin10,578,27636.275.61
switch current to new buffer10,668,47336.585.66
table fetch by rowid7,628,051,22326,154.724,045.27
table fetch continued row25,922,47788.8813.75
table scan blocks gotten5,892,708,31820,204.663,124.99
table scan disk non-IMC rows gotten205,642,349,295705,097.33109,055.15
table scan rows gotten211,965,796,360726,778.88112,408.57
table scans (direct read)2,9780.010.00
table scans (long tables)44,9690.150.02
table scans (rowid ranges)2,0040.010.00
table scans (short tables)43,756,618150.0323.20
total cf enq hold time155,1950.530.08
total number of cf enq holders126,1000.430.07
total number of times SMON posted1,5010.010.00
transaction rollbacks9,5170.030.01
transaction tables consistent read rollbacks490.000.00
transaction tables consistent reads - undo records applied15,0300.050.01
undo change vector size225,258,248,664772,355.45119,457.75
user calls12,768,41443.786.77
user commits1,884,6166.461.00
user logons cumulative3,0910.010.00
user logouts cumulative3,0850.010.00
user rollbacks1,0570.000.00
workarea executions - multipass00.000.00
workarea executions - onepass3460.000.00
workarea executions - optimal1,131,4463.880.60
write clones created in background3,3340.010.00
write clones created in foreground18,6720.060.01


Back to Instance Activity Statistics
Back to Top

Instance Activity Stats - Absolute Values

StatisticBegin ValueEnd Value
logons current7782
opened cursors current223239
session cursor cache count2,101,9792,262,537
session pga memory489,768,528545,732,616
session pga memory max992,711,5362,913,191,880
session uga memory51,071,781,91254,549,983,280
session uga memory max1,186,248,162,2561,286,354,503,776
workarea memory allocated02,604


Back to Instance Activity Statistics
Back to Top

Instance Activity Stats - Thread Activity

StatisticTotalper Hour
log switches (derived)6,54180.74


Back to Instance Activity Statistics
Back to Top

IO Stats

Back to Top

IOStat by Function summary

Function NameReads: DataReqs per secData per secWrites: DataReqs per secData per secWaits: CountAvg Time
Direct Reads4.6T19.3616.584M38G0.73.133M155103.23us
Data Pump849.1G50.522.981M643.6G9.072.26M13.9M163.72us
LGWR10.9G2.50.038M552.3G7.831.939M2.4M.98ms
DBWR0M0.000M426.1G117.981.496M0 
Buffer Cache Reads257G33.77.902M0M0.000M6.6M477.09us
Direct Writes30.9G0.17.108M191.3G3.53.672M2899117.63us
Others25.6G5.77.09M7.8G1.24.027M1.9M173.76us
Streams AQ0M0.000M0M0.000M70.00ns
TOTAL:5.8T112.0920.704M1.8T140.386.527M24.8M326.86us


Back to IO Stats
Back to Top

IOStat by Filetype summary

Filetype NameReads: DataReqs per secData per secWrites: DataReqs per secData per secSmall ReadLarge Read
Data File5.6T101.3320.059M459.8G119.091.615M411.33us6.05ms
Data Pump Dump File0M0.000M643.5G9.062.259M  
Log File7M0.040M551.2G7.421.935M190.41us 
Temp File147.3G2.55.517M198.4G3.32.697M1.12ms1.54ms
Control File36.4G8.17.128M7.4G1.67.026M189.29us 
TOTAL:5.8T112.0920.704M1.8T140.566.532M395.10us5.63ms


Back to IO Stats
Back to Top

IOStat by Function/Filetype summary

Function/File NameReads: DataReqs per secData per secWrites: DataReqs per secData per secWaits: CountAvg Time
Direct Reads 4.6T19.3616.584M38G0.73.133M155103.23us
Direct Reads (Data File) 4.5T16.8716.069M338M0.15.001M0 
Direct Reads (Temp File) 146.7G2.49.515M37.7G0.59.132M0 
Direct Reads (Control File) 2M0.000M0M0.000M155103.23us
Data Pump 849.1G50.522.981M643.6G9.072.26M13.9M163.72us
Data Pump (Data File) 849G50.522.981M140M0.010M13.9M163.72us
Data Pump (Data Pump Dump File) 0M0.000M643.5G9.062.259M0 
Data Pump (Temp File) 75M0.000M0M0.000M20800.00us
Data Pump (Control File) 6M0.000M0M0.000M400357.50us
LGWR 10.9G2.50.038M552.3G7.831.939M741.3K309.82us
LGWR (Log File) 6M0.040M550.3G7.381.932M26.1K246.86us
LGWR (Control File) 10.9G2.45.038M2G0.45.007M715.2K312.12us
DBWR 0M0.000M426.1G117.981.496M0 
DBWR (Data File) 0M0.000M426.1G117.961.496M0 
DBWR (Temp File) 0M0.000M76M0.010M0 
Buffer Cache Reads 257G33.77.902M0M0.000M6.2M436.58us
Buffer Cache Reads (Data File) 256.9G33.77.902M0M0.000M6.2M436.56us
Buffer Cache Reads (Temp File) 42M0.000M0M0.000M1361.49ms
Direct Writes 30.9G0.17.108M191.3G3.53.672M2899117.63us
Direct Writes (Temp File) 342M0.01.001M160.6G2.72.564M0 
Direct Writes (Data File) 30.5G0.15.107M30.6G0.81.108M0 
Direct Writes (Control File) 45M0.010M0M0.000M2899117.63us
Others 25.6G5.77.09M7.8G1.24.027M1.7M138.77us
Others (Control File) 25.4G5.70.089M5.4G1.22.019M1.7M136.59us
Others (Data File) 69M0.020M2.3G0.02.008M5589354.27us
Others (Temp File) 124M0.050M36M0.000M15.7K292.41us
Streams AQ (Data File) 0M0.000M0M0.000M70.00ns
Streams AQ 0M0.000M0M0.000M70.00ns
TOTAL: 5.8T112.0920.704M1.8T140.386.527M22.5M241.73us


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)
ABS_DATA 27,171,301931.4427.20720.190.00 12,355,7104217.6161,5150.71
UNDOTBS1 6,86100.831.0000.830.00 18,913,848657.705,3314.29
INDX 1,821,24460.374.5560.290.00 3,221,7101116.574,7211.49
TEMP 728,21521.4826.4900.45  968,421313.7000.00
SYSAUX 418,57710.533.2910.460.00 158,20816.53210.00
SYSTEM 122,11000.531.6400.500.00 77,54607.1332110.16
USERS 6,71600.801.0000.800.00 6,53400.5700.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/sAv Writes(ms)Buffer WaitsAv Buf Wt(ms)
ABS_DATAD:\ORACLE\ORADATA\ABS1\ABS_DATA01.DBF 2,276,41782.2747.2850.190.00 753,012315.926,1820.90
ABS_DATAD:\ORACLE\ORADATA\ABS1\ABS_DATA02.DBF 2,427,81482.3048.0950.180.00 722,831218.636,0740.99
ABS_DATAD:\ORACLE\ORADATA\ABS1\ABS_DATA03.DBF 2,609,26392.1042.6760.180.00 864,220320.485,7730.96
ABS_DATAD:\ORACLE\ORADATA\ABS1\ABS_DATA04.DBF 2,361,66281.9841.9750.190.00 866,453322.205,7760.95
ABS_DATAD:\ORACLE\ORADATA\ABS1\ABS_DATA05.DBF 6,277,242221.1519.33180.190.00 2,805,0471017.0118,9260.46
ABS_DATAD:\ORACLE\ORADATA\ABS1\ABS_DATA06.DBF 5,634,450191.0818.39160.190.00 2,504,889919.3814,4040.71
ABS_DATAD:\ORACLE\ORADATA\ABS1\ABS_DATA07.DBF 3,569,890120.9615.09110.220.00 1,805,278615.272,0090.34
ABS_DATAD:\ORACLE\ORADATA\ABS1\ABS_DATA08.DBF 2,014,56370.7712.5660.210.00 2,033,980715.412,3710.49
INDXD:\ORACLE\ORADATA\ABS1\ABS_INDX01.DBF 155,51810.385.4000.280.00 36,48608.631661.93
INDXD:\ORACLE\ORADATA\ABS1\ABS_INDX02.DBF 145,09700.385.4400.270.00 33,40406.823431.66
INDXD:\ORACLE\ORADATA\ABS1\ABS_INDX03.DBF 149,03810.385.1900.280.00 30,18807.091970.56
INDXD:\ORACLE\ORADATA\ABS1\ABS_INDX04.DBF 95,71800.507.8200.350.00 32,84807.66631.27
INDXD:\ORACLE\ORADATA\ABS1\ABS_INDX05.DBF 83,65700.569.2100.380.00 31,19605.00564.64
INDXD:\ORACLE\ORADATA\ABS1\ABS_INDX06.DBF 100,27800.568.5400.410.00 31,30005.35352.57
INDXD:\ORACLE\ORADATA\ABS1\ABS_INDX07.DBF 150,67610.456.2500.350.00 29,11806.801421.41
INDXD:\ORACLE\ORADATA\ABS1\ABS_INDX08.DBF 196,55310.363.9810.300.00 869,884316.214112.26
INDXD:\ORACLE\ORADATA\ABS1\ABS_INDX09.DBF 235,26610.293.2710.240.00 688,062216.613201.84
INDXD:\ORACLE\ORADATA\ABS1\ABS_INDX10.DBF 225,36010.352.5510.310.00 720,919216.901,0210.55
INDXD:\ORACLE\ORADATA\ABS1\ABS_INDX11.DBF 284,08310.231.5410.220.00 718,305219.661,9671.69
SYSAUXD:\ORACLE\ORADATA\ABS1\SYSAUX01.DBF 418,57710.533.2910.460.00 158,20816.53210.00
SYSTEMD:\ORACLE\ORADATA\ABS1\SYSTEM01.DBF 122,11000.531.6400.500.00 77,54607.1332110.16
TEMPD:\ORACLE\ORADATA\ABS1\TEMP01.DBF 728,21521.4826.4900.45  968,421313.700 
UNDOTBS1D:\ORACLE\ORADATA\ABS1\UNDOTBS01.DBF 6,86100.831.0000.830.00 18,913,848657.705,3314.29
USERSD:\ORACLE\ORADATA\ABS1\USERS01.DBF 6,71600.801.0000.800.00 6,53400.5700.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
D1,124,17910015,624,633,20033,713,42655,905,2810071,915


Back to Buffer Pool Statistics
Back to Top

Checkpoint Activity

MTTR WritesLog Size WritesLog Ckpt WritesOther Settings WritesAutotune Ckpt WritesThread Ckpt Writes
020,882,1750013,695,79419,260,667


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
B041870212223846635522384   
E044239126638256635526635521328981   


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 Cache Advisory

Pool NameONBlock Size (KB)Size FactrSize for Est (MB) Beg SnapSize for Est (MB) End SnapEst Physical Read FactorEstimated Physical Reads (thousands)
DEFAULTON80.10896896141.904,784,023.73
DEFAULTON80.201,7921,7925.98201,460.10
DEFAULTON80.292,6882,6883.82128,709.88
DEFAULTON80.393,5843,5843.00101,200.61
DEFAULTON80.494,4804,4802.6890,380.51
DEFAULTON80.595,3765,3762.4983,897.83
DEFAULTON80.686,2726,2722.3679,616.16
DEFAULTON80.787,1687,1682.2074,207.61
DEFAULTON80.888,0648,0641.3144,298.51
DEFAULTON80.988,9608,9601.0535,265.86
DEFAULTON81.009,1849,1841.0033,713.41
DEFAULTON81.079,8569,8560.9431,658.01
DEFAULTON81.1710,75210,7520.8829,826.99
DEFAULTON81.2711,64811,6480.8629,003.18
DEFAULTON81.3712,54412,5440.8528,580.77
DEFAULTON81.4613,44013,4400.8428,247.15
DEFAULTON81.5614,33614,3360.8327,911.95
DEFAULTON81.6615,23215,2320.8227,645.83
DEFAULTON81.7616,12816,1280.8127,374.88
DEFAULTON81.8517,02417,0240.8027,120.77
DEFAULTON81.9517,92017,9200.8026,925.49


Back to Advisory Statistics
Back to Top

PGA Aggr Summary

PGA Cache Hit %W/A MB ProcessedExtra W/A MB Read/Written
84.911,362,173241,994


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)
B3,8403,0851,165.560.000.000.000.00393,210
E3,8403,0431,081.575.360.50100.000.00393,210


Back to Advisory Statistics
Back to Top

PGA Aggr Target Histogram

Low Optimal High OptimalTotal ExecsOptimal Execs1-Pass ExecsM-Pass Execs
2K4K815,243815,24300
64K128K12,67712,67700
128K256K17,04517,04500
256K512K11,27511,27500
512K1024K71,41971,41900
1M2M106,881106,88100
2M4M48,35848,35800
4M8M25,60025,60000
8M16M8,1268,12600
16M32M5,9355,93500
32M64M8,3958,323720
64M128M300264360
128M256M198146520
256M512M13486480
512M1024M890890
1G2G210210
2G4G4040
4G8G240240


Back to Advisory Statistics
Back to Top

PGA Target Advisory

PGA Size FactorI/O Saved PercentBeg snap PGA Size MbEnd snap PGA Size MbM bytes ProcessedExtra M bytes ProcessedEst. over allocation
0.130.004804801,361,9361,088,964974
0.250.009609601,361,936223,3623
0.500.001,9201,9201,361,936168,9000
0.750.002,8802,8801,361,936167,5530
1.000.003,8403,8401,361,936163,1020
1.200.004,6084,6081,361,936147,8920
1.400.005,3765,3761,361,936147,8920
1.600.006,1446,1441,361,936147,8920
1.800.006,9126,9121,361,936147,8920
2.000.007,6807,6801,361,936147,8920
3.000.0011,52011,5201,361,936147,8920
4.000.0015,36015,3601,361,936147,8920
6.000.0023,04023,0401,361,936147,8920
8.000.0030,72030,7201,361,936147,8920


Back to Advisory Statistics
Back to Top

Shared Pool Advisory

SP Size FactorTotal Time Saved SecsFactor Time Gained PercBeg Snap Pool Size MbEnd Snap Pool Size MbEnd Snap Lib Cache Size MbEst LC Mem Obj (K)Est LC Mem Obj Hits (K)
0.59567,570-0.732,0482,0482789165,276
0.69949,985-0.552,4002,40062915228,445
0.801,333,481-0.372,7522,75298122292,211
0.901,718,645-0.183,1043,1041,33330356,030
0.911,753,256-0.173,1363,1361,36531361,826
0.921,788,521-0.153,1683,1681,39731367,626
0.931,823,184-0.133,2003,2001,42931373,422
0.941,858,399-0.123,2323,2321,46132379,222
0.941,893,121-0.103,2643,2641,49332385,019
0.951,928,276-0.083,2963,2961,52532390,818
0.961,963,033-0.073,3283,3281,55732396,616
0.971,998,156-0.053,3603,3601,58933402,415
0.982,032,940-0.033,3923,3921,62134408,212
0.992,068,033-0.023,4243,4241,65334414,011
1.002,102,8490.003,4563,4561,68535421,594
1.012,102,8490.003,4883,4881,71736421,594
1.022,102,8500.003,5203,5201,74936421,594
1.032,102,8510.003,5523,5521,78137421,594
1.042,102,8510.003,5843,5841,81337421,594
1.052,102,8520.003,6163,6161,84537421,594
1.062,102,8530.003,6483,6481,87738421,594
1.062,102,8530.003,6803,6801,90938421,594
1.072,102,8530.003,7123,7121,94138421,594
1.082,102,8540.003,7443,7441,97339421,594
1.102,102,8550.003,8083,8082,03739421,595
1.202,102,8680.004,1604,1602,38946421,596
1.312,102,8900.004,5124,5122,74152421,597
1.412,102,9010.004,8644,8643,09360421,598
1.512,102,9060.005,2165,2163,44568421,598
1.612,102,9080.005,5685,5683,79775421,598
1.712,102,9080.005,9205,9204,14983421,598
1.812,102,9080.006,2726,2724,50191421,598
1.922,102,9080.006,6246,6244,85399421,598
2.022,102,9080.006,9766,9765,205107421,598


Back to Advisory Statistics
Back to Top

SGA Target Advisory

Advice StatusSGA Size FactorBeg Snap SGA Target Size(M)End Snap SGA Target Size(M)Est DB Time (s)Est Physical Reads (thousands)
OK0.253,2403,2402,987,4844,893,977.59
OK0.384,8604,860902,103199,094.78
OK0.506,4806,480118,000129,541.63
OK0.638,1008,100107,34390,622.04
OK0.759,7209,720104,42779,822.74
OK0.8811,34011,34095,04544,243.67
OK1.0012,96012,96092,47233,713.34
OK1.1314,58014,58091,56929,918.19
OK1.2516,20016,20090,00129,146.69
OK1.3817,82017,82089,99128,756.48
OK1.5019,44019,44089,98328,756.48
OK1.6321,06021,06089,97328,201.07
OK1.7522,68022,68089,97327,666.55
OK1.8824,30024,30089,97327,191.95
OK2.0025,92025,92089,97327,191.95


Back to Advisory Statistics
Back to Top

Streams Pool Advisory

Size FactorBeg Snap Size for Est (MB)End Snap Size for Est (MB)Est Unspill Time (s)
0.5032320
1.0064640
1.5096960
2.001281280
2.501601600
3.001921920
3.502242240
4.002562560
4.502882880
5.003203200
5.503523520
6.003843840
6.504164160
7.004484480
7.504804800
8.005125120
8.505445440
9.005765760
9.506086080
10.006406400


Back to Advisory Statistics
Back to Top

Java Pool Advisory

Pool Size FactorPool Size(M) Beg SnapPool Size(M) End SnapEst LC Load Time (s)Est LC Time(s) Saved
1.0032322,9320
2.0064642,9320
3.0096962,9320
4.001281282,9320
5.001601602,9320
6.001921922,9320
7.002242242,9320
8.002562562,9320
9.002882882,9320
10.003203202,9320


Back to Advisory Statistics
Back to Top

Wait Statistics

Back to Top

Buffer Wait Statistics

ClassWaitsTotal Wait Time (s)Avg Time (ms)
data block65,565541
undo header4,736235
segment header3004
3rd level bmb25100
1st level bmb73000
undo block59100
free list500
file header block400
2nd level bmb200


Back to Wait Statistics
Back to Top

Enqueue Activity

Enqueue Type (Request Reason)RequestsSucc GetsFailed GetsWaitsWt Time (s)Av Wt Time(ms)
CF-Controlfile Transaction 503,974503,902766,277304.78
CR-Reuse Block Range (block range reuse ckpt) 238,150238,150023,510271.14
JG-Job Scheduler1 (queue lock) 30,622,77630,622,7760190633.49
RO-Multiple Object Reuse (fast object reuse) 16,73016,73001,67131.62
FB-Format Block 53,37453,374072307.86
TQ-Queue table enqueue (DDL contention) 771771040134.35
UL-User-defined 123123020149.20
KO-Multiple Object Checkpoint (fast object checkpoint) 95095009517.89
TX-Transaction 4,313,6964,313,494021011.95
PR-Process Startup 3,4333,4330207.50
HW-Segment High Water Mark 72,74572,7450300.00
WF-AWR Flush 4,7314,66566100.00
US-Undo Segment 3,2193,2190100.00
TX-Transaction (row lock contention) 110100.00
JG-Job Scheduler1 30,622,77630,622,776000 
DX-Distributed Transaction 7,690,0987,690,098000 
JG-Job Scheduler1 (q mem clnup lck) 2,916,0542,916,054000 
TM-DML 2,273,5942,273,593000 
WG-Write gather local enqueue (lock fso) 1,877,3791,877,379000 
WG-Write gather local enqueue (delete fso) 625,793625,793000 
TT-Tablespace 284,684284,684000 
SJ-KTSJ Slave Task Cancel (Slave Task Cancel) 210,241206,636000 
CU-Cursor 42,68642,685000 
IS-Instance State 32,13432,134000 
TS-Temporary Segment 15,03715,037000 
TO-Temp Object 14,14214,142000 
MR-Media Recovery 13,81413,813000 
TI-In Memory Temp Object HT (IMCDT object HT) 10,88210,882000 
TG-In Memory Temp Object (IMCDT global resource) 10,88010,880000 
DW-In memory Dispenser 9,3506,5622,78800 
SE-Session Migration 8,1428,142000 
ZH-Compression Analyzer (compression analysis) 8,0448,044000 
RC-Result Cache: Enqueue (Result Cache: Contention) 6,3306,330000 
AE-Edition Lock (lock) 6,3086,308000 
TH-Threshold Chain (metric threshold evaluation) 4,8424,842000 
WT-AWR CDB-Wide Table Lock 3,6113,611000 
OD-Online DDLs (Serializing DDLs) 3,0863,086000 
XR-Quiesce / Force Logging (database force logging) 2,1432,143000 
JZ-Join group dictionary (Join group dictionary) 2,1302,130000 
SR-Synchronized Replication 1,9311,931000 
PW-Buffer Cache PreWarm (flush prewarm buffers) 1,6561,656000 
TQ-Queue table enqueue (INI contention) 1,5411,541000 
TQ-Queue table enqueue (TM Job cache use) 1,5411,541000 
SQ-Sequence Cache 1,2531,253000 
PV-KSV slave startup (syncstart) 1,0451,045000 
TA-Instance Undo 982982000 
SH-Active Session History Flushing 961961000 
AF-Advisor Framework (task serialization) 942942000 
TD-KTF map table enqueue (KTF dump entries) 667667000 
TQ-Queue table enqueue (TM contention) 392392000 
RS-Reclaimable Space (read alert level) 323323000 
DL-Direct Loader Index Creation 312312000 
IT-In-Mem Temp Table Meta Creation 218218000 
CI-Cross-Instance Call Invocation 216216000 
DR-Distributed Recovery 162162000 
MW-MWIN Schedule 162162000 
KR-Enqueue-Delete Rule (Add rule to ruleset) 160160000 
TK-Auto Task Serialization (Auto Task Serialization) 105105000 
FH-Flush Stat 8080000 
KR-Enqueue-Delete Rule (Drop rule force) 6060000 
KR-Enqueue-Delete Rule (Remove rule from ruleset) 6060000 
CB-CBAC Master Lock (role operation) 4040000 
PZ-Password File Metadata Cache (load passwordfile metadata) 4040000 
SK-Shrink Segment 2626000 
PD-Property Lock 2424000 
FU-DBFUS 2020000 
KP-Kupp Process Startup 2020000 
PE-Parameter 1414000 
KM-Scheduler 77000 
KT-Scheduler Plan 77000 
TK-Auto Task Serialization (Auto Task Slave Lockout) 77000 
OW-Encryption Wallet (initialization) 66000 
WP-AWR Purge 33000 


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
232,175.854,290,7962,0601917.7/48.40/00/0/0/0/0/32899950


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
26-Feb 08:5371,7736,0821,4273380/00/0/0/0/0/70152
26-Feb 08:4371,8365,9508255280/00/0/0/0/0/75799
26-Feb 08:3380,06826,6681,4254380/00/0/0/0/0/87048
26-Feb 08:2371,6786,3321,4259380/00/0/0/0/0/73804
26-Feb 08:1371,3285,6681,4254380/00/0/0/0/0/71967
26-Feb 08:03105,25228,5531,4246380/00/0/0/0/0/106895
26-Feb 07:5371,0085,5901,4233380/00/0/0/0/0/69647
26-Feb 07:4370,9655,1668224280/00/0/0/0/0/74776
26-Feb 07:3379,49725,8671,4244380/00/0/0/0/0/79880
26-Feb 07:2371,4975,8568236280/00/0/0/0/0/82983
26-Feb 07:1371,1385,9491,4213380/00/0/0/0/0/67614
26-Feb 07:0389,89028,5591,4225380/00/0/0/0/0/101407
26-Feb 06:5371,1435,6391,4214380/00/0/0/0/0/73744
26-Feb 06:4370,8075,0968204280/00/0/0/0/0/72607
26-Feb 06:3370,8455,4371,4204380/00/0/0/0/0/71726
26-Feb 06:2370,7765,1521,4209380/00/0/0/0/0/72727
26-Feb 06:1370,8314,9831,4224380/00/0/0/0/0/68239
26-Feb 06:0371,3545,7841,4213380/00/0/0/0/0/71703
26-Feb 05:5370,9575,4928214280/00/0/0/0/0/67599
26-Feb 05:4371,0055,2802203180/00/0/0/0/0/74806
26-Feb 05:3370,8785,3151,4205390/00/0/0/0/0/77591
26-Feb 05:2371,0475,2921,4208390/00/0/0/0/0/80159
26-Feb 05:1370,9244,9891,4183390/00/0/0/0/0/81085
26-Feb 05:0371,3445,7701,4194390/00/0/0/0/0/70784
26-Feb 04:5371,0195,5131,4183390/00/0/0/0/0/72862
26-Feb 04:4371,4335,3138173290/00/0/0/0/0/67584
26-Feb 04:3372,2597,9162165190/00/0/0/0/0/84935
26-Feb 04:2373,8596,8891,41719390/00/0/0/0/0/66974
26-Feb 04:1375,7976,6361,4183390/00/0/0/0/0/69549
26-Feb 04:0357,0289,0361,4174390/00/0/0/0/0/69294
26-Feb 03:533,0854,0571,4174390/00/0/0/0/0/1672
26-Feb 03:4311958162290/00/0/0/0/0/0
26-Feb 03:33213491,4174390/00/0/0/0/0/0
26-Feb 03:23645221,4175390/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 latch810.00 013,4930.00
AQ Coord jobx_kwsbgsgn latch9,7210.00 00 
AQ Message drive state object latch810.00 00 
AQ Sharded master pool latch9,7610.00 00 
AQ Slave freSlvL_kwsbgsgn latch1040.00 00 
AQ deq hash table latch810.00 00 
AQ dequeue txn counter latch22,5080.00 00 
AQ process state object latch260.00 00 
ASM db client latch251,9400.00 00 
ASM map operation hash table810.00 00 
ASM network state latch24,7650.00 00 
ASM remote client latch24,7650.00 00 
AWR Alerted Metric Element list2,500,0260.00 00 
Active DBOP List latch26,0400.00 00 
Change Notification Hash table latch99,0230.00 00 
Column stats entry latch810.00 00 
Consistent RBA1,600,6170.190.0000 
DBOP Monitoring latch800.00 00 
DML lock allocation4,652,0040.000.0000 
Event Group Locks14,9510.00 00 
FIB s.o chain latch4000.00 00 
FOB consolidated s.o list latch4000.00 00 
File State Object Pool Parent Latch1,251,6670.00 00 
GCS logfile block810.00 00 
GCS logfile write queue810.00 00 
Hang Manager wait event statistics19,3090.00 00 
I/O Staticstics latch810.00 00 
ILM Stats Stripe Latch810.00 00 
ILM Stats main anchor latch4,723,0730.000.0000 
ILM access tracking extent810.00 00 
ILM activity tracking latch810.00 00 
IM Global dictionary latch810.00 00 
IM Global dictionary queue latch810.00 00 
IM Global dictionary rw latch810.00 00 
IM area sb latch810.00 00 
IM area scb latch810.00 00 
IM emb latch810.00 00 
IM seg hdr latch810.00 00 
IMFS defer write list810.00 00 
IMXT hash table latch810.00 00 
IPC stats buffer allocation latch810.00 00 
In memory undo latch15,986,1630.000.0103,364,4250.00
JS Sh mem access2,917,9520.00 00 
JS global state obj latch30,4710.210.0000 
JS mem alloc latch4,7380.00 00 
JS queue access latch4,8190.00 00 
JS queue state obj latch61,245,5520.00 00 
JS slv state obj latch19,3760.00 00 
KCNIBR - invalid block range tree810.00 00 
KDCStatHash latch810.00 00 
KDFI Buffer Latch810.00 00 
KDFI Hash Bucket Latch810.00 00 
KDFI Hash Elem Latch810.00 00 
KDMADO action list latch810.00 00 
KDMADO bll latch810.00 00 
KDMADO latch810.00 00 
KFC FX Hash Latch810.00 00 
KFC Hash Latch810.00 00 
KFCL LE Freelist810.00 00 
KFIAS client latch810.00 00 
KFIAS cluster latch810.00 00 
KFIAS endpoint latch810.00 00 
KFIAS node latch810.00 00 
KFIAS process latch810.00 00 
KFIAS queue latch810.00 00 
KGNFS-NFS:SHM structure810.00 00 
KGNFS-NFS:SVR LIST810.00 00 
KJC message pool KGH calls810.00 00 
KJC message pool free list810.00 00 
KJC message pool pending avail list810.00 00 
KJCT flow control latch810.00 00 
KMG MMAN ready and startup request latch97,1550.00 00 
KQF runtime table column alloc35,3730.00 00 
KSFS OFS ctx level parent latch810.00 00 
KSFS OFS req layer parent latch810.00 00 
KSFS OFS sess layer parent latch810.00 00 
KSFS Receive and Send Queue latch810.00 00 
KSFS id table parent latch810.00 00 
KSFS ksfs_node latch810.00 00 
KSFSD name cache parent latch810.00 00 
KSGL LS Segment latch810.00 00 
KSGL SGA anchor latch810.00 00 
KSIPC ASPC anchor latch810.00 00 
KSIPC SGA allocation parent latch24,8460.00 00 
KSIPCGSN Hash Table latch810.00 00 
KSIPCGSN Namespace latch810.00 00 
KSK PDB IO STAT810.00 00 
KSRMA SGA anchor latch810.00 00 
KSRMF SGA anchor latch810.00 00 
KSWL SGA anchor latch810.00 00 
KSXR hang analysis phase 1 latch810.00 00 
KSXR hang analysis phase 2 latch810.00 00 
KTF sga latch3,3510.090.00072,5460.00
KTILM latch810.00 00 
KTU in-memory txn table latch810.00 00 
KTURMA ODPSCN latch810.00 00 
KTURMA SGA allocation parent latch810.00 00 
KWQMN job cache list latch27,7760.00 00 
KWQP Prop Status1,0660.00 00 
KWQS pqsubs latch8770.00 00 
KWQS pqueue ctx latch1,4640.00 00 
Latch for NonceHistory810.00 00 
Locator state objects pool parent latch810.00 00 
Lost write change tracking810.00 00 
Lsod array latch810.00 00 
MGA asr alloc latch4,8500.00 00 
MGA heap latch1,403,4230.00 00 
MGA shared context latch54,4580.00 00 
MGA shared context root latch26,6000.00 00 
MMON per PDB bit map latch550.00 00 
MQL Tracking Latch0  05,8220.00
Memory Management Latch0  097,1550.00
Memory Queue47,2570.00 00 
Memory Queue Message Subscriber #130,0090.00 00 
Memory Queue Message Subscriber #2810.00 00 
Memory Queue Message Subscriber #3810.00 00 
Memory Queue Message Subscriber #4810.00 00 
Memory Queue Subscriber52,8970.00 00 
Message cache latch810.00 00 
MinActiveScn Latch9,6840.00 00 
Mutex810.00 00 
Mutex Stats810.00 00 
Nologging Standby SCN Time Map cache71,8780.00 00 
OS process43,3390.00 00 
OS process allocation575,8670.000.0000 
OS process: request allocation13,0490.010.0000 
PDB Hash Table Latch810.00 00 
PDB LRU structure810.00 00 
PL/SQL warning settings8,3430.00 00 
PX hash array latch810.00 00 
Parent latch for dependency tracking810.00 00 
Parent latch for query hash table access27,2690.00 00 
Parent latch for segments scanning973,6920.00 00 
QMT810.00 00 
Real-time descriptor latch4,422,7040.000.5700 
Report Request stats latch22,0140.00 00 
Report Request struct latch8,1370.00 00 
Request holder compeltion list latch6,9470.00 00 
Result Cache: RC Latch64,3380.00 00 
Result Cache: SO Latch4530.00 00 
Retry Ht elm latch810.00 00 
Retry bkt latch810.00 00 
SGA IO buffer pool latch714,7500.00 05,968,4520.00
SGA Logging Bkt Latch810.00 00 
SGA Logging Log Latch1,373,8450.00 00 
SGA blob parent810.00 00 
SGA bucket locks810.00 00 
SGA hash table parent latch - S par810.00 00 
SGA heap locks810.00 00 
SGA pool locks810.00 00 
SO private so latch10,3310.00 012,6340.00
SQL memory manager latch820.00 097,1720.00
SQL memory manager workarea list latch7,768,5690.000.0000 
SR Stats Stripe Latch810.00 00 
STREAMS Pool Advisor0  03690.00
Sched IM Job latch24,8460.00 00 
Sched InMem Job Cache2,6950.00 00 
Shared B-Tree175,9100.280.0500 
Shared fixed UGA latch810.00 00 
Streams Generic810.00 00 
Subscriber Ht elm latch810.00 00 
Testing810.00 00 
Token Manager810.00 00 
Txn Ht elm latch810.00 00 
Txn bkt latch810.00 00 
WCR: sync810.00 00 
Write State Object Pool Parent Latch810.00 00 
X$KSFQP810.00 00 
XDB NFS Security Latch810.00 00 
XDB unused session pool810.00 00 
XDB used session pool810.00 00 
active checkpoint queue latch1,409,3450.010.0800 
active service list23,588,0860.000.010148,3020.00
archive destination2790.00 00 
begin backup scn array137,3010.00 00 
bq:time manger info latch5470.00 00 
buffer pool810.00 00 
bufq statistics46,9990.00 00 
business card810.00 00 
cache buffer handles855,0930.00 00 
cache buffers chains33,742,636,2800.010.000104,971,5890.01
cache buffers lru chain80,208,3800.040.030142,942,0630.04
cache table scan latch777,9390.000.000777,9390.00
call allocation204,3160.330.0100 
change notification client cache latch810.00 00 
channel handle pool latch27,7160.000.0000 
channel operations parent latch344,7290.510.000190.00
checkpoint queue latch119,409,8100.000.12055,189,5340.00
client/application info90,1110.030.0400 
compile environment latch11,0360.00 00 
corrupted undo seg latch235,4670.050.0000 
cp handoff latch810.00 00 
cp pool latch810.00 00 
cp server hash latch810.00 00 
cp sga latch24,7650.00 00 
cp srv type state latch291,5220.00 00 
cp srv type wait latch810.00 00 
cr slave free list810.00 00 
cvmap freelist lock810.00 00 
database property service latch480.00 00 
datapump attach fixed tables latch3280.00 00 
datapump job fixed tables latch3680.00 00 
deferred cleanup latch24,7650.00 00 
dispatcher info6,6020.00 00 
dml lock allocation26,1450.00 00 
done queue latch810.00 00 
dtp latch9,9550.010.0000 
dummy allocation16,7620.080.0000 
eighteenth cispare latch - S parent810.00 00 
eighteenth cispare latch - X parent810.00 00 
eighteenth cispare latch - children810.00 00 
eighth cispare latch - S parent810.00 00 
eighth cispare latch - X parent810.00 00 
eighth cispare latch - children810.00 00 
eighth spare latch - X parent810.00 00 
eleventh cispare latch - S parent810.00 00 
eleventh cispare latch - X parent810.00 00 
eleventh cispare latch - children810.00 00 
eleventh spare latch - children810.00 00 
enqueue freelist latch810.00 0135,734,0310.00
enqueue hash chains160,278,2690.000.000680.00
enqueue sob latch1460.00 00 
enqueues160.00 00 
fast space usage latch3,7060.00 00 
fifteenth cispare latch - S parent810.00 00 
fifteenth cispare latch - X parent810.00 00 
fifteenth cispare latch - children810.00 00 
fifteenth spare latch - children810.00 00 
fifth cispare latch - S parent810.00 00 
fifth cispare latch - X parent810.00 00 
fifth cispare latch - children810.00 00 
file cache latch160,7940.00 00 
first Audit Vault latch2,7700.00 00 
first cispare latch - S parent810.00 00 
first cispare latch - X parent810.00 00 
first cispare latch - children810.00 00 
first spare latch - X non-parent810.00 00 
flash file access latch810.00 00 
flashback copy810.00 00 
fourteenth cispare latch - S parent810.00 00 
fourteenth cispare latch - X parent810.00 00 
fourteenth cispare latch - children810.00 00 
fourteenth spare latch - children810.00 00 
fourth Audit Vault latch810.00 00 
fourth cispare latch - S parent810.00 00 
fourth cispare latch - X parent810.00 00 
fourth cispare latch - children810.00 00 
gc element810.00 00 
gcs commit scn state810.00 00 
gcs lock state resolution latch810.00 00 
gcs nodemap pool810.00 00 
gcs opaque info freelist810.00 00 
gcs partitioned table hash810.00 00 
gcs pcm hashed value bucket hash810.00 00 
gcs resource freelist810.00 00 
gcs resource hash810.00 00 
gcs resource scan list810.00 00 
gcs resource timerq list810.00 00 
gcs resource validate list810.00 00 
gcs shadows freelist810.00 00 
ges cached resource lists810.00 00 
ges domain table810.00 00 
ges enqueue table freelist810.00 00 
ges group table810.00 00 
ges process hash list810.00 00 
ges process parent latch810.00 00 
ges remote lock freelist810.00 00 
ges resource hash list810.00 00 
ges resource scan list810.00 00 
ges resource table freelist810.00 00 
ges timeout list810.00 00 
ges value block free list810.00 00 
global KZLD latch for auth type mem in SGA46,1070.00 00 
global tx hash mapping1,884,2940.00 00 
granule from data transfer cache810.00 00 
gws:Sharding global descriptor latch19,4420.00 00 
hash table Sql Plan Finding latch226,5030.000.000154,6090.00
hash table column stats latch1,6030.00 00 
hash table column usage latch23,6060.000.00046,453,2980.17
hash table expression usage tracking latch3,8910.00 00 
hash table modification latch1,4560.00 00 
hash table sql contorl latch810.00 00 
heartbeat check810.00 00 
image handles of buffered messages latch29,9280.00 00 
imc buf hdl lat810.00 00 
imc cr clone buf810.00 00 
imc hash lat810.00 00 
imc sj lat810.00 00 
imc srchsp lat810.00 00 
imc-txn-wrk-lat810.00 00 
in-memory area latch810.00 00 
in-memory columnar segment hash table latch810.00 00 
in-memory columnar ts extent map chunk latch810.00 00 
in-memory global pool latch810.00 00 
internal temp table object number allocation latch29,5600.010.0000 
interrupt manipulation4480.00 00 
intra txn parallel recovery810.00 00 
io pool granule list44,1910.00 00 
io pool granule metadata list96,4490.00 00 
job workq parent latch1,9020.00 01,8220.71
job_queue_processes free list latch7,3440.00 00 
jslv pdb context latch3,6400.00 00 
k2q lock allocation810.00 00 
kKCN Cqn SGA810.00 00 
kcb DW scan objtemp hash table latch810.00 00 
kcbtsemkid latch6,5410.00 00 
kcfis latch150.00 00 
kcn buffer chains810.00 00 
kdlx hb parent latch810.00 00 
keiut hash table modification1,9310.00 00 
kgb parent810.00 00 
kgnfs mount latch810.00 00 
kjbr roi instance map810.00 00 
kjci objects freelist latch810.00 00 
kjci process context latch810.00 01,703,3670.00
kjoedcso state object freelist latch24,7650.00 00 
kjoeq omni enqueue hash bucket latch810.00 00 
kjoer owner hash bucket810.00 00 
kjsca protect pkey hash table bucket810.00 00 
kjsca protect service hash table bucket810.00 00 
kmcptab latch210.00 00 
kmcpvec latch0  070.00
kokc descriptor allocation latch2,121,5600.00 00 
kpoxft latch0  03,0600.10
krbmrosl1,9580.00 00 
krso process10,2060.00 00 
ksevn object root latch97,1550.00 00 
ksfv messages810.00 00 
ksi resource reuse count810.00 00 
ksim group membership cache810.00 00 
ksm_pga_um_list_latch810.00 00 
ksm_pga_um_root_latch97,1550.00 00 
ksns object latch810.00 00 
kss move lock2,1710.00 00 
ksuosstats global area20,2890.031.000111,5670.00
ksutcpistat latch810.00 00 
ksv allocation latch28,9580.00 00 
ksv class latch171,3594.240.0000 
ksv instance latch400.00 00 
ksv msg queue latch23,9340.500.00023,8271.27
ksz_so allocation latch13,0490.010.0000 
ktfbn latch62,2890.00 00 
ktm adg jrnls810.00 00 
ktm adg lookuptable level 1810.00 00 
ktm adg lookuptable level 2810.00 00 
ktm adg space810.00 00 
ktm adg stages810.00 00 
ktm adg worklink810.00 00 
ktm global data13,0490.00 00 
ktm prv jrnls810.00 00 
ktmpj HT ls810.00 00 
kupp process latch6410.00 00 
kwqbsgn:msghdr44,8920.00 00 
kwqbsn:qsga17,7810.410.0003690.00
kwqbsn:qxl5200.00 00 
kwqi:kchunk latch400.00 00 
kwslbmdl: metadata latch9,9640.00 00 
kwslbql: queue latch810.00 00 
kwslbutl: uncommitted txn latch810.00 00 
kwsptQcachLt: queue cache latch810.00 00 
kwsptTrncTsksLt: trunc task latch810.00 00 
kwsptjobAdPtLt: AdPt list latch8,3990.00 00 
kwsslLat: skiplist latch810.00 00 
kxfxscanrate_latch810.00 00 
lgwr LWN SCN1,716,4221.410.0000 
list of block allocation1,879,9650.00 00 
loader state object freelist118,3940.000.0000 
lob segment dispenser latch20,1460.00 00 
lob segment hash table latch68,7850.030.0000 
lob segment query latch1280.00 00 
lock DBA buffer during media recovery810.00 00 
log write info0  01,587,6700.00
log write worker phase448,4710.010.0000 
logical standby cache810.00 00 
logminer context allocation810.00 00 
logminer local810.00 00 
logminer work area810.00 00 
longop free list parent6,0920.00 02,6470.08
lreg configuration93,6800.00 00 
managed standby9,7200.00 00 
message bitmap latch810.00 00 
message pool operations parent latch106,7980.00 00 
messages16,469,1200.060.0000 
msg queue latch810.00 00 
multiblock read objects4,059,2720.020.0000 
name-service namespace bucket810.00 00 
ncodef allocation latch24,7650.00 00 
nineteenth cispare latch - S parent810.00 00 
nineteenth cispare latch - X parent810.00 00 
nineteenth cispare latch - children810.00 00 
ninth cispare latch - S parent810.00 00 
ninth cispare latch - X parent810.00 00 
ninth cispare latch - children810.00 00 
ninth spare latch - X parent810.00 00 
object queue header freelist526,9380.00 00 
object queue header operation301,606,7850.000.0000 
object queue memory810.00 00 
object stats modification19,0860.00 00 
parallel query alloc buffer810.00 046,3400.00
parallel query stats810.00 00 
parameter table management103,3890.00 00 
pass worker exception to master2900.00 00 
pdb enqueue hash chains810.00 00 
peshm810.00 00 
pesom_free_list810.00 00 
pesom_hash_node810.00 00 
pkey global statistics810.00 00 
pmon dead latch4,8180.00 00 
post/wait queue1,999,7613.390.0001,980,4323.92
process allocation16,4820.00 00 
process group creation13,0490.00 00 
process memory detail810.00 0390.00
process pkey statistics list810.00 00 
process queue810.00 00 
process queue reference810.00 00 
qm_init_sga190.00 00 
qmn state object latch260.00 00 
qmn task queue latch78,9986.910.0900 
quarantine object4,8310.00 00 
query server freelists810.00 00 
query server process208,0740.00 00 
queue sender's info. latch52,6720.080.0000 
queued dump request9710.00 00 
queuing load statistics810.00 00 
read-moslty lock queue under pkey810.00 00 
recovery domain hash bucket810.00 00 
redo copy810.00 01,712,031,3530.00
redo gen encryption key structure6,5410.00 00 
redo transport task4860.00 00 
redo writing6,291,8510.050.0000 
remote tool request latch8,3380.00 00 
resmgr group change latch15,7880.190.0000 
resmgr:active threads39,8250.030.400487,1740.00
resmgr:actses change group14,3920.00 00 
resmgr:actses change state2,1020.00 00 
resmgr:free threads list25,2651.280.0000 
resmgr:method mem alloc latch350.00 00 
resmgr:plan CPU method810.00 00 
resmgr:plan change alloc latch810.00 00 
resmgr:plan change latch880.00 00 
resmgr:pq event array350.00 00 
resmgr:resource group CPU method1,8840.00 00 
resmgr:schema config18,4320.480.0000 
resmgr:session queuing1440.00 00 
resmgr:vc list latch810.00 00 
resumable state object3,3640.00 00 
row cache objects810.00 00 
rules engine aggregate statistics38,1810.00 00 
rules engine evaluation context statistics800.00 00 
rules engine rule set statistics102,2960.00 00 
rules engine rule statistics17,5940.00 00 
second Audit Vault latch810.00 00 
second cispare latch - S parent810.00 00 
second cispare latch - X parent810.00 00 
second cispare latch - children810.00 00 
sequence cache11,017,9810.000.0000 
service drain list291,2210.00 00 
session allocation1,868,8420.000.0001,854,1350.00
session idle bit29,236,8320.000.0000 
session queue latch810.00 00 
session state list latch19,0570.160.1300 
session statistics16,7620.00 00 
session switching11,4210.010.0000 
session timer97,1470.00 00 
seventeenth cispare latch - S parent810.00 00 
seventeenth cispare latch - X parent810.00 00 
seventeenth cispare latch - children810.00 00 
seventh cispare latch - S parent810.00 00 
seventh cispare latch - X parent810.00 00 
seventh cispare latch - children810.00 00 
seventh spare latch - X parent810.00 00 
sga hash table parent latch810.00 00 
shard latch810.00 00 
shardgroup list latch42,6960.00 00 
shared pool10,333,6410.040.0309330.00
shared pool sim alloc8800.00 00 
shared pool simulator126,9650.00 00 
shared server configuration97,4550.00 00 
sim partition latch810.00 00 
simulator hash latch1,640,266,9570.000.0000 
simulator lru latch55,922,6850.030.0001,581,281,7680.13
sixteenth cispare latch - S parent810.00 00 
sixteenth cispare latch - X parent810.00 00 
sixteenth cispare latch - children810.00 00 
sixth cispare latch - S parent810.00 00 
sixth cispare latch - X parent810.00 00 
sixth cispare latch - children810.00 00 
sort extent pool300,5750.000.0000 
space background task latch730,93560.760.92125195,8152.61
spilled messages latch1200.00 00 
state object free list1620.00 00 
statistics aggregation3240.00 00 
subscriber Ht bkt810.00 00 
tablespace key chain810.00 00 
temp lob duration state obj allocation13,4000.00 00 
temporary table state object allocation2,9460.00 00 
tenth cispare latch - S parent810.00 00 
tenth cispare latch - X parent810.00 00 
tenth cispare latch - children810.00 00 
tenth spare latch - X parent810.00 00 
test excl. parent l0810.00 00 
test excl. parent2 l0810.00 00 
test excl. parent2 lmid cln810.00 00 
test mixed exclusive810.00 00 
test mode exclusive810.00 00 
test open exclusive810.00 00 
test pdb exclusive810.00 00 
test shared parent2 lmid810.00 00 
third cispare latch - S non-parent4,5930.00 00 
third cispare latch - S parent810.00 00 
third cispare latch - X parent810.00 00 
third cispare latch - children810.00 00 
thirteenth cispare latch - S parent810.00 00 
thirteenth cispare latch - X parent810.00 00 
thirteenth cispare latch - children810.00 00 
thirteenth spare latch - children810.00 00 
threshold alerts latch9,8700.00 00 
transaction allocation671,2890.00 00 
transaction branch allocation142,5480.00 00 
twelfth cispare latch - S parent810.00 00 
twelfth cispare latch - X parent810.00 00 
twelfth cispare latch - children810.00 00 
twelfth spare latch - children810.00 00 
twentieth cispare latch - S parent810.00 00 
twentieth cispare latch - X parent810.00 00 
twentieth cispare latch - children810.00 00 
twenty-fifth spare latch - S par810.00 00 
twenty-fourth spare latch - S par810.00 00 
twenty-second spare latch - S par810.00 00 
twenty-third spare latch - S par810.00 00 
undo global data1,411,984,5090.000.0001833.83
virtual circuit buffers810.00 00 
virtual circuit holder810.00 00 
virtual circuit queues810.00 00 


Back to Latch Statistics
Back to Top

Latch Sleep Breakdown

Latch NameGet RequestsMissesSleepsSpin Gets
cache buffers chains33,742,636,2802,393,6231,6472,391,439
space background task latch730,935444,113410,09756,322
redo allocation15,224,626153,3981,227152,173
post/wait queue1,999,76167,7037367,630
cache buffers lru chain80,208,38033,96389033,079
undo global data1,411,984,50930,7161430,702
lgwr LWN SCN1,716,42224,1382024,118
simulator lru latch55,922,68516,1493516,114
messages16,469,1209,713189,695
object queue header operation301,606,7859,23959,234
ksv class latch171,3597,27057,265
qmn task queue latch78,9985,4605054,957
shared pool10,333,6414,3521424,226
redo writing6,291,8513,20133,198
Consistent RBA1,600,6173,11053,105
enqueue hash chains160,278,2693,05283,044
channel operations parent latch344,7291,77111,770
checkpoint queue latch119,409,8101,7222051,518
active service list23,588,0868406834
call allocation204,3166724668
Shared B-Tree175,91048926463
simulator hash latch1,640,266,9574471446
In memory undo latch15,986,1633472345
resmgr:free threads list25,2653241323
active checkpoint queue latch1,409,34520517188
session state list latch19,05730426
client/application info90,11126125
Real-time descriptor latch4,422,704231311
resmgr:active threads39,8251046
ksuosstats global area20,289770


Back to Latch Statistics
Back to Top

Latch Miss Sources

Latch NameWhereNoWait Misses SleepsWaiter Sleeps
In memory undo latchkticmt: child020
Real-time descriptor latchkeomgAllocDescEntry01313
Shared B-Treekgqbtdel01050
active checkpoint queue latchkcbk_add_rbr_ckpt: Add rbr ckpt 30170
active service listkswsite: service iterator01950
active service listkswslistsvc: count/copy service name013
cache buffers chainskcbgtcr: convert latch09490
cache buffers chainskcbzibmlt: multi-block read: nowait06050
cache buffers chainskcbgtcr: slow path excl053479
cache buffers chainskcbzwb03294
cache buffers chainskcbgtcr: convert latch 401160
cache buffers chainskcbgcur: fast path excl01144
cache buffers chainskcbgtcr: fast path pin0452,036
cache buffers chainskcbbxsv0422
cache buffers chainskcbz_log_block_read03115
cache buffers chainskcbchg: change complete0272
cache buffers chainskcbnew: new latch again0170
cache buffers chainskcbb_free_siop_slot0150
cache buffers chainskcbbic10140
cache buffers chainskcbchg: cur pin change0130
cache buffers chainskcbzgb: scan from tail nowait0100
cache buffers chainskcbrls: fast pin release09226
cache buffers chainskcbgtcr: slow path shr08198
cache buffers chainskcbchg: cleanout061
cache buffers chainskcbbic2052
cache buffers chainskcbchg: rollback040
cache buffers chainskcbnew_1040
cache buffers chainskcbget: new pin030
cache buffers chainskcbgtcr: fast path exam03199
cache buffers chainskcbnlc020
cache buffers chainskcbzibmlt: finish free bufs021
cache buffers chainskcbchg: aux pin012
cache buffers chainskcbgcur: slow path010
cache buffers chainskcbget: fast path0176
cache buffers chainskcbgtcr: convert latch 5010
cache buffers chainskcbgtcr: retry after read010
cache buffers chainskcbrls: fast pin exclusive011
cache buffers chainskcbrls: pin release011
cache buffers chainskcbzacrb: convert latch010
cache buffers chainskcbzcbf: clone buffer0140
cache buffers lru chainkcbzgws08490
cache buffers lru chainkcbzswcu0244
cache buffers lru chainkcbzgb06168
cache buffers lru chainkcbbic203644
cache buffers lru chainkcbbwlru0354
cache buffers lru chainkcbkflb : age buffer out030
cache buffers lru chainkcb_trim_hash_chain0116
cache buffers lru chainkcbzgm010
call allocationksuxds044
channel operations parent latchksrwait()011
checkpoint queue latchkcbbwthc: thread checkpoint buffers01990
checkpoint queue latchkcbklbc_cql040
checkpoint queue latchkcbkubc_4022
client/application infoksuinfos_modact010
ksuosstats global areaksugetosstat077
ksv class latchksvclsl: checkpool021
ksv class latchksvclsl: rdp - recycle021
ksv class latchksvclsl: workmsgfree010
messagesksarcv: after wait01410
messagesksaamb: after wakeup023
messagesksarcv025
mostly latch-free SCNkcs0240190
mostly latch-free SCNkcsnew_scn_rba050
mostly latch-free SCNkcslcu30120
object queue header operationkcbo_unlink_q_bg030
object queue header operationkcbo_switch_mq_bg021
post/wait queueksliwat:remove04461
post/wait queueksliwat:add:nowait0210
post/wait queuekslpstevent:get056
post/wait queueksliwat:add:wait036
qmn task queue latchkwqmngettsk: get task0254503
qmn task queue latchkwqmnmvtsks: delay to ready list02410
qmn task queue latchkwqmnaddtsk: add task070
qmn task queue latchkwqmndntsk: task done but retry032
redo allocationkcrfw_redo_gen: redo allocation 101,1570
redo allocationkcrfw_redo_gen: redo allocation 20510
redo allocationkcrfw_post: more space0937
redo allocationkcrfw_redo_write: before write0852
redo allocationkcrfw_redo_gen: redo allocation 3021,138
redo writingkcrfw_post: rba scn pair010
redo writingkcrfws: in loop011
redo writingkcrfws: outside the loop010
resmgr:active threadskskdynthreshact040
resmgr:active threadskgskgtt1010
resmgr:free threads listkskthrcreate010
session state list latchkpseqd040
simulator hash latchkcbsacc: lookup dba011
simulator lru latchkcbs_simulate: simulate set0290
simulator lru latchkcbs_lookup_setid060
space background task latchktsj_grab_task0236,819387,458
space background task latchktsj_detach_task0149,06722,633
space background task latchktsj_smco_purgeexpired022,0010
space background task latchktsj_smco_movetasks02,1770
space background task latchktsjCreateTask0336
undo global dataktudba: KSLBEGIN099
undo global datakturax020
undo global dataktusmupst: KSLBEGIN024
undo global dataktudnx:child010
unknown latchkghalo083106
unknown latchkghfre02311
unknown latchkghalp02118
unknown latchksqgtl3076
unknown latchkghfrunp: no latch060
unknown latchspmemrm_free_single_object042
unknown latchkghfnd: min scan030
unknown latchkghasp011
unknown latchkghupr1013
unknown latchksqrcl012


Back to Latch Statistics
Back to Top

Mutex Sleep Summary

Mutex TypeLocationSleepsWait Time (ms)
Library Cachekglhdgn2 106136124
Library Cachekglic4 145112162
Row Cache[10] kqreqd5110
Library Cachekglic1 494539
Library Cachekglpin1 44532
Library CachekglReleaseHandleReference 1243460
Library Cachekgllkc1 57251
Row Cache[19] kqrpre2411
Library Cachekglrfcl1 792267
Library Cachekglpnal1 902016
Row Cache[14] kqrScan1811
Library Cachekglget1 1166
Library Cachekglget2 2152
Library Cachekglhdgn1 62140
Cursor Pinkksfbc [KKSCHLPIN1]14161
Library Cachekglpndl1 951331
Library CachekglGetHandleReference 123100
Library Cachekgllkdl1 8560
Cursor Pinkkslce [KKSCHLPIN2]690
Cursor Pinkksfbc [KKSCHLFSP2]575
Cursor PinkksLockDelete [KKSCHLPIN6]227
Library Cachekglobpn1 7110


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
ABSDATAWAREHOUSEINDX CUSTOMER_DIMENSION_KEY_PK INDEX1424091424092,818,907,82417.24
ABSDATAWAREHOUSEABS_DATA FACT_REALTIME_CUSTOMER_DATA TABLE1415108095521,860,779,08811.38
ABSDATAWAREHOUSEABS_DATA FACT_REALTIME_CUSTOMER_DATA TABLE1415108089911,629,640,6409.96
ABSDATAWAREHOUSEABS_DATA CUSTOMER TABLE1417221417221,601,838,6249.79
ABSDATAWAREHOUSEABS_DATA FACT_REALTIME_CUSTOMER_DATA TABLE1415108084341,354,554,3368.28


Back to Segment Statistics
Back to Top

Segments by Physical Reads

OwnerTablespace NameObject NameSubobject NameObj. TypeObj#Dataobj#Physical Reads%Total
ABSDATAWAREHOUSEABS_DATA FACT_DELIVERIES TABLE141550141550429,122,28155.87
ABSDATAWAREHOUSEABS_DATA DELIVERY_NOTE TABLE141726141726157,620,56720.52
ABSDATAWAREHOUSEABS_DATA FACT_SCANS TABLE14160614160625,366,1603.30
ABSDWHSTAGINGABS_DATA STFACT_CIRC_INV_SNAPSHOT TABLE14055314055323,691,7683.08
ABSDATAWAREHOUSEABS_DATA FACT_CIRC_INV_SNAPSHOT TABLE14160914160917,370,7482.26


Back to Segment Statistics
Back to Top

Segments by Physical Read Requests

OwnerTablespace NameObject NameSubobject NameObj. TypeObj#Dataobj#Phys Read Requests%Total
ABSDATAWAREHOUSEABS_DATA FACT_DELIVERIES TABLE1415501415506,819,98422.53
ABSDATAWAREHOUSEABS_DATA DELIVERY_NOTE TABLE1417261417261,441,3564.76
ABSDATAWAREHOUSEABS_DATA FACT_REALTIME_DATA TABLE141517808988946,0253.12
ABSDATAWAREHOUSEABS_DATA FACT_REALTIME_DATA TABLE141517809549945,9573.12
ABSDATAWAREHOUSEABS_DATA FACT_REALTIME_DATA TABLE141517808431945,9113.12


Back to Segment Statistics
Back to Top

Segments by UnOptimized Reads

OwnerTablespace NameObject NameSubobject NameObj. TypeObj#Dataobj#UnOptimized Reads%Total
ABSDATAWAREHOUSEABS_DATA FACT_DELIVERIES TABLE1415501415506,819,98422.53
ABSDATAWAREHOUSEABS_DATA DELIVERY_NOTE TABLE1417261417261,441,3564.76
ABSDATAWAREHOUSEABS_DATA FACT_REALTIME_DATA TABLE141517808988946,0253.12
ABSDATAWAREHOUSEABS_DATA FACT_REALTIME_DATA TABLE141517809549945,9573.12
ABSDATAWAREHOUSEABS_DATA FACT_REALTIME_DATA TABLE141517808431945,9113.12


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

OwnerTablespace NameObject NameSubobject NameObj. TypeObj#Dataobj#Direct Reads%Total
ABSDATAWAREHOUSEABS_DATA FACT_DELIVERIES TABLE141550141550420,249,86657.22
ABSDATAWAREHOUSEABS_DATA DELIVERY_NOTE TABLE141726141726157,432,90721.44
ABSDATAWAREHOUSEABS_DATA FACT_SCANS TABLE14160614160625,366,0723.45
ABSDWHSTAGINGABS_DATA STFACT_CIRC_INV_SNAPSHOT TABLE14055314055323,691,0803.23
ABSDATAWAREHOUSEABS_DATA FACT_CIRC_INV_SNAPSHOT TABLE14160914160917,370,7002.37


Back to Segment Statistics
Back to Top

Segments by Physical Writes

OwnerTablespace NameObject NameSubobject NameObj. TypeObj#Dataobj#Physical Writes%Total
ABSDATAWAREHOUSEABS_DATA CUSTOMER_REPORT_PERIOD TABLE1415431415436,379,1757.39
ABSDATAWAREHOUSEABS_DATA FACT_REALTIME_CUSTOMER_DATA TABLE1415108089912,408,0102.79
ABSDATAWAREHOUSEABS_DATA FACT_REALTIME_CUSTOMER_DATA TABLE1415108095522,392,5822.77
ABSDATAWAREHOUSEABS_DATA FACT_REALTIME_CUSTOMER_DATA TABLE1415108084342,324,7032.69
ABSDATAWAREHOUSEABS_DATA FACT_REALTIME_DATA TABLE1415178095491,953,6512.26


Back to Segment Statistics
Back to Top

Segments by Physical Write Requests

OwnerTablespace NameObject NameSubobject NameObj. TypeObj#Dataobj#Phys Write Requests%Total
ABSDATAWAREHOUSEABS_DATA CUSTOMER_REPORT_PERIOD TABLE1415431415435,143,58114.41
ABSDATAWAREHOUSEABS_DATA FACT_REALTIME_CUSTOMER_DATA TABLE1415108089911,839,4695.15
ABSDATAWAREHOUSEABS_DATA FACT_REALTIME_CUSTOMER_DATA TABLE1415108095521,831,4505.13
ABSDATAWAREHOUSEABS_DATA FACT_REALTIME_CUSTOMER_DATA TABLE1415108084341,800,5935.04
ABSDATAWAREHOUSEABS_DATA FACT_REALTIME_CUSTOMER_DATA TABLE141510810116498,0931.40


Back to Segment Statistics
Back to Top

Segments by Direct Physical Writes

OwnerTablespace NameObject NameSubobject NameObj. TypeObj#Dataobj#Direct Writes%Total
ABSDATAWAREHOUSEABS_DATA FACT_REALTIME_DATA TABLE1415178089881,009,8523.32
ABSDATAWAREHOUSEABS_DATA FACT_REALTIME_DATA TABLE1415178095491,009,8503.32
ABSDATAWAREHOUSEABS_DATA FACT_REALTIME_DATA TABLE1415178084311,009,8493.32
ABSDATAWAREHOUSEABS_DATA FACT_REALTIME_DATA TABLE141517810113284,5890.94
ABSDWHSTAGINGABS_DATA STFACT_CUSTOMER_PRODUCTS_PRICE TABLE14053781030462,8950.21


Back to Segment Statistics
Back to Top

Segments by Table Scans

OwnerTablespace NameObject NameSubobject NameObj. TypeObj#Dataobj#Table Scans%Total
ABSDATAWAREHOUSEABS_DATA FACT_REALTIME_CUSTOMER_DATA TABLE14151080955213,71623.10
ABSDATAWAREHOUSEABS_DATA FACT_REALTIME_CUSTOMER_DATA TABLE14151080899112,55221.14
ABSDATAWAREHOUSEABS_DATA FACT_REALTIME_CUSTOMER_DATA TABLE14151080843410,26317.28
ABSDATAWAREHOUSEINDX CUSTOMER_DIMENSION_KEY_PK INDEX1424091424094,3957.40
ABSDATAWAREHOUSEABS_DATA FACT_DELIVERIES TABLE1415501415502,8974.88


Back to Segment Statistics
Back to Top

Segments by DB Blocks Changes

OwnerTablespace NameObject NameSubobject NameObj. TypeObj#Dataobj#DB Block Changes% of Capture
ABSDATAWAREHOUSEABS_DATA CUSTOMER_REPORT_PERIOD TABLE141543141543250,635,45614.19
ABSDATAWAREHOUSEINDX FACT_REALTIME_CUST_DATA_INDX1 INDEX142522809551135,211,2807.66
ABSDATAWAREHOUSEINDX FACT_REALTIME_CUST_DATA_INDX1 INDEX142522808990134,441,4887.61
ABSDATAWAREHOUSEINDX FACT_REALTIME_CUST_DATA_INDX1 INDEX142522808433132,779,8567.52
ABSDATAWAREHOUSEINDX FACT_REALTIME_CUST_DATA_INDX2 INDEX142523809550128,089,0087.25


Back to Segment Statistics
Back to Top

Segments by Row Lock Waits

OwnerTablespace NameObject NameSubobject NameObj. TypeObj#Dataobj#Row Lock Waits% of Capture
ABSDATAWAREHOUSEINDX USERACCESSLOG_PK INDEX1426351426351100.00


Back to Segment Statistics
Back to Top

Segments by ITL Waits

No data exists for this section of the report.

Back to Segment Statistics
Back to Top

Segments by Buffer Busy Waits

OwnerTablespace NameObject NameSubobject NameObj. TypeObj#Dataobj#Buffer Busy Waits% of Capture
ABSDATAWAREHOUSEABS_DATA FACT_REALTIME_CUSTOMER_DATA TABLE1415108101165,87564.67
ABSDATAWAREHOUSEABS_DATA FACT_REALTIME_CUSTOMER_DATA TABLE1415108089911,37715.16
ABSDATAWAREHOUSEABS_DATA FACT_REALTIME_CUSTOMER_DATA TABLE1415108095521,24913.75
SYSSYSTEM SEG$ TABLE1482943.24
ABSDATAWAREHOUSEABS_DATA FACT_REALTIME_CUSTOMER_DATA TABLE1415108084341191.31


Back to Segment Statistics
Back to Top

Dictionary Cache Stats

CacheGet RequestsPct MissScan ReqsPct MissMod ReqsFinal Usage
dc_awr_control12,8950.000 1,9281
dc_cdbprops16100.000 04
dc_constraints1,08420.300 484312
dc_files63,7560.000 023
dc_global_oids1,215,1670.010 80314
dc_histogram_data2,052,3990.920 29,16816,164
dc_histogram_defs3,990,4361.050 30,33529,749
dc_object_grants3,9470.000 075
dc_objects3,449,3210.250 10,0137,722
dc_profiles12,6440.000 01
dc_props231100.000 070
dc_realtime_colst6,1732.590 2412,285
dc_realtime_tabst1,01612.300 5343
dc_rollback_segments148,9600.000 423
dc_segments157,3684.310 9,3573,317
dc_sequences3,9680.630 3,96836
dc_statistics_status357100.000 0147
dc_table_scns183100.000 060
dc_tablespace_quotas1320.000 01
dc_tablespaces261,9160.000 08
dc_users1,149,2450.050 60345
outstanding_alerts7590.000 03
rule_info160100.000 047
sch_lj_objs5516.360 010
sch_lj_oids4,1030.320 032



Back to Top

Library Cache Activity

NamespaceGet RequestsPct MissPin RequestsPct MissReloadsInvali- dations
ACCOUNT_STATUS27,4590.000 00
APP STATE4950.000 00
BODY38,2090.00423,7580.0000
CLUSTER4,2860.004,3090.0000
CMP8,59335.888,59335.8800
DBLINK1,009,1850.000 00
DIRECTORY4400.008204.88200
EDITION5,9710.005,9710.0000
FED APP3,5240.003,5240.0000
INDEX22,6191.1121,0618.738850
KGLNEDSYNC35729.690 00
OBJECT ID1,205100.000 00
QUEUE7,5840.53109,1800.11400
RULE34023.5334023.5300
RULESET1,08514.7538,9610.6200
SCHEMA12,6250.000 00
SQL AREA328,83024.21139,776,2560.0829,20128,786
SQL AREA BUILD40,65251.530 00
SQL AREA STATS42,12437.6942,12437.6920
SUBSCRIPTION10080.0010080.0000
TABLE/PROCEDURE1,136,5910.325,945,0290.255,63988
TEMPORARY INDEX90813.11908100.007890
TEMPORARY TABLE2,4902.732,490100.002,4220
TRIGGER9,7900.009,7900.0000
XDB CONFIG190.00190.0000
XML SCHEMA960.001710.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 cache9,184.009,184.009,120.009,280.000SHR/DEF
Data Transfer Cache0.000.000.000.000STA/
In Memory RO Extension Area0.000.000.000.000STA/
In Memory RW Extension Area0.000.000.000.000STA/
In-Memory Area0.000.000.000.000STA/
KEEP buffer cache0.000.000.000.000STA/
PGA Target3,840.003,840.003,840.003,840.000STA/
RECYCLE buffer cache0.000.000.000.000STA/
SGA Target12,960.0012,960.0012,960.0012,960.000STA/
Shared IO Pool128.00128.00128.00128.000STA/
java pool32.0032.0032.0096.000SHR/DEF
large pool64.0064.0064.0064.000STA/
memoptimize buffer cache0.000.000.000.000STA/
shared pool3,456.003,456.003,360.003,456.000GRO/DEF
streams pool64.0064.0064.0064.000SHR/DEF
unified pga pool0.000.000.000.000STA/


Back to Memory Statistics
Back to Top

Memory Resize Operations Summary

No data exists for this section of the report.

Back to Memory Statistics
Back to Top

Memory Resize Ops

No data exists for this section of the report.

Back to Memory Statistics
Back to Top

Process Memory Summary

CategoryAlloc (MB)Used (MB)Avg Alloc (MB)Std Dev Alloc (MB)Max Alloc (MB)Hist Max Alloc (MB)Num ProcNum Alloc
BFreeable613.750.0014.2716.4862 4343
Other537.56 5.6613.831091099595
PL/SQL13.620.370.150.54289377
SQL0.670.100.010.020226742
Total1,165.590.4720.0930.87173139298257
EFreeable474.560.0011.0416.3473 4343
Other586.56 5.8713.67109109100100
PL/SQL14.420.920.150.56389882
SQL6.083.800.080.4444797350
Total1,081.614.7217.1331.00188596314275


Back to Memory Statistics
Back to Top

SGA Memory Summary

SGA regionsBegin Size (Bytes)End Size (Bytes) (if different)
Database Buffers9,764,339,712 
Fixed Size13,822,888 
Redo Buffers19,730,432 
Variable Size3,791,650,816 

Back to Memory Statistics
Back to Top

SGA breakdown difference by Pool and Name

PoolNameBegin MBEnd MB% Diff
javafree memory32.0032.000.00
largePX msg pool15.0015.000.00
largefree memory49.0049.000.00
sharedkghrcx RO latch director0.000.000.00
shared1105.kgght0.040.040.00
shared11G QMN so0.000.000.00
shared1:kngisga0.030.030.00
shared343.kgght0.040.040.00
shared368.kgght0.010.010.00
shared432.kgght0.040.040.00
shared435.kgght0.040.040.00
shared438.kgght0.040.040.00
shared441.kgght0.040.040.00
shared444.kgght0.040.040.00
shared447.kgght0.040.040.00
shared450.kgght0.040.040.00
shared453.kgght0.040.040.00
shared615.kggec0.520.520.00
shared6343.kgght0.160.160.00
shared6344.kgght0.160.160.00
shared6345.kgght0.160.160.00
sharedADR_CONTROL0.000.000.00
sharedADR_CONTROL_AUX0.000.000.00
sharedADR_INVALIDATION0.000.000.00
sharedAQ Message cache driver s0.120.120.00
sharedAQ Propagation Scheduling0.060.060.00
sharedAQ Slave list0.000.000.00
sharedAQ coordinator job list0.000.000.00
sharedAQ skiplist state object0.040.040.00
sharedAQ: Master/Slave state ob0.050.050.00
sharedAQ: Non Durable Sub state0.070.070.00
sharedASH buffers16.0016.000.00
sharedASM Cache0.000.000.00
sharedASM KFFD SO0.000.000.00
sharedASM SR state object0.030.030.00
sharedASM connection state0.230.230.00
sharedASM generic network state0.000.000.00
sharedASM kfk state object0.000.000.00
sharedASM map operations0.000.000.00
sharedASM rcl group0.090.090.00
sharedASM rollback operations0.000.000.00
sharedASM scan context0.000.000.00
sharedASMCMD BG process0.000.000.00
sharedAW SGA0.000.000.00
sharedAWR Data Source Info (KEW0.000.000.00
sharedAWR Flushing Error Contro0.000.000.00
sharedAWR Table Info (KEW layer0.000.000.00
sharedAWR View Info (KEW layer)0.000.000.00
sharedAWRHub Family Descriptor0.000.000.00
sharedAWRHub Family Table Descr0.000.000.00
sharedActive Session History -0.000.000.00
sharedAllocate KPDB Hash Table0.010.010.00
sharedArray of TopN Table delta0.000.000.00
sharedArray of cached attr0.000.000.00
sharedAuto BMR for File Header0.000.000.00
sharedAuto tune undo info0.000.000.00
sharedAutotask Error Control in0.000.000.00
sharedBRANCH TABLE SEGMENTED AR0.220.220.00
sharedBackground process state0.000.000.00
sharedBackup Appliance state ch0.000.000.00
sharedBanner Storage0.000.000.00
sharedBig SQL Shared Memory SO0.000.000.00
sharedBlock List12.4512.913.65
sharedCGS system incarn array0.020.020.00
sharedCheckpoint queue0.000.000.00
sharedCleanup state objects0.000.000.00
sharedClient ID trace setting h0.000.000.00
sharedClient ID trace settings0.000.000.00
sharedClosed Thread SCN Bitvec0.030.030.00
sharedContext of deferred reuse0.000.000.00
sharedDBWR array of pointers to0.000.000.00
sharedDBWR event stats array0.000.000.00
sharedDDE_USER_ACTION0.000.000.00
sharedDDE_USER_ACTION_DEF0.000.000.00
sharedDDE_USER_ACTION_PARAMETER0.000.000.00
sharedDDE_USER_INCIDENT_ACTION_0.000.000.00
sharedDDE_USER_INCIDENT_TYPE0.000.000.00
sharedDFW_CONFIG_CAPTURE0.000.000.00
sharedDFW_CONFIG_ITEM0.000.000.00
sharedDFW_PATCH_CAPTURE0.000.000.00
sharedDFW_PATCH_ITEM0.000.000.00
sharedDFW_PURGE0.000.000.00
sharedDFW_PURGE_ITEM0.000.000.00
sharedDISPATCHER CONFIG ENTRY0.000.000.00
sharedDISPATCHER CONFIG TABLE0.000.000.00
sharedDISPATCHERS INFO0.000.000.00
sharedDML lock2.152.150.00
sharedDNFS Disp Cle q Rec0.000.000.00
sharedDNFS Disp Com q Rec0.000.000.00
sharedDNFS Disp Iss q Rec0.000.000.00
sharedDNFS Disp cleanup ctx0.000.000.00
sharedDNFS Disp comp array0.020.020.00
sharedDNFS Disp comp array coun0.000.000.00
sharedDNFS Disp context0.000.000.00
sharedDNFS Disp context arr0.000.000.00
sharedDNFS Disp spawn ctx0.000.000.00
sharedDTP proc structure alloc0.050.050.00
sharedDatabase type info cache0.000.000.00
sharedDep type array0.000.000.00
sharedEM_DIAG_JOB0.000.000.00
sharedEM_TARGET_INFO0.000.000.00
sharedEM_USER_ACTIVITY0.000.000.00
sharedENQUEUE FREELISTS0.000.000.00
sharedENQUEUE STATS0.040.040.00
sharedEntity type array0.000.000.00
sharedExadirect acl0.000.000.00
sharedExpression usage element0.000.000.00
sharedExternal table user state0.110.110.00
sharedFileIdentificatonBlock0.530.530.00
sharedFileOpenConsolidatedBlock0.250.250.00
sharedFixed UGA alloc ctx0.000.000.00
sharedFlwCtrLt Rec0.000.000.00
sharedFxd UGA kghx lists0.000.000.00
sharedFxd UGA latch array0.000.000.00
sharedFxd UGA latch ptrs0.000.000.00
sharedFxd UGA opcode array0.000.000.00
sharedFxd UGA recovery ptrs0.000.000.00
sharedGlobal Context Heap descr0.000.000.00
sharedGlobal dictionary parent0.160.160.00
sharedGlobal dictionary read-wr0.160.160.00
sharedHM Hang Stats0.010.010.00
sharedHM Lcl Sess Info0.260.260.00
sharedHM PC Rank0.000.000.00
sharedHM RSLN RC0.000.000.00
sharedHM SGA context0.080.080.00
sharedHM SGA init var0.000.000.00
sharedHM SGA kjzs ctx0.000.000.00
sharedHM VFY TRCFIL0.000.000.00
sharedHM Wt Evt Stats Array0.240.240.00
sharedHM user parameter memory0.000.000.00
sharedHM_FDG_SET0.000.000.00
sharedHM_FINDING0.010.010.00
sharedHM_INFO0.000.000.00
sharedHM_MESSAGE0.000.000.00
sharedHM_RECOMMENDATION0.000.000.00
sharedHM_RUN0.000.000.00
sharedHTTP fixed headers0.000.000.00
sharedI/O stat latches0.000.000.00
sharedIM ADG GLB0.030.030.00
sharedIM CAGLB0.000.000.00
sharedIM MRGLB0.000.000.00
sharedIM PJGLB0.000.000.00
sharedIM SJGLB0.000.000.00
sharedIM affinity hash table0.020.020.00
sharedIM extent map1.001.000.00
sharedIM extent map mem0.000.000.00
sharedIM segment base objn arra0.030.030.00
sharedIM segment gdh_metadata0.000.000.00
sharedIM segment hash table0.210.210.00
sharedIM segment hash table glo0.210.210.00
sharedIM segment hash table mem0.000.000.00
sharedIMC extent map0.050.050.00
sharedIMCDT Mgmt0.040.040.00
sharedIMEXT hash table0.000.000.00
sharedINCCKEY0.000.000.00
sharedINCIDENT0.010.010.00
sharedINCIDENT_FILE0.000.000.00
sharedINC_METER_CONFIG0.000.000.00
sharedINC_METER_IMPT_DEF0.000.000.00
sharedINC_METER_INFO0.000.000.00
sharedINC_METER_PK_IMPTS0.000.000.00
sharedINC_METER_SUMMARY0.000.000.00
sharedIP acl table h0.000.000.00
sharedIPDDB SGA ctx0.000.000.00
sharedIPS_CONFIGURATION0.000.000.00
sharedIPS_FILE_COPY_LOG0.000.000.00
sharedIPS_FILE_METADATA0.000.000.00
sharedIPS_PACKAGE0.000.000.00
sharedIPS_PACKAGE_FILE0.000.000.00
sharedIPS_PACKAGE_HISTORY0.000.000.00
sharedIPS_PACKAGE_INCIDENT0.000.000.00
sharedIPS_PACKAGE_UNPACK_HISTOR0.000.000.00
sharedIPS_PROGRESS_LOG0.000.000.00
sharedIPS_REMOTE_PACKAGE0.000.000.00
sharedIUT Hash Table Base0.000.000.00
sharedIUT element0.060.060.00
sharedIUT hash table chunk0.070.072.94
sharedInmemory 1MB anchor0.140.140.00
sharedInmemory 64KB anchor0.140.140.00
sharedInmemory extension anchor1.001.000.00
sharedInmemory xmem 1MB anchor0.140.140.00
sharedInmemory xmem 64KB anchor0.140.140.00
sharedJSX SGA0.020.020.00
sharedKCB Table Scan0.000.000.00
sharedKCB Table Scan Bitmap0.000.000.00
sharedKCB Table Scan Buffer4.004.000.00
sharedKCB buffer wait statistic0.000.000.00
sharedKCB cacherm0.120.120.00
sharedKCB incremental ckpt entr0.000.000.00
sharedKCB tablespace encryption0.000.000.00
sharedKCB where statistics arra0.080.080.00
sharedKCBFLC SGA0.000.000.00
sharedKCFIS SGA0.000.000.00
sharedKCN SCN/Time map0.010.010.00
sharedKCN hash buckets0.020.020.00
sharedKCN hash latches0.050.050.00
sharedKEBM Autotask state objec0.020.020.00
sharedKEBM MetaData of RBB in I0.000.000.00
sharedKEBM SGA struct (PDB) - P0.000.000.00
sharedKEBM SGA struct for Autot0.000.000.00
sharedKEBM autotask control arr0.000.000.00
sharedKEBM autotask descriptors0.000.000.00
sharedKESTB existence bitvec0.250.250.00
sharedKESTB existence bitvec se0.000.000.00
sharedKEW PDB SGA Structure0.000.000.00
sharedKEW Reset ID Array in Ins0.000.000.00
sharedKEWR PDB SGA - UMF MDB En0.000.000.00
sharedKEWR array of TopN stats0.020.020.00
sharedKEWS External IDs0.000.000.00
sharedKEWS PDB SGA0.000.000.00
sharedKEWS PDB System Stat valu0.000.000.00
sharedKEWS aggregation objs0.000.000.00
sharedKEWS fixed SGA0.010.010.00
sharedKEWS sesstat values1.151.150.00
sharedKEWS statistic maps0.000.000.00
sharedKEWS statistic metadata0.020.020.00
sharedKEWS statistic name0.000.000.00
sharedKEWS sysstat values0.000.000.00
sharedKFD extent enqueue obj0.070.070.00
sharedKFG SO child0.010.010.00
sharedKFG state obj0.010.010.00
sharedKFIAC Fencing state objec0.010.010.00
sharedKFK SGA0.000.000.00
sharedKFK idtab_kfksga0.100.100.00
sharedKFM state obj0.000.000.00
sharedKGFM vsga0.000.000.00
sharedKGI Session State0.000.005.79
sharedKGKP randnum0.040.040.00
sharedKGKP randnum shadow0.040.040.00
sharedKGKP sga0.000.000.00
sharedKGLA2.752.57-6.48
sharedKGLDA40.1739.21-2.38
sharedKGLH0556.04563.041.26
sharedKGLHD90.6886.36-4.76
sharedKGLNA8.937.54-15.63
sharedKGLPDBSG0.000.000.00
sharedKGLS60.9854.45-10.69
sharedKGLSG5.025.020.00
sharedKGLSGNSPIDX0.000.000.00
sharedKGLSGSTA0.010.010.00
sharedKGLSGTYPIDX0.000.000.00
sharedKGLSGTYPSTA0.010.010.00
sharedKGNFS DMLIST array0.000.000.00
sharedKGNFS DMLIST head0.000.000.00
sharedKGNFS PLDLIST array0.000.000.00
sharedKGNFS PLDLIST head0.000.000.00
sharedKGNFS scontext0.500.500.00
sharedKGSK scheduler0.380.380.00
sharedKGSK sga0.100.100.00
sharedKGSKI scheduler heap 1 de0.000.000.00
sharedKGSKI scheduler heap 2 de0.000.000.00
sharedKGSKI sga0.000.000.00
sharedKGX0.180.180.00
sharedKGX rowlist0.010.010.00
sharedKKBTD0.570.56-1.11
sharedKKDLP SGA Property Tables0.000.000.00
sharedKKJ SGA0.000.000.00
sharedKKJ SHRD WRQS0.000.000.00
sharedKKJ WRK LAT0.000.000.00
sharedKKKI consumer0.010.010.00
sharedKKSSP5.345.747.60
sharedKKTDF0.010.010.00
sharedKKTIN0.020.02-0.35
sharedKKTSR0.010.010.00
sharedKLCS0.750.750.00
sharedKMMSGPDBSA0.000.000.00
sharedKOKTD5.034.82-4.05
sharedKPDB Hash Table Latches0.000.000.00
sharedKPDB latch structure0.000.000.00
sharedKPDBE Children List0.000.000.00
sharedKPDBE SGA Migrate Vld Cal0.000.000.00
sharedKPDBE SGA Tag Id Mapping0.000.000.00
sharedKPDBE SGA Validation Call0.000.000.00
sharedKPDBFL SGA0.000.000.00
sharedKQF optimizer stats table0.000.000.00
sharedKQF runtime defined table0.010.010.00
sharedKQFUTTAB COLS0.000.000.00
sharedKQR X PO44.7935.93-19.77
sharedKQR X SO39.4026.22-33.45
sharedKRBMROS ANCHOR0.000.000.00
sharedKRSF SGA0.000.000.00
sharedKSA ksamsl child latch ar0.000.000.00
sharedKSA ksasg_bp struct holdi0.000.000.00
sharedKSA ksasgfp array of flag0.000.000.00
sharedKSA ksasgfrm message free0.000.000.00
sharedKSA ksasgmsg array of mes0.000.000.00
sharedKSA ksasgque array of mes0.000.000.00
sharedKSA ksasgwfm flag for wai0.000.000.00
sharedKSFD Cache Hints for IO R0.000.000.00
sharedKSFD Kernel IO outlier co0.000.000.00
sharedKSFD SGA I/O b4.004.000.00
sharedKSFQ buffer pool0.000.000.00
sharedKSFV SGA0.000.000.00
sharedKSGL Latch Groups0.000.000.00
sharedKSGL anchor0.010.010.00
sharedKSI ENQUEUES0.080.080.00
sharedKSI Indexes0.000.000.00
sharedKSI resource cache cleanu0.010.010.00
sharedKSI resource cache count0.000.000.00
sharedKSI resource cache reuse0.000.000.00
sharedKSI resource free boolean0.000.000.00
sharedKSI resource hash masks0.000.000.00
sharedKSI resource miss count0.000.000.00
sharedKSI resource types0.020.020.00
sharedKSIPC AM MDT0.000.000.00
sharedKSIPC ASPC InstMap0.030.030.00
sharedKSIPC ASPC Instance Addre0.130.130.00
sharedKSIPC ASPC State Object0.090.090.00
sharedKSIPC anchor0.020.020.00
sharedKSIPCASPC SGA0.000.000.00
sharedKSIR SGA0.000.000.00
sharedKSK OSS PLAN0.000.000.00
sharedKSK OSS PLAN ENTRIES0.390.390.00
sharedKSK PDB IO stat per pdb0.000.000.00
sharedKSK PDB IO stats ptr0.030.030.00
sharedKSK PDB SGA0.010.010.00
sharedKSK PDB SGA kskcgmetric0.010.010.00
sharedKSK PDB SGA kskpdbmetric0.000.000.00
sharedKSK PDB SGA stats0.290.290.00
sharedKSK Redo session info0.010.010.00
sharedKSK SGA0.020.020.00
sharedKSK VT POOL2.532.530.00
sharedKSK plan change state seg0.020.020.00
sharedKSK scheduler0.110.110.79
sharedKSKQ SGA0.330.330.00
sharedKSKQ SGA:kskqlmspld0.060.060.00
sharedKSKQ master CG stats seg3.513.510.00
sharedKSKQ master's compat seg0.010.010.00
sharedKSKQ master's svcracbitma1.001.000.00
sharedKSM Defer SGA context0.000.000.00
sharedKSM SGA Slave ctx0.000.000.00
sharedKSN WaitID0.000.000.00
sharedKSPD key heap0.000.000.00
sharedKSQ event description0.040.040.00
sharedKSRMA Allocated Rlogs1.001.000.00
sharedKSRMA Free Rlogs1.001.000.00
sharedKSRMA Object Descriptors0.030.030.00
sharedKSRMA State Object7.967.960.00
sharedKSRMA anchor0.320.320.00
sharedKSRMF anchor0.000.000.00
sharedKSRMFV2 State Object0.060.060.00
sharedKSRPC I/O Stat array0.000.000.00
sharedKSRPC I/O Stat array ptr0.000.000.00
sharedKSTM SGA0.000.000.00
sharedKSVR SGA0.010.010.00
sharedKSWL LSPCIDS0.000.000.00
sharedKSWL anchor0.000.000.00
sharedKSXP test table columns d0.000.000.00
sharedKSZ SGA0.000.000.00
sharedKSZ sga subheap descripto0.000.000.00
sharedKTA latches0.000.000.00
sharedKTC latch cleanup0.000.000.00
sharedKTC latch subh0.040.040.00
sharedKTC latches0.000.000.00
sharedKTC txn rsrc cnt0.000.000.00
sharedKTC variable sga0.000.000.00
sharedKTCN global clauses ht0.000.000.00
sharedKTCN global operands ht0.000.000.00
sharedKTCN global operators0.000.000.00
sharedKTCN queries hash table0.000.000.00
sharedKTCN: Hash Table Segmente0.010.010.00
sharedKTCN: Obj Invalidation Se0.030.030.00
sharedKTCN: Row Change Segmente0.030.030.00
sharedKTCN: query inv Segmented0.000.000.00
sharedKTCNC inv ht0.000.000.00
sharedKTCNQROW colname ptrs0.000.000.00
sharedKTCNQROW colnames0.010.010.00
sharedKTCTSNL freelists0.000.000.00
sharedKTCTSNL subheaps0.000.000.00
sharedKTF MAPPINGS0.010.010.00
sharedKTFBN SGA0.040.040.00
sharedKTG hash buckets0.070.070.00
sharedKTI SGA freeable small po0.430.430.00
sharedKTI freelists0.000.000.00
sharedKTI latch structure0.030.030.00
sharedKTI latches0.010.010.00
sharedKTI pool states0.000.000.00
sharedKTI-UNDO12.5012.500.00
sharedKTL latches0.000.000.00
sharedKTLI Bkt latches0.010.010.00
sharedKTLI Log Hash Table0.000.000.00
sharedKTLI Parent Bkt LC0.000.000.00
sharedKTLI Parent DESC LC0.000.000.00
sharedKTLI buck-fl ptrs0.000.000.00
sharedKTM PDB SGA0.000.000.00
sharedKTMA Space latch cleanup0.000.000.00
sharedKTMA jlatch cleanup0.000.000.00
sharedKTMA jlatches0.000.000.00
sharedKTMA sort latches0.000.000.00
sharedKTMA space latches0.000.000.00
sharedKTMB CR Buf latch cleanup0.000.000.00
sharedKTMB CR Buf latches0.040.040.00
sharedKTMB latch cleanup0.000.000.00
sharedKTMB latches0.000.000.00
sharedKTMC hash latch cleanup0.020.020.00
sharedKTMC hash latches0.040.040.00
sharedKTMC latch cleanup0.000.000.00
sharedKTMC latches0.000.000.00
sharedKTMCsrchlatches0.040.040.00
sharedKTMCsrchlatclnup0.000.000.00
sharedKTMPJ InMemEsz pools0.000.000.00
sharedKTMPJ Priv latches0.000.000.00
sharedKTMPJ esz pools0.000.000.00
sharedKTMPJ latch cleanup0.000.000.00
sharedKTMPJ latches0.000.000.00
sharedKTMPJ msz pools0.000.000.00
sharedKTMPJHT latch cleanup0.000.000.00
sharedKTMSJ Heaps0.030.030.00
sharedKTMSJ free lists ptrs0.000.000.00
sharedKTMSJ latch cleanup0.000.000.00
sharedKTMSJ latches0.040.040.00
sharedKTPR HIST TB0.000.000.00
sharedKTPR SUBHEAP0.000.000.00
sharedKTRSGA0.000.000.00
sharedKTSJ state object0.060.060.00
sharedKTSJ subheap0.010.010.00
sharedKTSL lat struct0.020.020.00
sharedKTSL reco struct0.010.010.00
sharedKTSL subheap7.537.712.48
sharedKTTE File Cache0.000.000.00
sharedKTTE File Info0.000.000.00
sharedKTTE TS Info0.000.000.00
sharedKTU Recovery SGA0.000.000.00
sharedKTU SGA0.000.000.00
sharedKTU avail cache0.000.000.00
sharedKTU lat struct0.000.000.00
sharedKTU latch cleanup0.000.000.00
sharedKTU latches0.000.000.00
sharedKTUR HIST INFO0.000.000.00
sharedKUPP subheap1.001.000.00
sharedKUPP subheap desc0.000.000.00
sharedKWQDL SGA Ddtc gen cleanu0.000.000.00
sharedKWQDL SGA Dtc gen cleanup0.000.000.00
sharedKWQDL child latches0.000.000.00
sharedKXDBIO Recovery Area0.000.000.00
sharedKXDBIO SGA0.010.010.00
sharedKXDBIO state obj0.560.560.00
sharedKXFR Hash Array latches a0.000.000.00
sharedKXFR Psuedo Hash Array fo0.000.000.00
sharedKYWM CROSS INSTANCE0.000.000.00
sharedKYWM RPLY CROSS INSTANCE0.200.200.00
sharedKYWM SGA0.000.000.00
sharedKernel Component SGA I/O0.180.180.00
sharedKey Management heap0.000.000.00
sharedL2 enabled array0.000.000.00
sharedL2 file db unique name0.000.000.00
sharedL2 file global fob0.000.000.00
sharedL2 file map array0.110.110.00
sharedLGWR PIC0.000.000.00
sharedLGWR PIC request array0.050.050.00
sharedLGWR debug module memory0.010.010.00
sharedLGWR per strand PIC array0.060.060.00
sharedLGWR post requested array0.000.000.00
sharedLGWR-network Server info0.030.030.00
sharedLISTEN ADDRESS ENTRY0.000.000.00
sharedLISTEN ADDRESS TABLE0.000.000.00
sharedLISTEN END-POINT ENTRY0.000.000.00
sharedLISTEN END-POINT TABLE0.000.000.00
sharedLISTENER_NETWORKS PARAMET0.000.000.00
sharedLRMPD SGA Table0.620.620.00
sharedLabel Cache Heap descrptr0.000.000.00
sharedLog Archive Config Contex0.000.000.00
sharedMGA service0.330.330.00
sharedMTTR advisory context0.000.000.00
sharedManaged Standby Process A0.060.060.00
sharedMemory for TopN Table Des0.000.000.00
sharedMinActScn Array0.000.000.00
sharedMonitor Modification Hash0.000.000.00
sharedNETWORK BUFFER0.320.320.00
sharedNettimeout Histogram0.140.140.00
sharedORL error information0.000.000.00
sharedOS file lock0.010.010.00
sharedOS proc request holder0.100.100.00
sharedOnline Datafile Move sess0.000.000.00
sharedPARALLEL T RECO LATCH0.020.020.00
sharedPARAMETER ENTRY0.000.000.00
sharedPARAMETER TABLE0.000.000.00
sharedPDB inst stats array0.000.000.00
sharedPDB stats array0.020.020.00
sharedPDB wallet status0.000.000.00
sharedPDB_PROBLEM0.000.000.00
sharedPDB_SPACE_MGMT0.000.000.00
sharedPG latch table0.000.000.00
sharedPGA total0.000.000.00
sharedPGA totals ptrs0.000.000.00
sharedPICKLEERR0.000.000.00
sharedPLDIA6.953.98-42.79
sharedPLMCD19.6218.46-5.92
sharedPLS SGA hp0.050.050.00
sharedPLS cca hp desc0.000.000.00
sharedPLS chunk0.000.000.00
sharedPMON blockers0.010.010.00
sharedPQ/BizCard0.000.000.00
sharedPRE_11g UNDOSEG DROP BITV0.000.000.00
sharedPROBLEM0.000.000.00
sharedPRTDS1.391.475.08
sharedPRTMV2.993.4615.90
sharedPX QC deq stats0.000.000.00
sharedPX QC msg stats0.000.000.00
sharedPX list of chunk lists0.000.000.00
sharedPX msg pool struct0.000.000.00
sharedPX scan rate stats0.000.000.00
sharedPX server deq stats0.000.000.00
sharedPX server msg stats0.000.000.00
sharedPX subheap0.680.680.00
sharedPX subheap desc0.000.000.00
sharedPer pdb buffers from RM0.250.250.00
sharedPolicy Cache Heap descrpt0.000.000.00
sharedPre-Warm Initialized Seti0.000.000.00
sharedPrefetch client count per0.000.000.00
sharedPrefetch history buffer0.010.010.00
sharedPrefetch history buffer a0.000.000.00
sharedProcessor group descripto0.000.000.00
sharedRMAN wallet access state0.000.000.00
sharedRTA boundary array0.100.100.00
sharedRTA read control file ind0.000.000.00
sharedRULCI0.010.010.00
sharedRULEC0.020.020.00
sharedRVWR post requested array0.000.000.00
sharedRead Only Database Accoun0.000.000.00
sharedReal-Time ADDM control st0.000.000.00
sharedRedo Transmit Queue Descr0.000.000.00
sharedRedo Transport krsstcb Ar0.000.000.00
sharedRedo Transsport Destinati0.020.020.00
sharedReset Parameter Handle0.000.000.00
sharedResult Cache16.2417.628.48
sharedResult Cache: Bloom Filte0.000.000.00
sharedResult Cache: Cache Mgr0.000.000.00
sharedResult Cache: Memory Mgr0.000.000.00
sharedResult Cache: State Objs0.010.010.00
sharedRole(rg) graph heap0.000.000.00
sharedRole(rs) graph heap0.000.000.00
sharedRole(ud) graph heap0.000.000.00
sharedSAGE commit cache Allocat0.000.000.00
sharedSAGE commit cache node Al0.020.020.00
sharedSCHEDULING POLICY TABLE0.000.000.00
sharedSCHEDULING POLICY VECTOR0.000.000.00
sharedSEQ S.O.0.290.290.00
sharedSGA Deferred Parameter Ta0.010.010.00
sharedSGA Non-Inheritable PDB P0.000.000.00
sharedSGA Obsolete Param Source0.000.000.00
sharedSGA PDB Info Array0.030.030.00
sharedSGA Param Source Table0.000.000.00
sharedSGA Parameters Families0.020.020.00
sharedSGA Spare structure for a0.000.000.00
sharedSGA cascade list0.000.000.00
sharedSGA for UMF (KEUM)0.000.000.00
sharedSGA structure for ADR lay0.000.000.00
sharedSGA structure for AWR (KE0.000.000.00
sharedSGA structure for KPON kp0.000.000.00
sharedSGA structure for KPON ks0.000.000.00
sharedSGA structure for KPOND k0.000.000.00
sharedSGA structure for KWQDL h0.000.000.00
sharedSGA structure for KWQDL s0.000.000.00
sharedSGA structure for kelr0.000.000.00
sharedSGA structure for ktslgt0.020.020.00
sharedSGA umbrella cascade map0.000.000.00
sharedSHARED SERVERS INFO0.000.000.00
sharedSHRINK STAT0.000.000.00
sharedSO private sga31.4131.410.00
sharedSQL Memory Manager Base W0.010.010.00
sharedSQL Workarea Histogram0.000.000.00
sharedSQLA1,662.161,760.375.91
sharedSQLK0.080.07-14.29
sharedSQLP7.703.70-51.92
sharedSRL error information0.000.000.00
sharedSWEEPERR0.000.000.00
sharedSWRF Alerted Metric Metad0.000.000.00
sharedSWRF Metric CHBs1.191.190.00
sharedSWRF Metric DRM Table0.010.010.00
sharedSWRF Metric Eidbuf0.480.480.00
sharedSWRF Metric Global SGA0.010.010.00
sharedSWRF Metric Instance SGA0.000.000.00
sharedSWRF Metric RBSM struct0.010.010.00
sharedSWRF Metric RRM Table0.010.010.00
sharedSWRF Metric TMM Table0.000.000.00
sharedSWRF Metric WCTimebuf0.000.000.00
sharedSWRF Metric ksuTimebuf0.000.000.00
sharedSYSTEM PARAMETERS1.031.030.00
sharedSaved job ids0.060.060.00
sharedSecurefile fast space usa0.000.000.00
sharedSecurity Class heap0.000.000.00
sharedService name array0.000.000.00
sharedService-level ID trace se0.000.000.00
sharedService-level trace setti0.000.000.00
sharedSort Segment descriptors0.000.000.00
sharedSort Segment extent descr0.360.360.00
sharedSort Segment file descrip0.000.000.00
sharedSpace Background Task Des0.630.630.00
sharedSpaceReuse Stats0.500.500.00
sharedSql control element child0.000.000.00
sharedSql control element free0.000.000.00
sharedSql controldata element l0.000.000.00
sharedSql controlelement latch0.000.000.00
sharedState object pools0.010.010.00
sharedState object sizes0.000.000.00
sharedState object subpools0.030.030.00
sharedStatic PDB SGA variables0.000.000.00
sharedSync NoAffirm Pending I/O0.020.020.00
sharedTEMP UNDO STAT INFO0.040.040.00
sharedTG shared direct path inf0.000.000.00
sharedTG subheap des0.030.030.00
sharedTG subheap descriptor0.000.000.00
sharedTLAG reasons timing array0.000.000.00
sharedTXN TABLE SEGMENTED ARRAY0.240.240.00
sharedTemporary RTA boundary ar0.000.000.00
sharedTemporary Tables State Ob0.510.510.00
sharedTransportable DB Converte0.000.000.00
sharedUM pid recovery object0.000.000.00
sharedUM root latch recovery ob0.000.000.00
sharedUNDO INFO0.000.000.00
sharedUNDO INFO HASH0.050.050.00
sharedUNDO INFO SEGMENTED ARRAY0.340.340.00
sharedUNDO STAT INFO0.060.060.00
sharedUndo Meta Data0.000.000.00
sharedV$DATAGUARD_STATUS array0.070.070.00
sharedVIEW0.000.000.00
sharedVIEWCOL0.000.000.00
sharedVIRTUAL CIRCUITS9.549.540.00
sharedVM OSD context0.000.000.00
sharedWait event pointers0.000.000.00
sharedX$KCNT array0.010.010.00
sharedX$KSFQP ANCHOR0.000.000.00
sharedX$KSVII table0.000.000.00
sharedX$KSVIS table0.000.000.00
sharedX$KSVIT table0.000.000.00
sharedXCT SGA0.000.000.00
sharedXDBSC16.1516.150.00
sharedXS state object handle0.000.000.00
sharedactive checkpoint queue e0.010.010.00
sharedalert threshol0.000.000.00
sharedalert_ext0.010.010.00
sharedallocate segment hash tab0.200.200.00
sharedalter system errs: kspnfy0.450.450.00
sharedam statistics0.010.010.00
sharedams_xaction0.000.000.00
sharedanalytic workspace0.000.000.00
sharedarchive_lag_target0.010.010.00
sharedarray for shared redo blo0.000.000.00
sharedarray of sessions0.010.010.00
sharedarrays for shared redo bl0.000.000.00
sharedbcast ack latency base ar0.000.000.00
sharedbitvec serial number vali1.001.000.00
sharedblock iostats dynamic seg0.010.010.00
sharedblock media rcv state obj0.000.000.00
sharedblock_sizes_array0.000.000.00
sharedbloom filter0.000.000.00
sharedbranch0.520.520.00
sharedbranch so0.000.000.00
sharedbroker globals0.000.000.00
sharedbt_qentry0.010.010.00
sharedbuffer handle4.584.580.00
sharedbuffer handles0.080.080.00
sharedbuffer_pool_desc_array0.000.000.00
sharedbuffers waiting for write0.000.000.00
sharedcall0.260.260.00
sharedcgidhsh_kfnvsg0.000.000.00
sharedcgidrec_kfnvsg0.000.000.00
sharedchange notification obj m0.020.020.00
sharedchange notification regis0.020.020.00
sharedchange tracking DBA latch0.000.000.00
sharedchange tracking recovery0.250.250.00
sharedchange tracking state cha0.000.000.00
sharedchannel context areas0.060.060.00
sharedchannel handle0.440.440.00
sharedchannel sga anchor0.000.000.00
sharedcinfo_kfnvsgasmb0.000.000.00
sharedclear orls state object0.000.000.00
sharedclient/application info l0.000.000.00
sharedcolumn vectors in finding0.020.020.00
sharedconnection_brokers spec0.000.000.00
sharedconstraints0.360.360.00
sharedcopy latch aux0.000.000.00
sharedcp cmon array0.000.000.00
sharedcp connection0.010.010.00
sharedcp pool array0.000.000.00
sharedcp srv array0.000.000.00
sharedcross-platform compliance0.000.000.00
sharedcurrent pin time statisti0.060.060.00
shareddatabase creation languag0.000.000.00
shareddb_block_hash_buckets64.0064.000.00
shareddb_block_hash_latches6.256.250.00
shareddb_files0.930.930.00
shareddbcomp session0.000.000.00
shareddbf io stats0.000.000.00
shareddbgdInitEventGrp: eventGr0.000.000.00
shareddbgefgHtAddSK-10.460.460.00
shareddbgefgHtInit-10.000.000.00
shareddbgefgHtInit-20.000.000.00
shareddbke_incid_cache_init0.080.080.00
shareddbkea msg body0.050.050.00
shareddbkea msgq0.000.000.00
shareddbkea msgs0.000.000.00
shareddbkea sga0.000.000.00
shareddbkgcParsePatchInfo_12:10.000.000.00
shareddbkgcParsePatchInfo_12:20.070.070.00
shareddbkgcPopulatePatchInfo:10.000.000.00
shareddbkgcpsga0.000.000.00
shareddbkplssga0.000.000.00
shareddbktb: sga ctx0.000.000.00
shareddbktb: trace buffer2.282.280.00
shareddbktb: trace pool0.140.140.00
shareddbwr actual working sets0.000.000.00
shareddbwr message active flag0.000.000.00
shareddbwr outstanding ios per0.000.000.00
shareddbwr suspend/resume array0.000.000.00
shareddbwr suspend/resume ptr a0.000.000.00
shareddbwr working sets kcbdbws0.000.000.00
shareddbwriter coalesce bitmap0.000.000.00
shareddbwriter coalesce buffer4.004.000.00
shareddbwriter coalesce struct0.000.000.00
shareddev2node map0.000.000.00
shareddgmhsh_kfnvsg0.000.000.00
shareddgmrec_kfnvsg0.000.000.00
shareddgtab_kfmdsg0.230.230.00
shareddia* process descriptor0.000.000.00
shareddiag descriptor0.000.000.00
shareddiag fixed SGA0.000.000.00
shareddiagv_incident0.010.010.00
shareddir_ext0.000.000.00
shareddirty object counts array1.001.000.00
shareddispatcher rate0.000.000.00
shareddistributed_transactions-0.030.030.00
shareddlo fib struct0.010.010.00
shareddone Q child latches0.000.000.00
shareddpslut_kfdsg0.000.000.00
shareddskm rac entity id0.000.000.00
shareddsktab_kfgsg0.070.070.00
shareddso->iods_kdlidso0.000.000.00
shareddso->mds_kdlidso0.000.000.00
shareddummy0.120.120.00
sharedemon con array0.000.000.00
sharedemon srv array0.000.000.00
sharedenque hash chain latch re0.000.000.00
sharedenqueue3.573.570.00
sharedenqueue resources1.131.130.00
sharedenqueue state object0.000.000.00
sharedenqueue_hash0.140.140.00
sharedenqueue_hash_chain_latche0.000.000.00
sharederror message file name0.000.000.00
sharedevaluative lgwr0.000.000.00
sharedevent classes0.000.000.00
sharedevent descriptor table0.110.110.00
sharedevent list array to post0.000.000.00
sharedevent list to post commit0.000.000.00
sharedevent-class map0.010.010.00
sharedexecution ID memory0.010.010.00
sharedexpression usage tracking0.370.406.38
sharedfencing reid0.010.010.00
sharedfile # to first dba, exte0.000.000.00
sharedfile # translation table0.040.040.00
sharedfile iostats dynamic seg0.020.020.00
sharedfile queue buckets0.500.500.00
sharedfile queue pointers0.000.000.00
sharedfile state object9.989.980.00
sharedfinding tracking element0.090.094.35
sharedfinding tracking element0.180.180.00
sharedfixed allocation callback0.000.000.00
sharedflashback_marker_cache_si0.010.010.00
sharedfree memory352.04282.89-19.64
sharedgc granule chunks0.000.000.00
sharedgc ping pin array0.010.010.00
sharedgc region array0.000.000.00
sharedgeneric process shared st0.000.000.00
sharedglobal container context0.000.000.00
sharedglobal container timeout0.000.000.00
sharedgroups_kfgbsg1.741.740.00
sharedgrplut_kfgsg0.000.000.00
sharedgrptab_kfgsg0.000.000.00
sharedgwm_ons_info0.000.000.00
sharedgwm_sga_notifier0.000.000.00
sharedhandoff0.000.000.00
sharedhash bucket array allocat0.090.090.00
sharedheap_kdfisga0.000.000.00
sharedheap_kfsg0.000.000.00
sharedhighest_untunable0.000.000.00
sharedhot latch diagnostics0.000.000.00
sharedimc buf hdl1.941.940.00
sharedimc-txn-wrk0.050.050.00
sharedincr ckpt write count arr0.000.000.00
sharedinstance cnxn information0.070.070.00
sharedinvalid low rba queue0.000.000.00
sharediosts_kfmdsg0.080.080.00
sharedjava static objs0.040.040.00
sharedjoxs heap0.000.000.00
sharedjoxs struct0.000.000.00
sharedjsksncb: 120.000.000.00
sharedjsksncb: 20.010.010.00
sharedjsksncb: 30.000.000.00
sharedjsksncb: 40.000.000.00
sharedjsksncb: 60.000.000.00
sharedjsksncb: 70.000.000.00
sharedjsksncb: 90.000.000.00
sharedjsksncb:570.000.000.00
sharedjsksncb:590.000.000.00
sharedjsksncb:620.000.000.00
sharedkcbb parallel inv0.000.000.00
sharedkcbbl2df L2 disabling fla0.000.000.00
sharedkcbi io desc0.040.040.00
sharedkcbi io desc slot4.794.790.00
sharedkcbi memory desc0.010.010.00
sharedkcbl seq io throughput0.010.010.00
sharedkcbl state objects0.010.010.00
sharedkcbl statistics0.010.010.00
sharedkcfis state object0.000.000.00
sharedkcnibr.c@29230.000.000.00
sharedkcnm.c@1950.000.000.00
sharedkcnm.c@2030.020.020.00
sharedkcnm.c@2060.000.000.00
sharedkcrfa structures0.050.050.00
sharedkcrfw_slave_barrier_inita0.000.000.00
sharedkcrfw_slave_group_initall0.000.000.00
sharedkcrfw_slave_phase_initall0.000.000.00
sharedkcrfw_slave_queue_init: s0.000.000.00
sharedkcrfw_slave_queue_init: t0.000.000.00
sharedkcrfwy: numapolicies0.000.000.00
sharedkcrfwy: remaps0.000.000.00
sharedkcrfwy: shutdowns0.000.000.00
sharedkcrfwy: slaves0.000.000.00
sharedkcrlflcr: FLC logmnr sess0.000.000.00
sharedkcrlflcr: FLC root0.000.000.00
sharedkdCStat hash table0.020.020.00
sharedkdCStat latch table0.020.020.00
sharedkdfi buf child latch0.020.020.00
sharedkdfi cmap elem child latc0.010.010.00
sharedkdfi dsga0.000.000.00
sharedkdfi hash bucket child la0.000.000.00
sharedkdlwl_sga_subheap0.000.000.00
sharedkdlwss0.060.076.50
sharedkdlxdup derztc0.000.000.00
sharedkdlxdup swapp0.000.000.00
sharedkdlxdup swappl0.000.000.00
sharedkdmadoht0.020.020.00
sharedkdmadohtincar0.000.000.00
sharedkdmadohtlatc0.000.000.00
sharedkdmadohtlatrec0.000.000.00
sharedkdmfsdwlheap0.000.000.00
sharedkdmfsdwrheap0.000.000.00
sharedkdmfssgaheap0.000.000.00
sharedkdmgdFreeHTQueue0.000.000.00
sharedkdnnfy : array of kdnss0.010.010.00
sharedkea advisor definition ca0.000.000.00
sharedkebm action context0.000.000.00
sharedkebm action descriptors0.000.000.00
sharedkebm run-once actions0.000.000.00
sharedkebm slave descriptors0.040.040.00
sharedkebm slave message0.010.010.00
sharedkebm slave pool descripto0.000.000.00
sharedkebm slave reply0.000.000.00
sharedkebm test replies0.120.120.00
sharedkebmnfy:pdb status array0.000.000.00
sharedkechcInitDBRec: init seg0.000.000.00
sharedkechcNotifier: DB rec0.000.000.00
sharedkecpAllocSgaXOld: alloc0.000.000.00
sharedkecpInst heap0.000.000.00
sharedkecrAllocSgaXOld: alloc0.000.000.00
sharedkecrInst heap0.000.000.00
sharedkecuAllocFeatCtrl: alloc0.010.010.00
sharedkecuNotifier: alloc subhe0.000.000.00
sharedkelr other metrics table0.000.000.00
sharedkelr system metrics table0.000.000.00
sharedkelt translation table0.000.000.00
sharedkeomg: entry list9.009.000.00
sharedkeomgNotify 1:descriptor0.000.000.00
sharedkeomm:emptyMon_keommSg0.020.020.00
sharedkeomm:monFreeList0.020.020.00
sharedkeommDbopListNotify table0.000.000.00
sharedkeommDbopListNotify: free0.000.000.00
sharedkerpi:heap0.020.020.00
sharedkerpiAllocSgaSubHeap:desc0.000.000.00
sharedkeswxNotify:tabRwsStatGro0.000.000.00
sharedket (AutoTask) SGA0.010.010.00
sharedket_nfy:iter task alloc0.000.000.00
sharedkexsvAllocFeatureUsageHea0.000.000.00
sharedkey vector0.000.000.00
sharedkfasga0.010.010.00
sharedkfdsga0.000.000.00
sharedkfdsvsga0.000.000.00
sharedkffgsg0.000.000.00
sharedkffssga0.000.000.00
sharedkfgsga0.010.010.00
sharedkfiac_sg0.000.000.00
sharedkfiosg0.000.000.00
sharedkfkhsh_kfdsg0.000.000.00
sharedkfkid hash0.000.000.00
sharedkfkid hrec0.000.000.00
sharedkfklsod list0.020.020.00
sharedkfklsodtab0.320.320.00
sharedkfkrec_kfdsg0.000.000.00
sharedkfmdsg0.000.000.00
sharedkfmsg0.030.030.00
sharedkfnvsga0.000.000.00
sharedkfnvsgasmbs0.000.000.00
sharedkfvacfssga0.000.000.00
sharedkga sga0.000.000.00
sharedkgh latchdir entries0.010.010.00
sharedkghifx descriptors0.000.000.00
sharedkghmpt jp context0.000.000.00
sharedkghmpt jp records0.030.030.00
sharedkghmpt sp context0.000.000.00
sharedkghmpt sp records0.030.030.00
sharedkghpinfo bathdr0.000.000.00
sharedkghpinfo freelist0.000.000.00
sharedkghpinfo min lru0.000.000.00
sharedkghpinfo ptrs0.000.000.00
sharedkghrcx RO batch headers0.000.000.00
sharedkghrcx RO batches0.120.120.00
sharedkghrcx RO freelist header0.000.000.00
sharedkghrcx RO hash chain0.000.000.00
sharedkghrcx alloc latch state0.000.000.00
sharedkghrcx batch12.9212.920.00
sharedkghrcx latches0.000.000.00
sharedkghrcx recovery structure0.000.000.00
sharedkghx free lists0.130.130.00
sharedkglPdbDebug0.000.000.00
sharedkglPdbDebugNsp0.000.000.00
sharedkglPdbDebugStat0.000.000.00
sharedkglPdbDebugType0.000.000.00
sharedkglsim Java per-gran bkt0.250.250.00
sharedkglsim Java timestamps0.130.130.00
sharedkglsim alloc latch area0.000.000.00
sharedkglsim alloc latches0.000.000.00
sharedkglsim count of pinned he0.020.020.00
sharedkglsim count of unpinned0.020.020.00
sharedkglsim free heap list0.000.000.00
sharedkglsim free obj list0.000.000.00
sharedkglsim hash table0.010.010.00
sharedkglsim hash table bkts4.004.000.00
sharedkglsim heap18.8519.945.78
sharedkglsim latch area0.000.000.00
sharedkglsim latches0.000.000.00
sharedkglsim object batch32.1033.995.87
sharedkglsim per-gran bkt0.250.250.00
sharedkglsim recovery area0.000.000.00
sharedkglsim sga0.000.000.00
sharedkglsim size of pinned mem0.040.040.00
sharedkglsim size of unpinned m0.040.040.00
sharedkglsim timestamps0.130.130.00
sharedkglsim used list arr0.000.000.00
sharedkgnfs authp0.020.020.00
sharedkgnfs ctab array0.010.010.00
sharedkgnfs gid list0.000.000.00
sharedkgnfs htab array0.020.020.00
sharedkgnfs stats array0.120.120.00
sharedkgqbt_alloc_block0.000.000.00
sharedkgsk subheap descriptor0.000.000.00
sharedkjci CIC table0.010.010.00
sharedkjci objects freelist0.030.030.00
sharedkjcifxpoolplus0.000.000.00
sharedkjcipctx SO freelist0.370.370.00
sharedkjxgrgctx SGA0.000.000.00
sharedkjxgrrr SGA0.000.000.00
sharedkjxgrvr SGA0.000.000.00
sharedkkae edition name cache0.000.000.00
sharedkkcnRstatIni0.000.000.00
sharedkkcnecqnsg info0.000.000.00
sharedkkcnesg info0.000.000.00
sharedkkj jobq work items0.000.000.00
sharedkkj jobq slave descriptor0.000.000.00
sharedkks cached parse errors0.000.000.00
sharedkks sga0.000.000.00
sharedkkzias0.000.000.00
sharedkmgsb circular statistics0.160.160.00
sharedkml dynamic sga0.000.000.00
sharedkmlrr sg0.000.000.00
sharedknlpmclsini - alloc0.010.010.00
sharedknlsg0.000.000.00
sharedknlu_init_btree:init0.000.000.00
sharedknstoggall_knstsga0.000.000.00
sharedknstsg0.000.000.00
sharedkodosgi kodos0.000.000.00
sharedkodosgi kopfdo0.000.000.00
sharedkoh dur heap0.000.000.00
sharedkohsg0.000.000.00
sharedkokcss0.000.000.00
sharedkolbsgi: KOLB's SGA initi0.000.000.00
sharedkolfsgi: KOLF's SGA initi0.000.000.00
sharedkpondsg emon info0.000.000.00
sharedkponfy0.000.000.00
sharedkpoxcAppContSG0.100.100.00
sharedkpscad: kpscscon0.000.000.00
sharedkpssnfy: kpsssgct0.000.000.00
sharedkpummst global in the SGA0.010.010.00
sharedkqaq_req0.000.000.00
sharedkqf runtime defined table0.070.070.00
sharedkqlpWrntoStr:string0.000.000.00
sharedkralastcomp0.000.000.00
sharedkramh message flag0.000.000.00
sharedkrbabrAncp0.000.000.00
sharedkrbfusg0.000.000.00
sharedkrdm mira information arr0.000.000.00
sharedkrdm mira recovery instan0.010.010.00
sharedkrdrsb read violation arr0.530.530.00
sharedkrsoproc0.000.000.00
sharedkrssrtt0.000.000.00
sharedkrsv_notifier_cb0.010.010.00
sharedkrvxfda-dka0.000.000.00
sharedkrvxfda-dta0.010.010.00
sharedkrvxlctx0.000.000.00
sharedkrvxmctx0.000.000.00
sharedksacl dbru190.000.000.00
sharedksacm service obj array0.000.000.00
sharedksacm service root0.000.000.00
sharedksasga.ksasgmsgqst0.060.060.00
sharedksb action records0.010.010.00
sharedksb ci process list (each0.000.000.00
sharedksb cic process list0.000.000.00
sharedksb process so list0.000.000.00
sharedksb rolling migration sta0.000.000.00
sharedksbcpuwtm_ctx_entry0.020.020.00
sharedksbcwt0.040.040.00
sharedksbsa pointer array0.000.000.00
sharedksbtnfy: infrequent actio0.000.000.00
sharedksbxic chname0.000.000.00
sharedksbxic dtp0.000.000.00
sharedksbxic obj0.130.130.00
sharedksbxic sga0.000.000.00
sharedksbxic target obj0.000.000.00
sharedkscdnfyglobalflags0.000.000.00
sharedkscdnfyinitflags0.000.000.00
sharedkscdnfyinithead0.000.000.00
sharedkscdnfyinitnext0.000.000.00
sharedkscdnfyinitprev0.000.000.00
sharedkscx capability table0.000.000.00
sharedksdhng: blkers cache0.050.050.00
sharedksdhng: blkrs cache0.020.020.00
sharedksdhng: cache ctx0.000.000.00
sharedksdhng: cache history0.000.000.00
sharedksdhng: cbuf0.030.030.00
sharedksdhng: cbufs0.000.000.00
sharedksdhng: el wtr cache0.420.420.00
sharedksdhng: els blkrs cache2.102.100.00
sharedksdhng: fblkrs cache0.070.070.00
sharedksdhng: wtr cache0.020.020.00
sharedksevn window0.000.000.00
sharedksfcd SGA state0.020.020.00
sharedksfd I/O slave ctx0.000.000.00
sharedksfd SGA I/O outlier1.271.270.00
sharedksfd SGA state0.000.000.00
sharedksfd shared pool recovery0.000.000.00
sharedksfd: block i/o stats poi0.000.000.00
sharedksfd: components i/o stat0.230.230.00
sharedksfd: consumer group i/o0.000.000.00
sharedksfd: file i/o stats poin0.000.000.00
sharedksfdgfib recovery0.000.000.00
sharedksfdodm SGA state0.000.000.00
sharedksfdss bitmap array0.010.010.00
sharedksfdsscloneinfo allocatio0.000.000.00
sharedksfm state object0.000.000.00
sharedksfs SGA state0.050.050.00
sharedksfs cdb mnt structs0.000.000.00
sharedksfs mnt structs0.350.350.00
sharedksfs stat structs0.760.760.00
sharedksfv instance descriptors0.010.010.00
sharedksfv subheap0.020.020.00
sharedksfv subheap descriptor0.000.000.00
sharedksgl SSO0.090.090.00
sharedksgl handle0.100.100.00
sharedksgm sga instance configu0.010.010.00
sharedksim cached group entry l0.090.090.00
sharedksim cached group entry s0.000.000.00
sharedksim client list0.000.000.00
sharedksim request outstanding0.000.000.00
sharedksipc gsm ipopt0.000.000.00
sharedksipc gsm xrccm0.000.000.00
sharedksipc gsment table0.000.000.00
sharedksipc netcaps0.000.000.00
sharedksipc shared nothing stat0.100.100.00
sharedksipc state object10.6110.610.00
sharedksipc_hashs0.190.190.00
sharedksir PrivOp State Object0.000.000.00
sharedksir State Object0.000.000.00
sharedksleid alloc0.000.000.00
sharedksm mga segarr2 0.07 
sharedksm pdb struc0.010.010.00
sharedksm sseg osctx 0.00 
sharedksm_ob_path0.000.000.00
sharedksm_obc_path0.000.000.00
sharedksm_obh_path0.000.000.00
sharedksmd unit test 10.000.000.00
sharedksmmga_hpds1 0.00 
sharedksmmga_pid_root 0.00 
sharedksmpga stat hist0.000.000.00
sharedksmpga list0.010.010.00
sharedksmplsctx0.000.000.00
sharedksmplsctx20.000.000.00
sharedksmscrsas:10.000.000.00
sharedksmscrsas:20.000.000.00
sharedksmsq SGA0.000.000.00
sharedksmtimcronsg0.080.080.00
sharedksmtimcrwnsg0.080.080.00
sharedksns pdb hdl tab0.130.130.00
sharedksns_obj0.450.450.00
sharedkso req alloc0.000.000.00
sharedkso req alloc heapds0.000.000.00
sharedkso: sched delay history0.030.030.00
sharedksoreqholder latches0.000.000.00
sharedksp master psta0.130.130.00
sharedkspcmhdl0.010.010.00
sharedkspd run-time context0.010.010.00
sharedkspload:comment0.000.000.00
sharedkspvpfbv0.000.000.00
sharedkspvpftbl0.020.020.00
sharedksq test state obj0.000.000.00
sharedksr message pool free que0.040.044.00
sharedkss global sga cache0.000.000.00
sharedkss global so cache0.000.000.00
sharedkss global so cache heap0.000.000.00
sharedkss unit test0.000.000.00
sharedkstm drifts table0.000.000.00
sharedksu:ksunf_freelist0.020.020.00
sharedksu:ksusg_emptyinfo0.000.000.00
sharedksu:ksusg_emptysta0.020.020.00
sharedksu:stats_freelist1.931.930.00
sharedksu:stats_freelist_array0.000.000.00
sharedksu:system-global statist0.020.020.00
sharedksuidlwakectx0.000.000.00
sharedksuloi: child latches for0.000.000.00
sharedksuloi: garbage collectio0.000.000.00
sharedksuloi: long op free list0.000.000.00
sharedksuloi: long op statistic0.240.240.00
sharedksuloi: long op used list0.000.000.00
sharedksunfy : SSO free list0.010.010.00
sharedksunfy : array of SSO fre0.000.000.00
sharedksunfy: Reserved PSO Numa0.000.000.00
sharedksunfy: in-use PSO Numa A0.000.000.00
sharedksunfy: instance statisti0.000.000.00
sharedksunfy: is parent statist0.020.020.00
sharedksunfy: nodes of hierarch0.000.000.00
sharedksunfy: pdb counts segmen0.000.000.00
sharedksunfy_meta 138.8738.870.00
sharedksupd List head0.000.000.00
sharedksupd SQL Context0.000.000.00
sharedksupd latch recovery0.000.000.00
sharedksupd proc death0.000.000.00
sharedksuplsb: plsql call stack0.000.000.00
sharedksuprcwt0.100.100.00
sharedksuprlwt0.100.100.00
sharedksuseplsrctx memory0.000.000.00
sharedksusessnetstat0.090.090.00
sharedksv direct msg::Data Pump0.020.020.00
sharedksv error msg0.100.117.61
sharedksv reaper0.030.030.00
sharedksv slave0.030.030.00
sharedksv slave class0.550.550.00
sharedksv work msg::MMON slave0.000.000.00
sharedksv work msg::Redo Transp0.000.000.00
sharedksvr msg cache0.000.000.00
sharedkswl ctxt0.070.070.00
sharedkswl sctxt0.060.060.00
sharedksws RLB SGA ctx0.000.000.00
sharedksws java patching contex0.000.000.00
sharedksws listener service nam0.000.000.00
sharedksws service events0.060.060.00
sharedksws service hash table0.000.000.00
sharedksws service hash table b0.000.000.00
sharedksws service object0.010.010.00
sharedksz parent0.020.020.00
sharedktcncchildlatch0.010.010.00
sharedktcnqrow columns0.010.010.00
sharedktfa dynamic SGA allocati0.000.000.00
sharedktg hash buckets0.010.010.00
sharedktgCircBuf:MinActScn Trc0.040.040.00
sharedktilm hash latches0.020.020.00
sharedktilm hash table0.020.020.00
sharedktimextht ht0.020.020.00
sharedktimextht latches0.160.160.00
sharedktimextht recovery area0.060.060.00
sharedktsimaCtx0.500.500.00
sharedktsj_init_sga proc desc0.020.020.00
sharedktsj_init_sga task stat0.000.000.00
sharedktud-usd hash table0.000.000.00
sharedkupva alloc0.000.000.00
sharedkupvj alloc0.000.000.00
sharedkwqicaqe2kc10.030.030.00
sharedkwqmnasctx: alloc kwqmnsc0.000.000.00
sharedkwqmncal: allocate buffer0.010.010.00
sharedkwqmncini-stat0.000.000.00
sharedkwqmncini-tbl0.010.010.00
sharedkwrsnfy: kwrsoe0.010.010.00
sharedkwsbgcdsjini-kwsbgjta0.000.000.00
sharedkwsbgcsoa0.000.000.00
sharedkwsbgini-actvmPooltab_kws0.000.000.00
sharedkwsbgini-fmPool_kwsbgsgn0.000.000.00
sharedkwsbgini: vmPool_kwsbgsgn0.000.000.00
sharedkwsbjcAllocMem: allocate0.020.020.00
sharedkwsbsmStSlv: sptr for loc0.000.000.00
sharedkwsbtmCrtLatStatNode:allo0.000.000.00
sharedkwscSGAInitNfy: flst_kwsm0.000.000.00
sharedkwslbSGAData0.000.000.00
sharedkwsmcMmLat rec0.000.000.00
sharedkwsoptSGAINfy:inactive0.000.000.00
sharedkwsoptSGAINfy:optlist0.000.000.00
sharedkwsoptSGAINfy:uncached0.000.000.00
sharedkwsoptstat20.000.000.00
sharedkwspNfy-10.000.000.00
sharedkwspNfy-20.000.000.00
sharedkwspNfy-30.000.000.00
sharedkwssnmapAlloc0.010.010.00
sharedkwstxnInitSga: tspl_kwsmc0.010.010.00
sharedkxfpSO q freelists0.000.000.00
sharedkxfpSO qref freelists0.000.000.00
sharedkxfpdp pointers0.250.250.00
sharedkxfpsga snapshots0.020.020.00
sharedkzaac_vsga0.000.000.00
sharedkzekm PDB P-Cache in ROOT0.000.000.00
sharedkzekm PDB status check in0.000.000.00
sharedkzekm heap descriptor0.000.000.00
sharedkzekm heapt de0.000.000.00
sharedkzekm rsafipspath0.000.000.00
sharedkziamCacheSGA0.000.000.00
sharedkzsc sga heap0.000.000.00
sharedkzscnfy: 30.000.000.00
sharedkzsrs filename0.000.000.00
sharedkzxiIniSGA:Late binding D0.000.000.00
sharedkzxinfy:Child latches0.000.000.00
sharedlatch classes0.000.000.00
sharedlatch descriptor dynamic0.030.030.00
sharedlatch descriptor state0.070.070.00
sharedlatch where map0.020.020.00
sharedlatch where range0.040.040.00
sharedlatch where stats0.310.310.00
sharedlatches for protecting fs0.000.000.00
sharedlatches for protecting ls0.000.000.00
sharedlatches for protecting ws0.000.000.00
sharedlist0.000.000.00
sharedlistener addresses0.000.000.00
sharedlocal undo segment bit ve0.000.000.00
sharedlocator state object0.130.130.00
sharedlock state hash table0.620.620.00
sharedlog file size history arr0.000.000.00
sharedlog_checkpoint_timeout0.010.010.00
sharedlog_ext0.010.010.00
sharedlog_simultaneous_copies0.000.000.00
sharedlogout storm management0.010.010.00
sharedlogwriteds0.880.880.00
sharedltxid: ltxid context0.290.290.00
sharedmax allowable # log files0.480.480.00
sharedmedia recovery state obje0.010.010.00
sharedmemory pool stats0.000.000.00
sharedmemory transfer history0.020.020.00
sharedmessage pool context area0.030.030.00
sharedmessage pool freequeue2.912.910.00
sharedmessages0.240.240.00
sharedmga fixvar info0.000.000.00
sharedmga fixvar size0.000.000.00
sharedmiscellaneous0.000.000.00
sharedmodification hash table c1.001.000.00
sharedmodification hash table e0.180.194.35
sharedmonitoring column usage e0.030.030.00
sharedmsg Q child latches0.000.000.00
sharedname-service entry0.000.000.00
sharedname-service recovery0.000.000.00
sharedname-service request0.000.000.00
sharedname-service table0.020.020.00
sharednamhsh_kfdsg0.000.000.00
sharednamhsh_kfgsg0.000.000.00
sharednamrec_kfdsg0.000.000.00
sharednetwork connections0.100.100.00
sharednonlogged block cache wri0.000.000.00
sharedobj array0.000.000.00
sharedobj hash table pointers0.000.000.00
sharedobj stats allocation chun4.924.920.00
sharedobj stats hash table0.000.000.00
sharedobject level stat table0.000.000.00
sharedobject lock state object0.000.000.00
sharedobject queue hash buckets4.004.000.00
sharedobject queue hash table d0.010.010.00
sharedobject queue header free1.471.470.00
sharedobject queue header hash0.050.050.00
sharedobject temp hash buckets0.250.250.00
sharedobject temp hash table la0.180.180.00
sharedos statistics0.010.010.00
sharedosp allocation0.530.530.00
sharedosp pool handles0.000.000.00
sharedoverlapped redo writes in0.000.000.00
sharedparallel dbwr invalidate0.000.000.00
sharedparallel kcbibr0.000.000.00
sharedparallel kcbibr dbwr bitv0.000.000.00
sharedparallel_max_servers0.030.030.00
sharedparam hash values0.020.020.00
sharedparameter blocks0.040.040.00
sharedparameter handle0.880.936.49
sharedparameter string values0.420.420.00
sharedparameter table block3.443.666.53
sharedparameter text value0.010.010.00
sharedparameter value memory0.010.013.71
sharedpending bcast scn array0.000.000.00
sharedpending ckpt array for ti0.020.020.00
sharedper-PDB stats0.340.340.00
sharedper_pg_set_descriptor_arr0.150.150.00
sharedpeshm.c: Global_Sub_Heap0.000.000.00
sharedpeshm.c:Global0.010.010.00
sharedpeshm.c:latch0.000.000.00
sharedpesldT03_Instance0.030.030.00
sharedpesom.c: Global_Sub_Heap0.000.000.00
sharedpesom.c: Pesom_Global_Hea0.000.000.00
sharedpesom.c:Global0.040.040.00
sharedpesom.c:Object0.000.000.00
sharedpesom.c:latch array0.000.000.00
sharedpesom.c:subheap ds array0.000.000.00
sharedpga accounting0.010.010.00
sharedpga detail array0.000.000.00
sharedpid0.120.120.00
sharedplis struct0.000.000.00
sharedplugin datafile array0.000.000.00
sharedplwppwp:PLW_STR_NEW_LEN_V0.000.000.00
sharedplwppwp:PLW_STR_NEW_VAL_V0.000.000.00
sharedplwppwp:garbage handle0.000.000.00
sharedplwspv:PLW_STR_NEW_VAL0.000.000.00
sharedpmon map array0.010.010.00
sharedpmon sga0.000.000.00
sharedpmon slaves array0.000.000.00
sharedpoisoned memory0.030.030.00
sharedpool srv hash buckets0.000.000.00
sharedpool srv hash sbuckets0.000.000.00
sharedpool srv list0.000.000.00
sharedpopulate state object0.000.000.00
sharedpost stats0.000.000.00
sharedpost/wait queues0.060.060.00
sharedprimem_kfmdsg0.010.010.00
sharedprirec_kfmdsg0.000.000.00
sharedprivate strands11.3211.320.00
sharedprmtzdini tz region1.001.000.00
sharedprocess allocation slots0.010.010.00
sharedprocess count for each CI0.000.000.00
sharedprocess group array0.090.090.00
sharedprocess_memory_detail 0.08 
sharedprocesses0.010.010.00
sharedprocs: ksunfy5.295.290.00
sharedprocs:bitvec0.000.000.00
sharedprocs_kfgbsg0.010.010.00
sharedproperty service SO0.000.000.00
sharedpso child tracebuf ptrs0.010.010.00
sharedpso tbs: ksunfy0.500.500.00
sharedpspool_kfsg0.000.000.00
sharedptr to sessions under idl0.000.000.00
sharedpubentry0.000.000.00
sharedqesbl old rows0.000.000.00
sharedqesmmaInitialize:0.000.000.00
sharedqesmmaInitialize: ia_qesm0.000.000.00
sharedqesmmaInitialize: oa_qesm0.000.000.00
sharedqesmmaInitialize: pa_qesm0.010.010.00
sharedqesmmaInitialize: ta_qesm0.000.000.00
sharedqesrcSet_Init0.030.030.00
sharedqksbgCreateSystemEnv: qks0.000.000.00
sharedqksceAllocateSga:ce0.000.000.00
sharedqksncg_signature0.030.030.00
sharedqm_init_sga:origroot0.000.000.00
sharedqm_init_sga:rootname0.000.000.00
sharedqm_init_uga:qmsg0.010.010.00
sharedqm_init_xdbconfig_resoid:0.000.000.00
sharedqmcInitSGA:qmsga_acl_prop0.000.000.00
sharedqmkmProtocol:qmdpsg0.000.000.00
sharedqmn tasks0.000.000.00
sharedqmps connections0.060.060.00
sharedqmrcInitSGA:qmrcSGA0.000.000.00
sharedqmtLoadSharedData10.000.000.00
sharedqmtb_init_data0.000.000.00
sharedqmtmrcsg0.020.020.00
sharedqmu subheap0.100.100.00
sharedqtree_kwqbsgn0.000.000.00
sharedqtree_kwqbspse0.000.000.00
sharedqtree_kwqspqctx0.000.000.00
sharedquiesce system context0.000.000.00
sharedquiescing session0.000.000.00
sharedrecov_kgqbtctx0.010.010.00
sharedrecovery apply status0.020.020.00
sharedredo allocation latch(es)0.030.030.00
sharedrelmd_ext0.000.000.00
sharedreplication session stats0.010.010.00
sharedreservation state object0.000.000.00
sharedreserved entries for all0.010.010.00
sharedreset parameter blocks0.040.040.00
sharedresize operation history0.030.030.00
sharedresize request state obje0.320.320.00
sharedresumable0.000.000.00
sharedrow cache0.020.020.00
sharedrow cache child latch0.010.010.00
sharedrow cache hash5.795.790.00
sharedrow cache mutex8.698.690.00
sharedrow cache mutex state1.451.450.00
sharedrules engine aggregate st0.000.000.00
sharedrules engine context0.000.000.00
sharedsched job queue0.000.000.00
sharedsched job slv0.030.030.00
sharedsctx0.050.050.00
sharedsegmented arrays0.020.020.00
sharedsess Q child latches0.000.000.00
sharedsession14.8914.890.00
sharedsession idle latches0.000.000.00
sharedsession migration enqueue0.000.000.00
sharedsga blobs0.030.030.00
sharedsga dev dict0.000.000.00
sharedsga latch bitmap0.000.000.00
sharedsga latch table0.010.010.00
sharedsga latch where stats0.080.080.00
sharedsga listelement0.000.000.00
sharedsga node map0.000.000.00
sharedshadow lost write work bl0.000.000.00
sharedsignature element table0.000.000.00
sharedsim cache nbufs0.000.000.00
sharedsim cache sizes0.000.000.00
sharedsim kghx free lists0.000.000.00
sharedsim lru segments0.010.010.00
sharedsim segment hits0.010.010.00
sharedsim segment num bufs0.010.010.00
sharedsim state object0.000.000.00
sharedsim trace buf0.000.000.00
sharedsim trace buf context0.000.000.00
sharedsim_knlasg0.000.000.00
sharedsimulator hash buckets4.034.030.00
sharedsimulator latch/bucket st0.910.910.00
sharedslave class sga anchor0.000.000.00
sharedsort segment handle0.020.020.00
sharedsot0.000.000.00
sharedsot->data_kdliso0.000.000.00
sharedspfile cleanup structure0.020.020.00
sharedspilled over messages0.000.000.00
sharedsrshsh_kfnvsg0.000.000.00
sharedsrsrec_kfnvsg0.000.000.00
sharedssethsh_kfdsvsg0.000.000.00
sharedssetrec_kfdsvsg0.000.000.00
sharedstandby event stats0.000.000.00
sharedstarting comp sizes snaps0.000.000.00
sharedstat hash values0.010.010.00
sharedstatement queuing0.000.000.00
sharedsubbtree_kwqspqctx0.000.000.00
sharedsys event stats1.261.260.00
sharedsys event stats for Other0.060.060.00
sharedsys_event stats0.000.000.00
sharedsystem default language h0.000.000.00
sharedsystem node table0.000.000.00
sharedtablespace encryption key0.000.000.00
sharedtemp lob duration state o0.000.000.00
sharedtemporary foreign ref0.000.000.00
sharedtemporary tabl10.7111.9811.80
sharedtemporary table lock0.010.010.00
sharedthreshold alert structure0.000.000.00
sharedtime manager context0.000.000.00
sharedtime-based incremental me0.050.050.00
sharedtop_proc_untunable0.000.000.00
sharedtrace buf hdr xtend0.000.000.00
sharedtrace buffer header array0.000.000.00
sharedtrace events array0.070.070.00
sharedtrace_knlasg0.000.000.00
sharedtracking column min max0.210.236.07
sharedtransaction4.784.780.00
sharedts encryption global key0.000.000.00
sharedts encryption key afn rev0.000.000.00
sharedtxn jrnl0.790.790.00
sharedtxncallback0.260.260.00
sharedufgtab_kfmdsg0.230.230.00
sharedum pid0.000.000.00
sharedundo temp0.340.340.00
sharedv_actinc0.000.000.00
sharedv_actprob0.000.000.00
sharedv_inc_meter_info_problem0.000.000.00
sharedv_inccount0.000.000.00
sharedv_incfcount0.000.000.00
sharedv_ipsprbcnt0.000.000.00
sharedv_ipsprbcnt10.000.000.00
sharedv_nfcinc0.000.000.00
sharedv_swperrcount0.000.000.00
sharedvadr_control0.000.000.00
sharedvem_user_actlog0.000.000.00
sharedvem_user_actlog10.000.000.00
sharedvhm_run0.000.000.00
sharedvinc_meter_info0.000.000.00
sharedvincident0.010.010.00
sharedvincident_file0.000.000.00
sharedvips_file_copy_log0.000.000.00
sharedvips_file_metadata0.000.000.00
sharedvips_package_file0.000.000.00
sharedvips_package_history0.000.000.00
sharedvips_package_incident_det0.010.010.00
sharedvips_package_main_int0.000.000.00
sharedvips_package_main_problem0.000.000.00
sharedvips_package_size0.000.000.00
sharedvips_pkg_file0.000.000.00
sharedvips_pkg_incident_candida0.010.010.00
sharedvnot_exist_incident0.010.010.00
sharedvpdb_problem0.000.000.00
sharedvproblem0.010.010.00
sharedvproblem10.010.010.00
sharedvproblem20.010.010.00
sharedvproblem_bucket0.000.000.00
sharedvproblem_bucket10.000.000.00
sharedvproblem_bucket_count0.000.000.00
sharedvproblem_int0.010.010.00
sharedvproblem_lastinc0.000.000.00
sharedvshowcatview0.000.000.00
sharedvshowincb0.000.000.00
sharedvshowincb_i0.000.000.00
sharedvtest_exists0.000.000.00
sharedwork area table entry0.250.250.00
sharedwrite info array0.060.060.00
sharedwrite state object13.6013.600.00
sharedwrites stopped lock conte0.000.000.00
sharedwrites stopped lock state0.000.000.00
sharedx$ksmfs table0.000.000.00
sharedx$rule_set0.040.040.00
sharedxdbconf0.000.000.00
sharedxscalc0.000.000.00
sharedxslongops0.020.020.00
sharedxssinfo0.010.010.00
sharedzafwctx0.170.170.00
sharedzasasga0.000.000.00
sharedzlllab Group Tree Heap De0.000.000.00
streamsfixed allocation callback0.000.000.00
streamsfree memory63.9963.990.00
streamsimage handles:kwqbsinfy0.000.000.00
streamskgqmdm_fl_10.000.000.00
streamskwqbsinfy:bmsg0.000.000.00
streamskwqbsinfy:bqgctx0.000.000.00
streamskwqbsinfy:cco0.000.000.00
streamskwqbsinfy:mprop0.000.000.00
streamskwqbsinfy:statslx0.000.000.00
streamsspilled:kwqblspm0.000.000.00
 buffer_cache9,184.009,184.000.00
 fixed_sga13.1813.180.00
 log_buffer18.8218.820.00
 shared_io_pool128.00128.000.00


Back to Memory Statistics
Back to Top

Replication Statistics (GoldenGate, XStream)

Back to Top

Replication System Resource Usage

No data exists for this section of the report.

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

Replication SGA Usage

No data exists for this section of the report.

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

GoldenGate Capture

No data exists for this section of the report.

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

GoldenGate Capture Rate

No data exists for this section of the report.

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

GoldenGate Apply Reader

No data exists for this section of the report.

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

GoldenGate Apply Coordinator

No data exists for this section of the report.

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

GoldenGate Apply Server

No data exists for this section of the report.

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

GoldenGate Apply Coordinator Rate

No data exists for this section of the report.

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

GoldenGate Apply Reader and Server Rate

No data exists for this section of the report.

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

XStream Capture

No data exists for this section of the report.

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

XStream Capture Rate

No data exists for this section of the report.

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

XStream Apply Reader

No data exists for this section of the report.

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

XStream Apply Coordinator

No data exists for this section of the report.

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

XStream Apply Server

No data exists for this section of the report.

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

XStream Apply Coordinator Rate

No data exists for this section of the report.

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

XStream Apply Reader and Server Rate

No data exists for this section of the report.

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

Table Statistics by DML Operations

No data exists for this section of the report.

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

Table Statistics by Conflict Resolutions

No data exists for this section of the report.

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

Replication Large Transaction Statistics

No data exists for this section of the report.

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

Replication Long Running Transaction Statistics

No data exists for this section of the report.

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

Advanced Queuing

Back to Top

Advanced Queue CPU/IO Usage

Session TypeFirst LogonCPU time(s)User IO Wait time(s)SYS IO Wait time(s)
QMON Coordinator11-Jan-26 13:44:330.000.000.00
QMON Slave11-Jan-26 13:44:330.000.000.00


Back to Advanced Queuing
Back to Top

Buffered Queues

No data exists for this section of the report.

Back to Advanced Queuing
Back to Top

Buffered Queue Subscribers

No data exists for this section of the report.

Back to Advanced Queuing
Back to Top

Rule Set

RuleEvalsNo-SQL Eval%SQL ExecsCPU(s)Ela(s)Eval /SecSQL per EvalEla(s) per EvalCPU(s) per EvalReloads
SYS.SCHEDULER$_EVENT_QUEUE_R 4250.0000.000.000.000.000.000.000


Back to Advanced Queuing
Back to Top

Persistent Queues

Queue NameEnq MsgsDeq Msgs%Exp Msgs%Delay MsgsEnq Time(s)Deq Time(s)%Transf Time%Eval Time
SYS.SCHEDULER$_EVENT_QUEUE(20238) 4250100.00100.000.660.000.0051.92


Back to Advanced Queuing
Back to Top

Persistent Queues Rate

Queue NameEnqueue Msgs/secDequeue Msgs/secAvg Enqueue sec / msgAvg Dequeue sec / msg
SYS.SCHEDULER$_EVENT_QUEUE(20238) 0.000.000.00 


Back to Advanced Queuing
Back to Top

Persistent Queue Subscribers

Subscriber/QueueEnqueue MsgsDequeue MsgsExpire MsgsEnqueue Msgs/secDequeue Msgs/secExpire Msgs/sec
ILM_AGENT(1)/SYS.SCHEDULER$_EVENT_QUEUE 000   
REALTIME_CUST_DATA_10MINUTELY_LOAD_DURATION_AGENT(21)/SYS.SCHEDULER$_EVENT_QUEUE 000   
REALTIME_CUST_DATA_DAILY_LOAD_DURATION_AGENT(23)/SYS.SCHEDULER$_EVENT_QUEUE 000   
REALTIME_CUST_DATA_HRLY_LOAD_DURATION_AGENT(22)/SYS.SCHEDULER$_EVENT_QUEUE 000   
SCHEDULER$_EVENT_AGENT(24)/SYS.SCHEDULER$_EVENT_QUEUE 000   


Back to Advanced Queuing
Back to Top

Resource Limit Stats

Resource NameCurrent UtilizationMaximum Utilization Initial Allocation Limit
smartio_overhead_memory0174,1040UNLIMITED
smartio_sessions010UNLIMITED



Back to Top

Shared Server Statistics

Back to Top

Shared Servers Activity

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


Back to Shared Server Statistics
Back to Top

Shared Servers Rates

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


Back to Shared Server Statistics
Back to Top

Shared Servers Utilization

Total Server Time (s)%Busy%IdleIncoming Net %Outgoing Net %
291,6580.00100.000.000.00


Back to Shared Server Statistics
Back to Top

Shared Servers Common Queue

No data exists for this section of the report.

Back to Shared Server Statistics
Back to Top

Shared Servers Dispatchers

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


Back to Shared Server Statistics
Back to Top

Initialization Parameters

Back to Top

Modified Parameters

Parameter NameBegin valueEnd value (if different)
audit_file_destC:\ORACLE\ADMIN\ABS1\ADUMP  
audit_trailNONE  
compatible19.0.0  
control_filesC:\ORACLE\ORADATA\ABS1\CONTROL01.CTL, D:\ORACLE\ORADATA\ABS1\CONTROL02.CTL  
db_block_size8192  
db_nameABS1  
diagnostic_destC:\ORACLE  
dispatchers(PROTOCOL=TCP) (SERVICE=ABS1XDB)  
local_listenerLISTENER_ABS1  
log_archive_destD:\Oracle\oradata\ABS1\archivelogs  
nls_languageAMERICAN  
nls_length_semanticsCHAR  
nls_territoryAMERICA  
open_cursors600  
optimizer_secure_view_mergingFALSE  
pga_aggregate_target4026531840  
processes1000  
recyclebinoff  
remote_login_passwordfileEXCLUSIVE  
resource_manager_planSCHEDULER[0x4F58]:DEFAULT_MAINTENANCE_PLAN  
session_cached_cursors500  
sga_max_size13589544960  
sga_target13589544960  
undo_tablespaceUNDOTBS1  


Back to Initialization Parameters
Back to Top

Modified Multi-Valued Parameters

Parameter NameBegin valueEnd value (if different)
control_filesC:\ORACLE\ORADATA\ABS1\CONTROL01.CTL  
D:\ORACLE\ORADATA\ABS1\CONTROL02.CTL  


Back to Initialization Parameters
Back to Top

ADDM Task ADDM:2620954958_1_31234

          ADDM Report for Task 'ADDM:2620954958_1_31234'
          ----------------------------------------------

Analysis Period
---------------
AWR snapshot range from 31233 to 31234.
Time period starts at 24-FEB-26 22.00.22
Time period ends at 24-FEB-26 23.00.30

Analysis Target
---------------
Database 'ABS1' with DB ID 2620954958.
Database version during analysis period was 19.29.0.0.0.
Database version when ADDM was executed was 19.0.0.0.0.
All recommendations generated by ADDM are valid for database version 19.0.0.0.0, the version in which ADDM was executed.
ADDM performed an analysis of instance abs1, numbered 1 and hosted at BASHIR.

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

Summary of Findings
-------------------
   Description                               Active Sessions      Recommendations
                                             Percent of Activity
   ----------------------------------------  -------------------  ---------------
1  Hard Parse Due to Parse Errors            .51 | 37.25          1
2  Top SQL Statements                        .46 | 33.74          8
3  Unusual "Network" Wait Event              .12 | 8.91           5
4  Top Segments by "User I/O" and "Cluster"  .11 | 8.32           2
5  Unusual "Network" Wait Event              .09 | 6.94           4
6  I/O to Temporary Tablespaces              .09 | 6.42           2
7  Undersized SGA                            .05 | 3.4            1
8  PL/SQL Execution                          .01 | 1.01           1


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


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

Finding 1: Hard Parse Due to Parse Errors
Impact is .51 active sessions, 37.25% of total activity.
--------------------------------------------------------
Hard parsing SQL statements that encountered parse errors was consuming
significant database time.

   Recommendation 1: Application Analysis
   Estimated benefit is .51 active sessions, 37.25% of total activity.
   -------------------------------------------------------------------
   Action
      Investigate application logic to eliminate parse errors.

   Symptoms That Led to the Finding:
   ---------------------------------
      Hard parsing of SQL statements was consuming significant database time.
      Impact is .5 active sessions, 36.98% of total activity.


Finding 2: Top SQL Statements
Impact is .46 active sessions, 33.74% 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 .14 active sessions, 10.51% of total activity.
   -------------------------------------------------------------------
   Action
      Run SQL Tuning Advisor on the SELECT statement with SQL_ID
      "4uty0m1dzyu2s".
      Related Object
         SQL statement with SQL_ID 4uty0m1dzyu2s.
         /* SQL Analyze(20,1) */ WITH
         SAWITH0 AS (select sum(T12363.QUANTITY_DELIVERED) as c1,
         T5913.BUSINESS_UNIT_NAME as c2,
         T5959.EMAIL as c3,
         T5959.PHONE_NUMBER as c4,
         T5959.VISIT_ADDRESS_1 as c5,
         T5959.VISIT_CITY as c6,
         T5959.VISIT_ZIPCODE as c7,
         T5959.INVOICE_FREQUENCY as c8,
         T5959.TAXABLE as c9,
         T5959.WEEKLY_MINIMUM_INVOICE_AMOUNT as c10,
         T5959.CONTACT_PERSON_OF_CUSTOMER as c11,
         T5959.DATE3 as c12,
         T5959.NUMBER1 as c13,
         T5959.STRING1 as c14,
         T5959.STRING10 as c15,
         T5959.STRING11 as c16,
         T5959.STRING12 as c17,
         T5959.STRING13 as c18,
         T5959.STRING14 as c19,
         T5959.STRING16 as c20,
         T5959.STRING17 as c21,
         T5959.STRING7 as c22,
         T5959.STRING9 as c23,
         T5959.CHAIN_CODE as c24,
         T5959.CHAIN as c25,
         T5959.CUSTOMER_SERVICE_EMPLOYEE as c26,
         T5959.MARKET_SEGMENT as c27,
         T5959.NATIONAL_ACCOUNT_NAME as c28,
         T5959.ACTIVE as c29,
         T5959.CUSTOMER_BUSINESS_UNIT_NAME as c30,
         T5959.NAME as c31,
         T5959.CUSTOMER_NUMBER as c32,
         T5959.DATE_ACTIVE as c33,
         T5959.DATE_INACTIVE as c34,
         T5959.LEGACY_CUSTOMER_NUMBER as c35,
         T5959.LEGAL_NAME as c36,
         T5959.PAYMENT_METHOD as c37,
         T5959.PAYMENT_TERMS as c38,
         T5913.DIMENSION_KEY as c39,
         T5959.DIMENSION_KEY as c40,
         T5959.NATIONAL_ACCOUNT_CODE as c41,
         T5959.MARKET_SEGMENT_CODE as c42
         from
         DIM_V_CUSTOMER T5959,
         DIM_V_BUSINESS_UNIT T5913,
         FACT_DELIVERIES T12363
         where  ( T5913.DIMENSION_KEY = T12363.BUSINESS_UNIT and
         T5913.DIVISION = 'Johnsons Hotel Linen' and T5959.DIMENSION_KEY =
         T12363.CUSTOMER )
         group by T5913.DIMENSION_KEY, T5913.BUSINESS_UNIT_NAME,
         T5959.DIMENSION_KEY, T5959.CUSTOMER_NUMBER, T5959.LEGAL_NAME,
         T5959.LEGACY_CUSTOMER_NUMBER, T5959.VISIT_ADDRESS_1,
         T5959.VISIT_ZIPCODE, T5959.VISIT_CITY, T5959.PHONE_NUMBER,
         T5959.EMAIL, T5959.DATE_ACTIVE, T5959.DATE_INACTIVE, T5959.ACTIVE,
         T5959.CUSTOMER_BUSINESS_UNIT_NAME, T5959.CHAIN_CODE, T5959.CHAIN,
         T5959.MARKET_SEGMENT_CODE, T5959.MARKET_SEGMENT,
         T5959.NATIONAL_ACCOUNT_CODE, T5959.NATIONAL_ACCOUNT_NAME,
         T5959.CUSTOMER_SERVICE_EMPLOYEE, T5959.TAXABLE,
         T5959.INVOICE_FREQUENCY, T5959.PAYMENT_METHOD, T5959.PAYMENT_TERMS,
         T5959.NAME, T5959.WEEKLY_MINIMUM_INVOICE_AMOUNT,
         T5959.CONTACT_PERSON_OF_CUSTOMER, T5959.STRING1, T5959.STRING7,
         T5959.STRING9, T5959.STRING10, T5959.STRING11, T5959.STRING12,
         T5959.STRING13, T5959.STRING14, T5959.STRING16, T5959.STRING17,
         T5959.NUMBER1, T5959.DATE3)
         select 0 as c1,
         D1.c2 as c2,
         D1.c3 as c3,
         D1.c4 as c4,
         D1.c5 as c5,
         D1.c6 as c6,
         D1.c7 as c7,
         D1.c8 as c8,
         D1.c9 as c9,
         D1.c10 as c10,
         D1.c11 as c11,
         D1.c12 as c12,
         D1.c13 as c13,
         D1.c14 as c14,
         D1.c15 as c15,
         D1.c16 as c16,
         D1.c17 as c17,
         D1.c18 as c18,
         D1.c19 as c19,
         D1.c20 as c20,
         D1.c21 as c21,
         D1.c22 as c22,
         D1.c23 as c23,
         D1.c24 as c24,
         D1.c25 as c25,
         D1.c26 as c26,
         D1.c27 as c27,
         D1.c28 as c28,
         D1.c29 as c29,
         D1.c30 as c30,
         D1.c31 as c31,
         D1.c32 as c32,
         D1.c33 as c33,
         D1.c34 as c34,
         D1.c35 as c35,
         D1.c36 as c36,
         D1.c37 as c37,
         D1.c38 as c38,
         D1.c1 as c39,
         0 as c40,
         D1.c39 as c41,
         D1.c40 as c42,
         D1.c41 as c43,
         D1.c42 as c44
         from
         SAWITH0 D1
         order by c5, c36, c28, c32, c29, c4, c33, c9, c3, c25, c35, c30, c37,
         c8, c6, c24, c7, c38, c27, c34, c26, c11, c10, c12, c13, c22, c23,
         c14, c15, c16, c17, c18, c19, c20, c21, c2, c41, c42, c44, c43, c31
   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 "4uty0m1dzyu2s" was executed 13 times and had
      an average elapsed time of 40 seconds.
   Rationale
      At least 4 distinct execution plans were utilized for this SQL statement
      during the analysis period.
   Rationale
      I/O and Cluster wait for TABLE "ABSDATAWAREHOUSE.FACT_DELIVERIES" with
      object ID 141550 consumed 82% of the database time spent on this SQL
      statement.
   Rationale
      Full scan of TABLE "ABSDATAWAREHOUSE.FACT_DELIVERIES" with object ID
      141550 consumed 42% of the database time spent on this SQL statement.
   Rationale
      Top level calls to execute the PL/SQL statement with SQL_ID
      "4xm1ruvkx3awx" are responsible for 100% of the database time spent on
      the SELECT statement with SQL_ID "4uty0m1dzyu2s".
      Related Object
         SQL statement with SQL_ID 4xm1ruvkx3awx.
         DECLARE job BINARY_INTEGER := :job;  next_date TIMESTAMP WITH TIME
         ZONE := :mydate;  broken BOOLEAN := FALSE;  job_name VARCHAR2(128) :=
         :job_name;  job_subname VARCHAR2(128) := :job_subname;  job_owner
         VARCHAR2(128) := :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(128)
         := :credown;  credential_name  VARCHAR2(128) := :crednam;
         destination_owner VARCHAR2(128) := :destown;  destination_name
         VARCHAR2(128) := :destnam;  job_dest_id varchar2(14) := :jdestid;
         log_id number := :log_id;  BEGIN  DECLARE
         ename             VARCHAR2(30);
         exec_task         BOOLEAN;
         BEGIN
         -- check if tuning pack is enabled
         exec_task := prvt_advisor.is_pack_enabled(
         dbms_management_packs.TUNING_PACK);
         -- check if we are in a pdb,
         -- since auto sqltune is not run in a pdb
         IF (exec_task AND -- tuning pack enabled
         sys_context('userenv', 'con_id') <> 0 AND -- not in non-cdb
         sys_context('userenv', 'con_id') <> 1  ) THEN -- not in root
         exec_task := FALSE;
         END IF;
         -- execute auto sql tuning task
         IF (exec_task) THEN
         ename := dbms_sqltune.execute_tuning_task(
         'SYS_AUTO_SQL_TUNING_TASK');
         END IF;
         -- check whether we are in non-CDB or a PDB
         -- auto SPM evolve only runs in a non-CDB or a PDB, not the root.
         IF (sys_context('userenv', 'con_id') = 0 OR
         sys_context('userenv', 'con_id') > 2) THEN
         exec_task := TRUE;
         ELSE
         exec_task := FALSE;
         END IF;
         -- execute auto SPM evolve task
         IF (exec_task) THEN
         ename := dbms_spm.execute_evolve_task('SYS_AUTO_SPM_EVOLVE_TASK');
         END IF;
         END;  :mydate := next_date; IF broken THEN :b := 1; ELSE :b := 0; END
         IF; END;

   Recommendation 2: SQL Tuning
   Estimated benefit is .06 active sessions, 4.24% of total activity.
   ------------------------------------------------------------------
   Action
      Run SQL Tuning Advisor on the SELECT statement with SQL_ID
      "422ydn0svdm6t".
      Related Object
         SQL statement with SQL_ID 422ydn0svdm6t.
         WITH
         OBISUBWITH0 AS (select D1.c1 as c1
         from
         (select D1.c1 as c1,
         Case when D1.c2 is not null then Rank() OVER ( ORDER BY D1.c2) end as
         c2
         from
         (select distinct D1.c2 as c1,
         D1.c2 as c2,
         D1.c2 as c3
         from
         (select sum(T80629.NUMBER3) as c1,
         T5959.CUSTOMER_BUSINESS_UNIT_NAME as c2
         from
         DIM_V_CUSTOMER T5959,
         FACT_V_REALTIME_CUSTOMER_DATA T80629
         where  ( T5959.DIMENSION_KEY = T80629.CUSTOMER and T80629.DATASET =
         12 and T5959.CUSTOMER_BUSINESS_UNIT_CODE >= '3000' )
         group by T5959.CUSTOMER_BUSINESS_UNIT_NAME
         having 0 < nvl(sum(T80629.NUMBER3) , 0)
         ) D1
         ) D1
         ) D1
         where  ( D1.c2 <= 1 ) ),
         OBISUBWITH1 AS (select D1.c1 as c1
         from
         (select D1.c1 as c1,
         Case when D1.c2 is not null then Rank() OVER ( ORDER BY D1.c2) end as
         c2
         from
         (select distinct D1.c2 as c1,
         D1.c2 as c2,
         D1.c2 as c3
         from
         (select sum(T80629.NUMBER3) as c1,
         T80629.DATE1 as c2
         from
         DIM_V_CUSTOMER T5959,
         FACT_V_REALTIME_CUSTOMER_DATA T80629
         where  ( T5959.DIMENSION_KEY = T80629.CUSTOMER and T80629.DATASET =
         12 and T5959.CUSTOMER_BUSINESS_UNIT_CODE >= '3000' )
         group by T80629.DATE1
         having 0 < nvl(sum(T80629.NUMBER3) , 0)
         ) D1
         ) D1
         ) D1
         where  ( D1.c2 <= 1 ) ),
         SAWITH0 AS (select sum(T80629.NUMBER3) as c1,
         sum(case  when not case  when T80629.TEXT8 = 'Completed' then
         'Completed' when T80629.TEXT8 in ('In Progress', 'New') then 'Packing
         notes' else 'Not generated' end  = 'Completed' then T80629.NUMBER3
         end ) as c2,
         case  when T80629.TEXT8 = 'Completed' then 'Completed' when
         T80629.TEXT8 in ('In Progress', 'New') then 'Packing notes' else 'To
         be generated' end  as c3,
         T80629.TEXT9 as c4,
         T80629.TEXT6 as c5,
         T80629.TEXT5 as c6,
         T80629.TEXT2 as c7,
         T80629.TEXT10 as c8,
         T80629.NUMBER1 as c9,
         T80629.DATE1 as c10,
         T5959.CUSTOMER_BUSINESS_UNIT_CODE as c11,
         T5959.CUSTOMER_BUSINESS_UNIT_NAME as c12,
         T5959.CUSTOMER_NUMBER as c13
         from
         DIM_V_CUSTOMER T5959,
         FACT_V_REALTIME_CUSTOMER_DATA T80629
         where  ( T5959.DIMENSION_KEY = T80629.CUSTOMER and T80629.DATASET =
         12 and T5959.CUSTOMER_BUSINESS_UNIT_CODE >= '3000' )
         group by T5959.CUSTOMER_NUMBER, T5959.CUSTOMER_BUSINESS_UNIT_CODE,
         T5959.CUSTOMER_BUSINESS_UNIT_NAME, T80629.TEXT2, T80629.TEXT5,
         T80629.TEXT6, T80629.TEXT9, T80629.TEXT10, T80629.DATE1,
         T80629.NUMBER1, case  when T80629.TEXT8 = 'Completed' then
         'Completed' when T80629.TEXT8 in ('In Progress', 'New') then 'Packing
         notes' else 'To be generated' end ),
         SAWITH1 AS (select distinct 0 as c1,
         D1.c10 as c2,
         D1.c9 as c3,
         D1.c8 as c4,
         D1.c7 as c5,
         D1.c6 as c6,
         D1.c5 as c7,
         D1.c4 as c8,
         D1.c11 as c9,
         D1.c12 as c10,
         D1.c13 as c11,
         D1.c3 as c12,
         NULL as c13,
         nvl(D1.c1 , 0) as c14,
         nvl(D1.c2 , 0) as c15,
         cast(NULL as  DOUBLE PRECISION  ) as c16,
         cast(NULL as  DOUBLE PRECISION  ) as c17,
         cast(NULL as  DOUBLE PRECISION  ) as c19,
         cast(NULL as  DOUBLE PRECISION  ) as c20
         from
         SAWITH0 D1
         where  ( 0 < nvl(D1.c1 , 0) ) ),
         SAWITH2 AS (select sum(T80629.NUMBER3) as c1,
         case  when T80629.TEXT8 = 'Completed' then 'Completed' when
         T80629.TEXT8 in ('In Progress', 'New') then 'Packing notes' else 'To
         be generated' end  as c2,
         T80629.TEXT9 as c3,
         T80629.TEXT6 as c4,
         T80629.TEXT5 as c5,
         T80629.TEXT2 as c6,
         T80629.TEXT10 as c7,
         T80629.NUMBER1 as c8,
         T80629.DATE1 as c9,
         T5959.CUSTOMER_BUSINESS_UNIT_CODE as c10,
         T5959.CUSTOMER_BUSINESS_UNIT_NAME as c11,
         T5959.CUSTOMER_NUMBER as c12
         from
         DIM_V_CUSTOMER T5959,
         FACT_V_REALTIME_CUSTOMER_DATA T80629
         where  ( T5959.DIMENSION_KEY = T80629.CUSTOMER and T80629.DATASET =
         12 and T5959.CUSTOMER_BUSINESS_UNIT_CODE >= '3000' )
         group by T5959.CUSTOMER_NUMBER, T5959.CUSTOMER_BUSINESS_UNIT_CODE,
         T5959.CUSTOMER_BUSINESS_UNIT_NAME, T80629.TEXT2, T80629.TEXT5,
         T80629.TEXT6, T80629.TEXT9, T80629.TEXT10, T80629.DATE1,
         T80629.NUMBER1, case  when T80629.TEXT8 = 'Completed' then
         'Completed' when T80629.TEXT8 in ('In Progress', 'New') then 'Packing
         notes' else 'To be generated' end ),
         SAWITH3 AS (select sum(T80629.NUMBER3) as c1,
         sum(case  when not case  when T80629.TEXT8 = 'Completed' then
         'Completed' when T80629.TEXT8 in ('In Progress', 'New') then 'Packing
         notes' else 'Not generated' end  = 'Completed' then T80629.NUMBER3
         end ) as c2,
         case  when T80629.TEXT8 = 'Completed' then 'Completed' when
         T80629.TEXT8 in ('In Progress', 'New') then 'Packing notes' else 'To
         be generated' end  as c3,
         T80629.TEXT9 as c4,
         T80629.TEXT6 as c5,
         T80629.TEXT5 as c6,
         T80629.TEXT2 as c7,
         T80629.TEXT10 as c8,
         T80629.NUMBER1 as c9,
         T80629.DATE1 as c10,
         T5959.CUSTOMER_BUSINESS_UNIT_CODE as c11,
         T5959.CUSTOMER_BUSINESS_UNIT_NAME as c12,
         T5959.CUSTOMER_NUMBER as c13
         from
         DIM_V_CUSTOMER T5959,
         FACT_V_REALTIME_CUSTOMER_DATA T80629
         where  ( T5959.DIMENSION_KEY = T80629.CUSTOMER and T80629.DATASET =
         12 and T5959.CUSTOMER_BUSINESS_UNIT_CODE >= '3000' and T80629.DATE1
         in (select distinct D1.c1 as c1
         from
         OBISUBWITH1 D1) )
         group by T5959.CUSTOMER_NUMBER, T5959.CUSTOMER_BUSINESS_UNIT_CODE,
         T5959.CUSTOMER_BUSINESS_UNIT_NAME, T80629.TEXT2, T80629.TEXT5,
         T80629.TEXT6, T80629.TEXT9, T80629.TEXT10, T80629.DATE1,
         T80629.NUMBER1, case  when T80629.TEXT8 = 'Completed' then
         'Completed' when T80629.TEXT8 in ('In Progress', 'New') then 'Packing
         notes' else 'To be generated' end ),
         SAWITH4 AS (select distinct 2 as c1,
         D1.c10 as c2,
         D1.c9 as c3,
         D1.c8 as c4,
         D1.c7 as c5,
         D1.c6 as c6,
         D1.c5 as c7,
         D1.c4 as c8,
         D1.c11 as c9,
         D1.c12 as c10,
         D1.c13 as c11,
         D1.c3 as c12,
         NULL as c13,
         nvl(D1.c1 , 0) as c14,
         nvl(D1.c2 , 0) as c15,
         cast(NULL as  DOUBLE PRECISION  ) as c17,
         cast(NULL as  DOUBLE PRECISION  ) as c19
         from
         SAWITH3 D1
         where  ( 0 < nvl(D1.c1 , 0) ) ),
         SAWITH5 AS (select sum(T80629.NUMBER3) as c1,
         sum(case  when not case  when T80629.TEXT8 = 'Completed' then
         'Completed' when T80629.TEXT8 in ('In Progress', 'New') then 'Packing
         notes' else 'Not generated' end  = 'Completed' then T80629.NUMBER3
         end ) as c2,
         case  when T80629.TEXT8 = 'Completed' then 'Completed' when
         T80629.TEXT8 in ('In Progress', 'New') then 'Packing notes' else 'To
         be generated' end  as c3,
         T80629.TEXT9 as c4,
         T80629.TEXT6 as c5,
         T80629.TEXT5 as c6,
         T80629.TEXT2 as c7,
         T80629.TEXT10 as c8,
         T80629.NUMBER1 as c9,
         T80629.DATE1 as c10,
         T5959.CUSTOMER_BUSINESS_UNIT_CODE as c11,
         T5959.CUSTOMER_BUSINESS_UNIT_NAME as c12,
         T5959.CUSTOMER_NUMBER as c13
         from
         DIM_V_CUSTOMER T5959,
         FACT_V_REALTIME_CUSTOMER_DATA T80629
         where  ( T5959.DIMENSION_KEY = T80629.CUSTOMER and T80629.DATASET =
         12 and T5959.CUSTOMER_BUSINESS_UNIT_CODE >= '3000' and
         T5959.CUSTOMER_BUSINESS_UNIT_NAME in (select distinct D1.c1 as c1
         from
         OBISUBWITH0 D1) )
         group by T5959.CUSTOMER_NUMBER, T5959.CUSTOMER_BUSINESS_UNIT_CODE,
         T5959.CUSTOMER_BUSINESS_UNIT_NAME, T80629.TEXT2, T80629.TEXT5,
         T80629.TEXT6, T80629.TEXT9, T80629.TEXT10, T80629.DATE1,
         T80629.NUMBER1, case  when T80629.TEXT8 = 'Completed' then
         'Completed' when T80629.TEXT8 in ('In Progress', 'New') then 'Packing
         notes' else 'To be generated' end ),
         SAWITH6 AS (select distinct 3 as c1,
         D1.c10 as c2,
         D1.c9 as c3,
         D1.c8 as c4,
         D1.c7 as c5,
         D1.c6 as c6,
         D1.c5 as c7,
         D1.c4 as c8,
         D1.c11 as c9,
         D1.c12 as c10,
         D1.c13 as c11,
         D1.c3 as c12,
         NULL as c13,
         nvl(D1.c1 , 0) as c14,
         nvl(D1.c2 , 0) as c15,
         cast(NULL as  DOUBLE PRECISION  ) as c16,
         cast(NULL as  DOUBLE PRECISION  ) as c18,
         cast(NULL as  DOUBLE PRECISION  ) as c20,
         cast(NULL as  DOUBLE PRECISION  ) as c21
         from
         SAWITH5 D1
         where  ( 0 < nvl(D1.c1 , 0) ) ),
         SAWITH7 AS ((select D1.c1 as c1,
         D1.c2 as c2,
         D1.c3 as c3,
         D1.c4 as c4,
         D1.c5 as c5,
         D1.c6 as c6,
         D1.c7 as c7,
         D1.c8 as c8,
         D1.c9 as c9,
         D1.c10 as c10,
         D1.c11 as c11,
         D1.c12 as c12,
         D1.c13 as c13,
         D1.c14 as c14,
         D1.c15 as c15,
         D1.c16 as c16,
         D1.c17 as c17,
         sum(D1.c14) over (partition by D1.c10, D1.c2, D1.c4, D1.c8, D1.c12)
         as c18,
         D1.c19 as c19,
         D1.c20 as c20,
         sum(D1.c14) over (partition by D1.c10, D1.c4, D1.c8, D1.c12)  as c21
         from
         SAWITH1 D1
         union all
         select distinct 1 as c1,
         D1.c9 as c2,
         D1.c8 as c3,
         D1.c7 as c4,
         D1.c6 as c5,
         D1.c5 as c6,
         D1.c4 as c7,
         D1.c3 as c8,
         D1.c10 as c9,
         D1.c11 as c10,
         D1.c12 as c11,
         D1.c2 as c12,
         NULL as c13,
         cast(NULL as  DOUBLE PRECISION  ) as c14,
         cast(NULL as  DOUBLE PRECISION  ) as c15,
         cast(NULL as  DOUBLE PRECISION  ) as c16,
         cast(NULL as  DOUBLE PRECISION  ) as c17,
         cast(NULL as  DOUBLE PRECISION  ) as c18,
         cast(NULL as  DOUBLE PRECISION  ) as c19,
         cast(NULL as  DOUBLE PRECISION  ) as c20,
         cast(NULL as  DOUBLE PRECISION  ) as c21
         from
         SAWITH2 D1
         where  ( 0 < nvl(D1.c1 , 0) )
         union all
         select D1.c1 as c1,
         D1.c2 as c2,
         D1.c3 as c3,
         D1.c4 as c4,
         D1.c5 as c5,
         D1.c6 as c6,
         D1.c7 as c7,
         D1.c8 as c8,
         D1.c9 as c9,
         D1.c10 as c10,
         D1.c11 as c11,
         D1.c12 as c12,
         D1.c13 as c13,
         D1.c14 as c14,
         D1.c15 as c15,
         sum(D1.c14) over (partition by D1.c10, D1.c2, D1.c3, D1.c4, D1.c8,
         D1.c12)  as c16,
         D1.c17 as c17,
         sum(D1.c14) over (partition by D1.c10, D1.c2, D1.c4, D1.c8, D1.c12)
         as c18,
         D1.c19 as c19,
         sum(D1.c14) over (partition by D1.c10, D1.c3, D1.c4, D1.c8, D1.c12)
         as c20,
         sum(D1.c14) over (partition by D1.c10, D1.c4, D1.c8, D1.c12)  as c21
         from
         SAWITH4 D1
         union all
         select D1.c1 as c1,
         D1.c2 as c2,
         D1.c3 as c3,
         D1.c4 as c4,
         D1.c5 as c5,
         D1.c6 as c6,
         D1.c7 as c7,
         D1.c8 as c8,
         D1.c9 as c9,
         D1.c10 as c10,
         D1.c11 as c11,
         D1.c12 as c12,
         D1.c13 as c13,
         D1.c14 as c14,
         D1.c15 as c15,
         D1.c16 as c16,
         sum(D1.c14) over (partition by D1.c10, D1.c9, D1.c2, D1.c4, D1.c8,
         D1.c12)  as c17,
         D1.c18 as c18,
         sum(D1.c14) over (partition by D1.c10, D1.c9, D1.c2, D1.c4, D1.c8)
         as c19,
         D1.c20 as c20,
         D1.c21 as c21
         from
         SAWITH6 D1))
         select D1.c1 as c1, D1.c2 as c2, D1.c3 as c3, D1.c4 as c4, D1.c5 as
         c5, D1.c6 as c6, D1.c7 as c7, D1.c8 as c8, D1.c9 as c9, D1.c10 as
         c10, D1.c11 as c11, D1.c12 as c12, D1.c13 as c13, D1.c14 as c14,
         D1.c15 as c15, D1.c16 as c16, D1.c17 as c17, D1.c18 as c18, D1.c19 as
         c19, D1.c20 as c20, D1.c21 as c21 from ( select D1.c1 as c1,
         D1.c2 as c2,
         D1.c3 as c3,
         D1.c4 as c4,
         D1.c5 as c5,
         D1.c6 as c6,
         D1.c7 as c7,
         D1.c8 as c8,
         D1.c9 as c9,
         D1.c10 as c10,
         D1.c11 as c11,
         D1.c12 as c12,
         D1.c13 as c13,
         D1.c14 as c14,
         D1.c15 as c15,
         D1.c16 as c16,
         D1.c17 as c17,
         D1.c18 as c18,
         D1.c19 as c19,
         D1.c20 as c20,
         D1.c21 as c21
         from
         SAWITH7 D1
         order by c1, c10, c8, c4, c2, c12 ) D1 where rownum <= 5000001
   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.

   Recommendation 3: SQL Tuning
   Estimated benefit is .06 active sessions, 4.04% of total activity.
   ------------------------------------------------------------------
   Action
      Investigate the UPSERT statement with SQL_ID "1ypc2gyv87hrt" for
      possible performance improvements. You can supplement the information
      given here with an ASH report for this SQL_ID.
      Related Object
         SQL statement with SQL_ID 1ypc2gyv87hrt.
         /* SQL Analyze(20,1) */ MERGE /*+ APPEND */ INTO "DEPARTMENT" USING
         (SELECT /*+ NO_MERGE */ "INGRP1". "DEPARTMENT_SOURCE_ID"
         "DEPARTMENT_SOURCE_ID$6", "INGRP1". "DEPARTMENT_CODE"
         "DEPARTMENT_CODE$6", "INGRP1". "DEPARTMENT_DESCRIPTION"
         "DEPARTMENT_DESCRIPTION$6", "INGRP1". "DEPARTMENT_IS_ACTIVE"
         "DEPARTMENT_IS_ACTIVE$6", "INGRP1". "DEPARTMENT_LEGACY_CODE"
         "DEPARTMENT_LEGACY_CODE$6", "INGRP1". "DEPARTMENT_CONTACT_PERSON"
         "DEPARTMENT_CONTACT_PERSON$6", "INGRP1". "DEPARTMENT_CONTACT_EMAIL"
         "DEPARTMENT_CONTACT_EMAIL$6", "INGRP1". "DEPARTMENT_CONTACT_PHONE"
         "DEPARTMENT_CONTACT_PHONE$6", "INGRP1". "DEPARTMENT_CONTACT_MOBILE"
         "DEPARTMENT_CONTACT_MOBILE$6", "INGRP1". "DEPARTMENT_CONTACT_FUNCT"
         "DEPARTMENT_CONTACT_FUNCT$6", "INGRP1".
         "DEPARTMENT_STANDARD_PACK_QTY" "DEPARTMENT_STANDARD_PACK_QTY$6",
         "INGRP1". "DEPARTMENT_BULKDEPARTMENT_YN"
         "DEPARTMENT_BULKDEPARTMENT_YN$6", "INGRP1".
         "DEPARTMENT_EXCL_FROM_BULK_YN" "DEPARTMENT_EXCL_FROM_BULK_YN$6",
         "INGRP1". "DEPARTMENT_EMAIL_DEL_NOTE" "DEPARTMENT_EMAIL_DEL_NOTE$6",
         "INGRP1". "DEPARTMENT_EMAIL_CONS_NOTE"
         "DEPARTMENT_EMAIL_CONS_NOTE$6", "INGRP2". "COST_CENTER_ID"
         "COST_CENTER_ID$10", "INGRP2". "COST_CENTER_CODE"
         "COST_CENTER_CODE$11", "INGRP2". "COST_CENTER_DESCRIPTION"
         "COST_CENTER_DESCRIPTION$11", "INGRP2". "COST_CENTER_CONTACT_PERSON"
         "COST_CENTER_CONTACT_PERSON$11", "INGRP2".
         "COST_CENTER_BENCHM_CAT_CODE" "COST_CENTER_BENCHM_CAT_CODE$11",
         "INGRP2". "COST_CENTER_BENCHM_CAT_DESC"
         "COST_CENTER_BENCHM_CAT_DESC$11", "INGRP2".
         "COST_CENTER_BUDGET_RELEVANT" "COST_CENTER_BUDGET_RELEVANT$11",
         "INGRP2". "COST_CENTER_PO_NUMBER" "COST_CENTER_PO_NUMBER$11",
         "INGRP2". "CUSTOMER_ID" "CUSTOMER_ID$14", "INGRP2". "CUSTOMER_NUMBER"
         "CUSTOMER_NUMBER$15", "INGRP2". "CUSTOMER_NAME" "CUSTOMER_NAME$15",
         "INGRP2". "TOTAL_ID" "TOTAL_ID$17", "INGRP2". "TOTAL_DESCRIPTION"
         "TOTAL_DESCRIPTION$18", "INGRP2". "COST_CENTER_SOURCE_ID"
         "COST_CENTER_SOURCE_ID$9", "INGRP2". "LOOKUP$$$_1_CUSTOMER_SOURCE_I"
         "LOOKUP$$$_1_CUSTOMER_SOURCE$9", "INGRP2".
         "LOOKUP$$$_1_TOTAL_SOURCE_ID" "LOOKUP$$$_1_TOTAL_SOURCE_ID$14" FROM
         (SELECT "DEDUP_INPUT_SUBQUERY2$10". "COST_CENTER_ID$11"
         "COST_CENTER_ID", "DEDUP_INPUT_SUBQUERY2$10".
         "COST_CENTER_SOURCE_ID$10" "COST_CENTER_SOURCE_ID",
         "DEDUP_INPUT_SUBQUERY2$10". "COST_CENTER_CODE$12" "COST_CENTER_CODE",
         "DEDUP_INPUT_SUBQUERY2$10". "COST_CENTER_DESCRIPTION$12"
         "COST_CENTER_DESCRIPTION", "DEDUP_INPUT_SUBQUERY2$10".
         "COST_CENTER_CONTACT_PERSON$12" "COST_CENTER_CONTACT_PERSON",
         "DEDUP_INPUT_SUBQUERY2$10". "COST_CENTER_BENCHM_CAT_CODE$12"
         "COST_CENTER_BENCHM_CAT_CODE", "DEDUP_INPUT_SUBQUERY2$10".
         "COST_CENTER_BENCHM_CAT_DESC$12" "COST_CENTER_BENCHM_CAT_DESC",
         "DEDUP_INPUT_SUBQUERY2$10". "COST_CENTER_BUDGET_RELEVANT$12"
         "COST_CENTER_BUDGET_RELEVANT", "DEDUP_INPUT_SUBQUERY2$10".
         "COST_CENTER_PO_NUMBER$12" "COST_CENTER_PO_NUMBER",
         "DEDUP_INPUT_SUBQUERY2$10". "LOOKUP$$$_1_CUSTOMER_SOURCE$10"
         "LOOKUP$$$_1_CUSTOMER_SOURCE_I", "DEDUP_INPUT_SUBQUERY2$10".
         "CUSTOMER_ID$15" "CUSTOMER_ID", "DEDUP_INPUT_SUBQUERY2$10".
         "CUSTOMER_NUMBER$16" "CUSTOMER_NUMBER", "DEDUP_INPUT_SUBQUERY2$10".
         "CUSTOMER_NAME$16" "CUSTOMER_NAME", "DEDUP_INPUT_SUBQUERY2$10".
         "TOTAL_ID$18" "TOTAL_ID", "DEDUP_INPUT_SUBQUERY2$10".
         "LOOKUP$$$_1_TOTAL_SOURCE_ID$15" "LOOKUP$$$_1_TOTAL_SOURCE_ID",
         "DEDUP_INPUT_SUBQUERY2$10". "TOTAL_DESCRIPTION$19"
         "TOTAL_DESCRIPTION" FROM (SELECT DISTINCT "DEPARTMENT".
         "COST_CENTER_ID" "COST_CENTER_ID$11", "DEPARTMENT".
         "COST_CENTER_SOURCE_ID" "COST_CENTER_SOURCE_ID$10", "DEPARTMENT".
         "COST_CENTER_CODE" "COST_CENTER_CODE$12", "DEPARTMENT".
         "COST_CENTER_DESCRIPTION" "COST_CENTER_DESCRIPTION$12", "DEPARTMENT".
         "COST_CENTER_CONTACT_PERSON" "COST_CENTER_CONTACT_PERSON$12",
         "DEPARTMENT". "COST_CENTER_BENCHM_CAT_CODE"
         "COST_CENTER_BENCHM_CAT_CODE$12", "DEPARTMENT".
         "COST_CENTER_BENCHM_CAT_DESC" "COST_CENTER_BENCHM_CAT_DESC$12",
         "DEPARTMENT". "COST_CENTER_BUDGET_RELEVANT"
         "COST_CENTER_BUDGET_RELEVANT$12", "DEPARTMENT".
         "COST_CENTER_PO_NUMBER" "COST_CENTER_PO_NUMBER$12", "DEPARTMENT".
         "CUSTOMER_SOURCE_ID" "LOOKUP$$$_1_CUSTOMER_SOURCE$10", "DEPARTMENT".
         "CUSTOMER_ID" "CUSTOMER_ID$15", "DEPARTMENT". "DIMENSION_KEY"
         "DIMENSION_KEY$10", "DEPARTMENT". "CUSTOMER_NUMBER"
         "CUSTOMER_NUMBER$16", "DEPARTMENT". "CUSTOMER_NAME"
         "CUSTOMER_NAME$16", "DEPARTMENT". "TOTAL_ID" "TOTAL_ID$18",
         "DEPARTMENT". "TOTAL_SOURCE_ID" "LOOKUP$$$_1_TOTAL_SOURCE_ID$15",
         "DEPARTMENT". "TOTAL_DESCRIPTION" "TOTAL_DESCRIPTION$19" FROM
         "DEPARTMENT" "DEPARTMENT" WHERE ( "DEPARTMENT". "DIMENSION_KEY" =
         "DEPARTMENT". "COST_CENTER_ID") AND ( "DEPARTMENT". "COST_CENTER_ID"
         IS NOT NULL)) "DEDUP_INPUT_SUBQUERY2$10") "INGRP2" RIGHT OUTER JOIN
         (SELECT /*+ NO_MERGE */ NULL "DEPARTMENT_ID",
         "LOOKUP_INPUT_SUBQUERY$12". "DEPARTMENT_SOURCE_ID$7"
         "DEPARTMENT_SOURCE_ID", "LOOKUP_INPUT_SUBQUERY$12".
         "DEPARTMENT_CODE$7" "DEPARTMENT_CODE", "LOOKUP_INPUT_SUBQUERY$12".
         "DEPARTMENT_DESCRIPTION$7" "DEPARTMENT_DESCRIPTION",
         "LOOKUP_INPUT_SUBQUERY$12". "DEPARTMENT_IS_ACTIVE$7"
         "DEPARTMENT_IS_ACTIVE", "LOOKUP_INPUT_SUBQUERY$12".
         "DEPARTMENT_LEGACY_CODE$7" "DEPARTMENT_LEGACY_CODE",
         "LOOKUP_INPUT_SUBQUERY$12". "DEPARTMENT_CONTACT_PERSON$7"
         "DEPARTMENT_CONTACT_PERSON", "LOOKUP_INPUT_SUBQUERY$12".
         "DEPARTMENT_CONTACT_EMAIL$7" "DEPARTMENT_CONTACT_EMAIL",
         "LOOKUP_INPUT_SUBQUERY$12". "DEPARTMENT_CONTACT_PHONE$7"
         "DEPARTMENT_CONTACT_PHONE", "LOOKUP_INPUT_SUBQUERY$12".
         "DEPARTMENT_CONTACT_MOBILE$7" "DEPARTMENT_CONTACT_MOBILE",
         "LOOKUP_INPUT_SUBQUERY$12". "DEPARTMENT_CONTACT_FUNCT$7"
         "DEPARTMENT_CONTACT_FUNCT", "LOOKUP_INPUT_SUBQUERY$12".
         "DEPARTMENT_STANDARD_PACK_QTY$7" "DEPARTMENT_STANDARD_PACK_QTY",
         "LOOKUP_INPUT_SUBQUERY$12". "DEPARTMENT_BULKDEPARTMENT_YN$7"
         "DEPARTMENT_BULKDEPARTMENT_YN", "LOOKUP_INPUT_SUBQUERY$12".
         "DEPARTMENT_EXCL_FROM_BULK_YN$7" "DEPARTMENT_EXCL_FROM_BULK_YN",
         "LOOKUP_INPUT_SUBQUERY$12". "DEPARTMENT_EMAIL_DEL_NOTE$7"
         "DEPARTMENT_EMAIL_DEL_NOTE", "LOOKUP_INPUT_SUBQUERY$12".
         "DEPARTMENT_EMAIL_CONS_NOTE$7" "DEPARTMENT_EMAIL_CONS_NOTE",
         "LOOKUP_INPUT_SUBQUERY$12". "LOOKUP$$$_1_COST_CENTER_S$5"
         "LOOKUP$$$_1_COST_CENTER_SOU" FROM (SELECT /*+ NO_MERGE */
         "DEDUP_SRC_2$2". "DEPARTMENT_ID$7" "DEPARTMENT_ID$6",
         "DEDUP_SRC_2$2". "DEPARTMENT_SOURCE_ID$8" "DEPARTMENT_SOURCE_ID$7",
         "DEDUP_SRC_2$2". "DEPARTMENT_CODE$8" "DEPARTMENT_CODE$7",
         "DEDUP_SRC_2$2". "DEPARTMENT_DESCRIPTION$8"
         "DEPARTMENT_DESCRIPTION$7", "DEDUP_SRC_2$2". "DEPARTMENT_IS_ACTIVE$8"
         "DEPARTMENT_IS_ACTIVE$7", "DEDUP_SRC_2$2". "DEPARTMENT_LEGACY_CODE$8"
         "DEPARTMENT_LEGACY_CODE$7", "DEDUP_SRC_2$2".
         "DEPARTMENT_CONTACT_PERSON$8" "DEPARTMENT_CONTACT_PERSON$7",
         "DEDUP_SRC_2$2". "DEPARTMENT_CONTACT_EMAIL$8"
         "DEPARTMENT_CONTACT_EMAIL$7", "DEDUP_SRC_2$2".
         "DEPARTMENT_CONTACT_PHONE$8" "DEPARTMENT_CONTACT_PHONE$7",
         "DEDUP_SRC_2$2". "DEPARTMENT_CONTACT_MOBILE$8"
         "DEPARTMENT_CONTACT_MOBILE$7", "DEDUP_SRC_2$2".
         "DEPARTMENT_CONTACT_FUNCT$8" "DEPARTMENT_CONTACT_FUNCT$7",
         "DEDUP_SRC_2$2". "DEPARTMENT_STANDARD_PACK_QTY$8"
         "DEPARTMENT_STANDARD_PACK_QTY$7", "DEDUP_SRC_2$2".
         "DEPARTMENT_BULKDEPARTMENT_YN$8" "DEPARTMENT_BULKDEPARTMENT_YN$7",
         "DEDUP_SRC_2$2". "DEPARTMENT_EXCL_FROM_BULK_YN$8"
         "DEPARTMENT_EXCL_FROM_BULK_YN$7", "DEDUP_SRC_2$2".
         "DEPARTMENT_EMAIL_DEL_NOTE$8" "DEPARTMENT_EMAIL_DEL_NOTE$7",
         "DEDUP_SRC_2$2". "DEPARTMENT_EMAIL_CONS_NOTE$8"
         "DEPARTMENT_EMAIL_CONS_NOTE$7", "DEDUP_SRC_2$2".
         "LOOKUP$$$_1_COST_CENTER_S$6" "LOOKUP$$$_1_COST_CENTER_S$5" FROM
         (SELECT /*+ NO_MERGE */ NULL "DEPARTMENT_ID$7", "STDIM_DEPARTMENT".
         "DEPARTMENT_ID" "DEPARTMENT_SOURCE_ID$8", MIN( "STDIM_DEPARTMENT".
         "DEPARTMENT_CODE") KEEP(DENSE_RANK FIRST ORDER BY NULL)
         "DEPARTMENT_CODE$8", MIN( "STDIM_DEPARTMENT". "DEPARTMENT")
         KEEP(DENSE_RANK FIRST ORDER BY NULL) "DEPARTMENT_DESCRIPTION$8", MIN(
         "STDIM_DEPARTMENT". "IS_ACTIVE") KEEP(DENSE_RANK FIRST ORDER BY NULL)
         "DEPARTMENT_IS_ACTIVE$8", MIN( "STDIM_DEPARTMENT". "LEGACY_CODE")
         KEEP(DENSE_RANK FIRST ORDER BY NULL) "DEPARTMENT_LEGACY_CODE$8", MIN(
         "STDIM_DEPARTMENT". "CONTACT_PERSON") KEEP(DENSE_RANK FIRST ORDER BY
         NULL) "DEPARTMENT_CONTACT_PERSON$8", MIN( "STDIM_DEPARTMENT".
         "CONTACT_PERSON_EMAIL") KEEP(DENSE_RANK FIRST ORDER BY NULL)
         "DEPARTMENT_CONTACT_EMAIL$8", MIN( "STDIM_DEPARTMENT".
         "CONTACT_PERSON_PHONE") KEEP(DENSE_RANK FIRST ORDER BY NULL)
         "DEPARTMENT_CONTACT_PHONE$8", MIN( "STDIM_DEPARTMENT".
         "CONTACT_PERSON_MOBILE") KEEP(DENSE_RANK FIRST ORDER BY NULL)
         "DEPARTMENT_CONTACT_MOBILE$8", MIN( "STDIM_DEPARTMENT".
         "CONTACT_PERSON_FUNCTION") KEEP(DENSE_RANK FIRST ORDER BY NULL)
         "DEPARTMENT_CONTACT_FUNCT$8", MIN( "STDIM_DEPARTMENT".
         "STANDARD_PACKING_QTY") KEEP(DENSE_RANK FIRST ORDER BY NULL)
         "DEPARTMENT_STANDARD_PACK_QTY$8", MIN( "STDIM_DEPARTMENT".
         "BULKDEPARTMENT_YN") KEEP(DENSE_RANK FIRST ORDER BY NULL)
         "DEPARTMENT_BULKDEPARTMENT_YN$8", MIN( "STDIM_DEPARTMENT".
         "EXCLUDE_FROM_BULK_DELIVERY_YN") KEEP(DENSE_RANK FIRST ORDER BY NULL)
         "DEPARTMENT_EXCL_FROM_BULK_YN$8", MIN( "STDIM_DEPARTMENT".
         "EMAIL_DELIVERY_NOTE_YN") KEEP(DENSE_RANK FIRST ORDER BY NULL)
         "DEPARTMENT_EMAIL_DEL_NOTE$8", MIN( "STDIM_DEPARTMENT".
         "EMAIL_CONSIGNMENT_NOTE_YN") KEEP(DENSE_RANK FIRST ORDER BY NULL)
         "DEPARTMENT_EMAIL_CONS_NOTE$8", MIN( "STDIM_DEPARTMENT".
         "COST_CENTER_ID") KEEP(DENSE_RANK FIRST ORDER BY NULL)
         "LOOKUP$$$_1_COST_CENTER_S$6" FROM "ABSDWHSTAGING".
         "V_STDIM_DEPARTMENT"@ "ABSDWHSTAGING_LOCATION" "STDIM_DEPARTMENT"
         GROUP BY "STDIM_DEPARTMENT". "DEPARTMENT_ID", NULL, NULL, NULL, NULL
         ) "DEDUP_SRC_2$2") "LOOKUP_INPUT_SUBQUERY$12" WHERE (NOT (
         "LOOKUP_INPUT_SUBQUERY$12". "DEPARTMENT_SOURCE_ID$7" IS NULL)))
         "INGRP1" ON (( "INGRP2". "COST_CENTER_SOURCE_ID" = "INGRP1".
         "LOOKUP$$$_1_COST_CENTER_SOU"))) MERGE_SUBQUERY$3 ON ( "DEPARTMENT".
         "DEPARTMENT_SOURCE_ID" = "MERGE_SUBQUERY$3".
         "DEPARTMENT_SOURCE_ID$6") WHEN MATCHED THEN UPDATE SET
         "DEPARTMENT_CODE" = "MERGE_SUBQUERY$3". "DEPARTMENT_CODE$6",
         "DEPARTMENT_DESCRIPTION" = "MERGE_SUBQUERY$3".
         "DEPARTMENT_DESCRIPTION$6", "DEPARTMENT_IS_ACTIVE" =
         "MERGE_SUBQUERY$3". "DEPARTMENT_IS_ACTIVE$6",
         "DEPARTMENT_LEGACY_CODE" = "MERGE_SUBQUERY$3".
         "DEPARTMENT_LEGACY_CODE$6", "DEPARTMENT_CONTACT_PERSON" =
         "MERGE_SUBQUERY$3". "DEPARTMENT_CONTACT_PERSON$6",
         "DEPARTMENT_CONTACT_PERS_EMAIL" = "MERGE_SUBQUERY$3".
         "DEPARTMENT_CONTACT_EMAIL$6", "DEPARTMENT_CONTACT_PERS_PHONE" =
         "MERGE_SUBQUERY$3". "DEPARTMENT_CONTACT_PHONE$6",
         "DEPARTMENT_CONTACT_PERS_MOBILE"= "MERGE_SUBQUERY$3".
         "DEPARTMENT_CONTACT_MOBILE$6", "DEPARTMENT_CONTACT_PERS_FUNCT" =
         "MERGE_SUBQUERY$3". "DEPARTMENT_CONTACT_FUNCT$6",
         "DEPARTMENT_STANDARD_PACK_QTY" = "MERGE_SUBQUERY$3".
         "DEPARTMENT_STANDARD_PACK_QTY$6", "DEPARTMENT_BULKDEPARTMENT_YN" =
         "MERGE_SUBQUERY$3". "DEPARTMENT_BULKDEPARTMENT_YN$6",
         "DEPARTMENT_EXCL_FROM_BULK_YN" = "MERGE_SUBQUERY$3".
         "DEPARTMENT_EXCL_FROM_BULK_YN$6", "DEPARTMENT_EMAIL_DEL_NOTE" =
         "MERGE_SUBQUERY$3". "DEPARTMENT_EMAIL_DEL_NOTE$6",
         "DEPARTMENT_EMAIL_CONS_NOTE" = "MERGE_SUBQUERY$3".
         "DEPARTMENT_EMAIL_CONS_NOTE$6", "COST_CENTER_ID" =
         "MERGE_SUBQUERY$3". "COST_CENTER_ID$10", "COST_CENTER_CODE" =
         "MERGE_SUBQUERY$3". "COST_CENTER_CODE$11", "COST_CENTER_DESCRIPTION"
         = "MERGE_SUBQUERY$3". "COST_CENTER_DESCRIPTION$11",
         "COST_CENTER_CONTACT_PERSON" = "MERGE_SUBQUERY$3".
         "COST_CENTER_CONTACT_PERSON$11", "COST_CENTER_BENCHM_CAT_CODE" =
         "MERGE_SUBQUERY$3". "COST_CENTER_BENCHM_CAT_CODE$11",
         "COST_CENTER_BENCHM_CAT_DESC" = "MERGE_SUBQUERY$3".
         "COST_CENTER_BENCHM_CAT_DESC$11", "COST_CENTER_BUDGET_RELEVANT" =
         "MERGE_SUBQUERY$3". "COST_CENTER_BUDGET_RELEVANT$11",
         "COST_CENTER_PO_NUMBER" = "MERGE_SUBQUERY$3".
         "COST_CENTER_PO_NUMBER$11", "CUSTOMER_ID" = "MERGE_SUBQUERY$3".
         "CUSTOMER_ID$14", "CUSTOMER_NUMBER" = "MERGE_SUBQUERY$3".
         "CUSTOMER_NUMBER$15", "CUSTOMER_NAME" = "MERGE_SUBQUERY$3".
         "CUSTOMER_NAME$15", "TOTAL_ID" = "MERGE_SUBQUERY$3". "TOTAL_ID$17",
         "TOTAL_DESCRIPTION" = "MERGE_SUBQUERY$3". "TOTAL_DESCRIPTION$18",
         "COST_CENTER_SOURCE_ID" = "MERGE_SUBQUERY$3".
         "COST_CENTER_SOURCE_ID$9", "CUSTOMER_SOURCE_ID" = "MERGE_SUBQUERY$3".
         "LOOKUP$$$_1_CUSTOMER_SOURCE$9", "TOTAL_SOURCE_ID" =
         "MERGE_SUBQUERY$3". "LOOKUP$$$_1_TOTAL_SOURCE_ID$14" WHEN NOT MATCHED
         THEN INSERT ( "DEPARTMENT". "DEPARTMENT_ID", "DEPARTMENT".
         "DEPARTMENT_SOURCE_ID", "DEPARTMENT". "DEPARTMENT_CODE",
         "DEPARTMENT". "DEPARTMENT_DESCRIPTION", "DEPARTMENT".
         "DEPARTMENT_IS_ACTIVE", "DEPARTMENT". "DEPARTMENT_LEGACY_CODE",
         "DEPARTMENT". "DEPARTMENT_CONTACT_PERSON", "DEPARTMENT".
         "DEPARTMENT_CONTACT_PERS_EMAIL", "DEPARTMENT".
         "DEPARTMENT_CONTACT_PERS_PHONE", "DEPARTMENT".
         "DEPARTMENT_CONTACT_PERS_MOBILE", "DEPARTMENT".
         "DEPARTMENT_CONTACT_PERS_FUNCT", "DEPARTMENT".
         "DEPARTMENT_STANDARD_PACK_QTY", "DEPARTMENT".
         "DEPARTMENT_BULKDEPARTMENT_YN", "DEPARTMENT".
         "DEPARTMENT_EXCL_FROM_BULK_YN", "DEPARTMENT".
         "DEPARTMENT_EMAIL_DEL_NOTE", "DEPARTMENT".
         "DEPARTMENT_EMAIL_CONS_NOTE", "DEPARTMENT". "COST_CENTER_ID",
         "DEPARTMENT". "COST_CENTER_SOURCE_ID", "DEPARTMENT".
         "COST_CENTER_CODE", "DEPARTMENT". "COST_CENTER_DESCRIPTION",
         "DEPARTMENT". "COST_CENTER_CONTACT_PERSON", "DEPARTMENT".
         "COST_CENTER_BENCHM_CAT_CODE", "DEPARTMENT".
         "COST_CENTER_BENCHM_CAT_DESC", "DEPARTMENT".
         "COST_CENTER_BUDGET_RELEVANT", "DEPARTMENT". "COST_CENTER_PO_NUMBER",
         "DEPARTMENT". "CUSTOMER_ID", "DEPARTMENT". "CUSTOMER_NUMBER",
         "DEPARTMENT". "CUSTOMER_NAME", "DEPARTMENT". "TOTAL_ID",
         "DEPARTMENT". "TOTAL_DESCRIPTION", "DEPARTMENT".
         "CUSTOMER_SOURCE_ID", "DEPARTMENT". "TOTAL_SOURCE_ID", "DEPARTMENT".
         "DIMENSION_KEY") VALUES (-1 * ( "DEPARTMENT_SEQ".NEXTVAL) ,
         "MERGE_SUBQUERY$3". "DEPARTMENT_SOURCE_ID$6", "MERGE_SUBQUERY$3".
         "DEPARTMENT_CODE$6", "MERGE_SUBQUERY$3". "DEPARTMENT_DESCRIPTION$6",
         "MERGE_SUBQUERY$3". "DEPARTMENT_IS_ACTIVE$6", "MERGE_SUBQUERY$3".
         "DEPARTMENT_LEGACY_CODE$6", "MERGE_SUBQUERY$3".
         "DEPARTMENT_CONTACT_PERSON$6", "MERGE_SUBQUERY$3".
         "DEPARTMENT_CONTACT_EMAIL$6", "MERGE_SUBQUERY$3".
         "DEPARTMENT_CONTACT_PHONE$6", "MERGE_SUBQUERY$3".
         "DEPARTMENT_CONTACT_MOBILE$6", "MERGE_SUBQUERY$3".
         "DEPARTMENT_CONTACT_FUNCT$6", "MERGE_SUBQUERY$3".
         "DEPARTMENT_STANDARD_PACK_QTY$6", "MERGE_SUBQUERY$3".
         "DEPARTMENT_BULKDEPARTMENT_YN$6", "MERGE_SUBQUERY$3".
         "DEPARTMENT_EXCL_FROM_BULK_YN$6", "MERGE_SUBQUERY$3".
         "DEPARTMENT_EMAIL_DEL_NOTE$6", "MERGE_SUBQUERY$3".
         "DEPARTMENT_EMAIL_CONS_NOTE$6", "MERGE_SUBQUERY$3".
         "COST_CENTER_ID$10", "MERGE_SUBQUERY$3". "COST_CENTER_SOURCE_ID$9",
         "MERGE_SUBQUERY$3". "COST_CENTER_CODE$11", "MERGE_SUBQUERY$3".
         "COST_CENTER_DESCRIPTION$11", "MERGE_SUBQUERY$3".
         "COST_CENTER_CONTACT_PERSON$11", "MERGE_SUBQUERY$3".
         "COST_CENTER_BENCHM_CAT_CODE$11", "MERGE_SUBQUERY$3".
         "COST_CENTER_BENCHM_CAT_DESC$11", "MERGE_SUBQUERY$3".
         "COST_CENTER_BUDGET_RELEVANT$11", "MERGE_SUBQUERY$3".
         "COST_CENTER_PO_NUMBER$11", "MERGE_SUBQUERY$3". "CUSTOMER_ID$14",
         "MERGE_SUBQUERY$3". "CUSTOMER_NUMBER$15", "MERGE_SUBQUERY$3".
         "CUSTOMER_NAME$15", "MERGE_SUBQUERY$3". "TOTAL_ID$17",
         "MERGE_SUBQUERY$3". "TOTAL_DESCRIPTION$18", "MERGE_SUBQUERY$3".
         "LOOKUP$$$_1_CUSTOMER_SOURCE$9", "MERGE_SUBQUERY$3".
         "LOOKUP$$$_1_TOTAL_SOURCE_ID$14", -1 * ( "DEPARTMENT_SEQ".CURRVAL) )
   Rationale
      The SQL spent only 0% of its database time on CPU, I/O and Cluster
      waits. Therefore, the SQL Tuning Advisor is not applicable in this case.
      Look at performance data for the SQL to find potential improvements.
   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 "1ypc2gyv87hrt" was executed 10 times and had
      an average elapsed time of 20 seconds.
   Rationale
      At least 5 distinct execution plans were utilized for this SQL statement
      during the analysis period.
   Rationale
      Waiting for event "SQL*Net message from dblink" in wait class "Network"
      accounted for 75% of the database time spent in processing the SQL
      statement with SQL_ID "1ypc2gyv87hrt".
   Rationale
      Top level calls to execute the PL/SQL statement with SQL_ID
      "4xm1ruvkx3awx" are responsible for 100% of the database time spent on
      the UPSERT statement with SQL_ID "1ypc2gyv87hrt".
      Related Object
         SQL statement with SQL_ID 4xm1ruvkx3awx.
         DECLARE job BINARY_INTEGER := :job;  next_date TIMESTAMP WITH TIME
         ZONE := :mydate;  broken BOOLEAN := FALSE;  job_name VARCHAR2(128) :=
         :job_name;  job_subname VARCHAR2(128) := :job_subname;  job_owner
         VARCHAR2(128) := :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(128)
         := :credown;  credential_name  VARCHAR2(128) := :crednam;
         destination_owner VARCHAR2(128) := :destown;  destination_name
         VARCHAR2(128) := :destnam;  job_dest_id varchar2(14) := :jdestid;
         log_id number := :log_id;  BEGIN  DECLARE
         ename             VARCHAR2(30);
         exec_task         BOOLEAN;
         BEGIN
         -- check if tuning pack is enabled
         exec_task := prvt_advisor.is_pack_enabled(
         dbms_management_packs.TUNING_PACK);
         -- check if we are in a pdb,
         -- since auto sqltune is not run in a pdb
         IF (exec_task AND -- tuning pack enabled
         sys_context('userenv', 'con_id') <> 0 AND -- not in non-cdb
         sys_context('userenv', 'con_id') <> 1  ) THEN -- not in root
         exec_task := FALSE;
         END IF;
         -- execute auto sql tuning task
         IF (exec_task) THEN
         ename := dbms_sqltune.execute_tuning_task(
         'SYS_AUTO_SQL_TUNING_TASK');
         END IF;
         -- check whether we are in non-CDB or a PDB
         -- auto SPM evolve only runs in a non-CDB or a PDB, not the root.
         IF (sys_context('userenv', 'con_id') = 0 OR
         sys_context('userenv', 'con_id') > 2) THEN
         exec_task := TRUE;
         ELSE
         exec_task := FALSE;
         END IF;
         -- execute auto SPM evolve task
         IF (exec_task) THEN
         ename := dbms_spm.execute_evolve_task('SYS_AUTO_SPM_EVOLVE_TASK');
         END IF;
         END;  :mydate := next_date; IF broken THEN :b := 1; ELSE :b := 0; END
         IF; END;

   Recommendation 4: SQL Tuning
   Estimated benefit is .05 active sessions, 3.43% of total activity.
   ------------------------------------------------------------------
   Action
      Run SQL Tuning Advisor on the SELECT statement with SQL_ID
      "7g3rn4q29jr4m".
      Related Object
         SQL statement with SQL_ID 7g3rn4q29jr4m.
         /* SQL Analyze(20,1) */ WITH
         SAWITH0 AS (select sum(T12363.NOCHARGEPREVREJECTED) as c1,
         sum(T12363.QUANTITY_ORDERED) as c2,
         sum(T12363.SHORTAGE_QTY) as c3,
         sum(T12363.QUANTITY_DELIVERED) as c4,
         sum(T12363.REVENUE) as c5,
         sum(case  when T6115.REASON_CODE = 'C7' then
         T12363.QUANTITY_DELIVERED end ) as c6,
         sum(case  when T8754.WEEK_SEQ = T8754.CURRENT_WEEK_SEQ then
         T12363.QUANTITY_DELIVERED end ) as c7,
         sum(case  when T6115.REASON_CODE = 'C7' and T8754.WEEK_SEQ =
         T8754.CURRENT_WEEK_SEQ then T12363.QUANTITY_DELIVERED end ) as c8,
         sum(case  when T8754.CURRENT_WEEK_SEQ - 1 = T8754.WEEK_SEQ then
         T12363.QUANTITY_DELIVERED end ) as c9,
         sum(case  when T8754.CURRENT_WEEK_SEQ - 1 = T8754.WEEK_SEQ and
         T6115.REASON_CODE = 'C7' then T12363.QUANTITY_DELIVERED end ) as c10,
         sum(case  when T6115.REASON_DESCRIPTION = 'Unrecognised Shortages'
         and T24684.ORIGIN_NUMBER = 3 then T12363.QUANTITY_DELIVERED end ) as
         c11,
         sum(case  when T24684.ORIGIN_NUMBER = 3 and T6115.REASON_CODE in
         ('C5', 'URS') then T12363.QUANTITY_DELIVERED end ) as c12,
         sum(case  when T6115.REASON_DESCRIPTION = 'Short - Customer Notified'
         and T24684.ORIGIN_NUMBER = 3 then T12363.QUANTITY_DELIVERED end ) as
         c13,
         T5913.BUSINESS_UNIT_NAME as c14,
         T6063.PRODUCT_GROUP_DESCRIPTION as c15,
         T8754.DAY_OF_WEEK_NAME as c16,
         T8754.WEEK_NUMBER as c17,
         T8754.DAY_OF_WEEK_NUMBER as c18,
         T5913.DIMENSION_KEY as c19,
         T8754.WEEK_SOURCE_ID as c20,
         T8754.DAY_SOURCE_ID as c21,
         T6063.PRODUCT_GROUP_SOURCE_ID as c22
         from
         DELIVERY_NOTE T24684,
         DATE_CAL_WEEK_BASED T8754,
         (
         DIM_V_BUSINESS_UNIT T5913 inner join (
         DIM_V_PRODUCT T6063 inner join FACT_DELIVERIES T12363 On
         T6063.DIMENSION_KEY = T12363.PRODUCT) On T5913.DIMENSION_KEY =
         T12363.BUSINESS_UNIT) left outer join
         REASON T6115 On T6115.DIMENSION_KEY = T12363.CORRECTIONREASON
         where  ( T6063.PRODUCT_GROUP_DESCRIPTION not in ('Container', 'Direct
         Sales', 'Miscellaneous') and T5913.DIVISION = 'Johnsons Hotel Linen'
         and T8754.DIMENSION_KEY = T12363.DATE_CAL_WEEK_BASED and
         T12363.DELIVERY_NOTE = T24684.DIMENSION_KEY and T8754.WEEK_SEQ
         between T8754.CURRENT_WEEK_SEQ - 1 and T8754.CURRENT_WEEK_SEQ )
         group by T5913.DIMENSION_KEY, T5913.BUSINESS_UNIT_NAME,
         T6063.PRODUCT_GROUP_SOURCE_ID, T6063.PRODUCT_GROUP_DESCRIPTION,
         T8754.WEEK_SOURCE_ID, T8754.WEEK_NUMBER, T8754.DAY_SOURCE_ID,
         T8754.DAY_OF_WEEK_NUMBER, T8754.DAY_OF_WEEK_NAME)
         select distinct 0 as c1,
         D1.c14 as c2,
         D1.c15 as c3,
         D1.c16 as c4,
         D1.c17 as c5,
         D1.c18 as c6,
         D1.c4 as c7,
         D1.c3 as c8,
         D1.c2 as c9,
         D1.c5 as c10,
         D1.c5 / nullif( nvl(D1.c4 , 0) - nvl(D1.c6 , 0), 0) as c11,
         floor(D1.c4 / nullif( D1.c2, 0)) * 100.0 as c12,
         floor((nvl(nvl(D1.c7 , 0) - nvl(D1.c8 , 0) , 0) - nvl(nvl(D1.c9 , 0)
         - nvl(D1.c10 , 0) , 0)) / nullif( nvl(nvl(D1.c9 , 0) - nvl(D1.c10 ,
         0) , 0), 0)) * 100.0 as c13,
         sum(D1.c4) over ()  * 1.0 as c14,
         (nvl(nvl(D1.c11 , 0) , 0) + nvl(nvl(D1.c12 , 0) , 0)) * -1 * 100.0 /
         nullif( D1.c2, 0) as c15,
         (nvl(-D1.c6 , 0) + nvl(D1.c1 , 0)) * 100.0 / nullif( nvl(-D1.c6 , 0)
         + D1.c4, 0) as c16,
         nvl(D1.c4 , 0) - nvl(D1.c6 , 0) as c17,
         nvl(-D1.c6 , 0) + nvl(D1.c1 , 0) as c18,
         (nvl(nvl(D1.c13 , 0) , 0) + nvl(nvl(D1.c11 , 0) , 0)) * -1 +
         nvl(D1.c3 , 0) as c19,
         nvl(D1.c3 * 100.0 / nullif( D1.c2, 0) , 0) as c20,
         nvl(D1.c12 * -1 , 0) as c21,
         nvl(nvl(D1.c7 , 0) - nvl(D1.c8 , 0) , 0) as c22,
         nvl(nvl(D1.c9 , 0) - nvl(D1.c10 , 0) , 0) as c23,
         nvl(nvl(D1.c7 , 0) - nvl(D1.c8 , 0) , 0) - nvl(nvl(D1.c9 , 0) -
         nvl(D1.c10 , 0) , 0) as c24,
         0 as c25,
         0 as c26,
         0 as c27,
         0 as c28,
         0 as c29,
         0 as c30,
         0 as c31,
         0 as c32,
         0 as c33,
         0 as c34,
         0 as c35,
         0 as c36,
         0 as c37,
         0 as c38,
         0 as c39,
         0 as c40,
         0 as c41,
         0 as c42,
         0 as c43,
         0 as c44,
         0 as c45,
         0 as c46,
         0 as c47,
         0 as c48,
         0 as c49,
         0 as c50,
         0 as c51,
         0 as c52,
         0 as c53,
         0 as c54,
         0 as c55,
         0 as c56,
         0 as c57,
         0 as c58,
         0 as c59,
         0 as c60,
         0 as c61,
         0 as c62,
         0 as c63,
         D1.c19 as c64,
         D1.c22 as c65,
         D1.c21 as c66,
         D1.c20 as c67,
         D1.c6 as c68,
         D1.c7 as c69,
         D1.c8 as c70,
         D1.c9 as c71,
         D1.c10 as c72,
         D1.c11 as c73,
         D1.c12 as c74,
         D1.c1 as c75
         from
         SAWITH0 D1
         order by c5, c2, c64, c3, c67, c66, c6, c4, c65
   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 "7g3rn4q29jr4m" was executed 10 times and had
      an average elapsed time of 16 seconds.
   Rationale
      At least 5 distinct execution plans were utilized for this SQL statement
      during the analysis period.
   Rationale
      Full scan of TABLE "ABSDATAWAREHOUSE.FACT_DELIVERIES" with object ID
      141550 consumed 70% of the database time spent on this SQL statement.
   Rationale
      Top level calls to execute the PL/SQL statement with SQL_ID
      "4xm1ruvkx3awx" are responsible for 100% of the database time spent on
      the SELECT statement with SQL_ID "7g3rn4q29jr4m".
      Related Object
         SQL statement with SQL_ID 4xm1ruvkx3awx.
         DECLARE job BINARY_INTEGER := :job;  next_date TIMESTAMP WITH TIME
         ZONE := :mydate;  broken BOOLEAN := FALSE;  job_name VARCHAR2(128) :=
         :job_name;  job_subname VARCHAR2(128) := :job_subname;  job_owner
         VARCHAR2(128) := :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(128)
         := :credown;  credential_name  VARCHAR2(128) := :crednam;
         destination_owner VARCHAR2(128) := :destown;  destination_name
         VARCHAR2(128) := :destnam;  job_dest_id varchar2(14) := :jdestid;
         log_id number := :log_id;  BEGIN  DECLARE
         ename             VARCHAR2(30);
         exec_task         BOOLEAN;
         BEGIN
         -- check if tuning pack is enabled
         exec_task := prvt_advisor.is_pack_enabled(
         dbms_management_packs.TUNING_PACK);
         -- check if we are in a pdb,
         -- since auto sqltune is not run in a pdb
         IF (exec_task AND -- tuning pack enabled
         sys_context('userenv', 'con_id') <> 0 AND -- not in non-cdb
         sys_context('userenv', 'con_id') <> 1  ) THEN -- not in root
         exec_task := FALSE;
         END IF;
         -- execute auto sql tuning task
         IF (exec_task) THEN
         ename := dbms_sqltune.execute_tuning_task(
         'SYS_AUTO_SQL_TUNING_TASK');
         END IF;
         -- check whether we are in non-CDB or a PDB
         -- auto SPM evolve only runs in a non-CDB or a PDB, not the root.
         IF (sys_context('userenv', 'con_id') = 0 OR
         sys_context('userenv', 'con_id') > 2) THEN
         exec_task := TRUE;
         ELSE
         exec_task := FALSE;
         END IF;
         -- execute auto SPM evolve task
         IF (exec_task) THEN
         ename := dbms_spm.execute_evolve_task('SYS_AUTO_SPM_EVOLVE_TASK');
         END IF;
         END;  :mydate := next_date; IF broken THEN :b := 1; ELSE :b := 0; END
         IF; END;

   Recommendation 5: SQL Tuning
   Estimated benefit is .04 active sessions, 3.23% of total activity.
   ------------------------------------------------------------------
   Action
      Run SQL Tuning Advisor on the SELECT statement with SQL_ID
      "as2dr3ag24gay".
      Related Object
         SQL statement with SQL_ID as2dr3ag24gay.
         select not_stale.obj# from (select s.obj# obj#, count(*) cnt,
         max(timestamp) max_time from optstat_snapshot$ s,
         wri$_optstat_tab_history t where s.obj# = t.obj# and bitand(s.flags,
         :gather_stats_flag) > 0 and t.analyzetime = (select max(analyzetime)
         from wri$_optstat_tab_history where analyzetime < s.timestamp) and
         dbms_stats_internal.is_stale(s.obj#, null, null, s.inserts +
         s.updates + s.deletes, t.rowcnt, 0) is null group by s.obj#)
         not_stale, (select obj# obj#, count(*) cnt from optstat_snapshot$
         where bitand(flags, :gather_stats_flag) > 0 group by obj#) total,
         (select obj#, max(timestamp) max_time from optstat_snapshot$ group by
         obj#) max where not_stale.obj# = total.obj# and not_stale.cnt > 0.5 *
         total.cnt and not_stale.obj# = max.obj# and not_stale.max_time =
         max.max_time and dbms_stats_internal.check_advisor_obj_filter(:rule_i
         d, not_stale.obj#, :exec_mode) = 'T'
   Action
      Use bigger fetch arrays while fetching results from the SELECT statement
      with SQL_ID "as2dr3ag24gay".
      Related Object
         SQL statement with SQL_ID as2dr3ag24gay.
         select not_stale.obj# from (select s.obj# obj#, count(*) cnt,
         max(timestamp) max_time from optstat_snapshot$ s,
         wri$_optstat_tab_history t where s.obj# = t.obj# and bitand(s.flags,
         :gather_stats_flag) > 0 and t.analyzetime = (select max(analyzetime)
         from wri$_optstat_tab_history where analyzetime < s.timestamp) and
         dbms_stats_internal.is_stale(s.obj#, null, null, s.inserts +
         s.updates + s.deletes, t.rowcnt, 0) is null group by s.obj#)
         not_stale, (select obj# obj#, count(*) cnt from optstat_snapshot$
         where bitand(flags, :gather_stats_flag) > 0 group by obj#) total,
         (select obj#, max(timestamp) max_time from optstat_snapshot$ group by
         obj#) max where not_stale.obj# = total.obj# and not_stale.cnt > 0.5 *
         total.cnt and not_stale.obj# = max.obj# and not_stale.max_time =
         max.max_time and dbms_stats_internal.check_advisor_obj_filter(:rule_i
         d, not_stale.obj#, :exec_mode) = 'T'
   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: 88% for SQL
      execution, 0% for parsing, 12% for PL/SQL execution and 0% for Java
      execution.
   Rationale
      SQL statement with SQL_ID "as2dr3ag24gay" was executed 1 times and had
      an average elapsed time of 160 seconds.
   Rationale
      At least 2 distinct execution plans were utilized for this SQL statement
      during the analysis period.
   Rationale
      Top level calls to execute the PL/SQL statement with SQL_ID
      "b6usrg82hwsa3" are responsible for 100% of the database time spent on
      the SELECT statement with SQL_ID "as2dr3ag24gay".
      Related Object
         SQL statement with SQL_ID b6usrg82hwsa3.
         call dbms_stats.gather_database_stats_job_proc (  )

   Recommendation 6: SQL Tuning
   Estimated benefit is .04 active sessions, 3.03% of total activity.
   ------------------------------------------------------------------
   Action
      Investigate the INSERT statement with SQL_ID "9g11660xpn8au" for
      possible performance improvements. You can supplement the information
      given here with an ASH report for this SQL_ID.
      Related Object
         SQL statement with SQL_ID 9g11660xpn8au.
         /* SQL Analyze(20,1) */ insert into FACT_REALTIME_CUSTOMER_DATA
         select * from FACT_V_REALTIME_CUSTOMER_DATA8
   Rationale
      The SQL spent only 0% of its database time on CPU, I/O and Cluster
      waits. Therefore, the SQL Tuning Advisor is not applicable in this case.
      Look at performance data for the SQL to find potential improvements.
   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 "9g11660xpn8au" was executed 9 times and had
      an average elapsed time of 15 seconds.
   Rationale
      At least 5 distinct execution plans were utilized for this SQL statement
      during the analysis period.
   Rationale
      Waiting for event "SQL*Net more data from dblink" in wait class
      "Network" accounted for 80% of the database time spent in processing the
      SQL statement with SQL_ID "9g11660xpn8au".
   Rationale
      Top level calls to execute the PL/SQL statement with SQL_ID
      "4xm1ruvkx3awx" are responsible for 100% of the database time spent on
      the INSERT statement with SQL_ID "9g11660xpn8au".
      Related Object
         SQL statement with SQL_ID 4xm1ruvkx3awx.
         DECLARE job BINARY_INTEGER := :job;  next_date TIMESTAMP WITH TIME
         ZONE := :mydate;  broken BOOLEAN := FALSE;  job_name VARCHAR2(128) :=
         :job_name;  job_subname VARCHAR2(128) := :job_subname;  job_owner
         VARCHAR2(128) := :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(128)
         := :credown;  credential_name  VARCHAR2(128) := :crednam;
         destination_owner VARCHAR2(128) := :destown;  destination_name
         VARCHAR2(128) := :destnam;  job_dest_id varchar2(14) := :jdestid;
         log_id number := :log_id;  BEGIN  DECLARE
         ename             VARCHAR2(30);
         exec_task         BOOLEAN;
         BEGIN
         -- check if tuning pack is enabled
         exec_task := prvt_advisor.is_pack_enabled(
         dbms_management_packs.TUNING_PACK);
         -- check if we are in a pdb,
         -- since auto sqltune is not run in a pdb
         IF (exec_task AND -- tuning pack enabled
         sys_context('userenv', 'con_id') <> 0 AND -- not in non-cdb
         sys_context('userenv', 'con_id') <> 1  ) THEN -- not in root
         exec_task := FALSE;
         END IF;
         -- execute auto sql tuning task
         IF (exec_task) THEN
         ename := dbms_sqltune.execute_tuning_task(
         'SYS_AUTO_SQL_TUNING_TASK');
         END IF;
         -- check whether we are in non-CDB or a PDB
         -- auto SPM evolve only runs in a non-CDB or a PDB, not the root.
         IF (sys_context('userenv', 'con_id') = 0 OR
         sys_context('userenv', 'con_id') > 2) THEN
         exec_task := TRUE;
         ELSE
         exec_task := FALSE;
         END IF;
         -- execute auto SPM evolve task
         IF (exec_task) THEN
         ename := dbms_spm.execute_evolve_task('SYS_AUTO_SPM_EVOLVE_TASK');
         END IF;
         END;  :mydate := next_date; IF broken THEN :b := 1; ELSE :b := 0; END
         IF; END;

   Recommendation 7: SQL Tuning
   Estimated benefit is .04 active sessions, 2.83% of total activity.
   ------------------------------------------------------------------
   Action
      Run SQL Tuning Advisor on the SELECT statement with SQL_ID
      "045rcgr2v0xmp".
      Related Object
         SQL statement with SQL_ID 045rcgr2v0xmp.
         SELECT /*+ NO_MERGE FULL ("A1") */
         NULL,"A1"."DEPARTMENT_ID",MIN("A1"."DEPARTMENT_CODE") KEEP
         (DENSE_RANK FIRST  ORDER BY NULL),MIN("A1"."DEPARTMENT") KEEP
         (DENSE_RANK FIRST  ORDER BY NULL),MIN("A1"."IS_ACTIVE") KEEP
         (DENSE_RANK FIRST  ORDER BY NULL),MIN("A1"."LEGACY_CODE") KEEP
         (DENSE_RANK FIRST  ORDER BY NULL),MIN("A1"."CONTACT_PERSON") KEEP
         (DENSE_RANK FIRST  ORDER BY NULL),MIN("A1"."CONTACT_PERSON_EMAIL")
         KEEP (DENSE_RANK FIRST  ORDER BY
         NULL),MIN("A1"."CONTACT_PERSON_PHONE") KEEP (DENSE_RANK FIRST  ORDER
         BY NULL),MIN("A1"."CONTACT_PERSON_MOBILE") KEEP (DENSE_RANK FIRST
         ORDER BY NULL),MIN("A1"."CONTACT_PERSON_FUNCTION") KEEP (DENSE_RANK
         FIRST  ORDER BY NULL),MIN("A1"."STANDARD_PACKING_QTY") KEEP
         (DENSE_RANK FIRST  ORDER BY NULL),MIN("A1"."BULKDEPARTMENT_YN") KEEP
         (DENSE_RANK FIRST  ORDER BY
         NULL),MIN("A1"."EXCLUDE_FROM_BULK_DELIVERY_YN") KEEP (DENSE_RANK
         FIRST  ORDER BY NULL),MIN("A1"."EMAIL_DELIVERY_NOTE_YN") KEEP
         (DENSE_RANK FIRST  ORDER BY
         NULL),MIN("A1"."EMAIL_CONSIGNMENT_NOTE_YN") KEEP (DENSE_RANK FIRST
         ORDER BY NULL),MIN("A1"."COST_CENTER_ID") KEEP (DENSE_RANK FIRST
         ORDER BY NULL) FROM "ABSDWHSTAGING"."V_STDIM_DEPARTMENT" "A1" WHERE
         "A1"."DEPARTMENT_ID" IS NOT NULL GROUP BY
         "A1"."DEPARTMENT_ID",NULL,NULL,NULL,NULL
   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 "045rcgr2v0xmp" was executed 8 times and had
      an average elapsed time of 19 seconds.

   Recommendation 8: SQL Tuning
   Estimated benefit is .03 active sessions, 2.42% of total activity.
   ------------------------------------------------------------------
   Action
      Run SQL Tuning Advisor on the SELECT statement with SQL_ID
      "6w9zavmzr95zc".
      Related Object
         SQL statement with SQL_ID 6w9zavmzr95zc.
         /* SQL Analyze(20,1) */ SELECT /*+ NO_MERGE */
         "A1"."DEPARTMENT_SOURCE_ID$7","A1"."DEPARTMENT_CODE$7","A1"."DEPARTME
         NT_DESCRIPTION$7","A1"."DEPARTMENT_IS_ACTIVE$7","A1"."DEPARTMENT_LEGA
         CY_CODE$7","A1"."DEPARTMENT_CONTACT_PERSON$7","A1"."DEPARTMENT_CONTAC
         T_EMAIL$7","A1"."DEPARTMENT_CONTACT_PHONE$7","A1"."DEPARTMENT_CONTACT
         _MOBILE$7","A1"."DEPARTMENT_CONTACT_FUNCT$7","A1"."DEPARTMENT_STANDAR
         D_PACK_QTY$7","A1"."DEPARTMENT_BULKDEPARTMENT_YN$7","A1"."DEPARTMENT_
         EXCL_FROM_BULK_YN$7","A1"."DEPARTMENT_EMAIL_DEL_NOTE$7","A1"."DEPARTM
         ENT_EMAIL_CONS_NOTE$7","A1"."LOOKUP$$$_1_COST_CENTER_S$5" FROM
         (SELECT /*+ NO_MERGE */ "A2"."DEPARTMENT_SOURCE_ID$8"
         "DEPARTMENT_SOURCE_ID$7","A2"."DEPARTMENT_CODE$8"
         "DEPARTMENT_CODE$7","A2"."DEPARTMENT_DESCRIPTION$8"
         "DEPARTMENT_DESCRIPTION$7","A2"."DEPARTMENT_IS_ACTIVE$8"
         "DEPARTMENT_IS_ACTIVE$7","A2"."DEPARTMENT_LEGACY_CODE$8"
         "DEPARTMENT_LEGACY_CODE$7","A2"."DEPARTMENT_CONTACT_PERSON$8"
         "DEPARTMENT_CONTACT_PERSON$7","A2"."DEPARTMENT_CONTACT_EMAIL$8"
         "DEPARTMENT_CONTACT_EMAIL$7","A2"."DEPARTMENT_CONTACT_PHONE$8"
         "DEPARTMENT_CONTACT_PHONE$7","A2"."DEPARTMENT_CONTACT_MOBILE$8"
         "DEPARTMENT_CONTACT_MOBILE$7","A2"."DEPARTMENT_CONTACT_FUNCT$8"
         "DEPARTMENT_CONTACT_FUNCT$7","A2"."DEPARTMENT_STANDARD_PACK_QTY$8"
         "DEPARTMENT_STANDARD_PACK_QTY$7","A2"."DEPARTMENT_BULKDEPARTMENT_YN$8
         " "DEPARTMENT_BULKDEPARTMENT_YN$7","A2"."DEPARTMENT_EXCL_FROM_BULK_YN
         $8" "DEPARTMENT_EXCL_FROM_BULK_YN$7","A2"."DEPARTMENT_EMAIL_DEL_NOTE$
         8" "DEPARTMENT_EMAIL_DEL_NOTE$7","A2"."DEPARTMENT_EMAIL_CONS_NOTE$8"
         "DEPARTMENT_EMAIL_CONS_NOTE$7","A2"."LOOKUP$$$_1_COST_CENTER_S$6"
         "LOOKUP$$$_1_COST_CENTER_S$5" FROM  (SELECT /*+ NO_MERGE */ NULL
         "DEPARTMENT_ID$7","A3"."DEPARTMENT_ID"
         "DEPARTMENT_SOURCE_ID$8",MIN("A3"."DEPARTMENT_CODE") KEEP (DENSE_RANK
         FIRST  ORDER BY NULL) "DEPARTMENT_CODE$8",MIN("A3"."DEPARTMENT") KEEP
         (DENSE_RANK FIRST  ORDER BY NULL)
         "DEPARTMENT_DESCRIPTION$8",MIN("A3"."IS_ACTIVE") KEEP (DENSE_RANK
         FIRST  ORDER BY NULL)
         "DEPARTMENT_IS_ACTIVE$8",MIN("A3"."LEGACY_CODE") KEEP (DENSE_RANK
         FIRST  ORDER BY NULL)
         "DEPARTMENT_LEGACY_CODE$8",MIN("A3"."CONTACT_PERSON") KEEP
         (DENSE_RANK FIRST  ORDER BY NULL)
         "DEPARTMENT_CONTACT_PERSON$8",MIN("A3"."CONTACT_PERSON_EMAIL") KEEP
         (DENSE_RANK FIRST  ORDER BY NULL)
         "DEPARTMENT_CONTACT_EMAIL$8",MIN("A3"."CONTACT_PERSON_PHONE") KEEP
         (DENSE_RANK FIRST  ORDER BY NULL)
         "DEPARTMENT_CONTACT_PHONE$8",MIN("A3"."CONTACT_PERSON_MOBILE") KEEP
         (DENSE_RANK FIRST  ORDER BY NULL)
         "DEPARTMENT_CONTACT_MOBILE$8",MIN("A3"."CONTACT_PERSON_FUNCTION")
         KEEP (DENSE_RANK FIRST  ORDER BY NULL)
         "DEPARTMENT_CONTACT_FUNCT$8",MIN("A3"."STANDARD_PACKING_QTY") KEEP
         (DENSE_RANK FIRST  ORDER BY NULL)
         "DEPARTMENT_STANDARD_PACK_QTY$8",MIN("A3"."BULKDEPARTMENT_YN") KEEP
         (DENSE_RANK FIRST  ORDER BY NULL)
         "DEPARTMENT_BULKDEPARTMENT_YN$8",MIN("A3"."EXCLUDE_FROM_BULK_DELIVERY
         _YN") KEEP (DENSE_RANK FIRST  ORDER BY NULL)
         "DEPARTMENT_EXCL_FROM_BULK_YN$8",MIN("A3"."EMAIL_DELIVERY_NOTE_YN")
         KEEP (DENSE_RANK FIRST  ORDER BY NULL)
         "DEPARTMENT_EMAIL_DEL_NOTE$8",MIN("A3"."EMAIL_CONSIGNMENT_NOTE_YN")
         KEEP (DENSE_RANK FIRST  ORDER BY NULL)
         "DEPARTMENT_EMAIL_CONS_NOTE$8",MIN("A3"."COST_CENTER_ID") KEEP
         (DENSE_RANK FIRST  ORDER BY NULL) "LOOKUP$$$_1_COST_CENTER_S$6" FROM
         "ABSDWHSTAGING"."V_STDIM_DEPARTMENT" "A3" WHERE "A3"."DEPARTMENT_ID"
         IS NOT NULL GROUP BY "A3"."DEPARTMENT_ID",NULL,NULL,NULL,NULL) "A2")
         "A1"
   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: 92% for SQL
      execution, 0% for parsing, 8% for PL/SQL execution and 0% for Java
      execution.
   Rationale
      SQL statement with SQL_ID "6w9zavmzr95zc" was executed 6 times and had
      an average elapsed time of 20 seconds.
   Rationale
      At least 3 distinct execution plans were utilized for this SQL statement
      during the analysis period.
   Rationale
      Top level calls to execute the PL/SQL statement with SQL_ID
      "4xm1ruvkx3awx" are responsible for 100% of the database time spent on
      the SELECT statement with SQL_ID "6w9zavmzr95zc".
      Related Object
         SQL statement with SQL_ID 4xm1ruvkx3awx.
         DECLARE job BINARY_INTEGER := :job;  next_date TIMESTAMP WITH TIME
         ZONE := :mydate;  broken BOOLEAN := FALSE;  job_name VARCHAR2(128) :=
         :job_name;  job_subname VARCHAR2(128) := :job_subname;  job_owner
         VARCHAR2(128) := :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(128)
         := :credown;  credential_name  VARCHAR2(128) := :crednam;
         destination_owner VARCHAR2(128) := :destown;  destination_name
         VARCHAR2(128) := :destnam;  job_dest_id varchar2(14) := :jdestid;
         log_id number := :log_id;  BEGIN  DECLARE
         ename             VARCHAR2(30);
         exec_task         BOOLEAN;
         BEGIN
         -- check if tuning pack is enabled
         exec_task := prvt_advisor.is_pack_enabled(
         dbms_management_packs.TUNING_PACK);
         -- check if we are in a pdb,
         -- since auto sqltune is not run in a pdb
         IF (exec_task AND -- tuning pack enabled
         sys_context('userenv', 'con_id') <> 0 AND -- not in non-cdb
         sys_context('userenv', 'con_id') <> 1  ) THEN -- not in root
         exec_task := FALSE;
         END IF;
         -- execute auto sql tuning task
         IF (exec_task) THEN
         ename := dbms_sqltune.execute_tuning_task(
         'SYS_AUTO_SQL_TUNING_TASK');
         END IF;
         -- check whether we are in non-CDB or a PDB
         -- auto SPM evolve only runs in a non-CDB or a PDB, not the root.
         IF (sys_context('userenv', 'con_id') = 0 OR
         sys_context('userenv', 'con_id') > 2) THEN
         exec_task := TRUE;
         ELSE
         exec_task := FALSE;
         END IF;
         -- execute auto SPM evolve task
         IF (exec_task) THEN
         ename := dbms_spm.execute_evolve_task('SYS_AUTO_SPM_EVOLVE_TASK');
         END IF;
         END;  :mydate := next_date; IF broken THEN :b := 1; ELSE :b := 0; END
         IF; END;


Finding 3: Unusual "Network" Wait Event
Impact is .12 active sessions, 8.91% of total activity.
-------------------------------------------------------
Wait event "SQL*Net more data from dblink" in wait class "Network" was
consuming significant database time.

   Recommendation 1: Application Analysis
   Estimated benefit is .12 active sessions, 8.91% of total activity.
   ------------------------------------------------------------------
   Action
      Investigate the cause for high "SQL*Net more data from dblink" waits.
      Refer to Oracle's "Database Reference" for the description of this wait
      event.
   Action
      Look at the "Top SQL Statements" finding for SQL statements consuming
      significant time on the "SQL*Net more data from dblink" wait event. For
      example, the INSERT statement with SQL_ID "9g11660xpn8au" is responsible
      for 27% of these waits.

   Recommendation 2: Application Analysis
   Estimated benefit is .12 active sessions, 8.91% of total activity.
   ------------------------------------------------------------------
   Action
      Investigate the cause for high "SQL*Net more data from dblink" waits in
      Module "DBMS_SCHEDULER".

   Recommendation 3: Application Analysis
   Estimated benefit is .12 active sessions, 8.91% of total activity.
   ------------------------------------------------------------------
   Action
      Investigate the cause for high "SQL*Net more data from dblink" waits in
      Service "SYS$USERS".

   Recommendation 4: Application Analysis
   Estimated benefit is .04 active sessions, 2.91% of total activity.
   ------------------------------------------------------------------
   Action
      Investigate the cause for high "SQL*Net more data from dblink" waits
      with P1 ("driver id") value "0" and P2 ("#bytes") value "1".

   Recommendation 5: Application Analysis
   Estimated benefit is .02 active sessions, 1.64% of total activity.
   ------------------------------------------------------------------
   Action
      Investigate the cause for high "SQL*Net more data from dblink" waits
      with P1 ("driver id") value "0" and P2 ("#bytes") value "2".

   Symptoms That Led to the Finding:
   ---------------------------------
      Wait class "Network" was consuming significant database time.
      Impact is .22 active sessions, 15.86% of total activity.


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

   Recommendation 1: Segment Tuning
   Estimated benefit is .08 active sessions, 5.61% of total activity.
   ------------------------------------------------------------------
   Action
      Run "Segment Advisor" on TABLE "ABSDATAWAREHOUSE.FACT_DELIVERIES" with
      object ID 141550.
      Related Object
         Database object with ID 141550.
   Action
      Investigate application logic involving I/O on TABLE
      "ABSDATAWAREHOUSE.FACT_DELIVERIES" with object ID 141550.
      Related Object
         Database object with ID 141550.
   Action
      Look at the "Top SQL Statements" finding for SQL statements consuming
      significant I/O on this segment. For example, the SELECT statement with
      SQL_ID "4uty0m1dzyu2s" is responsible for 100% of "User I/O" and
      "Cluster" waits for this segment.
   Rationale
      The I/O usage statistics for the object are: 538 full object scans,
      16486409 physical reads, 4 physical writes and 13481184 direct reads.

   Recommendation 2: Segment Tuning
   Estimated benefit is .04 active sessions, 2.71% of total activity.
   ------------------------------------------------------------------
   Action
      Investigate application logic involving I/O on TABLE
      "ABSDWHSTAGING.STFACT_CUSTOMER_PRODUCTS_PRICE" with object ID 140537.
      Related Object
         Database object with ID 140537.
   Action
      Look at the "Top SQL Statements" finding for SQL statements consuming
      significant I/O on this segment. For example, the SELECT statement with
      SQL_ID "045rcgr2v0xmp" is responsible for 96% of "User I/O" and
      "Cluster" waits for this segment.

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


Finding 5: Unusual "Network" Wait Event
Impact is .09 active sessions, 6.94% of total activity.
-------------------------------------------------------
Wait event "SQL*Net message from dblink" in wait class "Network" was consuming
significant database time.

   Recommendation 1: Application Analysis
   Estimated benefit is .09 active sessions, 6.94% of total activity.
   ------------------------------------------------------------------
   Action
      Investigate the cause for high "SQL*Net message from dblink" waits.
      Refer to Oracle's "Database Reference" for the description of this wait
      event.
   Action
      Look at the "Top SQL Statements" finding for SQL statements consuming
      significant time on the "SQL*Net message from dblink" wait event. For
      example, the UPSERT statement with SQL_ID "1ypc2gyv87hrt" is responsible
      for 43% of these waits.

   Recommendation 2: Application Analysis
   Estimated benefit is .09 active sessions, 6.94% of total activity.
   ------------------------------------------------------------------
   Action
      Investigate the cause for high "SQL*Net message from dblink" waits in
      Module "DBMS_SCHEDULER".

   Recommendation 3: Application Analysis
   Estimated benefit is .09 active sessions, 6.94% of total activity.
   ------------------------------------------------------------------
   Action
      Investigate the cause for high "SQL*Net message from dblink" waits in
      Service "SYS$USERS".

   Recommendation 4: Application Analysis
   Estimated benefit is .09 active sessions, 6.94% of total activity.
   ------------------------------------------------------------------
   Action
      Investigate the cause for high "SQL*Net message from dblink" waits with
      P1 ("driver id") value "0" and P2 ("#bytes") value "1".

   Symptoms That Led to the Finding:
   ---------------------------------
      Wait class "Network" was consuming significant database time.
      Impact is .22 active sessions, 15.86% of total activity.


Finding 6: I/O to Temporary Tablespaces
Impact is .09 active sessions, 6.42% of total activity.
-------------------------------------------------------
Waits for I/O to temporary tablespaces were consuming significant database
time.
The value of parameter "pga_aggregate_target" was "3840 M" during the analysis
period.

   Recommendation 1: Application Analysis
   Estimated benefit is .09 active sessions, 6.42% of total activity.
   ------------------------------------------------------------------
   Action
      Look at the "Top SQL Statements" finding for SQL statements consuming
      significant I/O on temporary tablespaces.
   Rationale
      The SQL statement with SQL_ID "4uty0m1dzyu2s" consumed 34% of the I/O
      time on temporary tablespaces.
      Related Object
         SQL statement with SQL_ID 4uty0m1dzyu2s.
         /* SQL Analyze(20,1) */ WITH
         SAWITH0 AS (select sum(T12363.QUANTITY_DELIVERED) as c1,
         T5913.BUSINESS_UNIT_NAME as c2,
         T5959.EMAIL as c3,
         T5959.PHONE_NUMBER as c4,
         T5959.VISIT_ADDRESS_1 as c5,
         T5959.VISIT_CITY as c6,
         T5959.VISIT_ZIPCODE as c7,
         T5959.INVOICE_FREQUENCY as c8,
         T5959.TAXABLE as c9,
         T5959.WEEKLY_MINIMUM_INVOICE_AMOUNT as c10,
         T5959.CONTACT_PERSON_OF_CUSTOMER as c11,
         T5959.DATE3 as c12,
         T5959.NUMBER1 as c13,
         T5959.STRING1 as c14,
         T5959.STRING10 as c15,
         T5959.STRING11 as c16,
         T5959.STRING12 as c17,
         T5959.STRING13 as c18,
         T5959.STRING14 as c19,
         T5959.STRING16 as c20,
         T5959.STRING17 as c21,
         T5959.STRING7 as c22,
         T5959.STRING9 as c23,
         T5959.CHAIN_CODE as c24,
         T5959.CHAIN as c25,
         T5959.CUSTOMER_SERVICE_EMPLOYEE as c26,
         T5959.MARKET_SEGMENT as c27,
         T5959.NATIONAL_ACCOUNT_NAME as c28,
         T5959.ACTIVE as c29,
         T5959.CUSTOMER_BUSINESS_UNIT_NAME as c30,
         T5959.NAME as c31,
         T5959.CUSTOMER_NUMBER as c32,
         T5959.DATE_ACTIVE as c33,
         T5959.DATE_INACTIVE as c34,
         T5959.LEGACY_CUSTOMER_NUMBER as c35,
         T5959.LEGAL_NAME as c36,
         T5959.PAYMENT_METHOD as c37,
         T5959.PAYMENT_TERMS as c38,
         T5913.DIMENSION_KEY as c39,
         T5959.DIMENSION_KEY as c40,
         T5959.NATIONAL_ACCOUNT_CODE as c41,
         T5959.MARKET_SEGMENT_CODE as c42
         from
         DIM_V_CUSTOMER T5959,
         DIM_V_BUSINESS_UNIT T5913,
         FACT_DELIVERIES T12363
         where  ( T5913.DIMENSION_KEY = T12363.BUSINESS_UNIT and
         T5913.DIVISION = 'Johnsons Hotel Linen' and T5959.DIMENSION_KEY =
         T12363.CUSTOMER )
         group by T5913.DIMENSION_KEY, T5913.BUSINESS_UNIT_NAME,
         T5959.DIMENSION_KEY, T5959.CUSTOMER_NUMBER, T5959.LEGAL_NAME,
         T5959.LEGACY_CUSTOMER_NUMBER, T5959.VISIT_ADDRESS_1,
         T5959.VISIT_ZIPCODE, T5959.VISIT_CITY, T5959.PHONE_NUMBER,
         T5959.EMAIL, T5959.DATE_ACTIVE, T5959.DATE_INACTIVE, T5959.ACTIVE,
         T5959.CUSTOMER_BUSINESS_UNIT_NAME, T5959.CHAIN_CODE, T5959.CHAIN,
         T5959.MARKET_SEGMENT_CODE, T5959.MARKET_SEGMENT,
         T5959.NATIONAL_ACCOUNT_CODE, T5959.NATIONAL_ACCOUNT_NAME,
         T5959.CUSTOMER_SERVICE_EMPLOYEE, T5959.TAXABLE,
         T5959.INVOICE_FREQUENCY, T5959.PAYMENT_METHOD, T5959.PAYMENT_TERMS,
         T5959.NAME, T5959.WEEKLY_MINIMUM_INVOICE_AMOUNT,
         T5959.CONTACT_PERSON_OF_CUSTOMER, T5959.STRING1, T5959.STRING7,
         T5959.STRING9, T5959.STRING10, T5959.STRING11, T5959.STRING12,
         T5959.STRING13, T5959.STRING14, T5959.STRING16, T5959.STRING17,
         T5959.NUMBER1, T5959.DATE3)
         select 0 as c1,
         D1.c2 as c2,
         D1.c3 as c3,
         D1.c4 as c4,
         D1.c5 as c5,
         D1.c6 as c6,
         D1.c7 as c7,
         D1.c8 as c8,
         D1.c9 as c9,
         D1.c10 as c10,
         D1.c11 as c11,
         D1.c12 as c12,
         D1.c13 as c13,
         D1.c14 as c14,
         D1.c15 as c15,
         D1.c16 as c16,
         D1.c17 as c17,
         D1.c18 as c18,
         D1.c19 as c19,
         D1.c20 as c20,
         D1.c21 as c21,
         D1.c22 as c22,
         D1.c23 as c23,
         D1.c24 as c24,
         D1.c25 as c25,
         D1.c26 as c26,
         D1.c27 as c27,
         D1.c28 as c28,
         D1.c29 as c29,
         D1.c30 as c30,
         D1.c31 as c31,
         D1.c32 as c32,
         D1.c33 as c33,
         D1.c34 as c34,
         D1.c35 as c35,
         D1.c36 as c36,
         D1.c37 as c37,
         D1.c38 as c38,
         D1.c1 as c39,
         0 as c40,
         D1.c39 as c41,
         D1.c40 as c42,
         D1.c41 as c43,
         D1.c42 as c44
         from
         SAWITH0 D1
         order by c5, c36, c28, c32, c29, c4, c33, c9, c3, c25, c35, c30, c37,
         c8, c6, c24, c7, c38, c27, c34, c26, c11, c10, c12, c13, c22, c23,
         c14, c15, c16, c17, c18, c19, c20, c21, c2, c41, c42, c44, c43, c31
   Rationale
      The SQL statement with SQL_ID "045rcgr2v0xmp" consumed 31% of the I/O
      time on temporary tablespaces.
      Related Object
         SQL statement with SQL_ID 045rcgr2v0xmp.
         SELECT /*+ NO_MERGE FULL ("A1") */
         NULL,"A1"."DEPARTMENT_ID",MIN("A1"."DEPARTMENT_CODE") KEEP
         (DENSE_RANK FIRST  ORDER BY NULL),MIN("A1"."DEPARTMENT") KEEP
         (DENSE_RANK FIRST  ORDER BY NULL),MIN("A1"."IS_ACTIVE") KEEP
         (DENSE_RANK FIRST  ORDER BY NULL),MIN("A1"."LEGACY_CODE") KEEP
         (DENSE_RANK FIRST  ORDER BY NULL),MIN("A1"."CONTACT_PERSON") KEEP
         (DENSE_RANK FIRST  ORDER BY NULL),MIN("A1"."CONTACT_PERSON_EMAIL")
         KEEP (DENSE_RANK FIRST  ORDER BY
         NULL),MIN("A1"."CONTACT_PERSON_PHONE") KEEP (DENSE_RANK FIRST  ORDER
         BY NULL),MIN("A1"."CONTACT_PERSON_MOBILE") KEEP (DENSE_RANK FIRST
         ORDER BY NULL),MIN("A1"."CONTACT_PERSON_FUNCTION") KEEP (DENSE_RANK
         FIRST  ORDER BY NULL),MIN("A1"."STANDARD_PACKING_QTY") KEEP
         (DENSE_RANK FIRST  ORDER BY NULL),MIN("A1"."BULKDEPARTMENT_YN") KEEP
         (DENSE_RANK FIRST  ORDER BY
         NULL),MIN("A1"."EXCLUDE_FROM_BULK_DELIVERY_YN") KEEP (DENSE_RANK
         FIRST  ORDER BY NULL),MIN("A1"."EMAIL_DELIVERY_NOTE_YN") KEEP
         (DENSE_RANK FIRST  ORDER BY
         NULL),MIN("A1"."EMAIL_CONSIGNMENT_NOTE_YN") KEEP (DENSE_RANK FIRST
         ORDER BY NULL),MIN("A1"."COST_CENTER_ID") KEEP (DENSE_RANK FIRST
         ORDER BY NULL) FROM "ABSDWHSTAGING"."V_STDIM_DEPARTMENT" "A1" WHERE
         "A1"."DEPARTMENT_ID" IS NOT NULL GROUP BY
         "A1"."DEPARTMENT_ID",NULL,NULL,NULL,NULL
   Rationale
      The SQL statement with SQL_ID "6w9zavmzr95zc" consumed 25% of the I/O
      time on temporary tablespaces.
      Related Object
         SQL statement with SQL_ID 6w9zavmzr95zc.
         /* SQL Analyze(20,1) */ SELECT /*+ NO_MERGE */
         "A1"."DEPARTMENT_SOURCE_ID$7","A1"."DEPARTMENT_CODE$7","A1"."DEPARTME
         NT_DESCRIPTION$7","A1"."DEPARTMENT_IS_ACTIVE$7","A1"."DEPARTMENT_LEGA
         CY_CODE$7","A1"."DEPARTMENT_CONTACT_PERSON$7","A1"."DEPARTMENT_CONTAC
         T_EMAIL$7","A1"."DEPARTMENT_CONTACT_PHONE$7","A1"."DEPARTMENT_CONTACT
         _MOBILE$7","A1"."DEPARTMENT_CONTACT_FUNCT$7","A1"."DEPARTMENT_STANDAR
         D_PACK_QTY$7","A1"."DEPARTMENT_BULKDEPARTMENT_YN$7","A1"."DEPARTMENT_
         EXCL_FROM_BULK_YN$7","A1"."DEPARTMENT_EMAIL_DEL_NOTE$7","A1"."DEPARTM
         ENT_EMAIL_CONS_NOTE$7","A1"."LOOKUP$$$_1_COST_CENTER_S$5" FROM
         (SELECT /*+ NO_MERGE */ "A2"."DEPARTMENT_SOURCE_ID$8"
         "DEPARTMENT_SOURCE_ID$7","A2"."DEPARTMENT_CODE$8"
         "DEPARTMENT_CODE$7","A2"."DEPARTMENT_DESCRIPTION$8"
         "DEPARTMENT_DESCRIPTION$7","A2"."DEPARTMENT_IS_ACTIVE$8"
         "DEPARTMENT_IS_ACTIVE$7","A2"."DEPARTMENT_LEGACY_CODE$8"
         "DEPARTMENT_LEGACY_CODE$7","A2"."DEPARTMENT_CONTACT_PERSON$8"
         "DEPARTMENT_CONTACT_PERSON$7","A2"."DEPARTMENT_CONTACT_EMAIL$8"
         "DEPARTMENT_CONTACT_EMAIL$7","A2"."DEPARTMENT_CONTACT_PHONE$8"
         "DEPARTMENT_CONTACT_PHONE$7","A2"."DEPARTMENT_CONTACT_MOBILE$8"
         "DEPARTMENT_CONTACT_MOBILE$7","A2"."DEPARTMENT_CONTACT_FUNCT$8"
         "DEPARTMENT_CONTACT_FUNCT$7","A2"."DEPARTMENT_STANDARD_PACK_QTY$8"
         "DEPARTMENT_STANDARD_PACK_QTY$7","A2"."DEPARTMENT_BULKDEPARTMENT_YN$8
         " "DEPARTMENT_BULKDEPARTMENT_YN$7","A2"."DEPARTMENT_EXCL_FROM_BULK_YN
         $8" "DEPARTMENT_EXCL_FROM_BULK_YN$7","A2"."DEPARTMENT_EMAIL_DEL_NOTE$
         8" "DEPARTMENT_EMAIL_DEL_NOTE$7","A2"."DEPARTMENT_EMAIL_CONS_NOTE$8"
         "DEPARTMENT_EMAIL_CONS_NOTE$7","A2"."LOOKUP$$$_1_COST_CENTER_S$6"
         "LOOKUP$$$_1_COST_CENTER_S$5" FROM  (SELECT /*+ NO_MERGE */ NULL
         "DEPARTMENT_ID$7","A3"."DEPARTMENT_ID"
         "DEPARTMENT_SOURCE_ID$8",MIN("A3"."DEPARTMENT_CODE") KEEP (DENSE_RANK
         FIRST  ORDER BY NULL) "DEPARTMENT_CODE$8",MIN("A3"."DEPARTMENT") KEEP
         (DENSE_RANK FIRST  ORDER BY NULL)
         "DEPARTMENT_DESCRIPTION$8",MIN("A3"."IS_ACTIVE") KEEP (DENSE_RANK
         FIRST  ORDER BY NULL)
         "DEPARTMENT_IS_ACTIVE$8",MIN("A3"."LEGACY_CODE") KEEP (DENSE_RANK
         FIRST  ORDER BY NULL)
         "DEPARTMENT_LEGACY_CODE$8",MIN("A3"."CONTACT_PERSON") KEEP
         (DENSE_RANK FIRST  ORDER BY NULL)
         "DEPARTMENT_CONTACT_PERSON$8",MIN("A3"."CONTACT_PERSON_EMAIL") KEEP
         (DENSE_RANK FIRST  ORDER BY NULL)
         "DEPARTMENT_CONTACT_EMAIL$8",MIN("A3"."CONTACT_PERSON_PHONE") KEEP
         (DENSE_RANK FIRST  ORDER BY NULL)
         "DEPARTMENT_CONTACT_PHONE$8",MIN("A3"."CONTACT_PERSON_MOBILE") KEEP
         (DENSE_RANK FIRST  ORDER BY NULL)
         "DEPARTMENT_CONTACT_MOBILE$8",MIN("A3"."CONTACT_PERSON_FUNCTION")
         KEEP (DENSE_RANK FIRST  ORDER BY NULL)
         "DEPARTMENT_CONTACT_FUNCT$8",MIN("A3"."STANDARD_PACKING_QTY") KEEP
         (DENSE_RANK FIRST  ORDER BY NULL)
         "DEPARTMENT_STANDARD_PACK_QTY$8",MIN("A3"."BULKDEPARTMENT_YN") KEEP
         (DENSE_RANK FIRST  ORDER BY NULL)
         "DEPARTMENT_BULKDEPARTMENT_YN$8",MIN("A3"."EXCLUDE_FROM_BULK_DELIVERY
         _YN") KEEP (DENSE_RANK FIRST  ORDER BY NULL)
         "DEPARTMENT_EXCL_FROM_BULK_YN$8",MIN("A3"."EMAIL_DELIVERY_NOTE_YN")
         KEEP (DENSE_RANK FIRST  ORDER BY NULL)
         "DEPARTMENT_EMAIL_DEL_NOTE$8",MIN("A3"."EMAIL_CONSIGNMENT_NOTE_YN")
         KEEP (DENSE_RANK FIRST  ORDER BY NULL)
         "DEPARTMENT_EMAIL_CONS_NOTE$8",MIN("A3"."COST_CENTER_ID") KEEP
         (DENSE_RANK FIRST  ORDER BY NULL) "LOOKUP$$$_1_COST_CENTER_S$6" FROM
         "ABSDWHSTAGING"."V_STDIM_DEPARTMENT" "A3" WHERE "A3"."DEPARTMENT_ID"
         IS NOT NULL GROUP BY "A3"."DEPARTMENT_ID",NULL,NULL,NULL,NULL) "A2")
         "A1"

   Recommendation 2: Database Configuration
   Estimated benefit is 0 active sessions, .26% of total activity.
   ---------------------------------------------------------------
   Action
      Increase the size of the PGA by setting the value of parameter
      "pga_aggregate_target" to 4608 M.

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


Finding 7: Undersized SGA
Impact is .05 active sessions, 3.4% of total activity.
------------------------------------------------------
The SGA was inadequately sized, causing additional I/O or hard parses.
The value of parameter "sga_target" was "12960 M" during the analysis period.

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

   Symptoms That Led to the Finding:
   ---------------------------------
      Hard parsing of SQL statements was consuming significant database time.
      Impact is .5 active sessions, 36.98% of total activity.
      Wait class "User I/O" was consuming significant database time.
      Impact is .23 active sessions, 16.84% of total activity.


Finding 8: PL/SQL Execution
Impact is .01 active sessions, 1.01% of total activity.
-------------------------------------------------------
PL/SQL execution consumed significant database time.

   Recommendation 1: SQL Tuning
   Estimated benefit is .01 active sessions, 1.01% of total activity.
   ------------------------------------------------------------------
   Action
      Tune the entry point PL/SQL
      "SYS.DBMS_STATS.GATHER_DATABASE_STATS_JOB_PROC" of type "PACKAGE" and ID
      14323. Refer to the PL/SQL documentation for addition information.



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

          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.
Session connect and disconnect calls were not consuming significant database
time.

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

ADDM Task ADDM:2620954958_1_31246

          ADDM Report for Task 'ADDM:2620954958_1_31246'
          ----------------------------------------------

Analysis Period
---------------
AWR snapshot range from 31245 to 31246.
Time period starts at 25-FEB-26 10.00.22
Time period ends at 25-FEB-26 11.00.27

Analysis Target
---------------
Database 'ABS1' with DB ID 2620954958.
Database version during analysis period was 19.29.0.0.0.
Database version when ADDM was executed was 19.0.0.0.0.
All recommendations generated by ADDM are valid for database version 19.0.0.0.0, the version in which ADDM was executed.
ADDM performed an analysis of instance abs1, numbered 1 and hosted at BASHIR.

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

Summary of Findings
-------------------
   Description                               Active Sessions      Recommendations
                                             Percent of Activity
   ----------------------------------------  -------------------  ---------------
1  Top SQL Statements                        .39 | 45.89          6
2  Top Segments by "User I/O" and "Cluster"  .3 | 34.85           3
3  Unusual "Network" Wait Event              .06 | 6.66           4
4  Unusual "Network" Wait Event              .05 | 6.4            5
5  Undersized SGA                            .03 | 3.42           1
6  Log File Switches                         .02 | 2.83           2


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


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

Finding 1: Top SQL Statements
Impact is .39 active sessions, 45.89% 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 .13 active sessions, 14.56% of total activity.
   -------------------------------------------------------------------
   Action
      Run SQL Tuning Advisor on the SELECT statement with SQL_ID
      "fzg7j303zr447".
      Related Object
         SQL statement with SQL_ID fzg7j303zr447.
         WITH
         OBISUBWITH0 AS (select D1.c1 as c1
         from
         (select D1.c1 as c1,
         Case when D1.c2 is not null then Rank() OVER ( ORDER BY D1.c2) end as
         c2
         from
         (select distinct D1.c2 as c1,
         D1.c2 as c2,
         D1.c2 as c3
         from
         (select sum(T80629.NUMBER3) as c1,
         T5959.CUSTOMER_BUSINESS_UNIT_NAME as c2
         from
         DIM_V_CUSTOMER T5959,
         FACT_V_REALTIME_CUSTOMER_DATA T80629
         where  ( T5959.DIMENSION_KEY = T80629.CUSTOMER and T80629.DATASET =
         12 and (T5959.CUSTOMER_BUSINESS_UNIT_CODE in ('0', '3070')) and
         T5959.CUSTOMER_BUSINESS_UNIT_CODE >= '3000' )
         group by T5959.CUSTOMER_BUSINESS_UNIT_NAME
         having 0 < nvl(sum(T80629.NUMBER3) , 0)
         ) D1
         ) D1
         ) D1
         where  ( D1.c2 <= 1 ) ),
         OBISUBWITH1 AS (select D1.c1 as c1
         from
         (select D1.c2 as c1,
         Case when D1.c3 is not null then Rank() OVER ( PARTITION BY D1.c1
         ORDER BY D1.c3) end as c2
         from
         (select distinct D1.c2 as c1,
         D1.c3 as c2,
         D1.c3 as c3,
         D1.c3 as c4
         from
         (select sum(T80629.NUMBER3) as c1,
         T5959.CUSTOMER_BUSINESS_UNIT_NAME as c2,
         T5959.CUSTOMER_NUMBER as c3
         from
         DIM_V_CUSTOMER T5959,
         FACT_V_REALTIME_CUSTOMER_DATA T80629
         where  ( T5959.DIMENSION_KEY = T80629.CUSTOMER and T80629.DATASET =
         12 and (T5959.CUSTOMER_BUSINESS_UNIT_CODE in ('0', '3070')) and
         T5959.CUSTOMER_BUSINESS_UNIT_CODE >= '3000' )
         group by T5959.CUSTOMER_NUMBER, T5959.CUSTOMER_BUSINESS_UNIT_NAME
         having 0 < nvl(sum(T80629.NUMBER3) , 0)
         ) D1
         ) D1
         ) D1
         where  ( D1.c2 <= 1 ) ),
         OBISUBWITH2 AS (select D1.c1 as c1
         from
         (select D1.c1 as c1,
         Case when D1.c2 is not null then Rank() OVER ( ORDER BY D1.c2) end as
         c2
         from
         (select distinct D1.c2 as c1,
         D1.c2 as c2,
         D1.c2 as c3
         from
         (select sum(T80629.NUMBER3) as c1,
         T80629.DATE1 as c2
         from
         DIM_V_CUSTOMER T5959,
         FACT_V_REALTIME_CUSTOMER_DATA T80629
         where  ( T5959.DIMENSION_KEY = T80629.CUSTOMER and T80629.DATASET =
         12 and (T5959.CUSTOMER_BUSINESS_UNIT_CODE in ('0', '3070')) and
         T5959.CUSTOMER_BUSINESS_UNIT_CODE >= '3000' )
         group by T80629.DATE1
         having 0 < nvl(sum(T80629.NUMBER3) , 0)
         ) D1
         ) D1
         ) D1
         where  ( D1.c2 <= 1 ) ),
         SAWITH0 AS (select sum(T80629.NUMBER3) as c1,
         sum(case  when not case  when T80629.TEXT8 = 'Completed' then
         'Completed' when T80629.TEXT8 in ('In Progress', 'New') then 'Packing
         notes' else 'Not generated' end  = 'Completed' then T80629.NUMBER3
         end ) as c2,
         case  when T80629.TEXT8 = 'Completed' then 'Completed' when
         T80629.TEXT8 in ('In Progress', 'New') then 'Packing notes' else 'To
         be generated' end  as c3,
         T80629.TEXT9 as c4,
         T80629.TEXT6 as c5,
         T80629.TEXT5 as c6,
         T80629.TEXT2 as c7,
         T80629.TEXT10 as c8,
         T80629.NUMBER1 as c9,
         T80629.DATE1 as c10,
         T5959.CUSTOMER_BUSINESS_UNIT_CODE as c11,
         T5959.CUSTOMER_BUSINESS_UNIT_NAME as c12,
         T5959.CUSTOMER_NUMBER as c13
         from
         DIM_V_CUSTOMER T5959,
         FACT_V_REALTIME_CUSTOMER_DATA T80629
         where  ( T5959.DIMENSION_KEY = T80629.CUSTOMER and T80629.DATASET =
         12 and (T5959.CUSTOMER_BUSINESS_UNIT_CODE in ('0', '3070')) and
         T5959.CUSTOMER_BUSINESS_UNIT_CODE >= '3000' )
         group by T5959.CUSTOMER_NUMBER, T5959.CUSTOMER_BUSINESS_UNIT_CODE,
         T5959.CUSTOMER_BUSINESS_UNIT_NAME, T80629.TEXT2, T80629.TEXT5,
         T80629.TEXT6, T80629.TEXT9, T80629.TEXT10, T80629.DATE1,
         T80629.NUMBER1, case  when T80629.TEXT8 = 'Completed' then
         'Completed' when T80629.TEXT8 in ('In Progress', 'New') then 'Packing
         notes' else 'To be generated' end ),
         SAWITH1 AS (select distinct 0 as c1,
         D1.c10 as c2,
         D1.c9 as c3,
         D1.c8 as c4,
         D1.c7 as c5,
         D1.c6 as c6,
         D1.c5 as c7,
         D1.c4 as c8,
         D1.c11 as c9,
         D1.c12 as c10,
         NULL as c11,
         D1.c13 as c12,
         D1.c3 as c13,
         NULL as c14,
         nvl(D1.c1 , 0) as c15,
         nvl(D1.c2 , 0) as c16,
         cast(NULL as  DOUBLE PRECISION  ) as c17,
         cast(NULL as  DOUBLE PRECISION  ) as c19,
         cast(NULL as  DOUBLE PRECISION  ) as c20,
         cast(NULL as  DOUBLE PRECISION  ) as c21,
         cast(NULL as  DOUBLE PRECISION  ) as c22,
         cast(NULL as  DOUBLE PRECISION  ) as c24,
         cast(NULL as  DOUBLE PRECISION  ) as c25,
         cast(NULL as  DOUBLE PRECISION  ) as c26
         from
         SAWITH0 D1
         where  ( 0 < nvl(D1.c1 , 0) ) ),
         SAWITH2 AS (select sum(T80629.NUMBER3) as c1,
         case  when T80629.TEXT8 = 'Completed' then 'Completed' when
         T80629.TEXT8 in ('In Progress', 'New') then 'Packing notes' else 'To
         be generated' end  as c2,
         T80629.TEXT9 as c3,
         T80629.TEXT6 as c4,
         T80629.TEXT5 as c5,
         T80629.TEXT2 as c6,
         T80629.TEXT10 as c7,
         T80629.NUMBER1 as c8,
         T80629.DATE1 as c9,
         T5959.CUSTOMER_BUSINESS_UNIT_CODE as c10,
         T5959.CUSTOMER_BUSINESS_UNIT_NAME as c11,
         T5959.CUSTOMER_NUMBER as c12
         from
         DIM_V_CUSTOMER T5959,
         FACT_V_REALTIME_CUSTOMER_DATA T80629
         where  ( T5959.DIMENSION_KEY = T80629.CUSTOMER and T80629.DATASET =
         12 and (T5959.CUSTOMER_BUSINESS_UNIT_CODE in ('0', '3070')) and
         T5959.CUSTOMER_BUSINESS_UNIT_CODE >= '3000' )
         group by T5959.CUSTOMER_NUMBER, T5959.CUSTOMER_BUSINESS_UNIT_CODE,
         T5959.CUSTOMER_BUSINESS_UNIT_NAME, T80629.TEXT2, T80629.TEXT5,
         T80629.TEXT6, T80629.TEXT9, T80629.TEXT10, T80629.DATE1,
         T80629.NUMBER1, case  when T80629.TEXT8 = 'Completed' then
         'Completed' when T80629.TEXT8 in ('In Progress', 'New') then 'Packing
         notes' else 'To be generated' end ),
         SAWITH3 AS (select sum(T80629.NUMBER3) as c1,
         sum(case  when not case  when T80629.TEXT8 = 'Completed' then
         'Completed' when T80629.TEXT8 in ('In Progress', 'New') then 'Packing
         notes' else 'Not generated' end  = 'Completed' then T80629.NUMBER3
         end ) as c2,
         case  when T80629.TEXT8 = 'Completed' then 'Completed' when
         T80629.TEXT8 in ('In Progress', 'New') then 'Packing notes' else 'To
         be generated' end  as c3,
         T80629.TEXT9 as c4,
         T80629.TEXT6 as c5,
         T80629.TEXT5 as c6,
         T80629.TEXT2 as c7,
         T80629.TEXT10 as c8,
         T80629.NUMBER1 as c9,
         T80629.DATE1 as c10,
         T5959.CUSTOMER_BUSINESS_UNIT_CODE as c11,
         T5959.CUSTOMER_BUSINESS_UNIT_NAME as c12,
         T5959.CUSTOMER_NUMBER as c13
         from
         DIM_V_CUSTOMER T5959,
         FACT_V_REALTIME_CUSTOMER_DATA T80629
         where  ( T5959.DIMENSION_KEY = T80629.CUSTOMER and T80629.DATASET =
         12 and T5959.CUSTOMER_BUSINESS_UNIT_CODE >= '3000' and
         (T5959.CUSTOMER_BUSINESS_UNIT_CODE in ('0', '3070')) and T80629.DATE1
         in (select distinct D1.c1 as c1
         from
         OBISUBWITH2 D1) )
         group by T5959.CUSTOMER_NUMBER, T5959.CUSTOMER_BUSINESS_UNIT_CODE,
         T5959.CUSTOMER_BUSINESS_UNIT_NAME, T80629.TEXT2, T80629.TEXT5,
         T80629.TEXT6, T80629.TEXT9, T80629.TEXT10, T80629.DATE1,
         T80629.NUMBER1, case  when T80629.TEXT8 = 'Completed' then
         'Completed' when T80629.TEXT8 in ('In Progress', 'New') then 'Packing
         notes' else 'To be generated' end ),
         SAWITH4 AS (select distinct 2 as c1,
         D1.c10 as c2,
         D1.c9 as c3,
         D1.c8 as c4,
         D1.c7 as c5,
         D1.c6 as c6,
         D1.c5 as c7,
         D1.c4 as c8,
         D1.c11 as c9,
         D1.c12 as c10,
         NULL as c11,
         D1.c13 as c12,
         D1.c3 as c13,
         NULL as c14,
         nvl(D1.c1 , 0) as c15,
         nvl(D1.c2 , 0) as c16,
         cast(NULL as  DOUBLE PRECISION  ) as c19,
         cast(NULL as  DOUBLE PRECISION  ) as c20,
         cast(NULL as  DOUBLE PRECISION  ) as c21,
         cast(NULL as  DOUBLE PRECISION  ) as c24,
         cast(NULL as  DOUBLE PRECISION  ) as c25,
         cast(NULL as  DOUBLE PRECISION  ) as c26
         from
         SAWITH3 D1
         where  ( 0 < nvl(D1.c1 , 0) ) ),
         SAWITH5 AS (select sum(T80629.NUMBER3) as c1,
         sum(case  when not case  when T80629.TEXT8 = 'Completed' then
         'Completed' when T80629.TEXT8 in ('In Progress', 'New') then 'Packing
         notes' else 'Not generated' end  = 'Completed' then T80629.NUMBER3
         end ) as c2,
         case  when T80629.TEXT8 = 'Completed' then 'Completed' when
         T80629.TEXT8 in ('In Progress', 'New') then 'Packing notes' else 'To
         be generated' end  as c3,
         T80629.TEXT9 as c4,
         T80629.TEXT6 as c5,
         T80629.TEXT5 as c6,
         T80629.TEXT2 as c7,
         T80629.TEXT10 as c8,
         T80629.NUMBER1 as c9,
         T80629.DATE1 as c10,
         T5959.CUSTOMER_BUSINESS_UNIT_CODE as c11,
         T5959.CUSTOMER_BUSINESS_UNIT_NAME as c12,
         T5959.NAME as c13,
         T5959.CUSTOMER_NUMBER as c14,
         T5959.DIMENSION_KEY as c15
         from
         DIM_V_CUSTOMER T5959,
         FACT_V_REALTIME_CUSTOMER_DATA T80629
         where  ( T5959.DIMENSION_KEY = T80629.CUSTOMER and T80629.DATASET =
         12 and T5959.CUSTOMER_BUSINESS_UNIT_CODE >= '3000' and
         T5959.CUSTOMER_NUMBER in (select distinct D1.c1 as c1
         from
         OBISUBWITH1 D1) and (T5959.CUSTOMER_BUSINESS_UNIT_CODE in ('0',
         '3070')) and T5959.CUSTOMER_BUSINESS_UNIT_NAME in (select distinct
         D1.c1 as c1
         from
         OBISUBWITH0 D1) )
         group by T5959.DIMENSION_KEY, T5959.CUSTOMER_NUMBER,
         T5959.CUSTOMER_BUSINESS_UNIT_CODE, T5959.CUSTOMER_BUSINESS_UNIT_NAME,
         T5959.NAME, T80629.TEXT2, T80629.TEXT5, T80629.TEXT6, T80629.TEXT9,
         T80629.TEXT10, T80629.DATE1, T80629.NUMBER1, case  when T80629.TEXT8
         = 'Completed' then 'Completed' when T80629.TEXT8 in ('In Progress',
         'New') then 'Packing notes' else 'To be generated' end ),
         SAWITH6 AS (select distinct 3 as c1,
         D1.c10 as c2,
         D1.c9 as c3,
         D1.c8 as c4,
         D1.c7 as c5,
         D1.c6 as c6,
         D1.c5 as c7,
         D1.c4 as c8,
         D1.c11 as c9,
         D1.c12 as c10,
         D1.c13 as c11,
         D1.c14 as c12,
         D1.c3 as c13,
         NULL as c14,
         nvl(D1.c1 , 0) as c15,
         nvl(D1.c2 , 0) as c16,
         cast(NULL as  DOUBLE PRECISION  ) as c17,
         cast(NULL as  DOUBLE PRECISION  ) as c18,
         cast(NULL as  DOUBLE PRECISION  ) as c22,
         cast(NULL as  DOUBLE PRECISION  ) as c23,
         D1.c15 as c27
         from
         SAWITH5 D1
         where  ( 0 < nvl(D1.c1 , 0) ) ),
         SAWITH7 AS ((select D1.c1 as c1,
         D1.c2 as c2,
         D1.c3 as c3,
         D1.c4 as c4,
         D1.c5 as c5,
         D1.c6 as c6,
         D1.c7 as c7,
         D1.c8 as c8,
         D1.c9 as c9,
         D1.c10 as c10,
         D1.c11 as c11,
         D1.c12 as c12,
         D1.c13 as c13,
         D1.c14 as c14,
         D1.c15 as c15,
         D1.c16 as c16,
         D1.c17 as c17,
         sum(D1.c15) over (partition by D1.c10, D1.c2, D1.c4, D1.c8, D1.c13)
         as c18,
         D1.c19 as c19,
         D1.c20 as c20,
         D1.c21 as c21,
         D1.c22 as c22,
         sum(D1.c15) over (partition by D1.c10, D1.c4, D1.c8, D1.c13)  as c23,
         D1.c24 as c24,
         D1.c25 as c25,
         D1.c26 as c26
         from
         SAWITH1 D1
         union all
         select distinct 1 as c1,
         D1.c9 as c2,
         D1.c8 as c3,
         D1.c7 as c4,
         D1.c6 as c5,
         D1.c5 as c6,
         D1.c4 as c7,
         D1.c3 as c8,
         D1.c10 as c9,
         D1.c11 as c10,
         NULL as c11,
         D1.c12 as c12,
         D1.c2 as c13,
         NULL as c14,
         cast(NULL as  DOUBLE PRECISION  ) as c15,
         cast(NULL as  DOUBLE PRECISION  ) as c16,
         cast(NULL as  DOUBLE PRECISION  ) as c17,
         cast(NULL as  DOUBLE PRECISION  ) as c18,
         cast(NULL as  DOUBLE PRECISION  ) as c19,
         cast(NULL as  DOUBLE PRECISION  ) as c20,
         cast(NULL as  DOUBLE PRECISION  ) as c21,
         cast(NULL as  DOUBLE PRECISION  ) as c22,
         cast(NULL as  DOUBLE PRECISION  ) as c23,
         cast(NULL as  DOUBLE PRECISION  ) as c24,
         cast(NULL as  DOUBLE PRECISION  ) as c25,
         cast(NULL as  DOUBLE PRECISION  ) as c26
         from
         SAWITH2 D1
         where  ( 0 < nvl(D1.c1 , 0) )
         union all
         select D1.c1 as c1,
         D1.c2 as c2,
         D1.c3 as c3,
         D1.c4 as c4,
         D1.c5 as c5,
         D1.c6 as c6,
         D1.c7 as c7,
         D1.c8 as c8,
         D1.c9 as c9,
         D1.c10 as c10,
         D1.c11 as c11,
         D1.c12 as c12,
         D1.c13 as c13,
         D1.c14 as c14,
         D1.c15 as c15,
         D1.c16 as c16,
         sum(D1.c15) over (partition by D1.c10, D1.c2, D1.c3, D1.c4, D1.c8,
         D1.c13)  as c17,
         sum(D1.c15) over (partition by D1.c10, D1.c2, D1.c4, D1.c8, D1.c13)
         as c18,
         D1.c19 as c19,
         D1.c20 as c20,
         D1.c21 as c21,
         sum(D1.c15) over (partition by D1.c10, D1.c3, D1.c4, D1.c8, D1.c13)
         as c22,
         sum(D1.c15) over (partition by D1.c10, D1.c4, D1.c8, D1.c13)  as c23,
         D1.c24 as c24,
         D1.c25 as c25,
         D1.c26 as c26
         from
         SAWITH4 D1
         union all
         select D1.c1 as c1,
         D1.c2 as c2,
         D1.c3 as c3,
         D1.c4 as c4,
         D1.c5 as c5,
         D1.c6 as c6,
         D1.c7 as c7,
         D1.c8 as c8,
         D1.c9 as c9,
         D1.c10 as c10,
         D1.c11 as c11,
         D1.c12 as c12,
         D1.c13 as c13,
         D1.c14 as c14,
         D1.c15 as c15,
         D1.c16 as c16,
         D1.c17 as c17,
         D1.c18 as c18,
         sum(D1.c15) over (partition by D1.c12, D1.c10, D1.c9, D1.c2, D1.c4,
         D1.c5, D1.c8)  as c19,
         sum(D1.c15) over (partition by D1.c12, D1.c10, D1.c9, D1.c2, D1.c4,
         D1.c8)  as c20,
         sum(D1.c15) over (partition by D1.c12, D1.c10, D1.c9, D1.c2, D1.c4,
         D1.c5, D1.c6, D1.c7, D1.c8)  as c21,
         D1.c22 as c22,
         D1.c23 as c23,
         sum(D1.c15) over (partition by D1.c12, D1.c10, D1.c9, D1.c4, D1.c5,
         D1.c8)  as c24,
         sum(D1.c15) over (partition by D1.c12, D1.c10, D1.c9, D1.c4, D1.c8)
         as c25,
         sum(D1.c15) over (partition by D1.c12, D1.c10, D1.c9, D1.c4, D1.c5,
         D1.c6, D1.c7, D1.c8)  as c26
         from
         SAWITH6 D1))
         select D1.c1 as c1, D1.c2 as c2, D1.c3 as c3, D1.c4 as c4, D1.c5 as
         c5, D1.c6 as c6, D1.c7 as c7, D1.c8 as c8, D1.c9 as c9, D1.c10 as
         c10, D1.c11 as c11, D1.c12 as c12, D1.c13 as c13, D1.c14 as c14,
         D1.c15 as c15, D1.c16 as c16, D1.c17 as c17, D1.c18 as c18, D1.c19 as
         c19, D1.c20 as c20, D1.c21 as c21, D1.c22 as c22, D1.c23 as c23,
         D1.c24 as c24, D1.c25 as c25, D1.c26 as c26 from ( select D1.c1 as
         c1,
         D1.c2 as c2,
         D1.c3 as c3,
         D1.c4 as c4,
         D1.c5 as c5,
         D1.c6 as c6,
         D1.c7 as c7,
         D1.c8 as c8,
         D1.c9 as c9,
         D1.c10 as c10,
         D1.c11 as c11,
         D1.c12 as c12,
         D1.c13 as c13,
         D1.c14 as c14,
         D1.c15 as c15,
         D1.c16 as c16,
         D1.c17 as c17,
         D1.c18 as c18,
         D1.c19 as c19,
         D1.c20 as c20,
         D1.c21 as c21,
         D1.c22 as c22,
         D1.c23 as c23,
         D1.c24 as c24,
         D1.c25 as c25,
         D1.c26 as c26
         from
         SAWITH7 D1
         order by c1, c10, c8, c4, c2, c13 ) D1 where rownum <= 5000001
   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.

   Recommendation 2: SQL Tuning
   Estimated benefit is .08 active sessions, 9.49% of total activity.
   ------------------------------------------------------------------
   Action
      Run SQL Tuning Advisor on the SELECT statement with SQL_ID
      "4n8nqjf75ac38".
      Related Object
         SQL statement with SQL_ID 4n8nqjf75ac38.
         WITH
         OBISUBWITH0 AS (select D1.c1 as c1
         from
         (select D1.c1 as c1,
         Case when D1.c2 is not null then Rank() OVER ( ORDER BY D1.c2) end as
         c2
         from
         (select distinct D1.c2 as c1,
         D1.c2 as c2,
         D1.c2 as c3
         from
         (select sum(T80629.NUMBER3) as c1,
         T5959.CUSTOMER_BUSINESS_UNIT_NAME as c2
         from
         DIM_V_CUSTOMER T5959,
         FACT_V_REALTIME_CUSTOMER_DATA T80629
         where  ( T5959.DIMENSION_KEY = T80629.CUSTOMER and T80629.DATASET =
         12 and (T5959.CUSTOMER_BUSINESS_UNIT_CODE in ('0', '3060')) and
         T5959.CUSTOMER_BUSINESS_UNIT_CODE >= '3000' )
         group by T5959.CUSTOMER_BUSINESS_UNIT_NAME
         having 0 < nvl(sum(T80629.NUMBER3) , 0)
         ) D1
         ) D1
         ) D1
         where  ( D1.c2 <= 1 ) ),
         OBISUBWITH1 AS (select D1.c1 as c1
         from
         (select D1.c2 as c1,
         Case when D1.c3 is not null then Rank() OVER ( PARTITION BY D1.c1
         ORDER BY D1.c3) end as c2
         from
         (select distinct D1.c2 as c1,
         D1.c3 as c2,
         D1.c3 as c3,
         D1.c3 as c4
         from
         (select sum(T80629.NUMBER3) as c1,
         T5959.CUSTOMER_BUSINESS_UNIT_NAME as c2,
         T5959.CUSTOMER_NUMBER as c3
         from
         DIM_V_CUSTOMER T5959,
         FACT_V_REALTIME_CUSTOMER_DATA T80629
         where  ( T5959.DIMENSION_KEY = T80629.CUSTOMER and T80629.DATASET =
         12 and (T5959.CUSTOMER_BUSINESS_UNIT_CODE in ('0', '3060')) and
         T5959.CUSTOMER_BUSINESS_UNIT_CODE >= '3000' )
         group by T5959.CUSTOMER_NUMBER, T5959.CUSTOMER_BUSINESS_UNIT_NAME
         having 0 < nvl(sum(T80629.NUMBER3) , 0)
         ) D1
         ) D1
         ) D1
         where  ( D1.c2 <= 1 ) ),
         OBISUBWITH2 AS (select D1.c1 as c1
         from
         (select D1.c1 as c1,
         Case when D1.c2 is not null then Rank() OVER ( ORDER BY D1.c2) end as
         c2
         from
         (select distinct D1.c2 as c1,
         D1.c2 as c2,
         D1.c2 as c3
         from
         (select sum(T80629.NUMBER3) as c1,
         T80629.DATE1 as c2
         from
         DIM_V_CUSTOMER T5959,
         FACT_V_REALTIME_CUSTOMER_DATA T80629
         where  ( T5959.DIMENSION_KEY = T80629.CUSTOMER and T80629.DATASET =
         12 and (T5959.CUSTOMER_BUSINESS_UNIT_CODE in ('0', '3060')) and
         T5959.CUSTOMER_BUSINESS_UNIT_CODE >= '3000' )
         group by T80629.DATE1
         having 0 < nvl(sum(T80629.NUMBER3) , 0)
         ) D1
         ) D1
         ) D1
         where  ( D1.c2 <= 1 ) ),
         SAWITH0 AS (select sum(T80629.NUMBER3) as c1,
         sum(case  when not case  when T80629.TEXT8 = 'Completed' then
         'Completed' when T80629.TEXT8 in ('In Progress', 'New') then 'Packing
         notes' else 'Not generated' end  = 'Completed' then T80629.NUMBER3
         end ) as c2,
         case  when T80629.TEXT8 = 'Completed' then 'Completed' when
         T80629.TEXT8 in ('In Progress', 'New') then 'Packing notes' else 'To
         be generated' end  as c3,
         T80629.TEXT9 as c4,
         T80629.TEXT6 as c5,
         T80629.TEXT5 as c6,
         T80629.TEXT2 as c7,
         T80629.TEXT10 as c8,
         T80629.NUMBER1 as c9,
         T80629.DATE1 as c10,
         T5959.CUSTOMER_BUSINESS_UNIT_CODE as c11,
         T5959.CUSTOMER_BUSINESS_UNIT_NAME as c12,
         T5959.CUSTOMER_NUMBER as c13
         from
         DIM_V_CUSTOMER T5959,
         FACT_V_REALTIME_CUSTOMER_DATA T80629
         where  ( T5959.DIMENSION_KEY = T80629.CUSTOMER and T80629.DATASET =
         12 and (T5959.CUSTOMER_BUSINESS_UNIT_CODE in ('0', '3060')) and
         T5959.CUSTOMER_BUSINESS_UNIT_CODE >= '3000' )
         group by T5959.CUSTOMER_NUMBER, T5959.CUSTOMER_BUSINESS_UNIT_CODE,
         T5959.CUSTOMER_BUSINESS_UNIT_NAME, T80629.TEXT2, T80629.TEXT5,
         T80629.TEXT6, T80629.TEXT9, T80629.TEXT10, T80629.DATE1,
         T80629.NUMBER1, case  when T80629.TEXT8 = 'Completed' then
         'Completed' when T80629.TEXT8 in ('In Progress', 'New') then 'Packing
         notes' else 'To be generated' end ),
         SAWITH1 AS (select distinct 0 as c1,
         D1.c10 as c2,
         D1.c9 as c3,
         D1.c8 as c4,
         D1.c7 as c5,
         D1.c6 as c6,
         D1.c5 as c7,
         D1.c4 as c8,
         D1.c11 as c9,
         D1.c12 as c10,
         NULL as c11,
         D1.c13 as c12,
         D1.c3 as c13,
         NULL as c14,
         nvl(D1.c1 , 0) as c15,
         nvl(D1.c2 , 0) as c16,
         cast(NULL as  DOUBLE PRECISION  ) as c17,
         cast(NULL as  DOUBLE PRECISION  ) as c19,
         cast(NULL as  DOUBLE PRECISION  ) as c20,
         cast(NULL as  DOUBLE PRECISION  ) as c21,
         cast(NULL as  DOUBLE PRECISION  ) as c22,
         cast(NULL as  DOUBLE PRECISION  ) as c24,
         cast(NULL as  DOUBLE PRECISION  ) as c25,
         cast(NULL as  DOUBLE PRECISION  ) as c26
         from
         SAWITH0 D1
         where  ( 0 < nvl(D1.c1 , 0) ) ),
         SAWITH2 AS (select sum(T80629.NUMBER3) as c1,
         case  when T80629.TEXT8 = 'Completed' then 'Completed' when
         T80629.TEXT8 in ('In Progress', 'New') then 'Packing notes' else 'To
         be generated' end  as c2,
         T80629.TEXT9 as c3,
         T80629.TEXT6 as c4,
         T80629.TEXT5 as c5,
         T80629.TEXT2 as c6,
         T80629.TEXT10 as c7,
         T80629.NUMBER1 as c8,
         T80629.DATE1 as c9,
         T5959.CUSTOMER_BUSINESS_UNIT_CODE as c10,
         T5959.CUSTOMER_BUSINESS_UNIT_NAME as c11,
         T5959.CUSTOMER_NUMBER as c12
         from
         DIM_V_CUSTOMER T5959,
         FACT_V_REALTIME_CUSTOMER_DATA T80629
         where  ( T5959.DIMENSION_KEY = T80629.CUSTOMER and T80629.DATASET =
         12 and (T5959.CUSTOMER_BUSINESS_UNIT_CODE in ('0', '3060')) and
         T5959.CUSTOMER_BUSINESS_UNIT_CODE >= '3000' )
         group by T5959.CUSTOMER_NUMBER, T5959.CUSTOMER_BUSINESS_UNIT_CODE,
         T5959.CUSTOMER_BUSINESS_UNIT_NAME, T80629.TEXT2, T80629.TEXT5,
         T80629.TEXT6, T80629.TEXT9, T80629.TEXT10, T80629.DATE1,
         T80629.NUMBER1, case  when T80629.TEXT8 = 'Completed' then
         'Completed' when T80629.TEXT8 in ('In Progress', 'New') then 'Packing
         notes' else 'To be generated' end ),
         SAWITH3 AS (select sum(T80629.NUMBER3) as c1,
         sum(case  when not case  when T80629.TEXT8 = 'Completed' then
         'Completed' when T80629.TEXT8 in ('In Progress', 'New') then 'Packing
         notes' else 'Not generated' end  = 'Completed' then T80629.NUMBER3
         end ) as c2,
         case  when T80629.TEXT8 = 'Completed' then 'Completed' when
         T80629.TEXT8 in ('In Progress', 'New') then 'Packing notes' else 'To
         be generated' end  as c3,
         T80629.TEXT9 as c4,
         T80629.TEXT6 as c5,
         T80629.TEXT5 as c6,
         T80629.TEXT2 as c7,
         T80629.TEXT10 as c8,
         T80629.NUMBER1 as c9,
         T80629.DATE1 as c10,
         T5959.CUSTOMER_BUSINESS_UNIT_CODE as c11,
         T5959.CUSTOMER_BUSINESS_UNIT_NAME as c12,
         T5959.CUSTOMER_NUMBER as c13
         from
         DIM_V_CUSTOMER T5959,
         FACT_V_REALTIME_CUSTOMER_DATA T80629
         where  ( T5959.DIMENSION_KEY = T80629.CUSTOMER and T80629.DATASET =
         12 and T5959.CUSTOMER_BUSINESS_UNIT_CODE >= '3000' and
         (T5959.CUSTOMER_BUSINESS_UNIT_CODE in ('0', '3060')) and T80629.DATE1
         in (select distinct D1.c1 as c1
         from
         OBISUBWITH2 D1) )
         group by T5959.CUSTOMER_NUMBER, T5959.CUSTOMER_BUSINESS_UNIT_CODE,
         T5959.CUSTOMER_BUSINESS_UNIT_NAME, T80629.TEXT2, T80629.TEXT5,
         T80629.TEXT6, T80629.TEXT9, T80629.TEXT10, T80629.DATE1,
         T80629.NUMBER1, case  when T80629.TEXT8 = 'Completed' then
         'Completed' when T80629.TEXT8 in ('In Progress', 'New') then 'Packing
         notes' else 'To be generated' end ),
         SAWITH4 AS (select distinct 2 as c1,
         D1.c10 as c2,
         D1.c9 as c3,
         D1.c8 as c4,
         D1.c7 as c5,
         D1.c6 as c6,
         D1.c5 as c7,
         D1.c4 as c8,
         D1.c11 as c9,
         D1.c12 as c10,
         NULL as c11,
         D1.c13 as c12,
         D1.c3 as c13,
         NULL as c14,
         nvl(D1.c1 , 0) as c15,
         nvl(D1.c2 , 0) as c16,
         cast(NULL as  DOUBLE PRECISION  ) as c19,
         cast(NULL as  DOUBLE PRECISION  ) as c20,
         cast(NULL as  DOUBLE PRECISION  ) as c21,
         cast(NULL as  DOUBLE PRECISION  ) as c24,
         cast(NULL as  DOUBLE PRECISION  ) as c25,
         cast(NULL as  DOUBLE PRECISION  ) as c26
         from
         SAWITH3 D1
         where  ( 0 < nvl(D1.c1 , 0) ) ),
         SAWITH5 AS (select sum(T80629.NUMBER3) as c1,
         sum(case  when not case  when T80629.TEXT8 = 'Completed' then
         'Completed' when T80629.TEXT8 in ('In Progress', 'New') then 'Packing
         notes' else 'Not generated' end  = 'Completed' then T80629.NUMBER3
         end ) as c2,
         case  when T80629.TEXT8 = 'Completed' then 'Completed' when
         T80629.TEXT8 in ('In Progress', 'New') then 'Packing notes' else 'To
         be generated' end  as c3,
         T80629.TEXT9 as c4,
         T80629.TEXT6 as c5,
         T80629.TEXT5 as c6,
         T80629.TEXT2 as c7,
         T80629.TEXT10 as c8,
         T80629.NUMBER1 as c9,
         T80629.DATE1 as c10,
         T5959.CUSTOMER_BUSINESS_UNIT_CODE as c11,
         T5959.CUSTOMER_BUSINESS_UNIT_NAME as c12,
         T5959.NAME as c13,
         T5959.CUSTOMER_NUMBER as c14,
         T5959.DIMENSION_KEY as c15
         from
         DIM_V_CUSTOMER T5959,
         FACT_V_REALTIME_CUSTOMER_DATA T80629
         where  ( T5959.DIMENSION_KEY = T80629.CUSTOMER and T80629.DATASET =
         12 and T5959.CUSTOMER_BUSINESS_UNIT_CODE >= '3000' and
         T5959.CUSTOMER_NUMBER in (select distinct D1.c1 as c1
         from
         OBISUBWITH1 D1) and (T5959.CUSTOMER_BUSINESS_UNIT_CODE in ('0',
         '3060')) and T5959.CUSTOMER_BUSINESS_UNIT_NAME in (select distinct
         D1.c1 as c1
         from
         OBISUBWITH0 D1) )
         group by T5959.DIMENSION_KEY, T5959.CUSTOMER_NUMBER,
         T5959.CUSTOMER_BUSINESS_UNIT_CODE, T5959.CUSTOMER_BUSINESS_UNIT_NAME,
         T5959.NAME, T80629.TEXT2, T80629.TEXT5, T80629.TEXT6, T80629.TEXT9,
         T80629.TEXT10, T80629.DATE1, T80629.NUMBER1, case  when T80629.TEXT8
         = 'Completed' then 'Completed' when T80629.TEXT8 in ('In Progress',
         'New') then 'Packing notes' else 'To be generated' end ),
         SAWITH6 AS (select distinct 3 as c1,
         D1.c10 as c2,
         D1.c9 as c3,
         D1.c8 as c4,
         D1.c7 as c5,
         D1.c6 as c6,
         D1.c5 as c7,
         D1.c4 as c8,
         D1.c11 as c9,
         D1.c12 as c10,
         D1.c13 as c11,
         D1.c14 as c12,
         D1.c3 as c13,
         NULL as c14,
         nvl(D1.c1 , 0) as c15,
         nvl(D1.c2 , 0) as c16,
         cast(NULL as  DOUBLE PRECISION  ) as c17,
         cast(NULL as  DOUBLE PRECISION  ) as c18,
         cast(NULL as  DOUBLE PRECISION  ) as c22,
         cast(NULL as  DOUBLE PRECISION  ) as c23,
         D1.c15 as c27
         from
         SAWITH5 D1
         where  ( 0 < nvl(D1.c1 , 0) ) ),
         SAWITH7 AS ((select D1.c1 as c1,
         D1.c2 as c2,
         D1.c3 as c3,
         D1.c4 as c4,
         D1.c5 as c5,
         D1.c6 as c6,
         D1.c7 as c7,
         D1.c8 as c8,
         D1.c9 as c9,
         D1.c10 as c10,
         D1.c11 as c11,
         D1.c12 as c12,
         D1.c13 as c13,
         D1.c14 as c14,
         D1.c15 as c15,
         D1.c16 as c16,
         D1.c17 as c17,
         sum(D1.c15) over (partition by D1.c10, D1.c2, D1.c4, D1.c8, D1.c13)
         as c18,
         D1.c19 as c19,
         D1.c20 as c20,
         D1.c21 as c21,
         D1.c22 as c22,
         sum(D1.c15) over (partition by D1.c10, D1.c4, D1.c8, D1.c13)  as c23,
         D1.c24 as c24,
         D1.c25 as c25,
         D1.c26 as c26
         from
         SAWITH1 D1
         union all
         select distinct 1 as c1,
         D1.c9 as c2,
         D1.c8 as c3,
         D1.c7 as c4,
         D1.c6 as c5,
         D1.c5 as c6,
         D1.c4 as c7,
         D1.c3 as c8,
         D1.c10 as c9,
         D1.c11 as c10,
         NULL as c11,
         D1.c12 as c12,
         D1.c2 as c13,
         NULL as c14,
         cast(NULL as  DOUBLE PRECISION  ) as c15,
         cast(NULL as  DOUBLE PRECISION  ) as c16,
         cast(NULL as  DOUBLE PRECISION  ) as c17,
         cast(NULL as  DOUBLE PRECISION  ) as c18,
         cast(NULL as  DOUBLE PRECISION  ) as c19,
         cast(NULL as  DOUBLE PRECISION  ) as c20,
         cast(NULL as  DOUBLE PRECISION  ) as c21,
         cast(NULL as  DOUBLE PRECISION  ) as c22,
         cast(NULL as  DOUBLE PRECISION  ) as c23,
         cast(NULL as  DOUBLE PRECISION  ) as c24,
         cast(NULL as  DOUBLE PRECISION  ) as c25,
         cast(NULL as  DOUBLE PRECISION  ) as c26
         from
         SAWITH2 D1
         where  ( 0 < nvl(D1.c1 , 0) )
         union all
         select D1.c1 as c1,
         D1.c2 as c2,
         D1.c3 as c3,
         D1.c4 as c4,
         D1.c5 as c5,
         D1.c6 as c6,
         D1.c7 as c7,
         D1.c8 as c8,
         D1.c9 as c9,
         D1.c10 as c10,
         D1.c11 as c11,
         D1.c12 as c12,
         D1.c13 as c13,
         D1.c14 as c14,
         D1.c15 as c15,
         D1.c16 as c16,
         sum(D1.c15) over (partition by D1.c10, D1.c2, D1.c3, D1.c4, D1.c8,
         D1.c13)  as c17,
         sum(D1.c15) over (partition by D1.c10, D1.c2, D1.c4, D1.c8, D1.c13)
         as c18,
         D1.c19 as c19,
         D1.c20 as c20,
         D1.c21 as c21,
         sum(D1.c15) over (partition by D1.c10, D1.c3, D1.c4, D1.c8, D1.c13)
         as c22,
         sum(D1.c15) over (partition by D1.c10, D1.c4, D1.c8, D1.c13)  as c23,
         D1.c24 as c24,
         D1.c25 as c25,
         D1.c26 as c26
         from
         SAWITH4 D1
         union all
         select D1.c1 as c1,
         D1.c2 as c2,
         D1.c3 as c3,
         D1.c4 as c4,
         D1.c5 as c5,
         D1.c6 as c6,
         D1.c7 as c7,
         D1.c8 as c8,
         D1.c9 as c9,
         D1.c10 as c10,
         D1.c11 as c11,
         D1.c12 as c12,
         D1.c13 as c13,
         D1.c14 as c14,
         D1.c15 as c15,
         D1.c16 as c16,
         D1.c17 as c17,
         D1.c18 as c18,
         sum(D1.c15) over (partition by D1.c12, D1.c10, D1.c9, D1.c2, D1.c4,
         D1.c5, D1.c8)  as c19,
         sum(D1.c15) over (partition by D1.c12, D1.c10, D1.c9, D1.c2, D1.c4,
         D1.c8)  as c20,
         sum(D1.c15) over (partition by D1.c12, D1.c10, D1.c9, D1.c2, D1.c4,
         D1.c5, D1.c6, D1.c7, D1.c8)  as c21,
         D1.c22 as c22,
         D1.c23 as c23,
         sum(D1.c15) over (partition by D1.c12, D1.c10, D1.c9, D1.c4, D1.c5,
         D1.c8)  as c24,
         sum(D1.c15) over (partition by D1.c12, D1.c10, D1.c9, D1.c4, D1.c8)
         as c25,
         sum(D1.c15) over (partition by D1.c12, D1.c10, D1.c9, D1.c4, D1.c5,
         D1.c6, D1.c7, D1.c8)  as c26
         from
         SAWITH6 D1))
         select D1.c1 as c1, D1.c2 as c2, D1.c3 as c3, D1.c4 as c4, D1.c5 as
         c5, D1.c6 as c6, D1.c7 as c7, D1.c8 as c8, D1.c9 as c9, D1.c10 as
         c10, D1.c11 as c11, D1.c12 as c12, D1.c13 as c13, D1.c14 as c14,
         D1.c15 as c15, D1.c16 as c16, D1.c17 as c17, D1.c18 as c18, D1.c19 as
         c19, D1.c20 as c20, D1.c21 as c21, D1.c22 as c22, D1.c23 as c23,
         D1.c24 as c24, D1.c25 as c25, D1.c26 as c26 from ( select D1.c1 as
         c1,
         D1.c2 as c2,
         D1.c3 as c3,
         D1.c4 as c4,
         D1.c5 as c5,
         D1.c6 as c6,
         D1.c7 as c7,
         D1.c8 as c8,
         D1.c9 as c9,
         D1.c10 as c10,
         D1.c11 as c11,
         D1.c12 as c12,
         D1.c13 as c13,
         D1.c14 as c14,
         D1.c15 as c15,
         D1.c16 as c16,
         D1.c17 as c17,
         D1.c18 as c18,
         D1.c19 as c19,
         D1.c20 as c20,
         D1.c21 as c21,
         D1.c22 as c22,
         D1.c23 as c23,
         D1.c24 as c24,
         D1.c25 as c25,
         D1.c26 as c26
         from
         SAWITH7 D1
         order by c1, c10, c8, c4, c2, c13 ) D1 where rownum <= 5000001
   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.

   Recommendation 3: SQL Tuning
   Estimated benefit is .07 active sessions, 8.23% of total activity.
   ------------------------------------------------------------------
   Action
      Run SQL Tuning Advisor on the SELECT statement with SQL_ID
      "422ydn0svdm6t".
      Related Object
         SQL statement with SQL_ID 422ydn0svdm6t.
         WITH
         OBISUBWITH0 AS (select D1.c1 as c1
         from
         (select D1.c1 as c1,
         Case when D1.c2 is not null then Rank() OVER ( ORDER BY D1.c2) end as
         c2
         from
         (select distinct D1.c2 as c1,
         D1.c2 as c2,
         D1.c2 as c3
         from
         (select sum(T80629.NUMBER3) as c1,
         T5959.CUSTOMER_BUSINESS_UNIT_NAME as c2
         from
         DIM_V_CUSTOMER T5959,
         FACT_V_REALTIME_CUSTOMER_DATA T80629
         where  ( T5959.DIMENSION_KEY = T80629.CUSTOMER and T80629.DATASET =
         12 and T5959.CUSTOMER_BUSINESS_UNIT_CODE >= '3000' )
         group by T5959.CUSTOMER_BUSINESS_UNIT_NAME
         having 0 < nvl(sum(T80629.NUMBER3) , 0)
         ) D1
         ) D1
         ) D1
         where  ( D1.c2 <= 1 ) ),
         OBISUBWITH1 AS (select D1.c1 as c1
         from
         (select D1.c1 as c1,
         Case when D1.c2 is not null then Rank() OVER ( ORDER BY D1.c2) end as
         c2
         from
         (select distinct D1.c2 as c1,
         D1.c2 as c2,
         D1.c2 as c3
         from
         (select sum(T80629.NUMBER3) as c1,
         T80629.DATE1 as c2
         from
         DIM_V_CUSTOMER T5959,
         FACT_V_REALTIME_CUSTOMER_DATA T80629
         where  ( T5959.DIMENSION_KEY = T80629.CUSTOMER and T80629.DATASET =
         12 and T5959.CUSTOMER_BUSINESS_UNIT_CODE >= '3000' )
         group by T80629.DATE1
         having 0 < nvl(sum(T80629.NUMBER3) , 0)
         ) D1
         ) D1
         ) D1
         where  ( D1.c2 <= 1 ) ),
         SAWITH0 AS (select sum(T80629.NUMBER3) as c1,
         sum(case  when not case  when T80629.TEXT8 = 'Completed' then
         'Completed' when T80629.TEXT8 in ('In Progress', 'New') then 'Packing
         notes' else 'Not generated' end  = 'Completed' then T80629.NUMBER3
         end ) as c2,
         case  when T80629.TEXT8 = 'Completed' then 'Completed' when
         T80629.TEXT8 in ('In Progress', 'New') then 'Packing notes' else 'To
         be generated' end  as c3,
         T80629.TEXT9 as c4,
         T80629.TEXT6 as c5,
         T80629.TEXT5 as c6,
         T80629.TEXT2 as c7,
         T80629.TEXT10 as c8,
         T80629.NUMBER1 as c9,
         T80629.DATE1 as c10,
         T5959.CUSTOMER_BUSINESS_UNIT_CODE as c11,
         T5959.CUSTOMER_BUSINESS_UNIT_NAME as c12,
         T5959.CUSTOMER_NUMBER as c13
         from
         DIM_V_CUSTOMER T5959,
         FACT_V_REALTIME_CUSTOMER_DATA T80629
         where  ( T5959.DIMENSION_KEY = T80629.CUSTOMER and T80629.DATASET =
         12 and T5959.CUSTOMER_BUSINESS_UNIT_CODE >= '3000' )
         group by T5959.CUSTOMER_NUMBER, T5959.CUSTOMER_BUSINESS_UNIT_CODE,
         T5959.CUSTOMER_BUSINESS_UNIT_NAME, T80629.TEXT2, T80629.TEXT5,
         T80629.TEXT6, T80629.TEXT9, T80629.TEXT10, T80629.DATE1,
         T80629.NUMBER1, case  when T80629.TEXT8 = 'Completed' then
         'Completed' when T80629.TEXT8 in ('In Progress', 'New') then 'Packing
         notes' else 'To be generated' end ),
         SAWITH1 AS (select distinct 0 as c1,
         D1.c10 as c2,
         D1.c9 as c3,
         D1.c8 as c4,
         D1.c7 as c5,
         D1.c6 as c6,
         D1.c5 as c7,
         D1.c4 as c8,
         D1.c11 as c9,
         D1.c12 as c10,
         D1.c13 as c11,
         D1.c3 as c12,
         NULL as c13,
         nvl(D1.c1 , 0) as c14,
         nvl(D1.c2 , 0) as c15,
         cast(NULL as  DOUBLE PRECISION  ) as c16,
         cast(NULL as  DOUBLE PRECISION  ) as c17,
         cast(NULL as  DOUBLE PRECISION  ) as c19,
         cast(NULL as  DOUBLE PRECISION  ) as c20
         from
         SAWITH0 D1
         where  ( 0 < nvl(D1.c1 , 0) ) ),
         SAWITH2 AS (select sum(T80629.NUMBER3) as c1,
         case  when T80629.TEXT8 = 'Completed' then 'Completed' when
         T80629.TEXT8 in ('In Progress', 'New') then 'Packing notes' else 'To
         be generated' end  as c2,
         T80629.TEXT9 as c3,
         T80629.TEXT6 as c4,
         T80629.TEXT5 as c5,
         T80629.TEXT2 as c6,
         T80629.TEXT10 as c7,
         T80629.NUMBER1 as c8,
         T80629.DATE1 as c9,
         T5959.CUSTOMER_BUSINESS_UNIT_CODE as c10,
         T5959.CUSTOMER_BUSINESS_UNIT_NAME as c11,
         T5959.CUSTOMER_NUMBER as c12
         from
         DIM_V_CUSTOMER T5959,
         FACT_V_REALTIME_CUSTOMER_DATA T80629
         where  ( T5959.DIMENSION_KEY = T80629.CUSTOMER and T80629.DATASET =
         12 and T5959.CUSTOMER_BUSINESS_UNIT_CODE >= '3000' )
         group by T5959.CUSTOMER_NUMBER, T5959.CUSTOMER_BUSINESS_UNIT_CODE,
         T5959.CUSTOMER_BUSINESS_UNIT_NAME, T80629.TEXT2, T80629.TEXT5,
         T80629.TEXT6, T80629.TEXT9, T80629.TEXT10, T80629.DATE1,
         T80629.NUMBER1, case  when T80629.TEXT8 = 'Completed' then
         'Completed' when T80629.TEXT8 in ('In Progress', 'New') then 'Packing
         notes' else 'To be generated' end ),
         SAWITH3 AS (select sum(T80629.NUMBER3) as c1,
         sum(case  when not case  when T80629.TEXT8 = 'Completed' then
         'Completed' when T80629.TEXT8 in ('In Progress', 'New') then 'Packing
         notes' else 'Not generated' end  = 'Completed' then T80629.NUMBER3
         end ) as c2,
         case  when T80629.TEXT8 = 'Completed' then 'Completed' when
         T80629.TEXT8 in ('In Progress', 'New') then 'Packing notes' else 'To
         be generated' end  as c3,
         T80629.TEXT9 as c4,
         T80629.TEXT6 as c5,
         T80629.TEXT5 as c6,
         T80629.TEXT2 as c7,
         T80629.TEXT10 as c8,
         T80629.NUMBER1 as c9,
         T80629.DATE1 as c10,
         T5959.CUSTOMER_BUSINESS_UNIT_CODE as c11,
         T5959.CUSTOMER_BUSINESS_UNIT_NAME as c12,
         T5959.CUSTOMER_NUMBER as c13
         from
         DIM_V_CUSTOMER T5959,
         FACT_V_REALTIME_CUSTOMER_DATA T80629
         where  ( T5959.DIMENSION_KEY = T80629.CUSTOMER and T80629.DATASET =
         12 and T5959.CUSTOMER_BUSINESS_UNIT_CODE >= '3000' and T80629.DATE1
         in (select distinct D1.c1 as c1
         from
         OBISUBWITH1 D1) )
         group by T5959.CUSTOMER_NUMBER, T5959.CUSTOMER_BUSINESS_UNIT_CODE,
         T5959.CUSTOMER_BUSINESS_UNIT_NAME, T80629.TEXT2, T80629.TEXT5,
         T80629.TEXT6, T80629.TEXT9, T80629.TEXT10, T80629.DATE1,
         T80629.NUMBER1, case  when T80629.TEXT8 = 'Completed' then
         'Completed' when T80629.TEXT8 in ('In Progress', 'New') then 'Packing
         notes' else 'To be generated' end ),
         SAWITH4 AS (select distinct 2 as c1,
         D1.c10 as c2,
         D1.c9 as c3,
         D1.c8 as c4,
         D1.c7 as c5,
         D1.c6 as c6,
         D1.c5 as c7,
         D1.c4 as c8,
         D1.c11 as c9,
         D1.c12 as c10,
         D1.c13 as c11,
         D1.c3 as c12,
         NULL as c13,
         nvl(D1.c1 , 0) as c14,
         nvl(D1.c2 , 0) as c15,
         cast(NULL as  DOUBLE PRECISION  ) as c17,
         cast(NULL as  DOUBLE PRECISION  ) as c19
         from
         SAWITH3 D1
         where  ( 0 < nvl(D1.c1 , 0) ) ),
         SAWITH5 AS (select sum(T80629.NUMBER3) as c1,
         sum(case  when not case  when T80629.TEXT8 = 'Completed' then
         'Completed' when T80629.TEXT8 in ('In Progress', 'New') then 'Packing
         notes' else 'Not generated' end  = 'Completed' then T80629.NUMBER3
         end ) as c2,
         case  when T80629.TEXT8 = 'Completed' then 'Completed' when
         T80629.TEXT8 in ('In Progress', 'New') then 'Packing notes' else 'To
         be generated' end  as c3,
         T80629.TEXT9 as c4,
         T80629.TEXT6 as c5,
         T80629.TEXT5 as c6,
         T80629.TEXT2 as c7,
         T80629.TEXT10 as c8,
         T80629.NUMBER1 as c9,
         T80629.DATE1 as c10,
         T5959.CUSTOMER_BUSINESS_UNIT_CODE as c11,
         T5959.CUSTOMER_BUSINESS_UNIT_NAME as c12,
         T5959.CUSTOMER_NUMBER as c13
         from
         DIM_V_CUSTOMER T5959,
         FACT_V_REALTIME_CUSTOMER_DATA T80629
         where  ( T5959.DIMENSION_KEY = T80629.CUSTOMER and T80629.DATASET =
         12 and T5959.CUSTOMER_BUSINESS_UNIT_CODE >= '3000' and
         T5959.CUSTOMER_BUSINESS_UNIT_NAME in (select distinct D1.c1 as c1
         from
         OBISUBWITH0 D1) )
         group by T5959.CUSTOMER_NUMBER, T5959.CUSTOMER_BUSINESS_UNIT_CODE,
         T5959.CUSTOMER_BUSINESS_UNIT_NAME, T80629.TEXT2, T80629.TEXT5,
         T80629.TEXT6, T80629.TEXT9, T80629.TEXT10, T80629.DATE1,
         T80629.NUMBER1, case  when T80629.TEXT8 = 'Completed' then
         'Completed' when T80629.TEXT8 in ('In Progress', 'New') then 'Packing
         notes' else 'To be generated' end ),
         SAWITH6 AS (select distinct 3 as c1,
         D1.c10 as c2,
         D1.c9 as c3,
         D1.c8 as c4,
         D1.c7 as c5,
         D1.c6 as c6,
         D1.c5 as c7,
         D1.c4 as c8,
         D1.c11 as c9,
         D1.c12 as c10,
         D1.c13 as c11,
         D1.c3 as c12,
         NULL as c13,
         nvl(D1.c1 , 0) as c14,
         nvl(D1.c2 , 0) as c15,
         cast(NULL as  DOUBLE PRECISION  ) as c16,
         cast(NULL as  DOUBLE PRECISION  ) as c18,
         cast(NULL as  DOUBLE PRECISION  ) as c20,
         cast(NULL as  DOUBLE PRECISION  ) as c21
         from
         SAWITH5 D1
         where  ( 0 < nvl(D1.c1 , 0) ) ),
         SAWITH7 AS ((select D1.c1 as c1,
         D1.c2 as c2,
         D1.c3 as c3,
         D1.c4 as c4,
         D1.c5 as c5,
         D1.c6 as c6,
         D1.c7 as c7,
         D1.c8 as c8,
         D1.c9 as c9,
         D1.c10 as c10,
         D1.c11 as c11,
         D1.c12 as c12,
         D1.c13 as c13,
         D1.c14 as c14,
         D1.c15 as c15,
         D1.c16 as c16,
         D1.c17 as c17,
         sum(D1.c14) over (partition by D1.c10, D1.c2, D1.c4, D1.c8, D1.c12)
         as c18,
         D1.c19 as c19,
         D1.c20 as c20,
         sum(D1.c14) over (partition by D1.c10, D1.c4, D1.c8, D1.c12)  as c21
         from
         SAWITH1 D1
         union all
         select distinct 1 as c1,
         D1.c9 as c2,
         D1.c8 as c3,
         D1.c7 as c4,
         D1.c6 as c5,
         D1.c5 as c6,
         D1.c4 as c7,
         D1.c3 as c8,
         D1.c10 as c9,
         D1.c11 as c10,
         D1.c12 as c11,
         D1.c2 as c12,
         NULL as c13,
         cast(NULL as  DOUBLE PRECISION  ) as c14,
         cast(NULL as  DOUBLE PRECISION  ) as c15,
         cast(NULL as  DOUBLE PRECISION  ) as c16,
         cast(NULL as  DOUBLE PRECISION  ) as c17,
         cast(NULL as  DOUBLE PRECISION  ) as c18,
         cast(NULL as  DOUBLE PRECISION  ) as c19,
         cast(NULL as  DOUBLE PRECISION  ) as c20,
         cast(NULL as  DOUBLE PRECISION  ) as c21
         from
         SAWITH2 D1
         where  ( 0 < nvl(D1.c1 , 0) )
         union all
         select D1.c1 as c1,
         D1.c2 as c2,
         D1.c3 as c3,
         D1.c4 as c4,
         D1.c5 as c5,
         D1.c6 as c6,
         D1.c7 as c7,
         D1.c8 as c8,
         D1.c9 as c9,
         D1.c10 as c10,
         D1.c11 as c11,
         D1.c12 as c12,
         D1.c13 as c13,
         D1.c14 as c14,
         D1.c15 as c15,
         sum(D1.c14) over (partition by D1.c10, D1.c2, D1.c3, D1.c4, D1.c8,
         D1.c12)  as c16,
         D1.c17 as c17,
         sum(D1.c14) over (partition by D1.c10, D1.c2, D1.c4, D1.c8, D1.c12)
         as c18,
         D1.c19 as c19,
         sum(D1.c14) over (partition by D1.c10, D1.c3, D1.c4, D1.c8, D1.c12)
         as c20,
         sum(D1.c14) over (partition by D1.c10, D1.c4, D1.c8, D1.c12)  as c21
         from
         SAWITH4 D1
         union all
         select D1.c1 as c1,
         D1.c2 as c2,
         D1.c3 as c3,
         D1.c4 as c4,
         D1.c5 as c5,
         D1.c6 as c6,
         D1.c7 as c7,
         D1.c8 as c8,
         D1.c9 as c9,
         D1.c10 as c10,
         D1.c11 as c11,
         D1.c12 as c12,
         D1.c13 as c13,
         D1.c14 as c14,
         D1.c15 as c15,
         D1.c16 as c16,
         sum(D1.c14) over (partition by D1.c10, D1.c9, D1.c2, D1.c4, D1.c8,
         D1.c12)  as c17,
         D1.c18 as c18,
         sum(D1.c14) over (partition by D1.c10, D1.c9, D1.c2, D1.c4, D1.c8)
         as c19,
         D1.c20 as c20,
         D1.c21 as c21
         from
         SAWITH6 D1))
         select D1.c1 as c1, D1.c2 as c2, D1.c3 as c3, D1.c4 as c4, D1.c5 as
         c5, D1.c6 as c6, D1.c7 as c7, D1.c8 as c8, D1.c9 as c9, D1.c10 as
         c10, D1.c11 as c11, D1.c12 as c12, D1.c13 as c13, D1.c14 as c14,
         D1.c15 as c15, D1.c16 as c16, D1.c17 as c17, D1.c18 as c18, D1.c19 as
         c19, D1.c20 as c20, D1.c21 as c21 from ( select D1.c1 as c1,
         D1.c2 as c2,
         D1.c3 as c3,
         D1.c4 as c4,
         D1.c5 as c5,
         D1.c6 as c6,
         D1.c7 as c7,
         D1.c8 as c8,
         D1.c9 as c9,
         D1.c10 as c10,
         D1.c11 as c11,
         D1.c12 as c12,
         D1.c13 as c13,
         D1.c14 as c14,
         D1.c15 as c15,
         D1.c16 as c16,
         D1.c17 as c17,
         D1.c18 as c18,
         D1.c19 as c19,
         D1.c20 as c20,
         D1.c21 as c21
         from
         SAWITH7 D1
         order by c1, c10, c8, c4, c2, c12 ) D1 where rownum <= 5000001
   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 "422ydn0svdm6t" was executed 23 times and had
      an average elapsed time of 11 seconds.
   Rationale
      At least 4 distinct execution plans were utilized for this SQL statement
      during the analysis period.

   Recommendation 4: SQL Tuning
   Estimated benefit is .04 active sessions, 5.06% of total activity.
   ------------------------------------------------------------------
   Action
      Run SQL Tuning Advisor on the SELECT statement with SQL_ID
      "2kbb65tvbd61p".
      Related Object
         SQL statement with SQL_ID 2kbb65tvbd61p.
         WITH
         SAWITH0 AS (select sum(T12363.QUANTITY_ORDERED) as c1,
         sum(T12363.NOCHARGEPREVREJECTED) as c2,
         sum(T12363.QUANTITY_DELIVERED) as c3,
         sum(T12363.REVENUE) as c4,
         sum(case  when T6115.REASON_CODE = 'C7' then
         T12363.QUANTITY_DELIVERED end ) as c5,
         sum(case  when T24684.ORIGIN_NUMBER = 3 and T6115.REASON_CODE in
         ('C5', 'URS') then T12363.QUANTITY_DELIVERED end ) as c6,
         sum(case  when T6115.REASON_DESCRIPTION = 'Unrecognised Shortages'
         and T24684.ORIGIN_NUMBER = 3 then T12363.QUANTITY_DELIVERED end ) as
         c7,
         sum(case  when T8705.YEAR in (2025) and T8705.MONTH_NAME_AND_YEAR in
         ('December 2025') then T12363.REVENUE end ) as c8,
         sum(case  when T8705.YEAR in (2025) and T8705.MONTH_NAME_AND_YEAR in
         ('December 2025') then T12363.QUANTITY_DELIVERED end ) as c9,
         sum(case  when T6115.REASON_CODE = 'C7' and T8705.YEAR in (2025) and
         T8705.MONTH_NAME_AND_YEAR in ('December 2025') then
         T12363.QUANTITY_DELIVERED end ) as c10,
         sum(case  when T8705.YEAR in (2025) and T8705.MONTH_NAME_AND_YEAR in
         ('December 2025') then T12363.NOCHARGEPREVREJECTED end ) as c11,
         sum(case  when T24684.ORIGIN_NUMBER = 3 and T6115.REASON_CODE in
         ('C5', 'URS') and T8705.YEAR in (2025) and T8705.MONTH_NAME_AND_YEAR
         in ('December 2025') then T12363.QUANTITY_DELIVERED end ) as c12,
         T5913.BUSINESS_UNIT_NAME as c13,
         T6063.PRODUCT_CODE as c14,
         T6063.PRODUCT_DESCRIPTION as c15,
         T5959.CHAIN as c16,
         T5959.NAME as c17,
         T8705.MONTH_NAME_AND_YEAR as c18,
         T8705.YEAR as c19,
         T5959.CUSTOMER_NUMBER as c20,
         T8705.MONTH_SOURCE_ID as c21,
         T5913.DIMENSION_KEY as c22,
         T5959.DIMENSION_KEY as c23,
         T6063.PRODUCT_SOURCE_ID as c24,
         T5959.CHAIN_CODE as c25
         from
         DELIVERY_NOTE T24684,
         DATE_CAL_MONTH_BASED T8705,
         (
         DIM_V_BUSINESS_UNIT T5913 inner join (
         DIM_V_PRODUCT T6063 inner join (
         DIM_V_CUSTOMER T5959 inner join FACT_DELIVERIES T12363 On
         T5959.DIMENSION_KEY = T12363.CUSTOMER) On T6063.DIMENSION_KEY =
         T12363.PRODUCT) On T5913.DIMENSION_KEY = T12363.BUSINESS_UNIT) left
         outer join
         REASON T6115 On T6115.DIMENSION_KEY = T12363.CORRECTIONREASON
         where  ( T6063.PRODUCT_GROUP_DESCRIPTION not in ('Container', 'Direct
         Sales', 'Miscellaneous') and T5913.DIVISION = 'Johnsons Hotel Linen'
         and T8705.DIMENSION_KEY = T12363.DATE_CAL_MONTH_BASED and
         T12363.DELIVERY_NOTE = T24684.DIMENSION_KEY and TO_DATE('2026-02-25'
         , 'YYYY-MM-DD') < T5959.DATE_INACTIVE and (T5913.BUSINESS_UNIT_CODE
         in ('0', '3030')) and T8705.MONTH_SEQ between T8705.CURRENT_MONTH_SEQ
         - 2 and T8705.CURRENT_MONTH_SEQ - 1 )
         group by T5913.DIMENSION_KEY, T5913.BUSINESS_UNIT_NAME,
         T5959.DIMENSION_KEY, T5959.CUSTOMER_NUMBER, T5959.CHAIN_CODE,
         T5959.CHAIN, T5959.NAME, T6063.PRODUCT_SOURCE_ID, T6063.PRODUCT_CODE,
         T6063.PRODUCT_DESCRIPTION, T8705.YEAR, T8705.MONTH_SOURCE_ID,
         T8705.MONTH_NAME_AND_YEAR)
         select 0 as c1,
         D1.c13 as c2,
         D1.c14 as c3,
         D1.c15 as c4,
         D1.c16 as c5,
         D1.c17 as c6,
         D1.c18 as c7,
         D1.c19 as c8,
         D1.c20 as c9,
         D1.c21 as c10,
         D1.c4 as c11,
         nvl(D1.c4 / nullif( nvl(D1.c3 , 0) - nvl(D1.c5 , 0) - (nvl(-D1.c5 ,
         0) + nvl(D1.c2 , 0)), 0) * nvl(D1.c6 * -1 , 0) , 0) as c12,
         nvl((nvl(nvl(D1.c7 , 0) , 0) + nvl(nvl(D1.c6 , 0) , 0)) * -1 * 100.0
         / nullif( D1.c1, 0) , 0) as c13,
         nvl(D1.c6 * -1 , 0) as c14,
         0 as c15,
         0 as c16,
         0 as c17,
         0 as c18,
         0 as c19,
         0 as c20,
         D1.c22 as c21,
         D1.c23 as c22,
         D1.c24 as c23,
         D1.c25 as c24,
         D1.c7 as c25,
         D1.c6 as c26,
         D1.c1 as c27,
         nvl(D1.c8 / nullif( nvl(D1.c9 , 0) - nvl(D1.c10 , 0) - (nvl(-D1.c10 ,
         0) + nvl(D1.c11 , 0)), 0) * nvl(D1.c12 * -1 , 0) , 0) as c28
         from
         SAWITH0 D1
         order by c2, c9, c7, c8, c21, c22, c5, c24, c23, c4, c3, c10, c6
   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 "2kbb65tvbd61p" was executed 2 times and had
      an average elapsed time of 73 seconds.
   Rationale
      Full scan of TABLE "ABSDATAWAREHOUSE.FACT_DELIVERIES" with object ID
      141550 consumed 62% of the database time spent on this SQL statement.

   Recommendation 5: SQL Tuning
   Estimated benefit is .04 active sessions, 5.06% of total activity.
   ------------------------------------------------------------------
   Action
      Run SQL Tuning Advisor on the SELECT statement with SQL_ID
      "86np5v48cvqt8".
      Related Object
         SQL statement with SQL_ID 86np5v48cvqt8.
         WITH
         SAWITH0 AS (select sum(T12363.QUANTITY_ORDERED) as c1,
         sum(T12363.NOCHARGEPREVREJECTED) as c2,
         sum(T12363.QUANTITY_DELIVERED) as c3,
         sum(T12363.REVENUE) as c4,
         sum(case  when T6115.REASON_CODE = 'C7' then
         T12363.QUANTITY_DELIVERED end ) as c5,
         sum(case  when T24684.ORIGIN_NUMBER = 3 and T6115.REASON_CODE in
         ('C5', 'URS') then T12363.QUANTITY_DELIVERED end ) as c6,
         sum(case  when T6115.REASON_DESCRIPTION = 'Unrecognised Shortages'
         and T24684.ORIGIN_NUMBER = 3 then T12363.QUANTITY_DELIVERED end ) as
         c7,
         sum(case  when T8705.YEAR in (2026) then T12363.REVENUE end ) as c8,
         sum(case  when T8705.YEAR in (2026) then T12363.QUANTITY_DELIVERED
         end ) as c9,
         sum(case  when T6115.REASON_CODE = 'C7' and T8705.YEAR in (2026) then
         T12363.QUANTITY_DELIVERED end ) as c10,
         sum(case  when T8705.YEAR in (2026) then T12363.NOCHARGEPREVREJECTED
         end ) as c11,
         sum(case  when T24684.ORIGIN_NUMBER = 3 and T6115.REASON_CODE in
         ('C5', 'URS') and T8705.YEAR in (2026) then T12363.QUANTITY_DELIVERED
         end ) as c12,
         T5913.BUSINESS_UNIT_NAME as c13,
         T6063.PRODUCT_CODE as c14,
         T6063.PRODUCT_DESCRIPTION as c15,
         T5959.CHAIN as c16,
         T5959.NAME as c17,
         T8705.MONTH_NAME_AND_YEAR as c18,
         T8705.QUARTER_NAME as c19,
         T8705.YEAR as c20,
         T5959.CUSTOMER_NUMBER as c21,
         T8705.MONTH_SOURCE_ID as c22,
         T8705.QUARTER_NUMBER as c23,
         T5913.DIMENSION_KEY as c24,
         T5959.DIMENSION_KEY as c25,
         T6063.PRODUCT_SOURCE_ID as c26,
         T8705.QUARTER_SOURCE_ID as c27,
         T5959.CHAIN_CODE as c28
         from
         DELIVERY_NOTE T24684,
         DATE_CAL_MONTH_BASED T8705,
         (
         DIM_V_BUSINESS_UNIT T5913 inner join (
         DIM_V_PRODUCT T6063 inner join (
         DIM_V_CUSTOMER T5959 inner join FACT_DELIVERIES T12363 On
         T5959.DIMENSION_KEY = T12363.CUSTOMER) On T6063.DIMENSION_KEY =
         T12363.PRODUCT) On T5913.DIMENSION_KEY = T12363.BUSINESS_UNIT) left
         outer join
         REASON T6115 On T6115.DIMENSION_KEY = T12363.CORRECTIONREASON
         where  ( T6063.PRODUCT_GROUP_DESCRIPTION not in ('Container', 'Direct
         Sales', 'Miscellaneous') and T5913.DIVISION = 'Johnsons Hotel Linen'
         and T8705.DIMENSION_KEY = T12363.DATE_CAL_MONTH_BASED and
         T12363.DELIVERY_NOTE = T24684.DIMENSION_KEY and TO_DATE('2026-02-25'
         , 'YYYY-MM-DD') < T5959.DATE_INACTIVE and (T5913.BUSINESS_UNIT_CODE
         in ('0', '3030')) and T8705.MONTH_SEQ between T8705.CURRENT_MONTH_SEQ
         - 3 and T8705.CURRENT_MONTH_SEQ )
         group by T5913.DIMENSION_KEY, T5913.BUSINESS_UNIT_NAME,
         T5959.DIMENSION_KEY, T5959.CUSTOMER_NUMBER, T5959.CHAIN_CODE,
         T5959.CHAIN, T5959.NAME, T6063.PRODUCT_SOURCE_ID, T6063.PRODUCT_CODE,
         T6063.PRODUCT_DESCRIPTION, T8705.YEAR, T8705.QUARTER_SOURCE_ID,
         T8705.QUARTER_NUMBER, T8705.QUARTER_NAME, T8705.MONTH_SOURCE_ID,
         T8705.MONTH_NAME_AND_YEAR)
         select 0 as c1,
         D1.c13 as c2,
         D1.c14 as c3,
         D1.c15 as c4,
         D1.c16 as c5,
         D1.c17 as c6,
         D1.c18 as c7,
         D1.c19 as c8,
         D1.c20 as c9,
         D1.c21 as c10,
         D1.c22 as c11,
         D1.c23 as c12,
         D1.c4 as c13,
         nvl(D1.c4 / nullif( nvl(D1.c3 , 0) - nvl(D1.c5 , 0) - (nvl(-D1.c5 ,
         0) + nvl(D1.c2 , 0)), 0) * nvl(D1.c6 * -1 , 0) , 0) as c14,
         nvl((nvl(nvl(D1.c7 , 0) , 0) + nvl(nvl(D1.c6 , 0) , 0)) * -1 * 100.0
         / nullif( D1.c1, 0) , 0) as c15,
         nvl(D1.c6 * -1 , 0) as c16,
         0 as c17,
         0 as c18,
         0 as c19,
         0 as c20,
         0 as c21,
         0 as c22,
         0 as c23,
         0 as c24,
         0 as c25,
         0 as c26,
         0 as c27,
         0 as c28,
         0 as c29,
         0 as c30,
         0 as c31,
         0 as c32,
         0 as c33,
         0 as c34,
         0 as c35,
         D1.c24 as c36,
         D1.c25 as c37,
         D1.c26 as c38,
         D1.c27 as c39,
         D1.c28 as c40,
         D1.c7 as c41,
         D1.c6 as c42,
         D1.c1 as c43,
         nvl(D1.c8 / nullif( nvl(D1.c9 , 0) - nvl(D1.c10 , 0) - (nvl(-D1.c10 ,
         0) + nvl(D1.c11 , 0)), 0) * nvl(D1.c12 * -1 , 0) , 0) as c44
         from
         SAWITH0 D1
         order by c9, c10, c8, c7, c2, c36, c37, c5, c40, c38, c4, c3, c39,
         c12, c11, c6
   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 "86np5v48cvqt8" was executed 2 times and had
      an average elapsed time of 73 seconds.
   Rationale
      Full scan of TABLE "ABSDATAWAREHOUSE.FACT_DELIVERIES" with object ID
      141550 consumed 62% of the database time spent on this SQL statement.

   Recommendation 6: SQL Tuning
   Estimated benefit is .02 active sessions, 2.85% of total activity.
   ------------------------------------------------------------------
   Action
      Run SQL Tuning Advisor on the DELETE statement with SQL_ID
      "9a7qyx2kq02vu".
      Related Object
         SQL statement with SQL_ID 9a7qyx2kq02vu.
         DELETE FROM FACT_REALTIME_DATA F WHERE F.DATASET=:B1
   Rationale
      The SQL spent 81% 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 "9a7qyx2kq02vu" was executed 24 times and had
      an average elapsed time of 4.7 seconds.
   Rationale
      Top level calls to execute the PL/SQL statement with SQL_ID
      "9a89m4m7dd1gh" are responsible for 100% of the database time spent on
      the DELETE statement with SQL_ID "9a7qyx2kq02vu".
      Related Object
         SQL statement with SQL_ID 9a89m4m7dd1gh.
         call ABSDATAWAREHOUSE.CALL_LOAD_REALTIME_CUST_DATA (  )


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

   Recommendation 1: Segment Tuning
   Estimated benefit is .19 active sessions, 22.5% of total activity.
   ------------------------------------------------------------------
   Action
      Run "Segment Advisor" on TABLE "ABSDATAWAREHOUSE.FACT_DELIVERIES" with
      object ID 141550.
      Related Object
         Database object with ID 141550.
   Action
      Investigate application logic involving I/O on TABLE
      "ABSDATAWAREHOUSE.FACT_DELIVERIES" with object ID 141550.
      Related Object
         Database object with ID 141550.
   Action
      Look at the "Top SQL Statements" finding for SQL statements consuming
      significant I/O on this segment. For example, the SELECT statement with
      SQL_ID "2kbb65tvbd61p" is responsible for 14% of "User I/O" and
      "Cluster" waits for this segment.
   Rationale
      The I/O usage statistics for the object are: 23 full object scans,
      20379663 physical reads, 1 physical writes and 20377562 direct reads.

   Recommendation 2: Segment Tuning
   Estimated benefit is .08 active sessions, 9.51% of total activity.
   ------------------------------------------------------------------
   Action
      Run "Segment Advisor" on TABLE "ABSDATAWAREHOUSE.DELIVERY_NOTE" with
      object ID 141726.
      Related Object
         Database object with ID 141726.
   Action
      Investigate application logic involving I/O on TABLE
      "ABSDATAWAREHOUSE.DELIVERY_NOTE" with object ID 141726.
      Related Object
         Database object with ID 141726.
   Rationale
      The I/O usage statistics for the object are: 16 full object scans,
      6349265 physical reads, 0 physical writes and 6333824 direct reads.

   Recommendation 3: Segment Tuning
   Estimated benefit is .02 active sessions, 2.85% of total activity.
   ------------------------------------------------------------------
   Action
      Investigate application logic involving I/O on TABLE
      "ABSDATAWAREHOUSE.FACT_REALTIME_DATA" with object ID 141517.
      Related Object
         Database object with ID 141517.
   Action
      Look at the "Top SQL Statements" finding for SQL statements consuming
      significant I/O on this segment. For example, the DELETE statement with
      SQL_ID "9a7qyx2kq02vu" is responsible for 99% of "User I/O" and
      "Cluster" waits for this segment.
   Rationale
      The I/O usage statistics for the object are: 0 full object scans, 49326
      physical reads, 98813 physical writes and 0 direct reads.

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


Finding 3: Unusual "Network" Wait Event
Impact is .06 active sessions, 6.66% of total activity.
-------------------------------------------------------
Wait event "SQL*Net message from dblink" in wait class "Network" was consuming
significant database time.

   Recommendation 1: Application Analysis
   Estimated benefit is .06 active sessions, 6.66% of total activity.
   ------------------------------------------------------------------
   Action
      Investigate the cause for high "SQL*Net message from dblink" waits.
      Refer to Oracle's "Database Reference" for the description of this wait
      event.

   Recommendation 2: Application Analysis
   Estimated benefit is .06 active sessions, 6.66% of total activity.
   ------------------------------------------------------------------
   Action
      Investigate the cause for high "SQL*Net message from dblink" waits in
      Module "DBMS_SCHEDULER".

   Recommendation 3: Application Analysis
   Estimated benefit is .06 active sessions, 6.66% of total activity.
   ------------------------------------------------------------------
   Action
      Investigate the cause for high "SQL*Net message from dblink" waits in
      Service "SYS$USERS".

   Recommendation 4: Application Analysis
   Estimated benefit is .06 active sessions, 6.66% of total activity.
   ------------------------------------------------------------------
   Action
      Investigate the cause for high "SQL*Net message from dblink" waits with
      P1 ("driver id") value "0" and P2 ("#bytes") value "1".

   Symptoms That Led to the Finding:
   ---------------------------------
      Wait class "Network" was consuming significant database time.
      Impact is .11 active sessions, 13.07% of total activity.


Finding 4: Unusual "Network" Wait Event
Impact is .05 active sessions, 6.4% of total activity.
------------------------------------------------------
Wait event "SQL*Net more data from dblink" in wait class "Network" was
consuming significant database time.

   Recommendation 1: Application Analysis
   Estimated benefit is .05 active sessions, 6.4% of total activity.
   -----------------------------------------------------------------
   Action
      Investigate the cause for high "SQL*Net more data from dblink" waits.
      Refer to Oracle's "Database Reference" for the description of this wait
      event.

   Recommendation 2: Application Analysis
   Estimated benefit is .05 active sessions, 6.4% of total activity.
   -----------------------------------------------------------------
   Action
      Investigate the cause for high "SQL*Net more data from dblink" waits in
      Module "DBMS_SCHEDULER".

   Recommendation 3: Application Analysis
   Estimated benefit is .05 active sessions, 6.4% of total activity.
   -----------------------------------------------------------------
   Action
      Investigate the cause for high "SQL*Net more data from dblink" waits in
      Service "SYS$USERS".

   Recommendation 4: Application Analysis
   Estimated benefit is .02 active sessions, 2.36% of total activity.
   ------------------------------------------------------------------
   Action
      Investigate the cause for high "SQL*Net more data from dblink" waits
      with P1 ("driver id") value "0" and P2 ("#bytes") value "1".

   Recommendation 5: Application Analysis
   Estimated benefit is .01 active sessions, 1.68% of total activity.
   ------------------------------------------------------------------
   Action
      Investigate the cause for high "SQL*Net more data from dblink" waits
      with P1 ("driver id") value "0" and P2 ("#bytes") value "2".

   Symptoms That Led to the Finding:
   ---------------------------------
      Wait class "Network" was consuming significant database time.
      Impact is .11 active sessions, 13.07% of total activity.


Finding 5: Undersized SGA
Impact is .03 active sessions, 3.42% of total activity.
-------------------------------------------------------
The SGA was inadequately sized, causing additional I/O or hard parses.
The value of parameter "sga_target" was "12960 M" during the analysis period.

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

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


Finding 6: Log File Switches
Impact is .02 active sessions, 2.83% of total activity.
-------------------------------------------------------
Log file switch operations were consuming significant database time while
waiting for checkpoint completion.
This problem can be caused by use of hot backup mode on tablespaces.  DML to
tablespaces in hot backup mode causes generation of additional redo.

   Recommendation 1: Database Configuration
   Estimated benefit is .02 active sessions, 2.83% of total activity.
   ------------------------------------------------------------------
   Action
      Verify whether incremental shipping was used for standby databases.

   Recommendation 2: Database Configuration
   Estimated benefit is .02 active sessions, 2.83% of total activity.
   ------------------------------------------------------------------
   Action
      Increase the size of the log files to 2048 M to hold at least 20 minutes
      of redo information.

   Symptoms That Led to the Finding:
   ---------------------------------
      Wait class "Configuration" was consuming significant database time.
      Impact is .02 active sessions, 2.86% of total activity.



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

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

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

ADDM Task ADDM:2620954958_1_31188

          ADDM Report for Task 'ADDM:2620954958_1_31188'
          ----------------------------------------------

Analysis Period
---------------
AWR snapshot range from 31187 to 31188.
Time period starts at 23-FEB-26 00.00.02
Time period ends at 23-FEB-26 01.00.15

Analysis Target
---------------
Database 'ABS1' with DB ID 2620954958.
Database version during analysis period was 19.29.0.0.0.
Database version when ADDM was executed was 19.0.0.0.0.
All recommendations generated by ADDM are valid for database version 19.0.0.0.0, the version in which ADDM was executed.
ADDM performed an analysis of instance abs1, numbered 1 and hosted at BASHIR.

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

Summary of Findings
-------------------
   Description                               Active Sessions      Recommendations
                                             Percent of Activity
   ----------------------------------------  -------------------  ---------------
1  Top SQL Statements                        .41 | 52.16          6
2  Unusual "Network" Wait Event              .12 | 15.85          4
3  Log File Switches                         .12 | 15.68          2
4  Unusual "Network" Wait Event              .11 | 13.64          3
5  Undersized SGA                            .03 | 3.41           1
6  Top Segments by "User I/O" and "Cluster"  .02 | 3.09           1
7  I/O to Temporary Tablespaces              .02 | 2.01           2


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


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

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

   Recommendation 1: SQL Tuning
   Estimated benefit is .2 active sessions, 26.26% of total activity.
   ------------------------------------------------------------------
   Action
      Run SQL Tuning Advisor on the SELECT statement with SQL_ID
      "33c3k6rkxjhdk".
      Related Object
         SQL statement with SQL_ID 33c3k6rkxjhdk.
         select count(*) from V_ERROR_CIRC_INV_SNAPSHOT
   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 "33c3k6rkxjhdk" was executed 1 times and had
      an average elapsed time of 726 seconds.
   Rationale
      Full scan of INDEX "ABSDWHSTAGING.PK_CIRC_INV_SNAPSHOT" with object ID
      141074 consumed 24% of the database time spent on this SQL statement.
   Rationale
      Top level calls to execute the PL/SQL statement with SQL_ID
      "c0874a95q5fr1" are responsible for 100% of the database time spent on
      the SELECT statement with SQL_ID "33c3k6rkxjhdk".
      Related Object
         SQL statement with SQL_ID c0874a95q5fr1.
         BEGIN load_staging.main; END;

   Recommendation 2: SQL Tuning
   Estimated benefit is .06 active sessions, 7.19% of total activity.
   ------------------------------------------------------------------
   Action
      Investigate the INSERT statement with SQL_ID "d3h8s5qckxvs9" for
      possible performance improvements. You can supplement the information
      given here with an ASH report for this SQL_ID.
      Related Object
         SQL statement with SQL_ID d3h8s5qckxvs9.
         INSERT /*+ APPEND PARALLEL("STFACT_CUSTOMER_PRODUCTS_PRICE") */ INTO
         "STFACT_CUSTOMER_PRODUCTS_PRICE" ( "PRODUCTLISTPERCUSTOMER_ID",
         "CUSTOMER_SOURCE_ID", "PRODUCT_SOURCE_ID", "SIZE_SOURCE_ID",
         "FINISHING_METHOD_SOURCE_ID", "RENT_PRICE_INFO", "WASH_PRICE_INFO",
         "REPLACEMENT_PRICE_INFO", "SALES_PRICE_INFO", "RENT_DISCOUNT_INFO",
         "WASH_DISCOUNT_INFO", "PRICE_DECIMALS", "BUSINESS_UNIT_CODE",
         "LOAN_PRICE_INFO", "HEAVY_SOIL_PRICE_INFO" ) (SELECT /*+ NO_MERGE */
         "DWH_FACT_CUST_PRODUCT_PRICE". "PRODUCTLISTPERCUSTOMER_ID"
         "PRODUCTLISTPERCUSTOMER_ID$1", "DWH_FACT_CUST_PRODUCT_PRICE".
         "CUSTOMER_SOURCE_ID" "CUSTOMER_SOURCE_ID$1",
         "DWH_FACT_CUST_PRODUCT_PRICE". "PRODUCT_SOURCE_ID"
         "PRODUCT_SOURCE_ID$1", "DWH_FACT_CUST_PRODUCT_PRICE".
         "SIZE_SOURCE_ID" "SIZE_SOURCE_ID$1", "DWH_FACT_CUST_PRODUCT_PRICE".
         "FINISHING_METHOD_SOURCE_ID" "FINISHING_METHOD_SOURCE_ID$1",
         "DWH_FACT_CUST_PRODUCT_PRICE". "RENT_PRICE_INFO" "RENT_PRICE_INFO$1",
         "DWH_FACT_CUST_PRODUCT_PRICE". "WASH_PRICE_INFO" "WASH_PRICE_INFO$1",
         "DWH_FACT_CUST_PRODUCT_PRICE". "REPLACEMENT_PRICE_INFO"
         "REPLACEMENT_PRICE_INFO$1", "DWH_FACT_CUST_PRODUCT_PRICE".
         "SALES_PRICE_INFO" "SALES_PRICE_INFO$1",
         "DWH_FACT_CUST_PRODUCT_PRICE". "RENT_DISCOUNT_INFO"
         "RENT_DISCOUNT_INFO$1", "DWH_FACT_CUST_PRODUCT_PRICE".
         "WASH_DISCOUNT_INFO" "WASH_DISCOUNT_INFO$1",
         "DWH_FACT_CUST_PRODUCT_PRICE". "PRICE_DECIMALS" "PRICE_DECIMALS$1",
         "DWH_FACT_CUST_PRODUCT_PRICE". "BUSINESSUNIT_CODE"
         "BUSINESSUNIT_CODE$1", "DWH_FACT_CUST_PRODUCT_PRICE".
         "LOAN_PRICE_INFO" "LOAN_PRICE_INFO$1", "DWH_FACT_CUST_PRODUCT_PRICE".
         "HEAVY_SOIL_PRICE_INFO" "HEAVY_SOIL_PRICE_INFO$1" FROM "ABSSOLUTE".
         "DWH_FACT_CUST_PRODUCT_PRICE"@ "ABSSOLUTE_LOCATION"
         "DWH_FACT_CUST_PRODUCT_PRICE" WHERE ( "DWH_FACT_CUST_PRODUCT_PRICE".
         "BUSINESSUNIT_CODE" = :B1 ))
   Rationale
      The SQL spent only 0% of its database time on CPU, I/O and Cluster
      waits. Therefore, the SQL Tuning Advisor is not applicable in this case.
      Look at performance data for the SQL to find potential improvements.
   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 "d3h8s5qckxvs9" was executed 27 times and had
      an average elapsed time of 7.9 seconds.
   Rationale
      Waiting for event "SQL*Net more data from dblink" in wait class
      "Network" accounted for 90% of the database time spent in processing the
      SQL statement with SQL_ID "d3h8s5qckxvs9".
   Rationale
      Top level calls to execute the PL/SQL statement with SQL_ID
      "c0874a95q5fr1" are responsible for 100% of the database time spent on
      the INSERT statement with SQL_ID "d3h8s5qckxvs9".
      Related Object
         SQL statement with SQL_ID c0874a95q5fr1.
         BEGIN load_staging.main; END;

   Recommendation 3: SQL Tuning
   Estimated benefit is .04 active sessions, 5.04% of total activity.
   ------------------------------------------------------------------
   Action
      Investigate the INSERT statement with SQL_ID "3asqahbnvz6vf" for
      possible performance improvements. You can supplement the information
      given here with an ASH report for this SQL_ID.
      Related Object
         SQL statement with SQL_ID 3asqahbnvz6vf.
         INSERT /*+ APPEND */ INTO "FACT_CUSTOMER_PRODUCTS" (
         "PRODUCTLISTPERCUSTOMER_ID", "DATE_ACTIVE", "DATE_INACTIVE",
         "CUSTOM_PRODUCT_CODE", "CUSTOM_PRODUCT_DESCRIPTION",
         "SPECIFIC_BUNDLE_QUANTITY", "SALES_EMPLOYEE_1", "SALES_EMPLOYEE_2",
         "COMPETITOR_CODE_GAINED_FROM", "COMPETITOR_GAINED_FROM",
         "COMPETITOR_CODE_LOST_TO", "COMPETITOR_LOST_TO", "GAIN_REASON_CODE",
         "GAIN_REASON", "LOST_REASON_CODE", "LOST_REASON", "EAN_NUMBER",
         "SOIL_WEIGHT", "ORDER_VIA_WEB_YN", "CODE_UNIQUELY_YN",
         "ON_SITE_INVENTORY_COUNT_YN", "DELAYED_EVEN_EXCHANGE",
         "DELAYED_EVEN_EXCHANGE_SCHEME", "STRAIGHT_EVEN_EXCHANGE_YN",
         "SPECIFIC_WASHING_PROCESS_CODE", "SPECIFIC_WASHING_PROCESS",
         "DEFAULT_STOCK_ROOM", "FIXED_STOCKROOM_YN",
         "SPECIFIC_MAX_NUMBER_OF_WASHES", "NR_OF_WASHES_SPECIAL_TREATMENT",
         "TREATMENT_CHECK_SCHEME_CODE", "TREATMENT_CHECK_SCHEME", "LOCATION",
         "UNIQUE_LOCATION_YN", "SOIL_COUNT_METHOD", "CLEAN_COUNT_YN",
         "SEASON_TYPE", "QUANTITY_CHARGED_FOR_LOSS",
         "HAS_SPECIFIC_PUTUP_TYPE_YN", "SPECIFIC_PUTUP_TYPE",
         "BUDGET_RELEVANT_YN", "SPECIFIC_FILL_PERCENTAGE", "EMBLEM_TEMPLATE",
         "SPECIFIC_FINISHING_CODE", "SPECIFIC_FINISHING",
         "AUTO_SALES_DURING_ISSUE_YN", "AUTO_REPLACE_AFTER_LIFETIME_YN",
         "IS_CUSTOMER_RELATED_YN", "DEPOSIT_STOCK_ALLOWED_YN",
         "DEPOSIT_STOCK_LOCATION", "DEPOSIT_STOCK_CHARGE_PERC",
         "ALLOWED_TO_REPLACE_YN", "ALLOW_RETURN_TO_STOCK",
         "WEARER_GARMENTS_BUDGET_VALUE", "IMAGE_CARE_FOR_REPAIR_YN",
         "IMAGE_CARE_FOR_LOSS_CHARGES_YN", "IMAGE_CARE_FOR_RES_VALUE_YN",
         "DELIVERY_LABEL_LAYOUT_CODE", "DELIVERY_LABEL_LAYOUT",
         "BILLING_METHOD_NR", "BILLING_METHOD", "CHARGE_SRC_YN",
         "SRC_BASED_ON", "SRC_PERCENTAGE_OF_SOIL_COUNT",
         "SRC_PERCENTAGE_OF_INVENTORY", "SRC_FIXED_QUANTITY", "SRC_FREQUENCY",
         "SRC_CHARGE_RENT_YN", "AUTO_REPLACE_DIFFERENCE_YN",
         "DELIVER_SRC_QUANTITY_YN", "CHARGE_STOCK_ROOM_INVENTORY_YN",
         "MINIMUM_TURN_AROUND_PERCENTAGE", "MINIMUM_BILLING_QUANTITY",
         "MINIMUM_BILLING_FREQUENCY", "FREE_OF_CHARGE_QUANTITY",
         "FREQUENCY_FOR_FREE_QUANTITY", "RESIDUAL_VALUE_SCHEME_CODE",
         "RESIDUAL_VALUE_SCHEME", "PERCENTAGE_AFTER_DEPRECIATION",
         "CHARGE_RES_VALUE_NEW_ONLY_YN", "CHARGE_OVERUSE_YN",
         "RENT_CHANGES_PER_WEEK_YN", "PRICE_USAGE",
         "RENT_PRICE_PER_FREQUENCY_YN", "CHARGE_RENT_INACTIVE_SEASON_YN",
         "CHARGE_WASHES_PACK", "CHARGE_WASHES_ONLY_FOR_COG",
         "INV_FREQ_RELATED_RENT_PRICE_YN", "INVOICE_WASH_BASED_ON_SOIL_YN",
         "CHARGE_BASED_ON_CIRC_INV_YN", "CHARGE_BASED_ON_REAL_QTY_YN",
         "CHARGE_BASED_ON_MAX_QTY_YN", "CHARGE_BASED_ON_ONSITE_INV_YN",
         "MIN_QTY_TO_DELIVER", "MAX_QTY_TO_DELIVER", "REMARK",
         "EXCESS_BILLING_YN", "EXCESS_BILLING_PER_SIZE_YN", "RENT_PRICE",
         "NET_RENT_PRICE", "RENT_PRICE_DEFINED_YN", "RENT_PRICE_START_DATE",
         "RENT_PRICE_IS_CUST_SPECIFIC_YN", "RENT_PRICE_PRICE_LIST_CODE",
         "RENT_PRICE_PRICE_LIST", "RENT_PRICE_REASON_NOT_DEFINED",
         "RENT_PRICE_PRICE_TYPE", "RENT_PRICE_INVOICE_FREQUENCY",
         "WASH_PRICE", "NET_WASH_PRICE", "WASH_PRICE_DEFINED_YN",
         "WASH_PRICE_START_DATE", "WASH_PRICE_IS_CUST_SPECIFIC_YN",
         "WASH_PRICE_PRICE_LIST_CODE", "WASH_PRICE_PRICE_LIST",
         "WASH_PRICE_REASON_NOT_DEFINED", "WASH_PRICE_PRICE_TYPE",
         "REPLACE_PRICE", "REPLACE_PRICE_DEFINED_YN",
         "REPLACE_PRICE_START_DATE", "REPLACE_PRICE_IS_CUST_SPEC_YN",
         "REPLACE_PRICE_PRICE_LIST_CODE", "REPLACE_PRICE_PRICE_LIST",
         "REPLACE_PRICE_REASON_NOT_DEF", "SALES_PRICE",
         "SALES_PRICE_DEFINED_YN", "SALES_PRICE_START_DATE",
         "SALES_PRICE_IS_CUST_SPECIF_YN", "SALES_PRICE_PRICE_LIST_CODE",
         "SALES_PRICE_PRICE_LIST", "SALES_PRICE_REASON_NOT_DEFINED",
         "RENT_DISCOUNT", "RENT_DISCOUNT_DEFINED_YN",
         "RENT_DISCOUNT_START_DATE", "RENT_DISCOUNT_IS_CUST_SPEC_YN",
         "RENT_DISCOUNT_PRICE_LIST_CODE", "RENT_DISCOUNT_PRICE_LIST",
         "RENT_DISC_REASON_NOT_DEFINED", "WASH_DISCOUNT",
         "WASH_DISCOUNT_DEFINED_YN", "WASH_DISCOUNT_START_DATE",
         "WASH_DISCOUNT_IS_CUST_SPEC_YN", "WASH_DISCOUNT_PRICE_LIST_CODE",
         "WASH_DISCOUNT_PRICE_LIST", "WASH_DISC_REASON_NOT_DEFINED",
         "LOAN_PRICE", "LOAN_PRICE_DEFINED_YN", "LOAN_PRICE_START_DATE",
         "LOAN_PRICE_IS_CUST_SPECIFIC_YN", "LOAN_PRICE_PRICE_LIST_CODE",
         "LOAN_PRICE_PRICE_LIST", "HEAVY_SOIL_PRICE",
         "HEAVY_SOIL_PRICE_DEFINED_YN", "HEAVY_SOIL_PRICE_START_DATE",
         "HSOIL_PRICE_CUST_SPECIFIC_YN", "HSOIL_PRICE_PRICE_LIST_CODE",
         "HEAVY_SOIL_PRICE_PRICE_LIST", "CIRCULATING_INVENTORY",
         "NOMINAL_STOCK_QTY", "CHARGEABLE_STOCK_QTY", "LOAN_QTY",
         "FREE_OF_CHARGE_QTY", "DELIVERY_SCHEME_FREQUENCY",
         "DELIVERY_SCHEME_CODE", "DELIVERY_SCHEME", "DELIVER_BILL_MO",
         "DELIVER_BILL_TU", "DELIVER_BILL_WE", "DELIVER_BILL_TH",
         "DELIVER_BILL_FR", "DELIVER_BILL_SA", "DELIVER_BILL_SU",
         "AVG_WEEKLY_RENT_AMOUNT", "AVG_WEEKLY_WASH_AMOUNT",
         "AVG_WEEKLY_SALES_AMOUNT", "AVG_WEEKLY_AUTO_REPLACE_AMOUNT",
         "AVG_WEEKLY_TOTAL_AMOUNT", "FIXED_RENT_QTY", "CUSTOMER",
         "FINISHING_METHOD", "PRODUCT", "WASH_BUDGET_CODE",
         "WASH_BUDGET_DESCRIPTION", "RENT_BUDGET_CODE",
         "RENT_BUDGET_DESCRIPTION", "SALES_BUDGET_CODE",
         "SALES_BUDGET_DESCRIPTION", "INSTALL_DATE", "FLEX_STRING1",
         "FLEX_STRING2", "FLEX_STRING3", "FLEX_STRING4", "FLEX_STRING5",
         "FLEX_STRING6", "FLEX_STRING7", "FLEX_STRING8", "FLEX_STRING9",
         "FLEX_STRING10", "FLEX_NUMBER1", "FLEX_NUMBER2", "FLEX_NUMBER3",
         "FLEX_NUMBER4", "FLEX_NUMBER5", "FLEX_DATE1", "FLEX_DATE2",
         "FLEX_DATE3" ) (SELECT /*+ ORDERED NO_MERGE("INGRP1") NO_MERGE */
         "V_STFACT_CUSTOMER_PRODUCTS". "PRODUCTLISTPERCUSTOMER_ID"
         "PRODUCTLISTPERCUSTOMER_ID", "V_STFACT_CUSTOMER_PRODUCTS".
         "DATE_ACTIVE" "DATE_ACTIVE", "V_STFACT_CUSTOMER_PRODUCTS".
         "DATE_INACTIVE" "DATE_INACTIVE", "V_STFACT_CUSTOMER_PRODUCTS".
         "CUSTOM_PRODUCT_CODE" "CUSTOM_PRODUCT_CODE",
         "V_STFACT_CUSTOMER_PRODUCTS". "CUSTOM_PRODUCT_DESCRIPTION"
         "CUSTOM_PRODUCT_DESCRIPTION", "V_STFACT_CUSTOMER_PRODUCTS".
         "SPECIFIC_BUNDLE_QUANTITY" "SPECIFIC_BUNDLE_QUANTITY",
         "V_STFACT_CUSTOMER_PRODUCTS". "SALES_EMPLOYEE_1" "SALES_EMPLOYEE_1",
         "V_STFACT_CUSTOMER_PRODUCTS". "SALES_EMPLOYEE_2" "SALES_EMPLOYEE_2",
         "V_STFACT_CUSTOMER_PRODUCTS". "COMPETITOR_CODE_GAINED_FROM"
         "COMPETITOR_CODE_GAINED_FROM", "V_STFACT_CUSTOMER_PRODUCTS".
         "COMPETITOR_GAINED_FROM" "COMPETITOR_GAINED_FROM",
         "V_STFACT_CUSTOMER_PRODUCTS". "COMPETITOR_CODE_LOST_TO"
         "COMPETITOR_CODE_LOST_TO", "V_STFACT_CUSTOMER_PRODUCTS".
         "COMPETITOR_LOST_TO" "COMPETITOR_LOST_TO",
         "V_STFACT_CUSTOMER_PRODUCTS". "GAIN_REASON_CODE" "GAIN_REASON_CODE",
         "V_STFACT_CUSTOMER_PRODUCTS". "GAIN_REASON" "GAIN_REASON",
         "V_STFACT_CUSTOMER_PRODUCTS". "LOST_REASON_CODE" "LOST_REASON_CODE",
         "V_STFACT_CUSTOMER_PRODUCTS". "LOST_REASON" "LOST_REASON",
         "V_STFACT_CUSTOMER_PRODUCTS". "EAN_NUMBER" "EAN_NUMBER",
         "V_STFACT_CUSTOMER_PRODUCTS". "SOIL_WEIGHT" "SOIL_WEIGHT",
         "V_STFACT_CUSTOMER_PRODUCTS". "ORDER_VIA_WEB_YN" "ORDER_VIA_WEB_YN",
         "V_STFACT_CUSTOMER_PRODUCTS". "CODE_UNIQUELY_YN" "CODE_UNIQUELY_YN",
         "V_STFACT_CUSTOMER_PRODUCTS". "ON_SITE_INVENTORY_COUNT_YN"
         "ON_SITE_INVENTORY_COUNT_YN", "V_STFACT_CUSTOMER_PRODUCTS".
         "DELAYED_EVEN_EXCHANGE" "DELAYED_EVEN_EXCHANGE",
         "V_STFACT_CUSTOMER_PRODUCTS". "DELAYED_EVEN_EXCHANGE_SCHEME"
         "DELAYED_EVEN_EXCHANGE_SCHEME", "V_STFACT_CUSTOMER_PRODUCTS".
         "STRAIGHT_EVEN_EXCHANGE_YN" "STRAIGHT_EVEN_EXCHANGE_YN",
         "V_STFACT_CUSTOMER_PRODUCTS". "SPECIFIC_WASHING_PROCESS_CODE"
         "SPECIFIC_WASHING_PROCESS_CODE", "V_STFACT_CUSTOMER_PRODUCTS".
         "SPECIFIC_WASHING_PROCESS" "SPECIFIC_WASHING_PROCESS",
         "V_STFACT_CUSTOMER_PRODUCTS". "DEFAULT_STOCK_ROOM"
         "DEFAULT_STOCK_ROOM", "V_STFACT_CUSTOMER_PRODUCTS".
         "FIXED_STOCKROOM_YN" "FIXED_STOCKROOM_YN",
         "V_STFACT_CUSTOMER_PRODUCTS". "SPECIFIC_MAX_NUMBER_OF_WASHES"
         "SPECIFIC_MAX_NUMBER_OF_WASHES", "V_STFACT_CUSTOMER_PRODUCTS".
         "NR_OF_WASHES_SPECIAL_TREATMENT" "NR_OF_WASHES_SPECIAL_TREATMENT",
         "V_STFACT_CUSTOMER_PRODUCTS". "TREATMENT_CHECK_SCHEME_CODE"
         "TREATMENT_CHECK_SCHEME_CODE", "V_STFACT_CUSTOMER_PRODUCTS".
         "TREATMENT_CHECK_SCHEME" "TREATMENT_CHECK_SCHEME",
         "V_STFACT_CUSTOMER_PRODUCTS". "LOCATION" "LOCATION",
         "V_STFACT_CUSTOMER_PRODUCTS". "UNIQUE_LOCATION_YN"
         "UNIQUE_LOCATION_YN", "V_STFACT_CUSTOMER_PRODUCTS".
         "SOIL_COUNT_METHOD" "SOIL_COUNT_METHOD",
         "V_STFACT_CUSTOMER_PRODUCTS". "CLEAN_COUNT_YN" "CLEAN_COUNT_YN",
         "V_STFACT_CUSTOMER_PRODUCTS". "SEASON_TYPE" "SEASON_TYPE",
         "V_STFACT_CUSTOMER_PRODUCTS". "QUANTITY_CHARGED_FOR_LOSS"
         "QUANTITY_CHARGED_FOR_LOSS", "V_STFACT_CUSTOMER_PRODUCTS".
         "HAS_SPECIFIC_PUTUP_TYPE_YN" "HAS_SPECIFIC_PUTUP_TYPE_YN",
         "V_STFACT_CUSTOMER_PRODUCTS". "SPECIFIC_PUTUP_TYPE"
         "SPECIFIC_PUTUP_TYPE", "V_STFACT_CUSTOMER_PRODUCTS".
         "BUDGET_RELEVANT_YN" "BUDGET_RELEVANT_YN",
         "V_STFACT_CUSTOMER_PRODUCTS". "SPECIFIC_FILL_PERCENTAGE"
         "SPECIFIC_FILL_PERCENTAGE", "V_STFACT_CUSTOMER_PRODUCTS".
         "EMBLEM_TEMPLATE" "EMBLEM_TEMPLATE", "V_STFACT_CUSTOMER_PRODUCTS".
         "SPECIFIC_FINISHING_CODE" "SPECIFIC_FINISHING_CODE",
         "V_STFACT_CUSTOMER_PRODUCTS". "SPECIFIC_FINISHING"
         "SPECIFIC_FINISHING", "V_STFACT_CUSTOMER_PRODUCTS".
         "AUTO_SALES_DURING_ISSUE_YN" "AUTO_SALES_DURING_ISSUE_YN",
         "V_STFACT_CUSTOMER_PRODUCTS". "AUTO_REPLACE_AFTER_LIFETIME_YN"
         "AUTO_REPLACE_AFTER_LIFETIME_YN", "V_STFACT_CUSTOMER_PRODUCTS".
         "IS_CUSTOMER_RELATED_YN" "IS_CUSTOMER_RELATED_YN",
         "V_STFACT_CUSTOMER_PRODUCTS". "DEPOSIT_STOCK_ALLOWED_YN"
         "DEPOSIT_STOCK_ALLOWED_YN", "V_STFACT_CUSTOMER_PRODUCTS".
         "DEPOSIT_STOCK_LOCATION" "DEPOSIT_STOCK_LOCATION",
         "V_STFACT_CUSTOMER_PRODUCTS". "DEPOSIT_STOCK_CHARGE_PERC"
         "DEPOSIT_STOCK_CHARGE_PERC", "V_STFACT_CUSTOMER_PRODUCTS".
         "ALLOWED_TO_REPLACE_YN" "ALLOWED_TO_REPLACE_YN",
         "V_STFACT_CUSTOMER_PRODUCTS". "ALLOW_RETURN_TO_STOCK"
         "ALLOW_RETURN_TO_STOCK", "V_STFACT_CUSTOMER_PRODUCTS".
         "WEARER_GARMENTS_BUDGET_VALUE" "WEARER_GARMENTS_BUDGET_VALUE",
         "V_STFACT_CUSTOMER_PRODUCTS". "IMAGE_CARE_FOR_REPAIR_YN"
         "IMAGE_CARE_FOR_REPAIR_YN", "V_STFACT_CUSTOMER_PRODUCTS".
         "IMAGE_CARE_FOR_LOSS_CHARGES_YN" "IMAGE_CARE_FOR_LOSS_CHARGES_YN",
         "V_STFACT_CUSTOMER_PRODUCTS". "IMAGE_CARE_FOR_RES_VALUE_YN"
         "IMAGE_CARE_FOR_RES_VALUE_YN", "V_STFACT_CUSTOMER_PRODUCTS".
         "DELIVERY_LABEL_LAYOUT_CODE" "DELIVERY_LABEL_LAYOUT_CODE",
         "V_STFACT_CUSTOMER_PRODUCTS". "DELIVERY_LABEL_LAYOUT"
         "DELIVERY_LABEL_LAYOUT", "V_STFACT_CUSTOMER_PRODUCTS".
         "BILLING_METHOD_NR" "BILLING_METHOD_NR",
         "V_STFACT_CUSTOMER_PRODUCTS". "BILLING_METHOD" "BILLING_METHOD",
         "V_STFACT_CUSTOMER_PRODUCTS". "CHARGE_SRC_YN" "CHARGE_SRC_YN",
         "V_STFACT_CUSTOMER_PRODUCTS". "SRC_BASED_ON" "SRC_BASED_ON",
         "V_STFACT_CUSTOMER_PRODUCTS". "SRC_PERCENTAGE_OF_SOIL_COUNT"
         "SRC_PERCENTAGE_OF_SOIL_COUNT", "V_STFACT_CUSTOMER_PRODUCTS".
         "SRC_PERCENTAGE_OF_INVENTORY" "SRC_PERCENTAGE_OF_INVENTORY",
         "V_STFACT_CUSTOMER_PRODUCTS". "SRC_FIXED_QUANTITY"
         "SRC_FIXED_QUANTITY", "V_STFACT_CUSTOMER_PRODUCTS". "SRC_FREQUENCY"
         "SRC_FREQUENCY", "V_STFACT_CUSTOMER_PRODUCTS". "SRC_CHARGE_RENT_YN"
         "SRC_CHARGE_RENT_YN", "V_STFACT_CUSTOMER_PRODUCTS".
         "AUTO_REPLACE_DIFFERENCE_YN" "AUTO_REPLACE_DIFFERENCE_YN",
         "V_STFACT_CUSTOMER_PRODUCTS". "DELIVER_SRC_QUANTITY_YN"
         "DELIVER_SRC_QUANTITY_YN", "V_STFACT_CUSTOMER_PRODUCTS".
         "CHARGE_STOCK_ROOM_INVENTORY_YN" "CHARGE_STOCK_ROOM_INVENTORY_YN",
         "V_STFACT_CUSTOMER_PRODUCTS". "MINIMUM_TURN_AROUND_PERCENTAGE"
         "MINIMUM_TURN_AROUND_PERCENTAGE", "V_STFACT_CUSTOMER_PRODUCTS".
         "MINIMUM_BILLING_QUANTITY" "MINIMUM_BILLING_QUANTITY",
         "V_STFACT_CUSTOMER_PRODUCTS". "MINIMUM_BILLING_FREQUENCY"
         "MINIMUM_BILLING_FREQUENCY", "V_STFACT_CUSTOMER_PRODUCTS".
         "FREE_OF_CHARGE_QUANTITY" "FREE_OF_CHARGE_QUANTITY",
         "V_STFACT_CUSTOMER_PRODUCTS". "FREQUENCY_FOR_FREE_QUANTITY"
         "FREQUENCY_FOR_FREE_QUANTITY", "V_STFACT_CUSTOMER_PRODUCTS".
         "RESIDUAL_VALUE_SCHEME_CODE" "RESIDUAL_VALUE_SCHEME_CODE",
         "V_STFACT_CUSTOMER_PRODUCTS". "RESIDUAL_VALUE_SCHEME"
         "RESIDUAL_VALUE_SCHEME", "V_STFACT_CUSTOMER_PRODUCTS".
         "PERCENTAGE_AFER_DEPRECIATION" "PERCENTAGE_AFTER_DEPRECIATION",
         "V_STFACT_CUSTOMER_PRODUCTS". "CHARGE_RES_VALUE_NEW_ONLY_YN"
         "CHARGE_RES_VALUE_NEW_ONLY_YN", "V_STFACT_CUSTOMER_PRODUCTS".
         "CHARGE_OVERUSE_YN" "CHARGE_OVERUSE_YN",
         "V_STFACT_CUSTOMER_PRODUCTS". "RENT_CHANGES_PER_WEEK_YN"
         "RENT_CHANGES_PER_WEEK_YN", "V_STFACT_CUSTOMER_PRODUCTS".
         "PRICE_USAGE" "PRICE_USAGE", "V_STFACT_CUSTOMER_PRODUCTS".
         "RENT_PRICE_PER_FREQUENCY_YN" "RENT_PRICE_PER_FREQUENCY_YN",
         "V_STFACT_CUSTOMER_PRODUCTS". "CHARGE_RENT_INACTIVE_SEASON_YN"
         "CHARGE_RENT_INACTIVE_SEASON_YN", "V_STFACT_CUSTOMER_PRODUCTS".
         "CHARGE_WASHES_PACK" "CHARGE_WASHES_PACK",
         "V_STFACT_CUSTOMER_PRODUCTS". "CHARGE_WASHES_ONLY_FOR_COG"
         "CHARGE_WASHES_ONLY_FOR_COG", "V_STFACT_CUSTOMER_PRODUCTS".
         "INV_FREQ_RELATED_RENT_PRICE_YN" "INV_FREQ_RELATED_RENT_PRICE_YN",
         "V_STFACT_CUSTOMER_PRODUCTS". "INVOICE_WASH_BASED_ON_SOIL_YN"
         "INVOICE_WASH_BASED_ON_SOIL_YN", "V_STFACT_CUSTOMER_PRODUCTS".
         "CHARGE_BASED_ON_CIRC_INV_YN" "CHARGE_BASED_ON_CIRC_INV_YN",
         "V_STFACT_CUSTOMER_PRODUCTS". "CHARGE_BASED_ON_REAL_QTY_YN"
         "CHARGE_BASED_ON_REAL_QTY_YN", "V_STFACT_CUSTOMER_PRODUCTS".
         "CHARGE_BASED_ON_MAX_QTY_YN" "CHARGE_BASED_ON_MAX_QTY_YN",
         "V_STFACT_CUSTOMER_PRODUCTS". "CHARGE_BASED_ON_ONSITE_INV_YN"
         "CHARGE_BASED_ON_ONSITE_INV_YN", "V_STFACT_CUSTOMER_PRODUCTS".
         "MIN_QTY_TO_DELIVER" "MIN_QTY_TO_DELIVER",
         "V_STFACT_CUSTOMER_PRODUCTS". "MAX_QTY_TO_DELIVER"
         "MAX_QTY_TO_DELIVER", "V_STFACT_CUSTOMER_PRODUCTS". "REMARK"
         "REMARK", "V_STFACT_CUSTOMER_PRODUCTS". "EXCESS_BILLING_YN"
         "EXCESS_BILLING_YN", "V_STFACT_CUSTOMER_PRODUCTS".
         "EXCESS_BILLING_PER_SIZE_YN" "EXCESS_BILLING_PER_SIZE_YN",
         "V_STFACT_CUSTOMER_PRODUCTS". "RENT_PRICE" "RENT_PRICE",
         "V_STFACT_CUSTOMER_PRODUCTS". "NET_RENT_PRICE" "NET_RENT_PRICE",
         "V_STFACT_CUSTOMER_PRODUCTS". "RENT_PRICE_DEFINED_YN"
         "RENT_PRICE_DEFINED_YN", "V_STFACT_CUSTOMER_PRODUCTS".
         "RENT_PRICE_START_DATE" "RENT_PRICE_START_DATE",
         "V_STFACT_CUSTOMER_PRODUCTS". "RENT_PRICE_IS_CUST_SPECIFIC_YN"
         "RENT_PRICE_IS_CUST_SPECIFIC_YN", "V_STFACT_CUSTOMER_PRODUCTS".
         "RENT_PRICE_PRICE_LIST_CODE" "RENT_PRICE_PRICE_LIST_CODE",
         "V_STFACT_CUSTOMER_PRODUCTS". "RENT_PRICE_PRICE_LIST"
         "RENT_PRICE_PRICE_LIST", "V_STFACT_CUSTOMER_PRODUCTS".
         "RENT_PRICE_REASON_NOT_DEFINED" "RENT_PRICE_REASON_NOT_DEFINED",
         "V_STFACT_CUSTOMER_PRODUCTS". "RENT_PRICE_PRICE_TYPE"
         "RENT_PRICE_PRICE_TYPE", "V_STFACT_CUSTOMER_PRODUCTS".
         "RENT_PRICE_INVOICE_FREQUENCY" "RENT_PRICE_INVOICE_FREQUENCY",
         "V_STFACT_CUSTOMER_PRODUCTS". "WASH_PRICE" "WASH_PRICE",
         "V_STFACT_CUSTOMER_PRODUCTS". "NET_WASH_PRICE" "NET_WASH_PRICE",
         "V_STFACT_CUSTOMER_PRODUCTS". "WASH_PRICE_DEFINED_YN"
         "WASH_PRICE_DEFINED_YN", "V_STFACT_CUSTOMER_PRODUCTS".
         "WASH_PRICE_START_DATE" "WASH_PRICE_START_DATE",
         "V_STFACT_CUSTOMER_PRODUCTS". "WASH_PRICE_IS_CUST_SPECIFIC_YN"
         "WASH_PRICE_IS_CUST_SPECIFIC_YN", "V_STFACT_CUSTOMER_PRODUCTS".
         "WASH_PRICE_PRICE_LIST_CODE" "WASH_PRICE_PRICE_LIST_CODE",
         "V_STFACT_CUSTOMER_PRODUCTS". "WASH_PRICE_PRICE_LIST"
         "WASH_PRICE_PRICE_LIST", "V_STFACT_CUSTOMER_PRODUCTS".
         "WASH_PRICE_REASON_NOT_DEFINED" "WASH_PRICE_REASON_NOT_DEFINED",
         "V_STFACT_CUSTOMER_PRODUCTS". "WASH_PRICE_PRICE_TYPE"
         "WASH_PRICE_PRICE_TYPE", "V_STFACT_CUSTOMER_PRODUCTS".
         "REPLACE_PRICE" "REPLACE_PRICE", "V_STFACT_CUSTOMER_PRODUCTS".
         "REPLACE_PRICE_DEFINED_YN" "REPLACE_PRICE_DEFINED_YN",
         "V_STFACT_CUSTOMER_PRODUCTS". "REPLACE_PRICE_START_DATE"
         "REPLACE_PRICE_START_DATE", "V_STFACT_CUSTOMER_PRODUCTS".
         "REPLACE_PRICE_IS_CUST_SPEC_YN" "REPLACE_PRICE_IS_CUST_SPEC_YN",
         "V_STFACT_CUSTOMER_PRODUCTS". "REPLACE_PRICE_PRICE_LIST_CODE"
         "REPLACE_PRICE_PRICE_LIST_CODE", "V_STFACT_CUSTOMER_PRODUCTS".
         "REPLACE_PRICE_PRICE_LIST" "REPLACE_PRICE_PRICE_LIST",
         "V_STFACT_CUSTOMER_PRODUCTS". "REPLACE_PRICE_REASON_NOT_DEF"
         "REPLACE_PRICE_REASON_NOT_DEF", "V_STFACT_CUSTOMER_PRODUCTS".
         "SALES_PRICE" "SALES_PRICE", "V_STFACT_CUSTOMER_PRODUCTS".
         "SALES_PRICE_DEFINED_YN" "SALES_PRICE_DEFINED_YN",
         "V_STFACT_CUSTOMER_PRODUCTS". "SALES_PRICE_START_DATE"
         "SALES_PRICE_START_DATE", "V_STFACT_CUSTOMER_PRODUCTS".
         "SALES_PRICE_IS_CUST_SPECIF_YN" "SALES_PRICE_IS_CUST_SPECIF_YN",
         "V_STFACT_CUSTOMER_PRODUCTS". "SALES_PRICE_PRICE_LIST_CODE"
         "SALES_PRICE_PRICE_LIST_CODE", "V_STFACT_CUSTOMER_PRODUCTS".
         "SALES_PRICE_PRICE_LIST" "SALES_PRICE_PRICE_LIST",
         "V_STFACT_CUSTOMER_PRODUCTS". "SALES_PRICE_REASON_NOT_DEFINED"
         "SALES_PRICE_REASON_NOT_DEFINED", "V_STFACT_CUSTOMER_PRODUCTS".
         "RENT_DISCOUNT" "RENT_DISCOUNT", "V_STFACT_CUSTOMER_PRODUCTS".
         "RENT_DISCOUNT_DEFINED_YN" "RENT_DISCOUNT_DEFINED_YN",
         "V_STFACT_CUSTOMER_PRODUCTS". "RENT_DISCOUNT_START_DATE"
         "RENT_DISCOUNT_START_DATE", "V_STFACT_CUSTOMER_PRODUCTS".
         "RENT_DISCOUNT_IS_CUST_SPEC_YN" "RENT_DISCOUNT_IS_CUST_SPEC_YN",
         "V_STFACT_CUSTOMER_PRODUCTS". "RENT_DISCOUNT_PRICE_LIST_CODE"
         "RENT_DISCOUNT_PRICE_LIST_CODE", "V_STFACT_CUSTOMER_PRODUCTS".
         "RENT_DISCOUNT_PRICE_LIST" "RENT_DISCOUNT_PRICE_LIST",
         "V_STFACT_CUSTOMER_PRODUCTS". "RENT_DISC_REASON_NOT_DEFINED"
         "RENT_DISC_REASON_NOT_DEFINED", "V_STFACT_CUSTOMER_PRODUCTS".
         "WASH_DISCOUNT" "WASH_DISCOUNT", "V_STFACT_CUSTOMER_PRODUCTS".
         "WASH_DISCOUNT_DEFINED_YN" "WASH_DISCOUNT_DEFINED_YN",
         "V_STFACT_CUSTOMER_PRODUCTS". "WASH_DISCOUNT_START_DATE"
         "WASH_DISCOUNT_START_DATE", "V_STFACT_CUSTOMER_PRODUCTS".
         "WASH_DISCOUNT_IS_CUST_SPEC_YN" "WASH_DISCOUNT_IS_CUST_SPEC_YN",
         "V_STFACT_CUSTOMER_PRODUCTS". "WASH_DISCOUNT_PRICE_LIST_CODE"
         "WASH_DISCOUNT_PRICE_LIST_CODE", "V_STFACT_CUSTOMER_PRODUCTS".
         "WASH_DISCOUNT_PRICE_LIST" "WASH_DISCOUNT_PRICE_LIST",
         "V_STFACT_CUSTOMER_PRODUCTS". "WASH_DISC_REASON_NOT_DEFINED"
         "WASH_DISC_REASON_NOT_DEFINED", "V_STFACT_CUSTOMER_PRODUCTS".
         "LOAN_PRICE" "LOAN_PRICE", "V_STFACT_CUSTOMER_PRODUCTS".
         "LOAN_PRICE_DEFINED_YN" "LOAN_PRICE_DEFINED_YN",
         "V_STFACT_CUSTOMER_PRODUCTS". "LOAN_PRICE_START_DATE"
         "LOAN_PRICE_START_DATE", "V_STFACT_CUSTOMER_PRODUCTS".
         "LOAN_PRICE_IS_CUST_SPECIFIC_YN" "LOAN_PRICE_IS_CUST_SPECIFIC_YN",
         "V_STFACT_CUSTOMER_PRODUCTS". "LOAN_PRICE_PRICE_LIST_CODE"
         "LOAN_PRICE_PRICE_LIST_CODE", "V_STFACT_CUSTOMER_PRODUCTS".
         "LOAN_PRICE_PRICE_LIST" "LOAN_PRICE_PRICE_LIST",
         "V_STFACT_CUSTOMER_PRODUCTS". "HEAVY_SOIL_PRICE" "HEAVY_SOIL_PRICE",
         "V_STFACT_CUSTOMER_PRODUCTS". "HEAVY_SOIL_PRICE_DEFINED_YN"
         "HEAVY_SOIL_PRICE_DEFINED_YN", "V_STFACT_CUSTOMER_PRODUCTS".
         "HEAVY_SOIL_PRICE_START_DATE" "HEAVY_SOIL_PRICE_START_DATE",
         "V_STFACT_CUSTOMER_PRODUCTS". "HSOIL_PRICE_CUST_SPECIFIC_YN"
         "HSOIL_PRICE_CUST_SPECIFIC_YN", "V_STFACT_CUSTOMER_PRODUCTS".
         "HSOIL_PRICE_PRICE_LIST_CODE" "HSOIL_PRICE_PRICE_LIST_CODE",
         "V_STFACT_CUSTOMER_PRODUCTS". "HSOIL_PRICE_PRICE_LIST"
         "HEAVY_SOIL_PRICE_PRICE_LIST", "V_STFACT_CUSTOMER_PRODUCTS".
         "CIRCULATING_INVENTORY" "CIRCULATING_INVENTORY",
         "V_STFACT_CUSTOMER_PRODUCTS". "NOMINAL_STOCK_QTY"
         "NOMINAL_STOCK_QTY", "V_STFACT_CUSTOMER_PRODUCTS".
         "CHARGEABLE_STOCK_QTY" "CHARGEABLE_STOCK_QTY",
         "V_STFACT_CUSTOMER_PRODUCTS". "LOAN_QTY" "LOAN_QTY",
         "V_STFACT_CUSTOMER_PRODUCTS". "FREE_OF_CHARGE_QTY"
         "FREE_OF_CHARGE_QTY", "V_STFACT_CUSTOMER_PRODUCTS".
         "DELIVERY_SCHEME_FREQUENCY" "DELIVERY_SCHEME_FREQUENCY",
         "V_STFACT_CUSTOMER_PRODUCTS". "DELIVERY_SCHEME_CODE"
         "DELIVERY_SCHEME_CODE", "V_STFACT_CUSTOMER_PRODUCTS".
         "DELIVERY_SCHEME" "DELIVERY_SCHEME", "V_STFACT_CUSTOMER_PRODUCTS".
         "DELIVER_BILL_MO" "DELIVER_BILL_MO", "V_STFACT_CUSTOMER_PRODUCTS".
         "DELIVER_BILL_TU" "DELIVER_BILL_TU", "V_STFACT_CUSTOMER_PRODUCTS".
         "DELIVER_BILL_WE" "DELIVER_BILL_WE", "V_STFACT_CUSTOMER_PRODUCTS".
         "DELIVER_BILL_TH" "DELIVER_BILL_TH", "V_STFACT_CUSTOMER_PRODUCTS".
         "DELIVER_BILL_FR" "DELIVER_BILL_FR", "V_STFACT_CUSTOMER_PRODUCTS".
         "DELIVER_BILL_SA" "DELIVER_BILL_SA", "V_STFACT_CUSTOMER_PRODUCTS".
         "DELIVER_BILL_SU" "DELIVER_BILL_SU", "V_STFACT_CUSTOMER_PRODUCTS".
         "AVG_WEEKLY_RENT_AMOUNT" "AVG_WEEKLY_RENT_AMOUNT",
         "V_STFACT_CUSTOMER_PRODUCTS". "AVG_WEEKLY_WASH_AMOUNT"
         "AVG_WEEKLY_WASH_AMOUNT", "V_STFACT_CUSTOMER_PRODUCTS".
         "AVG_WEEKLY_SALES_AMOUNT" "AVG_WEEKLY_SALES_AMOUNT",
         "V_STFACT_CUSTOMER_PRODUCTS". "AVG_WEEKLY_AUTO_REPLACE_AMOUNT"
         "AVG_WEEKLY_AUTO_REPLACE_AMOUNT", "V_STFACT_CUSTOMER_PRODUCTS".
         "AVG_WEEKLY_TOTAL_AMOUNT" "AVG_WEEKLY_TOTAL_AMOUNT",
         "V_STFACT_CUSTOMER_PRODUCTS". "FIXED_RENT_QTY" "FIXED_RENT_QTY",
         "CUSTOMER". "CUSTOMER_ID" "CUSTOMER_ID", "FINISHING_METHOD".
         "FINISHING_METHOD_ID" "FINISHING_METHOD_ID", "PRODUCT".
         "PRODUCT_SIZE_ID" "PRODUCT_SIZE_ID", "V_STFACT_CUSTOMER_PRODUCTS".
         "WASH_BUDGET_CODE" "WASH_BUDGET_CODE", "V_STFACT_CUSTOMER_PRODUCTS".
         "WASH_BUDGET_DESCRIPTION" "WASH_BUDGET_DESCRIPTION",
         "V_STFACT_CUSTOMER_PRODUCTS". "RENT_BUDGET_CODE" "RENT_BUDGET_CODE",
         "V_STFACT_CUSTOMER_PRODUCTS". "RENT_BUDGET_DESCRIPTION"
         "RENT_BUDGET_DESCRIPTION", "V_STFACT_CUSTOMER_PRODUCTS".
         "SALES_BUDGET_CODE" "SALES_BUDGET_CODE",
         "V_STFACT_CUSTOMER_PRODUCTS". "SALES_BUDGET_DESCRIPTION"
         "SALES_BUDGET_DESCRIPTION", "V_STFACT_CUSTOMER_PRODUCTS".
         "INSTALL_DATE" "INSTALL_DATE", "V_STFACT_CUSTOMER_PRODUCTS".
         "STRING1", "V_STFACT_CUSTOMER_PRODUCTS". "STRING2",
         "V_STFACT_CUSTOMER_PRODUCTS". "STRING3",
         "V_STFACT_CUSTOMER_PRODUCTS". "STRING4",
         "V_STFACT_CUSTOMER_PRODUCTS". "STRING5",
         "V_STFACT_CUSTOMER_PRODUCTS". "STRING6",
         "V_STFACT_CUSTOMER_PRODUCTS". "STRING7",
         "V_STFACT_CUSTOMER_PRODUCTS". "STRING8",
         "V_STFACT_CUSTOMER_PRODUCTS". "STRING9",
         "V_STFACT_CUSTOMER_PRODUCTS". "STRING10",
         "V_STFACT_CUSTOMER_PRODUCTS". "NUMBER1",
         "V_STFACT_CUSTOMER_PRODUCTS". "NUMBER2",
         "V_STFACT_CUSTOMER_PRODUCTS". "NUMBER3",
         "V_STFACT_CUSTOMER_PRODUCTS". "NUMBER4",
         "V_STFACT_CUSTOMER_PRODUCTS". "NUMBER5",
         "V_STFACT_CUSTOMER_PRODUCTS". "DATE1", "V_STFACT_CUSTOMER_PRODUCTS".
         "DATE2", "V_STFACT_CUSTOMER_PRODUCTS". "DATE3" FROM "ABSDWHSTAGING".
         "V_STFACT_CUSTOMER_PRODUCTS"@ "ABSDWHSTAGING_LOCATION"
         "V_STFACT_CUSTOMER_PRODUCTS", "CUSTOMER" "CUSTOMER",
         "FINISHING_METHOD" "FINISHING_METHOD", "PRODUCT" "PRODUCT" WHERE (
         "V_STFACT_CUSTOMER_PRODUCTS". "BUSINESS_UNIT_CODE" = :B1 ) AND (
         "CUSTOMER". "DIMENSION_KEY" = "CUSTOMER". "CUSTOMER_ID") AND (
         "CUSTOMER". "CUSTOMER_ID" IS NOT NULL) AND ( "FINISHING_METHOD".
         "DIMENSION_KEY" = "FINISHING_METHOD". "FINISHING_METHOD_ID") AND (
         "FINISHING_METHOD". "FINISHING_METHOD_ID" IS NOT NULL) AND (
         "PRODUCT". "DIMENSION_KEY" = "PRODUCT". "PRODUCT_SIZE_ID") AND (
         "PRODUCT". "PRODUCT_SIZE_ID" IS NOT NULL) AND ( "CUSTOMER".
         "CUSTOMER_SOURCE_ID" = "V_STFACT_CUSTOMER_PRODUCTS".
         "CUSTOMER_SOURCE_ID") AND ( "FINISHING_METHOD".
         "FINISHING_METHOD_SOURCE_ID" = "V_STFACT_CUSTOMER_PRODUCTS".
         "FINISHING_METHOD_SOURCE_ID") AND ( "PRODUCT".
         "PRODUCTSIZE_SIZE_SOURCE_ID" = "V_STFACT_CUSTOMER_PRODUCTS".
         "SIZE_SOURCE_ID") AND ( "PRODUCT". "PRODUCTSIZE_PRODUCT_SOURCE_ID" =
         "V_STFACT_CUSTOMER_PRODUCTS". "PRODUCT_SOURCE_ID"))
   Rationale
      The SQL spent only 14% of its database time on CPU, I/O and Cluster
      waits. Therefore, the SQL Tuning Advisor is not applicable in this case.
      Look at performance data for the SQL to find potential improvements.
   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 "3asqahbnvz6vf" was executed 29 times and had
      an average elapsed time of 4.9 seconds.
   Rationale
      Waiting for event "SQL*Net more data from dblink" in wait class
      "Network" accounted for 78% of the database time spent in processing the
      SQL statement with SQL_ID "3asqahbnvz6vf".
   Rationale
      Top level calls to execute the PL/SQL statement with SQL_ID
      "fpxb4nrq50xq5" are responsible for 100% of the database time spent on
      the INSERT statement with SQL_ID "3asqahbnvz6vf".
      Related Object
         SQL statement with SQL_ID fpxb4nrq50xq5.
         BEGIN load_warehouse.main; END;

   Recommendation 4: SQL Tuning
   Estimated benefit is .04 active sessions, 4.68% of total activity.
   ------------------------------------------------------------------
   Action
      Run SQL Tuning Advisor on the UPSERT statement with SQL_ID
      "54kbhr844prhv". Additionally, investigate this statement for possible
      performance improvements. You can supplement the information given here
      with an ASH report for this SQL_ID.
      Related Object
         SQL statement with SQL_ID 54kbhr844prhv.
         MERGE INTO CUSTOMER_REPORT_PERIOD CRP USING (SELECT
         X.CUSTOMER_SOURCE_ID, X.PERIOD_SOURCE_ID, ROW_NUMBER() OVER(PARTITION
         BY X.CUSTOMER_SOURCE_ID ORDER BY X.PERIOD_SOURCE_ID) PERIOD_SEQ FROM
         (SELECT C.CUSTOMER_SOURCE_ID, C.PERIOD_SOURCE_ID FROM
         CUSTOMER_REPORT_PERIOD C GROUP BY C.CUSTOMER_SOURCE_ID,
         C.PERIOD_SOURCE_ID ) X ) MERGE_SUBQUERY ON (CRP.CUSTOMER_SOURCE_ID =
         MERGE_SUBQUERY.CUSTOMER_SOURCE_ID AND CRP.PERIOD_SOURCE_ID =
         MERGE_SUBQUERY.PERIOD_SOURCE_ID) WHEN MATCHED THEN UPDATE SET
         CRP.PERIOD_SEQ = MERGE_SUBQUERY.PERIOD_SEQ
   Rationale
      The SQL spent 46% of its database time on CPU, I/O and Cluster waits.
      This part of database time may be improved by the SQL Tuning Advisor.
      Look at data given below and an ASH report for further performance
      improvements.
   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 "54kbhr844prhv" was executed 1 times and had
      an average elapsed time of 124 seconds.
   Rationale
      Waiting for event "log file switch (checkpoint incomplete)" in wait
      class "Configuration" accounted for 53% of the database time spent in
      processing the SQL statement with SQL_ID "54kbhr844prhv".
   Rationale
      Top level calls to execute the PL/SQL statement with SQL_ID
      "fpxb4nrq50xq5" are responsible for 100% of the database time spent on
      the UPSERT statement with SQL_ID "54kbhr844prhv".
      Related Object
         SQL statement with SQL_ID fpxb4nrq50xq5.
         BEGIN load_warehouse.main; END;

   Recommendation 5: SQL Tuning
   Estimated benefit is .04 active sessions, 4.68% of total activity.
   ------------------------------------------------------------------
   Action
      Run SQL Tuning Advisor on the UPSERT statement with SQL_ID
      "6k6gzvxk56wd7". Additionally, investigate this statement for possible
      performance improvements. You can supplement the information given here
      with an ASH report for this SQL_ID.
      Related Object
         SQL statement with SQL_ID 6k6gzvxk56wd7.
         MERGE INTO CUSTOMER_REPORT_PERIOD CRP USING ( SELECT
         C.CUSTOMER_SOURCE_ID, MIN(C.PERIOD_NUMBER) PERIOD_NUMBER, MIN(C.YEAR)
         YEAR, MIN(C.QUARTER_NUMBER) QUARTER_NUMBER, MIN(C.QUARTER_SEQ)
         QUARTER_SEQ FROM CUSTOMER_REPORT_PERIOD C WHERE C.PERIOD_SEQ =
         C.CURRENT_PERIOD_SEQ - 1 AND C.DAY_SOURCE_ID IS NULL GROUP BY
         C.CUSTOMER_SOURCE_ID ) MERGE_SUBQUERY ON (CRP.CUSTOMER_SOURCE_ID =
         MERGE_SUBQUERY.CUSTOMER_SOURCE_ID) WHEN MATCHED THEN UPDATE SET
         CRP.LAST_PERIOD_NUMBER = MERGE_SUBQUERY.PERIOD_NUMBER,
         CRP.LAST_PERIODS_YEAR = MERGE_SUBQUERY.YEAR,
         CRP.LAST_PERIODS_QUARTER_NUMBER = MERGE_SUBQUERY.QUARTER_NUMBER,
         CRP.LAST_PERIODS_QUARTER_SEQ = MERGE_SUBQUERY.QUARTER_SEQ
   Rationale
      The SQL spent 30% of its database time on CPU, I/O and Cluster waits.
      This part of database time may be improved by the SQL Tuning Advisor.
      Look at data given below and an ASH report for further performance
      improvements.
   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 "6k6gzvxk56wd7" was executed 1 times and had
      an average elapsed time of 132 seconds.
   Rationale
      Waiting for event "log file switch (checkpoint incomplete)" in wait
      class "Configuration" accounted for 61% of the database time spent in
      processing the SQL statement with SQL_ID "6k6gzvxk56wd7".
   Rationale
      Top level calls to execute the PL/SQL statement with SQL_ID
      "fpxb4nrq50xq5" are responsible for 100% of the database time spent on
      the UPSERT statement with SQL_ID "6k6gzvxk56wd7".
      Related Object
         SQL statement with SQL_ID fpxb4nrq50xq5.
         BEGIN load_warehouse.main; END;

   Recommendation 6: SQL Tuning
   Estimated benefit is .03 active sessions, 4.32% of total activity.
   ------------------------------------------------------------------
   Action
      Investigate the UPSERT statement with SQL_ID "dvm0d7vj3afwh" for
      possible performance improvements. You can supplement the information
      given here with an ASH report for this SQL_ID.
      Related Object
         SQL statement with SQL_ID dvm0d7vj3afwh.
         MERGE INTO "STFACT_CUSTOMER_PRODUCTS_MISC" M USING ( SELECT
         PRODUCTLISTPERCUSTOMER_ID, TYPEOFMERCHANDISE, CIRC_QTY,
         NOMINAL_STOCK_QTY, CHARGEABLE_STOCK_QTY, LOAN_QTY FROM "ABSSOLUTE".
         "DWH_FACT_CUST_PRODUCT_CIRC2"@ "ABSSOLUTE_LOCATION"
         "DWH_FACT_CUST_PRODUCT_CIRC2" WHERE ( "DWH_FACT_CUST_PRODUCT_CIRC2".
         "BUSINESSUNIT_CODE" = :B1 ) ) MQ ON (M.PRODUCTLISTPERCUSTOMER_ID =
         MQ.PRODUCTLISTPERCUSTOMER_ID) WHEN MATCHED THEN UPDATE SET
         M.CIRCULATING_INVENTORY = CASE WHEN MQ.TYPEOFMERCHANDISE = 2 THEN
         M.CIRCULATING_INVENTORY ELSE MQ.CIRC_QTY END, M.NOMINAL_STOCK_QTY =
         MQ.NOMINAL_STOCK_QTY, M.CHARGEABLE_STOCK_QTY =
         MQ.CHARGEABLE_STOCK_QTY, M.LOAN_QTY = MQ.LOAN_QTY
   Rationale
      The SQL spent only 0% of its database time on CPU, I/O and Cluster
      waits. Therefore, the SQL Tuning Advisor is not applicable in this case.
      Look at performance data for the SQL to find potential improvements.
   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 "dvm0d7vj3afwh" was executed 27 times and had
      an average elapsed time of 5.3 seconds.
   Rationale
      Waiting for event "SQL*Net message from dblink" in wait class "Network"
      accounted for 100% of the database time spent in processing the SQL
      statement with SQL_ID "dvm0d7vj3afwh".
   Rationale
      Top level calls to execute the PL/SQL statement with SQL_ID
      "c0874a95q5fr1" are responsible for 100% of the database time spent on
      the UPSERT statement with SQL_ID "dvm0d7vj3afwh".
      Related Object
         SQL statement with SQL_ID c0874a95q5fr1.
         BEGIN load_staging.main; END;


Finding 2: Unusual "Network" Wait Event
Impact is .12 active sessions, 15.85% of total activity.
--------------------------------------------------------
Wait event "SQL*Net message from dblink" in wait class "Network" was consuming
significant database time.

   Recommendation 1: Application Analysis
   Estimated benefit is .12 active sessions, 15.85% of total activity.
   -------------------------------------------------------------------
   Action
      Investigate the cause for high "SQL*Net message from dblink" waits.
      Refer to Oracle's "Database Reference" for the description of this wait
      event.
   Action
      Look at the "Top SQL Statements" finding for SQL statements consuming
      significant time on the "SQL*Net message from dblink" wait event. For
      example, the UPSERT statement with SQL_ID "dvm0d7vj3afwh" is responsible
      for 27% of these waits.

   Recommendation 2: Application Analysis
   Estimated benefit is .12 active sessions, 15.85% of total activity.
   -------------------------------------------------------------------
   Action
      Investigate the cause for high "SQL*Net message from dblink" waits in
      Module "SQL*Plus".

   Recommendation 3: Application Analysis
   Estimated benefit is .12 active sessions, 15.85% of total activity.
   -------------------------------------------------------------------
   Action
      Investigate the cause for high "SQL*Net message from dblink" waits in
      Service "ABS1".

   Recommendation 4: Application Analysis
   Estimated benefit is .1 active sessions, 13.26% of total activity.
   ------------------------------------------------------------------
   Action
      Investigate the cause for high "SQL*Net message from dblink" waits with
      P1 ("driver id") value "1413697536" and P2 ("#bytes") value "1".

   Symptoms That Led to the Finding:
   ---------------------------------
      Wait class "Network" was consuming significant database time.
      Impact is .23 active sessions, 29.56% of total activity.


Finding 3: Log File Switches
Impact is .12 active sessions, 15.68% of total activity.
--------------------------------------------------------
Log file switch operations were consuming significant database time while
waiting for checkpoint completion.
This problem can be caused by use of hot backup mode on tablespaces.  DML to
tablespaces in hot backup mode causes generation of additional redo.

   Recommendation 1: Database Configuration
   Estimated benefit is .12 active sessions, 15.68% of total activity.
   -------------------------------------------------------------------
   Action
      Verify whether incremental shipping was used for standby databases.

   Recommendation 2: Database Configuration
   Estimated benefit is .12 active sessions, 15.68% of total activity.
   -------------------------------------------------------------------
   Action
      Increase the size of the log files to 2048 M to hold at least 20 minutes
      of redo information.

   Symptoms That Led to the Finding:
   ---------------------------------
      Wait class "Configuration" was consuming significant database time.
      Impact is .12 active sessions, 15.69% of total activity.


Finding 4: Unusual "Network" Wait Event
Impact is .11 active sessions, 13.64% of total activity.
--------------------------------------------------------
Wait event "SQL*Net more data from dblink" in wait class "Network" was
consuming significant database time.

   Recommendation 1: Application Analysis
   Estimated benefit is .11 active sessions, 13.64% of total activity.
   -------------------------------------------------------------------
   Action
      Investigate the cause for high "SQL*Net more data from dblink" waits.
      Refer to Oracle's "Database Reference" for the description of this wait
      event.
   Action
      Look at the "Top SQL Statements" finding for SQL statements consuming
      significant time on the "SQL*Net more data from dblink" wait event. For
      example, the INSERT statement with SQL_ID "d3h8s5qckxvs9" is responsible
      for 47% of these waits.

   Recommendation 2: Application Analysis
   Estimated benefit is .11 active sessions, 13.64% of total activity.
   -------------------------------------------------------------------
   Action
      Investigate the cause for high "SQL*Net more data from dblink" waits in
      Module "SQL*Plus".

   Recommendation 3: Application Analysis
   Estimated benefit is .11 active sessions, 13.64% of total activity.
   -------------------------------------------------------------------
   Action
      Investigate the cause for high "SQL*Net more data from dblink" waits in
      Service "ABS1".

   Symptoms That Led to the Finding:
   ---------------------------------
      Wait class "Network" was consuming significant database time.
      Impact is .23 active sessions, 29.56% of total activity.


Finding 5: Undersized SGA
Impact is .03 active sessions, 3.41% of total activity.
-------------------------------------------------------
The SGA was inadequately sized, causing additional I/O or hard parses.
The value of parameter "sga_target" was "12960 M" during the analysis period.

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

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


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

   Recommendation 1: Segment Tuning
   Estimated benefit is .02 active sessions, 3.09% of total activity.
   ------------------------------------------------------------------
   Action
      Run "Segment Advisor" on INDEX "ABSDWHSTAGING.PK_CIRC_INV_SNAPSHOT" with
      object ID 141074.
      Related Object
         Database object with ID 141074.
   Action
      Investigate application logic involving I/O on INDEX
      "ABSDWHSTAGING.PK_CIRC_INV_SNAPSHOT" with object ID 141074.
      Related Object
         Database object with ID 141074.
   Action
      Look at the "Top SQL Statements" finding for SQL statements consuming
      significant I/O on this segment. For example, the SELECT statement with
      SQL_ID "33c3k6rkxjhdk" is responsible for 100% of "User I/O" and
      "Cluster" waits for this segment.

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


Finding 7: I/O to Temporary Tablespaces
Impact is .02 active sessions, 2.01% of total activity.
-------------------------------------------------------
Waits for I/O to temporary tablespaces were consuming significant database
time.
The value of parameter "pga_aggregate_target" was "3840 M" during the analysis
period.

   Recommendation 1: Application Analysis
   Estimated benefit is .02 active sessions, 2.01% of total activity.
   ------------------------------------------------------------------
   Action
      Look at the "Top SQL Statements" finding for SQL statements consuming
      significant I/O on temporary tablespaces.

   Recommendation 2: Database Configuration
   Estimated benefit is 0 active sessions, .2% of total activity.
   --------------------------------------------------------------
   Action
      Increase the size of the PGA by setting the value of parameter
      "pga_aggregate_target" to 4608 M.

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



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

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

Miscellaneous Information
-------------------------
Wait class "Application" was not consuming significant database time.
Wait class "Commit" was not consuming significant database time.
Wait class "Concurrency" was not consuming significant database time.
CPU was not a bottleneck for the instance.
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 99% of the analysis
period.


Back to Top

End of Report