A reader, August 14, 2002 - 4:24 pm UTC
Hi
if alter system switch logfile triggers a local checkpoint what kind of checkpoint does a normal log switch trigger?
August 14, 2002 - 7:07 pm UTC
I believe it is the same, 99.9% on that. Shouldn't be any different. Too lazy right now to actually test it out ;)
You would have to set up a test that monitor the alerts after setting the init.ora parameter to log checkpoints to alerts and watch a busy system (my test system won't switch logs unless I setup lots of activity)
alter system switch logfile does not trigger checkpoint
A reader, August 21, 2002 - 11:42 am UTC
hi Tom
from Oracle 9i DBA Fundamentals 2 ILT course it states that checkpoint occurs when
1. every log switch
2. when fast start checkpointing is set
3. log_checkpoint_interval
4. log_checkpoint_timeout
5. instance shutdown cleanly
6. alter system checkpoint commnad
7. when tablespace is taken offline or online backup starts
since none talks about alter system switch logfile I guess that´s why it doesnt triggers checkpoint?
August 21, 2002 - 11:53 am UTC
log switches trigger checkpoints. See #1 in your list above -- "every log switch"
I tried your test but
A reader, August 22, 2002 - 6:13 am UTC
Hi Tom
I carried out your test in my etst database (I am the only user) but after
exec dbms_lock.sleep(60);
I queried again v$datafile but I still see CHECKPOINT_CHANGE# unchanged....
how so?
August 22, 2002 - 9:08 am UTC
As I said -- it is a lazy write, it can take a long long long time.
There is nothing wrong here, it is doing exactly what the database coders coded it to do.