Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: Tracking Temp Segment Usage and Event 10046
For more information about 10053, see Wolfgang Breitling’s http://www.hotsos.com/dnloads/1/10053/Breitling2002.pdf. Wolfgang will present this and another new 10053 paper at our Symposium in Dallas next February (http://www.hotsos.com/events/symposium).
Cary Millsap
Hotsos Enterprises, Ltd.
http://www.hotsos.com
Upcoming events:
- Hotsos Clinic, Oct
1–3 San Francisco, Oct 15–17 Dallas, Dec 9–11 Honolulu
- 2003 Hotsos Symposium on
Oracle® System Performance, Feb 9–12 Dallas
- Next event: Miracle Database Forum, Sep
20–22 Middlefart Denmark
-----Original Message-----
From: root@fatcity.com
[mailto:root@fatcity.com] On Behalf Of Jamadagni,
Rajendra
Sent: Wednesday, September 18,
2002 10:33 AM
To: Multiple recipients of list
ORACLE-L
Subject: RE: Tracking Temp Segment
Usage and Event 10046
I spent last two days working on that SQR and finally nailed it. Developers were using DISTINCT as a rule and CBO was choosing incorrect indexes.
I had to do following to make it work ...
1. we put hints in appropriate places
2. created 3 new indexes to help the queries
3. Created 1 MV
4. Change the pl/sql code to be more efficient
5. Remove unnecessary distinct conditions.
After all this said and done, I finally have the SQR taking around 375 seconds compared to about 1500 seconds. Even if I run all 8 of them in parallel it doesn't blow the TEMP segments.
Now comes the difficult part, to explain the development the things that we had to do and why we had to do them.
I think I am really starting to see the power of event 10046 ... I just wish I should learn more on event 10053 as well, but that will come too eventually.
I am still going to track the temp segment usage though ...
Thanks everyone for all your kind suggestions, I am not done yet, there is more work to be done.
Raj
______________________________________________________
Rajendra Jamadagni MIS, ESPN Inc.
Rajendra dot Jamadagni at ESPN dot com
Any opinion expressed here is personal and doesn't reflect that of ESPN Inc.
QOTD: Any clod can have facts, but having an opinion is an art!
-----Original Message-----
From: Khedr, Waleed [mailto:Waleed.Khedr@FMR.COM]
Sent: Wednesday, September 18, 2002 11:03 AM
To: Multiple recipients of list ORACLE-L
Subject: RE: Tracking Temp Segment Usage and Event 10046I'd start looking at the execution plans first and examine if there is any Cartesian joins and the order the tables get joined.
Waleed
-- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: Cary Millsap INET: cary.millsap_at_hotsos.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 Sep 19 2002 - 04:23:32 CDT
![]() |
![]() |