Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: Slow running query
Is F1.AMTLICHESKENNZEICHEN indexed as this seems to be the main filter?
-----Original Message-----
[mailto:Ranganath.Krishnaswamy_at_blr.hpsglobal.com]
Sent: 27 January 2003 13:04
To: Multiple recipients of list ORACLE-L
Hi List:
I have the below query which is taking 5 min. 20 sec. to fetch the records. Can you please let me know as to how do I reduce the responste time? I have created indexes on Fahrzeug.FZGBRIEF and Historie.mytechobjekt and also the Oid column is uniquely indexed. I replaced the FIRST_ROWS hint with RULE hint as a result of which it is taking 3-4 min.
select /*+FIRST_ROWS*/ count(*)
from
ZPAB.FZGBRIEF B1, ZPAB.FAHRZEUG F1, ZPAB.HISTORIE H1 where
F1.FZGBRIEF = B1.OID AND F1.OID = H1.MYTECHOBJEKT(+) AND (H1.CCCONTROL IN(1, 2, 3) OR NOT EXISTS
(SELECT /*+INDEX_FFS(HISTORIE, I_MYTECHOBJEKT) */ ZPAB.FAHRZEUG.OID FROM ZPAB.FAHRZEUG,ZPAB.HISTORIE WHERE ZPAB.FAHRZEUG.OID = ZPAB.HISTORIE.MYTECHOBJEKT and ZPAB.FAHRZEUG.oid=F1.oid)) AND F1.AMTLICHESKENNZEICHEN LIKE 'DD%'
Any help in this regard is very much appreciated.
Thanks and Regards,
Ranganath
WARNING: The information in this message is confidential and may be legally
privileged. It is intended solely for the addressee. Access to this message
by anyone else is unauthorised. If you are not the intended recipient, any
disclosure, copying, or distribution of the message, or any action or
omission taken by you in reliance on it, is prohibited and may be unlawful.
Please immediately contact the sender if you have received this message in
error. Thank you.
--
Please see the official ORACLE-L FAQ: http://www.orafaq.net
--
Author: Krishnaswamy, Ranganath
INET: Ranganath.Krishnaswamy_at_blr.hpsglobal.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).
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 Mon Jan 27 2003 - 08:54:23 CST
![]() |
![]() |