WORKLOAD REPOSITORY report for

DB NameDB IdInstanceInst numReleaseRACHost
ZCX3500833474zcx1110.2.0.4.0YESZCXDB1

Snap IdSnap TimeSessionsCursors/Session
Begin Snap:692711-3ÔÂ -13 19:00:02417 2.6
End Snap:692811-3ÔÂ -13 20:00:13365 2.5
Elapsed:  60.19 (mins)  
DB Time:  33.58 (mins)  

Report Summary

Cache Sizes

BeginEnd
Buffer Cache: 3,920M 3,920MStd Block Size: 8K
Shared Pool Size: 6,128M 6,128MLog Buffer: 47,096K

Load Profile

Per SecondPer Transaction
Redo size: 2,742,885.66 369,112.41
Logical reads: 28,252.81 3,802.00
Block changes: 23,275.52 3,132.21
Physical reads: 2.56 0.34
Physical writes: 264.31 35.57
User calls: 227.93 30.67
Parses: 79.54 10.70
Hard parses: 4.02 0.54
Sorts: 13.43 1.81
Logons: 0.19 0.03
Executes: 92.36 12.43
Transactions: 7.43 

% Blocks changed per Read: 82.38Recursive Call %: 22.55
Rollback per transaction %: 13.69Rows per Sort: 4063.89

Instance Efficiency Percentages (Target 100%)

Buffer Nowait %: 100.00Redo NoWait %: 100.00
Buffer Hit %: 100.00In-memory Sort %: 100.00
Library Hit %: 93.73Soft Parse %: 94.95
Execute to Parse %: 13.88Latch Hit %: 99.98
Parse CPU to Parse Elapsd %: 99.44% Non-Parse CPU: 89.36

Shared Pool Statistics

BeginEnd
Memory Usage %: 90.12 90.54
% SQL with executions>1: 88.67 87.58
% Memory for SQL w/exec>1: 86.55 81.64

Top 5 Timed Events

EventWaitsTime(s)Avg Wait(ms)% Total Call TimeWait Class
CPU time  1,707  84.7 
Log archive I/O 9,623 329 34 16.3System I/O
log file parallel write 30,059 306 10 15.2System I/O
log file sync 20,148 240 12 11.9Commit
log file sequential read 10,020 146 15 7.2System I/O

RAC Statistics

BeginEnd
Number of Instances: 2 2

Global Cache Load Profile

Per SecondPer Transaction
Global Cache blocks received: 43.18 5.81
Global Cache blocks served: 10.26 1.38
GCS/GES messages received: 39.72 5.34
GCS/GES messages sent: 75.89 10.21
DBWR Fusion writes: 1.07 0.14
Estd Interconnect traffic (KB) 450.14 

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

Buffer access - local cache %: 99.85
Buffer access - remote cache %: 0.15
Buffer access - disk %: 0.00

Global Cache and Enqueue Services - Workload Characteristics

Avg global enqueue get time (ms): 0.0
Avg global cache cr block receive time (ms): 0.4
Avg global cache current block receive time (ms): 0.4
Avg global cache cr block build time (ms): 0.0
Avg global cache cr block send time (ms): 0.0
Global cache log flushes for cr blocks served %: 1.7
Avg global cache cr block flush time (ms): 15.0
Avg global cache current block pin time (ms): 1,485.5
Avg global cache current block send time (ms): 0.0
Global cache log flushes for current blocks served %: 1.2
Avg global cache current block flush time (ms): 78.5

Global Cache and Enqueue Services - Messaging Statistics

Avg message sent queue time (ms): 387.3
Avg message sent queue time on ksxp (ms): 0.2
Avg message received queue time (ms): 0.0
Avg GCS message process time (ms): 0.0
Avg GES message process time (ms): 0.0
% of direct sent messages: 61.52
% of indirect sent messages: 24.92
% of flow controlled messages: 13.56


Main Report

More RAC Statistics


Back to Top

Wait Events Statistics

Back to Top

Time Model Statistics

Statistic NameTime (s)% of DB Time
DB CPU 1,706.63 84.70
sql execute elapsed time 1,552.39 77.05
parse time elapsed 181.29 9.00
hard parse elapsed time 166.72 8.27
sequence load elapsed time 3.02 0.15
connection management call elapsed time 2.47 0.12
PL/SQL execution elapsed time 2.12 0.11
PL/SQL compilation elapsed time 0.51 0.03
hard parse (sharing criteria) elapsed time 0.02 0.00
hard parse (bind mismatch) elapsed time 0.01 0.00
failed parse elapsed time 0.01 0.00
repeated bind elapsed time 0.00 0.00
DB time 2,014.86  
background elapsed time 1,428.78  
background cpu time 208.33  

Back to Wait Events Statistics
Back to Top

Wait Class

Wait ClassWaits%Time -outsTotal Wait Time (s)Avg wait (ms)Waits /txn
System I/O 64,023 0.00 819 13 2.39
Commit 20,148 0.00 240 12 0.75
Cluster 159,034 0.01 56 0 5.93
User I/O 9,349 0.00 35 4 0.35
Other 74,963 55.53 33 0 2.79
Configuration 92,493 99.77 16 0 3.45
Concurrency 5,357 0.69 4 1 0.20
Network 606,521 0.00 1 0 22.60
Application 1,145 0.00 0 0 0.04

Back to Wait Events Statistics
Back to Top

Wait Events

EventWaits%Time -outsTotal Wait Time (s)Avg wait (ms)Waits /txn
Log archive I/O 9,623 0.00 329 34 0.36
log file parallel write 30,059 0.00 306 10 1.12
log file sync 20,148 0.00 240 12 0.75
log file sequential read 10,020 0.00 146 15 0.37
db file sequential read 5,279 0.00 35 7 0.20
gc current block 2-way 101,369 0.00 29 0 3.78
control file sequential read 12,130 0.00 25 2 0.45
log file switch completion 68 16.18 16 237 0.00
gcs log flush sync 1,279 30.49 15 12 0.05
control file parallel write 2,065 0.00 13 6 0.08
wait for scn ack 22,414 0.00 13 1 0.84
gc cr block 2-way 23,651 0.00 9 0 0.88
gc buffer busy 95 10.53 7 75 0.00
gc cr multi block request 25,089 0.00 4 0 0.93
gc current block busy 149 0.00 3 19 0.01
gc current grant busy 5,393 0.00 3 1 0.20
buffer busy waits 2,051 0.00 2 1 0.08
enq: WF - contention 14 28.57 2 143 0.00
DFS lock handle 4,623 0.00 2 0 0.17
row cache lock 2,687 0.00 1 0 0.10
SQL*Net more data to client 35,382 0.00 1 0 1.32
gc current grant 2-way 1,990 0.00 1 0 0.07
SQL*Net message to client 551,045 0.00 1 0 20.53
cursor: pin S wait on X 37 100.00 0 11 0.00
gc cr block busy 155 0.00 0 2 0.01
CGS wait for IPC msg 32,489 100.00 0 0 1.21
gc cr grant 2-way 1,078 0.00 0 0 0.04
latch free 85 0.00 0 3 0.00
SQL*Net more data from client 20,094 0.00 0 0 0.75
undo segment extension 92,395 99.86 0 0 3.44
library cache lock 461 0.00 0 0 0.02
enq: US - contention 697 0.00 0 0 0.03
SQL*Net break/reset to client 966 0.00 0 0 0.04
reliable message 263 0.00 0 0 0.01
enq: CF - contention 161 0.00 0 1 0.01
latch: shared pool 30 0.00 0 3 0.00
ksxr poll remote instances 9,130 63.75 0 0 0.34
os thread startup 2 0.00 0 32 0.00
IPC send completion sync 225 100.00 0 0 0.01
enq: TM - contention 179 0.00 0 0 0.01
enq: PS - contention 102 0.00 0 0 0.00
enq: TX - index contention 12 0.00 0 3 0.00
rdbms ipc reply 122 0.00 0 0 0.00
log file single write 126 0.00 0 0 0.00
PX Deq: reap credit 2,784 96.23 0 0 0.10
db file scattered read 2 0.00 0 11 0.00
enq: TX - allocate ITL entry 10 0.00 0 2 0.00
gc current split 3 0.00 0 6 0.00
enq: WL - contention 43 0.00 0 0 0.00
latch: cache buffers chains 68 0.00 0 0 0.00
direct path read 3,982 0.00 0 0 0.15
gc current multi block request 58 0.00 0 0 0.00
enq: TT - contention 26 0.00 0 0 0.00
ges inquiry response 14 0.00 0 1 0.00
latch: cache buffers lru chain 14 0.00 0 0 0.00
enq: FB - contention 13 0.00 0 0 0.00
LGWR wait for redo copy 379 0.00 0 0 0.01
enq: HW - contention 13 0.00 0 0 0.00
latch: messages 5 0.00 0 1 0.00
library cache pin 5 0.00 0 1 0.00
enq: TA - contention 12 0.00 0 0 0.00
enq: JQ - contention 4 0.00 0 1 0.00
PX Deq Credit: send blkd 19 63.16 0 0 0.00
enq: SQ - contention 1 0.00 0 2 0.00
enq: MW - contention 2 0.00 0 1 0.00
latch: library cache 4 0.00 0 0 0.00
PX Deq: Signal ACK 18 22.22 0 0 0.00
latch: redo writing 6 0.00 0 0 0.00
enq: JS - job run lock - synchronize 2 0.00 0 0 0.00
latch: session allocation 7 0.00 0 0 0.00
gc current retry 4 0.00 0 0 0.00
enq: AS - service activation 1 0.00 0 0 0.00
latch: ges resource hash list 6 0.00 0 0 0.00
direct path write 86 0.00 0 0 0.00
lock escalate retry 6 66.67 0 0 0.00
latch: object queue header operation 2 0.00 0 0 0.00
buffer deadlock 1 100.00 0 0 0.00
latch: gcs resource hash 1 0.00 0 0 0.00
SQL*Net message from client 551,097 0.00 1,026,421 1863 20.53
gcs remote message 2,016,508 98.27 56,353 28 75.14
jobq slave wait 5,839 49.15 14,098 2414 0.22
Streams AQ: qmn slave idle wait 271 0.00 7,069 26086 0.01
Streams AQ: waiting for messages in the queue 1,110 97.39 7,036 6339 0.04
Streams AQ: qmn coordinator idle wait 296 43.58 3,535 11941 0.01
DIAG idle wait 18,041 0.00 3,525 195 0.67
ges remote message 59,847 94.23 3,525 59 2.23
wait for unread message on broadcast channel 3,615 99.50 3,524 975 0.13
PX Idle Wait 1,503 93.61 3,522 2343 0.06
virtual circuit status 120 100.00 3,514 29287 0.00
Streams AQ: waiting for time management or cleanup tasks 12 0.00 3,264 272041 0.00
PX Deq: Execution Msg 461 32.97 0 0 0.02
PX Deq: Join ACK 30 40.00 0 1 0.00
PX Deq: Msg Fragment 149 42.95 0 0 0.01
PX Deq: Parse Reply 29 41.38 0 0 0.00
Streams AQ: RAC qmn coordinator idle wait 296 97.64 0 0 0.01
PX Deq: Execute Reply 21 42.86 0 0 0.00
class slave wait 3 0.00 0 0 0.00

Back to Wait Events Statistics
Back to Top

Background Wait Events

EventWaits%Time -outsTotal Wait Time (s)Avg wait (ms)Waits /txn
Log archive I/O 9,623 0.00 329 34 0.36
log file parallel write 30,057 0.00 306 10 1.12
log file sequential read 10,020 0.00 146 15 0.37
events in waitclass Other 71,022 54.80 31 0 2.65
control file sequential read 11,420 0.00 25 2 0.43
control file parallel write 2,065 0.00 13 6 0.08
gc current block 2-way 766 0.00 0 0 0.03
gc cr block 2-way 471 0.00 0 0 0.02
gc cr multi block request 1,146 0.00 0 0 0.04
os thread startup 2 0.00 0 32 0.00
row cache lock 124 0.00 0 0 0.00
enq: TM - contention 179 0.00 0 0 0.01
latch: shared pool 5 0.00 0 6 0.00
log file single write 126 0.00 0 0 0.00
latch: cache buffers chains 58 0.00 0 0 0.00
library cache lock 22 0.00 0 0 0.00
buffer busy waits 334 0.00 0 0 0.01
gc current grant busy 20 0.00 0 0 0.00
latch: redo writing 6 0.00 0 0 0.00
direct path read 134 0.00 0 0 0.00
direct path write 74 0.00 0 0 0.00
rdbms ipc message 236,062 27.47 68,656 291 8.80
gcs remote message 2,016,510 98.27 56,353 28 75.14
Streams AQ: qmn slave idle wait 271 0.00 7,069 26086 0.01
Streams AQ: qmn coordinator idle wait 296 43.58 3,535 11941 0.01
DIAG idle wait 18,042 0.00 3,526 195 0.67
ges remote message 59,850 94.23 3,525 59 2.23
pmon timer 1,785 99.89 3,520 1972 0.07
smon timer 49 0.00 3,320 67749 0.00
Streams AQ: waiting for time management or cleanup tasks 12 0.00 3,264 272041 0.00
PX Deq: Join ACK 30 40.00 0 1 0.00
PX Deq: Parse Reply 29 41.38 0 0 0.00
Streams AQ: RAC qmn coordinator idle wait 296 97.64 0 0 0.01
PX Deq: Execute Reply 21 42.86 0 0 0.00

Back to Wait Events Statistics
Back to Top

Operating System Statistics

StatisticTotal
BUSY_TIME 208,038
IDLE_TIME 22,885,578
IOWAIT_TIME 75,501
NICE_TIME 40
SYS_TIME 26,130
USER_TIME 177,912
LOAD 0
RSRC_MGR_CPU_WAIT_TIME 0
PHYSICAL_MEMORY_BYTES 67,576,430,592
NUM_CPUS 64
NUM_CPU_SOCKETS 4

Back to Wait Events Statistics
Back to Top

Service Statistics

Service NameDB Time (s)DB CPU (s)Physical ReadsLogical Reads
SYS$USERS 1,023.70 907.60 649 68,462,366
zcx 1,000.00 804.50 8,063 33,700,112
SYS$BACKGROUND 0.00 0.00 618 54,446
zcxXDB 0.00 0.00 0 0

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 635 485 3046 46 0 0 109869 21
zcx 7944 2693 1712 360 0 0 494391 116
SYS$BACKGROUND 777 354 600 21 0 0 0 0

Back to Wait Events Statistics
Back to Top

SQL Statistics

Back to Top

SQL ordered by Elapsed Time

