RE: Temp space in 10g and data insert speed

  • From: Jesper Haure Norrevang <jhn.aida@xxxxxx>
  • To: RROGERS@xxxxxxxxxxxxx
  • Date: Wed, 12 Jan 2005 11:26:26 +0100


Ron Rogers wrote:
I will look into the WORKAREA_SIZE_POLICY
parameter and it's impact when I get a chance.

I have a datawarehouse at my site. After a
few experiments I have left the idea of using
WORKAREA_SIZE_POLICY = AUTO when loading the
warehouse. The reason is: Every time you run
the batch, Oracle will deceide values for
dependent on the load on your instance.

When *AREA_SIZE-parameters change, the optimizer
might choose another plan, because smaller values
make sorts more expensive due to more sort runs.
Thus you get a very challenging job, when trying
to make the optimizer choose the same good plan
every day.

My solution is to change the parameters for the
session doing the update, like this:

alter session set optimizer_mode          = ALL_ROWS;
alter session set workarea_size_policy    = 'MANUAL';
alter session set hash_area_size          = 209715200;
alter session set sort_area_retained_size = 104857600;
alter session set sort_area_size          = 104857600;

Besides V$TEMPSTAT, you might get information from

Hope this helps.

Jesper Haure Norrevang


Other related posts: