Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: how to force a log switch
Ron , thanks a lot !
I know this solution , but:
there are certain pick-times when there are many activities going on against
the DB. Therefore making the redo logs smaller will cause performance
problems. So , i'd have this solution as a last resort, in case i will not
find an init.ora solution.
Thanks again !
DBAndrey
-----Original Message-----
Sent: Sunday, August 18, 2002 3:14 PM
To: 'Andrey Bronfin'; 'LazyDBA.com Discussion'
The answer pretty simple - change the size of your logs. Log switching is a function of transaction volume. The fewer the transactions, the fewer the log switches. Consider that logs only switch when they are filled (or manually). So ,if there are insufficient transactions to fill your logs in 3 minutes, make your logs smaller. If your logs are switching every 10 minutes now, then create new logs that are 1/3 the size.
Having said all that, the other thing you could do is create a dbms_job that runs every three minutes and forces a log switch. It's not as pretty as right-sizing your logs, but it works.
R/
Ron Gawer
-----Original Message-----
Sent: Sunday, August 18, 2002 10:03 AM
To: LazyDBA.com Discussion
Dear gurus !
It's either a Sunday's dead brain or ......
Is there an init.ora parameter to force redo logs switch every 3 minutes
or so ? ( the reason is that I need frequent log switches in order for
the standby database to pickup changes frequently , i.e. to be "almost"
in sync with the primary DB. And, off course, issuing "alter system
switch logfile" in the application is not feasible )
Now, i only found parameters related to the frequency of the CHECKPOINTs
and not log switches. Any help , please ...
DBAndrey
-- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: Andrey Bronfin INET: andreyb_at_elrontelesoft.com Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San Diego, California -- Public Internet access / Mailing Lists -------------------------------------------------------------------- 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 Sun Aug 18 2002 - 09:53:20 CDT
![]() |
![]() |