200996

Hi I converted DAQmx assistant (coversion attached below). I get the following error:
Error 200996 (DAQmx Write Wfm NChan NSamp.vi)
Possible reason(s):
Measurements: Data Transfer Mechanism is not set to Programmed I/O, which is the only value supported when the Sample Mode is Hardware Timed Single Point.
Set your Data Transfer Mechanism to Programmed I/O or change the Sample Mode.
Property: AO.DataXferMech
Corresponding Value: DMA
Property: SampQuant.SampMode
Corresponding Value: Hardware Timed Single Point
Task Name: _unnamedTask<12>
I have not touched the above vi. Could someone tell me how to change one of the above parameters? Could this error occur for another reason, something I inadvertantly canged?
Phuech
Attachments:
DAQ assistant.vi ‏88 KB

Hi Phuech,
Please can you tell me what DAQ card you have?
Also the code you sent doe not look as if the DAQ assistant created it and that was it; you must have modified some of the original code.
The DAQ assistant for a simple AO operation will look like DAQ Assistant2.vi,
The DAQ assistant for a multiple AO operation will look like DAQ Assistant3.vi.
Please can you tell me what you have done to the generated code, and what you want your code to actually do?
Regards
JamesC
NIUK and Ireland
Attachments:
DAQ Assistant2.vi ‏70 KB
DAQ Assistant3.vi ‏71 KB

