WARNING: timed_statistics setting was set to 'FALSE' in the snapshot period: TIMINGS ARE INVALID
WARNING: statistics_level setting was set to 'BASIC' in the snapshot period: TIME MODEL DATA IS INVALID
WARNING: Since the DB Time is less than one second, there was minimal foreground activity in the snapshot period. Some of the percentage values will be invalid.

WORKLOAD REPOSITORY report for

DB NameDB IdInstanceInst numReleaseRACHost
ORCL1265628295orcl110.2.0.5.0NOHP-RX660

Snap IdSnap TimeSessionsCursors/Session
Begin Snap:424-Jan-13 20:17:0854 7.0
End Snap:524-Jan-13 20:27:5887 8.6
Elapsed:  10.83 (mins)  
DB Time:  0.00 (mins)  

Report Summary

Cache Sizes

BeginEnd
Buffer Cache: 6,144M 6,144MStd Block Size: 8K
Shared Pool Size: 1,024M 1,024MLog Buffer: 14,352K

Load Profile

Per SecondPer Transaction
Redo size: 9,873.57 6,057.44
Logical reads: 286,864.43 175,991.46
Block changes: 42.09 25.82
Physical reads: 739.81 453.88
Physical writes: 3.12 1.92
User calls: 566.96 347.83
Parses: 90.94 55.79
Hard parses: 20.33 12.47
Sorts: 6.39 3.92
Logons: 0.23 0.14
Executes: 392.62 240.87
Transactions: 1.63 

% Blocks changed per Read: 0.01Recursive Call %: 45.39
Rollback per transaction %: 1.13Rows per Sort: 504.36

Instance Efficiency Percentages (Target 100%)

Buffer Nowait %: 100.00Redo NoWait %: 100.00
Buffer Hit %: 99.75In-memory Sort %: 100.00
Library Hit %: 89.57Soft Parse %: 77.64
Execute to Parse %: 76.84Latch Hit %: 99.92
Parse CPU to Parse Elapsd %: % Non-Parse CPU: 100.00

Shared Pool Statistics

BeginEnd
Memory Usage %: 30.48 65.87
% SQL with executions>1: 37.86 67.27
% Memory for SQL w/exec>1: 40.56 63.17

Top 5 Timed Events

EventWaitsTime(s)Avg Wait(ms)% Total Call TimeWait Class
kksfbc child completion 11 0 27 29,999,400.0Other
cursor: pin S wait on X 14 0 6 8,999,100.0Concurrency
latch: cache buffers chains 941 0 0 3,483,100.0Concurrency
CPU time  0  100.0 
SQL*Net message to client 328,544 0 0 .0Network

Main Report


Back to Top

Wait Events Statistics

Back to Top

Time Model Statistics

No data exists for this section of the report.

Back to Wait Events Statistics
Back to Top

Wait Class

Wait ClassWaits%Time -outsTotal Wait Time (s)Avg wait (ms)%Total Call Time
Other 11 55 0 27 29999400.00
Concurrency 970 1 0 0 12482200.00
CPU time     0   100.00
Network 495,071   0 0 0.00
User I/O 45,889   0 0 0.00
System I/O 2,007   0 0 0.00
Commit 1,035   0 0 0.00
Application 46   0 0 0.00

Back to Wait Events Statistics
Back to Top

Wait Events

EventWaits%Time -outsTotal Wait Time (s)Avg wait (ms)Waits /txn
kksfbc child completion 11 55 0 27 0.01
cursor: pin S wait on X 14 64 0 6 0.01
latch: cache buffers chains 941   0 0 0.89
SQL*Net message to client 328,544   0 0 310.24
SQL*Net more data to client 161,525   0 0 152.53
db file scattered read 33,760   0 0 31.88
db file sequential read 7,874   0 0 7.44
SQL*Net more data from client 5,002   0 0 4.72
direct path read 2,398   0 0 2.26
read by other session 1,494   0 0 1.41
log file parallel write 1,100   0 0 1.04
log file sync 1,035   0 0 0.98
control file sequential read 684   0 0 0.65
control file parallel write 223   0 0 0.21
direct path sync 105   0 0 0.10
direct path write 105   0 0 0.10
direct path read temp 78   0 0 0.07
direct path write temp 75   0 0 0.07
SQL*Net break/reset to client 46   0 0 0.04
os thread startup 9   0 0 0.01
cursor: mutex S 5   0 0 0.00
cursor: mutex X 1   0 0 0.00
jobq slave wait 257 99 762 2965 0.24
Streams AQ: qmn coordinator idle wait 47 51 646 13745 0.04
PX Idle Wait 27 100 54 2000 0.03
SQL*Net message from client 328,642   0 0 310.33
Streams AQ: qmn slave idle wait 23   0 0 0.02

Back to Wait Events Statistics
Back to Top

Background Wait Events

EventWaits%Time -outsTotal Wait Time (s)Avg wait (ms)Waits /txn
log file parallel write 1,100   0 0 1.04
control file sequential read 505   0 0 0.48
control file parallel write 223   0 0 0.21
os thread startup 9   0 0 0.01
db file sequential read 1   0 0 0.00
rdbms ipc message 2,726 60 6,388 2343 2.57
pmon timer 312 100 936 3000 0.29
Streams AQ: qmn coordinator idle wait 47 51 646 13745 0.04
smon timer 2 100 600 300000 0.00
Streams AQ: qmn slave idle wait 23   0 0 0.02

Back to Wait Events Statistics
Back to Top

Operating System Statistics

StatisticTotal
AVG_BUSY_TIME 27,055
AVG_IDLE_TIME 37,852
AVG_IOWAIT_TIME 307
AVG_SYS_TIME 833
AVG_USER_TIME 26,221
BUSY_TIME 216,440
IDLE_TIME 302,816
IOWAIT_TIME 2,461
SYS_TIME 6,668
USER_TIME 209,772
LOAD 0
OS_CPU_WAIT_TIME 32,600
RSRC_MGR_CPU_WAIT_TIME 0
VM_IN_BYTES 3,649,536
VM_OUT_BYTES 491,520
PHYSICAL_MEMORY_BYTES 17,147,654,144
NUM_CPUS 8
NUM_CPU_SOCKETS 8

Back to Wait Events Statistics
Back to Top

Service Statistics

