Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Re: Why does an online redolog keeps active after checkpoint completion?
"Anton Buijs" <remove_aammbuijs_at_xs4all.nl> wrote in message
news:3f2ad39d$0$49098$e4fe514c_at_news.xs4all.nl...
> I found this behaviour that I don't understand
> Oracle V8.1.7.3 EE 64-bit on HP-UX 11i. (and in may playground Windows 98,
> V8.1.5 Personal Edition).
>
> When a log switch occurs the redolog status goes from current to active
> (v$log. status) and a checkpoint occurs.
> When I check v$datafile_header.checkpoint_change# and checkpoint_time I
can
> see the checkpoint has completed.
> But the redolog status keeps active, even minutes later.
> After 'alter system checkpoint' it is immediately inactive.
>
> Why does the status of the redolog keeps active so long?
> I thought it was no longer needed (status becomes inactive) when the
> checkpoint completes?
> The impact can be that I still need that redo in the unfortunate event I
> loose this redolog group completely (which ofcourse should never happen,
but
> if all that never should happen really never happended we would not have
so
> much fun in this newsgroup).
This makes sense if you think about where the various v$ dynamic performance views get their info from, and which Oracle background process is responsible for each task. First, note that:
Here's the sequence of events when a log switch happens:
LGWR will update the redo log status in the control file when any of these occurs (and others too, that I don't know of):
So if you want the redo log status to be updated more quickly to inactive after a checkpoint, one way to do it is to decrease the value of LOG_CHECKPOINT_TIMEOUT in init.ora.
Cheers,
Dave
Received on Sat Aug 02 2003 - 12:19:42 CDT
![]() |
![]() |