Thank you very much Ozone, the problem looks similar
but I am unable to get the solution.
Could you please elaborate it more
This is my explain plan with with the hard-coded values
SELECT STATEMENT Optimizer=CHOOSE (Cost=3541 Card=2 Bytes=874) SORT (ORDER BY) (Cost=3541 Card=2 Bytes=874) CONCATENATION NESTED LOOPS (Cost=1775 Card=1 Bytes=437) NESTED LOOPS (Cost=1774 Card=1 Bytes=324) NESTED LOOPS (Cost=1773 Card=1 Bytes=236) NESTED LOOPS (Cost=1772 Card=1 Bytes=190) TABLE ACCESS (BY INDEX ROWID) OF UCSII_UNIT (Cost=1736 C +ard=117 Bytes=9243) INDEX (RANGE SCAN) OF XIE1UCSII_UNIT (NON-UNIQUE) (Cos +t=879 Card=117) TABLE ACCESS (BY INDEX ROWID) OF UCSI_ITEM (Cost=1 Card= +1829857 Bytes=203114127) INDEX (UNIQUE SCAN) OF XPKUCSI_ITEM (UNIQUE) (Cost=2 C +ard=1829857) INDEX (UNIQUE SCAN) OF XPKUCS_INV (UNIQUE) (Cost=1 Card=55 +8346 Bytes=25683916) TABLE ACCESS (BY INDEX ROWID) OF ULT_CUST_SALE (Cost=1 Card= +60595 Bytes=5332360) INDEX (UNIQUE SCAN) OF XPKULT_CUST_SALE (UNIQUE) (Cost=1 C +ard=60595) TABLE ACCESS (BY INDEX ROWID) OF ULT_CUST_MASTER (Cost=1 Card= +115517 Bytes=13053421) INDEX (UNIQUE SCAN) OF SYS_C0017576 (UNIQUE) (Cost=1 Card=11 +5517) NESTED LOOPS (Cost=1775 Card=1 Bytes=437) NESTED LOOPS (Cost=1774 Card=1 Bytes=324) NESTED LOOPS (Cost=1773 Card=1 Bytes=236) NESTED LOOPS (Cost=1772 Card=1 Bytes=190) TABLE ACCESS (BY INDEX ROWID) OF UCSII_UNIT (Cost=1736 C +ard=117 Bytes=9243) INDEX (RANGE SCAN) OF XIE1UCSII_UNIT (NON-UNIQUE) (Cos +t=879 Card=117) TABLE ACCESS (BY INDEX ROWID) OF UCSI_ITEM (Cost=1 Card= +1829857 Bytes=203114127) INDEX (UNIQUE SCAN) OF XPKUCSI_ITEM (UNIQUE) (Cost=2 C +ard=1829857) INDEX (UNIQUE SCAN) OF XPKUCS_INV (UNIQUE) (Cost=1 Card=55 +8346 Bytes=25683916) TABLE ACCESS (BY INDEX ROWID) OF ULT_CUST_SALE (Cost=1 Card= +60595 Bytes=5332360) INDEX (UNIQUE SCAN) OF XPKULT_CUST_SALE (UNIQUE) (Cost=1 C +ard=60595) TABLE ACCESS (BY INDEX ROWID) OF ULT_CUST_MASTER (Cost=1 Card= +115517 Bytes=13053421) INDEX (UNIQUE SCAN) OF SYS_C0017576 (UNIQUE) (Cost=1 Card=11 +5517)
Please reply.

In reply to Re^2: Excessive execution time passing parameters to Oracle by Anonymous Monk
in thread Excessive execution time passing parameters to Oracle by Anonymous Monk

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.