Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> Re: Extremely Slow Query
Looks like you've hit the big problem with RAC -
how many nodes do you have, how busy
are the nodes which are supposed to supply
with with CR copies across the interconnect,
and what's the latency and bandwidth of your
interconnect ? (And how did you get that many
objects into obj$ !!!)
If you check your CR gets and disc reads on the tablescan of obj$,
> 463566 TABLE ACCESS FULL OBJ#(18) (cr=5304 r=2548 w=0
time=373229866 >us)
you'll see 2,548 reads, and 5,304 CR gets -
cross check against the waits for
> global cache cr request 2720
Note that 5,304 - 2548 = 2,756. That's close enough to make me think that your tablescan is largely responsible for global cache lock requests, and the interconnect is being flooded with cached blocks from other nodes.
Solution - in the short term I think I'd take Stefane's advice and write your own query based on the view - or possibly find a hint that you could turn into a global hint in your outer query - based on Stefane's comments you could try something like:
/*+ leading (dba_types.type$) */
(check for suitability, I haven't checked the definition of the dba_types view).
Regards
Jonathan Lewis
http://www.jlcomp.demon.co.uk
Coming soon a new one-day tutorial:
Cost Based Optimisation
(see http://www.jlcomp.demon.co.uk/tutorial.html )
Next Seminar dates:
(see http://www.jlcomp.demon.co.uk/seminar.html )
____England______January 21/23
The Co-operative Oracle Users' FAQ
http://www.jlcomp.demon.co.uk/faq/ind_faq.html
-----Original Message-----
To: Multiple recipients of list ORACLE-L <ORACLE-L_at_fatcity.com>
Date: 02 January 2003 22:15
>Does any know how to speed up following query?
>
>Select *
> from dba_types
>/
>
>It is taking about 2-3 minutes on my 9202 database. I see a lot of
Global
>Cache waits. The hammer shows following information ...
>
>
>*********************************************************************
-- Please see the official ORACLE-L FAQ: http://www.orafaq.net -- Author: Jonathan Lewis INET: jonathan_at_jlcomp.demon.co.uk 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 02 2003 - 17:44:15 CST
![]() |
![]() |