Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: Performance tuning
This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.
------_=_NextPart_001_01C049A7.680DB50E
Content-Type: text/plain;
charset="iso-8859-1"
Markus, you need to send the list your explain plan in order for anyone to suggest any changes/hints.
Lisa
-----Original Message-----
From: Marcos.Vera_at_msconsultores.com.pe
[mailto:Marcos.Vera_at_msconsultores.com.pe]
Sent: Wednesday, November 08, 2000 11:17 AM
To: Multiple recipients of list ORACLE-L
Subject: RE: Performance tuning
hi gurus ....sorry im trying to optimize this query ...
unfortunately it takes nearly 20 seconds .....(it's a lot) ...
recpla --> 800000 records
Suplot --> 100000 records ...
SELECT PLA_FOL_LOT,
PLA_FOL_PLA,PLA_PER_DEV_REM,PLA_IDE_EMP,PLA_FEC_CAJ,PLA_TOT_OBL_INF, PLA_TOT_VOL_INF,PLA_TOT_APO_EMP_INF, PLA_TOT_APO_SEG_INF,PLA_TOT_COM_POR_INF, PLA_PER_DEV_REM,decode(lot_num_pro,'140','AC','PN') status ,PLA_IND_TIP_PLAFROM RECPLA, Suplot
PLA_FOL_PLA,PLA_PER_DEV_REM,PLA_IDE_EMP,PLA_FEC_CAJ,PLA_TOT_OBL_INF, PLA_TOT_VOL_INF,PLA_TOT_APO_EMP_INF, PLA_TOT_APO_SEG_INF,PLA_TOT_COM_POR_INF, PLA_PER_DEV_REM,decode(pla_fol_lot,'0','PN','AC') status ,PLA_IND_TIP_PLAFROM RECPLA
WHERE PLA_IDE_EMP ='10004918' and ( Pla_fol_lot = '0' OR Pla_fol_lot not in (select lot_fol_lot from suplot where (lot_tip_lot=
);
sorry about english ....
Markus ...
--
Please see the official ORACLE-L FAQ: http://www.orafaq.com
--
Author:
INET: Marcos.Vera_at_msconsultores.com.pe
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: 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).
------_=_NextPart_001_01C049A7.680DB50E
Content-Type: text/html;
charset="iso-8859-1"
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN"> <HTML> <HEAD> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1"> <META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2650.12"> <TITLE>RE: Performance tuning</TITLE> </HEAD> <BODY>
<P><FONT SIZE=2>Markus, you need to send the list your explain plan in order for anyone to suggest any changes/hints. </FONT> </P>
<P><FONT SIZE=2>Lisa</FONT>
</P>
<P><FONT SIZE=2>-----Original Message-----</FONT> <BR><FONT SIZE=2>From: Marcos.Vera_at_msconsultores.com.pe</FONT> <BR><FONT SIZE=2>[<A HREF="mailto:Marcos.Vera_at_msconsultores.com.pe">mailto:Marcos.Vera_at_msconsultores.com.pe</A>]</FONT> <BR><FONT SIZE=2>Sent: Wednesday, November 08, 2000 11:17 AM</FONT> <BR><FONT SIZE=2>To: Multiple recipients of list ORACLE-L</FONT> <BR><FONT SIZE=2>Subject: RE: Performance tuning</FONT> </P> <BR> <BR> <BR> <BR> <BR> <P><FONT SIZE=2>hi gurus ....sorry im trying to optimize this query ...</FONT> <BR><FONT SIZE=2>unfortunately it takes nearly 20 seconds .....(it's a lot) ...</FONT> <BR><FONT SIZE=2>recpla --> 800000 records</FONT><BR><FONT SIZE=2>Suplot --> 100000 records ...</FONT> </P>
<P><FONT SIZE=2>SELECT PLA_FOL_LOT,</FONT> <BR><FONT SIZE=2>PLA_FOL_PLA,PLA_PER_DEV_REM,PLA_IDE_EMP,PLA_FEC_CAJ,PLA_TOT_OBL_INF,</FONT> <BR><FONT SIZE=2>PLA_TOT_VOL_INF,PLA_TOT_APO_EMP_INF,</FONT> <BR><FONT SIZE=2>PLA_TOT_APO_SEG_INF,PLA_TOT_COM_POR_INF,</FONT> <BR><FONT SIZE=2>PLA_PER_DEV_REM,decode(lot_num_pro,'140','AC','PN') status ,PLA_IND_TIP_PLA</FONT> <BR><FONT SIZE=2>FROM RECPLA, Suplot</FONT> <BR><FONT SIZE=2>WHERE PLA_IDE_EMP ='10004918'</FONT> <BR><FONT SIZE=2>and Pla_fol_lot = lot_fol_lot</FONT> <BR><FONT SIZE=2>and (lot_tip_lot = '12' or lot_tip_lot = '13')</FONT> <BR><FONT SIZE=2>union all</FONT> <BR><FONT SIZE=2>SELECT pla_fol_lot,</FONT> <BR><FONT SIZE=2>PLA_FOL_PLA,PLA_PER_DEV_REM,PLA_IDE_EMP,PLA_FEC_CAJ,PLA_TOT_OBL_INF,</FONT> <BR><FONT SIZE=2>PLA_TOT_VOL_INF,PLA_TOT_APO_EMP_INF,</FONT> <BR><FONT SIZE=2>PLA_TOT_APO_SEG_INF,PLA_TOT_COM_POR_INF,</FONT> <BR><FONT SIZE=2>PLA_PER_DEV_REM,decode(pla_fol_lot,'0','PN','AC') status ,PLA_IND_TIP_PLA</FONT> <BR><FONT SIZE=2>FROM RECPLA</FONT> <BR><FONT SIZE=2>WHERE PLA_IDE_EMP ='10004918'</FONT> <BR><FONT SIZE=2>and ( Pla_fol_lot = '0' OR</FONT> <BR><FONT SIZE=2> Pla_fol_lot not in (select lot_fol_lot from suplot where (lot_tip_lot =</FONT> <BR><FONT SIZE=2>'12' or lot_tip_lot = '13') )</FONT> <BR><FONT SIZE=2> );</FONT> </P>
<P><FONT SIZE=2>sorry about english ....</FONT> </P>
<P><FONT SIZE=2>Markus ...</FONT> </P> <BR> <P><FONT SIZE=2>-- </FONT> <BR><FONT SIZE=2>Please see the official ORACLE-L FAQ: http://www.orafaq.com</FONT> <BR><FONT SIZE=2>-- </FONT> <BR><FONT SIZE=2>Author: </FONT>
<P><FONT SIZE=2>Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051</FONT> <BR><FONT SIZE=2>San Diego, California -- Public Internet access / Mailing Lists</FONT> <BR><FONT SIZE=2>--------------------------------------------------------------------</FONT> <BR><FONT SIZE=2>To REMOVE yourself from this mailing list, send an E-Mail message</FONT> <BR><FONT SIZE=2>to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in</FONT> <BR><FONT SIZE=2>the message BODY, include a line containing: UNSUB ORACLE-L</FONT> <BR><FONT SIZE=2>(or the name of mailing list you want to be removed from). You may</FONT> <BR><FONT SIZE=2>also send the HELP command for other information (like subscribing).</FONT>Received on Wed Nov 08 2000 - 11:14:46 CST