Service NameDB Time (s)DB CPU (s)Physical ReadsLogical Reads
SYS$BACKGROUND 0.00 0.00 1 7,478
SYS$USERS 0.00 0.00 674 27,820
orcl 0.00 0.00 480,015 186,242,979

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$BACKGROUND 1 0 9 0 0 0 0 0
SYS$USERS 783 0 0 0 0 0 45 0
orcl 45106 0 961 0 0 0 494358 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
21 0 14 1.51 2117553000.00 f0cd4708fxcmd sqlservr.exe SELECT "Tbl1005"."ID" "Col1030...
19 0 1 18.96 1896431500.00 9b7n7jcdmy0td his.exe select a.recipe_no, a.sequence...
14 0 6 2.27 1364886200.00 5w1dmuc76qhw8 sqlservr.exe SELECT "Tbl1005"."BAH" "Col104...
7 0 1 7.38 738411600.00 3uy5ms8fdxhws his.exe SELECT clinic_code, --门诊号/发票号 ...
7 0 4 1.66 664357200.00 g01x8p1s2y9x7 his.exe SELECT qc.ID, qc.FILEID, qc.IN...
6 0 14 0.45 624705900.00 979m6fy3hp8v1 sqlservr.exe SELECT "Tbl1005"."ID" "Col1048...
5 0 3 1.66 496960500.00 3tzvassftmh7x his.exe SELECT qc.ID, qc.FILEID, qc.IN...
5 0 3 1.65 496334300.00 028htzxdty0nh his.exe SELECT qc.ID, qc.FILEID, qc.IN...
5 0 5 0.96 477710300.00 g1yx0c7rxnuvt sqlservr.exe SELECT "Tbl1005"."ID" "Col1057...
5 0 2 2.38 475761400.00 9ptrsg5rz0qnb his.exe select distinct t.dept_code f...
5 0 1 4.69 468730900.00 30ux4wagk29hv his.exe select * from ( select (case ...
4 0 7 0.62 437439900.00 fr5adcsknx0jc his.exe insert into emr_courserecord t...
4 0 8 0.55 437118200.00 04jffc18tjxxh HIS.exe SELECT distinct T.INPATIENT_NO...
4 0 8 0.55 437072300.00 97qqqfspx1zy7 HIS.exe SELECT distinct T.INPATIENT_NO...
4 0 22 0.19 417193000.00 5f4rxd5rk1qfd FX_HIS.exe select hyhis.Interface_Patient...
4 0 1 4.11 410743300.00 4yppnn3m81nb9 his.exe select r.APPLY_no from met_ord...
4 0 14 0.29 410086400.00 gj50gqh7jrw3m sqlservr.exe SELECT "Tbl1005"."ID" "Col1043...
4 0 41 0.09 379182100.00 f5w65za900wpa his.exe SELECT a.EMPL_CODE, --0员工编码 a....
4 0 6 0.62 372483000.00 d67z0b952pmj3 his.exe insert into emr_courserecord t...
4 0 2 1.79 358133400.00 abu6jqqz40bh7 his.exe select HAPPEN_NO, SHIFT_TYPE,...
3 0 2 1.74 348443300.00 b4ag9zjst5kwp his.exe SELECT qc.ID, qc.FILEID, qc.IN...
3 0 2 1.73 346670600.00 brpvayyf0vz70 his.exe SELECT qc.ID, qc.FILEID, qc.IN...
3 0 2 1.73 345694400.00 d767j7nr3sukk his.exe SELECT qc.ID, qc.FILEID, qc.IN...
3 0 2 1.72 343584600.00 1c1wqh5p6dk7r his.exe SELECT qc.ID, qc.FILEID, qc.IN...
3 0 2 1.69 337796300.00 9c3njkxsd6yc5 his.exe SELECT qc.ID, qc.FILEID, qc.IN...
3 0 2 1.68 336609800.00 2h2r9w5mf998d his.exe SELECT qc.ID, qc.FILEID, qc.IN...
3 0 2 1.68 335748000.00 3smr6z8wr12mp his.exe SELECT qc.ID, qc.FILEID, qc.IN...
3 0 2 1.67 333339500.00 9h03z34zshb0f his.exe SELECT qc.ID, qc.FILEID, qc.IN...
3 0 2 1.66 332546700.00 75ww7j0qz9v4b his.exe SELECT qc.ID, qc.FILEID, qc.IN...
3 0 2 1.65 330028400.00 9pddx52tm3jjs his.exe SELECT qc.ID, qc.FILEID, qc.IN...
2 0 14 0.12 161479200.00 019b2bj8mnpcn sqlservr.exe SELECT "Tbl1005"."ID" "Col1088...
1 0 20 0.07 140229800.00 6vngrbb2p57jt sqlservr.exe SELECT * FROM HYHIS.V_HIS_pati...
1 0 1 0.92 91661000.00 89qyn4bbt03jq   SELECT /*+ USE_HASH(f a) */ SU...
1 0 139 0.00 58503200.00 0hfq79bujc3zj   BEGIN LBACSYS.lbac_events.logo...
1 0 1 0.55 54861600.00 ctdzngdump3wa his.exe select * from ( select (case ...
0 0 1 0.25 25226200.00 9jaxv5a180bvg his.exe select * from ( select (case ...
0 0 1 0.22 22223300.00 582ky10xu220f his.exe select * from ( select (case ...
0 0 2,028 0.00 7929600.00 36rddx9a7zpwu his.exe SELECT control_value --控制参数值 ...
0 0 2,319 0.00 5901200.00 g37zzhdxz360u his.exe Select sysdate from dual
0 0 343 0.00 4636200.00 0h6b2sajwb74n   select privilege#, level from ...
0 0 2 0.02 3572400.00 47v42kh87xkaa his.exe SELECT drug_flag, sys_class, ...
0 0 1,208 0.00 3543200.00 1mxs8cp3ax62v his.exe SELECT control_value --控制参数值 ...
0 0 1,420 0.00 3319700.00 7h35uxf5uhmm1 AutoUpdate.exe select sysdate from dual
0 0 486 0.00 3097600.00 74k26h9umur73 his.exe SELECT empl_code, (select b.e...
0 0 1,073 0.00 3094400.00 ansgd0s3pmf06 his.exe SELECT control_value --控制参数值 ...
0 0 1,076 0.00 3009800.00 5aqn2f1rdhuum his.exe SELECT control_value --控制参数值 ...
0 0 1 0.03 2959700.00 fm2uhffc3vvu7 his.exe SELECT drug_flag, sys_class, ...
0 0 1 0.03 2950600.00 8rmrujpk902h6 his.exe SELECT drug_flag, sys_class, ...
0 0 1 0.03 2836600.00 9qdjr6atg7cf5 his.exe SELECT drug_flag, sys_class, ...
0 0 2 0.01 2791300.00 gvsd0rfmnpjgu his.exe SELECT drug_flag, sys_class, ...
0 0 25 0.00 2767800.00 7ng34ruy5awxq   select i.obj#, i.ts#, i.file#,...
0 0 570 0.00 2763700.00 2syvqzbxp4k9z   select u.name, o.name, a.inter...
0 0 2 0.01 2761600.00 85xf8t3cjdypf his.exe SELECT drug_flag, sys_class, ...
0 0 1 0.03 2749700.00 34vcs7graur16 his.exe SELECT drug_flag, sys_class, ...
0 0 1 0.03 2736200.00 b506nt1b8agab his.exe SELECT drug_flag, sys_class, ...
0 0 1 0.03 2726700.00 9d41ughy3r7yr his.exe SELECT drug_flag, sys_class, ...
0 0 1 0.03 2720600.00 azh44vdpcug2t his.exe SELECT drug_flag, sys_class, ...
0 0 1 0.03 2706100.00 bsu4js8s8m9hf his.exe SELECT drug_flag, sys_class, ...
0 0 1 0.03 2691100.00 7bn1gchhc5ftw his.exe SELECT drug_flag, sys_class, ...
0 0 139 0.00 2645500.00 6r75f7k88qr4a   select pol#, db_labels, defaul...
0 0 137 0.00 2573400.00 0k8522rmdzg4k   select privilege# from sysauth...
0 0 123 0.00 2372200.00 0ws7ahf1d78qa   select SYS_CONTEXT('USERENV', ...
0 0 169 0.00 2065300.00 4m7m0t6fjcs5x   update seq$ set increment$=:2,...
0 0 35 0.00 1693600.00 210d6mfbwchjq his.exe INSERT INTO EMR_COM_LOGO (ID, ...

Back to SQL Statistics
Back to Top

SQL ordered by CPU Time

CPU Time (s)Elapsed Time (s)Executions CPU per Exec (s)% Total% Total DB Time SQL IdSQL ModuleSQL Text
0 2 14 0.00 0.00 161479200.00 019b2bj8mnpcn sqlservr.exe SELECT "Tbl1005"."ID" "Col1088...
0 5 3 0.00 0.00 496334300.00 028htzxdty0nh his.exe SELECT qc.ID, qc.FILEID, qc.IN...
0 4 8 0.00 0.00 437118200.00 04jffc18tjxxh HIS.exe SELECT distinct T.INPATIENT_NO...
0 0 48 0.00 0.00 1481000.00 04xtrk7uyhknh   select obj#, type#, ctime, mti...
0 0 343 0.00 0.00 4636200.00 0h6b2sajwb74n   select privilege#, level from ...
0 1 139 0.00 0.00 58503200.00 0hfq79bujc3zj   BEGIN LBACSYS.lbac_events.logo...
0 0 137 0.00 0.00 2573400.00 0k8522rmdzg4k   select privilege# from sysauth...
0 0 1 0.00 0.00 16400.00 0kugqg48477gf   select distinct(-privilege#), ...
0 0 123 0.00 0.00 2372200.00 0ws7ahf1d78qa   select SYS_CONTEXT('USERENV', ...
0 0 1 0.00 0.00 7200.00 0xwby571mq3n2   select name, password, datats#...

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
6,011,196 14 429,371.14 3.23 0.00 21.18 f0cd4708fxcmd sqlservr.exe SELECT "Tbl1005"."ID" "Col1030...
1,489,536 4 372,384.00 0.80 0.00 6.64 g01x8p1s2y9x7 his.exe SELECT qc.ID, qc.FILEID, qc.IN...
1,174,278 14 83,877.00 0.63 0.00 6.25 979m6fy3hp8v1 sqlservr.exe SELECT "Tbl1005"."ID" "Col1048...
1,117,140 3 372,380.00 0.60 0.00 4.96 028htzxdty0nh his.exe SELECT qc.ID, qc.FILEID, qc.IN...
1,117,102 3 372,367.33 0.60 0.00 4.97 3tzvassftmh7x his.exe SELECT qc.ID, qc.FILEID, qc.IN...
1,064,140 14 76,010.00 0.57 0.00 4.10 gj50gqh7jrw3m sqlservr.exe SELECT "Tbl1005"."ID" "Col1043...
941,688 7 134,526.86 0.51 0.00 4.37 fr5adcsknx0jc his.exe insert into emr_courserecord t...
807,162 6 134,527.00 0.43 0.00 3.72 d67z0b952pmj3 his.exe insert into emr_courserecord t...
744,799 2 372,399.50 0.40 0.00 3.37 2h2r9w5mf998d his.exe SELECT qc.ID, qc.FILEID, qc.IN...
744,756 2 372,378.00 0.40 0.00 3.36 3smr6z8wr12mp his.exe SELECT qc.ID, qc.FILEID, qc.IN...

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
292,510 1 292,510.00 60.86 0.00 18.96 9b7n7jcdmy0td his.exe select a.recipe_no, a.sequence...
76,082 1 76,082.00 15.83 0.00 7.38 3uy5ms8fdxhws his.exe SELECT clinic_code, --门诊号/发票号 ...
47,838 1 47,838.00 9.95 0.00 4.11 4yppnn3m81nb9 his.exe select r.APPLY_no from met_ord...
11,521 1 11,521.00 2.40 0.00 4.69 30ux4wagk29hv his.exe select * from ( select (case ...
5,170 2 2,585.00 1.08 0.00 4.76 9ptrsg5rz0qnb his.exe select distinct t.dept_code f...
4,127 2 2,063.50 0.86 0.00 3.58 abu6jqqz40bh7 his.exe select HAPPEN_NO, SHIFT_TYPE,...
351 1 351.00 0.07 0.00 0.92 89qyn4bbt03jq   SELECT /*+ USE_HASH(f a) */ SU...
166 1 166.00 0.03 0.00 0.55 ctdzngdump3wa his.exe select * from ( select (case ...
92 1 92.00 0.02 0.00 0.25 9jaxv5a180bvg his.exe select * from ( select (case ...
54 1 54.00 0.01 0.00 0.22 582ky10xu220f his.exe select * from ( select (case ...

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
2,319 2,319 1.00 0.00 0.00 g37zzhdxz360u his.exe Select sysdate from dual
2,028 2,028 1.00 0.00 0.00 36rddx9a7zpwu his.exe SELECT control_value --控制参数值 ...
1,420 1,420 1.00 0.00 0.00 7h35uxf5uhmm1 AutoUpdate.exe select sysdate from dual
1,208 1,208 1.00 0.00 0.00 1mxs8cp3ax62v his.exe SELECT control_value --控制参数值 ...
1,076 1,076 1.00 0.00 0.00 5aqn2f1rdhuum his.exe SELECT control_value --控制参数值 ...
1,073 1,073 1.00 0.00 0.00 ansgd0s3pmf06 his.exe SELECT control_value --控制参数值 ...
570 0 0.00 0.00 0.00 2syvqzbxp4k9z   select u.name, o.name, a.inter...
570 0 0.00 0.00 0.00 2xyb5d6xg9srh   select a.default_cpu_cost, a.d...
486 486 1.00 0.00 0.00 74k26h9umur73 his.exe SELECT empl_code, (select b.e...
360 360 1.00 0.00 0.00 2ym6hhaq30r73   select type#, blocks, extents,...

Back to SQL Statistics
Back to Top

SQL ordered by Parse Calls

Parse CallsExecutions % Total Parses SQL IdSQL ModuleSQL Text
2,319 2,319 3.93 g37zzhdxz360u his.exe Select sysdate from dual
2,028 2,028 3.43 36rddx9a7zpwu his.exe SELECT control_value --控制参数值 ...
1,420 1,420 2.40 7h35uxf5uhmm1 AutoUpdate.exe select sysdate from dual
1,208 1,208 2.04 1mxs8cp3ax62v his.exe SELECT control_value --控制参数值 ...
1,076 1,076 1.82 5aqn2f1rdhuum his.exe SELECT control_value --控制参数值 ...
1,073 1,073 1.82 ansgd0s3pmf06 his.exe SELECT control_value --控制参数值 ...
570 570 0.96 2syvqzbxp4k9z   select u.name, o.name, a.inter...
570 570 0.96 2xyb5d6xg9srh   select a.default_cpu_cost, a.d...
486 486 0.82 74k26h9umur73 his.exe SELECT empl_code, (select b.e...
360 360 0.61 2ym6hhaq30r73   select type#, blocks, extents,...

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

No data exists for this section of the report.

Back to SQL Statistics
Back to Top

Complete List of SQL Text

SQL IdSQL Text
019b2bj8mnpcn SELECT "Tbl1005"."ID" "Col1088", "Tbl1005"."TIMES" "Col1089", "Tbl1005"."NAME" "Col1090", "Tbl1005"."FB" "Col1091", "Tbl1005"."MARRYCODE" "Col1092", "Tbl1005"."OCCUPATIONCODE" "Col1093", "Tbl1005"."DWNAME" "Col1094", "Tbl1005"."DWADDR" "Col1095", "Tbl1005"."DWTELE" "Col1096", "Tbl1005"."DWPOST" "Col1097", "Tbl1005"."HKADD" "Col1098", "Tbl1005"."HKPOST" "Col1099", "Tbl1005"."LXNAME" "Col1100", "Tbl1005"."RELATIVECODE" "Col1101", "Tbl1005"."LXTELE" "Col1102", "Tbl1005"."LXADDR" "Col1103", "Tbl1005"."RYDATE" "Col1104", "Tbl1005"."RYINFO" "Col1105", "Tbl1005"."SOURCE" "Col1106", "Tbl1005"."INKBCODE" "Col1107", "Tbl1005"."INKSCODE" "Col1108", "Tbl1005"."OUTKSCODE" "Col1109", "Tbl1005"."OUTKBCODE" "Col1110", "Tbl1005"."CYDATE" "Col1111", "Tbl1005"."DAYS" & quot;Col1112", "Tbl1005"."MZICDCODE" "Col1113", "Tbl1005"."MZICDVER" "Col1114", "Tbl1005"."RYICDVER" "Col1115", "Tbl1005"."BLICDCODE" "Col1116", "Tbl1005"."BLOODCODE" "Col1117", "Tbl1005"."ZREMPCODE" "Col1118", "Tbl1005"."ZZEMPCODE" "Col1119", "Tbl1005"."ZYEMPCODE" "Col1120", "Tbl1005"."PHONE" "Col1121", "Tbl1005"."INSERTTIME" "Col1122" FROM "HYHIS"."VIEW_SF_OH_SICKINHOSPITAL_MTH" "Tbl1005" WHERE "Tbl1005"."CYDATE">:1 AND "Tbl1005"."CYDATE"<:2
028htzxdty0nh SELECT qc.ID, qc.FILEID, qc.INPATIENT_NO, --住院流水号 qc.NAME, --患者姓名 qc.DEPT_CODE, --科室编码 re.COURSE_DATE, --病程日期 re.COURSE_TIME, --病程时间 re.MEMO, --查房医师 re.COURSE_TYPE, --病程记录类型ID、 re.COURSE_NAME, --病历类型名称 qc.STATE, --状态 0 建立 1住院医师签名 2 封存 3 作废 4主治医师签名 5主任(副主任医师签名) qc.CREATEDATE, --建立时间 qc.CREATEOPER_CODE, --建立人 qc.SAVEDATE, --签名日期 qc.SAVEOPER_CODE, --签名操作员 qc.SEALDATE, --封存日期 qc.SEALOPER_CODE, --封存人 qc.DELETEDATE, --删除日期 qc.DELETEOPER_CODE, --删除人 (SELECT EMPL_NAME FROM COM_EMPLOYEE WHERE EMPL_CODE = DELETEOPER_CODE) DELETEOPER_NAME, --删除人姓名 INTERN_SAVEDATE, --实习生签名日期 INTERN_SAVEOPER_CODE, --实习生签名操作员 SUPER_SAVEDATE, --主治签名日期 SUPER_SAVEOPER_CODE, --上级签名操作员 SENIOR_SAVEDATE, --主任签名日期 SENIOR_SAVEOPER_CODE, --主任签名操作员 (SELECT EMPL_NAME FROM COM_EMPLOYEE WHERE EMPL_CODE = INTERN_SAVEOPER_CODE) INTERNOPER_NAME, --生习生签名姓名 (SELECT EMPL_NAME FROM COM_EMPLOYEE WHERE EMPL_CODE = SAVEOPER_CODE) SAVEOPER_NAME, --住院医生签名姓名 (SELECT EMPL_NAME FROM COM_EMPLOYEE WHERE EMPL_CODE = SUPER_SAVEOPER_CODE) SUPEROPER_NAME, --主治医生签名姓名 (SELECT EMPL_NAME FROM COM_EMPLOYEE WHERE EMPL_CODE = SENIOR_SAVEOPER_CODE) SENIORSAVEOPER_NAME, --主任医生签名姓名 (SELECT EMPL_NAME FROM COM_EMPLOYEE WHERE EMPL_CODE = CREATEOPER_CODE) CREATEOPER_NAME, --添加病程医生姓名 (SELECT EMPL_NAME FROM COM_EMPLOYEE WHERE EMPL_CODE = SEALOPER_CODE) SEALOPER_NAME, --封存医生姓名 re.EMR_NAME, --病历名称 re.SORTID --排序号 FROM EMR_COURSERECORD_QCDATA qc, emr_courserecord re WHERE RE.INPATIENT_NO = 'ZY020000142113' AND RE.ID = QC.ID AND STATE <> 3 ORDER BY RE.COURSE_DATE, to_date(nvl(to_single_byte(RE.Course_Time), '00:00'), 'hh24:mi'), RE.SORTID
04jffc18tjxxhSELECT distinct T.INPATIENT_NO as 住院流水号, T.PATIENT_NO as 住院号, T.NAME as 姓名, DECODE(T.SEX_CODE, 'M', '男', 'F', '女', 'U', '未知', '其他') as 性别, fun_get_age_new(T.birthday, T.IN_DATE) as 年龄, T.IN_DATE AS 入院日期, T.Out_Date AS 出院日期, T.house_doc_name AS 住院医师, T.charge_doc_name AS 主治医师, T.chief_doc_name AS 主任医师, T.Dept_Name as 所在科室 , (select new_data_name from com_shiftdata where com_shiftdata.clinic_no = T.Inpatient_No and com_shiftdata.shift_type='B' and rownum =1) as 入院科室, (select m.diag_name from met_cas_diagnose m where m.inpatient_no = T.Inpatient_No and m.diag_kind = '1' and rownum=1) as 出院诊断 from FIN_IPR_INMAININFO T WHERE (T.INPATIENT_NO like '%00723087' or T.PATIENT_NO like '%00723087') and T.INPATIENT_NO not in (select INPATIENT_NO from fin_ipr_babyinfo where inpatient_no like '%00723087' and cancel_flag = '1') and T.INPATIENT_NO not in (select INPATIENT_NO from fin_ipr_babyinfo where inpatient_no like '%00723087' and cancel_flag = '1')
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
0h6b2sajwb74nselect privilege#, level from sysauth$ connect by grantee#=prior privilege# and privilege#>0 start with grantee#=:1 and privilege#>0
0hfq79bujc3zjBEGIN LBACSYS.lbac_events.logon(dbms_standard.login_user); END;
0k8522rmdzg4kselect privilege# from sysauth$ where (grantee#=:1 or grantee#=1) and privilege#>0
0kugqg48477gfselect distinct(-privilege#), nvl(option$, 0) from sysauth$ where grantee#=:1 and privilege#<0
0ws7ahf1d78qaselect SYS_CONTEXT('USERENV', 'SERVER_HOST'), SYS_CONTEXT('USERENV', 'DB_UNIQUE_NAME'), SYS_CONTEXT('USERENV', 'INSTANCE_NAME'), SYS_CONTEXT('USERENV', 'SERVICE_NAME'), INSTANCE_NUMBER, STARTUP_TIME, SYS_CONTEXT('USERENV', 'DB_DOMAIN') from v$instance where INSTANCE_NAME=SYS_CONTEXT('USERENV', 'INSTANCE_NAME')
0xwby571mq3n2select name, password, datats#, tempts#, type#, defrole, resource$, ptime, exptime, ltime, astatus, lcount, decode(defschclass, NULL, 'DEFAULT_CONSUMER_GROUP', defschclass), spare1 from user$ where user#=:1
1c1wqh5p6dk7r SELECT qc.ID, qc.FILEID, qc.INPATIENT_NO, --住院流水号 qc.NAME, --患者姓名 qc.DEPT_CODE, --科室编码 re.COURSE_DATE, --病程日期 re.COURSE_TIME, --病程时间 re.MEMO, --查房医师 re.COURSE_TYPE, --病程记录类型ID、 re.COURSE_NAME, --病历类型名称 qc.STATE, --状态 0 建立 1住院医师签名 2 封存 3 作废 4主治医师签名 5主任(副主任医师签名) qc.CREATEDATE, --建立时间 qc.CREATEOPER_CODE, --建立人 qc.SAVEDATE, --签名日期 qc.SAVEOPER_CODE, --签名操作员 qc.SEALDATE, --封存日期 qc.SEALOPER_CODE, --封存人 qc.DELETEDATE, --删除日期 qc.DELETEOPER_CODE, --删除人 (SELECT EMPL_NAME FROM COM_EMPLOYEE WHERE EMPL_CODE = DELETEOPER_CODE) DELETEOPER_NAME, --删除人姓名 INTERN_SAVEDATE, --实习生签名日期 INTERN_SAVEOPER_CODE, --实习生签名操作员 SUPER_SAVEDATE, --主治签名日期 SUPER_SAVEOPER_CODE, --上级签名操作员 SENIOR_SAVEDATE, --主任签名日期 SENIOR_SAVEOPER_CODE, --主任签名操作员 (SELECT EMPL_NAME FROM COM_EMPLOYEE WHERE EMPL_CODE = INTERN_SAVEOPER_CODE) INTERNOPER_NAME, --生习生签名姓名 (SELECT EMPL_NAME FROM COM_EMPLOYEE WHERE EMPL_CODE = SAVEOPER_CODE) SAVEOPER_NAME, --住院医生签名姓名 (SELECT EMPL_NAME FROM COM_EMPLOYEE WHERE EMPL_CODE = SUPER_SAVEOPER_CODE) SUPEROPER_NAME, --主治医生签名姓名 (SELECT EMPL_NAME FROM COM_EMPLOYEE WHERE EMPL_CODE = SENIOR_SAVEOPER_CODE) SENIORSAVEOPER_NAME, --主任医生签名姓名 (SELECT EMPL_NAME FROM COM_EMPLOYEE WHERE EMPL_CODE = CREATEOPER_CODE) CREATEOPER_NAME, --添加病程医生姓名 (SELECT EMPL_NAME FROM COM_EMPLOYEE WHERE EMPL_CODE = SEALOPER_CODE) SEALOPER_NAME, --封存医生姓名 re.EMR_NAME, --病历名称 re.SORTID --排序号 FROM EMR_COURSERECORD_QCDATA qc, emr_courserecord re WHERE RE.INPATIENT_NO = 'ZY010000227731' AND RE.ID = QC.ID AND STATE <> 3 ORDER BY RE.COURSE_DATE, to_date(nvl(to_single_byte(RE.Course_Time), '00:00'), 'hh24:mi'), RE.SORTID
1mxs8cp3ax62v SELECT control_value --控制参数值 FROM com_controlargument --控制参数表 WHERE control_code = 'EPR231'
210d6mfbwchjqINSERT INTO EMR_COM_LOGO (ID, TYPE, EMRNAME, EMRTYPE, NODENAME, OLDVALUE, NEWVALUE, MEMO, OPER_CODE, OPER_DATE, FILEID, INDEX1, INDEX2, NODEFULLPATH) VALUES (SEQ_EMR_COM_LOGO.NEXTVAL, '2', :B1 , :B2 , :B3 , '', :B4 , '病历修改', :B5 , SYSDATE, :B6 , :B7 , :B8 , :B9 )
2h2r9w5mf998d SELECT qc.ID, qc.FILEID, qc.INPATIENT_NO, --住院流水号 qc.NAME, --患者姓名 qc.DEPT_CODE, --科室编码 re.COURSE_DATE, --病程日期 re.COURSE_TIME, --病程时间 re.MEMO, --查房医师 re.COURSE_TYPE, --病程记录类型ID、 re.COURSE_NAME, --病历类型名称 qc.STATE, --状态 0 建立 1住院医师签名 2 封存 3 作废 4主治医师签名 5主任(副主任医师签名) qc.CREATEDATE, --建立时间 qc.CREATEOPER_CODE, --建立人 qc.SAVEDATE, --签名日期 qc.SAVEOPER_CODE, --签名操作员 qc.SEALDATE, --封存日期 qc.SEALOPER_CODE, --封存人 qc.DELETEDATE, --删除日期 qc.DELETEOPER_CODE, --删除人 (SELECT EMPL_NAME FROM COM_EMPLOYEE WHERE EMPL_CODE = DELETEOPER_CODE) DELETEOPER_NAME, --删除人姓名 INTERN_SAVEDATE, --实习生签名日期 INTERN_SAVEOPER_CODE, --实习生签名操作员 SUPER_SAVEDATE, --主治签名日期 SUPER_SAVEOPER_CODE, --上级签名操作员 SENIOR_SAVEDATE, --主任签名日期 SENIOR_SAVEOPER_CODE, --主任签名操作员 (SELECT EMPL_NAME FROM COM_EMPLOYEE WHERE EMPL_CODE = INTERN_SAVEOPER_CODE) INTERNOPER_NAME, --生习生签名姓名 (SELECT EMPL_NAME FROM COM_EMPLOYEE WHERE EMPL_CODE = SAVEOPER_CODE) SAVEOPER_NAME, --住院医生签名姓名 (SELECT EMPL_NAME FROM COM_EMPLOYEE WHERE EMPL_CODE = SUPER_SAVEOPER_CODE) SUPEROPER_NAME, --主治医生签名姓名 (SELECT EMPL_NAME FROM COM_EMPLOYEE WHERE EMPL_CODE = SENIOR_SAVEOPER_CODE) SENIORSAVEOPER_NAME, --主任医生签名姓名 (SELECT EMPL_NAME FROM COM_EMPLOYEE WHERE EMPL_CODE = CREATEOPER_CODE) CREATEOPER_NAME, --添加病程医生姓名 (SELECT EMPL_NAME FROM COM_EMPLOYEE WHERE EMPL_CODE = SEALOPER_CODE) SEALOPER_NAME, --封存医生姓名 re.EMR_NAME, --病历名称 re.SORTID --排序号 FROM EMR_COURSERECORD_QCDATA qc, emr_courserecord re WHERE RE.INPATIENT_NO = 'ZY030000189906' AND RE.ID = QC.ID AND STATE <> 3 ORDER BY RE.COURSE_DATE, to_date(nvl(to_single_byte(RE.Course_Time), '00:00'), 'hh24:mi'), RE.SORTID
2syvqzbxp4k9zselect u.name, o.name, a.interface_version#, o.obj# from association$ a, user$ u, obj$ o where a.obj# = :1 and a.property = :2 and a.statstype# = o.obj# and u.user# = o.owner#
2xyb5d6xg9srhselect a.default_cpu_cost, a.default_io_cost from association$ a where a.obj# = :1 and a.property = :2
2ym6hhaq30r73select type#, blocks, extents, minexts, maxexts, extsize, extpct, user#, iniexts, NVL(lists, 65535), NVL(groups, 65535), cachehint, hwmincr, NVL(spare1, 0), NVL(scanhint, 0) from seg$ where ts#=:1 and file#=:2 and block#=:3
30ux4wagk29hv select * from ( select (case when a.si_confirm_flag = '0' then nvl((select decode(b.center_item_grade, '1', '甲类药品', '2', '乙类药品', '3', '自费', '4', '特殊检查', '5', '特殊治疗', '6', '特殊材料', '7', '普通诊疗', '自费') from fin_com_compare b where a.drug_code = b.his_code and b.pact_code = '12'), '自费') ---when a.si_confirm_flag = '0' then nvl((select decode(b.center_item_grade, '1', '甲类项目', '2', '乙类项目', '3', '自费', '4', '特殊检查', '5', '特殊治疗', '6', '特殊材料', '7', '普通诊疗', '自费') from fin_com_compare b where a.drug_code = b.his_code and b.pact_code = '12'), '自费') when a.si_confirm_flag = '1' then case ---when a.si_confirm_type = '1' then '甲类项目' ---when a.si_confirm_type = '2' then '乙类项目' when a.si_confirm_type = '1' then '甲类药品' when a.si_confirm_type = '2' then '乙类药品' else '自费' end end ) as grade, (case when a.si_confirm_flag = '0' then nvl((select decode(b.center_item_grade, '1', '5', '2', '6', '3', '7', '4', '2', '5', '3', '6', '4', '7', '1', '7') from fin_com_compare b where a.drug_code = b.his_code and b.pact_code = '12'), '7') ---when a.si_confirm_flag = '0' then nvl((select decode(b.center_item_grade, '1', '甲类项目', '2', '乙类项目', '3', '自费', '4', '特殊检查', '5', '特殊治疗', '6', '特殊材料', '7', '普通诊疗', '自费') from fin_com_compare b whe re a.drug_code = b.his_code and b.pact_code = '12'), '自费') when a.si_confirm_flag = '1' then case ---when a.si_confirm_type = '1' then '甲类项目' ---when a.si_confirm_type = '2' then '乙类项目' when a.si_confirm_type = '1' then '5' when a.si_confirm_type = '2' then '6' else '7' end end ) as orderNo, c.name, h.gb_code as item_code, a.drug_name as item_name, a.specs, --规格 a.qty, --数量 a.current_unit, -- 当前单位 a.unit_price, -- 单价 0 as limit_price, a.tot_cost, -- 计价金额 a.fee_date, --计费时间 d.empl_name, --操作员 a.si_confirm_flag, a.si_confirm_type from fin_ipb_medicinelist a , com_dictionary c, com_employee d , pha_com_baseinfo h where a.fee_code = c.code and a.drug_code = h.drug_code and a.fee_opercode = d.empl_code and c.type = 'MINFEE' and a.inpatient_no = 'ZY080000188504' union all select (case when e.si_confirm_flag = '0' then nvl((select decode(b.center_item_grade, '1', '甲类药品', '2', '乙类药品', '3', '自费', '4', '特殊检查', '5', '特殊治疗', '6', '特殊材料', '7', '普通诊疗', '自费') from fin_com_compare b where e.item_code = b .his_code and b.pact_code = '12'), '自费') ----when e.si_confirm_flag = '0' then nvl((select decode(b.center_item_grade, '1', '甲类项目', '2', '乙类项目', '3', '自费', '4', '特殊检查', '5', '特殊治疗', '6', '特殊材料', '7', '普通诊疗', '自费') from fin_com_compare b where e.item_code = b.his_code and b.pact_code = '12'), '自费') when e.si_confirm_flag = '1' then case ---when e.si_confirm_type = '1' then '甲类项目' ---when e.si_confirm_type = '2' then '乙类项目' when e.si_confirm_type = '1' then '甲类药品' when e.si_confirm_type = '2' then '乙类药品' else '自费' end end ) as grade, (case when e.si_confirm_flag = '0' then nvl((select decode(b.center_item_grade, '1', '5', '2', '6', '3', '7', '4', '2', '5', '3', '6', '4', '7', '1', '7') from fin_com_compare b where e.item_code = b.his_code and b.pact_code = '12'), '7') ----when e.si_confirm_flag = '0' then nvl((select decode(b.center_item_grade, '1', '甲类项目', '2', '乙类项目', '3', '自费', '4', '特殊检查', '5', '特殊治疗', '6', '特殊材料', '7', '普通诊疗', '自费') from fin_com_compare b where e.item_code = b.his_code and b.pact_code = '12'), '自费') when e.si_confirm_flag = '1' then case ---when e.si_confirm_type = '1' then '甲类项目' ---when e.si_confirm_type = '2' then '乙类项目' when e.si_conf irm_type = '1' then '5' when e.si_confirm_type = '2' then '6' else '7' end end ) as orderNo, c.name, --最小费用 g.gb_code, --国家编码 e.item_name, g.specs, e.qty, e.current_unit, e.unit_price, nvl((select i.limit_price from fin_com_undruginfolocal i where e.item_code = i.item_code and e.pact_code = i.pact_code), 0) as limit_price, e.tot_cost, e.fee_date, d.empl_name, e.si_confirm_flag, e.si_confirm_type from fin_ipb_itemlist e, com_dictionary c, com_employee d, fin_com_undruginfo g where e.item_code = g.item_code and e.fee_code = c.code and e.fee_opercode = d.empl_code and c.type = 'MINFEE' and e.inpatient_no = 'ZY080000188504' ) f where f.fee_date >= to_date('2013-1-7 16:45:43', 'yyyy-mm-dd hh24:mi:ss') and f.fee_date <= to_date('2013-1-25 0:00:00', 'yyyy-mm-dd hh24:mi:ss') and f.grade like '自费' and f.name like '%%' order by f.orderNo, f.Grade, f.name, f.item_code
34vcs7graur16 SELECT drug_flag, sys_class, fee_code, item_code, item_name, en_name, pack_qty, specs, dose_code, spell_code, wb_code, user_code, cus_name, cus_spell_code, cus_wb_code, cus_user_code, unit_price, child_price, sp_price, pack_unit, min_unit, now_store, exe_dept, gf_flag, usage_code, freq_code, dose_unit, shenxz, shixz, zf, needbespeak, base_dose, CONFIRM_FLAG, split_type, LACK_FLAG, special_check, once_dose, other_name, other_spell, default_sample, unitflag FROM view_cli_itemlist where (dept_code = '6206' OR dept_code = 'undrug') and item_code = '983'
36rddx9a7zpwu SELECT control_value --控制参数值 FROM com_controlargument --控制参数表 WHERE control_code = 'EPR201'
3smr6z8wr12mp SELECT qc.ID, qc.FILEID, qc.INPATIENT_NO, --住院流水号 qc.NAME, --患者姓名 qc.DEPT_CODE, --科室编码 re.COURSE_DATE, --病程日期 re.COURSE_TIME, --病程时间 re.MEMO, --查房医师 re.COURSE_TYPE, --病程记录类型ID、 re.COURSE_NAME, --病历类型名称 qc.STATE, --状态 0 建立 1住院医师签名 2 封存 3 作废 4主治医师签名 5主任(副主任医师签名) qc.CREATEDATE, --建立时间 qc.CREATEOPER_CODE, --建立人 qc.SAVEDATE, --签名日期 qc.SAVEOPER_CODE, --签名操作员 qc.SEALDATE, --封存日期 qc.SEALOPER_CODE, --封存人 qc.DELETEDATE, --删除日期 qc.DELETEOPER_CODE, --删除人 (SELECT EMPL_NAME FROM COM_EMPLOYEE WHERE EMPL_CODE = DELETEOPER_CODE) DELETEOPER_NAME, --删除人姓名 INTERN_SAVEDATE, --实习生签名日期 INTERN_SAVEOPER_CODE, --实习生签名操作员 SUPER_SAVEDATE, --主治签名日期 SUPER_SAVEOPER_CODE, --上级签名操作员 SENIOR_SAVEDATE, --主任签名日期 SENIOR_SAVEOPER_CODE, --主任签名操作员 (SELECT EMPL_NAME FROM COM_EMPLOYEE WHERE EMPL_CODE = INTERN_SAVEOPER_CODE) INTERNOPER_NAME, --生习生签名姓名 (SELECT EMPL_NAME FROM COM_EMPLOYEE WHERE EMPL_CODE = SAVEOPER_CODE) SAVEOPER_NAME, --住院医生签名姓名 (SELECT EMPL_NAME FROM COM_EMPLOYEE WHERE EMPL_CODE = SUPER_SAVEOPER_CODE) SUPEROPER_NAME, --主治医生签名姓名 (SELECT EMPL_NAME FROM COM_EMPLOYEE WHERE EMPL_CODE = SENIOR_SAVEOPER_CODE) SENIORSAVEOPER_NAME, --主任医生签名姓名 (SELECT EMPL_NAME FROM COM_EMPLOYEE WHERE EMPL_CODE = CREATEOPER_CODE) CREATEOPER_NAME, --添加病程医生姓名 (SELECT EMPL_NAME FROM COM_EMPLOYEE WHERE EMPL_CODE = SEALOPER_CODE) SEALOPER_NAME, --封存医生姓名 re.EMR_NAME, --病历名称 re.SORTID --排序号 FROM EMR_COURSERECORD_QCDATA qc, emr_courserecord re WHERE RE.INPATIENT_NO = 'ZY010000227302' AND RE.ID = QC.ID AND STATE <> 3 ORDER BY RE.COURSE_DATE, to_date(nvl(to_single_byte(RE.Course_Time), '00:00'), 'hh24:mi'), RE.SORTID
3tzvassftmh7x SELECT qc.ID, qc.FILEID, qc.INPATIENT_NO, --住院流水号 qc.NAME, --患者姓名 qc.DEPT_CODE, --科室编码 re.COURSE_DATE, --病程日期 re.COURSE_TIME, --病程时间 re.MEMO, --查房医师 re.COURSE_TYPE, --病程记录类型ID、 re.COURSE_NAME, --病历类型名称 qc.STATE, --状态 0 建立 1住院医师签名 2 封存 3 作废 4主治医师签名 5主任(副主任医师签名) qc.CREATEDATE, --建立时间 qc.CREATEOPER_CODE, --建立人 qc.SAVEDATE, --签名日期 qc.SAVEOPER_CODE, --签名操作员 qc.SEALDATE, --封存日期 qc.SEALOPER_CODE, --封存人 qc.DELETEDATE, --删除日期 qc.DELETEOPER_CODE, --删除人 (SELECT EMPL_NAME FROM COM_EMPLOYEE WHERE EMPL_CODE = DELETEOPER_CODE) DELETEOPER_NAME, --删除人姓名 INTERN_SAVEDATE, --实习生签名日期 INTERN_SAVEOPER_CODE, --实习生签名操作员 SUPER_SAVEDATE, --主治签名日期 SUPER_SAVEOPER_CODE, --上级签名操作员 SENIOR_SAVEDATE, --主任签名日期 SENIOR_SAVEOPER_CODE, --主任签名操作员 (SELECT EMPL_NAME FROM COM_EMPLOYEE WHERE EMPL_CODE = INTERN_SAVEOPER_CODE) INTERNOPER_NAME, --生习生签名姓名 (SELECT EMPL_NAME FROM COM_EMPLOYEE WHERE EMPL_CODE = SAVEOPER_CODE) SAVEOPER_NAME, --住院医生签名姓名 (SELECT EMPL_NAME FROM COM_EMPLOYEE WHERE EMPL_CODE = SUPER_SAVEOPER_CODE) SUPEROPER_NAME, --主治医生签名姓名 (SELECT EMPL_NAME FROM COM_EMPLOYEE WHERE EMPL_CODE = SENIOR_SAVEOPER_CODE) SENIORSAVEOPER_NAME, --主任医生签名姓名 (SELECT EMPL_NAME FROM COM_EMPLOYEE WHERE EMPL_CODE = CREATEOPER_CODE) CREATEOPER_NAME, --添加病程医生姓名 (SELECT EMPL_NAME FROM COM_EMPLOYEE WHERE EMPL_CODE = SEALOPER_CODE) SEALOPER_NAME, --封存医生姓名 re.EMR_NAME, --病历名称 re.SORTID --排序号 FROM EMR_COURSERECORD_QCDATA qc, emr_courserecord re WHERE RE.INPATIENT_NO = 'ZY020000227081' AND RE.ID = QC.ID AND STATE <> 3 ORDER BY RE.COURSE_DATE, to_date(nvl(to_single_byte(RE.Course_Time), '00:00'), 'hh24:mi'), RE.SORTID
3uy5ms8fdxhws SELECT clinic_code, --门诊号/发票号 card_no, --就诊卡号 reg_date, --挂号日期 noon_code, --午别 name, --姓名 idenno, --身份证号 sex_code, --性别 birthday, --出生日 paykind_code, --结算类别号 paykind_name, --结算类别名称 pact_code, --合同号 pact_name, --合同单位名称 mcard_no, --医疗证号 reglevl_code, --挂号级别 reglevl_name, --挂号级别名称 dept_code, --科室号 dept_name, --科室名称 seeno, --看诊序号 doct_code, --医师代号 doct_name, --医师姓名 ynbook, --是否预约 ynfr, --1初诊/2复诊 reg_fee, --挂号费 chck_fee, --检查费 diag_fee, --诊察费 oth_fee, --附加费 own_cost, --自费金额 pub_cost, --报销金额 pay_cost, --自付金额 valid_flag, --退号标志 oper_code, --操作员代码 ynsee, --是否看诊 oper_date, --退号时间 trans_type, --交易类型 balance_flag, --日结标志 balance_no, --日结序号 balance_opcd, --日结人 balance_date, --日结时间 rela_phone, --联系电话 address, --地址 ynregchrg, --是否收费 cancel_opcd, --作废人 cancel_date, --作废时间 card_type, --证件类型 begin_time, --开始时间 end_time, --结束时间 see_date, --看诊日期 triage_flag, --分诊标志 triage_opcd, --分诊人 triage_date, --分诊时间 invoice_no, --发票号 recipe_no, --处方号 append_flag, --加急标志 order_no, schema_no, in_source, in_state, --R-留观登记 I-留观接诊 O-留观结束 N-非留观 in _date, --开始留观日期 out_date, --留观结束日期 zg, --转归代号 (select bed_no from com_bedinfo where clinic_no = fin_opr_register.clinic_code) as bed_no, --留观床号 is_account, see_dpcd, --看诊科室 see_docd, --看诊医生 Is_Emergency, mark1, ECO_COST, work_home_id, work_home_name FROM fin_opr_register WHERE see_docd='001818' AND see_date>=to_date('2013-1-24 0:00:00', 'yyyy-mm-dd HH24:mi:ss') AND see_date<=to_date('2013-1-25 20:27:33', 'yyyy-mm-dd HH24:mi:ss') AND valid_flag='1' AND ynsee='1' order by ynbook desc
47v42kh87xkaa SELECT drug_flag, sys_class, fee_code, item_code, item_name, en_name, pack_qty, specs, dose_code, spell_code, wb_code, user_code, cus_name, cus_spell_code, cus_wb_code, cus_user_code, unit_price, child_price, sp_price, pack_unit, min_unit, now_store, exe_dept, gf_flag, usage_code, freq_code, dose_unit, shenxz, shixz, zf, needbespeak, base_dose, CONFIRM_FLAG, split_type, LACK_FLAG, special_check, once_dose, other_name, other_spell, default_sample, unitflag FROM view_cli_itemlist where (dept_code = '6206' OR dept_code = 'undrug') and item_code = 'F00000009035'
4m7m0t6fjcs5xupdate seq$ set increment$=:2, minvalue=:3, maxvalue=:4, cycle#=:5, order$=:6, cache=:7, highwater=:8, audit$=:9, flags=:10 where obj#=:1
4yppnn3m81nb9select r.APPLY_no from met_ord_recipedetail r where r.recipe_no='4170674' and r.recipe_seq='2'
582ky10xu220f select * from ( select (case when a.si_confirm_flag = '0' then nvl((select decode(b.center_item_grade, '1', '甲类药品', '2', '乙类药品', '3', '自费', '4', '特殊检查', '5', '特殊治疗', '6', '特殊材料', '7', '普通诊疗', '自费') from fin_com_compare b where a.drug_code = b.his_code and b.pact_code = '27'), '自费') ---when a.si_confirm_flag = '0' then nvl((select decode(b.center_item_grade, '1', '甲类项目', '2', '乙类项目', '3', '自费', '4', '特殊检查', '5', '特殊治疗', '6', '特殊材料', '7', '普通诊疗', '自费') from fin_com_compare b where a.drug_code = b.his_code and b.pact_code = '27'), '自费') when a.si_confirm_flag = '1' then case ---when a.si_confirm_type = '1' then '甲类项目' ---when a.si_confirm_type = '2' then '乙类项目' when a.si_confirm_type = '1' then '甲类药品' when a.si_confirm_type = '2' then '乙类药品' else '自费' end end ) as grade, (case when a.si_confirm_flag = '0' then nvl((select decode(b.center_item_grade, '1', '5', '2', '6', '3', '7', '4', '2', '5', '3', '6', '4', '7', '1', '7') from fin_com_compare b where a.drug_code = b.his_code and b.pact_code = '27'), '7') ---when a.si_confirm_flag = '0' then nvl((select decode(b.center_item_grade, '1', '甲类项目', '2', '乙类项目', '3', '自费', '4', '特殊检查', '5', '特殊治疗', '6', '特殊材料', '7', '普通诊疗', '自费') from fin_com_compare b whe re a.drug_code = b.his_code and b.pact_code = '27'), '自费') when a.si_confirm_flag = '1' then case ---when a.si_confirm_type = '1' then '甲类项目' ---when a.si_confirm_type = '2' then '乙类项目' when a.si_confirm_type = '1' then '5' when a.si_confirm_type = '2' then '6' else '7' end end ) as orderNo, c.name, h.gb_code as item_code, a.drug_name as item_name, a.specs, --规格 a.qty, --数量 a.current_unit, -- 当前单位 a.unit_price, -- 单价 0 as limit_price, a.tot_cost, -- 计价金额 a.fee_date, --计费时间 d.empl_name, --操作员 a.si_confirm_flag, a.si_confirm_type from fin_ipb_medicinelist a , com_dictionary c, com_employee d , pha_com_baseinfo h where a.fee_code = c.code and a.drug_code = h.drug_code and a.fee_opercode = d.empl_code and c.type = 'MINFEE' and a.inpatient_no = 'ZY010000227887' union all select (case when e.si_confirm_flag = '0' then nvl((select decode(b.center_item_grade, '1', '甲类药品', '2', '乙类药品', '3', '自费', '4', '特殊检查', '5', '特殊治疗', '6', '特殊材料', '7', '普通诊疗', '自费') from fin_com_compare b where e.item_code = b .his_code and b.pact_code = '27'), '自费') ----when e.si_confirm_flag = '0' then nvl((select decode(b.center_item_grade, '1', '甲类项目', '2', '乙类项目', '3', '自费', '4', '特殊检查', '5', '特殊治疗', '6', '特殊材料', '7', '普通诊疗', '自费') from fin_com_compare b where e.item_code = b.his_code and b.pact_code = '27'), '自费') when e.si_confirm_flag = '1' then case ---when e.si_confirm_type = '1' then '甲类项目' ---when e.si_confirm_type = '2' then '乙类项目' when e.si_confirm_type = '1' then '甲类药品' when e.si_confirm_type = '2' then '乙类药品' else '自费' end end ) as grade, (case when e.si_confirm_flag = '0' then nvl((select decode(b.center_item_grade, '1', '5', '2', '6', '3', '7', '4', '2', '5', '3', '6', '4', '7', '1', '7') from fin_com_compare b where e.item_code = b.his_code and b.pact_code = '27'), '7') ----when e.si_confirm_flag = '0' then nvl((select decode(b.center_item_grade, '1', '甲类项目', '2', '乙类项目', '3', '自费', '4', '特殊检查', '5', '特殊治疗', '6', '特殊材料', '7', '普通诊疗', '自费') from fin_com_compare b where e.item_code = b.his_code and b.pact_code = '27'), '自费') when e.si_confirm_flag = '1' then case ---when e.si_confirm_type = '1' then '甲类项目' ---when e.si_confirm_type = '2' then '乙类项目' when e.si_conf irm_type = '1' then '5' when e.si_confirm_type = '2' then '6' else '7' end end ) as orderNo, c.name, --最小费用 g.gb_code, --国家编码 e.item_name, g.specs, e.qty, e.current_unit, e.unit_price, nvl((select i.limit_price from fin_com_undruginfolocal i where e.item_code = i.item_code and e.pact_code = i.pact_code), 0) as limit_price, e.tot_cost, e.fee_date, d.empl_name, e.si_confirm_flag, e.si_confirm_type from fin_ipb_itemlist e, com_dictionary c, com_employee d, fin_com_undruginfo g where e.item_code = g.item_code and e.fee_code = c.code and e.fee_opercode = d.empl_code and c.type = 'MINFEE' and e.inpatient_no = 'ZY010000227887' ) f where f.fee_date >= to_date('2013-1-21 16:17:34', 'yyyy-mm-dd hh24:mi:ss') and f.fee_date <= to_date('2013-1-25 0:00:00', 'yyyy-mm-dd hh24:mi:ss') and f.grade like '自费' and f.name like '%%' order by f.orderNo, f.Grade, f.name, f.item_code
5aqn2f1rdhuum SELECT control_value --控制参数值 FROM com_controlargument --控制参数表 WHERE control_code = 'EPR444'
5f4rxd5rk1qfdselect hyhis.Interface_Patient_Mi.*, hyhis.Interface_Patient_Mi."ROWID" from hyhis.Interface_Patient_Mi
5w1dmuc76qhw8SELECT "Tbl1005"."BAH" "Col1049", "Tbl1005"."XM" "Col1050", "Tbl1005"."XB" "Col1051", "Tbl1005"."CSRQ" "Col1052", "Tbl1005"."SFZHM" "Col1053", "Tbl1005"."PHONE" "Col1054", "Tbl1005"."JLYG" "Col1055", "Tbl1005"."JLSJ" "Col1056", "Tbl1005"."TJFL1" "Col1057" FROM "HYHIS"."VIEW_SF_MZ_MZBR" "Tbl1005"
6r75f7k88qr4aselect pol#, db_labels, default_format from lbac$pol
6vngrbb2p57jtSELECT * FROM HYHIS.V_HIS_patientcheck where creation_date> sysdate-1/12
74k26h9umur73 SELECT empl_code, (select b.empl_name from com_employee b where a.empl_code=b.empl_code), (select c.dept_name from com_department c, com_employee b where a.empl_code=b.empl_code and b.dept_code=c.dept_code), orderpermission, emrpermission, qcpermission, orderbegindate, orderenddate, oper_code, oper_date FROM met_com_userpermisssion a where empl_code ='001523'
75ww7j0qz9v4b SELECT qc.ID, qc.FILEID, qc.INPATIENT_NO, --住院流水号 qc.NAME, --患者姓名 qc.DEPT_CODE, --科室编码 re.COURSE_DATE, --病程日期 re.COURSE_TIME, --病程时间 re.MEMO, --查房医师 re.COURSE_TYPE, --病程记录类型ID、 re.COURSE_NAME, --病历类型名称 qc.STATE, --状态 0 建立 1住院医师签名 2 封存 3 作废 4主治医师签名 5主任(副主任医师签名) qc.CREATEDATE, --建立时间 qc.CREATEOPER_CODE, --建立人 qc.SAVEDATE, --签名日期 qc.SAVEOPER_CODE, --签名操作员 qc.SEALDATE, --封存日期 qc.SEALOPER_CODE, --封存人 qc.DELETEDATE, --删除日期 qc.DELETEOPER_CODE, --删除人 (SELECT EMPL_NAME FROM COM_EMPLOYEE WHERE EMPL_CODE = DELETEOPER_CODE) DELETEOPER_NAME, --删除人姓名 INTERN_SAVEDATE, --实习生签名日期 INTERN_SAVEOPER_CODE, --实习生签名操作员 SUPER_SAVEDATE, --主治签名日期 SUPER_SAVEOPER_CODE, --上级签名操作员 SENIOR_SAVEDATE, --主任签名日期 SENIOR_SAVEOPER_CODE, --主任签名操作员 (SELECT EMPL_NAME FROM COM_EMPLOYEE WHERE EMPL_CODE = INTERN_SAVEOPER_CODE) INTERNOPER_NAME, --生习生签名姓名 (SELECT EMPL_NAME FROM COM_EMPLOYEE WHERE EMPL_CODE = SAVEOPER_CODE) SAVEOPER_NAME, --住院医生签名姓名 (SELECT EMPL_NAME FROM COM_EMPLOYEE WHERE EMPL_CODE = SUPER_SAVEOPER_CODE) SUPEROPER_NAME, --主治医生签名姓名 (SELECT EMPL_NAME FROM COM_EMPLOYEE WHERE EMPL_CODE = SENIOR_SAVEOPER_CODE) SENIORSAVEOPER_NAME, --主任医生签名姓名 (SELECT EMPL_NAME FROM COM_EMPLOYEE WHERE EMPL_CODE = CREATEOPER_CODE) CREATEOPER_NAME, --添加病程医生姓名 (SELECT EMPL_NAME FROM COM_EMPLOYEE WHERE EMPL_CODE = SEALOPER_CODE) SEALOPER_NAME, --封存医生姓名 re.EMR_NAME, --病历名称 re.SORTID --排序号 FROM EMR_COURSERECORD_QCDATA qc, emr_courserecord re WHERE RE.INPATIENT_NO = 'ZY050000150319' AND RE.ID = QC.ID AND STATE <> 3 ORDER BY RE.COURSE_DATE, to_date(nvl(to_single_byte(RE.Course_Time), '00:00'), 'hh24:mi'), RE.SORTID
7bn1gchhc5ftw SELECT drug_flag, sys_class, fee_code, item_code, item_name, en_name, pack_qty, specs, dose_code, spell_code, wb_code, user_code, cus_name, cus_spell_code, cus_wb_code, cus_user_code, unit_price, child_price, sp_price, pack_unit, min_unit, now_store, exe_dept, gf_flag, usage_code, freq_code, dose_unit, shenxz, shixz, zf, needbespeak, base_dose, CONFIRM_FLAG, split_type, LACK_FLAG, special_check, once_dose, other_name, other_spell, default_sample, unitflag FROM view_cli_itemlist where (dept_code = '6206' OR dept_code = 'undrug') and item_code = '3960'
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#
85xf8t3cjdypf SELECT drug_flag, sys_class, fee_code, item_code, item_name, en_name, pack_qty, specs, dose_code, spell_code, wb_code, user_code, cus_name, cus_spell_code, cus_wb_code, cus_user_code, unit_price, child_price, sp_price, pack_unit, min_unit, now_store, exe_dept, gf_flag, usage_code, freq_code, dose_unit, shenxz, shixz, zf, needbespeak, base_dose, CONFIRM_FLAG, split_type, LACK_FLAG, special_check, once_dose, other_name, other_spell, default_sample, unitflag FROM view_cli_itemlist where (dept_code = '6206' OR dept_code = 'undrug') and item_code = 'F00000007296'
89qyn4bbt03jqSELECT /*+ USE_HASH(f a) */ SUM(NVL(F.BYTES - NVL(A.BYTES, 0), 0)/1024/1024), SUM(NVL(F.BYTES, 0)/1024/1024) FROM (SELECT DISTINCT TABLESPACE_NAME FROM USER_TABLES) U, (SELECT TABLESPACE_NAME, SUM(BYTES) BYTES FROM DBA_DATA_FILES GROUP BY TABLESPACE_NAME) F, (SELECT TABLESPACE_NAME, SUM(BYTES) BYTES FROM DBA_FREE_SPACE GROUP BY TABLESPACE_NAME) A WHERE A.TABLESPACE_NAME = U.TABLESPACE_NAME AND F.TABLESPACE_NAME = U.TABLESPACE_NAME
8rmrujpk902h6 SELECT drug_flag, sys_class, fee_code, item_code, item_name, en_name, pack_qty, specs, dose_code, spell_code, wb_code, user_code, cus_name, cus_spell_code, cus_wb_code, cus_user_code, unit_price, child_price, sp_price, pack_unit, min_unit, now_store, exe_dept, gf_flag, usage_code, freq_code, dose_unit, shenxz, shixz, zf, needbespeak, base_dose, CONFIRM_FLAG, split_type, LACK_FLAG, special_check, once_dose, other_name, other_spell, default_sample, unitflag FROM view_cli_itemlist where (dept_code = '6206' OR dept_code = 'undrug') and item_code = 'F00000008971'
979m6fy3hp8v1SELECT "Tbl1005"."ID" "Col1048", "Tbl1005"."DISTRICTCODE" "Col1049", "Tbl1005"."NATIONCODE" "Col1050", "Tbl1005"."SEXCODE" "Col1051", "Tbl1005"."COUNTRYCODE" "Col1052", "Tbl1005"."NAME" "Col1053", "Tbl1005"."BIRTHDAY" "Col1054", "Tbl1005"."IDCARD" "Col1055", "Tbl1005"."PHONE" "Col1056", "Tbl1005"."DEATH" "Col1057" FROM "HYHIS"."VIEW_SF_OH_SICKBASE" "Tbl1005"
97qqqfspx1zy7SELECT distinct T.INPATIENT_NO as 住院流水号, T.PATIENT_NO as 住院号, T.NAME as 姓名, DECODE(T.SEX_CODE, 'M', '男', 'F', '女', 'U', '未知', '其他') as 性别, fun_get_age_new(T.birthday, T.IN_DATE) as 年龄, T.IN_DATE AS 入院日期, T.Out_Date AS 出院日期, T.house_doc_name AS 住院医师, T.charge_doc_name AS 主治医师, T.chief_doc_name AS 主任医师, T.Dept_Name as 所在科室 , (select new_data_name from com_shiftdata where com_shiftdata.clinic_no = T.Inpatient_No and com_shiftdata.shift_type='B' and rownum =1) as 入院科室, (select m.diag_name from met_cas_diagnose m where m.inpatient_no = T.Inpatient_No and m.diag_kind = '1' and rownum=1) as 出院诊断 from FIN_IPR_INMAININFO T WHERE (T.INPATIENT_NO like '%00123087' or T.PATIENT_NO like '%00123087') and T.INPATIENT_NO not in (select INPATIENT_NO from fin_ipr_babyinfo where inpatient_no like '%00123087' and cancel_flag = '1') and T.INPATIENT_NO not in (select INPATIENT_NO from fin_ipr_babyinfo where inpatient_no like '%00123087' and cancel_flag = '1')
9b7n7jcdmy0tdselect a.recipe_no, a.sequence_no from fin_ipb_itemlist a where a.mo_order = '14852660' and a.package_code = 'F00000007453'
9c3njkxsd6yc5 SELECT qc.ID, qc.FILEID, qc.INPATIENT_NO, --住院流水号 qc.NAME, --患者姓名 qc.DEPT_CODE, --科室编码 re.COURSE_DATE, --病程日期 re.COURSE_TIME, --病程时间 re.MEMO, --查房医师 re.COURSE_TYPE, --病程记录类型ID、 re.COURSE_NAME, --病历类型名称 qc.STATE, --状态 0 建立 1住院医师签名 2 封存 3 作废 4主治医师签名 5主任(副主任医师签名) qc.CREATEDATE, --建立时间 qc.CREATEOPER_CODE, --建立人 qc.SAVEDATE, --签名日期 qc.SAVEOPER_CODE, --签名操作员 qc.SEALDATE, --封存日期 qc.SEALOPER_CODE, --封存人 qc.DELETEDATE, --删除日期 qc.DELETEOPER_CODE, --删除人 (SELECT EMPL_NAME FROM COM_EMPLOYEE WHERE EMPL_CODE = DELETEOPER_CODE) DELETEOPER_NAME, --删除人姓名 INTERN_SAVEDATE, --实习生签名日期 INTERN_SAVEOPER_CODE, --实习生签名操作员 SUPER_SAVEDATE, --主治签名日期 SUPER_SAVEOPER_CODE, --上级签名操作员 SENIOR_SAVEDATE, --主任签名日期 SENIOR_SAVEOPER_CODE, --主任签名操作员 (SELECT EMPL_NAME FROM COM_EMPLOYEE WHERE EMPL_CODE = INTERN_SAVEOPER_CODE) INTERNOPER_NAME, --生习生签名姓名 (SELECT EMPL_NAME FROM COM_EMPLOYEE WHERE EMPL_CODE = SAVEOPER_CODE) SAVEOPER_NAME, --住院医生签名姓名 (SELECT EMPL_NAME FROM COM_EMPLOYEE WHERE EMPL_CODE = SUPER_SAVEOPER_CODE) SUPEROPER_NAME, --主治医生签名姓名 (SELECT EMPL_NAME FROM COM_EMPLOYEE WHERE EMPL_CODE = SENIOR_SAVEOPER_CODE) SENIORSAVEOPER_NAME, --主任医生签名姓名 (SELECT EMPL_NAME FROM COM_EMPLOYEE WHERE EMPL_CODE = CREATEOPER_CODE) CREATEOPER_NAME, --添加病程医生姓名 (SELECT EMPL_NAME FROM COM_EMPLOYEE WHERE EMPL_CODE = SEALOPER_CODE) SEALOPER_NAME, --封存医生姓名 re.EMR_NAME, --病历名称 re.SORTID --排序号 FROM EMR_COURSERECORD_QCDATA qc, emr_courserecord re WHERE RE.INPATIENT_NO = 'ZY010000227621' AND RE.ID = QC.ID AND STATE <> 3 ORDER BY RE.COURSE_DATE, to_date(nvl(to_single_byte(RE.Course_Time), '00:00'), 'hh24:mi'), RE.SORTID
9d41ughy3r7yr SELECT drug_flag, sys_class, fee_code, item_code, item_name, en_name, pack_qty, specs, dose_code, spell_code, wb_code, user_code, cus_name, cus_spell_code, cus_wb_code, cus_user_code, unit_price, child_price, sp_price, pack_unit, min_unit, now_store, exe_dept, gf_flag, usage_code, freq_code, dose_unit, shenxz, shixz, zf, needbespeak, base_dose, CONFIRM_FLAG, split_type, LACK_FLAG, special_check, once_dose, other_name, other_spell, default_sample, unitflag FROM view_cli_itemlist where (dept_code = '6206' OR dept_code = 'undrug') and item_code = '992'
9h03z34zshb0f SELECT qc.ID, qc.FILEID, qc.INPATIENT_NO, --住院流水号 qc.NAME, --患者姓名 qc.DEPT_CODE, --科室编码 re.COURSE_DATE, --病程日期 re.COURSE_TIME, --病程时间 re.MEMO, --查房医师 re.COURSE_TYPE, --病程记录类型ID、 re.COURSE_NAME, --病历类型名称 qc.STATE, --状态 0 建立 1住院医师签名 2 封存 3 作废 4主治医师签名 5主任(副主任医师签名) qc.CREATEDATE, --建立时间 qc.CREATEOPER_CODE, --建立人 qc.SAVEDATE, --签名日期 qc.SAVEOPER_CODE, --签名操作员 qc.SEALDATE, --封存日期 qc.SEALOPER_CODE, --封存人 qc.DELETEDATE, --删除日期 qc.DELETEOPER_CODE, --删除人 (SELECT EMPL_NAME FROM COM_EMPLOYEE WHERE EMPL_CODE = DELETEOPER_CODE) DELETEOPER_NAME, --删除人姓名 INTERN_SAVEDATE, --实习生签名日期 INTERN_SAVEOPER_CODE, --实习生签名操作员 SUPER_SAVEDATE, --主治签名日期 SUPER_SAVEOPER_CODE, --上级签名操作员 SENIOR_SAVEDATE, --主任签名日期 SENIOR_SAVEOPER_CODE, --主任签名操作员 (SELECT EMPL_NAME FROM COM_EMPLOYEE WHERE EMPL_CODE = INTERN_SAVEOPER_CODE) INTERNOPER_NAME, --生习生签名姓名 (SELECT EMPL_NAME FROM COM_EMPLOYEE WHERE EMPL_CODE = SAVEOPER_CODE) SAVEOPER_NAME, --住院医生签名姓名 (SELECT EMPL_NAME FROM COM_EMPLOYEE WHERE EMPL_CODE = SUPER_SAVEOPER_CODE) SUPEROPER_NAME, --主治医生签名姓名 (SELECT EMPL_NAME FROM COM_EMPLOYEE WHERE EMPL_CODE = SENIOR_SAVEOPER_CODE) SENIORSAVEOPER_NAME, --主任医生签名姓名 (SELECT EMPL_NAME FROM COM_EMPLOYEE WHERE EMPL_CODE = CREATEOPER_CODE) CREATEOPER_NAME, --添加病程医生姓名 (SELECT EMPL_NAME FROM COM_EMPLOYEE WHERE EMPL_CODE = SEALOPER_CODE) SEALOPER_NAME, --封存医生姓名 re.EMR_NAME, --病历名称 re.SORTID --排序号 FROM EMR_COURSERECORD_QCDATA qc, emr_courserecord re WHERE RE.INPATIENT_NO = 'ZY010000228038' AND RE.ID = QC.ID AND STATE <> 3 ORDER BY RE.COURSE_DATE, to_date(nvl(to_single_byte(RE.Course_Time), '00:00'), 'hh24:mi'), RE.SORTID
9jaxv5a180bvg select * from ( select (case when a.si_confirm_flag = '0' then nvl((select decode(b.center_item_grade, '1', '甲类药品', '2', '乙类药品', '3', '自费', '4', '特殊检查', '5', '特殊治疗', '6', '特殊材料', '7', '普通诊疗', '自费') from fin_com_compare b where a.drug_code = b.his_code and b.pact_code = '20'), '自费') ---when a.si_confirm_flag = '0' then nvl((select decode(b.center_item_grade, '1', '甲类项目', '2', '乙类项目', '3', '自费', '4', '特殊检查', '5', '特殊治疗', '6', '特殊材料', '7', '普通诊疗', '自费') from fin_com_compare b where a.drug_code = b.his_code and b.pact_code = '20'), '自费') when a.si_confirm_flag = '1' then case ---when a.si_confirm_type = '1' then '甲类项目' ---when a.si_confirm_type = '2' then '乙类项目' when a.si_confirm_type = '1' then '甲类药品' when a.si_confirm_type = '2' then '乙类药品' else '自费' end end ) as grade, (case when a.si_confirm_flag = '0' then nvl((select decode(b.center_item_grade, '1', '5', '2', '6', '3', '7', '4', '2', '5', '3', '6', '4', '7', '1', '7') from fin_com_compare b where a.drug_code = b.his_code and b.pact_code = '20'), '7') ---when a.si_confirm_flag = '0' then nvl((select decode(b.center_item_grade, '1', '甲类项目', '2', '乙类项目', '3', '自费', '4', '特殊检查', '5', '特殊治疗', '6', '特殊材料', '7', '普通诊疗', '自费') from fin_com_compare b whe re a.drug_code = b.his_code and b.pact_code = '20'), '自费') when a.si_confirm_flag = '1' then case ---when a.si_confirm_type = '1' then '甲类项目' ---when a.si_confirm_type = '2' then '乙类项目' when a.si_confirm_type = '1' then '5' when a.si_confirm_type = '2' then '6' else '7' end end ) as orderNo, c.name, h.gb_code as item_code, a.drug_name as item_name, a.specs, --规格 a.qty, --数量 a.current_unit, -- 当前单位 a.unit_price, -- 单价 0 as limit_price, a.tot_cost, -- 计价金额 a.fee_date, --计费时间 d.empl_name, --操作员 a.si_confirm_flag, a.si_confirm_type from fin_ipb_medicinelist a , com_dictionary c, com_employee d , pha_com_baseinfo h where a.fee_code = c.code and a.drug_code = h.drug_code and a.fee_opercode = d.empl_code and c.type = 'MINFEE' and a.inpatient_no = 'ZY030000187880' union all select (case when e.si_confirm_flag = '0' then nvl((select decode(b.center_item_grade, '1', '甲类药品', '2', '乙类药品', '3', '自费', '4', '特殊检查', '5', '特殊治疗', '6', '特殊材料', '7', '普通诊疗', '自费') from fin_com_compare b where e.item_code = b .his_code and b.pact_code = '20'), '自费') ----when e.si_confirm_flag = '0' then nvl((select decode(b.center_item_grade, '1', '甲类项目', '2', '乙类项目', '3', '自费', '4', '特殊检查', '5', '特殊治疗', '6', '特殊材料', '7', '普通诊疗', '自费') from fin_com_compare b where e.item_code = b.his_code and b.pact_code = '20'), '自费') when e.si_confirm_flag = '1' then case ---when e.si_confirm_type = '1' then '甲类项目' ---when e.si_confirm_type = '2' then '乙类项目' when e.si_confirm_type = '1' then '甲类药品' when e.si_confirm_type = '2' then '乙类药品' else '自费' end end ) as grade, (case when e.si_confirm_flag = '0' then nvl((select decode(b.center_item_grade, '1', '5', '2', '6', '3', '7', '4', '2', '5', '3', '6', '4', '7', '1', '7') from fin_com_compare b where e.item_code = b.his_code and b.pact_code = '20'), '7') ----when e.si_confirm_flag = '0' then nvl((select decode(b.center_item_grade, '1', '甲类项目', '2', '乙类项目', '3', '自费', '4', '特殊检查', '5', '特殊治疗', '6', '特殊材料', '7', '普通诊疗', '自费') from fin_com_compare b where e.item_code = b.his_code and b.pact_code = '20'), '自费') when e.si_confirm_flag = '1' then case ---when e.si_confirm_type = '1' then '甲类项目' ---when e.si_confirm_type = '2' then '乙类项目' when e.si_conf irm_type = '1' then '5' when e.si_confirm_type = '2' then '6' else '7' end end ) as orderNo, c.name, --最小费用 g.gb_code, --国家编码 e.item_name, g.specs, e.qty, e.current_unit, e.unit_price, nvl((select i.limit_price from fin_com_undruginfolocal i where e.item_code = i.item_code and e.pact_code = i.pact_code), 0) as limit_price, e.tot_cost, e.fee_date, d.empl_name, e.si_confirm_flag, e.si_confirm_type from fin_ipb_itemlist e, com_dictionary c, com_employee d, fin_com_undruginfo g where e.item_code = g.item_code and e.fee_code = c.code and e.fee_opercode = d.empl_code and c.type = 'MINFEE' and e.inpatient_no = 'ZY030000187880' ) f where f.fee_date >= to_date('2013-1-22 11:46:17', 'yyyy-mm-dd hh24:mi:ss') and f.fee_date <= to_date('2013-1-25 0:00:00', 'yyyy-mm-dd hh24:mi:ss') and f.grade like '自费' and f.name like '%%' order by f.orderNo, f.Grade, f.name, f.item_code
9pddx52tm3jjs SELECT qc.ID, qc.FILEID, qc.INPATIENT_NO, --住院流水号 qc.NAME, --患者姓名 qc.DEPT_CODE, --科室编码 re.COURSE_DATE, --病程日期 re.COURSE_TIME, --病程时间 re.MEMO, --查房医师 re.COURSE_TYPE, --病程记录类型ID、 re.COURSE_NAME, --病历类型名称 qc.STATE, --状态 0 建立 1住院医师签名 2 封存 3 作废 4主治医师签名 5主任(副主任医师签名) qc.CREATEDATE, --建立时间 qc.CREATEOPER_CODE, --建立人 qc.SAVEDATE, --签名日期 qc.SAVEOPER_CODE, --签名操作员 qc.SEALDATE, --封存日期 qc.SEALOPER_CODE, --封存人 qc.DELETEDATE, --删除日期 qc.DELETEOPER_CODE, --删除人 (SELECT EMPL_NAME FROM COM_EMPLOYEE WHERE EMPL_CODE = DELETEOPER_CODE) DELETEOPER_NAME, --删除人姓名 INTERN_SAVEDATE, --实习生签名日期 INTERN_SAVEOPER_CODE, --实习生签名操作员 SUPER_SAVEDATE, --主治签名日期 SUPER_SAVEOPER_CODE, --上级签名操作员 SENIOR_SAVEDATE, --主任签名日期 SENIOR_SAVEOPER_CODE, --主任签名操作员 (SELECT EMPL_NAME FROM COM_EMPLOYEE WHERE EMPL_CODE = INTERN_SAVEOPER_CODE) INTERNOPER_NAME, --生习生签名姓名 (SELECT EMPL_NAME FROM COM_EMPLOYEE WHERE EMPL_CODE = SAVEOPER_CODE) SAVEOPER_NAME, --住院医生签名姓名 (SELECT EMPL_NAME FROM COM_EMPLOYEE WHERE EMPL_CODE = SUPER_SAVEOPER_CODE) SUPEROPER_NAME, --主治医生签名姓名 (SELECT EMPL_NAME FROM COM_EMPLOYEE WHERE EMPL_CODE = SENIOR_SAVEOPER_CODE) SENIORSAVEOPER_NAME, --主任医生签名姓名 (SELECT EMPL_NAME FROM COM_EMPLOYEE WHERE EMPL_CODE = CREATEOPER_CODE) CREATEOPER_NAME, --添加病程医生姓名 (SELECT EMPL_NAME FROM COM_EMPLOYEE WHERE EMPL_CODE = SEALOPER_CODE) SEALOPER_NAME, --封存医生姓名 re.EMR_NAME, --病历名称 re.SORTID --排序号 FROM EMR_COURSERECORD_QCDATA qc, emr_courserecord re WHERE RE.INPATIENT_NO = 'ZY020000169571' AND RE.ID = QC.ID AND STATE <> 3 ORDER BY RE.COURSE_DATE, to_date(nvl(to_single_byte(RE.Course_Time), '00:00'), 'hh24:mi'), RE.SORTID
9ptrsg5rz0qnb select distinct t.dept_code from met_ipm_execundrug t, fin_ipr_inmaininfo f where (t.exec_dpcd = 'all' or 'all' = 'all') and t.exec_dpcd != t.dept_code -- and t.dept_code = 'all' and (t.exec_flag = '0' or t.qty_tot > (select sum(nvl(m.confirm_number, 0)) from met_tec_inpatientconfirm m where t.exec_sqn = m.exec_sqn and t.mo_order = m.mo_order)) and t.VALID_FLAG = fun_get_valid and t.inpatient_no = f.inpatient_no and f.in_state = 'I'
9qdjr6atg7cf5 SELECT drug_flag, sys_class, fee_code, item_code, item_name, en_name, pack_qty, specs, dose_code, spell_code, wb_code, user_code, cus_name, cus_spell_code, cus_wb_code, cus_user_code, unit_price, child_price, sp_price, pack_unit, min_unit, now_store, exe_dept, gf_flag, usage_code, freq_code, dose_unit, shenxz, shixz, zf, needbespeak, base_dose, CONFIRM_FLAG, split_type, LACK_FLAG, special_check, once_dose, other_name, other_spell, default_sample, unitflag FROM view_cli_itemlist where (dept_code = '6206' OR dept_code = 'undrug') and item_code = 'F00000009799'
abu6jqqz40bh7 select HAPPEN_NO, SHIFT_TYPE, OLD_DATA_CODE, OLD_DATA_NAME, NEW_DATA_CODE, NEW_DATA_NAME, mark, SHIFT_CAUSE, OPER_CODE, OPER_Date from com_shiftdata where clinic_no='ZY070000183801' order by oper_date
ansgd0s3pmf06 SELECT control_value --控制参数值 FROM com_controlargument --控制参数表 WHERE control_code = 'EPR234'
azh44vdpcug2t SELECT drug_flag, sys_class, fee_code, item_code, item_name, en_name, pack_qty, specs, dose_code, spell_code, wb_code, user_code, cus_name, cus_spell_code, cus_wb_code, cus_user_code, unit_price, child_price, sp_price, pack_unit, min_unit, now_store, exe_dept, gf_flag, usage_code, freq_code, dose_unit, shenxz, shixz, zf, needbespeak, base_dose, CONFIRM_FLAG, split_type, LACK_FLAG, special_check, once_dose, other_name, other_spell, default_sample, unitflag FROM view_cli_itemlist where (dept_code = '6206' OR dept_code = 'undrug') and item_code = 'F00000003127'
b4ag9zjst5kwp SELECT qc.ID, qc.FILEID, qc.INPATIENT_NO, --住院流水号 qc.NAME, --患者姓名 qc.DEPT_CODE, --科室编码 re.COURSE_DATE, --病程日期 re.COURSE_TIME, --病程时间 re.MEMO, --查房医师 re.COURSE_TYPE, --病程记录类型ID、 re.COURSE_NAME, --病历类型名称 qc.STATE, --状态 0 建立 1住院医师签名 2 封存 3 作废 4主治医师签名 5主任(副主任医师签名) qc.CREATEDATE, --建立时间 qc.CREATEOPER_CODE, --建立人 qc.SAVEDATE, --签名日期 qc.SAVEOPER_CODE, --签名操作员 qc.SEALDATE, --封存日期 qc.SEALOPER_CODE, --封存人 qc.DELETEDATE, --删除日期 qc.DELETEOPER_CODE, --删除人 (SELECT EMPL_NAME FROM COM_EMPLOYEE WHERE EMPL_CODE = DELETEOPER_CODE) DELETEOPER_NAME, --删除人姓名 INTERN_SAVEDATE, --实习生签名日期 INTERN_SAVEOPER_CODE, --实习生签名操作员 SUPER_SAVEDATE, --主治签名日期 SUPER_SAVEOPER_CODE, --上级签名操作员 SENIOR_SAVEDATE, --主任签名日期 SENIOR_SAVEOPER_CODE, --主任签名操作员 (SELECT EMPL_NAME FROM COM_EMPLOYEE WHERE EMPL_CODE = INTERN_SAVEOPER_CODE) INTERNOPER_NAME, --生习生签名姓名 (SELECT EMPL_NAME FROM COM_EMPLOYEE WHERE EMPL_CODE = SAVEOPER_CODE) SAVEOPER_NAME, --住院医生签名姓名 (SELECT EMPL_NAME FROM COM_EMPLOYEE WHERE EMPL_CODE = SUPER_SAVEOPER_CODE) SUPEROPER_NAME, --主治医生签名姓名 (SELECT EMPL_NAME FROM COM_EMPLOYEE WHERE EMPL_CODE = SENIOR_SAVEOPER_CODE) SENIORSAVEOPER_NAME, --主任医生签名姓名 (SELECT EMPL_NAME FROM COM_EMPLOYEE WHERE EMPL_CODE = CREATEOPER_CODE) CREATEOPER_NAME, --添加病程医生姓名 (SELECT EMPL_NAME FROM COM_EMPLOYEE WHERE EMPL_CODE = SEALOPER_CODE) SEALOPER_NAME, --封存医生姓名 re.EMR_NAME, --病历名称 re.SORTID --排序号 FROM EMR_COURSERECORD_QCDATA qc, emr_courserecord re WHERE RE.INPATIENT_NO = 'ZY030000210729' AND RE.ID = QC.ID AND STATE <> 3 ORDER BY RE.COURSE_DATE, to_date(nvl(to_single_byte(RE.Course_Time), '00:00'), 'hh24:mi'), RE.SORTID
b506nt1b8agab SELECT drug_flag, sys_class, fee_code, item_code, item_name, en_name, pack_qty, specs, dose_code, spell_code, wb_code, user_code, cus_name, cus_spell_code, cus_wb_code, cus_user_code, unit_price, child_price, sp_price, pack_unit, min_unit, now_store, exe_dept, gf_flag, usage_code, freq_code, dose_unit, shenxz, shixz, zf, needbespeak, base_dose, CONFIRM_FLAG, split_type, LACK_FLAG, special_check, once_dose, other_name, other_spell, default_sample, unitflag FROM view_cli_itemlist where (dept_code = '6206' OR dept_code = 'undrug') and item_code = 'F00000007295'
brpvayyf0vz70 SELECT qc.ID, qc.FILEID, qc.INPATIENT_NO, --住院流水号 qc.NAME, --患者姓名 qc.DEPT_CODE, --科室编码 re.COURSE_DATE, --病程日期 re.COURSE_TIME, --病程时间 re.MEMO, --查房医师 re.COURSE_TYPE, --病程记录类型ID、 re.COURSE_NAME, --病历类型名称 qc.STATE, --状态 0 建立 1住院医师签名 2 封存 3 作废 4主治医师签名 5主任(副主任医师签名) qc.CREATEDATE, --建立时间 qc.CREATEOPER_CODE, --建立人 qc.SAVEDATE, --签名日期 qc.SAVEOPER_CODE, --签名操作员 qc.SEALDATE, --封存日期 qc.SEALOPER_CODE, --封存人 qc.DELETEDATE, --删除日期 qc.DELETEOPER_CODE, --删除人 (SELECT EMPL_NAME FROM COM_EMPLOYEE WHERE EMPL_CODE = DELETEOPER_CODE) DELETEOPER_NAME, --删除人姓名 INTERN_SAVEDATE, --实习生签名日期 INTERN_SAVEOPER_CODE, --实习生签名操作员 SUPER_SAVEDATE, --主治签名日期 SUPER_SAVEOPER_CODE, --上级签名操作员 SENIOR_SAVEDATE, --主任签名日期 SENIOR_SAVEOPER_CODE, --主任签名操作员 (SELECT EMPL_NAME FROM COM_EMPLOYEE WHERE EMPL_CODE = INTERN_SAVEOPER_CODE) INTERNOPER_NAME, --生习生签名姓名 (SELECT EMPL_NAME FROM COM_EMPLOYEE WHERE EMPL_CODE = SAVEOPER_CODE) SAVEOPER_NAME, --住院医生签名姓名 (SELECT EMPL_NAME FROM COM_EMPLOYEE WHERE EMPL_CODE = SUPER_SAVEOPER_CODE) SUPEROPER_NAME, --主治医生签名姓名 (SELECT EMPL_NAME FROM COM_EMPLOYEE WHERE EMPL_CODE = SENIOR_SAVEOPER_CODE) SENIORSAVEOPER_NAME, --主任医生签名姓名 (SELECT EMPL_NAME FROM COM_EMPLOYEE WHERE EMPL_CODE = CREATEOPER_CODE) CREATEOPER_NAME, --添加病程医生姓名 (SELECT EMPL_NAME FROM COM_EMPLOYEE WHERE EMPL_CODE = SEALOPER_CODE) SEALOPER_NAME, --封存医生姓名 re.EMR_NAME, --病历名称 re.SORTID --排序号 FROM EMR_COURSERECORD_QCDATA qc, emr_courserecord re WHERE RE.INPATIENT_NO = 'ZY040000131798' AND RE.ID = QC.ID AND STATE <> 3 ORDER BY RE.COURSE_DATE, to_date(nvl(to_single_byte(RE.Course_Time), '00:00'), 'hh24:mi'), RE.SORTID
bsu4js8s8m9hf SELECT drug_flag, sys_class, fee_code, item_code, item_name, en_name, pack_qty, specs, dose_code, spell_code, wb_code, user_code, cus_name, cus_spell_code, cus_wb_code, cus_user_code, unit_price, child_price, sp_price, pack_unit, min_unit, now_store, exe_dept, gf_flag, usage_code, freq_code, dose_unit, shenxz, shixz, zf, needbespeak, base_dose, CONFIRM_FLAG, split_type, LACK_FLAG, special_check, once_dose, other_name, other_spell, default_sample, unitflag FROM view_cli_itemlist where (dept_code = '6206' OR dept_code = 'undrug') and item_code = '950'
ctdzngdump3wa select * from ( select (case when a.si_confirm_flag = '0' then nvl((select decode(b.center_item_grade, '1', '甲类药品', '2', '乙类药品', '3', '自费', '4', '特殊检查', '5', '特殊治疗', '6', '特殊材料', '7', '普通诊疗', '自费') from fin_com_compare b where a.drug_code = b.his_code and b.pact_code = '61'), '自费') ---when a.si_confirm_flag = '0' then nvl((select decode(b.center_item_grade, '1', '甲类项目', '2', '乙类项目', '3', '自费', '4', '特殊检查', '5', '特殊治疗', '6', '特殊材料', '7', '普通诊疗', '自费') from fin_com_compare b where a.drug_code = b.his_code and b.pact_code = '61'), '自费') when a.si_confirm_flag = '1' then case ---when a.si_confirm_type = '1' then '甲类项目' ---when a.si_confirm_type = '2' then '乙类项目' when a.si_confirm_type = '1' then '甲类药品' when a.si_confirm_type = '2' then '乙类药品' else '自费' end end ) as grade, (case when a.si_confirm_flag = '0' then nvl((select decode(b.center_item_grade, '1', '5', '2', '6', '3', '7', '4', '2', '5', '3', '6', '4', '7', '1', '7') from fin_com_compare b where a.drug_code = b.his_code and b.pact_code = '61'), '7') ---when a.si_confirm_flag = '0' then nvl((select decode(b.center_item_grade, '1', '甲类项目', '2', '乙类项目', '3', '自费', '4', '特殊检查', '5', '特殊治疗', '6', '特殊材料', '7', '普通诊疗', '自费') from fin_com_compare b whe re a.drug_code = b.his_code and b.pact_code = '61'), '自费') when a.si_confirm_flag = '1' then case ---when a.si_confirm_type = '1' then '甲类项目' ---when a.si_confirm_type = '2' then '乙类项目' when a.si_confirm_type = '1' then '5' when a.si_confirm_type = '2' then '6' else '7' end end ) as orderNo, c.name, h.gb_code as item_code, a.drug_name as item_name, a.specs, --规格 a.qty, --数量 a.current_unit, -- 当前单位 a.unit_price, -- 单价 0 as limit_price, a.tot_cost, -- 计价金额 a.fee_date, --计费时间 d.empl_name, --操作员 a.si_confirm_flag, a.si_confirm_type from fin_ipb_medicinelist a , com_dictionary c, com_employee d , pha_com_baseinfo h where a.fee_code = c.code and a.drug_code = h.drug_code and a.fee_opercode = d.empl_code and c.type = 'MINFEE' and a.inpatient_no = 'ZY030000145527' union all select (case when e.si_confirm_flag = '0' then nvl((select decode(b.center_item_grade, '1', '甲类药品', '2', '乙类药品', '3', '自费', '4', '特殊检查', '5', '特殊治疗', '6', '特殊材料', '7', '普通诊疗', '自费') from fin_com_compare b where e.item_code = b .his_code and b.pact_code = '61'), '自费') ----when e.si_confirm_flag = '0' then nvl((select decode(b.center_item_grade, '1', '甲类项目', '2', '乙类项目', '3', '自费', '4', '特殊检查', '5', '特殊治疗', '6', '特殊材料', '7', '普通诊疗', '自费') from fin_com_compare b where e.item_code = b.his_code and b.pact_code = '61'), '自费') when e.si_confirm_flag = '1' then case ---when e.si_confirm_type = '1' then '甲类项目' ---when e.si_confirm_type = '2' then '乙类项目' when e.si_confirm_type = '1' then '甲类药品' when e.si_confirm_type = '2' then '乙类药品' else '自费' end end ) as grade, (case when e.si_confirm_flag = '0' then nvl((select decode(b.center_item_grade, '1', '5', '2', '6', '3', '7', '4', '2', '5', '3', '6', '4', '7', '1', '7') from fin_com_compare b where e.item_code = b.his_code and b.pact_code = '61'), '7') ----when e.si_confirm_flag = '0' then nvl((select decode(b.center_item_grade, '1', '甲类项目', '2', '乙类项目', '3', '自费', '4', '特殊检查', '5', '特殊治疗', '6', '特殊材料', '7', '普通诊疗', '自费') from fin_com_compare b where e.item_code = b.his_code and b.pact_code = '61'), '自费') when e.si_confirm_flag = '1' then case ---when e.si_confirm_type = '1' then '甲类项目' ---when e.si_confirm_type = '2' then '乙类项目' when e.si_conf irm_type = '1' then '5' when e.si_confirm_type = '2' then '6' else '7' end end ) as orderNo, c.name, --最小费用 g.gb_code, --国家编码 e.item_name, g.specs, e.qty, e.current_unit, e.unit_price, nvl((select i.limit_price from fin_com_undruginfolocal i where e.item_code = i.item_code and e.pact_code = i.pact_code), 0) as limit_price, e.tot_cost, e.fee_date, d.empl_name, e.si_confirm_flag, e.si_confirm_type from fin_ipb_itemlist e, com_dictionary c, com_employee d, fin_com_undruginfo g where e.item_code = g.item_code and e.fee_code = c.code and e.fee_opercode = d.empl_code and c.type = 'MINFEE' and e.inpatient_no = 'ZY030000145527' ) f where f.fee_date >= to_date('2013-1-16 10:32:14', 'yyyy-mm-dd hh24:mi:ss') and f.fee_date <= to_date('2013-1-25 0:00:00', 'yyyy-mm-dd hh24:mi:ss') and f.grade like '自费' and f.name like '%%' order by f.orderNo, f.Grade, f.name, f.item_code
d67z0b952pmj3insert into emr_courserecord t ( t.data, --内容 t.id, --病程流水号 t.fileid, --病程文件号 t.inpatient_no, --患者流水号 t.name, --患者姓名 t.dept_code, --住院科室编码 t.memo, --查房医师姓名 t.course_type, --记录类型 t.course_name, --记录类型名称 t.doctor_name, --医师签名 t.oper_date, --操作时间 t.oper_code, --操作人员 t.course_date, --病程记录日期 t.course_time, --病程记录时间 t.emr_name, --病历名称 t.sortid, --排列顺序 t.IsStartNewPage ) values( :a, '308334', --病程流水号 '0', --病程文件号 'ZY040000199102', --患者流水号 '沈能', --患者姓名 '0219', --住院科室编码 '', --查房医师姓名 '0001', --记录类型 '病程记录', --记录类型名称 '', --医师签名 sysdate, '', --操作人员 to_Date('2013-01-23', 'yyyy-mm-dd'), --病程记录日期 '11:15', --病程记录时间 '病程记录', --病历名称 nvl((select max(sortid) + 1 from emr_courserecord y where y.fileid = '0'), 1), --排列顺序 'False' )
d767j7nr3sukk SELECT qc.ID, qc.FILEID, qc.INPATIENT_NO, --住院流水号 qc.NAME, --患者姓名 qc.DEPT_CODE, --科室编码 re.COURSE_DATE, --病程日期 re.COURSE_TIME, --病程时间 re.MEMO, --查房医师 re.COURSE_TYPE, --病程记录类型ID、 re.COURSE_NAME, --病历类型名称 qc.STATE, --状态 0 建立 1住院医师签名 2 封存 3 作废 4主治医师签名 5主任(副主任医师签名) qc.CREATEDATE, --建立时间 qc.CREATEOPER_CODE, --建立人 qc.SAVEDATE, --签名日期 qc.SAVEOPER_CODE, --签名操作员 qc.SEALDATE, --封存日期 qc.SEALOPER_CODE, --封存人 qc.DELETEDATE, --删除日期 qc.DELETEOPER_CODE, --删除人 (SELECT EMPL_NAME FROM COM_EMPLOYEE WHERE EMPL_CODE = DELETEOPER_CODE) DELETEOPER_NAME, --删除人姓名 INTERN_SAVEDATE, --实习生签名日期 INTERN_SAVEOPER_CODE, --实习生签名操作员 SUPER_SAVEDATE, --主治签名日期 SUPER_SAVEOPER_CODE, --上级签名操作员 SENIOR_SAVEDATE, --主任签名日期 SENIOR_SAVEOPER_CODE, --主任签名操作员 (SELECT EMPL_NAME FROM COM_EMPLOYEE WHERE EMPL_CODE = INTERN_SAVEOPER_CODE) INTERNOPER_NAME, --生习生签名姓名 (SELECT EMPL_NAME FROM COM_EMPLOYEE WHERE EMPL_CODE = SAVEOPER_CODE) SAVEOPER_NAME, --住院医生签名姓名 (SELECT EMPL_NAME FROM COM_EMPLOYEE WHERE EMPL_CODE = SUPER_SAVEOPER_CODE) SUPEROPER_NAME, --主治医生签名姓名 (SELECT EMPL_NAME FROM COM_EMPLOYEE WHERE EMPL_CODE = SENIOR_SAVEOPER_CODE) SENIORSAVEOPER_NAME, --主任医生签名姓名 (SELECT EMPL_NAME FROM COM_EMPLOYEE WHERE EMPL_CODE = CREATEOPER_CODE) CREATEOPER_NAME, --添加病程医生姓名 (SELECT EMPL_NAME FROM COM_EMPLOYEE WHERE EMPL_CODE = SEALOPER_CODE) SEALOPER_NAME, --封存医生姓名 re.EMR_NAME, --病历名称 re.SORTID --排序号 FROM EMR_COURSERECORD_QCDATA qc, emr_courserecord re WHERE RE.INPATIENT_NO = 'ZY050000214029' AND RE.ID = QC.ID AND STATE <> 3 ORDER BY RE.COURSE_DATE, to_date(nvl(to_single_byte(RE.Course_Time), '00:00'), 'hh24:mi'), RE.SORTID
f0cd4708fxcmdSELECT "Tbl1005"."ID" "Col1030", "Tbl1005"."TIMES" "Col1031", "Tbl1005"."SN" "Col1032", "Tbl1005"."DIAGNOSETYPE" "Col1033", "Tbl1005"."STATUSCODE" "Col1034", "Tbl1005"."ICDCODE" "Col1035", "Tbl1005"."ICDVER" "Col1036", "Tbl1005"."NAME" "Col1037", "Tbl1005"."ICDM" "Col1038" FROM "HYHIS"."VIEW_SF_OH_SICKDIAGNOSE" "Tbl1005"
f5w65za900wpaSELECT a.EMPL_CODE, --0员工编码 a.EMPL_NAME, --1员工姓名 a.dept_code, --2医生站编码 a.dept_name, --3医生站名称 a.EMPL_TYPE, --4人员类型 D医生 N护士 a.manager_flag, --5管理员标志 1是 0否 a.nurse_dept_code, --6护士站编码 a.nurse_dept_name, --7护士站名称 a.spell_code, --8拼音码 a.wb_code, --9五笔 a.levl_code, --10职级代号 a.login_name, --11登录用户名 a.login_password, --12登录密码 a.levl_name --13职级名称 FROM VIEW_EMR_EMPLOYEE a WHERE a.empl_type='D' order by empl_code
fm2uhffc3vvu7 SELECT drug_flag, sys_class, fee_code, item_code, item_name, en_name, pack_qty, specs, dose_code, spell_code, wb_code, user_code, cus_name, cus_spell_code, cus_wb_code, cus_user_code, unit_price, child_price, sp_price, pack_unit, min_unit, now_store, exe_dept, gf_flag, usage_code, freq_code, dose_unit, shenxz, shixz, zf, needbespeak, base_dose, CONFIRM_FLAG, split_type, LACK_FLAG, special_check, once_dose, other_name, other_spell, default_sample, unitflag FROM view_cli_itemlist where (dept_code = '6206' OR dept_code = 'undrug') and item_code = '955'
fr5adcsknx0jcinsert into emr_courserecord t ( t.data, --内容 t.id, --病程流水号 t.fileid, --病程文件号 t.inpatient_no, --患者流水号 t.name, --患者姓名 t.dept_code, --住院科室编码 t.memo, --查房医师姓名 t.course_type, --记录类型 t.course_name, --记录类型名称 t.doctor_name, --医师签名 t.oper_date, --操作时间 t.oper_code, --操作人员 t.course_date, --病程记录日期 t.course_time, --病程记录时间 t.emr_name, --病历名称 t.sortid, --排列顺序 t.IsStartNewPage ) values( :a, '310319', --病程流水号 '0', --病程文件号 'ZY010000227676', --患者流水号 '杜李胜', --患者姓名 '0206', --住院科室编码 '胡志华', --查房医师姓名 '0003', --记录类型 '副主任医师查房', --记录类型名称 '', --医师签名 sysdate, '', --操作人员 to_Date('2013-01-24', 'yyyy-mm-dd'), --病程记录日期 '09:39', --病程记录时间 '病程记录', --病历名称 nvl((select max(sortid) + 1 from emr_courserecord y where y.fileid = '0'), 1), --排列顺序 'False' )
g01x8p1s2y9x7 SELECT qc.ID, qc.FILEID, qc.INPATIENT_NO, --住院流水号 qc.NAME, --患者姓名 qc.DEPT_CODE, --科室编码 re.COURSE_DATE, --病程日期 re.COURSE_TIME, --病程时间 re.MEMO, --查房医师 re.COURSE_TYPE, --病程记录类型ID、 re.COURSE_NAME, --病历类型名称 qc.STATE, --状态 0 建立 1住院医师签名 2 封存 3 作废 4主治医师签名 5主任(副主任医师签名) qc.CREATEDATE, --建立时间 qc.CREATEOPER_CODE, --建立人 qc.SAVEDATE, --签名日期 qc.SAVEOPER_CODE, --签名操作员 qc.SEALDATE, --封存日期 qc.SEALOPER_CODE, --封存人 qc.DELETEDATE, --删除日期 qc.DELETEOPER_CODE, --删除人 (SELECT EMPL_NAME FROM COM_EMPLOYEE WHERE EMPL_CODE = DELETEOPER_CODE) DELETEOPER_NAME, --删除人姓名 INTERN_SAVEDATE, --实习生签名日期 INTERN_SAVEOPER_CODE, --实习生签名操作员 SUPER_SAVEDATE, --主治签名日期 SUPER_SAVEOPER_CODE, --上级签名操作员 SENIOR_SAVEDATE, --主任签名日期 SENIOR_SAVEOPER_CODE, --主任签名操作员 (SELECT EMPL_NAME FROM COM_EMPLOYEE WHERE EMPL_CODE = INTERN_SAVEOPER_CODE) INTERNOPER_NAME, --生习生签名姓名 (SELECT EMPL_NAME FROM COM_EMPLOYEE WHERE EMPL_CODE = SAVEOPER_CODE) SAVEOPER_NAME, --住院医生签名姓名 (SELECT EMPL_NAME FROM COM_EMPLOYEE WHERE EMPL_CODE = SUPER_SAVEOPER_CODE) SUPEROPER_NAME, --主治医生签名姓名 (SELECT EMPL_NAME FROM COM_EMPLOYEE WHERE EMPL_CODE = SENIOR_SAVEOPER_CODE) SENIORSAVEOPER_NAME, --主任医生签名姓名 (SELECT EMPL_NAME FROM COM_EMPLOYEE WHERE EMPL_CODE = CREATEOPER_CODE) CREATEOPER_NAME, --添加病程医生姓名 (SELECT EMPL_NAME FROM COM_EMPLOYEE WHERE EMPL_CODE = SEALOPER_CODE) SEALOPER_NAME, --封存医生姓名 re.EMR_NAME, --病历名称 re.SORTID --排序号 FROM EMR_COURSERECORD_QCDATA qc, emr_courserecord re WHERE RE.INPATIENT_NO = 'ZY010000227676' AND RE.ID = QC.ID AND STATE <> 3 ORDER BY RE.COURSE_DATE, to_date(nvl(to_single_byte(RE.Course_Time), '00:00'), 'hh24:mi'), RE.SORTID
g1yx0c7rxnuvtSELECT "Tbl1005"."ID" "Col1057", "Tbl1005"."TIMES" "Col1058", "Tbl1005"."SN" "Col1059", "Tbl1005"."ICD_ID" "Col1060", "Tbl1005"."DIAG_TJI" "Col1061", "Tbl1005"."DIAG_NAME" "Col1062", "Tbl1005"."STAT" "Col1063" FROM "HYHIS"."VIEW_SF_MZ_ZDDM" "Tbl1005" ORDER BY "Col1059" ASC
g37zzhdxz360uSelect sysdate from dual
gj50gqh7jrw3mSELECT "Tbl1005"."ID" "Col1043", "Tbl1005"."TIMES" "Col1044", "Tbl1005"."SN" "Col1045", "Tbl1005"."OPERATIONCODE" "Col1046", "Tbl1005"."EMPID" "Col1047", "Tbl1005"."NAME" "Col1048", "Tbl1005"."OPDATE" "Col1049", "Tbl1005"."QIEKOU" "Col1050", "Tbl1005"."YUHE" "Col1051", "Tbl1005"."MAZUI" "Col1052" FROM "HYHIS"."VIEW_SF_OH_SICKOPERATION" "Tbl1005"
gvsd0rfmnpjgu SELECT drug_flag, sys_class, fee_code, item_code, item_name, en_name, pack_qty, specs, dose_code, spell_code, wb_code, user_code, cus_name, cus_spell_code, cus_wb_code, cus_user_code, unit_price, child_price, sp_price, pack_unit, min_unit, now_store, exe_dept, gf_flag, usage_code, freq_code, dose_unit, shenxz, shixz, zf, needbespeak, base_dose, CONFIRM_FLAG, split_type, LACK_FLAG, special_check, once_dose, other_name, other_spell, default_sample, unitflag FROM view_cli_itemlist where (dept_code = '6206' OR dept_code = 'undrug') and item_code = 'F00000042408'

Back to SQL Statistics
Back to Top

Instance Activity Statistics

Back to Top

Instance Activity Stats

StatisticTotalper Secondper Trans
CR blocks created 84 0.13 0.08
DBWR checkpoint buffers written 1,836 2.83 1.73
DBWR checkpoints 0 0.00 0.00
DBWR transaction table writes 21 0.03 0.02
DBWR undo block writes 309 0.48 0.29
IMU CR rollbacks 5 0.01 0.00
IMU Flushes 168 0.26 0.16
IMU Redo allocation size 894,024 1,376.06 844.22
IMU commits 891 1.37 0.84
IMU contention 1 0.00 0.00
IMU ktichg flush 24 0.04 0.02
IMU recursive-transaction flush 0 0.00 0.00
IMU undo allocation size 3,503,440 5,392.42 3,308.25
Parallel operations downgraded to serial 0 0.00 0.00
RowCR - row contention 1 0.00 0.00
RowCR attempts 359 0.55 0.34
RowCR hits 356 0.55 0.34
SQL*Net roundtrips to/from client 329,116 506.57 310.78
active txn count during cleanout 147 0.23 0.14
background timeouts 1,654 2.55 1.56
buffer is not pinned count 32,281,372 49,686.81 30,482.88
buffer is pinned count 58,380,926 89,858.70 55,128.35
bytes received via SQL*Net from client 35,034,836 53,924.88 33,082.94
bytes sent via SQL*Net to client 456,767,817 703,047.45 431,319.94
calls to get snapshot scn: kcmgss 431,611 664.33 407.56
calls to kcmgas 2,209 3.40 2.09
calls to kcmgcs 120 0.18 0.11
change write time 14 0.02 0.01
cleanout - number of ktugct calls 229 0.35 0.22
cleanouts and rollbacks - consistent read gets 28 0.04 0.03
cleanouts only - consistent read gets 37 0.06 0.03
cluster key scan block gets 9,211 14.18 8.70
cluster key scans 2,055 3.16 1.94
commit batch/immediate performed 12 0.02 0.01
commit batch/immediate requested 12 0.02 0.01
commit cleanout failures: callback failure 12 0.02 0.01
commit cleanouts 3,703 5.70 3.50
commit cleanouts successfully completed 3,691 5.68 3.49
commit immediate performed 12 0.02 0.01
commit immediate requested 12 0.02 0.01
commit txn count during cleanout 563 0.87 0.53
concurrency wait time 13 0.02 0.01
consistent changes 814 1.25 0.77
consistent gets 186,343,639 286,816.22 175,961.89
consistent gets - examination 25,673,478 39,516.08 24,243.13
consistent gets direct 2,851 4.39 2.69
consistent gets from cache 186,340,790 286,811.84 175,959.20
cursor authentications 8,979 13.82 8.48
data blocks consistent reads - undo records applied 448 0.69 0.42
db block changes 27,343 42.09 25.82
db block gets 31,423 48.37 29.67
db block gets direct 193 0.30 0.18
db block gets from cache 31,230 48.07 29.49
deferred (CURRENT) block cleanout applications 1,861 2.86 1.76
enqueue conversions 130 0.20 0.12
enqueue releases 21,943 33.77 20.72
enqueue requests 21,943 33.77 20.72
enqueue timeouts 0 0.00 0.00
enqueue waits 0 0.00 0.00
execute count 255,084 392.62 240.87
free buffer inspected 0 0.00 0.00
free buffer requested 484,386 745.56 457.40
heap block compress 158 0.24 0.15
immediate (CR) block cleanout applications 65 0.10 0.06
immediate (CURRENT) block cleanout applications 322 0.50 0.30
index crx upgrade (positioned) 1,292 1.99 1.22
index fast full scans (full) 29 0.04 0.03
index fetch by key 7,532,040 11,593.16 7,112.41
index scans kdiixs1 8,700,807 13,392.10 8,216.06
leaf node 90-10 splits 6 0.01 0.01
leaf node splits 32 0.05 0.03
lob reads 50 0.08 0.05
lob writes 367 0.56 0.35
lob writes unaligned 367 0.56 0.35
logons cumulative 148 0.23 0.14
messages received 2,285 3.52 2.16
messages sent 2,285 3.52 2.16
no buffer to keep pinned count 0 0.00 0.00
no work - consistent read gets 159,848,879 246,036.04 150,943.23
opened cursors cumulative 60,710 93.44 57.33
parse count (failures) 22 0.03 0.02
parse count (hard) 13,211 20.33 12.47
parse count (total) 59,081 90.94 55.79
physical read IO requests 44,037 67.78 41.58
physical read bytes 3,937,525,760 6,060,557.09 3,718,154.64
physical read total IO requests 44,738 68.86 42.25
physical read total bytes 3,948,879,872 6,078,033.10 3,728,876.18
physical read total multi block requests 33,980 52.30 32.09
physical reads 480,655 739.81 453.88
physical reads cache 477,804 735.43 451.18
physical reads cache prefetch 436,268 671.49 411.96
physical reads direct 2,851 4.39 2.69
physical reads direct (lob) 2,826 4.35 2.67
physical reads direct temporary tablespace 78 0.12 0.07
physical reads prefetch warmup 19,028 29.29 17.97
physical write IO requests 1,388 2.14 1.31
physical write bytes 16,621,568 25,583.57 15,695.53
physical write total IO requests 4,268 6.57 4.03
physical write total bytes 41,637,888 64,088.16 39,318.12
physical write total multi block requests 1,272 1.96 1.20
physical writes 2,029 3.12 1.92
physical writes direct 193 0.30 0.18
physical writes direct (lob) 115 0.18 0.11
physical writes direct temporary tablespace 78 0.12 0.07
physical writes from cache 1,836 2.83 1.73
physical writes non checkpoint 1,860 2.86 1.76
pinned cursors current 81 0.12 0.08
recovery blocks read 0 0.00 0.00
recursive calls 306,194 471.29 289.14
redo blocks read for recovery 0 0.00 0.00
redo blocks written 6,839 10.53 6.46
redo entries 11,977 18.43 11.31
redo ordering marks 223 0.34 0.21
redo size 6,414,832 9,873.57 6,057.44
redo subscn max counts 577 0.89 0.54
redo synch time 121 0.19 0.11
redo synch writes 1,035 1.59 0.98
redo wastage 481,184 740.63 454.38
redo write time 123 0.19 0.12
redo writes 1,103 1.70 1.04
rollback changes - undo records applied 1,077 1.66 1.02
rollbacks only - consistent read gets 56 0.09 0.05
rows fetched via callback 6,785,803 10,444.57 6,407.75
session cursor cache hits 18,072 27.82 17.07
session logical reads 186,374,961 286,864.43 175,991.46
shared hash latch upgrades - no wait 661,269 1,017.81 624.43
sorts (memory) 4,153 6.39 3.92
sorts (rows) 2,094,620 3,224.00 1,977.92
sql area evicted 0 0.00 0.00
sql area purged 22 0.03 0.02
switch current to new buffer 294 0.45 0.28
table fetch by rowid 30,282,754 46,610.58 28,595.61
table fetch continued row 679,216 1,045.44 641.37
table scan blocks gotten 133,421,620 205,359.76 125,988.31
table scan rows gotten 9,491,129,139 14,608,546.97 8,962,350.46
table scans (long tables) 264 0.41 0.25
table scans (short tables) 19,587 30.15 18.50
total number of times SMON posted 0 0.00 0.00
transaction rollbacks 12 0.02 0.01
undo change vector size 1,633,160 2,513.73 1,542.17
user calls 368,350 566.96 347.83
user commits 1,047 1.61 0.99
user rollbacks 12 0.02 0.01
workarea executions - optimal 2,307 3.55 2.18

Back to Instance Activity Statistics
Back to Top

Instance Activity Stats - Absolute Values

StatisticBegin ValueEnd Value
session pga memory max 203,537,264 275,365,080
session cursor cache count 1,476 4,123
session uga memory 25,798,610,376 68,771,388,608
opened cursors current 376 751
workarea memory allocated 0 2,377
logons current 54 87
session uga memory max 140,919,440 290,099,104
session pga memory 113,912,752 174,548,280

Back to Instance Activity Statistics
Back to Top

Instance Activity Stats - Thread Activity

StatisticTotalper Hour
log switches (derived) 0 0.00

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)
HIS_DATA 41,221 63 0.00 11.54 486 1 1,494 1.61
HIS_INDEX 1,976 3 0.00 2.17 369 1 0 0.00
SYSAUX 312 0 0.00 1.00 216 0 0 0.00
SYSTEM 421 1 0.00 1.01 74 0 0 0.00
EMRLOG 67 0 0.00 1.00 91 0 0 0.00
TEMP 78 0 0.00 1.00 75 0 0 0.00
UNDOTBS1 3 0 0.00 1.00 51 0 0 0.00
EMR 5 0 0.00 1.00 23 0 0 0.00
USERS 24 0 0.00 1.63 0 0 0 0.00
XUETOU_DATA_ZS 4 0 0.00 1.00 0 0 0 0.00
REPORT 2 0 0.00 1.00 0 0 0 0.00
hisdata 2 0 0.00 1.00 0 0 0 0.00
hisindex 2 0 0.00 1.00 0 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)
EMR /u02/orcl/emr01.dbf 5 0 0.00 1.00 23 0 0 0.00
EMRLOG /u02/orcl/emrlog01.dbf 8 0 0.00 1.00 6 0 0 0.00
EMRLOG /u02/orcl/emrlog02.dbf 59 0 0.00 1.00 85 0 0 0.00
HIS_DATA /u02/orcl/hisdata01.dbf 11,553 18 0.00 13.03 29 0 48 1.67
HIS_DATA /u02/orcl/hisdata02.dbf 11,259 17 0.00 13.33 79 0 48 1.46
HIS_DATA /u02/orcl/hisdata03.dbf 18,409 28 0.00 9.50 378 1 1,398 1.61
HIS_INDEX /u02/orcl/his_index01.dbf 1,126 2 0.00 2.14 168 0 0 0.00
HIS_INDEX /u02/orcl/his_index02.dbf 850 1 0.00 2.20 201 0 0 0.00
REPORT /u02/orcl/report.dbf 2 0 0.00 1.00 0 0 0 0.00
SYSAUX /u01/orcl/sysaux01.dbf 312 0 0.00 1.00 216 0 0 0.00
SYSTEM /u01/orcl/system01.dbf 421 1 0.00 1.01 74 0 0 0.00
TEMP /u01/orcl/temp01.dbf 78 0 0.00 1.00 75 0 0  
UNDOTBS1 /u01/orcl/undotbs01.dbf 3 0 0.00 1.00 51 0 0 0.00
USERS /u01/orcl/users01.dbf 24 0 0.00 1.63 0 0 0 0.00
XUETOU_DATA_ZS /u02/orcl/xuetou_data2.dbf 4 0 0.00 1.00 0 0 0 0.00
hisdata /u02/orcl/his1.dbf 2 0 0.00 1.00 0 0 0 0.00
hisindex /u02/orcl/his2.dbf 2 0 0.00 1.00 0 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 759,936 100 186,067,134 477,832 1,836 0 0 1,494


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 12 749 1761 589770 589770    
E 0 12 682 2316 589770 589770    

Back to Advisory Statistics
Back to Top

Buffer Pool Advisory

No data exists for this section of the report.

Back to Advisory Statistics
Back to Top

PGA Aggr Summary

PGA Cache Hit %W/A MB ProcessedExtra W/A MB Read/Written
100.00 368 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 3,072 2,702 117.38 0.00 0.00 0.00 0.00 314,570
E 3,072 2,679 167.36 2.32 1.39 100.00 0.00 314,570

Back to Advisory Statistics
Back to Top

PGA Aggr Target Histogram

Low Optimal High OptimalTotal ExecsOptimal Execs1-Pass ExecsM-Pass Execs
2K 4K 2,109 2,109 0 0
64K 128K 113 113 0 0
512K 1024K 75 75 0 0
1M 2M 3 3 0 0
2M 4M 14 14 0 0
16M 32M 10 10 0 0

Back to Advisory Statistics
Back to Top

PGA Memory Advisory

No data exists for this section of the report.

Back to Advisory Statistics
Back to Top

Shared Pool Advisory

No data exists for this section of the report.

Back to Advisory Statistics
Back to Top

SGA Target Advisory

No data exists for this section of the report.

Back to Advisory Statistics
Back to Top

Streams Pool Advisory

No data exists for this section of the report.

Back to Advisory Statistics
Back to Top

Java Pool Advisory

No data exists for this section of the report.

Back to Advisory Statistics
Back to Top

Wait Statistics

Back to Top

Buffer Wait Statistics

ClassWaitsTotal Wait Time (s)Avg Time (ms)
data block 1,494 2 2

Back to Wait Statistics
Back to Top

Enqueue Activity

No data exists for this section of the report.

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 2.50 1,048 202 3 3714.5/3714.5 0/0 0/0/0/0/0/0

Back to Undo Statistics
Back to Top

Undo Segment Stats

End TimeNum Undo BlocksNumber of TransactionsMax Qry Len (s)Max Tx ConcyTun Ret (mins)STO/ OOS uS/uR/uU/ eS/eR/eU
24-Jan 20:22 2,503 1,048 202 3 3,714 0/0 0/0/0/0/0/0

Back to Undo Statistics
Back to Top

Latch Statistics

Back to Top

Latch Activity

Latch NameGet RequestsPct Get MissAvg Slps /MissWait Time (s)NoWait RequestsPct NoWait Miss
ASM db client latch 430 0.00   0 0  
Consistent RBA 1,100 0.00   0 0  
FAL request queue 14 0.00   0 0  
FAL subheap alocation 14 0.00   0 0  
FOB s.o list latch 663 0.00   0 0  
In memory undo latch 7,551 0.00   0 1,455 0.00
JS queue state obj latch 3,900 0.00   0 0  
JS slv state obj latch 36 0.00   0 0  
KMG MMAN ready and startup request latch 215 0.00   0 0  
KTF sga latch 1 0.00   0 165 0.00
MQL Tracking Latch 0     0 13 0.00
Memory Management Latch 0     0 215 0.00
OS process 372 0.00   0 0  
OS process allocation 495 0.00   0 0  
OS process: request allocation 244 0.00   0 0  
PL/SQL warning settings 326 0.00   0 0  
SGA IO buffer pool latch 33,759 0.00   0 33,759 0.00
SQL memory manager latch 0     0 215 0.00
SQL memory manager workarea list latch 15,369 0.00   0 0  
Shared B-Tree 23 0.00   0 0  
active checkpoint queue latch 1,414 0.00   0 0  
active service list 1,710 0.00   0 726 0.00
archive control 13 0.00   0 0  
archive process latch 243 0.00   0 0  
begin backup scn array 111 0.00   0 0  
cache buffer handles 3,975 0.00   0 0  
cache buffers lru chain 44,886 0.14 0.00 0 6,370,225 0.11
cache table scan latch 0     0 28,535 0.00
channel handle pool latch 244 0.00   0 0  
channel operations parent latch 3,418 0.00   0 0  
checkpoint queue latch 22,107 0.00   0 1,659 0.00
client/application info 1,022 0.00   0 0  
compile environment latch 149 0.00   0 0  
dml lock allocation 3,849 0.00   0 0  
dummy allocation 265 0.00   0 0  
enqueue hash chains 43,886 0.00 0.00 0 0  
enqueues 51,986 0.03 0.00 0 0  
event group latch 138 0.00   0 0  
file cache latch 14 0.00   0 0  
global KZLD latch for mem in SGA 127 0.00   0 0  
hash table column usage latch 0     0 122,682 0.00
instance information 417 0.00   0 0  
interrupt manipulation 2 0.00   0 0  
job workq parent latch 0     0 20 0.00
job_queue_processes parameter latch 21 0.00   0 0  
kks stats 26,406 0.02 0.00 0 0  
kokc descriptor allocation latch 18 0.00   0 0  
ksuosstats global area 2 0.00   0 0  
ktm global data 2 0.00   0 0  
kwqbsn:qsga 23 0.00   0 0  
lgwr LWN SCN 1,119 0.00   0 0  
library cache 632,781 0.10 0.00 0 0  
library cache load lock 976 0.00   0 0  
library cache lock 770,230 0.00 0.00 0 0  
library cache lock allocation 2,299 0.00   0 0  
library cache pin 156,593 0.00 0.00 0 0  
library cache pin allocation 440 0.00   0 0  
list of block allocation 184 0.00   0 0  
loader state object freelist 998 0.00   0 0  
messages 9,049 0.00   0 0  
mostly latch-free SCN 1,162 1.98 0.00 0 0  
multiblock read objects 68,998 0.00   0 0  
ncodef allocation latch 15 0.00   0 0  
object queue header heap 6,432 0.00   0 33 0.00
object queue header operation 502,712 0.00   0 0  
object stats modification 1 0.00   0 0  
parallel query alloc buffer 88 0.00   0 0  
parameter list 1,323 0.00   0 0  
parameter table management 265 0.00   0 0  
policy information 2,919 0.00   0 0  
post/wait queue 1,541 0.00   0 1,035 0.00
process allocation 244 0.00   0 138 0.00
process group creation 244 0.00   0 0  
process queue 1 0.00   0 0  
qmn task queue latch 92 0.00   0 0  
query server freelists 1 0.00   0 0  
query server process 0     0 1 0.00
redo allocation 6,215 0.00   0 11,939 0.00
redo copy 0     0 11,939 0.00
redo writing 5,181 0.00   0 0  
resmgr group change latch 181 0.00   0 0  
resmgr:active threads 266 0.00   0 0  
resmgr:actses change group 139 0.00   0 0  
resmgr:free threads list 265 0.00   0 0  
resmgr:resource group CPU method 106 0.00   0 0  
resmgr:schema config 1 0.00   0 0  
row cache objects 1,337,382 0.03 0.00 0 0  
sequence cache 2,126 0.00   0 0  
session allocation 30,499 0.01 0.00 0 0  
session idle bit 749,396 0.00 0.00 0 0  
session state list latch 579 0.00   0 0  
session switching 545 0.00   0 0  
session timer 313 0.00   0 0  
shared pool 822,676 0.35 0.00 0 0  
sort extent pool 107 0.00   0 0  
state object free list 2 0.00   0 0  
statistics aggregation 336 0.00   0 0  
temp lob duration state obj allocation 27 0.00   0 0  
threshold alerts latch 2 0.00   0 0  
trace latch 33 0.00   0 0  
transaction allocation 161 0.00   0 0  
transaction branch allocation 313 0.00   0 0  
undo global data 6,855 0.00   0 0  
user lock 462 0.00   0 0  

Back to Latch Statistics
Back to Top

Latch Sleep Breakdown

No data exists for this section of the report.

Back to Latch Statistics
Back to Top

Latch Miss Sources

Latch NameWhereNoWait Misses SleepsWaiter Sleeps
event range base latch No latch 0 2,592 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

No data exists for this section of the report.

Back to Segment Statistics
Back to Top

Segments by Physical Reads

No data exists for this section of the report.

Back to Segment Statistics
Back to Top

Segments by Row Lock Waits

No data exists for this section of the report.

Back to Segment Statistics
Back to Top

Segments by ITL Waits

No data exists for this section of the report.

Back to Segment Statistics
Back to Top

Segments by Buffer Busy Waits

No data exists for this section of the report.

Back to Segment Statistics
Back to Top

Dictionary Cache Stats

CacheGet RequestsPct MissScan ReqsPct MissMod ReqsFinal Usage
dc_awr_control 4 0.00 0   2 1
dc_database_links 256 0.00 0   0 1
dc_files 16 100.00 0   0 16
dc_global_oids 649 0.00 0   0 121
dc_histogram_data 89,513 0.10 0   0 1,279
dc_histogram_defs 181,866 0.59 0   0 5,884
dc_object_grants 2 0.00 0   0 23
dc_object_ids 124,481 0.10 0   0 1,600
dc_objects 22,678 0.38 0   0 1,042
dc_profiles 137 0.00 0   0 1
dc_rollback_segments 554 0.00 0   0 214
dc_segments 50,396 0.28 0   13 1,470
dc_sequences 169 3.55 0   169 31
dc_tablespaces 7,426 0.07 0   0 15
dc_usernames 1,383 0.07 0   0 47
dc_users 25,964 0.01 0   0 75


Back to Top

Library Cache Activity

NamespaceGet RequestsPct MissPin RequestsPct MissReloadsInvali- dations
BODY 434 0.00 3,767 0.00 0 0
CLUSTER 8 0.00 9 0.00 0 0
INDEX 64 15.63 586 1.71 0 0
SQL AREA 54,619 48.29 286,119 13.86 21 0
TABLE/PROCEDURE 3,832 4.18 93,180 0.46 0 0
TRIGGER 294 0.00 639 0.00 0 0


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 90.03   1.64 2.35 11 11 55 55
  Freeable 23.50 0.00 0.73 0.37 2   32 32
  SQL 2.12 1.47 0.05 0.04 0 23 45 44
  PL/SQL 1.75 1.02 0.03 0.02 0 0 55 55
E Other 125.15   1.44 1.89 11 11 87 87
  Freeable 34.56 0.00 0.63 0.37 2   55 55
  SQL 4.52 3.93 0.06 0.26 2 23 79 77
  PL/SQL 3.17 1.87 0.04 0.02 0 0 87 87

Back to Memory Statistics
Back to Top

SGA Memory Summary

SGA regionsBegin Size (Bytes)End Size (Bytes) (if different)
Database Buffers 6,442,450,944  
Fixed Size 2,080,504  
Redo Buffers 14,696,448  
Variable Size 1,526,726,920  

Back to Memory Statistics
Back to Top

SGA breakdown difference

PoolNameBegin MBEnd MB% Diff
java free memory 304.00 304.00 0.00
large free memory 128.00 128.00 0.00
shared ASH buffers 15.50 15.50 0.00
shared CCursor 15.35 60.63 295.07
shared PCursor 12.83 53.58 317.65
shared db_block_hash_buckets 45.00 45.00 0.00
shared free memory 711.85 349.45 -50.91
shared library cache 12.86 36.34 182.62
shared private strands 13.84 13.84 0.00
shared sql area 82.40 326.13 295.76
  buffer_cache 6,144.00 6,144.00 0.00
  fixed_sga 1.98 1.98 0.00
  log_buffer 14.02 14.02 0.00

Back to Memory Statistics
Back to Top

Streams Statistics

Back to Top

Streams CPU/IO Usage

No data exists for this section of the report.

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

No data exists for this section of the report.

Back to Streams Statistics
Back to Top

Resource Limit Stats

No data exists for this section of the report.


Back to Top

init.ora Parameters

Parameter NameBegin valueEnd value (if different)
_addm_auto_enable FALSE   
_db_block_numa 1   
_enable_NUMA_optimization FALSE   
audit_file_dest /oracle/app/oracle/admin/orcl/adump   
background_dump_dest /oracle/app/oracle/admin/orcl/bdump   
compatible 10.2.0.5.0   
control_files /u01/orcl/control01.ctl, /u01/orcl/control02.ctl, /u01/orcl/control03.ctl   
core_dump_dest /oracle/app/oracle/admin/orcl/cdump   
db_block_size 8192   
db_cache_size 6442450944   
db_create_file_dest /u02/orcl   
db_domain      
db_file_multiblock_read_count 16   
db_name orcl   
java_pool_size 318767104   
job_queue_processes 20   
large_pool_size 134217728   
local_listener (ADDRESS=(PROTOCOL=tcp)(host=10.1.10.26)(port=1521))   
log_archive_dest_1 LOCATION=/u02/archive   
max_dump_file_size 1024   
max_shared_servers 0   
open_cursors 600   
parallel_max_servers 1   
pga_aggregate_target 3221225472   
processes 900   
query_rewrite_enabled FALSE   
remote_login_passwordfile EXCLUSIVE   
sga_target 0   
shared_pool_size 1073741824   
shared_servers 0   
statistics_level BASIC   
undo_management AUTO   
undo_tablespace UNDOTBS1   
user_dump_dest /oracle/app/oracle/admin/orcl/udump   


Back to Top

End of Report