Similar Messages

  • Query tuning using TKprof

    Hi all,
    I have one procedure which takes normally more time to finish, cpu is normal at that time still the procedure takes more time. TKPROF has been generated and find the output below. As i am new with tkprof, what are the points need to noted and with the tkprof how we can impove the response of the query.
    TKPROF: Release 10.2.0.1.0 - Production on Tue Jan 8 17:03:09 2008
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    Trace file: odsprod_ora_27486.trc
    Sort options: default
    count = number of times OCI procedure was executed
    cpu = cpu time in seconds executing
    elapsed = elapsed time in seconds executing
    disk = number of physical reads of buffers from disk
    query = number of buffers gotten for consistent read
    current = number of buffers gotten in current mode (usually for update)
    rows = number of rows processed by the fetch or execute call
    SELECT B.CITY_CODE||'-'||B.STORE_NO||'-'||B.STORE_SHORT_NAME CITY_STORE,
    RPAD(K1.TDATE,14,' ') TDATE, RPAD(K1.TAMT,14,' ') TAMT, RPAD(K1.NTKT ,9,' ')
    NTKT, K1.POS POS
    FROM
    ( SELECT SUBSTR(STORE_NO,3,6) STNO, TRANS_DATE TDATE, TICKET_AMOUNT TAMT,
    TICKET_NO NTKT, POS_NO POS FROM DEVDBA.S_RET_TICKET_END_REJ WHERE
    TRUNC(RECORD_DATE)=TRUNC(SYSDATE) AND TRAINING_MODE_FLAG=0 AND
    VOID_TICKET_FLAG=0 AND (TICKET_AMOUNT>1000000 OR TICKET_AMOUNT<-1000000 ) )
    K1,DEVDBA.S_SITE_MASTER B WHERE STNO=B.STORE_NO
    call count cpu elapsed disk query current rows
    Parse 1 0.02 0.00 0 0 0 0
    Execute 1 0.00 0.00 0 0 0 0
    Fetch 1 0.39 2.51 4641 4648 0 0
    total 3 0.41 2.52 4641 4648 0 0
    Misses in library cache during parse: 1
    Optimizer mode: ALL_ROWS
    Parsing user id: 86 (ORADMIN) (recursive depth: 1)
    Rows Row Source Operation
    0 NESTED LOOPS (cr=4648 pr=4641 pw=0 time=2518383 us)
    0 TABLE ACCESS FULL S_RET_TICKET_END_REJ (cr=4648 pr=4641 pw=0 time=2518377 us)
    0 TABLE ACCESS BY INDEX ROWID S_SITE_MASTER (cr=0 pr=0 pw=0 time=0 us)
    0 INDEX UNIQUE SCAN PK_SITE_NUM (cr=0 pr=0 pw=0 time=0 us)(object id 98999)
    Rows Execution Plan
    0 SELECT STATEMENT MODE: ALL_ROWS
    0 NESTED LOOPS
    0 TABLE ACCESS MODE: ANALYZED (FULL) OF 'S_RET_TICKET_END_REJ'
    (TABLE)
    0 TABLE ACCESS MODE: ANALYZED (BY INDEX ROWID) OF
    'S_SITE_MASTER' (TABLE)
    0 INDEX MODE: ANALYZED (UNIQUE SCAN) OF 'PK_SITE_NUM' (INDEX
    (UNIQUE))
    Elapsed times include waiting on following events:
    Event waited on Times Max. Wait Total Waited
    ---------------------------------------- Waited ---------- ------------
    db file sequential read 3 0.02 0.04
    db file scattered read 89 0.07 2.19
    BEGIN PROC_RET_REPORT_TEST; END;
    call count cpu elapsed disk query current rows
    Parse 0 0.00 0.00 0 0 0 0
    Execute 1 407.03 714.35 1306018 2069759 0 1
    Fetch 0 0.00 0.00 0 0 0 0
    total 1 407.03 714.35 1306018 2069759 0 1
    Misses in library cache during parse: 0
    Misses in library cache during execute: 1
    Optimizer mode: ALL_ROWS
    Parsing user id: 86 (ORADMIN)
    Elapsed times include waiting on following events:
    Event waited on Times Max. Wait Total Waited
    ---------------------------------------- Waited ---------- ------------
    TCP Socket (KGAS) 43 0.11 0.12
    SQL*Net message to client 1 0.00 0.00
    SQL*Net message from client 1 0.20 0.20
    BEGIN DBMS_OUTPUT.GET_LINES(:LINES, :NUMLINES); END;
    call count cpu elapsed disk query current rows
    Parse 1 0.00 0.00 0 0 0 0
    Execute 1 0.00 0.00 0 3 0 1
    Fetch 0 0.00 0.00 0 0 0 0
    total 2 0.00 0.00 0 3 0 1
    Misses in library cache during parse: 0
    Optimizer mode: ALL_ROWS
    Parsing user id: 86 (ORADMIN)
    Elapsed times include waiting on following events:
    Event waited on Times Max. Wait Total Waited
    ---------------------------------------- Waited ---------- ------------
    SQL*Net message to client 1 0.00 0.00
    SQL*Net message from client 1 0.03 0.03
    OVERALL TOTALS FOR ALL NON-RECURSIVE STATEMENTS
    call count cpu elapsed disk query current rows
    Parse 1 0.00 0.00 0 0 0 0
    Execute 2 407.03 714.35 1306018 2069762 0 2
    Fetch 0 0.00 0.00 0 0 0 0
    total 3 407.03 714.35 1306018 2069762 0 2
    Misses in library cache during parse: 0
    Misses in library cache during execute: 1
    Elapsed times include waiting on following events:
    Event waited on Times Max. Wait Total Waited
    ---------------------------------------- Waited ---------- ------------
    db file scattered read 7444 0.51 106.03
    db file sequential read 9311 0.25 13.64
    TCP Socket (KGAS) 43 0.11 0.12
    SQL*Net message to client 4 0.00 0.00
    SQL*Net message from client 4 201.99 202.27
    OVERALL TOTALS FOR ALL RECURSIVE STATEMENTS
    call count cpu elapsed disk query current rows
    Parse 22 0.05 0.04 0 0 0 0
    Execute 30 0.03 0.02 0 0 0 0
    Fetch 40 0.40 2.57 4646 4883 0 34
    total 92 0.48 2.64 4646 4883 0 34
    Misses in library cache during parse: 10
    Misses in library cache during execute: 5
    Elapsed times include waiting on following events:
    Event waited on Times Max. Wait Total Waited
    ---------------------------------------- Waited ---------- ------------
    db file scattered read 89 0.07 2.19
    db file sequential read 8 0.02 0.08
    3 user SQL statements in session.
    31 internal SQL statements in session.
    34 SQL statements in session.
    1 statement EXPLAINed in this session.
    Trace file: odsprod_ora_27486.trc
    Trace file compatibility: 10.01.00
    Sort options: default
    1 session in tracefile.
    3 user SQL statements in trace file.
    31 internal SQL statements in trace file.
    34 SQL statements in trace file.
    13 unique SQL statements in trace file.
    1 SQL statements EXPLAINed using schema:
    ORADMIN.prof$plan_table
    Default table was used.
    Table was created.
    Table was dropped.
    17240 lines in trace file.
    2 elapsed seconds in trace file.
    Sorry for the formatting,
    Now i have enabled certain event generated trace files for the same procedure, please find the part of o/p below. Now what is the actual problem stating in the trace file.Now this trace file is very big. So only find the particular points
    WAIT #23: nam='db file scattered read' ela= 15889 file#=8 block#=513995 blocks=62 obj#=102475 tim=5857651746404
    WAIT #23: nam='db file sequential read' ela= 52 file#=12 block#=518683 blocks=1 obj#=102476 tim=5857651755104
    ARSING IN CURSOR #25 len=69 dep=2 uid=0 oct=3 lid=0 tim=5857874309691 hv=1471956217 ad='2af8ea78'
    select con#,obj#,rcon#,enabled,nvl(defer,0) from cdef$ where robj#=:1
    END OF STMT
    PARSE #25:c=10000,e=6668,p=0,cr=0,cu=0,mis=1,r=0,dep=2,og=4,tim=5857874309683
    EXEC #25:c=0,e=3780,p=0,cr=0,cu=0,mis=1,r=0,dep=2,og=4,tim=5857874313677
    FETCH #25:c=0,e=22,p=0,cr=1,cu=0,mis=0,r=0,dep=2,og=4,tim=5857874313766
    STAT #25 id=1 cnt=0 pid=0 pos=1 obj=31 op='TABLE ACCESS BY INDEX ROWID CDEF$ (cr=1 pr=0 pw=0 time=25 us)'
    STAT #25 id=2 cnt=0 pid=1 pos=1 obj=52 op='INDEX RANGE SCAN I_CDEF3 (cr=1 pr=0 pw=0 time=18 us)'
    =====================
    PARSING IN CURSOR #25 len=146 dep=2 uid=0 oct=3 lid=0 tim=5857874316480 hv=2107929772 ad='2bedcd80'
    select con#,type#,condlength,intcols,robj#,rcon#,match#,refact,nvl(enabled,0),rowid,cols,nvl(defer,0),mtime,nvl(spare1,0) from cdef$ where obj#=:1
    END OF STMT
    PARSE #25:c=0,e=2534,p=0,cr=0,cu=0,mis=1,r=0,dep=2,og=4,tim=5857874316476
    =====================
    PARSING IN CURSOR #26 len=210 dep=3 uid=0 oct=3 lid=0 tim=5857874317518 hv=864012087 ad='2beb15a0'
    select /*+ rule */ bucket_cnt, row_cnt, cache_cnt, null_cnt, timestamp#, sample_size, minimum, maximum, distcnt, lowval, hival, density, col#, spare1, spare2, avgcln from hist_head$ where obj#=:1 and intcol#=:2
    END OF STMT
    PARSE #26:c=0,e=63,p=0,cr=0,cu=0,mis=0,r=0,dep=3,og=3,tim=5857874317514
    EXEC #26:c=0,e=64,p=0,cr=0,cu=0,mis=0,r=0,dep=3,og=3,tim=5857874317818
    WAIT #26: nam='db file sequential read' ela= 10371 file#=1 block#=1778 blocks=1 obj#=266662 tim=5857874328282
    FETCH #26:c=0,e=10527,p=1,cr=4,cu=0,mis=0,r=1,dep=3,og=3,tim=5857874328383
    STAT #26 id=1 cnt=1 pid=0 pos=1 obj=255 op='TABLE ACCESS BY INDEX ROWID HIST_HEAD$ (cr=4 pr=1 pw=0 time=10521 us)'
    STAT #26 id=2 cnt=1 pid=1 pos=1 obj=257 op='INDEX RANGE SCAN I_HH_OBJ#_INTCOL# (cr=3 pr=0 pw=0 time=30 us)'
    =====================
    PARSING IN CURSOR #26 len=210 dep=3 uid=0 oct=3 lid=0 tim=5857874328696 hv=864012087 ad='2beb15a0'
    select /*+ rule */ bucket_cnt, row_cnt, cache_cnt, null_cnt, timestamp#, sample_size, minimum, maximum, distcnt, lowval, hival, density, col#, spare1, spare2, avgcln from hist_head$ where obj#=:1 and intcol#=:2
    END OF STMT
    EXEC #26:c=0,e=31,p=0,cr=0,cu=0,mis=0,r=0,dep=3,og=3,tim=5857874328692
    FETCH #26:c=0,e=26,p=0,cr=4,cu=0,mis=0,r=1,dep=3,og=3,tim=5857874328815
    STAT #26 id=1 cnt=2 pid=0 pos=1 obj=255 op='TABLE ACCESS BY INDEX ROWID HIST_HEAD$ (cr=8 pr=1 pw=0 time=10545 us)'
    STAT #26 id=2 cnt=2 pid=1 pos=1 obj=257 op='INDEX RANGE SCAN I_HH_OBJ#_INTCOL# (cr=6 pr=0 pw=0 time=44 us)'
    =====================
    PARSING IN CURSOR #26 len=121 dep=3 uid=0 oct=3 lid=0 tim=5857874332429 hv=3150898423 ad='2beb0588'
    select /*+ rule */ bucket, endpoint, col#, epvalue from histgrm$ where obj#=:1 and intcol#=:2 and row#=:3 order by bucket
    END OF STMT
    PARSE #26:c=0,e=3475,p=0,cr=0,cu=0,mis=1,r=0,dep=3,og=3,tim=5857874332424
    EXEC #26:c=0,e=2945,p=0,cr=0,cu=0,mis=1,r=0,dep=3,og=3,tim=5857874335562
    WAIT #26: nam='db file sequential read' ela= 8681 file#=1 block#=1819 blocks=1 obj#=266662 tim=5857874344365
    FETCH #26:c=0,e=9040,p=1,cr=3,cu=0,mis=0,r=10,dep=3,og=3,tim=5857874344669
    STAT #26 id=1 cnt=10 pid=0 pos=1 obj=0 op='SORT ORDER BY (cr=3 pr=1 pw=0 time=8996 us)'
    STAT #26 id=2 cnt=10 pid=1 pos=1 obj=253 op='TABLE ACCESS CLUSTER HISTGRM$ (cr=3 pr=1 pw=0 time=8896 us)'
    STAT #26 id=3 cnt=1 pid=2 pos=1 obj=252 op='INDEX UNIQUE SCAN I_OBJ#_INTCOL# (cr=2 pr=0 pw=0 time=23 us)'
    =====================
    PARSING IN CURSOR #26 len=210 dep=3 uid=0 oct=3 lid=0 tim=5857874345413 hv=864012087 ad='2beb15a0'
    select /*+ rule */ bucket_cnt, row_cnt, cache_cnt, null_cnt, timestamp#, sample_size, minimum, maximum, distcnt, lowval, hival, density, col#, spare1, spare2, avgcln from hist_head$ where obj#=:1 and intcol#=:2
    END OF STMT
    EXEC #26:c=0,e=111,p=0,cr=0,cu=0,mis=0,r=0,dep=3,og=3,tim=5857874345408
    FETCH #26:c=0,e=58,p=0,cr=4,cu=0,mis=0,r=1,dep=3,og=3,tim=5857874345580
    STAT #26 id=1 cnt=3 pid=0 pos=1 obj=255 op='TABLE ACCESS BY INDEX ROWID HIST_HEAD$ (cr=12 pr=1 pw=0 time=10604 us)'
    STAT #26 id=2 cnt=3 pid=1 pos=1 obj=257 op='INDEX RANGE SCAN I_HH_OBJ#_INTCOL# (cr=9 pr=0 pw=0 time=84 us)'
    =====================
    PARSING IN CURSOR #26 len=210 dep=3 uid=0 oct=3 lid=0 tim=5857874345898 hv=864012087 ad='2beb15a0'
    select /*+ rule */ bucket_cnt, row_cnt, cache_cnt, null_cnt, timestamp#, sample_size, minimum, maximum, distcnt, lowval, hival, density, col#, spare1, spare2, avgcln from hist_head$ where obj#=:1 and intcol#=:2
    END OF STMT
    EXEC #26:c=0,e=26,p=0,cr=0,cu=0,mis=0,r=0,dep=3,og=3,tim=5857874345894
    FETCH #26:c=0,e=16,p=0,cr=3,cu=0,mis=0,r=0,dep=3,og=3,tim=5857874346046
    STAT #26 id=1 cnt=3 pid=0 pos=1 obj=255 op='TABLE ACCESS BY INDEX ROWID HIST_HEAD$ (cr=15 pr=1 pw=0 time=10623 us)'
    STAT #26 id=2 cnt=3 pid=1 pos=1 obj=257 op='INDEX RANGE SCAN I_HH_OBJ#_INTCOL# (cr=12 pr=0 pw=0 time=100 us)'
    =====================
    PARSING IN CURSOR #26 len=210 dep=3 uid=0 oct=3 lid=0 tim=5857874346370 hv=864012087 ad='2beb15a0'
    select /*+ rule */ bucket_cnt, row_cnt, cache_cnt, null_cnt, timestamp#, sample_size, minimum, maximum, distcnt, lowval, hival, density, col#, spare1, spare2, avgcln from hist_head$ where obj#=:1 and intcol#=:2
    END OF STMT
    EXEC #26:c=0,e=26,p=0,cr=0,cu=0,mis=0,r=0,dep=3,og=3,tim=5857874346366
    FETCH #26:c=0,e=27,p=0,cr=4,cu=0,mis=0,r=1,dep=3,og=3,tim=5857874346494
    STAT #26 id=1 cnt=4 pid=0 pos=1 obj=255 op='TABLE ACCESS BY INDEX ROWID HIST_HEAD$ (cr=19 pr=1 pw=0 time=10645 us)'
    STAT #26 id=2 cnt=4 pid=1 pos=1 obj=257 op='INDEX RANGE SCAN I_HH_OBJ#_INTCOL# (cr=15 pr=0 pw=0 time=113 us)'
    =====================
    PARSING IN CURSOR #26 len=210 dep=3 uid=0 oct=3 lid=0 tim=5857874346747 hv=864012087 ad='2beb15a0'
    select /*+ rule */ bucket_cnt, row_cnt, cache_cnt, null_cnt, timestamp#, sample_size, minimum, maximum, distcnt, lowval, hival, density, col#, spare1, spare2, avgcln from hist_head$ where obj#=:1 and intcol#=:2
    END OF STMT
    EXEC #26:c=0,e=21,p=0,cr=0,cu=0,mis=0,r=0,dep=3,og=3,tim=5857874346744
    FETCH #26:c=0,e=24,p=0,cr=4,cu=0,mis=0,r=1,dep=3,og=3,tim=5857874346859
    STAT #26 id=1 cnt=5 pid=0 pos=1 obj=255 op='TABLE ACCESS BY INDEX ROWID HIST_HEAD$ (cr=23 pr=1 pw=0 time=10666 us)'
    STAT #26 id=2 cnt=5 pid=1 pos=1 obj=257 op='INDEX RANGE SCAN I_HH_OBJ#_INTCOL# (cr=18 pr=0 pw=0 time=126 us)'
    =====================
    PARSING IN CURSOR #26 len=121 dep=3 uid=0 oct=3 lid=0 tim=5857874347077 hv=3150898423 ad='2beb0588'
    select /*+ rule */ bucket, endpoint, col#, epvalue from histgrm$ where obj#=:1 and intcol#=:2 and row#=:3 order by bucket
    END OF STMT
    EXEC #26:c=0,e=50,p=0,cr=0,cu=0,mis=0,r=0,dep=3,og=3,tim=5857874347073
    WAIT #26: nam='db file sequential read' ela= 10038 file#=1 block#=62670 blocks=1 obj#=266662 tim=5857874357272
    FETCH #26:c=0,e=10206,p=1,cr=3,cu=0,mis=0,r=3,dep=3,og=3,tim=5857874357373
    STAT #26 id=1 cnt=13 pid=0 pos=1 obj=0 op='SORT ORDER BY (cr=6 pr=2 pw=0 time=19206 us)'
    STAT #26 id=2 cnt=13 pid=1 pos=1 obj=253 op='TABLE ACCESS CLUSTER HISTGRM$ (cr=6 pr=2 pw=0 time=19073 us)'
    STAT #26 id=3 cnt=2 pid=2 pos=1 obj=252 op='INDEX UNIQUE SCAN I_OBJ#_INTCOL# (cr=4 pr=0 pw=0 time=47 us)'
    EXEC #25:c=20000,e=47991,p=3,cr=29,cu=0,mis=1,r=0,dep=2,og=4,tim=5857874364704
    FETCH #25:c=0,e=28,p=0,cr=2,cu=0,mis=0,r=0,dep=2,og=4,tim=5857874364807
    STAT #25 id=1 cnt=0 pid=0 pos=1 obj=31 op='TABLE ACCESS BY INDEX ROWID CDEF$ (cr=2 pr=0 pw=0 time=31 us)'
    STAT #25 id=2 cnt=0 pid=1 pos=1 obj=51 op='INDEX RANGE SCAN I_CDEF2 (cr=2 pr=0 pw=0 time=26 us)'
    =====================
    PARSING IN CURSOR #26 len=79 dep=2 uid=0 oct=3 lid=0 tim=5857874369296 hv=1782622679 ad='29ccc320'
    select min(bitmapped) from ts$ where dflmaxext =:1 and bitand(flags,1024) =1024
    END OF STMT
    PARSE #26:c=10000,e=2920,p=0,cr=0,cu=0,mis=1,r=0,dep=2,og=4,tim=5857874369291
    EXEC #26:c=0,e=3231,p=0,cr=0,cu=0,mis=1,r=0,dep=2,og=4,tim=5857874372683
    FETCH #26:c=0,e=177,p=0,cr=18,cu=0,mis=0,r=1,dep=2,og=4,tim=5857874372914
    FETCH #26:c=0,e=1,p=0,cr=0,cu=0,mis=0,r=0,dep=2,og=0,tim=5857874372967
    STAT #26 id=1 cnt=1 pid=0 pos=1 obj=0 op='SORT AGGREGATE (cr=18 pr=0 pw=0 time=189 us)'
    STAT #26 id=2 cnt=1 pid=1 pos=1 obj=16 op='TABLE ACCESS FULL TS$ (cr=18 pr=0 pw=0 time=167 us)'
    =====================
    PARSING IN CURSOR #25 len=79 dep=2 uid=0 oct=3 lid=0 tim=5857874373282 hv=1782622679 ad='29ccc320'
    select min(bitmapped) from ts$ where dflmaxext =:1 and bitand(flags,1024) =1024
    END OF STMT
    PARSE #25:c=0,e=44,p=0,cr=0,cu=0,mis=0,r=0,dep=2,og=4,tim=5857874373279
    EXEC #25:c=0,e=29,p=0,cr=0,cu=0,mis=0,r=0,dep=2,og=4,tim=5857874373433
    FETCH #25:c=0,e=100,p=0,cr=18,cu=0,mis=0,r=1,dep=2,og=4,tim=5857874373569
    FETCH #25:c=0,e=1,p=0,cr=0,cu=0,mis=0,r=0,dep=2,og=0,tim=5857874373617
    STAT #25 id=1 cnt=1 pid=0 pos=1 obj=0 op='SORT AGGREGATE (cr=18 pr=0 pw=0 time=106 us)'
    STAT #25 id=2 cnt=1 pid=1 pos=1 obj=16 op='TABLE ACCESS FULL TS$ (cr=18 pr=0 pw=0 time=95 us)'
    =====================
    PARSING IN CURSOR #26 len=79 dep=2 uid=0 oct=3 lid=0 tim=5857874373766 hv=1782622679 ad='29ccc320'
    select min(bitmapped) from ts$ where dflmaxext =:1 and bitand(flags,1024) =1024
    END OF STMT
    PARSE #26:c=0,e=24,p=0,cr=0,cu=0,mis=0,r=0,dep=2,og=4,tim=5857874373763
    EXEC #26:c=0,e=24,p=0,cr=0,cu=0,mis=0,r=0,dep=2,og=4,tim=5857874373902
    FETCH #26:c=0,e=92,p=0,cr=18,cu=0,mis=0,r=1,dep=2,og=4,tim=5857874374030
    FETCH #26:c=0,e=1,p=0,cr=0,cu=0,mis=0,r=0,dep=2,og=0,tim=5857874374078
    STAT #26 id=1 cnt=1 pid=0 pos=1 obj=0 op='SORT AGGREGATE (cr=18 pr=0 pw=0 time=96 us)'
    STAT #26 id=2 cnt=1 pid=1 pos=1 obj=16 op='TABLE ACCESS FULL TS$ (cr=18 pr=0 pw=0 time=87 us)'
    =====================
    PARSING IN CURSOR #24 len=496 dep=1 uid=86 oct=3 lid=86 tim=5857874377134 hv=2953360709 ad='f2a17790'
    SELECT B.CITY_CODE||'-'||B.STORE_NO||'-'||B.STORE_SHORT_NAME CITY_STORE, RPAD(K1.TDATE,14,' ') TDATE, RPAD(K1.TAMT,14,' ') TAMT, RPAD(K1.NTKT ,9,' ')NTKT, K1.POS POS FROM ( SELECT SUBSTR(STORE_NO,3,6) STNO, TRANS_DATE TDATE, TICKET_AMOUNT TAMT, TICKET_NO NTKT, POS_NO POS FROM DEVDBA.S_RET_TICKET_END_REJ WHERE TRUNC(RECORD_DATE)=TRUNC(SYSDATE) AND TRAINING_MODE_FLAG=0 AND VOID_TICKET_FLAG=0 AND (TICKET_AMOUNT>1000000 OR TICKET_AMOUNT<-1000000 ) )K1,DEVDBA.S_SITE_MASTER B WHERE STNO=B.STORE_NO
    END OF STMT
    PARSE #24:c=60000,e=75793,p=3,cr=86,cu=0,mis=1,r=0,dep=1,og=1,tim=5857874377128
    EXEC #24:c=0,e=53,p=0,cr=0,cu=0,mis=0,r=0,dep=1,og=1,tim=5857874377294
    WAIT #24: nam='db file sequential read' ela= 11063 file#=28 block#=502155 blocks=1 obj#=108859 tim=5857874388592
    WAIT #24: nam='db file scattered read' ela= 12272 file#=28 block#=502156 blocks=5 obj#=108859 tim=5857874401123
    FETCH #24:c=390000,e=2518389,p=4641,cr=4648,cu=0,mis=0,r=0,dep=1,og=1,tim=5857876895883
    =====================
    PARSING IN CURSOR #26 len=79 dep=2 uid=0 oct=3 lid=0 tim=5857876898889 hv=1782622679 ad='29ccc320'
    select min(bitmapped) from ts$ where dflmaxext =:1 and bitand(flags,1024) =1024
    END OF STMT
    PARSE #26:c=0,e=45,p=0,cr=0,cu=0,mis=0,r=0,dep=2,og=4,tim=5857876898885
    EXEC #26:c=0,e=108,p=0,cr=0,cu=0,mis=0,r=0,dep=2,og=4,tim=5857876899153
    FETCH #26:c=0,e=186,p=0,cr=18,cu=0,mis=0,r=1,dep=2,og=4,tim=5857876899385
    FETCH #26:c=0,e=1,p=0,cr=0,cu=0,mis=0,r=0,dep=2,og=0,tim=5857876899435
    STAT #26 id=1 cnt=1 pid=0 pos=1 obj=0 op='SORT AGGREGATE (cr=18 pr=0 pw=0 time=201 us)'
    STAT #26 id=2 cnt=1 pid=1 pos=1 obj=16 op='TABLE ACCESS FULL TS$ (cr=18 pr=0 pw=0 time=171 us)'
    =====================
    PARSING IN CURSOR #26 len=79 dep=2 uid=0 oct=3 lid=0 tim=5857876899687 hv=1782622679 ad='29ccc320'
    select min(bitmapped) from ts$ where dflmaxext =:1 and bitand(flags,1024) =1024
    END OF STMT
    PARSE #26:c=0,e=15,p=0,cr=0,cu=0,mis=0,r=0,dep=2,og=4,tim=5857876899683
    EXEC #26:c=0,e=30,p=0,cr=0,cu=0,mis=0,r=0,dep=2,og=4,tim=5857876899829
    FETCH #26:c=0,e=93,p=0,cr=18,cu=0,mis=0,r=1,dep=2,og=4,tim=5857876899958
    FETCH #26:c=0,e=1,p=0,cr=0,cu=0,mis=0,r=0,dep=2,og=0,tim=5857876900005
    STAT #26 id=1 cnt=1 pid=0 pos=1 obj=0 op='SORT AGGREGATE (cr=18 pr=0 pw=0 time=98 us)'
    STAT #26 id=2 cnt=1 pid=1 pos=1 obj=16 op='TABLE ACCESS FULL TS$ (cr=18 pr=0 pw=0 time=89 us)'
    =====================
    PARSING IN CURSOR #26 len=79 dep=2 uid=0 oct=3 lid=0 tim=5857876900141 hv=1782622679 ad='29ccc320'
    select min(bitmapped) from ts$ where dflmaxext =:1 and bitand(flags,1024) =1024
    END OF STMT
    PARSE #26:c=0,e=14,p=0,cr=0,cu=0,mis=0,r=0,dep=2,og=4,tim=5857876900138
    EXEC #26:c=0,e=24,p=0,cr=0,cu=0,mis=0,r=0,dep=2,og=4,tim=5857876900276
    FETCH #26:c=0,e=92,p=0,cr=18,cu=0,mis=0,r=1,dep=2,og=4,tim=5857876900404
    FETCH #26:c=0,e=0,p=0,cr=0,cu=0,mis=0,r=0,dep=2,og=0,tim=5857876900449
    STAT #26 id=1 cnt=1 pid=0 pos=1 obj=0 op='SORT AGGREGATE (cr=18 pr=0 pw=0 time=96 us)'
    STAT #26 id=2 cnt=1 pid=1 pos=1 obj=16 op='TABLE ACCESS FULL TS$ (cr=18 pr=0 pw=0 time=86 us)'
    =====================
    PARSING IN CURSOR #26 len=79 dep=2 uid=0 oct=3 lid=0 tim=5857876900794 hv=1782622679 ad='29ccc320'
    select min(bitmapped) from ts$ where dflmaxext =:1 and bitand(flags,1024) =1024
    END OF STMT
    PARSE #26:c=0,e=14,p=0,cr=0,cu=0,mis=0,r=0,dep=2,og=4,tim=5857876900790
    EXEC #26:c=0,e=25,p=0,cr=0,cu=0,mis=0,r=0,dep=2,og=4,tim=5857876900933
    FETCH #26:c=0,e=96,p=0,cr=18,cu=0,mis=0,r=1,dep=2,og=4,tim=5857876901066
    FETCH #26:c=0,e=0,p=0,cr=0,cu=0,mis=0,r=0,dep=2,og=0,tim=5857876901114
    STAT #26 id=1 cnt=1 pid=0 pos=1 obj=0 op='SORT AGGREGATE (cr=18 pr=0 pw=0 time=102 us)'
    STAT #26 id=2 cnt=1 pid=1 pos=1 obj=16 op='TABLE ACCESS FULL TS$ (cr=18 pr=0 pw=0 time=92 us)'
    =====================
    PARSING IN CURSOR #26 len=79 dep=2 uid=0 oct=3 lid=0 tim=5857876901304 hv=1782622679 ad='29ccc320'
    select min(bitmapped) from ts$ where dflmaxext =:1 and bitand(flags,1024) =1024
    END OF STMT
    PARSE #26:c=0,e=14,p=0,cr=0,cu=0,mis=0,r=0,dep=2,og=4,tim=5857876901300
    EXEC #26:c=0,e=24,p=0,cr=0,cu=0,mis=0,r=0,dep=2,og=4,tim=5857876901441
    FETCH #26:c=0,e=93,p=0,cr=18,cu=0,mis=0,r=1,dep=2,og=4,tim=5857876901570
    FETCH #26:c=0,e=1,p=0,cr=0,cu=0,mis=0,r=0,dep=2,og=0,tim=5857876901617
    STAT #26 id=1 cnt=1 pid=0 pos=1 obj=0 op='SORT AGGREGATE (cr=18 pr=0 pw=0 time=99 us)'
    STAT #26 id=2 cnt=1 pid=1 pos=1 obj=16 op='TABLE ACCESS FULL TS$ (cr=18 pr=0 pw=0 time=88 us)'
    =====================
    PARSING IN CURSOR #26 len=79 dep=2 uid=0 oct=3 lid=0 tim=5857876901750 hv=1782622679 ad='29ccc320'
    select min(bitmapped) from ts$ where dflmaxext =:1 and bitand(flags,1024) =1024
    END OF STMT
    PARSE #26:c=0,e=14,p=0,cr=0,cu=0,mis=0,r=0,dep=2,og=4,tim=5857876901747
    EXEC #26:c=0,e=23,p=0,cr=0,cu=0,mis=0,r=0,dep=2,og=4,tim=5857876901885
    FETCH #26:c=0,e=93,p=0,cr=18,cu=0,mis=0,r=1,dep=2,og=4,tim=5857876902013
    FETCH #26:c=0,e=1,p=0,cr=0,cu=0,mis=0,r=0,dep=2,og=0,tim=5857876902059
    STAT #26 id=1 cnt=1 pid=0 pos=1 obj=0 op='SORT AGGREGATE (cr=18 pr=0 pw=0 time=98 us)'
    STAT #26 id=2 cnt=1 pid=1 pos=1 obj=16 op='TABLE ACCESS FULL TS$ (cr=18 pr=0 pw=0 time=87 us)'
    =====================
    PARSING IN CURSOR #25 len=72 dep=1 uid=0 oct=3 lid=0 tim=5857876908751 hv=2397574443 ad='2c965cf0'
    SELECT RTRIM(VALUE) FROM V$PARAMETER WHERE UPPER(NAME)='SMTP_OUT_SERVER'
    END OF STMT
    PARSE #25:c=10000,e=12247,p=0,cr=108,cu=0,mis=1,r=0,dep=1,og=1,tim=5857876908746
    EXEC #25:c=0,e=50,p=0,cr=0,cu=0,mis=0,r=0,dep=1,og=1,tim=5857876908896
    =====================
    PARSING IN CURSOR #26 len=79 dep=2 uid=0 oct=3 lid=0 tim=5857876909030 hv=1782622679 ad='29ccc320'
    select min(bitmapped) from ts$ where dflmaxext =:1 and bitand(flags,1024) =1024
    END OF STMT
    PARSE #26:c=0,e=24,p=0,cr=0,cu=0,mis=0,r=0,dep=2,og=4,tim=5857876909026
    EXEC #26:c=0,e=40,p=0,cr=0,cu=0,mis=0,r=0,dep=2,og=4,tim=5857876909183
    FETCH #26:c=0,e=113,p=0,cr=18,cu=0,mis=0,r=1,dep=2,og=4,tim=5857876909331
    FETCH #26:c=0,e=1,p=0,cr=0,cu=0,mis=0,r=0,dep=2,og=0,tim=5857876909378
    STAT #26 id=1 cnt=1 pid=0 pos=1 obj=0 op='SORT AGGREGATE (cr=18 pr=0 pw=0 time=118 us)'
    STAT #26 id=2 cnt=1 pid=1 pos=1 obj=16 op='TABLE ACCESS FULL TS$ (cr=18 pr=0 pw=0 time=107 us)'
    FETCH #25:c=10000,e=7851,p=0,cr=18,cu=0,mis=0,r=1,dep=1,og=1,tim=5857876916780
    =====================
    PARSING IN CURSOR #28 len=53 dep=3 uid=0 oct=3 lid=0 tim=5857876920266 hv=2195068792 ad='2af8a840'
    select timestamp, flags from fixed_obj$ where obj#=:1
    END OF STMT
    PARSE #28:c=0,e=2515,p=0,cr=0,cu=0,mis=1,r=0,dep=3,og=4,tim=5857876920261
    =====================
    PARSING IN CURSOR #29 len=210 dep=4 uid=0 oct=3 lid=0 tim=5857876920858 hv=864012087 ad='2beb15a0'
    select /*+ rule */ bucket_cnt, row_cnt, cache_cnt, null_cnt, timestamp#, sample_size, minimum, maximum, distcnt, lowval, hival, density, col#, spare1, spare2, avgcln from hist_head$ where obj#=:1 and intcol#=:2
    END OF STMT
    PARSE #29:c=0,e=116,p=0,cr=0,cu=0,mis=0,r=0,dep=4,og=3,tim=5857876920853
    EXEC #29:c=0,e=55,p=0,cr=0,cu=0,mis=0,r=0,dep=4,og=3,tim=5857876921133
    FETCH #29:c=0,e=57,p=0,cr=4,cu=0,mis=0,r=1,dep=4,og=3,tim=5857876921228
    STAT #29 id=1 cnt=1 pid=0 pos=1 obj=255 op='TABLE ACCESS BY INDEX ROWID HIST_HEAD$ (cr=4 pr=0 pw=0 time=56 us)'
    STAT #29 id=2 cnt=1 pid=1 pos=1 obj=257 op='INDEX RANGE SCAN I_HH_OBJ#_INTCOL# (cr=3 pr=0 pw=0 time=38 us)'
    =====================
    PARSING IN CURSOR #29 len=210 dep=4 uid=0 oct=3 lid=0 tim=5857876921615 hv=864012087 ad='2beb15a0'
    select /*+ rule */ bucket_cnt, row_cnt, cache_cnt, null_cnt, timestamp#, sample_size, minimum, maximum, distcnt, lowval, hival, density, col#, spare1, spare2, avgcln from hist_head$ where obj#=:1 and intcol#=:2
    END OF STMT
    EXEC #29:c=0,e=22,p=0,cr=0,cu=0,mis=0,r=0,dep=4,og=3,tim=5857876921611
    FETCH #29:c=0,e=24,p=0,cr=4,cu=0,mis=0,r=1,dep=4,og=3,tim=5857876921728
    STAT #29 id=1 cnt=2 pid=0 pos=1 obj=255 op='TABLE ACCESS BY INDEX ROWID HIST_HEAD$ (cr=8 pr=0 pw=0 time=77 us)'
    STAT #29 id=2 cnt=2 pid=1 pos=1 obj=257 op='INDEX RANGE SCAN I_HH_OBJ#_INTCOL# (cr=6 pr=0 pw=0 time=52 us)'
    =====================
    PARSING IN CURSOR #29 len=210 dep=4 uid=0 oct=3 lid=0 tim=5857876921979 hv=864012087 ad='2beb15a0'
    select /*+ rule */ bucket_cnt, row_cnt, cache_cnt, null_cnt, timestamp#, sample_size, minimum, maximum, distcnt, lowval, hival, density, col#, spare1, spare2, avgcln from hist_head$ where obj#=:1 and intcol#=:2
    END OF STMT
    EXEC #29:c=0,e=20,p=0,cr=0,cu=0,mis=0,r=0,dep=4,og=3,tim=5857876921975
    FETCH #29:c=0,e=22,p=0,cr=4,cu=0,mis=0,r=1,dep=4,og=3,tim=5857876922089
    STAT #29 id=1 cnt=3 pid=0 pos=1 obj=255 op='TABLE ACCESS BY INDEX ROWID HIST_HEAD$ (cr=12 pr=0 pw=0 time=95 us)'
    STAT #29 id=2 cnt=3 pid=1 pos=1 obj=257 op='INDEX RANGE SCAN I_HH_OBJ#_INTCOL# (cr=9 pr=0 pw=0 time=65 us)'
    =====================
    PARSING IN CURSOR #29 len=121 dep=4 uid=0 oct=3 lid=0 tim=5857876922285 hv=3150898423 ad='2beb0588'
    select /*+ rule */ bucket, endpoint, col#, epvalue from histgrm$ where obj#=:1 and intcol#=:2 and row#=:3 order by bucket
    END OF STMT
    PARSE #29:c=0,e=64,p=0,cr=0,cu=0,mis=0,r=0,dep=4,og=3,tim=5857876922282
    EXEC #29:c=0,e=48,p=0,cr=0,cu=0,mis=0,r=0,dep=4,og=3,tim=5857876922479
    WAIT #29: nam='db file sequential read' ela= 10352 file#=1 block#=126071 blocks=1 obj#=108859 tim=5857876932944
    WAIT #29: nam='db file sequential read' ela= 6111 file#=1 block#=1844 blocks=1 obj#=108859 tim=5857876939152
    FETCH #29:c=0,e=16726,p=2,cr=3,cu=0,mis=0,r=1,dep=4,og=3,tim=5857876939276
    STAT #29 id=1 cnt=1 pid=0 pos=1 obj=0 op='SORT ORDER BY (cr=3 pr=2 pw=0 time=16738 us)'
    STAT #29 id=2 cnt=1 pid=1 pos=1 obj=253 op='TABLE ACCESS CLUSTER HISTGRM$ (cr=3 pr=2 pw=0 time=16685 us)'
    STAT #29 id=3 cnt=1 pid=2 pos=1 obj=252 op='INDEX UNIQUE SCAN I_OBJ#_INTCOL# (cr=2 pr=1 pw=0 time=10473 us)'
    EXEC #28:c=10000,e=21483,p=2,cr=15,cu=0,mis=1,r=0,dep=3,og=4,tim=5857876941861
    FETCH #28:c=0,e=17,p=0,cr=2,cu=0,mis=0,r=0,dep=3,og=4,tim=5857876941920
    STAT #28 id=1 cnt=0 pid=0 pos=1 obj=706 op='TABLE ACCESS BY INDEX ROWID FIXED_OBJ$ (cr=2 pr=0 pw=0 time=20 us)'
    STAT #28 id=2 cnt=0 pid=1 pos=1 obj=707 op='INDEX UNIQUE SCAN I_FIXED_OBJ$_OBJ# (cr=2 pr=0 pw=0 time=16 us)'
    =====================
    PARSING IN CURSOR #29 len=37 dep=3 uid=0 oct=3 lid=0 tim=5857876944818 hv=1983168772 ad='db809f00'
    select inst_id, banner from x$version
    END OF STMT
    PARSE #29:c=0,e=2672,p=0,cr=0,cu=0,mis=1,r=0,dep=3,og=4,tim=5857876944814
    =====================
    PARSING IN CURSOR #27 len=66 dep=2 uid=0 oct=3 lid=0 tim=5857876947353 hv=3446116166 ad='e5345238'
    select BANNER from GV$VERSION where inst_id = USERENV('Instance')
    END OF STMT
    PARSE #27:c=10000,e=30018,p=2,cr=17,cu=0,mis=1,r=0,dep=2,og=4,tim=5857876947348
    =====================
    PARSING IN CURSOR #28 len=210 dep=2 uid=0 oct=3 lid=0 tim=5857876948195 hv=864012087 ad='2beb15a0'
    select /*+ rule */ bucket_cnt, row_cnt, cache_cnt, null_cnt, timestamp#, sample_size, minimum, maximum, distcnt, lowval, hival, density, col#, spare1, spare2, avgcln from hist_head$ where obj#=:1 and intcol#=:2
    END OF STMT
    EXEC #28:c=0,e=34,p=0,cr=0,cu=0,mis=0,r=0,dep=2,og=3,tim=5857876948191
    FETCH #28:c=0,e=28,p=0,cr=3,cu=0,mis=0,r=0,dep=2,og=3,tim=5857876948315
    =====================
    PARSING IN CURSOR #29 len=210 dep=2 uid=0 oct=3 lid=0 tim=5857876948528 hv=864012087 ad='2beb15a0'
    select /*+ rule */ bucket_cnt, row_cnt, cache_cnt, null_cnt, timestamp#, sample_size, minimum, maximum, distcnt, lowval, hival, density, col#, spare1, spare2, avgcln from hist_head$ where obj#=:1 and intcol#=:2
    END OF STMT
    EXEC #29:c=0,e=22,p=0,cr=0,cu=0,mis=0,r=0,dep=2,og=3,tim=5857876948525
    FETCH #29:c=0,e=13,p=0,cr=3,cu=0,mis=0,r=0,dep=2,og=3,tim=5857876948630
    =====================
    PARSING IN CURSOR #26 len=102 dep=1 uid=0 oct=3 lid=0 tim=5857876951095 hv=2007878721 ad='2a7035f0'
    SELECT 'Mailer by '|| SUBSTR(BANNER,1,INSTR(BANNER,' ')-1)|| ' UTL_MAIL' FROM V$VERSION WHERE ROWNUM<2
    END OF STMT
    PARSE #26:c=10000,e=34172,p=2,cr=23,cu=0,mis=1,r=0,dep=1,og=1,tim=5857876951090
    EXEC #26:c=0,e=46,p=0,cr=0,cu=0,mis=0,r=0,dep=1,og=1,tim=5857876951235
    FETCH #26:c=0,e=31,p=0,cr=0,cu=0,mis=0,r=1,dep=1,og=1,tim=5857876951296
    WAIT #4: nam='TCP Socket (KGAS)' ela= 1812 =2 =0 =0 obj#=108859 tim=5857876957511
    PARSING IN CURSOR #4 len=34 dep=0 uid=86 oct=47 lid=86 tim=5857877083392 hv=1432432939 ad='f22431a8'
    BEGIN PROC_RET_REPORT_TEST; END;
    END OF STMT
    EXEC #4:c=407030000,e=714358039,p=1306018,cr=2069759,cu=0,mis=1,r=1,dep=0,og=1,tim=5857877083386
    WAIT #4: nam='SQL*Net message to client' ela= 3 driver id=1413697536 #bytes=1 p3=0 obj#=108859 tim=5857877086767
    WAIT #4: nam='SQL*Net message from client' ela= 200996 driver id=1413697536 #bytes=1 p3=0 obj#=108859 tim=5857877287847
    =====================
    PARSING IN CURSOR #27 len=52 dep=0 uid=86 oct=47 lid=86 tim=5857877288121 hv=1029988163 ad='2c9c9168'
    BEGIN DBMS_OUTPUT.GET_LINES(:LINES, :NUMLINES); END;
    END OF STMT
    PARSE #27:c=0,e=115,p=0,cr=0,cu=0,mis=0,r=0,dep=0,og=1,tim=5857877288114
    WAIT #27: nam='SQL*Net message to client' ela= 2 driver id=1413697536 #bytes=1 p3=0 obj#=108859 tim=5857877288662
    EXEC #27:c=0,e=637,p=0,cr=3,cu=0,mis=0,r=1,dep=0,og=1,tim=5857877288949
    WAIT #27: nam='SQL*Net message from client' ela= 37034 driver id=1413697536 #bytes=1 p3=0 obj#=108859 tim=5857877326129
    WAIT #0: nam='SQL*Net message to client' ela= 1 driver id=1413697536 #bytes=1 p3=0 obj#=108859 tim=5857877326246
    WAIT #0: nam='SQL*Net message from client' ela= 41706 driver id=1413697536 #bytes=1 p3=0 obj#=108859 tim=5857877367979
    WAIT #0: nam='SQL*Net message to client' ela= 0 driver id=1413697536 #bytes=1 p3=0 obj#=108859 tim=5857877368117
    *** 2008-01-08 16:41:16.179
    WAIT #0: nam='SQL*Net message from client' ela= 201999998 driver id=1413697536 #bytes=1 p3=0 obj#=108859 tim=5858079368156
    XCTEND rlbk=0, rd_only=1
    STAT #25 id=1 cnt=1 pid=0 pos=1 obj=0 op='HASH JOIN (cr=18 pr=0 pw=0 time=7852 us)'
    STAT #25 id=2 cnt=1 pid=1 pos=1 obj=0 op='FIXED TABLE FULL X$KSPPI (cr=0 pr=0 pw=0 time=2990 us)'
    STAT #25 id=3 cnt=1385 pid=1 pos=2 obj=0 op='FIXED TABLE FULL X$KSPPCV (cr=0 pr=0 pw=0 time=2780 us)'
    STAT #26 id=1 cnt=1 pid=0 pos=1 obj=0 op='COUNT STOPKEY (cr=0 pr=0 pw=0 time=38 us)'
    STAT #26 id=2 cnt=1 pid=1 pos=1 obj=0 op='FIXED TABLE FULL X$VERSION (cr=0 pr=0 pw=0 time=31 us)'
    STAT #24 id=1 cnt=0 pid=0 pos=1 obj=0 op='NESTED LOOPS (cr=4648 pr=4641 pw=0 time=2518383 us)'
    STAT #24 id=2 cnt=0 pid=1 pos=1 obj=108859 op='TABLE ACCESS FULL S_RET_TICKET_END_REJ (cr=4648 pr=4641 pw=0 time=2518377 us)'
    STAT #24 id=3 cnt=0 pid=1 pos=2 obj=98998 op='TABLE ACCESS BY INDEX ROWID S_SITE_MASTER (cr=0 pr=0 pw=0 time=0 us)'
    STAT #24 id=4 cnt=0 pid=3 pos=1 obj=98999 op='INDEX UNIQUE SCAN PK_SITE_NUM (cr=0 pr=0 pw=0 time=0 us)'
    Sorry for the length of the post.
    Thanks,
    Jafar

    count = number of times OCI procedure was executed
    cpu = cpu time in seconds executing
    elapsed = elapsed time in seconds executing
    disk = number of physical reads of buffers from disk
    query = number of buffers gotten for consistent read
    current = number of buffers gotten in current mode (usually for update)
    rows = number of rows processed by the fetch or execute call
    SELECT B.CITY_CODE||'-'||B.STORE_NO||'-'||B.STORE_SHORT_NAME CITY_STORE,
    RPAD(K1.TDATE,14,' ') TDATE, RPAD(K1.TAMT,14,' ') TAMT, RPAD(K1.NTKT ,9,' ')
    NTKT, K1.POS POS
    FROM
    ( SELECT SUBSTR(STORE_NO,3,6) STNO, TRANS_DATE TDATE, TICKET_AMOUNT TAMT,
    TICKET_NO NTKT, POS_NO POS FROM DEVDBA.S_RET_TICKET_END_REJ WHERE
    TRUNC(RECORD_DATE)=TRUNC(SYSDATE) AND TRAINING_MODE_FLAG=0 AND
    VOID_TICKET_FLAG=0 AND (TICKET_AMOUNT>1000000 OR TICKET_AMOUNT<-1000000 ) )
    K1,DEVDBA.S_SITE_MASTER B WHERE STNO=B.STORE_NO
    call count cpu elapsed disk query current rows
    Parse 1 0.02 0.00 0 0 0 0
    Execute 1 0.00 0.00 0 0 0 0
    Fetch 1 0.39 2.51 4641 4648 0 0
    total 3 0.41 2.52 4641 4648 0 0
    Misses in library cache during parse: 1
    Optimizer mode: ALL_ROWS
    Parsing user id: 86 (ORADMIN) (recursive depth: 1)
    Rows Row Source Operation
    0 NESTED LOOPS (cr=4648 pr=4641 pw=0 time=2518383 us)
    0 TABLE ACCESS FULL S_RET_TICKET_END_REJ (cr=4648 pr=4641 pw=0 time=2518377 us)
    0 TABLE ACCESS BY INDEX ROWID S_SITE_MASTER (cr=0 pr=0 pw=0 time=0 us)
    0 INDEX UNIQUE SCAN PK_SITE_NUM (cr=0 pr=0 pw=0 time=0 us)(object id 98999)
    Rows Execution Plan
    0 SELECT STATEMENT MODE: ALL_ROWS
    0 NESTED LOOPS
    0 TABLE ACCESS MODE: ANALYZED (FULL) OF 'S_RET_TICKET_END_REJ'
    (TABLE)
    0 TABLE ACCESS MODE: ANALYZED (BY INDEX ROWID) OF
    'S_SITE_MASTER' (TABLE)
    0 INDEX MODE: ANALYZED (UNIQUE SCAN) OF 'PK_SITE_NUM' (INDEX
    (UNIQUE))
    Elapsed times include waiting on following events:
    Event waited on Times Max. Wait Total Waited
    ---------------------------------------- Waited ---------- ------------
    db file sequential read 3 0.02 0.04
    db file scattered read 89 0.07 2.19
    BEGIN PROC_RET_REPORT_TEST; END;
    call count cpu elapsed disk query current rows
    Parse 0 0.00 0.00 0 0 0 0
    Execute 1 407.03 714.35 1306018 2069759 0 1
    Fetch 0 0.00 0.00 0 0 0 0
    total 1 407.03 714.35 1306018 2069759 0 1
    Misses in library cache during parse: 0
    Misses in library cache during execute: 1
    Optimizer mode: ALL_ROWS
    Parsing user id: 86 (ORADMIN)
    Elapsed times include waiting on following events:
    Event waited on Times Max. Wait Total Waited
    ---------------------------------------- Waited ---------- ------------
    TCP Socket (KGAS) 43 0.11 0.12
    SQL*Net message to client 1 0.00 0.00
    SQL*Net message from client 1 0.20 0.20
    BEGIN DBMS_OUTPUT.GET_LINES(:LINES, :NUMLINES); END;
    call count cpu elapsed disk query current rows
    Parse 1 0.00 0.00 0 0 0 0
    Execute 1 0.00 0.00 0 3 0 1
    Fetch 0 0.00 0.00 0 0 0 0
    total 2 0.00 0.00 0 3 0 1
    Misses in library cache during parse: 0
    Optimizer mode: ALL_ROWS
    Parsing user id: 86 (ORADMIN)
    Elapsed times include waiting on following events:
    Event waited on Times Max. Wait Total Waited
    ---------------------------------------- Waited ---------- ------------
    SQL*Net message to client 1 0.00 0.00
    SQL*Net message from client 1 0.03 0.03
    OVERALL TOTALS FOR ALL NON-RECURSIVE STATEMENTS
    call count cpu elapsed disk query current rows
    Parse 1 0.00 0.00 0 0 0 0
    Execute 2 407.03 714.35 1306018 2069762 0 2
    Fetch 0 0.00 0.00 0 0 0 0
    total 3 407.03 714.35 1306018 2069762 0 2
    Misses in library cache during parse: 0
    Misses in library cache during execute: 1
    Elapsed times include waiting on following events:
    Event waited on Times Max. Wait Total Waited
    ---------------------------------------- Waited ---------- ------------
    db file scattered read 7444 0.51 106.03
    db file sequential read 9311 0.25 13.64
    TCP Socket (KGAS) 43 0.11 0.12
    SQL*Net message to client 4 0.00 0.00
    SQL*Net message from client 4 201.99 202.27
    OVERALL TOTALS FOR ALL RECURSIVE STATEMENTS
    call count cpu elapsed disk query current rows
    Parse 22 0.05 0.04 0 0 0 0
    Execute 30 0.03 0.02 0 0 0 0
    Fetch 40 0.40 2.57 4646 4883 0 34
    total 92 0.48 2.64 4646 4883 0 34
    Misses in library cache during parse: 10
    Misses in library cache during execute: 5
    Elapsed times include waiting on following events:
    Event waited on Times Max. Wait Total Waited
    ---------------------------------------- Waited ---------- ------------
    db file scattered read 89 0.07 2.19
    db file sequential read 8 0.02 0.08
    3 user SQL statements in session.
    31 internal SQL statements in session.
    34 SQL statements in session.
    1 statement EXPLAINed in this session.
    Trace file: odsprod_ora_27486.trc
    Trace file compatibility: 10.01.00
    Sort options: default
    1 session in tracefile.
    3 user SQL statements in trace file.
    31 internal SQL statements in trace file.
    34 SQL statements in trace file.
    13 unique SQL statements in trace file.
    1 SQL statements EXPLAINed using schema:
    ORADMIN.prof$plan_table
    Default table was used.
    Table was created.
    Table was dropped.
    17240 lines in trace file.
    2 elapsed seconds in trace file.Message was edited by:
    Maran Viswarayar
    Message was edited by:
    Maran Viswarayar

Maybe you are looking for

  • Is now the time to get an iPod?

    Hello everyone, So I've been avoiding getting an ipod for several years due to a number of reasons. But now I'm finally giving some serious thought into it, with the release of the ipod Classic. While researching I ran into this forum, and am shocked

  • Is it possible to use that in the Alert????

    Dear all, We have a table XTR_BOND, so i want whenever the user enter any value to get that record by anevent alert(After insert for that table) so is it possible to use it like that??? select t.bond_issue_code, t.DESCRIPTION into &bond_issue_code, &

  • Do videos load from a iphone the same as a regular photo?

    do videos download the same as a regular photo?

  • What audio outputs do I have on a p6210f computer

    Is there more than on Audio Out on my computer. If so, show diagram of the outputs. Pauley

  • Producer for PowerPoint - help request

    Hello everyone - Looking for help with "Producer for PowerPoint". This is free software (full name: "Microsoft Producer for PowerPoint 2003") which allows me to sync video with PowerPoint slides. I use it often to upload WMV videos to our web. It wor