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

Home -> Community -> Usenet -> c.d.o.server -> Optimizer HELP !!!!!

Optimizer HELP !!!!!

From: Bill <bill_at_asplundh.com>
Date: 1997/07/08
Message-ID: <33c25519.3888611@news.alt.net>

Listed below is a query (pulled from a trace file of our weekly payroll processing) from our ADP/CSS (PeopleSoft) Payroll System and four different query plans that the query has taken in the past couple of runs. When we where in testing the job was taking about 4-6 hours. It is now taking 14-20 hours. In three of the four listed Execution Plans the plan is the same but the distribution of records for each nested loop is different. Can anyone explain what may be causing this behavior and poor performance ???

Any help would be greatly appreciated !!!!!!

Some Stats: (I can supply more if you need them) Oracle 7.1.6 (supplied by the vendor).
AIX 4.2 RS/6000 J40 SMP 384MB.
Statistics are analyzed nightly.
I am running the choose based optimizer.

SELECT A.PAGE# ,A.LINE# ,A.SEPCHK ,A.ADDL# ,C.COMPANY ,C.STATE ,C.LOCALITY ,
  C.TAX_CLASS ,C.QTRCD ,C.MONTHCD ,C.TXGRS_YTD ,C.TAX_YTD ,C.TXGRS_QTD ,
  C.TAX_QTD ,C.TXGRS_MTD ,C.TAX_MTD ,C.NLGRS_YTD ,A.COMPANY ,A.PAYGROUP ,
  A.PAY_END_DT ,A.OFF_CYCLE
FROM
 PS_PAY_EARNINGS A ,PS_TAX_BALANCE C WHERE A.COMPANY=:1 AND A.PAYGROUP=:2
  AND A.PAY_END_DT=:3 AND A.OFF_CYCLE=:4 AND A.SINGLE_CHECK_USE IN ('N','C')

    AND A.OK_TO_PAY='Y' AND A.PAY_LINE_STATUS IN ('I', 'P', 'U') AND   A.EMPLID=C.EMPLID AND C.CALENDAR_YEAR=:5 ORDER BY A.PAGE# ASC ,A.LINE#
  ASC ,A.SEPCHK ASC ,A.ADDL# ASC ,C.COMPANY ASC ,C.STATE ASC ,C.LOCALITY ASC ,
  C.TAX_CLASS ASC ,C.QTRCD DESC ,C.MONTHCD DESC



Bill Timm
Asplundh Tree Expert Co.
voice:	(215) 784-1457
fax:		(215) 784-1366
e-mail	bill_at_asplundh.com
************************************
Received on Tue Jul 08 1997 - 00:00:00 CDT

Original text of this message

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