Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> RE: Process consumes CPU and long time to finished

RE: Process consumes CPU and long time to finished

From: Bobak, Mark <Mark.Bobak_at_il.proquest.com>
Date: Thu, 15 Jan 2004 08:04:34 -0800
Message-ID: <F001.005DCEE0.20040115080434@fatcity.com>


<sarcasm>
Wow, your buffer cache hit ratio for this query is better than 99.999999%! With a BCHR like that, how could you possibly tune this query to be better??
</sarcasm>

Now, seriously, since I know nothing about your application or environment, and you do not show execution plan, I can only offer some general thoughts.

Table join order should be in the order of smallest to largest number of rows being returned, based on the non-join filter predicates, as they apply to each table. So, if you have a 1 million row table joining a 10,000 row table, but there is no non-join filter predicate on the 10,000 row table, and you have a primary key lookup on the 1 million row table, then you want the 1 million row table to be the driving table. Also, make sure that index access paths are available for your filter and join predicates, where possible.

Hope that helps get you pointed in the right direction,

-Mark

Mark J. Bobak
Oracle DBA
ProQuest Company
Ann Arbor, MI
"Imagination was given to man to compensate him for what he is not, and a sense of humor was provided to console him for what he is." --Unknown

-----Original Message-----

Sent: Thursday, January 15, 2004 4:05 AM To: Multiple recipients of list ORACLE-L

Hi all,

I have process in Oracle apps 11.5.8 which need very lot CPUs and long time to complete. for about 17,000 invoices it takes 28 hours !!

I have open TAR since month ago, and still get no solution. maybe here someone can share any idea ....? im using 11.5.8, sparc. DB 9i rel2

here is from the tkprof :

SELECT sum(nvl(entered_cr,0) - nvl(entered_dr,0)) ,

             sum(nvl(accounted_cr,0) - nvl(accounted_dr,0))
      FROM   AP_AE_Lines AEL,
             AP_AE_Headers AEH,
             AP_Invoice_Payments AIP
      WHERE  AIP.Invoice_ID = :b2
      AND    AEL.Source_ID = AIP.Invoice_Payment_ID
      AND    AEL.Source_Table = 'AP_INVOICE_PAYMENTS'
      AND    AEL.AE_Line_type_code = 'LIABILITY'
      AND    AEL.AE_Header_ID = AEH.AE_Header_ID
      AND    AEH.Set_of_Books_ID = :b1

call     count       cpu    elapsed       disk      query    current
rows
------- ------ -------- ---------- ---------- ---------- ----------


Parse 1 0.00 0.00 0 0 0 0
Execute 1539 0.23 0.31 0 0 0 0
Fetch 1539 16474.95 21810.67 24 46864854 0 1538
------- ------ -------- ---------- ---------- ---------- ----------


total 3079 16475.18 21810.99 24 46864854 0 1538

Misses in library cache during parse: 0
Optimizer goal: CHOOSE
Parsing user id: 24 (recursive depth: 1)

tq
--

Please see the official ORACLE-L FAQ: http://www.orafaq.net
--

Author: hernawan
  INET: hernawan_at_makro.co.id

Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
San Diego, California        -- Mailing list and web hosting services

---------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru_at_fatcity.com (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).
--

Please see the official ORACLE-L FAQ: http://www.orafaq.net
--

Author: Bobak, Mark
  INET: Mark.Bobak_at_il.proquest.com
Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
San Diego, California        -- Mailing list and web hosting services

---------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru_at_fatcity.com (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). Received on Thu Jan 15 2004 - 10:04:34 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US