Title: ach_tran query

Hi Cherie,

Looks like parallel query kicked in.  It usually throws some odd looking stuff in the explain plan.

HTH
Lisa

    -----Original Message-----
    From:   [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED]]
    Sent:   Monday, August 27, 2001 3:11 PM
    To:     Multiple recipients of list ORACLE-L
    Subject:       

    I am running tkprof and explain plan on the following SQL statement:

    SELECT DISTINCT CNFR_NO,
    SPLT_PAY_TYPE, ACH_AMT
    FROM whse_dbo.ACH_TRAN
    WHERE ACCT_NO = '46807' AND
            TRUNC(TRAN_DT) = TRUNC(TO_DATE('20-JUL-01','DD-MON-YY')) AND
            STATUS = '2' AND
            CNFR_NO >0 AND
            (SPLT_PAY_TYPE = '810' OR
            SPLT_PAY_TYPE = '820' );

    I'm not really looking for advice on tuning this query but rather just
    wanted to have some general questions answered regarding the
    results i got using tkprof.

    This is the first time I've ever run tkprof on a statement and gotten
    an explain plan with :Q in it (followed by numbers).  What does the
    :Q mean?

    Also, there is not hint embedded in the select statement I ran but
    the explain plan output shows hints in the explain plan.  Or at least
    the explain plan list the output in hint format.   Why is it doing that,
    when there were no hints in the original source?

    Thanks in advance,

    Cherie Machler
    Oracle DBA
    Gelco Information Network


    Trace file: /orasoft/oracle/admin/DWPRD02/udump/dwprd02_ora_1787.trc
    Sort options: fchcpu
    ********************************************************************************
    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 DISTINCT CNFR_NO,
    SPLT_PAY_TYPE, ACH_AMT
    FROM whse_dbo.ACH_TRAN
    WHERE ACCT_NO = '46807' AND
            TRUNC(TRAN_DT) = TRUNC(TO_DATE('20-JUL-01','DD-MON-YY')) AND
            STATUS = '2' AND
            CNFR_NO >0 AND
            (SPLT_PAY_TYPE = '810' OR
            SPLT_PAY_TYPE = '820' )

    call     count       cpu    elapsed       disk      query    current
    rows
    ------- ------  -------- ---------- ---------- ---------- ----------
    ----------
    Parse        1      0.02       0.02          0          0          0
    0
    Execute      1      0.03       1.10          0          0         42
    0
    Fetch       30      0.01       1.40          0          0          0
    421
    ------- ------  -------- ---------- ---------- ---------- ----------
    ----------
    total       32      0.06       2.52          0          0         42
    421

    Misses in library cache during parse: 1
    Optimizer goal: CHOOSE
    Parsing user id: 1985  (WHSE_DBO)

    Rows     Execution Plan
    -------  ---------------------------------------------------
          0  SELECT STATEMENT   GOAL: CHOOSE
          0   SORT (UNIQUE) [:Q5497001]
                 SELECT DISTINCT C0,C1,C2 FROM :Q5497000
          0    PARTITION (CONCATENATED) [:Q5497001]
          0     INLIST ITERATOR (CONCATENATED) [:Q5497001]
          0      TABLE ACCESS   GOAL: ANALYZED (BY LOCAL INDEX ROWID) OF
                     'ACH_TRAN' [:Q5497000]
         SELECT /*+ INDEX(A1 "ACH_TRAN_IDX4") */ A1."CNFR_NO" C0,
                    A1."SPLT_PAY_TYPE" C1,A1."ACH_AMT" C2 FROM
                    "WHSE_DBO"."ACH_TRAN" PARTITION(:B1)  A1 WHERE
                    (A1."SPLT_PAY_TYPE"='810' OR A1."SPLT_PAY_TYPE"='820') AND
                    A1."STATUS"='2' AND A1."ACCT_NO"=46807 AND
                    TRUNC(A1."TRAN_DT")=TRUNC(TO_DATE('20-JUL-01','DD-MON-YY'))
                      AND A1."CNFR_NO">0
          0       INDEX   GOAL: ANALYZED (RANGE SCAN) OF 'ACH_TRAN_IDX4'
                      (NON-UNIQUE) [:Q5497000]



    ********************************************************************************


    --
    Please see the official ORACLE-L FAQ: http://www.orafaq.com
    --
    Author:
      INET: [EMAIL PROTECTED]

    Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
    San Diego, California        -- Public Internet access / Mailing Lists
    --------------------------------------------------------------------
    To REMOVE yourself from this mailing list, send an E-Mail message
    to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
    the message BODY, include a line containing: UNSUB ORACLE-L
    (or the name of mailing list you want to be removed from).  You may
    also send the HELP command for other information (like subscribing).

Reply via email to