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: why so many log switches?

Re: why so many log switches?

From: Jonathan Lewis <jonathan_at_jlcomp.demon.co.uk>
Date: Fri, 31 Jan 2003 14:01:42 -0800
Message-ID: <F001.0054115A.20030131140142@fatcity.com>

This depends on the methods you are using to load the data. It does seem excessive even for a simple row at a time loop - which probably shouldn't use more that about 100MB according to the volumes and indexes you've quoted. But it could be the result of a direct path load that rebuilds indexes, or a clunky generated routine that does one insert and multiple updates to populate a row.

Would you care to explain how the data gets into the table, and what proportion of the new rows are likely to have non-null values that would affect the indexes.

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 )

____UK_______March 19th
____USA_(FL)_May 2nd

Next Seminar dates:
(see http://www.jlcomp.demon.co.uk/seminar.html )

____USA_(CA, TX)_August

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: 30 January 2003 20:34

>I have a table with 40 million rows. Daily I load about 70,000
records into
>it. Each record is 128 characters wide. The flat file the data comes
in is
>9 megs. My redo logs are 20 megs each and I have 3 groups of them.
>
>When I load the data, the alert log shows 29 log switches which
generates a
>lot of archives logs. Why am I getting so many log switches? I would
think
>that if the OS file is 9 megs and the redo logs are 20, I would at
most get
>1 log switch.
>
>Thanks,
>Randy
>--

-- 
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 Fri Jan 31 2003 - 16:01:42 CST

Original text of this message

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