Elapsed Time (s)CPU Time (s)Executions Elap per Exec (s) % Total DB Time SQL IdSQL ModuleSQL Text
768 756 5,624 0.14 38.12 34v2tcm3r80jc JDBC Thin Client BEGIN p_matchProvideRes( ...
542 534 5,624 0.10 26.91 8zgpq15rjtxz7 JDBC Thin Client DELETE FROM TEMP_REST
140 136 5,624 0.02 6.94 8prjhgrpvx46c JDBC Thin Client INSERT INTO TEMP_REST ( SELECT...
92 92 4,232 0.02 4.56 f0ymgsxng2v5k JDBC Thin Client select x.* from (select rownum...
65 65 5,624 0.01 3.21 d5311xq5wwwjh JDBC Thin Client SELECT COUNT(1) FROM TEMP_REST...
31 31 4,232 0.01 1.52 aqjm2pvdxzqwm JDBC Thin Client select count(*) from (select ...
30 30 4 7.45 1.48 czm5xw4a1zzt1 JDBC Thin Client select tbl.*, cast(cast(tbl.OR...
24 6 4,218 0.01 1.19 c642s3tkxswz8   insert into INTERFACE_LOG (RS_...
18 18 6 3.03 0.90 akrj56fjmsv58 JDBC Thin Client select count(1) from (select O...
15 15 1,229 0.01 0.74 0x6vgnxuq1dwh JDBC Thin Client SELECT TR.T_ID FROM TEMP_REST ...

Back to SQL Statistics
Back to Top

SQL ordered by CPU Time

CPU Time (s)Elapsed Time (s)Executions CPU per Exec (s)% Total DB Time SQL IdSQL ModuleSQL Text
756 768 5,624 0.13 38.12 34v2tcm3r80jc JDBC Thin Client BEGIN p_matchProvideRes( ...
534 542 5,624 0.09 26.91 8zgpq15rjtxz7 JDBC Thin Client DELETE FROM TEMP_REST
136 140 5,624 0.02 6.94 8prjhgrpvx46c JDBC Thin Client INSERT INTO TEMP_REST ( SELECT...
92 92 4,232 0.02 4.56 f0ymgsxng2v5k JDBC Thin Client select x.* from (select rownum...
65 65 5,624 0.01 3.21 d5311xq5wwwjh JDBC Thin Client SELECT COUNT(1) FROM TEMP_REST...
31 31 4,232 0.01 1.52 aqjm2pvdxzqwm JDBC Thin Client select count(*) from (select ...
30 30 4 7.45 1.48 czm5xw4a1zzt1 JDBC Thin Client select tbl.*, cast(cast(tbl.OR...
18 18 6 3.03 0.90 akrj56fjmsv58 JDBC Thin Client select count(1) from (select O...
15 15 1,229 0.01 0.74 0x6vgnxuq1dwh JDBC Thin Client SELECT TR.T_ID FROM TEMP_REST ...
12 12 4 2.99 0.59 4nvs08fnngd66 JDBC Thin Client select x.* from (select rownum...
6 24 4,218 0.00 1.19 c642s3tkxswz8   insert into INTERFACE_LOG (RS_...

Back to SQL Statistics
Back to Top

SQL ordered by Gets

Buffer Gets Executions Gets per Exec %TotalCPU Time (s)Elapsed Time (s) SQL IdSQL ModuleSQL Text
62,012,977 5,624 11,026.49 60.77 755.72 768.14 34v2tcm3r80jc JDBC Thin Client BEGIN p_matchProvideRes( ...
45,868,193 5,624 8,155.80 44.95 534.17 542.26 8zgpq15rjtxz7 JDBC Thin Client DELETE FROM TEMP_REST
13,313,540 5,624 2,367.27 13.05 135.66 139.90 8prjhgrpvx46c JDBC Thin Client INSERT INTO TEMP_REST ( SELECT...
2,922,119 4 730,529.75 2.86 29.78 29.78 czm5xw4a1zzt1 JDBC Thin Client select tbl.*, cast(cast(tbl.OR...
2,886,906 4,232 682.16 2.83 30.55 30.55 aqjm2pvdxzqwm JDBC Thin Client select count(*) from (select ...
2,886,224 4,232 682.00 2.83 91.85 91.94 f0ymgsxng2v5k JDBC Thin Client select x.* from (select rownum...
2,255,224 5,624 401.00 2.21 64.58 64.64 d5311xq5wwwjh JDBC Thin Client SELECT COUNT(1) FROM TEMP_REST...
1,640,931 6 273,488.50 1.61 18.20 18.20 akrj56fjmsv58 JDBC Thin Client select count(1) from (select O...
1,093,950 4 273,487.50 1.07 11.96 11.96 4nvs08fnngd66 JDBC Thin Client select x.* from (select rownum...
705,414 1 705,414.00 0.69 7.13 7.13 17f603htbs76j JDBC Thin Client select tbl.*, cast(cast(tbl.OR...

Back to SQL Statistics
Back to Top

SQL ordered by Reads

Physical ReadsExecutionsReads per Exec %TotalCPU Time (s)Elapsed Time (s) SQL IdSQL ModuleSQL Text
903 7,558 0.12 9.76 6.12 9.94 0hn47ugzrmka3 JDBC Thin Client insert into INTERFACE_LOG (RES...
532 1 532.00 5.75 3.64 8.40 7bfagrnpbjtdr JDBC Thin Client select count(1) from ( SELECT ...
483 275 1.76 5.22 0.87 3.75 gpp5bnnfdr9p0 JDBC Thin Client insert into shortmessage_log(s...
399 5,624 0.07 4.31 755.72 768.14 34v2tcm3r80jc JDBC Thin Client BEGIN p_matchProvideRes( ...
360 5,624 0.06 3.89 135.66 139.90 8prjhgrpvx46c JDBC Thin Client INSERT INTO TEMP_REST ( SELECT...
230 623 0.37 2.49 1.01 2.70 19tf6qxr2gpv2 JDBC Thin Client insert into ORDER_LOG (ORDER_I...
212 4,218 0.05 2.29 6.37 24.01 c642s3tkxswz8   insert into INTERFACE_LOG (RS_...
134 5,681 0.02 1.45 1.04 1.84 5v7ydyz8rvx3n JDBC Thin Client select PROV_RES_ID,...
89 1 89.00 0.96 3.30 3.83 d92h3rjp0y217   begin prvt_hdm.auto_execute( :...
82 576 0.14 0.89 0.53 1.01 aq9706bk6j5x5   select DOC_ID, DOC...

Back to SQL Statistics
Back to Top

SQL ordered by Executions

Executions Rows ProcessedRows per ExecCPU per Exec (s)Elap per Exec (s) SQL IdSQL ModuleSQL Text
134,704 134,706 1.00 0.00 0.00 6cv3th0fzdvj7   select 1 FROM dual
13,967 13,967 1.00 0.00 0.00 7h35uxf5uhmm1   select sysdate from dual
11,023 11,023 1.00 0.00 0.00 2r8m6sczasak5   select 1 FROM dual
7,558 7,558 1.00 0.00 0.00 0hn47ugzrmka3 JDBC Thin Client insert into INTERFACE_LOG (RES...
7,558 7,558 1.00 0.00 0.00 67mvkmkdrtbk6 JDBC Thin Client select SEQ_INTERFACE_LOG.nextv...
6,424 6,424 1.00 0.00 0.00 dujc578p6dnyz JDBC Thin Client select restaurant0_.RESTAURANT...
5,681 5,681 1.00 0.00 0.00 5v7ydyz8rvx3n JDBC Thin Client select PROV_RES_ID,...
5,624 5,624 1.00 0.13 0.14 34v2tcm3r80jc JDBC Thin Client BEGIN p_matchProvideRes( ...
5,624 39,554,797 7,033.21 0.02 0.02 8prjhgrpvx46c JDBC Thin Client INSERT INTO TEMP_REST ( SELECT...
5,624 39,654,962 7,051.02 0.09 0.10 8zgpq15rjtxz7 JDBC Thin Client DELETE FROM TEMP_REST
5,624 5,624 1.00 0.01 0.01 d5311xq5wwwjh JDBC Thin Client SELECT COUNT(1) FROM TEMP_REST...
4,232 4,233 1.00 0.01 0.01 aqjm2pvdxzqwm JDBC Thin Client select count(*) from (select ...
4,232 418,150 98.81 0.02 0.02 f0ymgsxng2v5k JDBC Thin Client select x.* from (select rownum...
4,218 4,218 1.00 0.00 0.01 c642s3tkxswz8   insert into INTERFACE_LOG (RS_...
4,218 4,218 1.00 0.00 0.00 d084nnf7u2vt8   select SEQ_INTERFACE_LOG.Nextv...

Back to SQL Statistics
Back to Top

SQL ordered by Parse Calls

Parse CallsExecutions % Total Parses SQL IdSQL ModuleSQL Text
134,704 134,704 46.89 6cv3th0fzdvj7   select 1 FROM dual
13,967 13,967 4.86 7h35uxf5uhmm1   select sysdate from dual
11,023 11,023 3.84 2r8m6sczasak5   select 1 FROM dual
7,558 7,558 2.63 0hn47ugzrmka3 JDBC Thin Client insert into INTERFACE_LOG (RES...
7,558 7,558 2.63 67mvkmkdrtbk6 JDBC Thin Client select SEQ_INTERFACE_LOG.nextv...
6,424 6,424 2.24 dujc578p6dnyz JDBC Thin Client select restaurant0_.RESTAURANT...
5,681 5,681 1.98 5v7ydyz8rvx3n JDBC Thin Client select PROV_RES_ID,...
5,623 5,624 1.96 34v2tcm3r80jc JDBC Thin Client BEGIN p_matchProvideRes( ...
4,232 4,232 1.47 aqjm2pvdxzqwm JDBC Thin Client select count(*) from (select ...
4,232 4,232 1.47 f0ymgsxng2v5k JDBC Thin Client select x.* from (select rownum...
4,218 4,218 1.47 c642s3tkxswz8   insert into INTERFACE_LOG (RS_...
4,218 4,218 1.47 d084nnf7u2vt8   select SEQ_INTERFACE_LOG.Nextv...
2,923 2,922 1.02 520mkxqpf15q8 JDBC Thin Client select 1 from dual

Back to SQL Statistics
Back to Top

SQL ordered by Sharable Memory

No data exists for this section of the report.

Back to SQL Statistics
Back to Top

SQL ordered by Version Count

Version Count Executions SQL IdSQL ModuleSQL Text
70 7,558 0hn47ugzrmka3 JDBC Thin Client insert into INTERFACE_LOG (RES...
49 4,218 c642s3tkxswz8   insert into INTERFACE_LOG (RS_...
36 623 19tf6qxr2gpv2 JDBC Thin Client insert into ORDER_LOG (ORDER_I...
23 275 gpp5bnnfdr9p0 JDBC Thin Client insert into shortmessage_log(s...

Back to SQL Statistics
Back to Top

SQL ordered by Cluster Wait Time

Cluster Wait Time (s)CWT % of Elapsd TimeElapsed Time(s)CPU Time(s)Executions SQL IdSQL ModuleSQL Text
12.07 50.25 24.01 6.37 4,218 c642s3tkxswz8   insert into INTERFACE_LOG (RS_...
4.12 49.02 8.40 3.64 1 7bfagrnpbjtdr JDBC Thin Client select count(1) from ( SELECT ...
4.01 51.96 7.72 4.67 1 1xtpt28s7mff1 JDBC Thin Client SELECT O.ORDER_ID FROM ORDER_I...
3.31 39.97 8.28 5.81 1 cqh9dz0xrpqab JDBC Thin Client select count(1) from (select O...
2.85 0.37 768.14 755.72 5,624 34v2tcm3r80jc JDBC Thin Client BEGIN p_matchProvideRes( ...
2.10 1.50 139.90 135.66 5,624 8prjhgrpvx46c JDBC Thin Client INSERT INTO TEMP_REST ( SELECT...
1.53 18.19 8.40 7.27 4 1y0a5myacftqz   select t.*, pro.province_name,...
1.35 13.61 9.94 6.12 7,558 0hn47ugzrmka3 JDBC Thin Client insert into INTERFACE_LOG (RES...
1.26 40.80 3.09 2.24 1 ab85rhgcg34qr JDBC Thin Client SELECT O.ORDER_ID FROM ORDER_I...
0.69 17.13 4.06 3.44 3 0xfzvtfau27h0   SELECT r.RESTAURANT_ID FROM r...
0.45 41.29 1.09 1.07 2,157 c1cscqsbrmdak JDBC Thin Client select orderinfo0_.ORDER_ID as...
0.34 12.64 2.70 1.01 623 19tf6qxr2gpv2 JDBC Thin Client insert into ORDER_LOG (ORDER_I...
0.24 13.68 1.75 1.73 4,218 d084nnf7u2vt8   select SEQ_INTERFACE_LOG.Nextv...
0.21 4.81 4.26 4.24 1,362 827qu4m10cj55 JDBC Thin Client update shortmessage_wait_send ...
0.20 1.09 18.20 18.20 6 akrj56fjmsv58 JDBC Thin Client select count(1) from (select O...
0.18 18.83 0.94 0.94 2,451 4m7m0t6fjcs5x   update seq$ set increment$=:2,...
0.17 3.80 4.36 4.36 1,197 0g47gcz2jh18c JDBC Thin Client select * from(select tmptable1...
0.13 13.25 1.01 0.53 576 aq9706bk6j5x5   select DOC_ID, DOC...
0.12 3.37 3.59 3.55 14 9rrsshamt76mj JDBC Thin Client select count(1) from (select a...
0.12 0.99 11.96 11.96 4 4nvs08fnngd66 JDBC Thin Client select x.* from (select rownum...
0.11 2.95 3.75 0.87 275 gpp5bnnfdr9p0 JDBC Thin Client insert into shortmessage_log(s...
0.09 0.29 29.78 29.78 4 czm5xw4a1zzt1 JDBC Thin Client select tbl.*, cast(cast(tbl.OR...
0.08 2.50 3.19 3.17 10 89ykc55t68q1t JDBC Thin Client select count(1) from (select c...
0.08 2.41 3.20 3.18 41 aqzrjxr2rgh1w JDBC Thin Client select count(1) from (SELECT o...
0.07 7.66 0.94 0.94 7,558 67mvkmkdrtbk6 JDBC Thin Client select SEQ_INTERFACE_LOG.nextv...
0.07 4.98 1.37 1.37 6,424 dujc578p6dnyz JDBC Thin Client select restaurant0_.RESTAURANT...
0.07 1.77 3.83 3.30 1 d92h3rjp0y217   begin prvt_hdm.auto_execute( :...
0.06 2.06 3.02 3.00 41 6r48tax1318zz JDBC Thin Client select x.* from (select rownum...
0.06 1.82 3.16 3.14 62 fdxbf238fy7yc JDBC Thin Client select count(1) from (SELECT o...
0.05 0.85 6.07 6.07 2 a66x81cyzf2uy JDBC Thin Client select x.* from (select rownum...
0.05 0.69 7.13 7.13 1 17f603htbs76j JDBC Thin Client select tbl.*, cast(cast(tbl.OR...
0.04 1.12 3.38 3.37 14 1tj9txn0w686a JDBC Thin Client select count(*) amt from orde...
0.03 1.89 1.84 1.04 5,681 5v7ydyz8rvx3n JDBC Thin Client select PROV_RES_ID,...
0.02 0.00 542.26 534.17 5,624 8zgpq15rjtxz7 JDBC Thin Client DELETE FROM TEMP_REST
0.01 7.09 0.20 0.20 625 760p0g98cwdjg JDBC Thin Client select SEQ_ORDER_LOG.nextval f...
0.01 32.13 0.03 0.02 26 04xtrk7uyhknh   select obj#, type#, ctime, mti...
0.01 7.76 0.11 0.04 1 0dwr2vd6vbqzs   SELECT count(*) over () as tot...
0.01 5.56 0.13 0.13 594 fh5q7b445q8zs JDBC Thin Client select contract0_.CONTRACT_ID ...
0.01 43.10 0.01 0.01 7 7ng34ruy5awxq   select i.obj#, i.ts#, i.file#,...

Back to SQL Statistics
Back to Top

Complete List of SQL Text

SQL IdSQL Text
04xtrk7uyhknhselect obj#, type#, ctime, mtime, stime, status, dataobj#, flags, oid$, spare1, spare2 from obj$ where owner#=:1 and name=:2 and namespace=:3 and remoteowner is null and linkname is null and subname is null
0dwr2vd6vbqzs SELECT count(*) over () as total_count, sd_xe_ash_nm.event_name, sd_xe_ash_nm.event_id, sd_xe_ash_nm.parameter1 as p1text, (CASE WHEN (sd_xe_ash_nm.parameter1 is NULL OR sd_xe_ash_nm.parameter1 = '0') THEN 0 ELSE 1 END) as p1valid, sd_xe_ash_nm.parameter2 as p2text, (CASE WHEN (sd_xe_ash_nm.parameter2 is NULL OR sd_xe_ash_nm.parameter2 = '0') THEN 0 ELSE 1 END) as p2valid, sd_xe_ash_nm.parameter3 as p3text, (CASE WHEN (sd_xe_ash_nm.parameter3 is NULL OR sd_xe_ash_nm.parameter3 = '0') THEN 0 ELSE 1 END) as p3valid, sd_xe_ash_nm.keh_evt_id, nvl(xc.class#, 0) as class_num, sd_xe_ash_nm.wait_class_id, nvl(xc.keh_id, 0) as keh_ecl_id, sd_xe_ash_nm.ash_cnt, sd_xe_ash_nm.tot_wts_diff, sd_xe_ash_nm.tot_tmo_diff, sd_xe_ash_nm.tim_wait_diff FROM ( SELECT sd_xe_ash.*, evtname.event_name, evtname.wait_class_id, evtname.parameter1, evtname.parameter2, evtname.parameter3 FROM ( SELECT sd_xe.*, nvl(ash.cnt, 0) as ash_cnt FROM ( SELECT nvl(xe.keh_id, 0) as keh_evt_id, nvl(sd.event_id, xe.event_hash) as event_id, nvl(sd.tot_wts_diff, 0) as tot_wts_diff, nvl(sd.tot_tmo_diff, 0) as tot_tmo_diff, nvl(sd.tim_wait_diff, 0) as tim_wait_diff FROM ( SELECT endsn.event_id as event_id, (endsn.total_waits - nvl(begsn.total_waits, 0)) as tot_wts_diff, (endsn.total_timeouts - nvl(begsn.total_timeouts, 0)) as tot_tmo_diff, (endsn.time_waited_micro - nvl(begsn.time_waited_micro, 0)) as tim_wait_diff FROM ( SELECT end_snap.* FROM (SELECT t1.* FROM WRH$_SYSTEM_EVENT t1, WRM$_SNAPSHOT s1 WHERE t1.dbid = s1.dbid AND t1.instance_number = s1.instance_number AND t1.snap_id = s1.snap_id AND s1.bl_moved = 0 UNION ALL SELECT t2.* FROM WRH$_SYSTEM_EVENT_BL t2, WRM$_SNAPSHOT s2 WHERE t2.dbid = s2.dbid AND t2.instance_number = s2.instance_number AND t2.snap_id = s2.snap_id AND s2.bl_moved <> 0) end_snap WHERE end_snap.dbid = :dbid and end_snap.instance_number = :instance_number and end_snap.snap_id = :end_snap ) endsn LEFT OUTER JOIN ( SELECT beg_snap.* FROM (SELECT t1.* FROM WRH$_SYSTEM_EVENT t1, WRM$_SNAPSHOT s1 WHERE t1.dbid = s1.dbid AND t1.instance_number = s1.instance_number AND t1.snap_id = s1.snap_id AND s1.bl_moved = 0 UNION ALL SELECT t2.* FROM WRH$_SYSTEM_EVENT_BL t2, WRM$_SNAPSHOT s2 WHERE t2.dbid = s2.dbid AND t2.instance_number = s2.instance_number AND t2.snap_id = s2.snap_id AND s2.bl_moved <> 0) beg_snap WHERE beg_snap.dbid = :dbid and beg_snap.instance_number = :instance_number and beg_snap.snap_id = :beg_snap ) begsn ON endsn.event_id = begsn.event_id ) sd FULL OUTER JOIN X$KEHEVTMAP xe ON sd.event_id = xe.event_hash ) sd_xe LEFT OUTER JOIN (SELECT a.event_id, count(*) as cnt FROM (SELECT t1.* FROM WRH$_ACTIVE_SESSION_HISTORY t1, WRM$_SNAPSHOT s1 WHERE t1.dbid = s1.dbid AND t1.instance_number = s1.instance_number AND t1.snap_id = s1.snap_id AND s1.bl_moved = 0 UNION ALL SELECT t2.* FROM WRH$_ACTIVE_SESSION_HISTORY_BL t2, WRM$_SNAPSHOT s2 WHERE t2.dbid = s2.dbid AND t2.instance_number = s2.instance_number AND t2.snap_id = s2.snap_id AND s2.bl_moved <> 0) a WHERE a.dbid = :dbid and a.instance_number = :instance_number and a.snap_id > :beg_snap and a.snap_id <= :end_snap and a.wait_time = 0 GROUP BY a.event_id) ash ON sd_xe.event_id = ash.event_id ) sd_xe_ash, WRH$_EVENT_NAME evtname WHERE evtname.event_id = sd_xe_ash.event_id and evtname.event_id > 0 and evtname.dbid = :dbid ) sd_xe_ash_nm, X$KEHECLMAP xc WHERE sd_xe_ash_nm.wait_class_id = xc.class_hash ORDER BY sd_xe_ash_nm.wait_class_id, sd_xe_ash_nm.tim_wait_diff DESC, sd_xe_ash_nm.event_id
0g47gcz2jh18cselect * from(select tmptable1.*, rownum from (select * from shortmessage_wait_send where send_status='0' and sm_type_code in (1, 2, 3, 4, 5, 6, 7, 10, 11, 12, 13, 14) and (retry_count is null or retry_count=-1 or send_count<retry_count) and schedule_time<=sysdate and (expire_time is null or expire_time>sysdate) order by priority asc, schedule_time asc, expire_time asc) tmptable1)tmptable2 where rownum <= 100 order by rownum asc
0hn47ugzrmka3insert into INTERFACE_LOG (RESTAURANT_ID, METHOD, NOTE, IP_ADDRESS, OPERATE_TIME, RS_INTERFACE_LOG_ID) values (:1, :2, :3, :4, :5, :6)
0x6vgnxuq1dwhSELECT TR.T_ID FROM TEMP_REST TR WHERE (((INSTR(TR.T_NAME, :B3 ) > 0 OR INSTR(:B3 , TR.T_NAME) > 0) AND (INSTR(TR.T_ADDRESS, :B2 ) > 0 OR INSTR(:B2 , TR.T_ADDRESS) > 0)) OR ((INSTR(TR.T_NAME, :B3 ) > 0 OR INSTR(:B3 , TR.T_NAME) > 0) AND (INSTR(TR.T_TEL, :B1 ) > 0 OR INSTR(:B1 , TR.T_TEL) > 0)) OR ((INSTR(TR.T_ADDRESS, :B2 ) > 0 OR INSTR(:B2 , TR.T_ADDRESS) > 0) AND (INSTR(TR.T_TEL, :B1 ) > 0 OR INSTR(:B1 , TR.T_TEL) > 0)))
0xfzvtfau27h0SELECT r.RESTAURANT_ID FROM restaurant r, prod_food_card pfc WHERE r.restaurant_id = pfc.restaurant_id(+) AND (r.operate_time > to_date('2013-03-11 16:09:53', 'yyyy-MM-dd HH24:mi:ss') or pfc.update_time > to_date('2013-03-11 16:09:53', 'yyyy-MM-dd HH24:mi:ss'))
17f603htbs76j select tbl.*, cast(cast(tbl.ORDER_RS_AFFIRM_TIMELY_NUM / decode(tbl.ORDER_RS_AFFIRM_NUM, 0, 1, tbl.ORDER_RS_AFFIRM_NUM) * 100 as decimal(10, 2)) as varchar(5)) || '%' ORDER_RS_AFFIRM_TIMELY_PERCENT from (select (select nvl(sum(CREATE_ORDER_NUM), 0) from (select nvl(u.org_province_id, o.accept_org_id) ORG_PROVINCE_ID, decode(u.org_province_id, null, o.accept_city_org_id, u.org_city_id) ORG_CITY_ID, to_char(o.create_time, 'YYYY-MM-DD') as OPERATE_DATE, o.create_operator_id as OPERATOR_ID, o.create_operator as OPERATOR_NAME, 1 as CREATE_ORDER_NUM, decode(order_status, 3, decode(rs_check_flag, 1, 1, 0), 0) as CREATE_DEAL_NUM, 0 as CANCEL_ORDER_NUM, 0 as RS_AFFIRM_NUM, 0 as RS_AFFIRM_TIMELY_NUM, 0 as CUST_AFFIRM_NUM, 0 as AFFIRM_NUM, 0 as AFFIRM_DEAL_NUM, 0 as RS_CHECK_NUM, 0 as CUST_CHECK_NUM, 0 as CHECK_NUM, 0 as CHECK_DEAL_NUM from REPORT_SEAT_VOLUME o left join sys_service_center_user u on o.create_operator_id=u.sys_user_id where 1=1 and o.create_time>=to_date('2013-03-11 00:00:00', 'yyyy-MM-dd hh24:mi:ss') and o.create_time<=to_date('2013-03-11 23:59:59', 'yyyy-MM-dd hh24:mi:ss') and ((1=0) or (decode(u.org_province_id, null, o.accept_city_org_id, u.org_city_id)=86)) and o.accept_city_org_id=86) t) order_total_num, (select nvl(sum(CREATE_DEAL_NUM), 0) from (select nvl(u.org_province_id, o.accept_org_id) ORG_PROVINCE_ID, decode(u.org_province_id, null, o.accept_city_org_id, u.org_city_id) ORG_CITY_ID, to_char(o.create_time, 'YYYY-MM-DD') as OPERATE_DATE, o.create_operat or_id as OPERATOR_ID, o.create_operator as OPERATOR_NAME, 1 as CREATE_ORDER_NUM, decode(order_status, 3, decode(rs_check_flag, 1, 1, 0), 0) as CREATE_DEAL_NUM, 0 as CANCEL_ORDER_NUM, 0 as RS_AFFIRM_NUM, 0 as RS_AFFIRM_TIMELY_NUM, 0 as CUST_AFFIRM_NUM, 0 as AFFIRM_NUM, 0 as AFFIRM_DEAL_NUM, 0 as RS_CHECK_NUM, 0 as CUST_CHECK_NUM, 0 as CHECK_NUM, 0 as CHECK_DEAL_NUM from REPORT_SEAT_VOLUME o left join sys_service_center_user u on o.create_operator_id=u.sys_user_id where 1=1 and o.create_time>=to_date('2013-03-11 00:00:00', 'yyyy-MM-dd hh24:mi:ss') and o.create_time<=to_date('2013-03-11 23:59:59', 'yyyy-MM-dd hh24:mi:ss') and ((1=0) or (decode(u.org_province_id, null, o.accept_city_org_id, u.org_city_id)=86)) and o.accept_city_org_id=86) t) order_create_deal_num, (select nvl(sum(CANCEL_ORDER_NUM), 0) from (select nvl(u.org_province_id, o.accept_org_id) ORG_PROVINCE_ID, decode(u.org_province_id, null, o.accept_city_org_id, u.org_city_id) ORG_CITY_ID, to_char(o.order_cancel_time, 'YYYY-MM-DD') as OPERATE_DATE, o.order_cancel_operator_id as OPERATOR_ID, o.order_cancel_operator as OPERATOR_NAME, 0 as CREATE_ORDER_NUM, 0 as CREATE_DEAL_NUM, 1 as CANCEL_ORDER_NUM, 0 as RS_AFFIRM_NUM, 0 as RS_AFFIRM_TIMELY_NUM, 0 as CUST_AFFIRM_NUM, 0 as AFFIRM_NUM, 0 as AFFIRM_DEAL_NUM, 0 as RS_CHECK_NUM, 0 as CUST_CHECK_NUM, 0 as CHECK_NUM, 0 as CHECK_DEAL_NUM from REPORT_SEAT_VOLUME o left join sys_service_center_user u on o.order_cancel_operator_id=u.sys_user_id where 1=1 and o.order_cancel _time>=to_date('2013-03-11 00:00:00', 'yyyy-MM-dd hh24:mi:ss') and o.order_cancel_time<=to_date('2013-03-11 23:59:59', 'yyyy-MM-dd hh24:mi:ss') and ((1=0) or (decode(u.org_province_id, null, o.accept_city_org_id, u.org_city_id)=86)) and ( o.accept_city_org_id=86 or ( o.handle_org_id=22 and o.handle_city_org_id=86))) t) order_cancel_num, (select nvl(sum(RS_AFFIRM_NUM), 0) from (select nvl(u.org_province_id, o.accept_org_id) ORG_PROVINCE_ID, decode(u.org_province_id, null, o.accept_city_org_id, u.org_city_id) ORG_CITY_ID, to_char(o.rs_affirm_time, 'YYYY-MM-DD') as OPERATE_DATE, o.rs_affirm_operator_id as OPERATOR_ID, o.rs_affirm_operator as OPERATOR_NAME, 0 as CREATE_ORDER_NUM, 0 as CREATE_DEAL_NUM, 0 as CANCEL_ORDER_NUM, 1 as RS_AFFIRM_NUM, case when (o.rs_affirm_time - o.create_time) * 24 * 60 <= -1 then 1 else 0 end as RS_AFFIRM_TIMELY_NUM, 0 as CUST_AFFIRM_NUM, 1 as AFFIRM_NUM, decode(order_status, 3, decode(rs_check_flag, 1, 1, 0), 0) as AFFIRM_DEAL_NUM, 0 as RS_CHECK_NUM, 0 as CUST_CHECK_NUM, 0 as CHECK_NUM, 0 as CHECK_DEAL_NUM from REPORT_SEAT_VOLUME o left join sys_service_center_user u on o.rs_affirm_operator_id=u.sys_user_id where 1=1 and o.rs_affirm_time>=to_date('2013-03-11 00:00:00', 'yyyy-MM-dd hh24:mi:ss') and o.rs_affirm_time<=to_date('2013-03-11 23:59:59', 'yyyy-MM-dd hh24:mi:ss') and ((1=0) or (decode(u.org_province_id, null, o.accept_city_org_id, u.org_city_id)=86)) and o.handle_city_org_id=86) t) order_rs_affirm_num, (select nvl(sum(RS_AFFIRM _TIMELY_NUM), 0) from (select nvl(u.org_province_id, o.accept_org_id) ORG_PROVINCE_ID, decode(u.org_province_id, null, o.accept_city_org_id, u.org_city_id) ORG_CITY_ID, to_char(o.rs_affirm_time, 'YYYY-MM-DD') as OPERATE_DATE, o.rs_affirm_operator_id as OPERATOR_ID, o.rs_affirm_operator as OPERATOR_NAME, 0 as CREATE_ORDER_NUM, 0 as CREATE_DEAL_NUM, 0 as CANCEL_ORDER_NUM, 1 as RS_AFFIRM_NUM, case when (o.rs_affirm_time - o.create_time) * 24 * 60 <= -1 then 1 else 0 end as RS_AFFIRM_TIMELY_NUM, 0 as CUST_AFFIRM_NUM, 1 as AFFIRM_NUM, decode(order_status, 3, decode(rs_check_flag, 1, 1, 0), 0) as AFFIRM_DEAL_NUM, 0 as RS_CHECK_NUM, 0 as CUST_CHECK_NUM, 0 as CHECK_NUM, 0 as CHECK_DEAL_NUM from REPORT_SEAT_VOLUME o left join sys_service_center_user u on o.rs_affirm_operator_id=u.sys_user_id where 1=1 and o.rs_affirm_time>=to_date('2013-03-11 00:00:00', 'yyyy-MM-dd hh24:mi:ss') and o.rs_affirm_time<=to_date('2013-03-11 23:59:59', 'yyyy-MM-dd hh24:mi:ss') and ((1=0) or (decode(u.org_province_id, null, o.accept_city_org_id, u.org_city_id)=86)) and o.handle_city_org_id=86) t) order_rs_affirm_timely_num, (select nvl(sum(CUST_AFFIRM_NUM), 0) from (select nvl(u.org_province_id, o.accept_org_id) ORG_PROVINCE_ID, decode(u.org_province_id, null, o.accept_city_org_id, u.org_city_id) ORG_CITY_ID, to_char(o.cust_affirm_time, 'YYYY-MM-DD') as OPERATE_DATE, o.cust_affirm_operator_id as OPERATOR_ID, o.cust_affirm_operator as OPERATOR_NAME, 0 as CREATE_ORDER_NUM, 0 as CREATE_DEAL_NUM, 0 as CANCEL_ORDER_NUM, 0 as RS_AFFIRM_NUM, 0 as RS_AFFIRM_TIMELY_NUM, 1 as CUST_AFFIRM_NUM, case when cust_affirm_operator_id=rs_affirm_operator_id and cust_affirm_operator=rs_affirm_operator and to_char(o.cust_affirm_time, 'YYYY-MM-DD')=to_char(o.rs_affirm_time, 'YYYY-MM-DD') then 0 else 1 end as AFFIRM_NUM, case when cust_affirm_operator_id=rs_affirm_operator_id and cust_affirm_operator=rs_affirm_operator and to_char(o.cust_affirm_time, 'YYYY-MM-DD')=to_char(o.rs_affirm_time, 'YYYY-MM-DD') then 0 else decode(order_status, 3, decode(rs_check_flag, 1, 1, 0), 0) end as AFFIRM_DEAL_NUM, 0 as RS_CHECK_NUM, 0 as CUST_CHECK_NUM, 0 as CHECK_NUM, 0 as CHECK_DEAL_NUM from REPORT_SEAT_VOLUME o left join sys_service_center_user u on o.cust_affirm_operator_id=u.sys_user_id where 1=1 and o.cust_affirm_time>=to_date('2013-03-11 00:00:00', 'yyyy-MM-dd hh24:mi:ss') and o.cust_affirm_time<=to_date('2013-03-11 23:59:59', 'yyyy-MM-dd hh24:mi:ss') and ((1=0) or (decode(u.org_province_id, null, o.accept_city_org_id, u.org_city_id)=86)) and o.handle_city_org_id=86) t) order_cust_affirm_num, (select nvl(sum(AFFIRM_NUM), 0) from (select nvl(u.org_province_id, o.accept_org_id) ORG_PROVINCE_ID, decode(u.org_province_id, null, o.accept_city_org_id, u.org_city_id) ORG_CITY_ID, to_char(o.rs_affirm_time, 'YYYY-MM-DD') as OPERATE_DATE, o.rs_affirm_operator_id as OPERATOR_ID, o.rs_affirm_operator as OPERATOR_NAME, 0 as CREATE_ORDER_NUM, 0 as CREATE_DEAL_NUM, 0 as CANCEL_ORDER_NUM, 1 as RS_AFFIRM_NUM, cas e when (o.rs_affirm_time - o.create_time) * 24 * 60 <= -1 then 1 else 0 end as RS_AFFIRM_TIMELY_NUM, 0 as CUST_AFFIRM_NUM, 1 as AFFIRM_NUM, decode(order_status, 3, decode(rs_check_flag, 1, 1, 0), 0) as AFFIRM_DEAL_NUM, 0 as RS_CHECK_NUM, 0 as CUST_CHECK_NUM, 0 as CHECK_NUM, 0 as CHECK_DEAL_NUM from REPORT_SEAT_VOLUME o left join sys_service_center_user u on o.rs_affirm_operator_id=u.sys_user_id where 1=1 and o.rs_affirm_time>=to_date('2013-03-11 00:00:00', 'yyyy-MM-dd hh24:mi:ss') and o.rs_affirm_time<=to_date('2013-03-11 23:59:59', 'yyyy-MM-dd hh24:mi:ss') and ((1=0) or (decode(u.org_province_id, null, o.accept_city_org_id, u.org_city_id)=86)) and o.handle_city_org_id=86 union all select nvl(u.org_province_id, o.accept_org_id) ORG_PROVINCE_ID, decode(u.org_province_id, null, o.accept_city_org_id, u.org_city_id) ORG_CITY_ID, to_char(o.cust_affirm_time, 'YYYY-MM-DD') as OPERATE_DATE, o.cust_affirm_operator_id as OPERATOR_ID, o.cust_affirm_operator as OPERATOR_NAME, 0 as CREATE_ORDER_NUM, 0 as CREATE_DEAL_NUM, 0 as CANCEL_ORDER_NUM, 0 as RS_AFFIRM_NUM, 0 as RS_AFFIRM_TIMELY_NUM, 1 as CUST_AFFIRM_NUM, case when cust_affirm_operator_id=rs_affirm_operator_id and cust_affirm_operator=rs_affirm_operator and to_char(o.cust_affirm_time, 'YYYY-MM-DD')=to_char(o.rs_affirm_time, 'YYYY-MM-DD') then 0 else 1 end as AFFIRM_NUM, case when cust_affirm_operator_id=rs_affirm_operator_id and cust_affirm_operator=rs_affirm_operator and to_char(o.cust_affirm_time, 'YYYY-MM-DD')=to_char(o .rs_affirm_time, 'YYYY-MM-DD') then 0 else decode(order_status, 3, decode(rs_check_flag, 1, 1, 0), 0) end as AFFIRM_DEAL_NUM, 0 as RS_CHECK_NUM, 0 as CUST_CHECK_NUM, 0 as CHECK_NUM, 0 as CHECK_DEAL_NUM from REPORT_SEAT_VOLUME o left join sys_service_center_user u on o.cust_affirm_operator_id=u.sys_user_id where 1=1 and o.cust_affirm_time>=to_date('2013-03-11 00:00:00', 'yyyy-MM-dd hh24:mi:ss') and o.cust_affirm_time<=to_date('2013-03-11 23:59:59', 'yyyy-MM-dd hh24:mi:ss') and ((1=0) or (decode(u.org_province_id, null, o.accept_city_org_id, u.org_city_id)=86)) and o.handle_city_org_id=86) t) order_affirm_num, (select nvl(sum(AFFIRM_DEAL_NUM), 0) from (select nvl(u.org_province_id, o.accept_org_id) ORG_PROVINCE_ID, decode(u.org_province_id, null, o.accept_city_org_id, u.org_city_id) ORG_CITY_ID, to_char(o.rs_affirm_time, 'YYYY-MM-DD') as OPERATE_DATE, o.rs_affirm_operator_id as OPERATOR_ID, o.rs_affirm_operator as OPERATOR_NAME, 0 as CREATE_ORDER_NUM, 0 as CREATE_DEAL_NUM, 0 as CANCEL_ORDER_NUM, 1 as RS_AFFIRM_NUM, case when (o.rs_affirm_time - o.create_time) * 24 * 60 <= -1 then 1 else 0 end as RS_AFFIRM_TIMELY_NUM, 0 as CUST_AFFIRM_NUM, 1 as AFFIRM_NUM, decode(order_status, 3, decode(rs_check_flag, 1, 1, 0), 0) as AFFIRM_DEAL_NUM, 0 as RS_CHECK_NUM, 0 as CUST_CHECK_NUM, 0 as CHECK_NUM, 0 as CHECK_DEAL_NUM from REPORT_SEAT_VOLUME o left join sys_service_center_user u on o.rs_affirm_operator_id=u.sys_user_id where 1=1 and o.rs_affirm_time>=to_date('2013-03-11 00:0 0:00', 'yyyy-MM-dd hh24:mi:ss') and o.rs_affirm_time<=to_date('2013-03-11 23:59:59', 'yyyy-MM-dd hh24:mi:ss') and ((1=0) or (decode(u.org_province_id, null, o.accept_city_org_id, u.org_city_id)=86)) and o.handle_city_org_id=86 union all select nvl(u.org_province_id, o.accept_org_id) ORG_PROVINCE_ID, decode(u.org_province_id, null, o.accept_city_org_id, u.org_city_id) ORG_CITY_ID, to_char(o.cust_affirm_time, 'YYYY-MM-DD') as OPERATE_DATE, o.cust_affirm_operator_id as OPERATOR_ID, o.cust_affirm_operator as OPERATOR_NAME, 0 as CREATE_ORDER_NUM, 0 as CREATE_DEAL_NUM, 0 as CANCEL_ORDER_NUM, 0 as RS_AFFIRM_NUM, 0 as RS_AFFIRM_TIMELY_NUM, 1 as CUST_AFFIRM_NUM, case when cust_affirm_operator_id=rs_affirm_operator_id and cust_affirm_operator=rs_affirm_operator and to_char(o.cust_affirm_time, 'YYYY-MM-DD')=to_char(o.rs_affirm_time, 'YYYY-MM-DD') then 0 else 1 end as AFFIRM_NUM, case when cust_affirm_operator_id=rs_affirm_operator_id and cust_affirm_operator=rs_affirm_operator and to_char(o.cust_affirm_time, 'YYYY-MM-DD')=to_char(o.rs_affirm_time, 'YYYY-MM-DD') then 0 else decode(order_status, 3, decode(rs_check_flag, 1, 1, 0), 0) end as AFFIRM_DEAL_NUM, 0 as RS_CHECK_NUM, 0 as CUST_CHECK_NUM, 0 as CHECK_NUM, 0 as CHECK_DEAL_NUM from REPORT_SEAT_VOLUME o left join sys_service_center_user u on o.cust_affirm_operator_id=u.sys_user_id where 1=1 and o.cust_affirm_time>=to_date('2013-03-11 00:00:00', 'yyyy-MM-dd hh24:mi:ss') and o.cust_affirm_time<=to_date('2013-03-11 23:59:59', 'y yyy-MM-dd hh24:mi:ss') and ((1=0) or (decode(u.org_province_id, null, o.accept_city_org_id, u.org_city_id)=86)) and o.handle_city_org_id=86) t) order_affirm_deal_num, (select nvl(sum(RS_CHECK_NUM), 0) from (select nvl(u.org_province_id, o.accept_org_id) ORG_PROVINCE_ID, decode(u.org_province_id, null, o.accept_city_org_id, u.org_city_id) ORG_CITY_ID, to_char(o.rs_check_time, 'YYYY-MM-DD') as OPERATE_DATE, o.rs_check_operator_id as OPERATOR_ID, o.rs_check_operator as OPERATOR_NAME, 0 as CREATE_ORDER_NUM, 0 as CREATE_DEAL_NUM, 0 as CANCEL_ORDER_NUM, 0 as RS_AFFIRM_NUM, 0 as RS_AFFIRM_TIMELY_NUM, 0 as CUST_AFFIRM_NUM, 0 as AFFIRM_NUM, 0 as AFFIRM_DEAL_NUM, 1 as RS_CHECK_NUM, 0 as CUST_CHECK_NUM, 1 as CHECK_NUM, decode(order_status, 3, decode(rs_check_flag, 1, 1, 0), 0) as CHECK_DEAL_NUM from REPORT_SEAT_VOLUME o left join sys_service_center_user u on o.cust_affirm_operator_id=u.sys_user_id where 1=1 and o.rs_check_time>=to_date('2013-03-11 00:00:00', 'yyyy-MM-dd hh24:mi:ss') and o.rs_check_time<=to_date('2013-03-11 23:59:59', 'yyyy-MM-dd hh24:mi:ss') and ((1=0) or (decode(u.org_province_id, null, o.accept_city_org_id, u.org_city_id)=86)) and o.handle_city_org_id=86) t) order_rs_check_num, (select nvl(sum(CUST_CHECK_NUM), 0) from (select nvl(u.org_province_id, o.accept_org_id) ORG_PROVINCE_ID, decode(u.org_province_id, null, o.accept_city_org_id, u.org_city_id) ORG_CITY_ID, to_char(o.cust_check_time, 'YYYY-MM-DD') as OPERATE_DATE, o.cust_check_operator_id as OPERATOR_ID, o .cust_check_operator as OPERATOR_NAME, 0 as CREATE_ORDER_NUM, 0 as CREATE_DEAL_NUM, 0 as CANCEL_ORDER_NUM, 0 as RS_AFFIRM_NUM, 0 as RS_AFFIRM_TIMELY_NUM, 0 as CUST_AFFIRM_NUM, 0 as AFFIRM_NUM, 0 as AFFIRM_DEAL_NUM, 0 as RS_CHECK_NUM, 1 as CUST_CHECK_NUM, case when cust_check_operator_id=rs_check_operator_id and cust_check_operator=rs_check_operator and to_char(o.cust_check_time, 'YYYY-MM-DD')=to_char(o.rs_check_time, 'YYYY-MM-DD') then 0 else 1 end as CHECK_NUM, case when cust_check_operator_id=rs_check_operator_id and cust_check_operator=rs_check_operator and to_char(o.cust_check_time, 'YYYY-MM-DD')=to_char(o.rs_check_time, 'YYYY-MM-DD') then 0 else decode(order_status, 3, decode(rs_check_flag, 1, 1, 0), 0) end as CHECK_DEAL_NUM from REPORT_SEAT_VOLUME o left join sys_service_center_user u on o.cust_affirm_operator_id=u.sys_user_id where 1=1 and o.cust_check_time>=to_date('2013-03-11 00:00:00', 'yyyy-MM-dd hh24:mi:ss') and o.cust_check_time<=to_date('2013-03-11 23:59:59', 'yyyy-MM-dd hh24:mi:ss') and ((1=0) or (decode(u.org_province_id, null, o.accept_city_org_id, u.org_city_id)=86)) and o.handle_city_org_id=86) t) order_cust_check_num, (select nvl(sum(CHECK_NUM), 0) from (select nvl(u.org_province_id, o.accept_org_id) ORG_PROVINCE_ID, decode(u.org_province_id, null, o.accept_city_org_id, u.org_city_id) ORG_CITY_ID, to_char(o.rs_check_time, 'YYYY-MM-DD') as OPERATE_DATE, o.rs_check_operator_id as OPERATOR_ID, o.rs_check_operator as OPERATOR_NAME, 0 as CREATE_ORDER_NUM , 0 as CREATE_DEAL_NUM, 0 as CANCEL_ORDER_NUM, 0 as RS_AFFIRM_NUM, 0 as RS_AFFIRM_TIMELY_NUM, 0 as CUST_AFFIRM_NUM, 0 as AFFIRM_NUM, 0 as AFFIRM_DEAL_NUM, 1 as RS_CHECK_NUM, 0 as CUST_CHECK_NUM, 1 as CHECK_NUM, decode(order_status, 3, decode(rs_check_flag, 1, 1, 0), 0) as CHECK_DEAL_NUM from REPORT_SEAT_VOLUME o left join sys_service_center_user u on o.cust_affirm_operator_id=u.sys_user_id where 1=1 and o.rs_check_time>=to_date('2013-03-11 00:00:00', 'yyyy-MM-dd hh24:mi:ss') and o.rs_check_time<=to_date('2013-03-11 23:59:59', 'yyyy-MM-dd hh24:mi:ss') and ((1=0) or (decode(u.org_province_id, null, o.accept_city_org_id, u.org_city_id)=86)) and o.handle_city_org_id=86 union all select nvl(u.org_province_id, o.accept_org_id) ORG_PROVINCE_ID, decode(u.org_province_id, null, o.accept_city_org_id, u.org_city_id) ORG_CITY_ID, to_char(o.cust_check_time, 'YYYY-MM-DD') as OPERATE_DATE, o.cust_check_operator_id as OPERATOR_ID, o.cust_check_operator as OPERATOR_NAME, 0 as CREATE_ORDER_NUM, 0 as CREATE_DEAL_NUM, 0 as CANCEL_ORDER_NUM, 0 as RS_AFFIRM_NUM, 0 as RS_AFFIRM_TIMELY_NUM, 0 as CUST_AFFIRM_NUM, 0 as AFFIRM_NUM, 0 as AFFIRM_DEAL_NUM, 0 as RS_CHECK_NUM, 1 as CUST_CHECK_NUM, case when cust_check_operator_id=rs_check_operator_id and cust_check_operator=rs_check_operator and to_char(o.cust_check_time, 'YYYY-MM-DD')=to_char(o.rs_check_time, 'YYYY-MM-DD') then 0 else 1 end as CHECK_NUM, case when cust_check_operator_id=rs_check_operator_id and cust_check_operator=rs_check_operator and to_char(o.cust_check_time, 'YYYY-MM-DD')=to_char(o.rs_check_time, 'YYYY-MM-DD') then 0 else decode(order_status, 3, decode(rs_check_flag, 1, 1, 0), 0) end as CHECK_DEAL_NUM from REPORT_SEAT_VOLUME o left join sys_service_center_user u on o.cust_affirm_operator_id=u.sys_user_id where 1=1 and o.cust_check_time>=to_date('2013-03-11 00:00:00', 'yyyy-MM-dd hh24:mi:ss') and o.cust_check_time<=to_date('2013-03-11 23:59:59', 'yyyy-MM-dd hh24:mi:ss') and ((1=0) or (decode(u.org_province_id, null, o.accept_city_org_id, u.org_city_id)=86)) and o.handle_city_org_id=86) t) order_check_num, (select nvl(sum(CHECK_DEAL_NUM), 0) from (select nvl(u.org_province_id, o.accept_org_id) ORG_PROVINCE_ID, decode(u.org_province_id, null, o.accept_city_org_id, u.org_city_id) ORG_CITY_ID, to_char(o.rs_check_time, 'YYYY-MM-DD') as OPERATE_DATE, o.rs_check_operator_id as OPERATOR_ID, o.rs_check_operator as OPERATOR_NAME, 0 as CREATE_ORDER_NUM, 0 as CREATE_DEAL_NUM, 0 as CANCEL_ORDER_NUM, 0 as RS_AFFIRM_NUM, 0 as RS_AFFIRM_TIMELY_NUM, 0 as CUST_AFFIRM_NUM, 0 as AFFIRM_NUM, 0 as AFFIRM_DEAL_NUM, 1 as RS_CHECK_NUM, 0 as CUST_CHECK_NUM, 1 as CHECK_NUM, decode(order_status, 3, decode(rs_check_flag, 1, 1, 0), 0) as CHECK_DEAL_NUM from REPORT_SEAT_VOLUME o left join sys_service_center_user u on o.cust_affirm_operator_id=u.sys_user_id where 1=1 and o.rs_check_time>=to_date('2013-03-11 00:00:00', 'yyyy-MM-dd hh24:mi:ss') and o.rs_check_time<=to_date('2013-03-11 23:59:59', 'yyyy-MM-dd hh24:mi:ss') and ((1=0) or (decode(u.org_province_id, null, o.accept_city_org_id, u.org_city_id)=86)) and o.handle_city_org_id=86 union all select nvl(u.org_province_id, o.accept_org_id) ORG_PROVINCE_ID, decode(u.org_province_id, null, o.accept_city_org_id, u.org_city_id) ORG_CITY_ID, to_char(o.cust_check_time, 'YYYY-MM-DD') as OPERATE_DATE, o.cust_check_operator_id as OPERATOR_ID, o.cust_check_operator as OPERATOR_NAME, 0 as CREATE_ORDER_NUM, 0 as CREATE_DEAL_NUM, 0 as CANCEL_ORDER_NUM, 0 as RS_AFFIRM_NUM, 0 as RS_AFFIRM_TIMELY_NUM, 0 as CUST_AFFIRM_NUM, 0 as AFFIRM_NUM, 0 as AFFIRM_DEAL_NUM, 0 as RS_CHECK_NUM, 1 as CUST_CHECK_NUM, case when cust_check_operator_id=rs_check_operator_id and cust_check_operator=rs_check_operator and to_char(o.cust_check_time, 'YYYY-MM-DD')=to_char(o.rs_check_time, 'YYYY-MM-DD') then 0 else 1 end as CHECK_NUM, case when cust_check_operator_id=rs_check_operator_id and cust_check_operator=rs_check_operator and to_char(o.cust_check_time, 'YYYY-MM-DD')=to_char(o.rs_check_time, 'YYYY-MM-DD') then 0 else decode(order_status, 3, decode(rs_check_flag, 1, 1, 0), 0) end as CHECK_DEAL_NUM from REPORT_SEAT_VOLUME o left join sys_service_center_user u on o.cust_affirm_operator_id=u.sys_user_id where 1=1 and o.cust_check_time>=to_date('2013-03-11 00:00:00', 'yyyy-MM-dd hh24:mi:ss') and o.cust_check_time<=to_date('2013-03-11 23:59:59', 'yyyy-MM-dd hh24:mi:ss') and ((1=0) or (decode(u.org_province_id, null, o.accept_city_org_id, u.org_city_id)=86)) and o.handle_city _org_id=86) t) order_check_deal_num from dual) tbl
19tf6qxr2gpv2insert into ORDER_LOG (ORDER_ID, IP_ADDRESS, ACTION, OLD_STATUS, NEW_STATUS, NOTE, OPERATOR, OPERATE_TIME, SERVICE_CENTER_ID, ORDER_LOG_ID) values (:1, :2, :3, :4, :5, :6, :7, :8, :9, :10)
1tj9txn0w686aselect count(*) amt from order_info a left join order_info_4bill o4 on a.order_id = o4.order_id where 1=1 and a.order_status in (2, 3) and a.check_order_mode= '1' and o4.rs_check_flag is null and o4.cust_check_flag is null and a.BOOK_TIME>= TO_DATE('2013-03-01', 'YYYY-MM-DD') and a.BOOK_TIME< TO_DATE('2013-03-10', 'YYYY-MM-DD')+1 AND ((1=0) or (a.handle_org_id=20)) AND (1=0 or a.order_process_flag='1' or a.order_process_flag='2')
1xtpt28s7mff1 SELECT O.ORDER_ID FROM ORDER_INFO O LEFT JOIN ORDER_INFO_4BILL B4 ON O.ORDER_ID = B4.ORDER_ID LEFT JOIN ORDER_CHECK C ON O.ORDER_ID = C.ORDER_ID WHERE 1=1 AND O.HANDLE_ORG_ID = '10' AND O.HANDLE_CITY_ORG_ID = '84' AND ((O.CREATE_TIME >= TO_DATE('20130311185813', 'yyyy-MM-dd hh24:mi:ss') AND O.CREATE_TIME <= TO_DATE('20130311191813', 'yyyy-MM-dd hh24:mi:ss')) OR (O.OPERATE_TIME >= TO_DATE('20130311185813', 'yyyy-MM-dd hh24:mi:ss') AND O.OPERATE_TIME <= TO_DATE('20130311191813', 'yyyy-MM-dd hh24:mi:ss')) OR (C.RS_AFFIRM_TIME >= TO_DATE('20130311185813', 'yyyy-MM-dd hh24:mi:ss') AND C.RS_AFFIRM_TIME <= TO_DATE('20130311191813', 'yyyy-MM-dd hh24:mi:ss')) OR (C.CUST_AFFIRM_TIME >= TO_DATE('20130311185813', 'yyyy-MM-dd hh24:mi:ss') AND C.CUST_AFFIRM_TIME <= TO_DATE('20130311191813', 'yyyy-MM-dd hh24:mi:ss')) OR (B4.RS_CHECK_TIME >= TO_DATE('20130311185813', 'yyyy-MM-dd hh24:mi:ss') AND B4.RS_CHECK_TIME <= TO_DATE('20130311191813', 'yyyy-MM-dd hh24:mi:ss')) OR (B4.CUST_CHECK_TIME >= TO_DATE('20130311185813', 'yyyy-MM-dd hh24:mi:ss') AND B4.CUST_CHECK_TIME <= TO_DATE('20130311191813', 'yyyy-MM-dd hh24:mi:ss')) OR (C.ORDER_CANCEL_TIME >= TO_DATE('20130311185813', 'yyyy-MM-dd hh24:mi:ss') AND C.ORDER_CANCEL_TIME <= TO_DATE('20130311191813', 'yyyy-MM-dd hh24:mi:ss')))
1y0a5myacftqz select t.*, pro.province_name, pro.province_code, cit.city_name, cit.city_code, dis.district_name, dis.district_code, bus.business_area_name, cf.cuisine_first_name, cs.cuisine_second_name from (select * from (select RESTAURANT_ID, ORG_PROVINCE_ID, ORG_CITY_ID, NAME, ENG_NAME, NAME_FIRST_PY, ALIAS_NAME, REGISTER_NAME, BOOK_TEL, PROVINCE_ID, CITY_ID, DISTRICT_ID, ZIP, ADDRESS, ADDRESS_FIRST_PY, CROSS_ROAD, BUSINESS_AREA_ID, LANDMARK, TRAFFIC_ROUTE, GPS_X, GPS_Y, FAX, WEBSITE, EMAIL, INTRODUCE, BUSINESS_TIME, decode(publish_status, 0, 0, sign_status) sign_status, BUSINESS_STATUS, CONTRACT_ID, LOW_AVG_COST, HIGH_AVG_COST, SUIT_TYPE, FLAVOUR, CUISINE_FIRST_ID, CUISINE_SECOND_ID, MINOR_CUISINE, SPECIALTY, IS_RESERVE_ROOM, RESERVE_ROOM_NUM, RESERVE_ROOM_DESC, MIN_CHARGE_DESC, IS_SERVICE_CHARGE, SERVICE_CHARGE_DESC, IS_SUPPORT_CARD, CARD_DESC, TOTAL_SEAT_NUM, TOTAL_DESK_NUM, HALL_SEAT_NUM, HALL_DESK_NUM, BUSINESS_ACREAGE, IS_PARKING, PARKING_DESC, TAKEOUT_SERVICE, FACILITY, SERVICE, ENVIRONMENT, RECOMMEND_VALUE, SP_FOLLOWER, SP_FOLLOWER_TEL, REPRESENT, REPRESENT_TEL, FINANCE_NAME, FINANCE_TEL, FINANCE_FAX, FINANCE_EMAIL, BILL_POST_ADDRESS, BILL_POST_ZIP, DEPOSIT_RULE, RETAIN_TIME, ORDER_CHECKER, ORDER_CHECK_TEL, ORDER_CHECK_ATTENTION, CUST_CHECK_WAY, NOTE, CREATE_OPERATOR, CREATE_TIME, OPERATOR, OPERATE_TIME, ORG_ID, decode(publish_status, 0, 0, booking_status) BOOKING_STATUS, CARD_CONSUME, IS_TAKEOUT, BOOK_REQUIREMENT, LOCAL_ID, IMAGE_ABBR_ID, SOURCE, REALTIME_SERVICE_FLAG, REALTIME_INTERFACE_ID, PASSWORD, CHECK_BILL_DATE, BILL_POST_WAY, INVOICE_HEADING, INVOICE_POST_ADDR, INVOICE_CONSIGNEE, INVOCIE_POST_CODE, CREATE_OPERATOR_ID, OPERATOR_ID, CHECK_ORDER_MODE, KEY_WORD, PUBLISH_STATUS, DISCOUNT, DISCOUNT_DESC, CUST_ID, IMAGE_FULL_ID, BILL_CONSIGNEE, JIAMENG_APPLY_SIGN, RECOMMEND_STATUS, HOT, REDFLAG_GIS_SPACE, CHECK_SEAT_FLAG, KOUBEI_RS_FLAG, BOOK_SUCCESS_SMS, CONSUME_SUCCESS_SMS, EBOOKING_FLAG, COUPON_BUSINESS_FLAG, BUSINESS_CARD_FLAG, COUPON_RS_TYPE, GRADE, IS_TRUST, PRODUCT_INTRODUCE, PREFERENTIAL_INFO, LAST_OPERATE_SOURCE, LAST_OPERATE_IP, VIP_DISCOUNT, 'Y' delete_flag from H_RESTAURANT r where 1=1 and r.operate_time >= to_date(:1 , 'yyyy-mm-dd hh24:mi:ss') union all select RESTAURANT_ID, ORG_PROVINCE_ID, ORG_CITY_ID, NAME, ENG_NAME, NAME_FIRST_PY, ALIAS_NAME, REGISTER_NAME, BOOK_TEL, PROVINCE_ID, CITY_ID, DISTRICT_ID, ZIP, ADDRESS, ADDRESS_FIRST_PY, CROSS_ROAD, BUSINESS_AREA_ID, LANDMARK, TRAFFIC_ROUTE, GPS_X, GPS_Y, FAX, WEBSITE, EMAIL , INTRODUCE, BUSINESS_TIME, decode(publish_status, 0, 0, sign_status) sign_status, BUSINESS_STATUS, CONTRACT_ID, LOW_AVG_COST, HIGH_AVG_COST, SUIT_TYPE, FLAVOUR, CUISINE_FIRST_ID, CUISINE_SECOND_ID, MINOR_CUISINE, SPECIALTY, IS_RESERVE_ROOM, RESERVE_ROOM_NUM, RESERVE_ROOM_DESC, MIN_CHARGE_DESC, IS_SERVICE_CHARGE, SERVICE_CHARGE_DESC, IS_SUPPORT_CARD, CARD_DESC, TOTAL_SEAT_NUM, TOTAL_DESK_NUM, HALL_SEAT_NUM, HALL_DESK_NUM, BUSINESS_ACREAGE, IS_PARKING, PARKING_DESC, TAKEOUT_SERVICE, FACILITY, SERVICE, ENVIRONMENT, RECOMMEND_VALUE, SP_FOLLOWER, SP_FOLLOWER_TEL, REPRESENT, REPRESENT_TEL, FINANCE_NAME, FINANCE_TEL, FINANCE_FAX, FINANCE_EMAIL, BILL_POST_ADDRESS, BILL_POST_ZIP, DEPOSIT_RULE, RETAIN_TIME, ORDER_CHECKER, ORDER_CHECK_TEL, ORDER_CHECK_ATTENTION, CUST_CHECK_WAY, NOTE, CREATE_OPERATOR, CREATE_TIME, OPERATOR, OPERATE_TIME, ORG_ID, decode(publish_status, 0, 0, booking_status) booking_status, CARD_CONSUME, IS_TAKEOUT, BOOK_REQUIREMENT, LOCAL_ID, IMAGE_ABBR_ID, SOURCE, REALTIME_SERVICE_FLAG, REALTIME_INTERFACE_ID, PASSWORD, CHECK_BILL_DATE, BILL_POST_WAY, INVOICE_HEADING, INVOICE_POST_ADDR, INVOICE_CONSIGNEE, INVOCIE_POST_CODE, CREATE_OPERATOR_ID, OPERATOR_ID, CHECK_ORDER_MODE, KEY_WORD, PUBLISH_STATUS, DISCOUNT, DISCOUNT_DESC, CUST_ID, IMAGE_FULL_ID, BILL_CONSIGNEE, JIAMENG_APPLY_SIGN, RECOMMEND_STATUS, HOT, REDFLAG_GIS_SPACE, CHECK_SEAT_FLAG, KOUBEI_RS_FLAG, BOOK_SUCCESS_SMS, CONSUME_SUCCESS_SMS, EBOOKING_FLAG, COUPON_BUSINESS_FLAG, BUSINESS_CARD_FLAG, COUPON_RS_TYPE, GRADE, IS_TRUST, PRODUCT_INTRODUCE, PREFERENTIAL_INFO, LAST_OPERATE_SOURCE, LAST_OPERATE_IP, VIP_DISCOUNT, 'N' as delete_flag from RESTAURANT r where 1=1 and r.operate_time >= to_date(:2 , 'yyyy-mm-dd hh24:mi:ss') ) hr where hr.restaurant_id > :3 order by hr.restaurant_id asc) t , cuisine_first cf, cuisine_second cs, province pro, city cit, district dis, business_area bus where t.province_id = pro.province_id(+) and t.city_id = cit.city_id(+) and t.district_id = dis.district_id(+) and t.business_area_id = bus.business_area_id(+) and t.cuisine_first_id=cf.cuisine_first_id(+) and t.cuisine_second_id=cs.cuisine_second_id(+) and rownum <= :4
2r8m6sczasak5select 1 FROM dual
34v2tcm3r80jcBEGIN p_matchProvideRes( :1, :2); END;
4m7m0t6fjcs5xupdate seq$ set increment$=:2, minvalue=:3, maxvalue=:4, cycle#=:5, order$=:6, cache=:7, highwater=:8, audit$=:9, flags=:10 where obj#=:1
4nvs08fnngd66 select x.* from (select rownum x_rownum, o.* from (select OPERATOR_ID as CID, OPERATOR_NAME as OPERATOR, sum(CREATE_ORDER_NUM) ORDER_TOTAL_NUM, sum(CREATE_DEAL_NUM) ORDER_CREATE_DEAL_NUM, sum(CANCEL_ORDER_NUM) ORDER_CANCEL_NUM, sum(RS_AFFIRM_NUM) ORDER_RS_AFFIRM_NUM, sum(RS_AFFIRM_TIMELY_NUM) ORDER_RS_AFFIRM_TIMELY_NUM, cast(cast(sum(RS_AFFIRM_TIMELY_NUM) / decode(sum(RS_AFFIRM_NUM), 0, 1, sum(RS_AFFIRM_NUM)) * 100 as decimal(10, 2)) as varchar(5)) || '%' ORDER_RS_AFFIRM_TIMELY_PERCENT, sum(CUST_AFFIRM_NUM) ORDER_CUST_AFFIRM_NUM, sum(AFFIRM_NUM) ORDER_AFFIRM_NUM, sum(AFFIRM_DEAL_NUM) ORDER_AFFIRM_DEAL_NUM, sum(RS_CHECK_NUM) ORDER_RS_CHECK_NUM, sum(CUST_CHECK_NUM) ORDER_CUST_CHECK_NUM, sum(CHECK_NUM) ORDER_CHECK_NUM, sum(CHECK_DEAL_NUM) ORDER_CHECK_DEAL_NUM from (select nvl(u.org_province_id, o.accept_org_id) ORG_PROVINCE_ID, decode(u.org_province_id, null, o.accept_city_org_id, u.org_city_id) ORG_CITY_ID, to_char(o.create_time, 'YYYY-MM-DD') as OPERATE_DATE, o.create_operator_id as OPERATOR_ID, o.create_operator as OPERATOR_NAME, 1 as CREATE_ORDER_NUM, decode(order_status, 3, decode(rs_check_flag, 1, 1, 0), 0) as CREATE_DEAL_NUM, 0 as CANCEL_ORDER_NUM, 0 as RS_AFFIRM_NUM, 0 as RS_AFFIRM_TIMELY_NUM, 0 as CUST_AFFIRM_NUM, 0 as AFFIRM_NUM, 0 as AFFIRM_DEAL_NUM, 0 as RS_CHECK_NUM, 0 as CUST_CHECK_NUM, 0 as CHECK_NUM, 0 as CHECK_DEAL_NUM from REPORT_SEAT_VOLUME o left join sys_service_center_user u on o.create_operator_id=u.sys_user_id where 1=1 and o.create_time>=to_date('201 3-03-11 00:00:00', 'yyyy-MM-dd hh24:mi:ss') and u.user_group='1' and ((1=0) or (nvl(u.org_province_id, o.accept_org_id)=9)) and o.accept_org_id=9 union all select nvl(u.org_province_id, o.accept_org_id) ORG_PROVINCE_ID, decode(u.org_province_id, null, o.accept_city_org_id, u.org_city_id) ORG_CITY_ID, to_char(o.order_cancel_time, 'YYYY-MM-DD') as OPERATE_DATE, o.order_cancel_operator_id as OPERATOR_ID, o.order_cancel_operator as OPERATOR_NAME, 0 as CREATE_ORDER_NUM, 0 as CREATE_DEAL_NUM, 1 as CANCEL_ORDER_NUM, 0 as RS_AFFIRM_NUM, 0 as RS_AFFIRM_TIMELY_NUM, 0 as CUST_AFFIRM_NUM, 0 as AFFIRM_NUM, 0 as AFFIRM_DEAL_NUM, 0 as RS_CHECK_NUM, 0 as CUST_CHECK_NUM, 0 as CHECK_NUM, 0 as CHECK_DEAL_NUM from REPORT_SEAT_VOLUME o left join sys_service_center_user u on o.order_cancel_operator_id=u.sys_user_id where 1=1 and o.order_cancel_time>=to_date('2013-03-11 00:00:00', 'yyyy-MM-dd hh24:mi:ss') and u.user_group='1' and ((1=0) or (nvl(u.org_province_id, o.accept_org_id)=9)) and ( o.accept_org_id=9 or o.handle_org_id=9) union all select nvl(u.org_province_id, o.accept_org_id) ORG_PROVINCE_ID, decode(u.org_province_id, null, o.accept_city_org_id, u.org_city_id) ORG_CITY_ID, to_char(o.rs_affirm_time, 'YYYY-MM-DD') as OPERATE_DATE, o.rs_affirm_operator_id as OPERATOR_ID, o.rs_affirm_operator as OPERATOR_NAME, 0 as CREATE_ORDER_NUM, 0 as CREATE_DEAL_NUM, 0 as CANCEL_ORDER_NUM, 1 as RS_AFFIRM_NUM, case when (o.rs_affirm_time - o.create_time) * 24 * 60 <= -1 then 1 else 0 end as RS_AFFIR M_TIMELY_NUM, 0 as CUST_AFFIRM_NUM, 1 as AFFIRM_NUM, decode(order_status, 3, decode(rs_check_flag, 1, 1, 0), 0) as AFFIRM_DEAL_NUM, 0 as RS_CHECK_NUM, 0 as CUST_CHECK_NUM, 0 as CHECK_NUM, 0 as CHECK_DEAL_NUM from REPORT_SEAT_VOLUME o left join sys_service_center_user u on o.rs_affirm_operator_id=u.sys_user_id where 1=1 and o.rs_affirm_time>=to_date('2013-03-11 00:00:00', 'yyyy-MM-dd hh24:mi:ss') and u.user_group='1' and ((1=0) or (nvl(u.org_province_id, o.accept_org_id)=9)) and o.handle_org_id=9 union all select nvl(u.org_province_id, o.accept_org_id) ORG_PROVINCE_ID, decode(u.org_province_id, null, o.accept_city_org_id, u.org_city_id) ORG_CITY_ID, to_char(o.cust_affirm_time, 'YYYY-MM-DD') as OPERATE_DATE, o.cust_affirm_operator_id as OPERATOR_ID, o.cust_affirm_operator as OPERATOR_NAME, 0 as CREATE_ORDER_NUM, 0 as CREATE_DEAL_NUM, 0 as CANCEL_ORDER_NUM, 0 as RS_AFFIRM_NUM, 0 as RS_AFFIRM_TIMELY_NUM, 1 as CUST_AFFIRM_NUM, case when cust_affirm_operator_id=rs_affirm_operator_id and cust_affirm_operator=rs_affirm_operator and to_char(o.cust_affirm_time, 'YYYY-MM-DD')=to_char(o.rs_affirm_time, 'YYYY-MM-DD') then 0 else 1 end as AFFIRM_NUM, case when cust_affirm_operator_id=rs_affirm_operator_id and cust_affirm_operator=rs_affirm_operator and to_char(o.cust_affirm_time, 'YYYY-MM-DD')=to_char(o.rs_affirm_time, 'YYYY-MM-DD') then 0 else decode(order_status, 3, decode(rs_check_flag, 1, 1, 0), 0) end as AFFIRM_DEAL_NUM, 0 as RS_CHECK_NUM, 0 as CUST_CHECK_NUM, 0 as CHECK_NUM, 0 as CHECK_DEAL_NUM from REPORT_SEAT_VOLUME o left join sys_service_center_user u on o.cust_affirm_operator_id=u.sys_user_id where 1=1 and o.cust_affirm_time>=to_date('2013-03-11 00:00:00', 'yyyy-MM-dd hh24:mi:ss') and u.user_group='1' and ((1=0) or (nvl(u.org_province_id, o.accept_org_id)=9)) and o.handle_org_id=9 union all select nvl(u.org_province_id, o.accept_org_id) ORG_PROVINCE_ID, decode(u.org_province_id, null, o.accept_city_org_id, u.org_city_id) ORG_CITY_ID, to_char(o.rs_check_time, 'YYYY-MM-DD') as OPERATE_DATE, o.rs_check_operator_id as OPERATOR_ID, o.rs_check_operator as OPERATOR_NAME, 0 as CREATE_ORDER_NUM, 0 as CREATE_DEAL_NUM, 0 as CANCEL_ORDER_NUM, 0 as RS_AFFIRM_NUM, 0 as RS_AFFIRM_TIMELY_NUM, 0 as CUST_AFFIRM_NUM, 0 as AFFIRM_NUM, 0 as AFFIRM_DEAL_NUM, 1 as RS_CHECK_NUM, 0 as CUST_CHECK_NUM, 1 as CHECK_NUM, decode(order_status, 3, decode(rs_check_flag, 1, 1, 0), 0) as CHECK_DEAL_NUM from REPORT_SEAT_VOLUME o left join sys_service_center_user u on o.cust_affirm_operator_id=u.sys_user_id where 1=1 and o.rs_check_time>=to_date('2013-03-11 00:00:00', 'yyyy-MM-dd hh24:mi:ss') and u.user_group='1' and ((1=0) or (nvl(u.org_province_id, o.accept_org_id)=9)) and o.handle_org_id=9 union all select nvl(u.org_province_id, o.accept_org_id) ORG_PROVINCE_ID, decode(u.org_province_id, null, o.accept_city_org_id, u.org_city_id) ORG_CITY_ID, to_char(o.cust_check_time, 'YYYY-MM-DD') as OPERATE_DATE, o.cust_check_operator_id as OPERATOR_ID, o.cust_check_operator as OPERATO R_NAME, 0 as CREATE_ORDER_NUM, 0 as CREATE_DEAL_NUM, 0 as CANCEL_ORDER_NUM, 0 as RS_AFFIRM_NUM, 0 as RS_AFFIRM_TIMELY_NUM, 0 as CUST_AFFIRM_NUM, 0 as AFFIRM_NUM, 0 as AFFIRM_DEAL_NUM, 0 as RS_CHECK_NUM, 1 as CUST_CHECK_NUM, case when cust_check_operator_id=rs_check_operator_id and cust_check_operator=rs_check_operator and to_char(o.cust_check_time, 'YYYY-MM-DD')=to_char(o.rs_check_time, 'YYYY-MM-DD') then 0 else 1 end as CHECK_NUM, case when cust_check_operator_id=rs_check_operator_id and cust_check_operator=rs_check_operator and to_char(o.cust_check_time, 'YYYY-MM-DD')=to_char(o.rs_check_time, 'YYYY-MM-DD') then 0 else decode(order_status, 3, decode(rs_check_flag, 1, 1, 0), 0) end as CHECK_DEAL_NUM from REPORT_SEAT_VOLUME o left join sys_service_center_user u on o.cust_affirm_operator_id=u.sys_user_id where 1=1 and o.cust_check_time>=to_date('2013-03-11 00:00:00', 'yyyy-MM-dd hh24:mi:ss') and u.user_group='1' and ((1=0) or (nvl(u.org_province_id, o.accept_org_id)=9)) and o.handle_org_id=9 ) t group by OPERATOR_ID, OPERATOR_NAME order by CID) o ) x where x_rownum<=10 and x_rownum>=1 order by x.x_rownum
520mkxqpf15q8select 1 from dual
5v7ydyz8rvx3nselect PROV_RES_ID, PROVIDER_TYPE, RELATION_ID, RES_NAME, RES_TEL, RES_ADDRESS, RES_DISCOUNT, PROVINCE_ID, CITY_ID, CREATE_TIME, UPDATE_TIME, CREATER_NAME, UPDATER_NAME, DISCOUNT_REMARK, IS_DELETE from PROD_PROVIDER_RES where PROV_RES_ID = :1
67mvkmkdrtbk6select SEQ_INTERFACE_LOG.nextval from dual
6cv3th0fzdvj7select 1 FROM dual
6r48tax1318zz select x.* from (select rownum x_rownum, o.* from (SELECT o.order_id, o.cust_name, o.cust_tel, o.restaurant_name, o.order_status, o.vip, o.restaurant_tel, o.book_time, o.book_require, o.assigned_confirmor , o.ORDER_SOURCE, o.BOOK_RESULT, o.DEAL_LEVEL, o.BOOK_PERSON_NUM, o.BOOK_DESK_NUM, o.RESTAURANT_ID, DECODE(o.restaurant_affirm_flag, 1, 'ÊÇ', '') ||'/'|| rs_affirm_operator rs_affirm_dis, DECODE(o.customer_affirm_flag, 1, 'ÊÇ', '') ||'/'|| cust_affirm_operator cs_affirm_dis, (select b.status_name from dic_order_status b where b.status_code=o.order_status) status_name, (select d.source_name from dic_source d where d.source_code=o.order_source) source_name, o.create_operator, o.create_time, decode(deal_level, 1, '¡Ì', '') deal_lev, case when (ol.lock_time+15/1440 < sysdate) then (select u1.full_name from sys_service_center_user u1 where u1.sys_user_id=ol.lock_operator) ||'(³¬)' else (select u1.full_name from sys_service_center_user u1 where u1.sys_user_id=ol.lock_operator) end lockoperator FROM (select a.*, b.restaurant_affirm_flag, b.rs_affirm_operator, b.rs_affirm_time, b.restaurant_affirmer, b.cust_affirm_operator, b.cust_affirm_operator_id, b.rs_affirm_operator_id, b.cust_affirm_time, b.customer_affirm_flag, b.is_deposit, b.reserve_time, b.book_result, b.order_cancel_operator, b.order_cancel_time, b.order_cancel_operator_id, b.order_cancel_reason from ( select * from order_info a where 1=1 AND book_time >= TO_ DATE('2013-03-11', 'YYYY-MM-DD')) a left join (select * from order_check b where 1=1 ) b on a.order_id = b.order_id) o LEFT JOIN order_lock ol ON o.order_id = ol.Order_Id WHERE 1=1 AND ( 1=0 OR o.order_status = 1 OR o.order_status = 6 OR o.order_status = 5 ) AND ( 1=0 OR ol.lock_operator = '4145' OR ((ol.order_id IS NULL OR trim(ol.order_id) = '') and (o.ebooking_flag is null or o.ebooking_flag='0' or (o.ebooking_flag='1' and (o.restaurant_affirm_flag is not null or o.create_time<sysdate-5/1440)))) OR ol.lock_time < sysdate-15/1440 ) AND ((1=0) or (o.handle_org_id=9)) AND (1=0 or o.order_process_flag='1' or o.order_process_flag='2')ORDER BY O.VIP DESC, o.deal_level desc, o.create_time ) o ) x where x_rownum<=10 and x_rownum>=1 order by x.x_rownum
760p0g98cwdjgselect SEQ_ORDER_LOG.nextval from dual
7bfagrnpbjtdr select count(1) from ( SELECT REST.Restaurant_Id AS RestaurantId, con.COMMISSION_FIX, REST.NAME AS RESTAURANTNAME, CT.CITY_NAME ||'/'||DIST.DISTRICT_NAME AS DISTRICT , BA.BUSINESS_AREA_NAME AS BUSINESS_AREA_NAME, REST.RECOMMEND_VALUE AS RECOMMENDVALUE, REST.LOW_AVG_COST ||'-'||REST.HIGH_AVG_COST AS AVGCOST, DICS.SETTLE_WAY_NAME AS WAYNAME, DECODE(REST.SIGN_STATUS, 0, 'δǩԼ', '1', 'ÒÑǩԼ') AS SIGNSTATUS, SUM(CASE WHEN ORD.ORDER_ID IS NOT NULL THEN 1 ELSE 0 END ) AS COUNT, SUM(CASE WHEN ORD.ORDER_STATUS=3 OR ORD.ORDER_STATUS=2 THEN 1 ELSE 0 END) AS ORDEROK , ROUND((SUM(CASE WHEN ORD.ORDER_STATUS = 3 OR ORD.ORDER_STATUS = 2 THEN 1 ELSE 0 END)/COUNT(*) ) * 100 )|| '%'AS CCO, SUM(CASE WHEN ORD.ORDER_STATUS=4 or ORD.ORDER_STATUS=5 or ORD.ORDER_STATUS=6 THEN 1 ELSE 0 END )AS CANCELORDER, SUM(CASE WHEN ORD.ORDER_STATUS=3 AND ORD.RS_CHECK_FLAG=1 THEN 1 ELSE 0 END) AS TradingVolume, ROUND((SUM(CASE WHEN ORD.ORDER_STATUS = 3 AND ORD.RS_CHECK_FLAG = 1 THEN 1 ELSE 0 END)/COUNT(*))*100 )|| '%'AS SSO, SUM (CASE WHEN ORD.ORDER_STATUS=3 AND ORD.RS_CHECK_FLAG=1 THEN ORD.Check_Desk_Num ELSE 0 END) AS TOTALDESKNUM , SUM (CASE WHEN ORD.ORDER_STATUS=3 AND ORD.RS_CHECK_FLAG=1 THEN ORD.CHECK_PERSON_NUM ELSE 0 END) AS TOTALPERSONNUM, SUM (CASE WHEN ORD.ORDER_STATUS=3 AND ORD.RS_CHECK_FLAG=1 THEN ORD.CHECK_AMOUNT_TOTAL ELSE 0 END) AS AMOUNTTOTA, SUM (CASE WHEN ORD.ORDER_STATUS=3 AND ORD.RS_CHECK_FLAG=3 THEN 1 ELSE 0 END) AS EXCEPTIONORDER, SUM (bl.C OMMISION) as COMMISIONSUM FROM Restaurant REST LEFT JOIN ORG_PROVINCE SYSPRO ON REST.ORG_PROVINCE_ID = SYSPRO.ORG_PROVINCE_ID LEFT OUTER JOIN ORG_CITY SYSCITY ON REST.Org_City_Id = SYSCITY.ORG_CITY_ID LEFT JOIN PROVINCE PRO ON PRO.PROVINCE_ID = REST.PROVINCE_ID LEFT OUTER JOIN DISTRICT DIST ON DIST.DISTRICT_ID = REST.DISTRICT_ID LEFT JOIN City CT ON REST.CITY_ID = CT.CITY_ID LEFT JOIN BUSINESS_AREA BA ON REST.BUSINESS_AREA_ID = BA.BUSINESS_AREA_ID LEFT JOIN REPORT_REST_DEALT ORD ON ORD.RESTAURANT_ID = REST.RESTAURANT_ID LEFT OUTER JOIN CONTRACT CON ON CON.CONTRACT_ID = REST.CONTRACT_ID LEFT OUTER JOIN DIC_SETTLE_WAY DICS ON DICS.SETTLE_WAY_CODE = CON.SETTLE_WAY_CODE LEFT JOIN BILL_LIST bl on ORD.order_id=bl.order_id WHERE 1=1 AND REST.ORG_PROVINCE_ID = '19' AND REST.Province_Id = '19' AND REST.City_Id = '200' AND ORD.CREATE_TIME >= TO_DATE('2013-03-11', 'YYYY-MM-DD') AND ORD.CREATE_TIME < TO_DATE('2013-03-11', 'YYYY-MM-DD')+1 GROUP BY REST.Restaurant_Id, con.COMMISSION_FIX, SYSCITY.NAME, SYSPRO.NAME, REST.NAME, DICS.SETTLE_WAY_NAME, CT.CITY_NAME, DIST.DISTRICT_NAME, BA.BUSINESS_AREA_NAME, REST.RECOMMEND_VALUE, REST.LOW_AVG_COST, REST.HIGH_AVG_COST, REST.SIGN_STATUS ORDER BY SUM(CASE WHEN ORD.ORDER_ID IS NOT NULL THEN 1 ELSE 0 END ) desc)
7h35uxf5uhmm1select sysdate from dual
7ng34ruy5awxqselect i.obj#, i.ts#, i.file#, i.block#, i.intcols, i.type#, i.flags, i.property, i.pctfree$, i.initrans, i.maxtrans, i.blevel, i.leafcnt, i.distkey, i.lblkkey, i.dblkkey, i.clufac, i.cols, i.analyzetime, i.samplesize, i.dataobj#, nvl(i.degree, 1), nvl(i.instances, 1), i.rowcnt, mod(i.pctthres$, 256), i.indmethod#, i.trunccnt, nvl(c.unicols, 0), nvl(c.deferrable#+c.valid#, 0), nvl(i.spare1, i.intcols), i.spare4, i.spare2, i.spare6, decode(i.pctthres$, null, null, mod(trunc(i.pctthres$/256), 256)), ist.cachedblk, ist.cachehit, ist.logicalread from ind$ i, ind_stats$ ist, (select enabled, min(cols) unicols, min(to_number(bitand(defer, 1))) deferrable#, min(to_number(bitand(defer, 4))) valid# from cdef$ where obj#=:1 and enabled > 1 group by enabled) c where i.obj#=c.enabled(+) and i.obj# = ist.obj#(+) and i.bo#=:1 order by i.obj#
827qu4m10cj55update shortmessage_wait_send set send_status='1' where (send_status is null or send_status='0') and sysdate>=expire_time
89ykc55t68q1tselect count(1) from (select create_operator, count(*) orders_total_num, sum(decode(business_type, 1, 1, 0)) orders_meal_num, sum(decode(business_type, 2, 1, 0)) orders_ktv_num, sum(decode(order_status, 2, 1, 3, 1, 0)) orders_success_num, cast(cast(sum(decode(order_status, 2, 1, 3, 1, 0)) / count(*) * 100 as decimal(10, 2)) as varchar(5)) || '%' success_percent, sum(decode(order_status, 4, 1, 0)) order_cancel_num, sum(decode(order_status, 1, 1, 0)) order_not_confirm_num, sum(decode(order_status, 3, decode(rs_check_flag, 1, 1, 0), 0)) order_deal_num, cast(cast(sum(decode(order_status, 3, decode(rs_check_flag, 1, 1, 0), 0)) / count(*) * 100 as decimal(10, 2)) as varchar(5)) || '%' deal_percent, sum(check_desk_num) check_desk_num, sum(check_person_num) check_person_num, sum(check_amount_total) check_amount_total, sum(decode(order_status, 3, decode(rs_check_flag, 2, 1, 0), 0)) order_not_consume_num, sum(decode(order_status, 3, decode(rs_check_flag, 3, 1, 0), 0)) order_exception_num from REPORT_ORDER_VOLUME where 1=1 and create_time>=to_date('2013-02-20', 'yyyy-MM-dd') and create_time<to_date('2013-03-11', 'yyyy-MM-dd')+1 and accept_org_id=28 and accept_city_org_id=4 and ((1=0) or (accept_org_id=28)) group by create_operator_id, create_operator order by create_operator)
8prjhgrpvx46cINSERT INTO TEMP_REST ( SELECT R.RESTAURANT_ID, R.NAME, R.ADDRESS, R.BOOK_TEL FROM RESTAURANT R WHERE R.CITY_ID=:B1 )
8zgpq15rjtxz7DELETE FROM TEMP_REST
9rrsshamt76mjselect count(1) from (select a.*, b.name_first_py, b.name, b.order_check_attention, b.book_tel, b.order_check_tel, b.sign_status from (select a.restaurant_id, case when (min(restaurant_lock.lock_time)+20/1440 < sysdate) then '' else min(c.full_name) end lock_operator, count(*) amt from order_info a left join order_info_4bill o4 on a.order_id = o4.order_id left join restaurant_lock on a.restaurant_id=restaurant_lock.restaurant_id left join sys_service_center_user c on restaurant_lock.lock_operator=c.sys_user_id where 1=1 and a.order_status in (2, 3) and a.check_order_mode= '1' and o4.rs_check_flag is null and o4.cust_check_flag is null and a.BOOK_TIME>= TO_DATE('2013-03-01', 'YYYY-MM-DD') and a.BOOK_TIME< TO_DATE('2013-03-10', 'YYYY-MM-DD')+1 AND ((1=0) or (a.handle_org_id=20)) AND (1=0 or a.order_process_flag='1' or a.order_process_flag='2') group by a.restaurant_id )a, restaurant b where a.restaurant_id=b.restaurant_id order by name_first_py)
a66x81cyzf2uy select x.* from (select rownum x_rownum, o.* from (select OPERATOR_ID as CID, OPERATOR_NAME as OPERATOR, sum(CREATE_ORDER_NUM) ORDER_TOTAL_NUM, sum(CREATE_DEAL_NUM) ORDER_CREATE_DEAL_NUM, sum(CANCEL_ORDER_NUM) ORDER_CANCEL_NUM, sum(RS_AFFIRM_NUM) ORDER_RS_AFFIRM_NUM, sum(RS_AFFIRM_TIMELY_NUM) ORDER_RS_AFFIRM_TIMELY_NUM, cast(cast(sum(RS_AFFIRM_TIMELY_NUM) / decode(sum(RS_AFFIRM_NUM), 0, 1, sum(RS_AFFIRM_NUM)) * 100 as decimal(10, 2)) as varchar(5)) || '%' ORDER_RS_AFFIRM_TIMELY_PERCENT, sum(CUST_AFFIRM_NUM) ORDER_CUST_AFFIRM_NUM, sum(AFFIRM_NUM) ORDER_AFFIRM_NUM, sum(AFFIRM_DEAL_NUM) ORDER_AFFIRM_DEAL_NUM, sum(RS_CHECK_NUM) ORDER_RS_CHECK_NUM, sum(CUST_CHECK_NUM) ORDER_CUST_CHECK_NUM, sum(CHECK_NUM) ORDER_CHECK_NUM, sum(CHECK_DEAL_NUM) ORDER_CHECK_DEAL_NUM from (select nvl(u.org_province_id, o.accept_org_id) ORG_PROVINCE_ID, decode(u.org_province_id, null, o.accept_city_org_id, u.org_city_id) ORG_CITY_ID, to_char(o.create_time, 'YYYY-MM-DD') as OPERATE_DATE, o.create_operator_id as OPERATOR_ID, o.create_operator as OPERATOR_NAME, 1 as CREATE_ORDER_NUM, decode(order_status, 3, decode(rs_check_flag, 1, 1, 0), 0) as CREATE_DEAL_NUM, 0 as CANCEL_ORDER_NUM, 0 as RS_AFFIRM_NUM, 0 as RS_AFFIRM_TIMELY_NUM, 0 as CUST_AFFIRM_NUM, 0 as AFFIRM_NUM, 0 as AFFIRM_DEAL_NUM, 0 as RS_CHECK_NUM, 0 as CUST_CHECK_NUM, 0 as CHECK_NUM, 0 as CHECK_DEAL_NUM from REPORT_SEAT_VOLUME o left join sys_service_center_user u on o.create_operator_id=u.sys_user_id where 1=1 and o.create_time>=to_date('201 3-03-11 00:00:00', 'yyyy-MM-dd hh24:mi:ss') and u.user_group='1' and ((1=0) or (nvl(u.org_province_id, o.accept_org_id)=9)) and o.accept_org_id=9 union all select nvl(u.org_province_id, o.accept_org_id) ORG_PROVINCE_ID, decode(u.org_province_id, null, o.accept_city_org_id, u.org_city_id) ORG_CITY_ID, to_char(o.order_cancel_time, 'YYYY-MM-DD') as OPERATE_DATE, o.order_cancel_operator_id as OPERATOR_ID, o.order_cancel_operator as OPERATOR_NAME, 0 as CREATE_ORDER_NUM, 0 as CREATE_DEAL_NUM, 1 as CANCEL_ORDER_NUM, 0 as RS_AFFIRM_NUM, 0 as RS_AFFIRM_TIMELY_NUM, 0 as CUST_AFFIRM_NUM, 0 as AFFIRM_NUM, 0 as AFFIRM_DEAL_NUM, 0 as RS_CHECK_NUM, 0 as CUST_CHECK_NUM, 0 as CHECK_NUM, 0 as CHECK_DEAL_NUM from REPORT_SEAT_VOLUME o left join sys_service_center_user u on o.order_cancel_operator_id=u.sys_user_id where 1=1 and o.order_cancel_time>=to_date('2013-03-11 00:00:00', 'yyyy-MM-dd hh24:mi:ss') and u.user_group='1' and ((1=0) or (nvl(u.org_province_id, o.accept_org_id)=9)) and ( o.accept_org_id=9 or o.handle_org_id=9) union all select nvl(u.org_province_id, o.accept_org_id) ORG_PROVINCE_ID, decode(u.org_province_id, null, o.accept_city_org_id, u.org_city_id) ORG_CITY_ID, to_char(o.rs_affirm_time, 'YYYY-MM-DD') as OPERATE_DATE, o.rs_affirm_operator_id as OPERATOR_ID, o.rs_affirm_operator as OPERATOR_NAME, 0 as CREATE_ORDER_NUM, 0 as CREATE_DEAL_NUM, 0 as CANCEL_ORDER_NUM, 1 as RS_AFFIRM_NUM, case when (o.rs_affirm_time - o.create_time) * 24 * 60 <= -1 then 1 else 0 end as RS_AFFIR M_TIMELY_NUM, 0 as CUST_AFFIRM_NUM, 1 as AFFIRM_NUM, decode(order_status, 3, decode(rs_check_flag, 1, 1, 0), 0) as AFFIRM_DEAL_NUM, 0 as RS_CHECK_NUM, 0 as CUST_CHECK_NUM, 0 as CHECK_NUM, 0 as CHECK_DEAL_NUM from REPORT_SEAT_VOLUME o left join sys_service_center_user u on o.rs_affirm_operator_id=u.sys_user_id where 1=1 and o.rs_affirm_time>=to_date('2013-03-11 00:00:00', 'yyyy-MM-dd hh24:mi:ss') and u.user_group='1' and ((1=0) or (nvl(u.org_province_id, o.accept_org_id)=9)) and o.handle_org_id=9 union all select nvl(u.org_province_id, o.accept_org_id) ORG_PROVINCE_ID, decode(u.org_province_id, null, o.accept_city_org_id, u.org_city_id) ORG_CITY_ID, to_char(o.cust_affirm_time, 'YYYY-MM-DD') as OPERATE_DATE, o.cust_affirm_operator_id as OPERATOR_ID, o.cust_affirm_operator as OPERATOR_NAME, 0 as CREATE_ORDER_NUM, 0 as CREATE_DEAL_NUM, 0 as CANCEL_ORDER_NUM, 0 as RS_AFFIRM_NUM, 0 as RS_AFFIRM_TIMELY_NUM, 1 as CUST_AFFIRM_NUM, case when cust_affirm_operator_id=rs_affirm_operator_id and cust_affirm_operator=rs_affirm_operator and to_char(o.cust_affirm_time, 'YYYY-MM-DD')=to_char(o.rs_affirm_time, 'YYYY-MM-DD') then 0 else 1 end as AFFIRM_NUM, case when cust_affirm_operator_id=rs_affirm_operator_id and cust_affirm_operator=rs_affirm_operator and to_char(o.cust_affirm_time, 'YYYY-MM-DD')=to_char(o.rs_affirm_time, 'YYYY-MM-DD') then 0 else decode(order_status, 3, decode(rs_check_flag, 1, 1, 0), 0) end as AFFIRM_DEAL_NUM, 0 as RS_CHECK_NUM, 0 as CUST_CHECK_NUM, 0 as CHECK_NUM, 0 as CHECK_DEAL_NUM from REPORT_SEAT_VOLUME o left join sys_service_center_user u on o.cust_affirm_operator_id=u.sys_user_id where 1=1 and o.cust_affirm_time>=to_date('2013-03-11 00:00:00', 'yyyy-MM-dd hh24:mi:ss') and u.user_group='1' and ((1=0) or (nvl(u.org_province_id, o.accept_org_id)=9)) and o.handle_org_id=9 union all select nvl(u.org_province_id, o.accept_org_id) ORG_PROVINCE_ID, decode(u.org_province_id, null, o.accept_city_org_id, u.org_city_id) ORG_CITY_ID, to_char(o.rs_check_time, 'YYYY-MM-DD') as OPERATE_DATE, o.rs_check_operator_id as OPERATOR_ID, o.rs_check_operator as OPERATOR_NAME, 0 as CREATE_ORDER_NUM, 0 as CREATE_DEAL_NUM, 0 as CANCEL_ORDER_NUM, 0 as RS_AFFIRM_NUM, 0 as RS_AFFIRM_TIMELY_NUM, 0 as CUST_AFFIRM_NUM, 0 as AFFIRM_NUM, 0 as AFFIRM_DEAL_NUM, 1 as RS_CHECK_NUM, 0 as CUST_CHECK_NUM, 1 as CHECK_NUM, decode(order_status, 3, decode(rs_check_flag, 1, 1, 0), 0) as CHECK_DEAL_NUM from REPORT_SEAT_VOLUME o left join sys_service_center_user u on o.cust_affirm_operator_id=u.sys_user_id where 1=1 and o.rs_check_time>=to_date('2013-03-11 00:00:00', 'yyyy-MM-dd hh24:mi:ss') and u.user_group='1' and ((1=0) or (nvl(u.org_province_id, o.accept_org_id)=9)) and o.handle_org_id=9 union all select nvl(u.org_province_id, o.accept_org_id) ORG_PROVINCE_ID, decode(u.org_province_id, null, o.accept_city_org_id, u.org_city_id) ORG_CITY_ID, to_char(o.cust_check_time, 'YYYY-MM-DD') as OPERATE_DATE, o.cust_check_operator_id as OPERATOR_ID, o.cust_check_operator as OPERATO R_NAME, 0 as CREATE_ORDER_NUM, 0 as CREATE_DEAL_NUM, 0 as CANCEL_ORDER_NUM, 0 as RS_AFFIRM_NUM, 0 as RS_AFFIRM_TIMELY_NUM, 0 as CUST_AFFIRM_NUM, 0 as AFFIRM_NUM, 0 as AFFIRM_DEAL_NUM, 0 as RS_CHECK_NUM, 1 as CUST_CHECK_NUM, case when cust_check_operator_id=rs_check_operator_id and cust_check_operator=rs_check_operator and to_char(o.cust_check_time, 'YYYY-MM-DD')=to_char(o.rs_check_time, 'YYYY-MM-DD') then 0 else 1 end as CHECK_NUM, case when cust_check_operator_id=rs_check_operator_id and cust_check_operator=rs_check_operator and to_char(o.cust_check_time, 'YYYY-MM-DD')=to_char(o.rs_check_time, 'YYYY-MM-DD') then 0 else decode(order_status, 3, decode(rs_check_flag, 1, 1, 0), 0) end as CHECK_DEAL_NUM from REPORT_SEAT_VOLUME o left join sys_service_center_user u on o.cust_affirm_operator_id=u.sys_user_id where 1=1 and o.cust_check_time>=to_date('2013-03-11 00:00:00', 'yyyy-MM-dd hh24:mi:ss') and u.user_group='1' and ((1=0) or (nvl(u.org_province_id, o.accept_org_id)=9)) and o.handle_org_id=9 ) t group by OPERATOR_ID, OPERATOR_NAME order by CID) o ) x where x_rownum<=20 and x_rownum>=11 order by x.x_rownum
ab85rhgcg34qr SELECT O.ORDER_ID FROM ORDER_INFO O LEFT JOIN ORDER_INFO_4BILL B4 ON O.ORDER_ID = B4.ORDER_ID LEFT JOIN ORDER_CHECK C ON O.ORDER_ID = C.ORDER_ID WHERE 1=1 AND O.HANDLE_ORG_ID = '10' AND O.HANDLE_CITY_ORG_ID = '100' AND ((O.CREATE_TIME >= TO_DATE('20130311185724', 'yyyy-MM-dd hh24:mi:ss') AND O.CREATE_TIME <= TO_DATE('20130311191724', 'yyyy-MM-dd hh24:mi:ss')) OR (O.OPERATE_TIME >= TO_DATE('20130311185724', 'yyyy-MM-dd hh24:mi:ss') AND O.OPERATE_TIME <= TO_DATE('20130311191724', 'yyyy-MM-dd hh24:mi:ss')) OR (C.RS_AFFIRM_TIME >= TO_DATE('20130311185724', 'yyyy-MM-dd hh24:mi:ss') AND C.RS_AFFIRM_TIME <= TO_DATE('20130311191724', 'yyyy-MM-dd hh24:mi:ss')) OR (C.CUST_AFFIRM_TIME >= TO_DATE('20130311185724', 'yyyy-MM-dd hh24:mi:ss') AND C.CUST_AFFIRM_TIME <= TO_DATE('20130311191724', 'yyyy-MM-dd hh24:mi:ss')) OR (B4.RS_CHECK_TIME >= TO_DATE('20130311185724', 'yyyy-MM-dd hh24:mi:ss') AND B4.RS_CHECK_TIME <= TO_DATE('20130311191724', 'yyyy-MM-dd hh24:mi:ss')) OR (B4.CUST_CHECK_TIME >= TO_DATE('20130311185724', 'yyyy-MM-dd hh24:mi:ss') AND B4.CUST_CHECK_TIME <= TO_DATE('20130311191724', 'yyyy-MM-dd hh24:mi:ss')) OR (C.ORDER_CANCEL_TIME >= TO_DATE('20130311185724', 'yyyy-MM-dd hh24:mi:ss') AND C.ORDER_CANCEL_TIME <= TO_DATE('20130311191724', 'yyyy-MM-dd hh24:mi:ss')))
akrj56fjmsv58 select count(1) from (select OPERATOR_ID as CID, OPERATOR_NAME as OPERATOR, sum(CREATE_ORDER_NUM) ORDER_TOTAL_NUM, sum(CREATE_DEAL_NUM) ORDER_CREATE_DEAL_NUM, sum(CANCEL_ORDER_NUM) ORDER_CANCEL_NUM, sum(RS_AFFIRM_NUM) ORDER_RS_AFFIRM_NUM, sum(RS_AFFIRM_TIMELY_NUM) ORDER_RS_AFFIRM_TIMELY_NUM, cast(cast(sum(RS_AFFIRM_TIMELY_NUM) / decode(sum(RS_AFFIRM_NUM), 0, 1, sum(RS_AFFIRM_NUM)) * 100 as decimal(10, 2)) as varchar(5)) || '%' ORDER_RS_AFFIRM_TIMELY_PERCENT, sum(CUST_AFFIRM_NUM) ORDER_CUST_AFFIRM_NUM, sum(AFFIRM_NUM) ORDER_AFFIRM_NUM, sum(AFFIRM_DEAL_NUM) ORDER_AFFIRM_DEAL_NUM, sum(RS_CHECK_NUM) ORDER_RS_CHECK_NUM, sum(CUST_CHECK_NUM) ORDER_CUST_CHECK_NUM, sum(CHECK_NUM) ORDER_CHECK_NUM, sum(CHECK_DEAL_NUM) ORDER_CHECK_DEAL_NUM from (select nvl(u.org_province_id, o.accept_org_id) ORG_PROVINCE_ID, decode(u.org_province_id, null, o.accept_city_org_id, u.org_city_id) ORG_CITY_ID, to_char(o.create_time, 'YYYY-MM-DD') as OPERATE_DATE, o.create_operator_id as OPERATOR_ID, o.create_operator as OPERATOR_NAME, 1 as CREATE_ORDER_NUM, decode(order_status, 3, decode(rs_check_flag, 1, 1, 0), 0) as CREATE_DEAL_NUM, 0 as CANCEL_ORDER_NUM, 0 as RS_AFFIRM_NUM, 0 as RS_AFFIRM_TIMELY_NUM, 0 as CUST_AFFIRM_NUM, 0 as AFFIRM_NUM, 0 as AFFIRM_DEAL_NUM, 0 as RS_CHECK_NUM, 0 as CUST_CHECK_NUM, 0 as CHECK_NUM, 0 as CHECK_DEAL_NUM from REPORT_SEAT_VOLUME o left join sys_service_center_user u on o.create_operator_id=u.sys_user_id where 1=1 and o.create_time>=to_date('2013-03-11 00:00:00', 'yyyy-MM-d d hh24:mi:ss') and u.user_group='1' and ((1=0) or (nvl(u.org_province_id, o.accept_org_id)=9)) and o.accept_org_id=9 union all select nvl(u.org_province_id, o.accept_org_id) ORG_PROVINCE_ID, decode(u.org_province_id, null, o.accept_city_org_id, u.org_city_id) ORG_CITY_ID, to_char(o.order_cancel_time, 'YYYY-MM-DD') as OPERATE_DATE, o.order_cancel_operator_id as OPERATOR_ID, o.order_cancel_operator as OPERATOR_NAME, 0 as CREATE_ORDER_NUM, 0 as CREATE_DEAL_NUM, 1 as CANCEL_ORDER_NUM, 0 as RS_AFFIRM_NUM, 0 as RS_AFFIRM_TIMELY_NUM, 0 as CUST_AFFIRM_NUM, 0 as AFFIRM_NUM, 0 as AFFIRM_DEAL_NUM, 0 as RS_CHECK_NUM, 0 as CUST_CHECK_NUM, 0 as CHECK_NUM, 0 as CHECK_DEAL_NUM from REPORT_SEAT_VOLUME o left join sys_service_center_user u on o.order_cancel_operator_id=u.sys_user_id where 1=1 and o.order_cancel_time>=to_date('2013-03-11 00:00:00', 'yyyy-MM-dd hh24:mi:ss') and u.user_group='1' and ((1=0) or (nvl(u.org_province_id, o.accept_org_id)=9)) and ( o.accept_org_id=9 or o.handle_org_id=9) union all select nvl(u.org_province_id, o.accept_org_id) ORG_PROVINCE_ID, decode(u.org_province_id, null, o.accept_city_org_id, u.org_city_id) ORG_CITY_ID, to_char(o.rs_affirm_time, 'YYYY-MM-DD') as OPERATE_DATE, o.rs_affirm_operator_id as OPERATOR_ID, o.rs_affirm_operator as OPERATOR_NAME, 0 as CREATE_ORDER_NUM, 0 as CREATE_DEAL_NUM, 0 as CANCEL_ORDER_NUM, 1 as RS_AFFIRM_NUM, case when (o.rs_affirm_time - o.create_time) * 24 * 60 <= -1 then 1 else 0 end as RS_AFFIRM_TIMELY_NUM, 0 as CUST_AFFIR M_NUM, 1 as AFFIRM_NUM, decode(order_status, 3, decode(rs_check_flag, 1, 1, 0), 0) as AFFIRM_DEAL_NUM, 0 as RS_CHECK_NUM, 0 as CUST_CHECK_NUM, 0 as CHECK_NUM, 0 as CHECK_DEAL_NUM from REPORT_SEAT_VOLUME o left join sys_service_center_user u on o.rs_affirm_operator_id=u.sys_user_id where 1=1 and o.rs_affirm_time>=to_date('2013-03-11 00:00:00', 'yyyy-MM-dd hh24:mi:ss') and u.user_group='1' and ((1=0) or (nvl(u.org_province_id, o.accept_org_id)=9)) and o.handle_org_id=9 union all select nvl(u.org_province_id, o.accept_org_id) ORG_PROVINCE_ID, decode(u.org_province_id, null, o.accept_city_org_id, u.org_city_id) ORG_CITY_ID, to_char(o.cust_affirm_time, 'YYYY-MM-DD') as OPERATE_DATE, o.cust_affirm_operator_id as OPERATOR_ID, o.cust_affirm_operator as OPERATOR_NAME, 0 as CREATE_ORDER_NUM, 0 as CREATE_DEAL_NUM, 0 as CANCEL_ORDER_NUM, 0 as RS_AFFIRM_NUM, 0 as RS_AFFIRM_TIMELY_NUM, 1 as CUST_AFFIRM_NUM, case when cust_affirm_operator_id=rs_affirm_operator_id and cust_affirm_operator=rs_affirm_operator and to_char(o.cust_affirm_time, 'YYYY-MM-DD')=to_char(o.rs_affirm_time, 'YYYY-MM-DD') then 0 else 1 end as AFFIRM_NUM, case when cust_affirm_operator_id=rs_affirm_operator_id and cust_affirm_operator=rs_affirm_operator and to_char(o.cust_affirm_time, 'YYYY-MM-DD')=to_char(o.rs_affirm_time, 'YYYY-MM-DD') then 0 else decode(order_status, 3, decode(rs_check_flag, 1, 1, 0), 0) end as AFFIRM_DEAL_NUM, 0 as RS_CHECK_NUM, 0 as CUST_CHECK_NUM, 0 as CHECK_NUM, 0 as CHECK_DEAL_NUM from REPORT_S EAT_VOLUME o left join sys_service_center_user u on o.cust_affirm_operator_id=u.sys_user_id where 1=1 and o.cust_affirm_time>=to_date('2013-03-11 00:00:00', 'yyyy-MM-dd hh24:mi:ss') and u.user_group='1' and ((1=0) or (nvl(u.org_province_id, o.accept_org_id)=9)) and o.handle_org_id=9 union all select nvl(u.org_province_id, o.accept_org_id) ORG_PROVINCE_ID, decode(u.org_province_id, null, o.accept_city_org_id, u.org_city_id) ORG_CITY_ID, to_char(o.rs_check_time, 'YYYY-MM-DD') as OPERATE_DATE, o.rs_check_operator_id as OPERATOR_ID, o.rs_check_operator as OPERATOR_NAME, 0 as CREATE_ORDER_NUM, 0 as CREATE_DEAL_NUM, 0 as CANCEL_ORDER_NUM, 0 as RS_AFFIRM_NUM, 0 as RS_AFFIRM_TIMELY_NUM, 0 as CUST_AFFIRM_NUM, 0 as AFFIRM_NUM, 0 as AFFIRM_DEAL_NUM, 1 as RS_CHECK_NUM, 0 as CUST_CHECK_NUM, 1 as CHECK_NUM, decode(order_status, 3, decode(rs_check_flag, 1, 1, 0), 0) as CHECK_DEAL_NUM from REPORT_SEAT_VOLUME o left join sys_service_center_user u on o.cust_affirm_operator_id=u.sys_user_id where 1=1 and o.rs_check_time>=to_date('2013-03-11 00:00:00', 'yyyy-MM-dd hh24:mi:ss') and u.user_group='1' and ((1=0) or (nvl(u.org_province_id, o.accept_org_id)=9)) and o.handle_org_id=9 union all select nvl(u.org_province_id, o.accept_org_id) ORG_PROVINCE_ID, decode(u.org_province_id, null, o.accept_city_org_id, u.org_city_id) ORG_CITY_ID, to_char(o.cust_check_time, 'YYYY-MM-DD') as OPERATE_DATE, o.cust_check_operator_id as OPERATOR_ID, o.cust_check_operator as OPERATOR_NAME, 0 as CREATE_ORDER_NUM , 0 as CREATE_DEAL_NUM, 0 as CANCEL_ORDER_NUM, 0 as RS_AFFIRM_NUM, 0 as RS_AFFIRM_TIMELY_NUM, 0 as CUST_AFFIRM_NUM, 0 as AFFIRM_NUM, 0 as AFFIRM_DEAL_NUM, 0 as RS_CHECK_NUM, 1 as CUST_CHECK_NUM, case when cust_check_operator_id=rs_check_operator_id and cust_check_operator=rs_check_operator and to_char(o.cust_check_time, 'YYYY-MM-DD')=to_char(o.rs_check_time, 'YYYY-MM-DD') then 0 else 1 end as CHECK_NUM, case when cust_check_operator_id=rs_check_operator_id and cust_check_operator=rs_check_operator and to_char(o.cust_check_time, 'YYYY-MM-DD')=to_char(o.rs_check_time, 'YYYY-MM-DD') then 0 else decode(order_status, 3, decode(rs_check_flag, 1, 1, 0), 0) end as CHECK_DEAL_NUM from REPORT_SEAT_VOLUME o left join sys_service_center_user u on o.cust_affirm_operator_id=u.sys_user_id where 1=1 and o.cust_check_time>=to_date('2013-03-11 00:00:00', 'yyyy-MM-dd hh24:mi:ss') and u.user_group='1' and ((1=0) or (nvl(u.org_province_id, o.accept_org_id)=9)) and o.handle_org_id=9 ) t group by OPERATOR_ID, OPERATOR_NAME order by CID)
aq9706bk6j5x5select DOC_ID, DOC_TYPE, DOC_OWNER, UPDATE_DATE , DOC_DATA from DOCUMENT where DOC_ID = :1
aqjm2pvdxzqwmselect count(*) from (select COLLECT_ORDER_ID, ORG_ID, RESTAURANT_ID, AUTO_MATCH_NUM, OPERATE_TYPE, PROVINCE_CODE, CITY_CODE, DISTRICT_CODE, NAME, BOOK_TEL, ZIP, ADDRESS, INTRODUCE, MINOR_CUISINE, GPS_X, GPS_Y, SUBJECT_WORD, FLAVOUR, CUISINE_FIRST_ID, CUISINE_SECOND_ID, CREATE_TIME, SOURCE, ORIGIN_OPERATE_TYPE, STATUS, ORIGIN_NAME, ORIGIN_BOOK_TEL, ORIGIN_ADDRESS, ORG_PROVINCE_ID, ORG_CITY_ID, PROVINCE_ID, CITY_ID, DISTRICT_ID, NAME_FIRST_PY, ADDRESS_FIRST_PY, SIGN_STATUS, BUSINESS_STATUS, BOOKING_STATUS, PUBLISH_STATUS, NOTE, CHECK_OPERATOR, CHECK_OPERATOR_ID, CHECK_TIME, EXECUTE_OPERATOR, EXECUTE_OPERATOR_ID, EXECUTE_TIME, EXECUTE_RESULT, CUST_ID, ORIGIN_ZIP, ORIGIN_MINOR_CUISINE, ORIGIN_GPS_X, ORIGIN_GPS_Y, CHECK_PROMPT, SUBSCRIPTION_ID, ORIGIN_REGISTER_NAME, REGISTER_NAME, CHANGE_INFO_LOG, DETAIL_FLAG, FAILURE_TIMES, OPERATOR_SOURCE_FLAG, DETAILS_FAILURE_CONTENT, COLLECT_FAILURE_CONTENT from RESTAURANT_COLLECT rc where rc.DETAIL_FLAG=0 and rc.failure_times <= :1 and (rc.OPERATOR_SOURCE_FLAG <> 1 or rc.OPERATOR_SOURCE_FLAG is null) and rc.COLLECT_ORDER_ID > :2 order by rc.COLLECT_ORDER_ID)
aqzrjxr2rgh1w select count(1) from (SELECT o.order_id, o.cust_name, o.cust_tel, o.restaurant_name, o.order_status, o.vip, o.restaurant_tel, o.book_time, o.book_require, o.assigned_confirmor , o.ORDER_SOURCE, o.BOOK_RESULT, o.DEAL_LEVEL, o.BOOK_PERSON_NUM, o.BOOK_DESK_NUM, o.RESTAURANT_ID, DECODE(o.restaurant_affirm_flag, 1, 'ÊÇ', '') ||'/'|| rs_affirm_operator rs_affirm_dis, DECODE(o.customer_affirm_flag, 1, 'ÊÇ', '') ||'/'|| cust_affirm_operator cs_affirm_dis, (select b.status_name from dic_order_status b where b.status_code=o.order_status) status_name, (select d.source_name from dic_source d where d.source_code=o.order_source) source_name, o.create_operator, o.create_time, decode(deal_level, 1, '¡Ì', '') deal_lev, case when (ol.lock_time+15/1440 < sysdate) then (select u1.full_name from sys_service_center_user u1 where u1.sys_user_id=ol.lock_operator) ||'(³¬)' else (select u1.full_name from sys_service_center_user u1 where u1.sys_user_id=ol.lock_operator) end lockoperator FROM (select a.*, b.restaurant_affirm_flag, b.rs_affirm_operator, b.rs_affirm_time, b.restaurant_affirmer, b.cust_affirm_operator, b.cust_affirm_operator_id, b.rs_affirm_operator_id, b.cust_affirm_time, b.customer_affirm_flag, b.is_deposit, b.reserve_time, b.book_result, b.order_cancel_operator, b.order_cancel_time, b.order_cancel_operator_id, b.order_cancel_reason from ( select * from order_info a where 1=1 AND book_time >= TO_DATE('2013-03-11', 'YYYY-MM-D D')) a left join (select * from order_check b where 1=1 ) b on a.order_id = b.order_id) o LEFT JOIN order_lock ol ON o.order_id = ol.Order_Id WHERE 1=1 AND ( 1=0 OR o.order_status = 1 OR o.order_status = 6 OR o.order_status = 5 ) AND ( 1=0 OR ol.lock_operator = '4145' OR ((ol.order_id IS NULL OR trim(ol.order_id) = '') and (o.ebooking_flag is null or o.ebooking_flag='0' or (o.ebooking_flag='1' and (o.restaurant_affirm_flag is not null or o.create_time<sysdate-5/1440)))) OR ol.lock_time < sysdate-15/1440 ) AND ((1=0) or (o.handle_org_id=9)) AND (1=0 or o.order_process_flag='1' or o.order_process_flag='2')ORDER BY O.VIP DESC, o.deal_level desc, o.create_time )
c1cscqsbrmdak select orderinfo0_.ORDER_ID as ORDER1_9_2_, orderinfo0_.RESTAURANT_ID as RESTAURANT2_9_2_, orderinfo0_.SP_ID as SP3_9_2_, orderinfo0_.ACCEPT_ORG_ID as ACCEPT4_9_2_, orderinfo0_.ACCEPT_CITY_ORG_ID as ACCEPT5_9_2_, orderinfo0_.HANDLE_ORG_ID as HANDLE6_9_2_, orderinfo0_.HANDLE_CITY_ORG_ID as HANDLE7_9_2_, orderinfo0_.ORDER_SOURCE as ORDER8_9_2_, orderinfo0_.ORDER_PROCESS_FLAG as ORDER9_9_2_, orderinfo0_.CALL_TEL as CALL10_9_2_, orderinfo0_.CARD_NO as CARD11_9_2_, orderinfo0_.CUST_NAME as CUST12_9_2_, orderinfo0_.CUST_TEL as CUST13_9_2_, orderinfo0_.CUST_EMAIL as CUST14_9_2_, orderinfo0_.CUST_ID as CUST15_9_2_, orderinfo0_.SEX as SEX9_2_, orderinfo0_.CHECK_ORDER_MODE as CHECK17_9_2_, orderinfo0_.BOOK_TIME as BOOK18_9_2_, orderinfo0_.BOOK_ENVIRONMENT as BOOK19_9_2_, orderinfo0_.BOOK_PERSON_NUM as BOOK20_9_2_, orderinfo0_.BOOK_DESK_NUM as BOOK21_9_2_, orderinfo0_.BOOK_REQUIRE as BOOK22_9_2_, orderinfo0_.IS_SEND_INVITE as IS23_9_2_, orderinfo0_.DEAL_LEVEL as DEAL24_9_2_, orderinfo0_.CUST_AFFIRM_WAY as CUST25_9_2_, orderinfo0_.DISCOUNT_DESC as DISCOUNT26_9_2_, orderinfo0_.NOTE as NOTE9_2_, orderinfo0_.RESTAURANT_NAME as RESTAURANT28_9_2_, orderinfo0_.RESTAURANT_ADDRESS as RESTAURANT29_9_2_, orderinfo0_.RESTAURANT_TEL as RESTAURANT30_9_2_, orderinfo0_.PROVINCE_ID as PROVINCE31_9_2_, orderinfo0_.CITY_ID as CITY32_9_2_, orderinfo0_.DISTRICT_ID as DISTRICT33_9_2_, orderinfo0_.CUST_FEEDBACK as CUST34_9_2_, orderinfo0_.CREATE_OPERATOR as CREATE35_9_2_, or derinfo0_.CREATE_TIME as CREATE36_9_2_, orderinfo0_.CREATE_OPERATOR_ID as CREATE37_9_2_, orderinfo0_.ASSIGNED_CONFIRMOR as ASSIGNED38_9_2_, orderinfo0_.ASSIGNED_CONFIRMOR_ID as ASSIGNED39_9_2_, orderinfo0_.LOCAL_CARD_NO as LOCAL40_9_2_, orderinfo0_.ORDER_DELIVER_FLAG as ORDER41_9_2_, orderinfo0_.ORIGIN_ORDER_ID as ORIGIN42_9_2_, orderinfo0_.COOPERATION_PARTNER_ID as COOPERA43_9_2_, orderinfo0_.BUSINESS_TYPE as BUSINESS44_9_2_, orderinfo0_.OPERATE_TIME as OPERATE45_9_2_, orderinfo0_.OPERATOR as OPERATOR9_2_, orderinfo0_.OPERATOR_ID as OPERATOR47_9_2_, orderinfo0_.SECOND_BOOK_FLAG as SECOND48_9_2_, orderinfo0_.EBOOKING_FLAG as EBOOKING49_9_2_, orderinfo0_.ORDER_STATUS as ORDER50_9_2_, orderinfo0_.RESTAURANT_FIRST_PY as RESTAURANT51_9_2_, orderinfo0_.IS_CHARGE as IS52_9_2_, orderinfo0_.VIP as VIP9_2_, ordercheck1_.ORDER_ID as ORDER1_88_0_, ordercheck1_.RESTAURANT_AFFIRM_FLAG as RESTAURANT2_88_0_, ordercheck1_.RS_AFFIRM_OPERATOR as RS3_88_0_, ordercheck1_.RS_AFFIRM_TIME as RS4_88_0_, ordercheck1_.RESTAURANT_AFFIRMER as RESTAURANT5_88_0_, ordercheck1_.CUST_AFFIRM_OPERATOR as CUST6_88_0_, ordercheck1_.CUST_AFFIRM_OPERATOR_ID as CUST7_88_0_, ordercheck1_.RS_AFFIRM_OPERATOR_ID as RS8_88_0_, ordercheck1_.CUST_AFFIRM_TIME as CUST9_88_0_, ordercheck1_.CUSTOMER_AFFIRM_FLAG as CUSTOMER10_88_0_, ordercheck1_.IS_DEPOSIT as IS11_88_0_, ordercheck1_.RESERVE_TIME as RESERVE12_88_0_, ordercheck1_.BOOK_RESULT as BOOK13_88_0_, ordercheck1_.ORDER_CANCEL_OPERATOR as O RDER14_88_0_, ordercheck1_.ORDER_CANCEL_TIME as ORDER15_88_0_, ordercheck1_.ORDER_CANCEL_OPERATOR_ID as ORDER16_88_0_, ordercheck1_.ORDER_CANCEL_REASON as ORDER17_88_0_, ordercheck1_.PROVINCE_ID as PROVINCE18_88_0_, orderinfo4x2_.ORDER_ID as ORDER1_89_1_, orderinfo4x2_.BILL_ID as BILL2_89_1_, orderinfo4x2_.RESTAURANT_ID as RESTAURANT3_89_1_, orderinfo4x2_.CUST_CHECK_WAY as CUST4_89_1_, orderinfo4x2_.CHECK_PERSON_NUM as CHECK5_89_1_, orderinfo4x2_.CHECK_DESK_NUM as CHECK6_89_1_, orderinfo4x2_.CHECK_ENVIRONMENT as CHECK7_89_1_, orderinfo4x2_.CHECK_AMOUNT_TOTAL as CHECK8_89_1_, orderinfo4x2_.CHECK_AMOUNT_COMMON as CHECK9_89_1_, orderinfo4x2_.CHECK_AMOUNT_DISCOUNT as CHECK10_89_1_, orderinfo4x2_.CHECK_AMOUNT_SAVE as CHECK11_89_1_, orderinfo4x2_.CHECK_AMOUNT_OTHER as CHECK12_89_1_, orderinfo4x2_.CHECK_POSITION as CHECK13_89_1_, orderinfo4x2_.RESTAURANT_CHECKER as RESTAURANT14_89_1_, orderinfo4x2_.CUST_CHECK_PERSON_NUM as CUST15_89_1_, orderinfo4x2_.CUST_CHECK_DESK_NUM as CUST16_89_1_, orderinfo4x2_.CUST_CHECK_AMOUNT as CUST17_89_1_, orderinfo4x2_.ORIGIN_ORDER_ID as ORIGIN18_89_1_, orderinfo4x2_.RS_CHECK_FLAG as RS19_89_1_, orderinfo4x2_.CHECK_RESULT_DESC as CHECK20_89_1_, orderinfo4x2_.CUST_CHECK_FLAG as CUST21_89_1_, orderinfo4x2_.RS_CHECK_TIME as RS22_89_1_, orderinfo4x2_.RS_CHECK_OPERATOR as RS23_89_1_, orderinfo4x2_.CUST_CHECK_OPERATOR as CUST24_89_1_, orderinfo4x2_.CUST_CHECK_TIME as CUST25_89_1_, orderinfo4x2_.RS_CHECK_OPERATOR_ID as RS26_89_1_, orderinfo4x2_.CUST_CHECK_OPERATOR_ID as CUST27_89_1_, orderinfo4x2_.PROVINCE_ID as PROVINCE28_89_1_ from ORDER_INFO orderinfo0_ left outer join ORDER_CHECK ordercheck1_ on orderinfo0_.ORDER_ID=ordercheck1_.ORDER_ID left outer join ORDER_INFO_4BILL orderinfo4x2_ on orderinfo0_.ORDER_ID=orderinfo4x2_.ORDER_ID where orderinfo0_.ORDER_ID=:1
c642s3tkxswz8insert into INTERFACE_LOG (RS_INTERFACE_LOG_ID, RESTAURANT_ID, METHOD, NOTE, IP_ADDRESS, OPERATE_TIME, CALLER_ID, SERVICE_NAME, APP_KEY, ORG_ID) values (:1, :2, :3, :4, :5, sysdate, :6, :7, :8, :9)
cqh9dz0xrpqab select count(1) from (select OPERATOR_ID as CID, OPERATOR_NAME as OPERATOR, sum(CREATE_ORDER_NUM) ORDER_TOTAL_NUM, sum(CREATE_DEAL_NUM) ORDER_CREATE_DEAL_NUM, sum(CANCEL_ORDER_NUM) ORDER_CANCEL_NUM, sum(RS_AFFIRM_NUM) ORDER_RS_AFFIRM_NUM, sum(RS_AFFIRM_TIMELY_NUM) ORDER_RS_AFFIRM_TIMELY_NUM, cast(cast(sum(RS_AFFIRM_TIMELY_NUM) / decode(sum(RS_AFFIRM_NUM), 0, 1, sum(RS_AFFIRM_NUM)) * 100 as decimal(10, 2)) as varchar(5)) || '%' ORDER_RS_AFFIRM_TIMELY_PERCENT, sum(CUST_AFFIRM_NUM) ORDER_CUST_AFFIRM_NUM, sum(AFFIRM_NUM) ORDER_AFFIRM_NUM, sum(AFFIRM_DEAL_NUM) ORDER_AFFIRM_DEAL_NUM, sum(RS_CHECK_NUM) ORDER_RS_CHECK_NUM, sum(CUST_CHECK_NUM) ORDER_CUST_CHECK_NUM, sum(CHECK_NUM) ORDER_CHECK_NUM, sum(CHECK_DEAL_NUM) ORDER_CHECK_DEAL_NUM from (select nvl(u.org_province_id, o.accept_org_id) ORG_PROVINCE_ID, decode(u.org_province_id, null, o.accept_city_org_id, u.org_city_id) ORG_CITY_ID, to_char(o.create_time, 'YYYY-MM-DD') as OPERATE_DATE, o.create_operator_id as OPERATOR_ID, o.create_operator as OPERATOR_NAME, 1 as CREATE_ORDER_NUM, decode(order_status, 3, decode(rs_check_flag, 1, 1, 0), 0) as CREATE_DEAL_NUM, 0 as CANCEL_ORDER_NUM, 0 as RS_AFFIRM_NUM, 0 as RS_AFFIRM_TIMELY_NUM, 0 as CUST_AFFIRM_NUM, 0 as AFFIRM_NUM, 0 as AFFIRM_DEAL_NUM, 0 as RS_CHECK_NUM, 0 as CUST_CHECK_NUM, 0 as CHECK_NUM, 0 as CHECK_DEAL_NUM from REPORT_SEAT_VOLUME o left join sys_service_center_user u on o.create_operator_id=u.sys_user_id where 1=1 and o.create_time>=to_date('2013-03-11 00:00:00', 'yyyy-MM-d d hh24:mi:ss') and o.create_time<=to_date('2013-03-11 23:59:59', 'yyyy-MM-dd hh24:mi:ss') and ((1=0) or (decode(u.org_province_id, null, o.accept_city_org_id, u.org_city_id)=86)) and o.accept_city_org_id=86 union all select nvl(u.org_province_id, o.accept_org_id) ORG_PROVINCE_ID, decode(u.org_province_id, null, o.accept_city_org_id, u.org_city_id) ORG_CITY_ID, to_char(o.order_cancel_time, 'YYYY-MM-DD') as OPERATE_DATE, o.order_cancel_operator_id as OPERATOR_ID, o.order_cancel_operator as OPERATOR_NAME, 0 as CREATE_ORDER_NUM, 0 as CREATE_DEAL_NUM, 1 as CANCEL_ORDER_NUM, 0 as RS_AFFIRM_NUM, 0 as RS_AFFIRM_TIMELY_NUM, 0 as CUST_AFFIRM_NUM, 0 as AFFIRM_NUM, 0 as AFFIRM_DEAL_NUM, 0 as RS_CHECK_NUM, 0 as CUST_CHECK_NUM, 0 as CHECK_NUM, 0 as CHECK_DEAL_NUM from REPORT_SEAT_VOLUME o left join sys_service_center_user u on o.order_cancel_operator_id=u.sys_user_id where 1=1 and o.order_cancel_time>=to_date('2013-03-11 00:00:00', 'yyyy-MM-dd hh24:mi:ss') and o.order_cancel_time<=to_date('2013-03-11 23:59:59', 'yyyy-MM-dd hh24:mi:ss') and ((1=0) or (decode(u.org_province_id, null, o.accept_city_org_id, u.org_city_id)=86)) and ( o.accept_city_org_id=86 or ( o.handle_org_id=22 and o.handle_city_org_id=86)) union all select nvl(u.org_province_id, o.accept_org_id) ORG_PROVINCE_ID, decode(u.org_province_id, null, o.accept_city_org_id, u.org_city_id) ORG_CITY_ID, to_char(o.rs_affirm_time, 'YYYY-MM-DD') as OPERATE_DATE, o.rs_affirm_operator_id as OPERATOR_ID, o.rs_affirm_operator as OP ERATOR_NAME, 0 as CREATE_ORDER_NUM, 0 as CREATE_DEAL_NUM, 0 as CANCEL_ORDER_NUM, 1 as RS_AFFIRM_NUM, case when (o.rs_affirm_time - o.create_time) * 24 * 60 <= -1 then 1 else 0 end as RS_AFFIRM_TIMELY_NUM, 0 as CUST_AFFIRM_NUM, 1 as AFFIRM_NUM, decode(order_status, 3, decode(rs_check_flag, 1, 1, 0), 0) as AFFIRM_DEAL_NUM, 0 as RS_CHECK_NUM, 0 as CUST_CHECK_NUM, 0 as CHECK_NUM, 0 as CHECK_DEAL_NUM from REPORT_SEAT_VOLUME o left join sys_service_center_user u on o.rs_affirm_operator_id=u.sys_user_id where 1=1 and o.rs_affirm_time>=to_date('2013-03-11 00:00:00', 'yyyy-MM-dd hh24:mi:ss') and o.rs_affirm_time<=to_date('2013-03-11 23:59:59', 'yyyy-MM-dd hh24:mi:ss') and ((1=0) or (decode(u.org_province_id, null, o.accept_city_org_id, u.org_city_id)=86)) and o.handle_city_org_id=86 union all select nvl(u.org_province_id, o.accept_org_id) ORG_PROVINCE_ID, decode(u.org_province_id, null, o.accept_city_org_id, u.org_city_id) ORG_CITY_ID, to_char(o.cust_affirm_time, 'YYYY-MM-DD') as OPERATE_DATE, o.cust_affirm_operator_id as OPERATOR_ID, o.cust_affirm_operator as OPERATOR_NAME, 0 as CREATE_ORDER_NUM, 0 as CREATE_DEAL_NUM, 0 as CANCEL_ORDER_NUM, 0 as RS_AFFIRM_NUM, 0 as RS_AFFIRM_TIMELY_NUM, 1 as CUST_AFFIRM_NUM, case when cust_affirm_operator_id=rs_affirm_operator_id and cust_affirm_operator=rs_affirm_operator and to_char(o.cust_affirm_time, 'YYYY-MM-DD')=to_char(o.rs_affirm_time, 'YYYY-MM-DD') then 0 else 1 end as AFFIRM_NUM, case when cust_affirm_operator_id=rs_affirm_operato r_id and cust_affirm_operator=rs_affirm_operator and to_char(o.cust_affirm_time, 'YYYY-MM-DD')=to_char(o.rs_affirm_time, 'YYYY-MM-DD') then 0 else decode(order_status, 3, decode(rs_check_flag, 1, 1, 0), 0) end as AFFIRM_DEAL_NUM, 0 as RS_CHECK_NUM, 0 as CUST_CHECK_NUM, 0 as CHECK_NUM, 0 as CHECK_DEAL_NUM from REPORT_SEAT_VOLUME o left join sys_service_center_user u on o.cust_affirm_operator_id=u.sys_user_id where 1=1 and o.cust_affirm_time>=to_date('2013-03-11 00:00:00', 'yyyy-MM-dd hh24:mi:ss') and o.cust_affirm_time<=to_date('2013-03-11 23:59:59', 'yyyy-MM-dd hh24:mi:ss') and ((1=0) or (decode(u.org_province_id, null, o.accept_city_org_id, u.org_city_id)=86)) and o.handle_city_org_id=86 union all select nvl(u.org_province_id, o.accept_org_id) ORG_PROVINCE_ID, decode(u.org_province_id, null, o.accept_city_org_id, u.org_city_id) ORG_CITY_ID, to_char(o.rs_check_time, 'YYYY-MM-DD') as OPERATE_DATE, o.rs_check_operator_id as OPERATOR_ID, o.rs_check_operator as OPERATOR_NAME, 0 as CREATE_ORDER_NUM, 0 as CREATE_DEAL_NUM, 0 as CANCEL_ORDER_NUM, 0 as RS_AFFIRM_NUM, 0 as RS_AFFIRM_TIMELY_NUM, 0 as CUST_AFFIRM_NUM, 0 as AFFIRM_NUM, 0 as AFFIRM_DEAL_NUM, 1 as RS_CHECK_NUM, 0 as CUST_CHECK_NUM, 1 as CHECK_NUM, decode(order_status, 3, decode(rs_check_flag, 1, 1, 0), 0) as CHECK_DEAL_NUM from REPORT_SEAT_VOLUME o left join sys_service_center_user u on o.cust_affirm_operator_id=u.sys_user_id where 1=1 and o.rs_check_time>=to_date('2013-03-11 00:00:00', 'yyyy-MM-dd hh24:mi:ss') a nd o.rs_check_time<=to_date('2013-03-11 23:59:59', 'yyyy-MM-dd hh24:mi:ss') and ((1=0) or (decode(u.org_province_id, null, o.accept_city_org_id, u.org_city_id)=86)) and o.handle_city_org_id=86 union all select nvl(u.org_province_id, o.accept_org_id) ORG_PROVINCE_ID, decode(u.org_province_id, null, o.accept_city_org_id, u.org_city_id) ORG_CITY_ID, to_char(o.cust_check_time, 'YYYY-MM-DD') as OPERATE_DATE, o.cust_check_operator_id as OPERATOR_ID, o.cust_check_operator as OPERATOR_NAME, 0 as CREATE_ORDER_NUM, 0 as CREATE_DEAL_NUM, 0 as CANCEL_ORDER_NUM, 0 as RS_AFFIRM_NUM, 0 as RS_AFFIRM_TIMELY_NUM, 0 as CUST_AFFIRM_NUM, 0 as AFFIRM_NUM, 0 as AFFIRM_DEAL_NUM, 0 as RS_CHECK_NUM, 1 as CUST_CHECK_NUM, case when cust_check_operator_id=rs_check_operator_id and cust_check_operator=rs_check_operator and to_char(o.cust_check_time, 'YYYY-MM-DD')=to_char(o.rs_check_time, 'YYYY-MM-DD') then 0 else 1 end as CHECK_NUM, case when cust_check_operator_id=rs_check_operator_id and cust_check_operator=rs_check_operator and to_char(o.cust_check_time, 'YYYY-MM-DD')=to_char(o.rs_check_time, 'YYYY-MM-DD') then 0 else decode(order_status, 3, decode(rs_check_flag, 1, 1, 0), 0) end as CHECK_DEAL_NUM from REPORT_SEAT_VOLUME o left join sys_service_center_user u on o.cust_affirm_operator_id=u.sys_user_id where 1=1 and o.cust_check_time>=to_date('2013-03-11 00:00:00', 'yyyy-MM-dd hh24:mi:ss') and o.cust_check_time<=to_date('2013-03-11 23:59:59', 'yyyy-MM-dd hh24:mi:ss') and ((1=0) or (decode(u.org_ province_id, null, o.accept_city_org_id, u.org_city_id)=86)) and o.handle_city_org_id=86 ) t group by OPERATOR_ID, OPERATOR_NAME order by CID)
czm5xw4a1zzt1 select tbl.*, cast(cast(tbl.ORDER_RS_AFFIRM_TIMELY_NUM / decode(tbl.ORDER_RS_AFFIRM_NUM, 0, 1, tbl.ORDER_RS_AFFIRM_NUM) * 100 as decimal(10, 2)) as varchar(5)) || '%' ORDER_RS_AFFIRM_TIMELY_PERCENT from (select (select nvl(sum(CREATE_ORDER_NUM), 0) from (select nvl(u.org_province_id, o.accept_org_id) ORG_PROVINCE_ID, decode(u.org_province_id, null, o.accept_city_org_id, u.org_city_id) ORG_CITY_ID, to_char(o.create_time, 'YYYY-MM-DD') as OPERATE_DATE, o.create_operator_id as OPERATOR_ID, o.create_operator as OPERATOR_NAME, 1 as CREATE_ORDER_NUM, decode(order_status, 3, decode(rs_check_flag, 1, 1, 0), 0) as CREATE_DEAL_NUM, 0 as CANCEL_ORDER_NUM, 0 as RS_AFFIRM_NUM, 0 as RS_AFFIRM_TIMELY_NUM, 0 as CUST_AFFIRM_NUM, 0 as AFFIRM_NUM, 0 as AFFIRM_DEAL_NUM, 0 as RS_CHECK_NUM, 0 as CUST_CHECK_NUM, 0 as CHECK_NUM, 0 as CHECK_DEAL_NUM from REPORT_SEAT_VOLUME o left join sys_service_center_user u on o.create_operator_id=u.sys_user_id where 1=1 and o.create_time>=to_date('2013-03-11 00:00:00', 'yyyy-MM-dd hh24:mi:ss') and u.user_group='1' and ((1=0) or (nvl(u.org_province_id, o.accept_org_id)=9)) and o.accept_org_id=9) t) order_total_num, (select nvl(sum(CREATE_DEAL_NUM), 0) from (select nvl(u.org_province_id, o.accept_org_id) ORG_PROVINCE_ID, decode(u.org_province_id, null, o.accept_city_org_id, u.org_city_id) ORG_CITY_ID, to_char(o.create_time, 'YYYY-MM-DD') as OPERATE_DATE, o.create_operator_id as OPERATOR_ID, o.create_operator as OPERATOR_NAME, 1 as CREATE_ORDER_NUM, decode(order _status, 3, decode(rs_check_flag, 1, 1, 0), 0) as CREATE_DEAL_NUM, 0 as CANCEL_ORDER_NUM, 0 as RS_AFFIRM_NUM, 0 as RS_AFFIRM_TIMELY_NUM, 0 as CUST_AFFIRM_NUM, 0 as AFFIRM_NUM, 0 as AFFIRM_DEAL_NUM, 0 as RS_CHECK_NUM, 0 as CUST_CHECK_NUM, 0 as CHECK_NUM, 0 as CHECK_DEAL_NUM from REPORT_SEAT_VOLUME o left join sys_service_center_user u on o.create_operator_id=u.sys_user_id where 1=1 and o.create_time>=to_date('2013-03-11 00:00:00', 'yyyy-MM-dd hh24:mi:ss') and u.user_group='1' and ((1=0) or (nvl(u.org_province_id, o.accept_org_id)=9)) and o.accept_org_id=9) t) order_create_deal_num, (select nvl(sum(CANCEL_ORDER_NUM), 0) from (select nvl(u.org_province_id, o.accept_org_id) ORG_PROVINCE_ID, decode(u.org_province_id, null, o.accept_city_org_id, u.org_city_id) ORG_CITY_ID, to_char(o.order_cancel_time, 'YYYY-MM-DD') as OPERATE_DATE, o.order_cancel_operator_id as OPERATOR_ID, o.order_cancel_operator as OPERATOR_NAME, 0 as CREATE_ORDER_NUM, 0 as CREATE_DEAL_NUM, 1 as CANCEL_ORDER_NUM, 0 as RS_AFFIRM_NUM, 0 as RS_AFFIRM_TIMELY_NUM, 0 as CUST_AFFIRM_NUM, 0 as AFFIRM_NUM, 0 as AFFIRM_DEAL_NUM, 0 as RS_CHECK_NUM, 0 as CUST_CHECK_NUM, 0 as CHECK_NUM, 0 as CHECK_DEAL_NUM from REPORT_SEAT_VOLUME o left join sys_service_center_user u on o.order_cancel_operator_id=u.sys_user_id where 1=1 and o.order_cancel_time>=to_date('2013-03-11 00:00:00', 'yyyy-MM-dd hh24:mi:ss') and u.user_group='1' and ((1=0) or (nvl(u.org_province_id, o.accept_org_id)=9)) and ( o.accept_org_id=9 or o.handle_org _id=9)) t) order_cancel_num, (select nvl(sum(RS_AFFIRM_NUM), 0) from (select nvl(u.org_province_id, o.accept_org_id) ORG_PROVINCE_ID, decode(u.org_province_id, null, o.accept_city_org_id, u.org_city_id) ORG_CITY_ID, to_char(o.rs_affirm_time, 'YYYY-MM-DD') as OPERATE_DATE, o.rs_affirm_operator_id as OPERATOR_ID, o.rs_affirm_operator as OPERATOR_NAME, 0 as CREATE_ORDER_NUM, 0 as CREATE_DEAL_NUM, 0 as CANCEL_ORDER_NUM, 1 as RS_AFFIRM_NUM, case when (o.rs_affirm_time - o.create_time) * 24 * 60 <= -1 then 1 else 0 end as RS_AFFIRM_TIMELY_NUM, 0 as CUST_AFFIRM_NUM, 1 as AFFIRM_NUM, decode(order_status, 3, decode(rs_check_flag, 1, 1, 0), 0) as AFFIRM_DEAL_NUM, 0 as RS_CHECK_NUM, 0 as CUST_CHECK_NUM, 0 as CHECK_NUM, 0 as CHECK_DEAL_NUM from REPORT_SEAT_VOLUME o left join sys_service_center_user u on o.rs_affirm_operator_id=u.sys_user_id where 1=1 and o.rs_affirm_time>=to_date('2013-03-11 00:00:00', 'yyyy-MM-dd hh24:mi:ss') and u.user_group='1' and ((1=0) or (nvl(u.org_province_id, o.accept_org_id)=9)) and o.handle_org_id=9) t) order_rs_affirm_num, (select nvl(sum(RS_AFFIRM_TIMELY_NUM), 0) from (select nvl(u.org_province_id, o.accept_org_id) ORG_PROVINCE_ID, decode(u.org_province_id, null, o.accept_city_org_id, u.org_city_id) ORG_CITY_ID, to_char(o.rs_affirm_time, 'YYYY-MM-DD') as OPERATE_DATE, o.rs_affirm_operator_id as OPERATOR_ID, o.rs_affirm_operator as OPERATOR_NAME, 0 as CREATE_ORDER_NUM, 0 as CREATE_DEAL_NUM, 0 as CANCEL_ORDER_NUM, 1 as RS_AFFIRM_NUM, case when (o.rs_aff irm_time - o.create_time) * 24 * 60 <= -1 then 1 else 0 end as RS_AFFIRM_TIMELY_NUM, 0 as CUST_AFFIRM_NUM, 1 as AFFIRM_NUM, decode(order_status, 3, decode(rs_check_flag, 1, 1, 0), 0) as AFFIRM_DEAL_NUM, 0 as RS_CHECK_NUM, 0 as CUST_CHECK_NUM, 0 as CHECK_NUM, 0 as CHECK_DEAL_NUM from REPORT_SEAT_VOLUME o left join sys_service_center_user u on o.rs_affirm_operator_id=u.sys_user_id where 1=1 and o.rs_affirm_time>=to_date('2013-03-11 00:00:00', 'yyyy-MM-dd hh24:mi:ss') and u.user_group='1' and ((1=0) or (nvl(u.org_province_id, o.accept_org_id)=9)) and o.handle_org_id=9) t) order_rs_affirm_timely_num, (select nvl(sum(CUST_AFFIRM_NUM), 0) from (select nvl(u.org_province_id, o.accept_org_id) ORG_PROVINCE_ID, decode(u.org_province_id, null, o.accept_city_org_id, u.org_city_id) ORG_CITY_ID, to_char(o.cust_affirm_time, 'YYYY-MM-DD') as OPERATE_DATE, o.cust_affirm_operator_id as OPERATOR_ID, o.cust_affirm_operator as OPERATOR_NAME, 0 as CREATE_ORDER_NUM, 0 as CREATE_DEAL_NUM, 0 as CANCEL_ORDER_NUM, 0 as RS_AFFIRM_NUM, 0 as RS_AFFIRM_TIMELY_NUM, 1 as CUST_AFFIRM_NUM, case when cust_affirm_operator_id=rs_affirm_operator_id and cust_affirm_operator=rs_affirm_operator and to_char(o.cust_affirm_time, 'YYYY-MM-DD')=to_char(o.rs_affirm_time, 'YYYY-MM-DD') then 0 else 1 end as AFFIRM_NUM, case when cust_affirm_operator_id=rs_affirm_operator_id and cust_affirm_operator=rs_affirm_operator and to_char(o.cust_affirm_time, 'YYYY-MM-DD')=to_char(o.rs_affirm_time, 'YYYY-MM-DD') then 0 else deco de(order_status, 3, decode(rs_check_flag, 1, 1, 0), 0) end as AFFIRM_DEAL_NUM, 0 as RS_CHECK_NUM, 0 as CUST_CHECK_NUM, 0 as CHECK_NUM, 0 as CHECK_DEAL_NUM from REPORT_SEAT_VOLUME o left join sys_service_center_user u on o.cust_affirm_operator_id=u.sys_user_id where 1=1 and o.cust_affirm_time>=to_date('2013-03-11 00:00:00', 'yyyy-MM-dd hh24:mi:ss') and u.user_group='1' and ((1=0) or (nvl(u.org_province_id, o.accept_org_id)=9)) and o.handle_org_id=9) t) order_cust_affirm_num, (select nvl(sum(AFFIRM_NUM), 0) from (select nvl(u.org_province_id, o.accept_org_id) ORG_PROVINCE_ID, decode(u.org_province_id, null, o.accept_city_org_id, u.org_city_id) ORG_CITY_ID, to_char(o.rs_affirm_time, 'YYYY-MM-DD') as OPERATE_DATE, o.rs_affirm_operator_id as OPERATOR_ID, o.rs_affirm_operator as OPERATOR_NAME, 0 as CREATE_ORDER_NUM, 0 as CREATE_DEAL_NUM, 0 as CANCEL_ORDER_NUM, 1 as RS_AFFIRM_NUM, case when (o.rs_affirm_time - o.create_time) * 24 * 60 <= -1 then 1 else 0 end as RS_AFFIRM_TIMELY_NUM, 0 as CUST_AFFIRM_NUM, 1 as AFFIRM_NUM, decode(order_status, 3, decode(rs_check_flag, 1, 1, 0), 0) as AFFIRM_DEAL_NUM, 0 as RS_CHECK_NUM, 0 as CUST_CHECK_NUM, 0 as CHECK_NUM, 0 as CHECK_DEAL_NUM from REPORT_SEAT_VOLUME o left join sys_service_center_user u on o.rs_affirm_operator_id=u.sys_user_id where 1=1 and o.rs_affirm_time>=to_date('2013-03-11 00:00:00', 'yyyy-MM-dd hh24:mi:ss') and u.user_group='1' and ((1=0) or (nvl(u.org_province_id, o.accept_org_id)=9)) and o.handle_org_id=9 union all s elect nvl(u.org_province_id, o.accept_org_id) ORG_PROVINCE_ID, decode(u.org_province_id, null, o.accept_city_org_id, u.org_city_id) ORG_CITY_ID, to_char(o.cust_affirm_time, 'YYYY-MM-DD') as OPERATE_DATE, o.cust_affirm_operator_id as OPERATOR_ID, o.cust_affirm_operator as OPERATOR_NAME, 0 as CREATE_ORDER_NUM, 0 as CREATE_DEAL_NUM, 0 as CANCEL_ORDER_NUM, 0 as RS_AFFIRM_NUM, 0 as RS_AFFIRM_TIMELY_NUM, 1 as CUST_AFFIRM_NUM, case when cust_affirm_operator_id=rs_affirm_operator_id and cust_affirm_operator=rs_affirm_operator and to_char(o.cust_affirm_time, 'YYYY-MM-DD')=to_char(o.rs_affirm_time, 'YYYY-MM-DD') then 0 else 1 end as AFFIRM_NUM, case when cust_affirm_operator_id=rs_affirm_operator_id and cust_affirm_operator=rs_affirm_operator and to_char(o.cust_affirm_time, 'YYYY-MM-DD')=to_char(o.rs_affirm_time, 'YYYY-MM-DD') then 0 else decode(order_status, 3, decode(rs_check_flag, 1, 1, 0), 0) end as AFFIRM_DEAL_NUM, 0 as RS_CHECK_NUM, 0 as CUST_CHECK_NUM, 0 as CHECK_NUM, 0 as CHECK_DEAL_NUM from REPORT_SEAT_VOLUME o left join sys_service_center_user u on o.cust_affirm_operator_id=u.sys_user_id where 1=1 and o.cust_affirm_time>=to_date('2013-03-11 00:00:00', 'yyyy-MM-dd hh24:mi:ss') and u.user_group='1' and ((1=0) or (nvl(u.org_province_id, o.accept_org_id)=9)) and o.handle_org_id=9) t) order_affirm_num, (select nvl(sum(AFFIRM_DEAL_NUM), 0) from (select nvl(u.org_province_id, o.accept_org_id) ORG_PROVINCE_ID, decode(u.org_province_id, null, o.accept_city_org_id, u.org_city_id) O RG_CITY_ID, to_char(o.rs_affirm_time, 'YYYY-MM-DD') as OPERATE_DATE, o.rs_affirm_operator_id as OPERATOR_ID, o.rs_affirm_operator as OPERATOR_NAME, 0 as CREATE_ORDER_NUM, 0 as CREATE_DEAL_NUM, 0 as CANCEL_ORDER_NUM, 1 as RS_AFFIRM_NUM, case when (o.rs_affirm_time - o.create_time) * 24 * 60 <= -1 then 1 else 0 end as RS_AFFIRM_TIMELY_NUM, 0 as CUST_AFFIRM_NUM, 1 as AFFIRM_NUM, decode(order_status, 3, decode(rs_check_flag, 1, 1, 0), 0) as AFFIRM_DEAL_NUM, 0 as RS_CHECK_NUM, 0 as CUST_CHECK_NUM, 0 as CHECK_NUM, 0 as CHECK_DEAL_NUM from REPORT_SEAT_VOLUME o left join sys_service_center_user u on o.rs_affirm_operator_id=u.sys_user_id where 1=1 and o.rs_affirm_time>=to_date('2013-03-11 00:00:00', 'yyyy-MM-dd hh24:mi:ss') and u.user_group='1' and ((1=0) or (nvl(u.org_province_id, o.accept_org_id)=9)) and o.handle_org_id=9 union all select nvl(u.org_province_id, o.accept_org_id) ORG_PROVINCE_ID, decode(u.org_province_id, null, o.accept_city_org_id, u.org_city_id) ORG_CITY_ID, to_char(o.cust_affirm_time, 'YYYY-MM-DD') as OPERATE_DATE, o.cust_affirm_operator_id as OPERATOR_ID, o.cust_affirm_operator as OPERATOR_NAME, 0 as CREATE_ORDER_NUM, 0 as CREATE_DEAL_NUM, 0 as CANCEL_ORDER_NUM, 0 as RS_AFFIRM_NUM, 0 as RS_AFFIRM_TIMELY_NUM, 1 as CUST_AFFIRM_NUM, case when cust_affirm_operator_id=rs_affirm_operator_id and cust_affirm_operator=rs_affirm_operator and to_char(o.cust_affirm_time, 'YYYY-MM-DD')=to_char(o.rs_affirm_time, 'YYYY-MM-DD') then 0 else 1 end as AFFIRM_NUM, case when cu st_affirm_operator_id=rs_affirm_operator_id and cust_affirm_operator=rs_affirm_operator and to_char(o.cust_affirm_time, 'YYYY-MM-DD')=to_char(o.rs_affirm_time, 'YYYY-MM-DD') then 0 else decode(order_status, 3, decode(rs_check_flag, 1, 1, 0), 0) end as AFFIRM_DEAL_NUM, 0 as RS_CHECK_NUM, 0 as CUST_CHECK_NUM, 0 as CHECK_NUM, 0 as CHECK_DEAL_NUM from REPORT_SEAT_VOLUME o left join sys_service_center_user u on o.cust_affirm_operator_id=u.sys_user_id where 1=1 and o.cust_affirm_time>=to_date('2013-03-11 00:00:00', 'yyyy-MM-dd hh24:mi:ss') and u.user_group='1' and ((1=0) or (nvl(u.org_province_id, o.accept_org_id)=9)) and o.handle_org_id=9) t) order_affirm_deal_num, (select nvl(sum(RS_CHECK_NUM), 0) from (select nvl(u.org_province_id, o.accept_org_id) ORG_PROVINCE_ID, decode(u.org_province_id, null, o.accept_city_org_id, u.org_city_id) ORG_CITY_ID, to_char(o.rs_check_time, 'YYYY-MM-DD') as OPERATE_DATE, o.rs_check_operator_id as OPERATOR_ID, o.rs_check_operator as OPERATOR_NAME, 0 as CREATE_ORDER_NUM, 0 as CREATE_DEAL_NUM, 0 as CANCEL_ORDER_NUM, 0 as RS_AFFIRM_NUM, 0 as RS_AFFIRM_TIMELY_NUM, 0 as CUST_AFFIRM_NUM, 0 as AFFIRM_NUM, 0 as AFFIRM_DEAL_NUM, 1 as RS_CHECK_NUM, 0 as CUST_CHECK_NUM, 1 as CHECK_NUM, decode(order_status, 3, decode(rs_check_flag, 1, 1, 0), 0) as CHECK_DEAL_NUM from REPORT_SEAT_VOLUME o left join sys_service_center_user u on o.cust_affirm_operator_id=u.sys_user_id where 1=1 and o.rs_check_time>=to_date('2013-03-11 00:00:00', 'yyyy-MM-dd hh24:mi:ss') and u.user_group='1' and ((1=0) or (nvl(u.org_province_id, o.accept_org_id)=9)) and o.handle_org_id=9) t) order_rs_check_num, (select nvl(sum(CUST_CHECK_NUM), 0) from (select nvl(u.org_province_id, o.accept_org_id) ORG_PROVINCE_ID, decode(u.org_province_id, null, o.accept_city_org_id, u.org_city_id) ORG_CITY_ID, to_char(o.cust_check_time, 'YYYY-MM-DD') as OPERATE_DATE, o.cust_check_operator_id as OPERATOR_ID, o.cust_check_operator as OPERATOR_NAME, 0 as CREATE_ORDER_NUM, 0 as CREATE_DEAL_NUM, 0 as CANCEL_ORDER_NUM, 0 as RS_AFFIRM_NUM, 0 as RS_AFFIRM_TIMELY_NUM, 0 as CUST_AFFIRM_NUM, 0 as AFFIRM_NUM, 0 as AFFIRM_DEAL_NUM, 0 as RS_CHECK_NUM, 1 as CUST_CHECK_NUM, case when cust_check_operator_id=rs_check_operator_id and cust_check_operator=rs_check_operator and to_char(o.cust_check_time, 'YYYY-MM-DD')=to_char(o.rs_check_time, 'YYYY-MM-DD') then 0 else 1 end as CHECK_NUM, case when cust_check_operator_id=rs_check_operator_id and cust_check_operator=rs_check_operator and to_char(o.cust_check_time, 'YYYY-MM-DD')=to_char(o.rs_check_time, 'YYYY-MM-DD') then 0 else decode(order_status, 3, decode(rs_check_flag, 1, 1, 0), 0) end as CHECK_DEAL_NUM from REPORT_SEAT_VOLUME o left join sys_service_center_user u on o.cust_affirm_operator_id=u.sys_user_id where 1=1 and o.cust_check_time>=to_date('2013-03-11 00:00:00', 'yyyy-MM-dd hh24:mi:ss') and u.user_group='1' and ((1=0) or (nvl(u.org_province_id, o.accept_org_id)=9)) and o.handle_org_id=9) t) order_cust_check_num, (select nvl(sum(CHECK_N UM), 0) from (select nvl(u.org_province_id, o.accept_org_id) ORG_PROVINCE_ID, decode(u.org_province_id, null, o.accept_city_org_id, u.org_city_id) ORG_CITY_ID, to_char(o.rs_check_time, 'YYYY-MM-DD') as OPERATE_DATE, o.rs_check_operator_id as OPERATOR_ID, o.rs_check_operator as OPERATOR_NAME, 0 as CREATE_ORDER_NUM, 0 as CREATE_DEAL_NUM, 0 as CANCEL_ORDER_NUM, 0 as RS_AFFIRM_NUM, 0 as RS_AFFIRM_TIMELY_NUM, 0 as CUST_AFFIRM_NUM, 0 as AFFIRM_NUM, 0 as AFFIRM_DEAL_NUM, 1 as RS_CHECK_NUM, 0 as CUST_CHECK_NUM, 1 as CHECK_NUM, decode(order_status, 3, decode(rs_check_flag, 1, 1, 0), 0) as CHECK_DEAL_NUM from REPORT_SEAT_VOLUME o left join sys_service_center_user u on o.cust_affirm_operator_id=u.sys_user_id where 1=1 and o.rs_check_time>=to_date('2013-03-11 00:00:00', 'yyyy-MM-dd hh24:mi:ss') and u.user_group='1' and ((1=0) or (nvl(u.org_province_id, o.accept_org_id)=9)) and o.handle_org_id=9 union all select nvl(u.org_province_id, o.accept_org_id) ORG_PROVINCE_ID, decode(u.org_province_id, null, o.accept_city_org_id, u.org_city_id) ORG_CITY_ID, to_char(o.cust_check_time, 'YYYY-MM-DD') as OPERATE_DATE, o.cust_check_operator_id as OPERATOR_ID, o.cust_check_operator as OPERATOR_NAME, 0 as CREATE_ORDER_NUM, 0 as CREATE_DEAL_NUM, 0 as CANCEL_ORDER_NUM, 0 as RS_AFFIRM_NUM, 0 as RS_AFFIRM_TIMELY_NUM, 0 as CUST_AFFIRM_NUM, 0 as AFFIRM_NUM, 0 as AFFIRM_DEAL_NUM, 0 as RS_CHECK_NUM, 1 as CUST_CHECK_NUM, case when cust_check_operator_id=rs_check_operator_id and cust_check_operator=rs_check_op erator and to_char(o.cust_check_time, 'YYYY-MM-DD')=to_char(o.rs_check_time, 'YYYY-MM-DD') then 0 else 1 end as CHECK_NUM, case when cust_check_operator_id=rs_check_operator_id and cust_check_operator=rs_check_operator and to_char(o.cust_check_time, 'YYYY-MM-DD')=to_char(o.rs_check_time, 'YYYY-MM-DD') then 0 else decode(order_status, 3, decode(rs_check_flag, 1, 1, 0), 0) end as CHECK_DEAL_NUM from REPORT_SEAT_VOLUME o left join sys_service_center_user u on o.cust_affirm_operator_id=u.sys_user_id where 1=1 and o.cust_check_time>=to_date('2013-03-11 00:00:00', 'yyyy-MM-dd hh24:mi:ss') and u.user_group='1' and ((1=0) or (nvl(u.org_province_id, o.accept_org_id)=9)) and o.handle_org_id=9) t) order_check_num, (select nvl(sum(CHECK_DEAL_NUM), 0) from (select nvl(u.org_province_id, o.accept_org_id) ORG_PROVINCE_ID, decode(u.org_province_id, null, o.accept_city_org_id, u.org_city_id) ORG_CITY_ID, to_char(o.rs_check_time, 'YYYY-MM-DD') as OPERATE_DATE, o.rs_check_operator_id as OPERATOR_ID, o.rs_check_operator as OPERATOR_NAME, 0 as CREATE_ORDER_NUM, 0 as CREATE_DEAL_NUM, 0 as CANCEL_ORDER_NUM, 0 as RS_AFFIRM_NUM, 0 as RS_AFFIRM_TIMELY_NUM, 0 as CUST_AFFIRM_NUM, 0 as AFFIRM_NUM, 0 as AFFIRM_DEAL_NUM, 1 as RS_CHECK_NUM, 0 as CUST_CHECK_NUM, 1 as CHECK_NUM, decode(order_status, 3, decode(rs_check_flag, 1, 1, 0), 0) as CHECK_DEAL_NUM from REPORT_SEAT_VOLUME o left join sys_service_center_user u on o.cust_affirm_operator_id=u.sys_user_id where 1=1 and o.rs_check_time>=to_date('2013 -03-11 00:00:00', 'yyyy-MM-dd hh24:mi:ss') and u.user_group='1' and ((1=0) or (nvl(u.org_province_id, o.accept_org_id)=9)) and o.handle_org_id=9 union all select nvl(u.org_province_id, o.accept_org_id) ORG_PROVINCE_ID, decode(u.org_province_id, null, o.accept_city_org_id, u.org_city_id) ORG_CITY_ID, to_char(o.cust_check_time, 'YYYY-MM-DD') as OPERATE_DATE, o.cust_check_operator_id as OPERATOR_ID, o.cust_check_operator as OPERATOR_NAME, 0 as CREATE_ORDER_NUM, 0 as CREATE_DEAL_NUM, 0 as CANCEL_ORDER_NUM, 0 as RS_AFFIRM_NUM, 0 as RS_AFFIRM_TIMELY_NUM, 0 as CUST_AFFIRM_NUM, 0 as AFFIRM_NUM, 0 as AFFIRM_DEAL_NUM, 0 as RS_CHECK_NUM, 1 as CUST_CHECK_NUM, case when cust_check_operator_id=rs_check_operator_id and cust_check_operator=rs_check_operator and to_char(o.cust_check_time, 'YYYY-MM-DD')=to_char(o.rs_check_time, 'YYYY-MM-DD') then 0 else 1 end as CHECK_NUM, case when cust_check_operator_id=rs_check_operator_id and cust_check_operator=rs_check_operator and to_char(o.cust_check_time, 'YYYY-MM-DD')=to_char(o.rs_check_time, 'YYYY-MM-DD') then 0 else decode(order_status, 3, decode(rs_check_flag, 1, 1, 0), 0) end as CHECK_DEAL_NUM from REPORT_SEAT_VOLUME o left join sys_service_center_user u on o.cust_affirm_operator_id=u.sys_user_id where 1=1 and o.cust_check_time>=to_date('2013-03-11 00:00:00', 'yyyy-MM-dd hh24:mi:ss') and u.user_group='1' and ((1=0) or (nvl(u.org_province_id, o.accept_org_id)=9)) and o.handle_org_id=9) t) order_check_deal_num from dual) tbl
d084nnf7u2vt8select SEQ_INTERFACE_LOG.Nextval from dual
d5311xq5wwwjhSELECT COUNT(1) FROM TEMP_REST TR WHERE (((INSTR(TR.T_NAME, :B3 ) > 0 OR INSTR(:B3 , TR.T_NAME) > 0) AND (INSTR(TR.T_ADDRESS, :B2 ) > 0 OR INSTR(:B2 , TR.T_ADDRESS) > 0)) OR ((INSTR(TR.T_NAME, :B3 ) > 0 OR INSTR(:B3 , TR.T_NAME) > 0) AND (INSTR(TR.T_TEL, :B1 ) > 0 OR INSTR(:B1 , TR.T_TEL) > 0)) OR ((INSTR(TR.T_ADDRESS, :B2 ) > 0 OR INSTR(:B2 , TR.T_ADDRESS) > 0) AND (INSTR(TR.T_TEL, :B1 ) > 0 OR INSTR(:B1 , TR.T_TEL) > 0)))
d92h3rjp0y217begin prvt_hdm.auto_execute( :db_id, :inst_id, :end_snap ); end;
dujc578p6dnyz select restaurant0_.RESTAURANT_ID as RESTAURANT1_10_0_, restaurant0_.ORG_PROVINCE_ID as ORG2_10_0_, restaurant0_.ORG_CITY_ID as ORG3_10_0_, restaurant0_.NAME as NAME10_0_, restaurant0_.ENG_NAME as ENG5_10_0_, restaurant0_.NAME_FIRST_PY as NAME6_10_0_, restaurant0_.ALIAS_NAME as ALIAS7_10_0_, restaurant0_.REGISTER_NAME as REGISTER8_10_0_, restaurant0_.BOOK_TEL as BOOK9_10_0_, restaurant0_.PROVINCE_ID as PROVINCE10_10_0_, restaurant0_.CITY_ID as CITY11_10_0_, restaurant0_.DISTRICT_ID as DISTRICT12_10_0_, restaurant0_.ZIP as ZIP10_0_, restaurant0_.ADDRESS as ADDRESS10_0_, restaurant0_.ADDRESS_FIRST_PY as ADDRESS15_10_0_, restaurant0_.CROSS_ROAD as CROSS16_10_0_, restaurant0_.BUSINESS_AREA_ID as BUSINESS17_10_0_, restaurant0_.LANDMARK as LANDMARK10_0_, restaurant0_.TRAFFIC_ROUTE as TRAFFIC19_10_0_, restaurant0_.GPS_X as GPS20_10_0_, restaurant0_.GPS_Y as GPS21_10_0_, restaurant0_.FAX as FAX10_0_, restaurant0_.WEBSITE as WEBSITE10_0_, restaurant0_.EMAIL as EMAIL10_0_, restaurant0_.INTRODUCE as INTRODUCE10_0_, restaurant0_.BUSINESS_TIME as BUSINESS26_10_0_, restaurant0_.SIGN_STATUS as SIGN27_10_0_, restaurant0_.BUSINESS_STATUS as BUSINESS28_10_0_, restaurant0_.CONTRACT_ID as CONTRACT29_10_0_, restaurant0_.LOW_AVG_COST as LOW30_10_0_, restaurant0_.HIGH_AVG_COST as HIGH31_10_0_, restaurant0_.SUIT_TYPE as SUIT32_10_0_, restaurant0_.FLAVOUR as FLAVOUR10_0_, restaurant0_.CUISINE_FIRST_ID as CUISINE34_10_0_, restaurant0_.CUISINE_SECOND_ID as CUISINE35_10 _0_, restaurant0_.MINOR_CUISINE as MINOR36_10_0_, restaurant0_.SPECIALTY as SPECIALTY10_0_, restaurant0_.IS_RESERVE_ROOM as IS38_10_0_, restaurant0_.RESERVE_ROOM_NUM as RESERVE39_10_0_, restaurant0_.RESERVE_ROOM_DESC as RESERVE40_10_0_, restaurant0_.MIN_CHARGE_DESC as MIN41_10_0_, restaurant0_.IS_SERVICE_CHARGE as IS42_10_0_, restaurant0_.SERVICE_CHARGE_DESC as SERVICE43_10_0_, restaurant0_.IS_SUPPORT_CARD as IS44_10_0_, restaurant0_.CARD_DESC as CARD45_10_0_, restaurant0_.TOTAL_SEAT_NUM as TOTAL46_10_0_, restaurant0_.TOTAL_DESK_NUM as TOTAL47_10_0_, restaurant0_.HALL_SEAT_NUM as HALL48_10_0_, restaurant0_.HALL_DESK_NUM as HALL49_10_0_, restaurant0_.BUSINESS_ACREAGE as BUSINESS50_10_0_, restaurant0_.IS_PARKING as IS51_10_0_, restaurant0_.PARKING_DESC as PARKING52_10_0_, restaurant0_.TAKEOUT_SERVICE as TAKEOUT53_10_0_, restaurant0_.FACILITY as FACILITY10_0_, restaurant0_.SERVICE as SERVICE10_0_, restaurant0_.ENVIRONMENT as ENVIRON56_10_0_, restaurant0_.RECOMMEND_VALUE as RECOMMEND57_10_0_, restaurant0_.SP_FOLLOWER as SP58_10_0_, restaurant0_.SP_FOLLOWER_TEL as SP59_10_0_, restaurant0_.REPRESENT as REPRESENT10_0_, restaurant0_.REPRESENT_TEL as REPRESENT61_10_0_, restaurant0_.FINANCE_NAME as FINANCE62_10_0_, restaurant0_.FINANCE_TEL as FINANCE63_10_0_, restaurant0_.FINANCE_FAX as FINANCE64_10_0_, restaurant0_.FINANCE_EMAIL as FINANCE65_10_0_, restaurant0_.BILL_POST_ADDRESS as BILL66_10_0_, restaurant0_.BILL_POST_ZIP as BILL67_10_0_, restaurant0_. DEPOSIT_RULE as DEPOSIT68_10_0_, restaurant0_.RETAIN_TIME as RETAIN69_10_0_, restaurant0_.ORDER_CHECKER as ORDER70_10_0_, restaurant0_.ORDER_CHECK_TEL as ORDER71_10_0_, restaurant0_.ORDER_CHECK_ATTENTION as ORDER72_10_0_, restaurant0_.CUST_CHECK_WAY as CUST73_10_0_, restaurant0_.NOTE as NOTE10_0_, restaurant0_.CREATE_OPERATOR as CREATE75_10_0_, restaurant0_.CREATE_TIME as CREATE76_10_0_, restaurant0_.OPERATOR as OPERATOR10_0_, restaurant0_.OPERATE_TIME as OPERATE78_10_0_, restaurant0_.ORG_ID as ORG79_10_0_, restaurant0_.BOOKING_STATUS as BOOKING80_10_0_, restaurant0_.CARD_CONSUME as CARD81_10_0_, restaurant0_.IS_TAKEOUT as IS82_10_0_, restaurant0_.BOOK_REQUIREMENT as BOOK83_10_0_, restaurant0_.IMAGE_ABBR_ID as IMAGE84_10_0_, restaurant0_.IMAGE_FULL_ID as IMAGE85_10_0_, restaurant0_.LOCAL_ID as LOCAL86_10_0_, restaurant0_.REALTIME_SERVICE_FLAG as REALTIME87_10_0_, restaurant0_.REALTIME_INTERFACE_ID as REALTIME88_10_0_, restaurant0_.CHECK_BILL_DATE as CHECK89_10_0_, restaurant0_.BILL_POST_WAY as BILL90_10_0_, restaurant0_.INVOICE_HEADING as INVOICE91_10_0_, restaurant0_.INVOICE_POST_ADDR as INVOICE92_10_0_, restaurant0_.INVOICE_CONSIGNEE as INVOICE93_10_0_, restaurant0_.INVOCIE_POST_CODE as INVOCIE94_10_0_, restaurant0_.PASSWORD as PASSWORD10_0_, restaurant0_.CREATE_OPERATOR_ID as CREATE96_10_0_, restaurant0_.OPERATOR_ID as OPERATOR97_10_0_, restaurant0_.SOURCE as SOURCE10_0_, restaurant0_.CHECK_ORDER_MODE as CHECK99_10_0_, restaurant0_.KEY_WORD as KEY100_10_0_, restaurant0_.PUBLISH_STATUS as PUBLISH101_10_0_, restaurant0_.DISCOUNT as DISCOUNT10_0_, restaurant0_.VIP_DISCOUNT as VIP103_10_0_, restaurant0_.DISCOUNT_DESC as DISCOUNT104_10_0_, restaurant0_.CUST_ID as CUST105_10_0_, restaurant0_.BILL_CONSIGNEE as BILL106_10_0_, restaurant0_.JIAMENG_APPLY_SIGN as JIAMENG107_10_0_, restaurant0_.RECOMMEND_STATUS as RECOMMEND108_10_0_, restaurant0_.HOT as HOT10_0_, restaurant0_.REDFLAG_GIS_SPACE as REDFLAG110_10_0_, restaurant0_.CHECK_SEAT_FLAG as CHECK111_10_0_, restaurant0_.KOUBEI_RS_FLAG as KOUBEI112_10_0_, restaurant0_.BOOK_SUCCESS_SMS as BOOK113_10_0_, restaurant0_.CONSUME_SUCCESS_SMS as CONSUME114_10_0_, restaurant0_.EBOOKING_FLAG as EBOOKING115_10_0_ from RESTAURANT restaurant0_ where restaurant0_.RESTAURANT_ID=:1
f0ymgsxng2v5k select x.* from (select rownum x_rownum, o.* from (select COLLECT_ORDER_ID, ORG_ID, RESTAURANT_ID, AUTO_MATCH_NUM, OPERATE_TYPE, PROVINCE_CODE, CITY_CODE, DISTRICT_CODE, NAME, BOOK_TEL, ZIP, ADDRESS, INTRODUCE, MINOR_CUISINE, GPS_X, GPS_Y, SUBJECT_WORD, FLAVOUR, CUISINE_FIRST_ID, CUISINE_SECOND_ID, CREATE_TIME, SOURCE, ORIGIN_OPERATE_TYPE, STATUS, ORIGIN_NAME, ORIGIN_BOOK_TEL, ORIGIN_ADDRESS, ORG_PROVINCE_ID, ORG_CITY_ID, PROVINCE_ID, CITY_ID, DISTRICT_ID, NAME_FIRST_PY, ADDRESS_FIRST_PY, SIGN_STATUS, BUSINESS_STATUS, BOOKING_STATUS, PUBLISH_STATUS, NOTE, CHECK_OPERATOR, CHECK_OPERATOR_ID, CHECK_TIME, EXECUTE_OPERATOR, EXECUTE_OPERATOR_ID, EXECUTE_TIME, EXECUTE_RESULT, CUST_ID, ORIGIN_ZIP, ORIGIN_MINOR_CUISINE, ORIGIN_GPS_X, ORIGIN_GPS_Y, CHECK_PROMPT, SUBSCRIPTION_ID, ORIGIN_REGISTER_NAME, REGISTER_NAME, CHANGE_INFO_LOG, DETAIL_FLAG, FAILURE_TIMES, OPERATOR_SOURCE_FLAG, DETAILS_FAILURE_CONTENT, COLLECT_FAILURE_CONTENT from RESTAURANT_COLLECT rc where rc.DETAIL_FLAG=0 and rc.failure_times <= :1 and (rc.OPERATOR_SOURCE_FLAG <> 1 or rc.OPERATOR_SOURCE_FLAG is null) and rc.COLLECT_ORDER_ID > :2 order by rc.COLLECT_ORDER_ID) o) x where x_rownum>=1 and x_rownum<=100 order by x.x_rownum
fdxbf238fy7yc select count(1) from (SELECT o.order_id, o.cust_name, o.cust_tel, o.restaurant_name, o.order_status, o.vip, o.restaurant_tel, o.book_time, o.book_require, o.assigned_confirmor , o.ORDER_SOURCE, o.BOOK_RESULT, o.DEAL_LEVEL, o.BOOK_PERSON_NUM, o.BOOK_DESK_NUM, o.RESTAURANT_ID, DECODE(o.restaurant_affirm_flag, 1, 'ÊÇ', '') ||'/'|| rs_affirm_operator rs_affirm_dis, DECODE(o.customer_affirm_flag, 1, 'ÊÇ', '') ||'/'|| cust_affirm_operator cs_affirm_dis, (select b.status_name from dic_order_status b where b.status_code=o.order_status) status_name, (select d.source_name from dic_source d where d.source_code=o.order_source) source_name, o.create_operator, o.create_time, decode(deal_level, 1, '¡Ì', '') deal_lev, case when (ol.lock_time+15/1440 < sysdate) then (select u1.full_name from sys_service_center_user u1 where u1.sys_user_id=ol.lock_operator) ||'(³¬)' else (select u1.full_name from sys_service_center_user u1 where u1.sys_user_id=ol.lock_operator) end lockoperator FROM (select a.*, b.restaurant_affirm_flag, b.rs_affirm_operator, b.rs_affirm_time, b.restaurant_affirmer, b.cust_affirm_operator, b.cust_affirm_operator_id, b.rs_affirm_operator_id, b.cust_affirm_time, b.customer_affirm_flag, b.is_deposit, b.reserve_time, b.book_result, b.order_cancel_operator, b.order_cancel_time, b.order_cancel_operator_id, b.order_cancel_reason from ( select * from order_info a where 1=1 AND book_time >= TO_DATE('2013-03-11', 'YYYY-MM-D D')) a left join (select * from order_check b where 1=1 ) b on a.order_id = b.order_id) o LEFT JOIN order_lock ol ON o.order_id = ol.Order_Id WHERE 1=1 AND ( 1=0 OR o.order_status = 1 OR o.order_status = 6 OR o.order_status = 5 ) AND ((1=0) or (o.handle_city_org_id=12)) AND (1=0 or o.order_process_flag='1' or o.order_process_flag='2')ORDER BY O.VIP DESC, o.deal_level desc, o.create_time )
fh5q7b445q8zs select contract0_.CONTRACT_ID as CONTRACT1_11_0_, contract0_.RESTAURANT_ID as RESTAURANT2_11_0_, contract0_.SP_ID as SP3_11_0_, contract0_.CONTRACT_CODE as CONTRACT4_11_0_, contract0_.EFFECT_DATE as EFFECT5_11_0_, contract0_.EXPIRE_DATE as EXPIRE6_11_0_, contract0_.CONTRACT_STATUS as CONTRACT7_11_0_, contract0_.RESTAURANT_NAME as RESTAURANT8_11_0_, contract0_.SETTLE_WAY_CODE as SETTLE9_11_0_, contract0_.COMMISSION_RATE_COMMON as COMMISSION10_11_0_, contract0_.COMMISSION_RATE_SAVE as COMMISSION11_11_0_, contract0_.COMMISSION_RATE_DISCOUNT as COMMISSION12_11_0_, contract0_.COMMISSION_RATE_OTHER as COMMISSION13_11_0_, contract0_.COMMISSION_FIX as COMMISSION14_11_0_, contract0_.COMMISSION_FORMULA as COMMISSION15_11_0_, contract0_.COMMISSION_UPPER as COMMISSION16_11_0_, contract0_.ORG_SIGNER as ORG17_11_0_, contract0_.RESTAURANT_SIGNER as RESTAURANT18_11_0_, contract0_.NOTE as NOTE11_0_, contract0_.CREATE_OPERATOR as CREATE20_11_0_, contract0_.CREATE_TIME as CREATE21_11_0_, contract0_.OPERATOR as OPERATOR11_0_, contract0_.OPERATE_TIME as OPERATE23_11_0_, contract0_.PAYMENT_CODE as PAYMENT24_11_0_, contract0_.BANK_ACCOUNT as BANK25_11_0_, contract0_.BANK_NAME as BANK26_11_0_, contract0_.ACCOUNT_NAME as ACCOUNT27_11_0_, contract0_.ACCOUNT_TEL as ACCOUNT28_11_0_, contract0_.RESTAURANT_SIGNER_TEL as RESTAURANT29_11_0_, contract0_.ORG_SIGNER_TEL as ORG30_11_0_, contract0_.ACCOUNT_TEL_OWNER as ACCOUNT31_11_0_, contract0_.CHARGE_TYPE as CHARGE32_11_0_, con tract0_.SETTLE_WAY_DESC as SETTLE33_11_0_, contract0_.IS_AUTO_CALCULATE as IS34_11_0_, contract0_.CALCULATE_TYPE as CALCULATE35_11_0_, contract0_.LEVEL_TYPE as LEVEL36_11_0_, contract0_.LEVEL_NUM as LEVEL37_11_0_, contract0_.LEVEL1 as LEVEL38_11_0_, contract0_.VALUE1 as VALUE39_11_0_, contract0_.LEVEL2 as LEVEL40_11_0_, contract0_.VALUE2 as VALUE41_11_0_, contract0_.LEVEL3 as LEVEL42_11_0_, contract0_.VALUE3 as VALUE43_11_0_, contract0_.LEVEL4 as LEVEL44_11_0_, contract0_.VALUE4 as VALUE45_11_0_, contract0_.LEVEL5 as LEVEL46_11_0_, contract0_.VALUE5 as VALUE47_11_0_, contract0_.LEVEL_CALCULATE_TYPE as LEVEL48_11_0_, contract0_.CREATE_OPERATOR_ID as CREATE49_11_0_, contract0_.OPERATOR_ID as OPERATOR50_11_0_, contract0_.BOX_LEVEL1 as BOX51_11_0_, contract0_.BOX_VALUE1 as BOX52_11_0_, contract0_.BOX_LEVEL2 as BOX53_11_0_, contract0_.BOX_VALUE2 as BOX54_11_0_, contract0_.BOX_LEVEL3 as BOX55_11_0_, contract0_.BOX_VALUE3 as BOX56_11_0_, contract0_.BOX_LEVEL4 as BOX57_11_0_, contract0_.BOX_VALUE4 as BOX58_11_0_, contract0_.BOX_LEVEL5 as BOX59_11_0_, contract0_.BOX_VALUE5 as BOX60_11_0_, contract0_.BOX_COMMISSION_FIX as BOX61_11_0_, contract0_.BOX_COMMISSION_FLAG as BOX62_11_0_, contract0_.BILL_MONTH_TYPE as BILL63_11_0_, contract0_.MONTH_BASE_FEE as MONTH64_11_0_, contract0_.MONTH_BASE_VALUE as MONTH65_11_0_, contract0_.MONTH_BASE_BOX_VALUE as MONTH66_11_0_ from CONTRACT contract0_ where contract0_.CONTRACT_ID=:1
gpp5bnnfdr9p0insert into shortmessage_log(sm_log_id, send_device, receive_device, sm_content, sm_type_code, send_time, send_way, status, order_id, service_center_id) values(seq_shortmessage_log.nextval, :1, :2, :3, :4, :5, :6, :7, :8, :9)

Back to SQL Statistics
Back to Top

Instance Activity Statistics

Back to Top

Instance Activity Stats

StatisticTotalper Secondper Trans
CPU used by this session 172,437 47.75 6.43
CPU used when call started 171,579 47.51 6.39
CR blocks created 391 0.11 0.01
Cached Commit SCN referenced 990 0.27 0.04
Commit SCN cached 1 0.00 0.00
DB time 1,650,226 456.92 61.49
DBWR checkpoint buffers written 896,211 248.15 33.39
DBWR checkpoints 21 0.01 0.00
DBWR fusion writes 3,864 1.07 0.14
DBWR object drop buffers written 0 0.00 0.00
DBWR revisited being-written buffer 0 0.00 0.00
DBWR tablespace checkpoint buffers written 0 0.00 0.00
DBWR thread checkpoint buffers written 811,166 224.60 30.22
DBWR transaction table writes 777 0.22 0.03
DBWR undo block writes 940,269 260.35 35.03
DFO trees parallelized 12 0.00 0.00
Misses for writing mapping 0 0.00 0.00
PX local messages recv'd 30 0.01 0.00
PX local messages sent 30 0.01 0.00
PX remote messages recv'd 321 0.09 0.01
PX remote messages sent 196 0.05 0.01
Parallel operations downgraded to serial 0 0.00 0.00
Parallel operations not downgraded 12 0.00 0.00
RowCR - row contention 7 0.00 0.00
RowCR attempts 9,436 2.61 0.35
RowCR hits 9,361 2.59 0.35
SMON posted for undo segment shrink 37 0.01 0.00
SQL*Net roundtrips to/from client 548,092 151.76 20.42
active txn count during cleanout 363,534 100.66 13.55
application wait time 18 0.00 0.00
background checkpoints completed 23 0.01 0.00
background checkpoints started 21 0.01 0.00
background timeouts 21,177 5.86 0.79
branch node splits 0 0.00 0.00
buffer is not pinned count 29,267,522 8,103.73 1,090.53
buffer is pinned count 233,036,136 64,524.13 8,683.07
bytes received via SQL*Net from client 118,552,172 32,825.28 4,417.33
bytes sent via SQL*Net to client 196,869,519 54,510.15 7,335.48
calls to get snapshot scn: kcmgss 459,748 127.30 17.13
calls to kcmgas 1,304,152 361.10 48.59
calls to kcmgcs 364,109 100.82 13.57
change write time 18,403 5.10 0.69
cleanout - number of ktugct calls 830,300 229.90 30.94
cleanouts and rollbacks - consistent read gets 56 0.02 0.00
cleanouts only - consistent read gets 467,690 129.50 17.43
cluster key scan block gets 5,100 1.41 0.19
cluster key scans 182 0.05 0.01
cluster wait time 5,543 1.53 0.21
commit batch performed 0 0.00 0.00
commit batch requested 0 0.00 0.00
commit batch/immediate performed 1 0.00 0.00
commit batch/immediate requested 1 0.00 0.00
commit cleanout failures: block lost 102,330 28.33 3.81
commit cleanout failures: buffer being written 0 0.00 0.00
commit cleanout failures: callback failure 3 0.00 0.00
commit cleanout failures: cannot pin 13 0.00 0.00
commit cleanouts 173,380 48.01 6.46
commit cleanouts successfully completed 71,034 19.67 2.65
commit immediate performed 1 0.00 0.00
commit immediate requested 1 0.00 0.00
commit txn count during cleanout 472,675 130.88 17.61
concurrency wait time 426 0.12 0.02
consistent changes 42,490,898 11,765.08 1,583.24
consistent gets 56,905,778 15,756.34 2,120.34
consistent gets - examination 4,811,551 1,332.24 179.28
consistent gets direct 3,971 1.10 0.15
consistent gets from cache 56,901,804 15,755.24 2,120.20
current blocks converted for CR 0 0.00 0.00
cursor authentications 3,960 1.10 0.15
data blocks consistent reads - undo records applied 1,772 0.49 0.07
db block changes 84,062,146 23,275.52 3,132.21
db block gets 45,131,894 12,496.33 1,681.64
db block gets direct 21 0.01 0.00
db block gets from cache 45,131,873 12,496.32 1,681.64
deferred (CURRENT) block cleanout applications 32,581 9.02 1.21
dirty buffers inspected 19,042 5.27 0.71
drop segment calls in space pressure 0 0.00 0.00
enqueue conversions 3,424 0.95 0.13
enqueue deadlocks 0 0.00 0.00
enqueue releases 141,388 39.15 5.27
enqueue requests 141,399 39.15 5.27
enqueue timeouts 13 0.00 0.00
enqueue waits 1,263 0.35 0.05
exchange deadlocks 6 0.00 0.00
execute count 333,570 92.36 12.43
failed probes on index block reclamation 0 0.00 0.00
free buffer inspected 1,103,859 305.64 41.13
free buffer requested 1,394,657 386.16 51.97
gc CPU used by this session 5,127 1.42 0.19
gc blocks lost 0 0.00 0.00
gc cr block build time 33 0.01 0.00
gc cr block flush time 512 0.14 0.02
gc cr block receive time 1,052 0.29 0.04
gc cr block send time 61 0.02 0.00
gc cr blocks received 24,944 6.91 0.93
gc cr blocks served 19,713 5.46 0.73
gc current block flush time 1,641 0.45 0.06
gc current block pin time 2,576,811 713.48 96.01
gc current block receive time 5,323 1.47 0.20
gc current block send time 54 0.01 0.00
gc current blocks received 131,018 36.28 4.88
gc current blocks served 17,346 4.80 0.65
gc local grants 862,043 238.69 32.12
gc remote grants 6,833 1.89 0.25
gcs messages sent 258,494 71.57 9.63
ges messages sent 15,582 4.31 0.58
global enqueue get time 835 0.23 0.03
global enqueue gets async 7,884 2.18 0.29
global enqueue gets sync 189,766 52.54 7.07
global enqueue releases 186,170 51.55 6.94
global undo segment hints helped 6 0.00 0.00
global undo segment hints were stale 3 0.00 0.00
heap block compress 371,461 102.85 13.84
hot buffers moved to head of LRU 522,447 144.66 19.47
immediate (CR) block cleanout applications 467,745 129.51 17.43
immediate (CURRENT) block cleanout applications 8,814 2.44 0.33
index crx upgrade (found) 0 0.00 0.00
index crx upgrade (positioned) 26,072 7.22 0.97
index fast full scans (full) 311 0.09 0.01
index fast full scans (rowid ranges) 0 0.00 0.00
index fetch by key 1,670,871 462.64 62.26
index scans kdiixs1 306,158 84.77 11.41
leaf node 90-10 splits 66 0.02 0.00
leaf node splits 142 0.04 0.01
lob reads 623 0.17 0.02
lob writes 124 0.03 0.00
lob writes unaligned 124 0.03 0.00
local undo segment hints helped 0 0.00 0.00
logons cumulative 683 0.19 0.03
messages received 218,588 60.52 8.14
messages sent 218,588 60.52 8.14
no buffer to keep pinned count 0 0.00 0.00
no work - consistent read gets 51,015,735 14,125.47 1,900.88
opened cursors cumulative 286,826 79.42 10.69
parse count (failures) 3 0.00 0.00
parse count (hard) 14,514 4.02 0.54
parse count (total) 287,282 79.54 10.70
parse time cpu 18,158 5.03 0.68
parse time elapsed 18,260 5.06 0.68
physical read IO requests 9,128 2.53 0.34
physical read bytes 75,767,808 20,978.94 2,823.15
physical read total IO requests 31,348 8.68 1.17
physical read total bytes 10,334,158,336 2,861,370.03 385,056.95
physical read total multi block requests 9,709 2.69 0.36
physical reads 9,249 2.56 0.34
physical reads cache 5,144 1.42 0.19
physical reads cache prefetch 2 0.00 0.00
physical reads direct 4,105 1.14 0.15
physical reads direct (lob) 3,967 1.10 0.15
physical reads direct temporary tablespace 0 0.00 0.00
physical reads prefetch warmup 0 0.00 0.00
physical write IO requests 119,952 33.21 4.47
physical write bytes 7,819,960,320 2,165,227.14 291,376.42
physical write total IO requests 254,835 70.56 9.50
physical write total bytes 48,754,989,568 13,499,509.24 1,816,640.20
physical write total multi block requests 209,896 58.12 7.82
physical writes 954,585 264.31 35.57
physical writes direct 95 0.03 0.00
physical writes direct (lob) 12 0.00 0.00
physical writes direct temporary tablespace 0 0.00 0.00
physical writes from cache 954,490 264.28 35.56
physical writes non checkpoint 947,423 262.33 35.30
pinned buffers inspected 458 0.13 0.02
prefetch clients - default 0 0.00 0.00
prefetch warmup blocks aged out before use 0 0.00 0.00
prefetch warmup blocks flushed out before use 0 0.00 0.00
prefetched blocks aged out before use 13 0.00 0.00
process last non-idle time 3,615 1.00 0.13
queries parallelized 12 0.00 0.00
recovery blocks read 0 0.00 0.00
recursive aborts on index block reclamation 0 0.00 0.00
recursive calls 239,672 66.36 8.93
recursive cpu usage 96,073 26.60 3.58
redo blocks written 20,041,019 5,549.05 746.74
redo buffer allocation retries 71 0.02 0.00
redo entries 41,123,083 11,386.35 1,532.27
redo log space requests 99 0.03 0.00
redo log space wait time 1,652 0.46 0.06
redo ordering marks 859,474 237.98 32.02
redo size 9,906,238,780 2,742,885.66 369,112.41
redo subscn max counts 3,566 0.99 0.13
redo synch time 24,643 6.82 0.92
redo synch writes 20,116 5.57 0.75
redo wastage 9,541,104 2,641.79 355.51
redo write time 31,320 8.67 1.17
redo writer latching time 2 0.00 0.00
redo writes 30,021 8.31 1.12
rollback changes - undo records applied 4 0.00 0.00
rollbacks only - consistent read gets 151 0.04 0.01
rows fetched via callback 1,179,629 326.62 43.95
session connect time 0 0.00 0.00
session cursor cache hits 225,152 62.34 8.39
session logical reads 102,038,176 28,252.81 3,802.00
session pga memory 1,977,768 547.61 73.69
session pga memory max 2,082,777,192 576,689.08 77,605.53
session uga memory 51,527,821,344 14,267,263.85 1,919,957.57
session uga memory max 1,780,378,072 492,959.40 66,337.96
shared hash latch upgrades - no wait 131,735 36.48 4.91
shared hash latch upgrades - wait 0 0.00 0.00
sorts (disk) 0 0.00 0.00
sorts (memory) 48,489 13.43 1.81
sorts (rows) 197,054,161 54,561.28 7,342.36
space was found by tune down 0 0.00 0.00
sql area evicted 21,055 5.83 0.78
sql area purged 3 0.00 0.00
steps of tune down ret. in space pressure 0 0.00 0.00
summed dirty queue length 26,092 7.22 0.97
switch current to new buffer 372,409 103.11 13.88
table fetch by rowid 109,500,850 30,319.11 4,080.07
table fetch continued row 1,466,267 405.99 54.63
table scan blocks gotten 22,790,173 6,310.25 849.18
table scan rows gotten 1,901,131,360 526,394.13 70,837.30
table scans (direct read) 0 0.00 0.00
table scans (long tables) 4 0.00 0.00
table scans (rowid ranges) 0 0.00 0.00
table scans (short tables) 31,187 8.64 1.16
total number of times SMON posted 49 0.01 0.00
transaction lock background gets 0 0.00 0.00
transaction lock foreground requests 0 0.00 0.00
transaction lock foreground wait time 0 0.00 0.00
transaction rollbacks 1 0.00 0.00
transaction tables consistent read rollbacks 0 0.00 0.00
transaction tables consistent reads - undo records applied 0 0.00 0.00
tune down retentions in space pressure 0 0.00 0.00
undo change vector size 6,878,153,008 1,904,455.13 256,284.11
user I/O wait time 3,444 0.95 0.13
user calls 823,189 227.93 30.67
user commits 23,165 6.41 0.86
user rollbacks 3,673 1.02 0.14
workarea executions - onepass 0 0.00 0.00
workarea executions - optimal 44,357 12.28 1.65
write clones created in background 0 0.00 0.00
write clones created in foreground 6 0.00 0.00

Back to Instance Activity Statistics
Back to Top

Instance Activity Stats - Absolute Values

StatisticBegin ValueEnd Value
session cursor cache count 35,234,036 35,239,858
opened cursors current 1,096 904
logons current 417 365

Back to Instance Activity Statistics
Back to Top

Instance Activity Stats - Thread Activity

StatisticTotalper Hour
log switches (derived) 21 20.93

Back to Instance Activity Statistics
Back to Top

IO Stats

Back to Top

Tablespace IO Stats

TablespaceReadsAv Reads/sAv Rd(ms)Av Blks/RdWritesAv Writes/sBuffer WaitsAv Buf Wt(ms)
UNDOTBS1 3 0 3.33 1.00 107,456 30 2,041 0.02
TBS_DINGCAN 3,334 1 6.73 1.00 8,840 2 2 5.00
TS_ZCX 5,175 1 4.13 1.02 3,087 1 32 88.75
SYSAUX 492 0 7.03 1.00 369 0 0 0.00
TS_ZCX_TEST 89 0 6.29 1.00 225 0 0 0.00
SYSTEM 95 0 7.05 1.00 102 0 0 0.00
TS_DINGCAN_TEST 51 0 4.31 1.00 16 0 0 0.00
UNDOTBS2 2 0 10.00 1.00 2 0 0 0.00
USERS 2 0 10.00 1.00 2 0 0 0.00

Back to IO Stats
Back to Top

File IO Stats

TablespaceFilenameReadsAv Reads/sAv Rd(ms)Av Blks/RdWritesAv Writes/sBuffer WaitsAv Buf Wt(ms)
SYSAUX /ocfs_data1/zcx/zcx/sysaux01.dbf 401 0 7.53 1.00 336 0 0 0.00
SYSAUX /ocfs_data1/zcx/zcx/sysaux02.dbf 91 0 4.84 1.00 33 0 0 0.00
SYSTEM /ocfs_data1/zcx/zcx/system01.dbf 94 0 7.13 1.00 101 0 0 0.00
SYSTEM /ocfs_data1/zcx/zcx/system02.dbf 1 0 0.00 1.00 1 0 0 0.00
TBS_DINGCAN /ocfs_data2/zcx/zcx/tbs_dingcan01.dbf 215 0 5.91 1.00 721 0 0 0.00
TBS_DINGCAN /ocfs_data2/zcx/zcx/tbs_dingcan02.dbf 137 0 6.57 1.00 570 0 1 10.00
TBS_DINGCAN /ocfs_data2/zcx/zcx/tbs_dingcan03.dbf 141 0 6.74 1.00 429 0 0 0.00
TBS_DINGCAN /ocfs_data2/zcx/zcx/tbs_dingcan04.dbf 148 0 6.49 1.00 419 0 0 0.00
TBS_DINGCAN /ocfs_data2/zcx/zcx/tbs_dingcan05.dbf 158 0 6.96 1.00 453 0 0 0.00
TBS_DINGCAN /ocfs_data2/zcx/zcx/tbs_dingcan06.dbf 128 0 5.78 1.00 371 0 0 0.00
TBS_DINGCAN /ocfs_data2/zcx/zcx/tbs_dingcan07.dbf 116 0 7.93 1.00 214 0 0 0.00
TBS_DINGCAN /ocfs_data2/zcx/zcx/tbs_dingcan08.dbf 105 0 6.57 1.00 254 0 0 0.00
TBS_DINGCAN /ocfs_data2/zcx/zcx/tbs_dingcan09.dbf 350 0 7.37 1.00 1,119 0 0 0.00
TBS_DINGCAN /ocfs_data2/zcx/zcx/tbs_dingcan10.dbf 296 0 7.36 1.00 1,076 0 1 0.00
TBS_DINGCAN /ocfs_data2/zcx/zcx/tbs_dingcan11.dbf 242 0 6.90 1.00 644 0 0 0.00
TBS_DINGCAN /ocfs_data2/zcx/zcx/tbs_dingcan12.dbf 387 0 7.47 1.00 604 0 0 0.00
TBS_DINGCAN /ocfs_data2/zcx/zcx/tbs_dingcan13.dbf 357 0 6.78 1.00 632 0 0 0.00
TBS_DINGCAN /ocfs_data2/zcx/zcx/tbs_dingcan14.dbf 211 0 6.07 1.00 536 0 0 0.00
TBS_DINGCAN /ocfs_data2/zcx/zcx/tbs_dingcan15.dbf 204 0 4.71 1.00 455 0 0 0.00
TBS_DINGCAN /ocfs_data2/zcx/zcx/tbs_dingcan16.dbf 139 0 6.62 1.00 343 0 0 0.00
TS_DINGCAN_TEST /ocfs_data2/zcx/zcx/ts_dingcan_test01.dbf 3 0 10.00 1.00 1 0 0 0.00
TS_DINGCAN_TEST /ocfs_data2/zcx/zcx/ts_dingcan_test02.dbf 3 0 0.00 1.00 1 0 0 0.00
TS_DINGCAN_TEST /ocfs_data2/zcx/zcx/ts_dingcan_test03.dbf 3 0 3.33 1.00 1 0 0 0.00
TS_DINGCAN_TEST /ocfs_data2/zcx/zcx/ts_dingcan_test04.dbf 3 0 6.67 1.00 1 0 0 0.00
TS_DINGCAN_TEST /ocfs_data2/zcx/zcx/ts_dingcan_test05.dbf 3 0 3.33 1.00 1 0 0 0.00
TS_DINGCAN_TEST /ocfs_data2/zcx/zcx/ts_dingcan_test06.dbf 3 0 3.33 1.00 1 0 0 0.00
TS_DINGCAN_TEST /ocfs_data2/zcx/zcx/ts_dingcan_test07.dbf 3 0 6.67 1.00 1 0 0 0.00
TS_DINGCAN_TEST /ocfs_data2/zcx/zcx/ts_dingcan_test08.dbf 3 0 0.00 1.00 1 0 0 0.00
TS_DINGCAN_TEST /ocfs_data2/zcx/zcx/ts_dingcan_test09.dbf 6 0 5.00 1.00 1 0 0 0.00
TS_DINGCAN_TEST /ocfs_data2/zcx/zcx/ts_dingcan_test10.dbf 3 0 3.33 1.00 1 0 0 0.00
TS_DINGCAN_TEST /ocfs_data2/zcx/zcx/ts_dingcan_test11.dbf 3 0 6.67 1.00 1 0 0 0.00
TS_DINGCAN_TEST /ocfs_data2/zcx/zcx/ts_dingcan_test12.dbf 3 0 3.33 1.00 1 0 0 0.00
TS_DINGCAN_TEST /ocfs_data2/zcx/zcx/ts_dingcan_test13.dbf 3 0 3.33 1.00 1 0 0 0.00
TS_DINGCAN_TEST /ocfs_data2/zcx/zcx/ts_dingcan_test14.dbf 3 0 3.33 1.00 1 0 0 0.00
TS_DINGCAN_TEST /ocfs_data2/zcx/zcx/ts_dingcan_test15.dbf 3 0 10.00 1.00 1 0 0 0.00
TS_DINGCAN_TEST /ocfs_data2/zcx/zcx/ts_dingcan_test16.dbf 3 0 0.00 1.00 1 0 0 0.00
TS_ZCX /ocfs_data1/zcx/zcx/ts_zcx01.dbf 275 0 3.93 1.07 389 0 0 0.00
TS_ZCX /ocfs_data1/zcx/zcx/ts_zcx02.dbf 251 0 4.26 1.04 142 0 0 0.00
TS_ZCX /ocfs_data1/zcx/zcx/ts_zcx03.dbf 814 0 4.31 1.00 28 0 0 0.00
TS_ZCX /ocfs_data1/zcx/zcx/ts_zcx04.dbf 237 0 5.91 1.04 97 0 0 0.00
TS_ZCX /ocfs_data1/zcx/zcx/ts_zcx05.dbf 327 0 4.89 1.01 145 0 0 0.00
TS_ZCX /ocfs_data1/zcx/zcx/ts_zcx06.dbf 371 0 4.31 1.02 124 0 0 0.00
TS_ZCX /ocfs_data1/zcx/zcx/ts_zcx07.dbf 167 0 6.47 1.14 50 0 0 0.00
TS_ZCX /ocfs_data1/zcx/zcx/ts_zcx08.dbf 143 0 2.24 1.00 58 0 0 0.00
TS_ZCX /ocfs_data1/zcx/zcx/ts_zcx09.dbf 65 0 5.85 1.22 48 0 0 0.00
TS_ZCX /ocfs_data1/zcx/zcx/ts_zcx10.dbf 214 0 3.32 1.05 98 0 11 215.45
TS_ZCX /ocfs_data1/zcx/zcx/ts_zcx11.dbf 776 0 3.14 1.00 963 0 0 0.00
TS_ZCX /ocfs_data1/zcx/zcx/ts_zcx12.dbf 570 0 4.23 1.01 175 0 20 23.50
TS_ZCX /ocfs_data1/zcx/zcx/ts_zcx13.dbf 173 0 5.09 1.02 78 0 0 0.00
TS_ZCX /ocfs_data1/zcx/zcx/ts_zcx14.dbf 443 0 3.32 1.01 532 0 0 0.00
TS_ZCX /ocfs_data1/zcx/zcx/ts_zcx15.dbf 210 0 4.05 1.04 87 0 0 0.00
TS_ZCX /ocfs_data1/zcx/zcx/ts_zcx16.dbf 139 0 4.03 1.00 73 0 1 0.00
TS_ZCX_TEST /ocfs_data2/zcx/zcx/ts_zcx_test01.dbf 2 0 5.00 1.00 1 0 0 0.00
TS_ZCX_TEST /ocfs_data2/zcx/zcx/ts_zcx_test02.dbf 12 0 5.83 1.00 48 0 0 0.00
TS_ZCX_TEST /ocfs_data2/zcx/zcx/ts_zcx_test03.dbf 14 0 8.57 1.00 40 0 0 0.00
TS_ZCX_TEST /ocfs_data2/zcx/zcx/ts_zcx_test04.dbf 3 0 3.33 1.00 1 0 0 0.00
TS_ZCX_TEST /ocfs_data2/zcx/zcx/ts_zcx_test05.dbf 2 0 10.00 1.00 2 0 0 0.00
TS_ZCX_TEST /ocfs_data2/zcx/zcx/ts_zcx_test06.dbf 4 0 0.00 1.00 1 0 0 0.00
TS_ZCX_TEST /ocfs_data2/zcx/zcx/ts_zcx_test07.dbf 2 0 10.00 1.00 1 0 0 0.00
TS_ZCX_TEST /ocfs_data2/zcx/zcx/ts_zcx_test08.dbf 27 0 6.67 1.00 113 0 0 0.00
TS_ZCX_TEST /ocfs_data2/zcx/zcx/ts_zcx_test09.dbf 3 0 3.33 1.00 1 0 0 0.00
TS_ZCX_TEST /ocfs_data2/zcx/zcx/ts_zcx_test10.dbf 2 0 10.00 1.00 1 0 0 0.00
TS_ZCX_TEST /ocfs_data2/zcx/zcx/ts_zcx_test11.dbf 4 0 5.00 1.00 6 0 0 0.00
TS_ZCX_TEST /ocfs_data2/zcx/zcx/ts_zcx_test12.dbf 2 0 10.00 1.00 1 0 0 0.00
TS_ZCX_TEST /ocfs_data2/zcx/zcx/ts_zcx_test13.dbf 5 0 4.00 1.00 6 0 0 0.00
TS_ZCX_TEST /ocfs_data2/zcx/zcx/ts_zcx_test14.dbf 2 0 5.00 1.00 1 0 0 0.00
TS_ZCX_TEST /ocfs_data2/zcx/zcx/ts_zcx_test15.dbf 3 0 10.00 1.00 1 0 0 0.00
TS_ZCX_TEST /ocfs_data2/zcx/zcx/ts_zcx_test16.dbf 2 0 0.00 1.00 1 0 0 0.00
UNDOTBS1 /ocfs_data1/zcx/zcx/undotbs01.dbf 1 0 10.00 1.00 13,135 4 2,041 0.02
UNDOTBS1 /ocfs_data1/zcx/zcx/undotbs03.dbf 2 0 0.00 1.00 94,321 26 0 0.00
UNDOTBS2 /ocfs_data1/zcx/zcx/undotbs02.dbf 1 0 10.00 1.00 1 0 0 0.00
UNDOTBS2 /ocfs_data1/zcx/zcx/undotbs04.dbf 1 0 10.00 1.00 1 0 0 0.00
USERS /ocfs_data1/zcx/zcx/users01.dbf 1 0 10.00 1.00 1 0 0 0.00
USERS /ocfs_data1/zcx/zcx/users02.dbf 1 0 10.00 1.00 1 0 0 0.00

Back to IO Stats
Back to Top

Buffer Pool Statistics

PNumber of BuffersPool Hit%Buffer GetsPhysical ReadsPhysical WritesFree Buff WaitWrit Comp WaitBuffer Busy Waits
D 470,155 100 102,082,090 5,161 954,943 0 0 2,075


Back to Top

Advisory Statistics

Back to Top

Instance Recovery Stats

Targt MTTR (s) Estd MTTR (s)Recovery Estd IOsActual Redo BlksTarget Redo BlksLog File Size Redo BlksLog Ckpt Timeout Redo BlksLog Ckpt Interval Redo Blks
B 0 118 79793 1909744 1843200 1843200 5243231  
E 0 1 1366 7444 39735 1843200 39735  

Back to Advisory Statistics
Back to Top

Buffer Pool Advisory

PSize for Est (M)Size FactorBuffers for EstimateEst Phys Read FactorEstimated Physical Reads
D 384 0.10 46,056 138.07 21,617,225,116
D 768 0.20 92,112 56.05 8,775,628,960
D 1,152 0.29 138,168 16.65 2,607,457,123
D 1,536 0.39 184,224 5.38 842,055,686
D 1,920 0.49 230,280 2.22 347,066,146
D 2,304 0.59 276,336 1.34 210,256,986
D 2,688 0.69 322,392 1.12 174,635,740
D 3,072 0.78 368,448 1.05 164,401,940
D 3,456 0.88 414,504 1.02 160,080,238
D 3,840 0.98 460,560 1.00 157,149,187
D 3,920 1.00 470,155 1.00 156,566,145
D 4,224 1.08 506,616 0.99 154,378,999
D 4,608 1.18 552,672 0.97 151,406,280
D 4,992 1.27 598,728 0.95 148,467,394
D 5,376 1.37 644,784 0.93 146,196,766
D 5,760 1.47 690,840 0.92 144,743,208
D 6,144 1.57 736,896 0.92 143,942,393
D 6,528 1.67 782,952 0.92 143,433,774
D 6,912 1.76 829,008 0.91 142,917,660
D 7,296 1.86 875,064 0.91 142,202,141
D 7,680 1.96 921,120 0.90 140,867,455

Back to Advisory Statistics
Back to Top

PGA Aggr Summary

PGA Cache Hit %W/A MB ProcessedExtra W/A MB Read/Written
100.00 14,263 0

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)
B 6,434 5,363 1,058.96 0.78 0.07 100.00 0.00 658,840
E 6,434 5,409 960.29 0.00 0.00 0.00 0.00 658,840

Back to Advisory Statistics
Back to Top

PGA Aggr Target Histogram

Low Optimal High OptimalTotal ExecsOptimal Execs1-Pass ExecsM-Pass Execs
2K 4K 32,130 32,130 0 0
64K 128K 232 232 0 0
128K 256K 892 892 0 0
256K 512K 2,138 2,138 0 0
512K 1024K 5,296 5,296 0 0
1M 2M 2,790 2,790 0 0
2M 4M 234 234 0 0
4M 8M 324 324 0 0
8M 16M 332 332 0 0

Back to Advisory Statistics
Back to Top

PGA Memory Advisory

PGA Target Est (MB)Size FactrW/A MB ProcessedEstd Extra W/A MB Read/ Written to Disk Estd PGA Cache Hit %Estd PGA Overalloc Count
804 0.13 40,490,391.59 492,666.96 99.00 708
1,609 0.25 40,490,391.59 39,497.73 100.00 0
3,217 0.50 40,490,391.59 28,164.07 100.00 0
4,826 0.75 40,490,391.59 28,164.07 100.00 0
6,434 1.00 40,490,391.59 28,164.07 100.00 0
7,721 1.20 40,490,391.59 9,200.55 100.00 0
9,008 1.40 40,490,391.59 9,200.55 100.00 0
10,294 1.60 40,490,391.59 9,200.55 100.00 0
11,581 1.80 40,490,391.59 9,200.55 100.00 0
12,868 2.00 40,490,391.59 9,200.55 100.00 0
19,302 3.00 40,490,391.59 9,200.55 100.00 0
25,736 4.00 40,490,391.59 9,200.55 100.00 0
38,604 6.00 40,490,391.59 9,200.55 100.00 0
51,472 8.00 40,490,391.59 9,200.55 100.00 0

Back to Advisory Statistics
Back to Top

Shared Pool Advisory

Shared Pool Size(M)SP Size FactrEst LC Size (M)Est LC Mem ObjEst LC Time Saved (s)Est LC Time Saved FactrEst LC Load Time (s)Est LC Load Time FactrEst LC Mem Obj Hits
1,776 0.29 713 68,727 9,246,300 0.76 3,539,926 5.81 1,002,221,543
2,400 0.39 1,326 89,255 10,261,261 0.84 2,524,965 4.14 1,006,042,229
3,024 0.49 1,947 112,125 11,084,695 0.91 1,701,531 2.79 1,007,159,658
3,648 0.59 2,566 135,416 11,527,420 0.95 1,258,806 2.07 1,007,797,852
4,272 0.70 3,188 159,701 11,788,850 0.97 997,376 1.64 1,008,278,762
4,896 0.80 3,810 185,612 11,950,067 0.98 836,159 1.37 1,008,664,901
5,520 0.90 4,432 210,503 12,092,058 0.99 694,168 1.14 1,008,991,563
6,144 1.00 5,055 235,665 12,177,001 1.00 609,225 1.00 1,009,278,616
6,768 1.10 5,678 261,435 12,241,917 1.01 544,309 0.89 1,009,537,623
7,392 1.20 6,301 286,650 12,310,899 1.01 475,327 0.78 1,009,777,028
8,016 1.30 6,923 311,579 12,341,764 1.01 444,462 0.73 1,010,004,982
8,640 1.41 7,546 337,290 12,384,170 1.02 402,056 0.66 1,010,224,299
9,264 1.51 8,169 361,738 12,416,014 1.02 370,212 0.61 1,010,437,937
9,888 1.61 8,792 386,552 12,453,184 1.02 333,042 0.55 1,010,647,909
10,512 1.71 9,415 411,684 12,491,631 1.03 294,595 0.48 1,010,856,251
11,136 1.81 10,038 436,823 12,522,371 1.03 263,855 0.43 1,011,062,733
11,760 1.91 10,661 462,012 12,549,302 1.03 236,924 0.39 1,011,267,722
12,384 2.02 11,284 486,501 12,582,736 1.03 203,490 0.33 1,011,470,361

Back to Advisory Statistics
Back to Top

SGA Target Advisory

SGA Target Size (M)SGA Size FactorEst DB Time (s)Est Physical Reads
2,560 0.25 53,025,891 19,380,434,064
5,120 0.50 6,022,337 311,159,360
7,680 0.75 4,771,904 156,566,046
10,240 1.00 4,402,937 156,566,046
12,800 1.25 4,257,641 156,566,046
15,360 1.50 4,125,113 156,566,046
17,920 1.75 4,064,792 131,077,094
20,480 2.00 4,053,345 126,286,173

Back to Advisory Statistics
Back to Top

Streams Pool Advisory

Size for Est (MB)Size FactorEst Spill CountEst Spill Time (s)Est Unspill CountEst Unspill Time (s)
16 1.00 0 0 0 0
32 2.00 0 0 0 0
48 3.00 0 0 0 0
64 4.00 0 0 0 0
80 5.00 0 0 0 0
96 6.00 0 0 0 0
112 7.00 0 0 0 0
128 8.00 0 0 0 0
144 9.00 0 0 0 0
160 10.00 0 0 0 0
176 11.00 0 0 0 0
192 12.00 0 0 0 0
208 13.00 0 0 0 0
224 14.00 0 0 0 0
240 15.00 0 0 0 0
256 16.00 0 0 0 0
272 17.00 0 0 0 0
288 18.00 0 0 0 0
304 19.00 0 0 0 0
320 20.00 0 0 0 0

Back to Advisory Statistics
Back to Top

Java Pool Advisory

Java Pool Size(M)JP Size FactrEst LC Size (M)Est LC Mem ObjEst LC Time Saved (s)Est LC Time Saved FactrEst LC Load Time (s)Est LC Load Time FactrEst LC Mem Obj Hits
32 0.29 6 103 4 1.00 609,225 1.00 103
48 0.43 6 103 4 1.00 609,225 1.00 103
64 0.57 6 103 4 1.00 609,225 1.00 103
80 0.71 6 103 4 1.00 609,225 1.00 103
96 0.86 6 103 4 1.00 609,225 1.00 103
112 1.00 6 103 4 1.00 609,225 1.00 103
128 1.14 6 103 4 1.00 609,225 1.00 103
144 1.29 6 103 4 1.00 609,225 1.00 103
160 1.43 6 103 4 1.00 609,225 1.00 103
176 1.57 6 103 4 1.00 609,225 1.00 103
192 1.71 6 103 4 1.00 609,225 1.00 103
208 1.86 6 103 4 1.00 609,225 1.00 103
224 2.00 6 103 4 1.00 609,225 1.00 103
240 2.14 6 103 4 1.00 609,225 1.00 103

Back to Advisory Statistics
Back to Top

Wait Statistics

Back to Top

Buffer Wait Statistics

ClassWaitsTotal Wait Time (s)Avg Time (ms)
segment header 11 2 215
data block 23 0 21
undo header 2,041 0 0

Back to Wait Statistics
Back to Top

Enqueue Activity

Enqueue Type (Request Reason)RequestsSucc GetsFailed GetsWaitsWt Time (s)Av Wt Time(ms)
WF-AWR Flush 20 20 0 9 2 227.78
US-Undo Segment 2,579 2,579 0 683 0 0.25
CF-Controlfile Transaction 8,894 8,892 2 158 0 0.70
TM-DML 46,699 46,699 0 177 0 0.34
PS-PX Process Reservation 137 137 0 101 0 0.40
TX-Transaction (index contention) 16 16 0 11 0 2.73
TT-Tablespace 3,926 3,926 0 25 0 0.40
FB-Format Block 18 18 0 13 0 0.77
HW-Segment High Water Mark 7,802 7,802 0 13 0 0.77
TX-Transaction (allocate ITL entry) 10 10 0 10 0 1.00
JQ-Job Queue 12 12 0 4 0 2.50
WL-Being Written Redo Log 61 51 10 41 0 0.00
TA-Instance Undo 14 14 0 12 0 0.00
JS-Job Scheduler (job run lock - synchronize) 2 2 0 2 0 0.00
MW-MWIN Schedule 2 2 0 2 0 0.00
AS-Service Operations (service activation) 2 2 0 1 0 0.00
SQ-Sequence Cache 631 631 0 1 0 0.00

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
1 1,416.61 32,361 265 5 8.06666666666666666666666666666666666667/39.7 0/0 0/0/0/39/68576/0

Back to Undo Statistics
Back to Top

Undo Segment Stats

End TimeNum Undo BlocksNumber of TransactionsMax Qry Len (s)Max Tx ConcyTun Ret (mins)STO/ OOS uS/uR/uU/ eS/eR/eU
11-3ÔÂ 20:01 264 2,838 0 3 40 0/0 0/0/0/0/0/0
11-3ÔÂ 19:51 255 3,691 0 3 33 0/0 0/0/0/0/0/0
11-3ÔÂ 19:41 228 4,005 0 3 27 0/0 0/0/0/0/0/0
11-3ÔÂ 19:31 151 2,526 0 3 20 0/0 0/0/0/0/0/0
11-3ÔÂ 19:21 169,724 6,194 265 4 13 0/0 0/0/0/0/0/0
11-3ÔÂ 19:11 593,695 7,729 0 5 9 0/0 0/0/0/19/33024/0
11-3ÔÂ 19:01 652,293 5,378 19 5 8 0/0 0/0/0/20/35552/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
ASM db client latch 6,320 0.00   0 0  
AWR Alerted Metric Element list 37,978 0.00   0 0  
Consistent RBA 30,153 0.21 0.00 0 0  
FAL request queue 110 0.00   0 0  
FAL subheap alocation 110 0.00   0 0  
FIB s.o chain latch 638 0.00   0 0  
FOB s.o list latch 4,163 0.36 0.00 0 0  
JS broadcast add buf latch 827 0.00   0 0  
JS broadcast drop buf latch 827 0.00   0 0  
JS broadcast load blnc latch 720 0.00   0 0  
JS mem alloc latch 10 0.00   0 0  
JS queue access latch 8 0.00   0 0  
JS queue state obj latch 27,208 0.00   0 0  
JS slv state obj latch 2 0.00   0 0  
KCL gc element parent latch 645,995 0.00 0.00 0 1,569 0.06
KJC message pool free list 43,896 0.15 0.00 0 7,019 0.01
KJCT flow control latch 374,441 0.00 0.00 0 0  
KMG MMAN ready and startup request latch 1,203 0.00   0 0  
KSXR large replies 242 0.00   0 0  
KTF sga latch 16 0.00   0 1,100 0.00
KWQMN job cache list latch 325 0.00   0 0  
KWQP Prop Status 2 0.00   0 0  
MQL Tracking Latch 0     0 72 0.00
Memory Management Latch 0     0 1,203 0.00
OS process 1,926 0.00   0 0  
OS process allocation 2,434 0.25 0.00 0 0  
OS process: request allocation 1,223 0.33 0.00 0 0  
PL/SQL warning settings 6,492 0.00   0 0  
SGA IO buffer pool latch 7,587 0.00   0 7,590 3.03
SQL memory manager latch 1 0.00   0 1,196 0.00
SQL memory manager workarea list latch 103,954 0.00   0 0  
Shared B-Tree 131 0.00   0 0  
Undo Hint Latch 0     0 19 0.00
active checkpoint queue latch 189,091 6.28 0.00 0 0  
active service list 11,355 0.07 0.13 0 1,785 0.00
alert log latch 24 0.00   0 0  
archive control 143 0.00   0 0  
archive process latch 1,524 0.00   0 0  
begin backup scn array 14 0.00   0 0  
business card 24 0.00   0 0  
cache buffer handles 4,013 0.00   0 0  
cache buffers chains 333,441,853 0.01 0.00 0 1,826,482 0.00
cache buffers lru chain 2,747,444 0.19 0.00 0 1,908,610 0.01
cache table scan latch 0     0 2 0.00
channel handle pool latch 1,226 0.00   0 0  
channel operations parent latch 312,765 0.00 0.00 0 0  
checkpoint queue latch 5,252,896 0.00 0.00 0 889,700 0.00
client/application info 3,801 0.00   0 0  
commit callback allocation 16 0.00   0 0  
compile environment latch 682 0.00   0 0  
dml lock allocation 93,458 0.00   0 0  
dummy allocation 1,417 0.07 0.00 0 0  
enqueue hash chains 410,186 0.00 0.00 0 870 0.00
enqueues 172,953 0.01 0.00 0 0  
error message lists 48 0.00   0 0  
event group latch 585 0.00   0 0  
file cache latch 3,646 0.00   0 0  
gcs opaque info freelist 171,012 0.00 0.00 0 0  
gcs partitioned table hash 1,769,189 0.00   0 0  
gcs remastering latch 34,134 0.00   0 0  
gcs resource freelist 5,976 0.00   0 3,801 0.00
gcs resource hash 1,469,997 0.02 0.00 0 37 0.00
gcs resource scan list 74 0.00   0 0  
gcs shadows freelist 6,525 0.00   0 7,543 0.00
ges caches resource lists 84,207 0.02 0.00 0 48,671 0.01
ges deadlock list 952 0.00   0 3 0.00
ges domain table 367,919 0.00 0.00 0 0  
ges enqueue table freelist 387,018 0.00   0 0  
ges group table 538,645 0.00 0.00 0 0  
ges process hash list 13,384 0.00   0 0  
ges process parent latch 778,613 0.00   0 0  
ges process table freelist 1,223 0.41 0.00 0 0  
ges resource hash list 552,845 0.04 0.03 0 6,872 0.01
ges resource scan list 334 0.00   0 0  
ges resource table freelist 8,160 0.00   0 0  
ges timeout list 1,382 0.00   0 2,311 0.00
global KZLD latch for mem in SGA 583 0.00   0 0  
hash table column usage latch 225 0.00   0 3,663,854 0.00
hash table modification latch 78 0.00   0 0  
job workq parent latch 0     0 28 0.00
job_queue_processes parameter latch 74 0.00   0 0  
kks stats 113,775 0.00 0.00 0 0  
kmcptab latch 1 0.00   0 0  
kmcpvec latch 0     0 1 0.00
kokc descriptor allocation latch 498 0.00   0 0  
ksuosstats global area 242 0.00   0 0  
ktm global data 123 0.00   0 0  
kwqbsn:qsga 130 0.00   0 0  
lgwr LWN SCN 30,293 0.11 0.00 0 0  
library cache 1,409,238 0.00 0.07 0 55,994 0.01
library cache load lock 72 0.00   0 0  
library cache lock 656,362 0.02 0.00 0 0  
library cache lock allocation 5,423 0.00   0 0  
library cache pin 365,812 0.00 0.00 0 0  
library cache pin allocation 11,458 0.00   0 0  
list of block allocation 34,614 0.00   0 0  
loader state object freelist 1,306 0.00   0 0  
logminer context allocation 1 0.00   0 0  
longop free list parent 1 0.00   0 1 0.00
message pool operations parent latch 1,100 0.00   0 0  
messages 753,056 2.69 0.00 0 0  
mostly latch-free SCN 31,499 2.68 0.00 0 0  
multiblock read objects 56,438 0.00   0 0  
name-service memory objects 24,524 0.00   0 0  
name-service namespace bucket 40,552 0.00   0 0  
name-service pending queue 10,990 0.00   0 0  
name-service request queue 49,786 0.00   0 0  
ncodef allocation latch 86 0.00   0 0  
object queue header heap 5,674 0.00   0 3,918 0.00
object queue header operation 5,614,802 0.00 0.01 0 0  
object stats modification 1 0.00   0 0  
parallel query alloc buffer 1,240 0.00   0 0  
parallel query stats 119 0.00   0 0  
parallel txn reco latch 6,300 0.00   0 0  
parameter list 6,558 0.00   0 0  
parameter table allocation management 736 2.04 0.47 0 0  
post/wait queue 33,749 0.01 0.00 0 21,528 0.00
process allocation 29,171 0.06 1.06 0 585 0.00
process group creation 1,223 0.41 0.00 0 0  
process queue 315 0.00   0 0  
process queue reference 6,045 0.00   0 577 0.00
qmn task queue latch 920 11.74 0.44 0 0  
query server freelists 238 0.00   0 0  
queued dump request 18,041 0.00   0 0  
redo allocation 160,035 0.46 0.00 0 41,178,866 0.01
redo copy 0     0 41,180,201 0.00
redo writing 289,276 3.51 0.00 0 0  
resmgr group change latch 738 0.00   0 0  
resmgr:active threads 1,414 0.00   0 0  
resmgr:actses change group 678 0.00   0 0  
resmgr:free threads list 1,413 0.64 0.00 0 0  
resmgr:schema config 1 0.00   0 0  
row cache objects 15,557,513 0.06 0.00 0 402 0.00
rules engine aggregate statistics 3 0.00   0 0  
rules engine rule set statistics 107 0.00   0 0  
rules engine rule statistics 1 0.00   0 0  
sequence cache 44,264 0.01 0.00 0 0  
session allocation 118,512 0.04 0.16 0 0  
session idle bit 1,686,242 0.00 0.00 0 0  
session state list latch 1,376 0.00   0 0  
session switching 86 0.00   0 0  
session timer 1,785 0.00   0 0  
shared pool 1,115,352 0.01 0.22 0 0  
shared pool simulator 1,243,208 0.00 0.67 0 0  
shared server configuration 1 0.00   0 1 0.00
simulator hash latch 6,553,872 0.00 0.00 0 0  
simulator lru latch 0     0 6,465,748 0.01
slave class 2 0.00   0 0  
slave class create 8 12.50 1.00 0 0  
sort extent pool 171 0.00   0 0  
state object free list 2 0.00   0 0  
statistics aggregation 897 0.00   0 0  
threshold alerts latch 311 0.00   0 0  
transaction allocation 753 0.00   0 0  
transaction branch allocation 1,785 0.00   0 0  
undo global data 1,943,825 0.00 0.00 0 0  
user lock 2,462 1.30 0.00 0 0  

Back to Latch Statistics
Back to Top

Latch Sleep Breakdown

Latch NameGet RequestsMissesSleepsSpin GetsSleep1Sleep2Sleep3
messages 753,056 20,249 5 20,244 0 0 0
cache buffers chains 333,441,853 16,961 68 16,893 0 0 0
active checkpoint queue latch 189,091 11,884 6 11,878 0 0 0
redo writing 289,276 10,152 6 10,146 0 0 0
cache buffers lru chain 2,747,444 5,153 14 5,139 0 0 0
mostly latch-free SCN 31,499 843 1 842 0 0 0
gcs resource hash 1,469,997 230 1 229 0 0 0
ges resource hash list 552,845 211 6 205 0 0 0
object queue header operation 5,614,802 210 2 208 0 0 0
shared pool 1,115,352 136 30 107 0 0 0
qmn task queue latch 920 108 47 61 0 0 0
library cache 1,409,238 56 4 52 0 0 0
session allocation 118,512 43 7 37 0 0 0
process allocation 29,171 17 18 0 0 0 0
parameter table allocation management 736 15 7 9 0 0 0
active service list 11,355 8 1 7 0 0 0
shared pool simulator 1,243,208 6 4 2 0 0 0
slave class create 8 1 1 0 0 0 0

Back to Latch Statistics
Back to Top

Latch Miss Sources

Latch NameWhereNoWait Misses SleepsWaiter Sleeps
KCL gc element parent latch kclbla 0 1 0
active checkpoint queue latch kcbbacq: scan active checkpoints 0 6 6
active service list ksws_event: ksws event 0 5 5
cache buffers chains kcbbxsv 0 159 161
cache buffers chains kcbgcur: kslbegin 0 22 7
cache buffers chains kcbgtcr: kslbegin excl 0 19 18
cache buffers chains kcbrls: kslbegin 0 3 20
cache buffers chains kcbchg: kslbegin: bufs not pinned 0 2 0
cache buffers chains kcbgtcr: fast path 0 2 0
cache buffers chains kcbzwb 0 2 1
cache buffers chains kclwlr 0 2 1
cache buffers chains kcbgcur: buf pinned 0 1 1
cache buffers chains kcbget: pin buffer 0 1 0
cache buffers chains kcbnew: new latch again 0 1 0
cache buffers chains kclcls_3 0 1 0
cache buffers lru chain kcbbxsv: move to being written 0 10 11
cache buffers lru chain kcbzgws 0 3 0
cache buffers lru chain kcbbwlru 0 1 0
event range base latch No latch 0 47 47
gcs resource hash kjbcropen:affinity 0 1 0
ges resource hash list kjakcai: search for resp by resname 0 4 0
ges resource hash list kjlrlr: remove lock from resource queue 0 1 2
ges resource hash list kjrmas1: lookup master node 0 1 0
lgwr LWN SCN kcs023 0 1 0
library cache kgldti: 2child 0 3 0
messages ksarcv: after wait 0 3 4
messages ksaamb: after wakeup 0 1 0
messages ksarcv 0 1 1
object queue header operation kcbw_unlink_q 0 5 0
object queue header operation kcbo_switch_mq_bg 0 1 2
parameter table allocation management ksp_param_table_free 0 7 7
process allocation ksucrp 0 16 0
process allocation ksuapc 0 1 9
process allocation ksufap: active procs 0 1 9
redo writing kcrfwcr 0 6 6
session allocation ksuxds: KSUSFCLC not set 0 7 7
shared pool kghalo 0 22 10
shared pool kghupr1 0 5 11
shared pool kghalp 0 3 1
shared pool kghfrunp: clatch: wait 0 1 0
shared pool simulator kglsim_unpin_simhp 0 4 1
slave class create ksvcreate 0 1 0

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. TypeLogical Reads%Total
DINGCAN TBS_DINGCAN ORDER_INFO   TABLE 13,406,464 13.14
ZCX TS_ZCX RESTAURANT   TABLE 11,456,272 11.23
DINGCAN TBS_DINGCAN REPORT_SEAT_VOLUME   TABLE 7,301,632 7.16
ZCX TS_ZCX RESTAURANT_COLLECT   TABLE 4,821,344 4.73
DINGCAN TBS_DINGCAN ORDER_INFO_4BILL   TABLE 2,684,784 2.63

Back to Segment Statistics
Back to Top

Segments by Physical Reads

OwnerTablespace NameObject NameSubobject NameObj. TypePhysical Reads%Total
DINGCAN TBS_DINGCAN XIF1INTERFACE_LOG   INDEX 587 6.35
DINGCAN TBS_DINGCAN IDX_R_REST_DEALT#REST_ID   INDEX 357 3.86
DINGCAN TBS_DINGCAN REPORT_REST_DEALT   TABLE 261 2.82
DINGCAN TBS_DINGCAN INTERFACE_LOG   TABLE 207 2.24
DINGCAN TBS_DINGCAN IDX_ORDER_INFO#RESTAURANT_ID   INDEX 153 1.65

Back to Segment Statistics
Back to Top

Segments by Row Lock Waits

OwnerTablespace NameObject NameSubobject NameObj. TypeRow Lock Waits% of Capture
ZCX TS_ZCX PK_INTERFACE_LOG   INDEX 13 100.00

Back to Segment Statistics
Back to Top

Segments by ITL Waits

OwnerTablespace NameObject NameSubobject NameObj. TypeITL Waits% of Capture
ZCX TS_ZCX PK_INTERFACE_LOG   INDEX 5 50.00
DINGCAN TBS_DINGCAN PK_ORDER_LOG#ORDER_LOG_ID   INDEX 2 20.00
DINGCAN TBS_DINGCAN PK_CALL_LOG   INDEX 1 10.00
SYS SYSAUX WRH$_SYSSTAT_PK 33474_6918 INDEX PARTITION 1 10.00
DINGCAN TBS_DINGCAN XIF1ORDER_LOG   INDEX 1 10.00

Back to Segment Statistics
Back to Top

Segments by Buffer Busy Waits

OwnerTablespace NameObject NameSubobject NameObj. TypeBuffer Busy Waits% of Capture
ZCX TS_ZCX PK_INTERFACE_LOG   INDEX 6 60.00
ZCX TS_ZCX INTERFACE_LOG   TABLE 3 30.00
DINGCAN TBS_DINGCAN PK_INTERFACE_LOG   INDEX 1 10.00

Back to Segment Statistics
Back to Top

Segments by Global Cache Buffer Busy

OwnerTablespace NameObject NameSubobject NameObj. TypeGC Buffer Busy% of Capture
ZCX TS_ZCX PK_INTERFACE_LOG   INDEX 14 60.87
ZCX TS_ZCX INTERFACE_LOG   TABLE 8 34.78
DINGCAN TBS_DINGCAN ORDER_INFO   TABLE 1 4.35

Back to Segment Statistics
Back to Top

Segments by CR Blocks Received

OwnerTablespace NameObject NameSubobject NameObj. TypeCR Blocks Received%Total
DINGCAN TBS_DINGCAN ORDER_INFO   TABLE 4,091 16.40
DINGCAN TBS_DINGCAN ORDER_INFO_4BILL   TABLE 2,828 11.34
DINGCAN TBS_DINGCAN REPORT_ORDER_VOLUME   TABLE 2,192 8.79
DINGCAN TBS_DINGCAN REPORT_SEAT_VOLUME   TABLE 1,972 7.91
DINGCAN TBS_DINGCAN REPORT_REST_DEALT   TABLE 1,429 5.73

Back to Segment Statistics
Back to Top

Segments by Current Blocks Received

OwnerTablespace NameObject NameSubobject NameObj. TypeCurrent Blocks Received%Total
ZCX TS_ZCX RESTAURANT   TABLE 22,113 16.88
DINGCAN TBS_DINGCAN ORDER_CHECK   TABLE 21,165 16.15
DINGCAN TBS_DINGCAN REPORT_SEAT_VOLUME   TABLE 18,273 13.95
DINGCAN TBS_DINGCAN REPORT_REST_DEALT   TABLE 15,992 12.21
DINGCAN TBS_DINGCAN PK_ORDER_CHECK#ORDER_ID   INDEX 4,534 3.46

Back to Segment Statistics
Back to Top

Dictionary Cache Statistics

Back to Top

Dictionary Cache Stats

CacheGet RequestsPct MissScan ReqsPct MissMod ReqsFinal Usage
dc_awr_control 65 0.00 0   2 1
dc_database_links 1,168 0.00 0   0 1
dc_global_oids 5,062 0.00 0   0 17
dc_histogram_data 1,328,322 0.00 0   0 3,902
dc_histogram_defs 311,413 0.01 0   0 1,603
dc_object_grants 156 0.00 0   0 29
dc_object_ids 2,473,375 0.00 0   0 749
dc_objects 94,224 0.03 0   0 453
dc_profiles 595 0.00 0   0 1
dc_rollback_segments 25,669 0.00 0   0 452
dc_segments 449,424 0.00 0   4 690
dc_sequences 2,467 17.67 0   2,467 23
dc_tablespace_quotas 4 0.00 0   0 2
dc_tablespaces 636,142 0.00 0   0 10
dc_usernames 13,803 0.00 0   0 12
dc_users 722,511 0.00 0   0 44
outstanding_alerts 123 80.49 0   3 2

Back to Dictionary Cache Statistics
Back to Top

Dictionary Cache Stats (RAC)

CacheGES RequestsGES ConflictsGES Releases
dc_awr_control 4 0 0
dc_histogram_defs 27 0 201
dc_object_ids 20 0 132
dc_objects 30 2 35
dc_segments 15 1 24
dc_sequences 4,934 434 0
dc_tablespace_quotas 2 0 4
outstanding_alerts 243 97 0

Back to Dictionary Cache Statistics
Back to Top

Library Cache Statistics

Back to Top

Library Cache Activity

NamespaceGet RequestsPct MissPin RequestsPct MissReloadsInvali- dations
BODY 8 0.00 5,878 0.03 2 0
INDEX 1 0.00 10 0.00 0 0
SQL AREA 72,564 37.66 389,326 11.18 852 4
TABLE/PROCEDURE 15,606 0.03 298,880 0.01 21 0
TRIGGER 420 0.00 766 0.00 0 0

Back to Library Cache Statistics
Back to Top

Library Cache Activity (RAC)

NamespaceGES Lock RequestsGES Pin RequestsGES Pin ReleasesGES Inval RequestsGES Invali- dations
INDEX 10 0 1 0 0
TABLE/PROCEDURE 108,560 6 11 4 0

Back to Library Cache Statistics
Back to Top

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
B Other 850.12   2.02 5.89 79 79 420 419
  Freeable 200.75 0.00 1.03 0.53 5   195 195
  PL/SQL 13.98 3.22 0.03 0.47 10 10 418 418
  SQL 6.14 2.54 0.02 0.02 0 181 382 358
E Other 796.69   2.16 6.28 79 79 368 367
  Freeable 156.38 0.00 1.00 0.61 6   156 156
  PL/SQL 12.94 2.51 0.04 0.50 10 10 366 366
  SQL 3.47 1.48 0.01 0.02 0 181 330 312

Back to Memory Statistics
Back to Top

SGA Memory Summary

SGA regionsBegin Size (Bytes)End Size (Bytes) (if different)
Database Buffers 4,110,417,920  
Fixed Size 2,101,808  
Redo Buffers 48,226,304  
Variable Size 6,576,672,208  

Back to Memory Statistics
Back to Top

SGA breakdown difference

PoolNameBegin MBEnd MB% Diff
java free memory 106.39 106.39 0.00
java joxlod exec hp 5.43 5.43 0.00
large PX msg pool 1.03 1.03 0.00
large free memory 14.97 14.97 0.00
shared ASH buffers 68.00 68.00 0.00
shared CCursor 566.32 565.87 -0.08
shared PCursor 352.14 351.61 -0.15
shared free memory 605.15 579.98 -4.16
shared gcs resources 189.63 189.63 0.00
shared gcs shadows 109.69 109.69 0.00
shared kglsim object batch 90.62 90.62 0.00
shared library cache 301.29 302.11 0.27
shared sql area 3,393.26 3,420.47 0.80
streams free memory 16.00 16.00 0.00
  buffer_cache 3,920.00 3,920.00 0.00
  fixed_sga 2.00 2.00 0.00
  log_buffer 45.99 45.99 0.00

Back to Memory Statistics
Back to Top

Streams Statistics

Back to Top

Streams CPU/IO Usage

Session TypeCPU TimeUser I/O TimeSys I/O Time
QMON Slaves 88,698 0 0
QMON Coordinator 64,435 0 0

Back to Streams Statistics
Back to Top

Streams Capture

No data exists for this section of the report.

Back to Streams Statistics
Back to Top

Streams Apply

No data exists for this section of the report.

Back to Streams Statistics
Back to Top

Buffered Queues

No data exists for this section of the report.

Back to Streams Statistics
Back to Top

Buffered Subscribers

No data exists for this section of the report.

Back to Streams Statistics
Back to Top

Rule Set

Ruleset NameEvalsFast EvalsSQL ExecsCPU TimeElapsed Time
SYS.ALERT_QUE_R 3 0 0 0 0

Back to Streams Statistics
Back to Top

Resource Limit Stats

Resource NameCurrent UtilizationMaximum Utilization Initial Allocation Limit
gcs_resources 1,001,400 1,094,902 1184953 1184953
gcs_shadows 962,594 1,098,991 1184953 1184953


Back to Top

init.ora Parameters

Parameter NameBegin valueEnd value (if different)
audit_file_dest /u01/orabase/admin/zcx/adump   
background_dump_dest /u01/orabase/admin/zcx/bdump   
cluster_database TRUE   
cluster_database_instances 2   
compatible 10.2.0.3.0   
control_files /ocfs_data1/zcx/zcx/control01.ctl, /ocfs_data2/zcx/zcx/control02.ctl, /ocfs_data3/zcx/zcx/control03.ctl   
core_dump_dest /u01/orabase/admin/zcx/cdump   
db_block_size 8192   
db_domain      
db_file_multiblock_read_count 16   
db_name zcx   
dispatchers (PROTOCOL=TCP) (SERVICE=zcxXDB)   
instance_number 1   
job_queue_processes 10   
local_listener local_listener_rac   
log_archive_dest_1 LOCATION=/ocfs_data3/archivelog   
log_archive_format %t_%s_%r.dbf   
open_cursors 300   
pga_aggregate_target 6746537984   
processes 2500   
remote_listener LISTENERS_ZCX   
remote_login_passwordfile EXCLUSIVE   
service_names zcxdb, zcx zcx
sessions 2755   
sga_max_size 10737418240   
sga_target 10737418240   
spfile /ocfs_data1/zcx/zcx/spfilezcx.ora   
thread 1   
undo_management AUTO   
undo_tablespace UNDOTBS1   
user_dump_dest /u01/orabase/admin/zcx/udump   


Back to Top

Global Enqueue Statistics

StatisticTotalper Secondper Trans
acks for commit broadcast(actual) 11,398 3.16 0.42
acks for commit broadcast(logical) 11,885 3.29 0.44
broadcast msgs on commit(actual) 27,817 7.70 1.04
broadcast msgs on commit(logical) 30,012 8.31 1.12
broadcast msgs on commit(wasted) 1,467 0.41 0.05
broadcast on commit wait time(ms) 21,083,212 5,837.62 785.57
broadcast on commit waits 22,376 6.20 0.83
dynamically allocated gcs resources 0 0.00 0.00
dynamically allocated gcs shadows 0 0.00 0.00
false posts waiting for scn acks 0 0.00 0.00
flow control messages received 0 0.00 0.00
flow control messages sent 0 0.00 0.00
gcs assume cvt
gcs assume no cvt 8,496 2.35 0.32
gcs ast xid 2 0.00 0.00
gcs blocked converts 17,716 4.91 0.66
gcs blocked cr converts 23,227 6.43 0.87
gcs compatible basts 203 0.06 0.01
gcs compatible cr basts (global) 2,652 0.73 0.10
gcs compatible cr basts (local) 66,593 18.44 2.48
gcs cr basts to PIs 0 0.00 0.00
gcs cr serve without current lock 0 0.00 0.00
gcs dbwr flush pi msgs 3,420 0.95 0.13
gcs dbwr write request msgs 3,219 0.89 0.12
gcs error msgs 0 0.00 0.00
gcs forward cr to pinged instance 0 0.00 0.00
gcs immediate (compatible) converts 603 0.17 0.02
gcs immediate (null) converts 2,786 0.77 0.10
gcs immediate cr (compatible) converts 6 0.00 0.00
gcs immediate cr (null) converts 3,296 0.91 0.12
gcs indirect ast 6,641 1.84 0.25
gcs lms flush pi msgs 0 0.00 0.00
gcs lms write request msgs 1,451 0.40 0.05
gcs msgs process time(ms) 3,803 1.05 0.14
gcs msgs received 128,502 35.58 4.79
gcs out-of-order msgs 0 0.00 0.00
gcs pings refused 9 0.00 0.00
gcs pkey conflicts retry 0 0.00 0.00
gcs queued converts 2 0.00 0.00
gcs recovery claim msgs 0 0.00 0.00
gcs refuse xid 2 0.00 0.00
gcs regular cr 0 0.00 0.00
gcs retry convert request 0 0.00 0.00
gcs side channel msgs actual 25,702 7.12 0.96
gcs side channel msgs logical 162,434 44.98 6.05
gcs stale cr 0 0.00 0.00
gcs undo cr 5 0.00 0.00
gcs write notification msgs 425 0.12 0.02
gcs writes refused 4 0.00 0.00
ges msgs process time(ms) 216 0.06 0.01
ges msgs received 14,938 4.14 0.56
global posts dropped 0 0.00 0.00
global posts queue time 949 0.26 0.04
global posts queued 3 0.00 0.00
global posts requested 3 0.00 0.00
global posts sent 3 0.00 0.00
implicit batch messages received 5,365 1.49 0.20
implicit batch messages sent 6,610 1.83 0.25
lmd msg send time(ms) 0 0.00 0.00
lms(s) msg send time(ms) 0 0.00 0.00
messages flow controlled 30,709 8.50 1.14
messages queue sent actual 82,197 22.76 3.06
messages queue sent logical 91,500 25.33 3.41
messages received actual 135,914 37.63 5.06
messages received logical 143,439 39.72 5.34
messages sent directly 139,315 38.57 5.19
messages sent indirectly 56,445 15.63 2.10
messages sent not implicit batched 75,587 20.93 2.82
messages sent pbatched 54,789 15.17 2.04
msgs causing lmd to send msgs 4,798 1.33 0.18
msgs causing lms(s) to send msgs 7,395 2.05 0.28
msgs received queue time (ms) 4,614 1.28 0.17
msgs received queued 143,444 39.72 5.34
msgs sent queue time (ms) 35,415,549 9,806.02 1,319.60
msgs sent queue time on ksxp (ms) 51,722 14.32 1.93
msgs sent queued 91,446 25.32 3.41
msgs sent queued on ksxp 241,955 66.99 9.02
process batch messages received 35,747 9.90 1.33
process batch messages sent 32,073 8.88 1.20


Back to Top

Global CR Served Stats

StatisticTotal
CR Block Requests 17,999
CURRENT Block Requests 1,706
Data Block Requests 17,999
Undo Block Requests 5
TX Block Requests 466
Current Results 19,586
Private results 8
Zero Results 112
Disk Read Results 0
Fail Results 0
Fairness Down Converts 3,911
Fairness Clears 0
Free GC Elements 0
Flushes 342
Flushes Queued 0
Flush Queue Full 0
Flush Max Time (us) 0
Light Works 19
Errors 0


Back to Top

Global CURRENT Served Stats

StatisticTotal% <1ms% <10ms% <100ms% <1s% <10s
Pins 17,351 99.88 0.00 0.12 0.00 0.01
Flushes 209 10.53 39.71 31.10 18.18 0.48
Writes 2,828 32.39 44.38 21.25 1.20 0.78


Back to Top

Global Cache Transfer Stats

  CR Current
Inst NoBlock Class Blocks Received% Immed% Busy% CongstBlocks Received% Immed% Busy% Congst
2 data block 24,018 99.34 0.66 0.00 128,529 99.94 0.06 0.00
2 Others 414 100.00 0.00 0.00 2,427 97.40 2.60 0.00
2 undo header 487 99.79 0.21 0.00 45 100.00 0.00 0.00
2 undo block 2 100.00 0.00 0.00 0      


Back to Top

End of Report