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

Home -> Community -> Usenet -> c.d.o.server -> Re: log file sync

Re: log file sync

From: Ethan Post <Blah_at_Blah.com>
Date: Wed, 03 Oct 2001 18:04:28 GMT
Message-ID: <MqIu7.24721$Xk4.1501852@news1.rdc1.sdca.home.com>


Thanks Jonathen, good to know that!

"Jonathan Lewis" <jonathan_at_jlcomp.demon.co.uk> wrote in message news:1002131327.9080.1.nnrp-10.9e984b29_at_news.demon.co.uk...
>
> This is because there is an undocumented
> feature of PL/SQL that it does not do a
> log file sync on commit - it simply posts lgwr to
> write and continues - moreover, if your process is
> the only active one so that it has cycled round
> the loop before lgwr has responded to the post,
> your process will not even send a new write
> message on the grounds that the latest
> redo/commit will be caught when lgwr finally
> catches up with the previous post.
> Not only will your 'redo sync writes' be one
> per pl/sql call, your 'redo writes' will be less
> than your commits.
>
> This is (I presume) to protect databases from
> programmers who produce fast loops with
> single row inserts and commits.
>
> You cannot approximate high-rate processes
> by using pl/sql loops - you may need to write
> a simple Pro*C/OCI program to do it.
>
>
> --
> Jonathan Lewis
> http://www.jlcomp.demon.co.uk
>
> Host to The Co-Operative Oracle Users' FAQ
> http://www.jlcomp.demon.co.uk/faq/ind_faq.html
>
> Author of:
> Practical Oracle 8i: Building Efficient Databases
>
> Screen saver or Life saver: http://www.ud.com
> Use spare CPU to assist in cancer research.
>
> Ethan Post wrote in message ...
> >I always thought log file sync waits primary cause was commiting too
often.
> >We have a few jobs that run during the day and this is the primary wait
> >event. However during some of my testing regarding potential transaction
> >rates for our server (see recent post) I wrote a script that inserts a
> >record, commit's, deletes the record, commits for a large table. I am
> >getting 140 MB of redo per minute and over 50,000 commits per minute but
no
> >log file sync's. Scratching my head on this one. The file layout is
> >optimal. - E
> >
> >
>
>
Received on Wed Oct 03 2001 - 13:04:28 CDT

Original text of this message

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