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

Home -> Community -> Mailing Lists -> Oracle-L -> Re: long runtimes cured by cutting hash_area_size by 90% - ???

Re: long runtimes cured by cutting hash_area_size by 90% - ???

From: Jonathan Lewis <jonathan_at_jlcomp.demon.co.uk>
Date: Mon, 14 Apr 2003 23:38:36 -0800
Message-ID: <F001.005811BE.20030414233836@fatcity.com>

Yes - at least in some cases.

I don't think there is any way around problems of excessive disc activity, but v9 is much less profligate with memory.

In a 6 table hash, for example, one possible path is to hash 5 tables in memory at once, then run the 6th through them. In this case, Oracle 8 MAY allocated 5 x hash_area_size - even if the five tables are very small. Oracle 9 will use a more appropriate allocation of memory, whether or not you are using the pga_aggregate_target.

In a silly example, I saw Oracle 8 use something like 12MB of memory to hash a 4 row table - in circumstances where Oracle 9 used about 100K.

(I assume this is a bug)

Regards

Jonathan Lewis
http://www.jlcomp.demon.co.uk

  The educated person is not the person
  who can answer the questions, but the
  person who can question the answers -- T. Schick Jr

One-day tutorials:
http://www.jlcomp.demon.co.uk/tutorial.html

____UK_______April 22nd
____Denmark__May 21-23rd
____USA_(FL)_May 2nd

Three-day seminar:
see http://www.jlcomp.demon.co.uk/seminar.html

____UK_(Manchester)_May
____Estonia___June (provisional)
____Australia_June (provisional)
____USA_(CA, TX)_August

The Co-operative Oracle Users' FAQ
http://www.jlcomp.demon.co.uk/faq/ind_faq.html

> You specifically mentioned Oracle 8 (inclusive of 8i I assume?).
Does your
> mention of 8 imply that 9i does a better job of exercising "damage
> limitation"?
>
> Regards,
>
> Larry G. Elkins
> elkinsl_at_flash.net
> 214.954.1781
>

-- 
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 Tue Apr 15 2003 - 02:38:36 CDT

Original text of this message

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