Re: Log Switches in RAC

From: K Gopalakrishnan <kaygopal_at_gmail.com>
Date: Tue, 10 Nov 2009 14:56:01 -0600
Message-ID: <3b0f44a10911101256h71b290c6q778a5921d55dfb10_at_mail.gmail.com>



Rajesh,

Here is the short answer to your 'WHY' part. During media recovery (in RAC) we need to get the changes from ALL threads and merge them before applying to the database. If any of the thread is not archived for longer duration and if the critical changes are recorded in that thread, you may not be able recover the database as the physiological logging requires all the changes from ALL the thread to make the recovery complete

Also that thread is inactive for longer time and you have other threads active, the inactive thread may become a single point of failure during the recovery (if it is not archived for longer duration). To avoid this the other threads force the logswitch to the sleeing thread to keep the SCN ordering intact during recovery. I have discussed the stuff in details in my RAC book. But the key part to your WHY question is to keep the recover ability.

-Gopal

Best Regards,
K Gopalakrishnan

Oracle Database 10g Real Application Clusters Handbook http://www.amazon.com/gp/product/007146509X/

Oracle Wait Interface: A Practical Guide to Performance Diagnostics & Tuning http://www.amazon.com/exec/obidos/tg/detail/-/007222729X/

On Tue, Nov 10, 2009 at 12:33 PM, Rajesh Rao <Rajesh.Rao_at_jpmchase.com>wrote:

> Sorry, I mean, other than the alter system commands, Why and when would a
> log switch on one instance of a RAC trigger cause log switches to happen
> across one or more of the other instances?
>
>
>
> *From:* Surachart Opun [mailto:surachart_at_gmail.com]
> *Sent:* Tuesday, November 10, 2009 1:24 PM
> *To:* Rajesh Rao
> *Cc:* oracle-l_at_freelists.org
> *Subject:* Re: Log Switches in RAC
>
>
>
> If you are meaning switch log by manual...
>
>
>
> "alter system switch logfile"
>
> This command switches log on that instance.
>
>
>
> "alter system archive log current"
>
>
>
> This command switches log all instance in RAC
>
>
>
> Example:
>
> SQL> alter system switch logfile;
>
>
>
> System altered.
>
>
>
> SQL> alter system archive log current;
>
>
>
> System altered.
>
>
>
>
>
> Good Luck
>
> Surachart Opun
> http://surachartopun.com
>
> On Wed, Nov 11, 2009 at 1:11 AM, Rajesh Rao <Rajesh.Rao_at_jpmchase.com>
> wrote:
>
>
>
> Why and when would a log switch on one instance of a RAC trigger cause log
> switches to happen across one or more of the other instances?
>
>
>
> Thanks
>
> Raj
>
> This communication is for informational purposes only. It is not intended
> as an offer or solicitation for the purchase or sale of any financial
> instrument or as an official confirmation of any transaction. All market
> prices, data and other information are not warranted as to completeness or
> accuracy and are subject to change without notice. Any comments or
> statements made herein do not necessarily reflect those of JPMorgan Chase &
> Co., its subsidiaries and affiliates. This transmission may contain
> information that is privileged, confidential, legally privileged, and/or
> exempt from disclosure under applicable law. If you are not the intended
> recipient, you are hereby notified that any disclosure, copying,
> distribution, or use of the information contained herein (including any
> reliance thereon) is STRICTLY PROHIBITED. Although this transmission and any
> attachments are believed to be free of any virus or other defect that might
> affect any computer system into which it is received and opened, it is the
> responsibility of the recipient to ensure that it is virus free and no
> responsibility is accepted by JPMorgan Chase & Co., its subsidiaries and
> affiliates, as applicable, for any loss or damage arising in any way from
> its use. If you received this transmission in error, please immediately
> contact the sender and destroy the material in its entirety, whether in
> electronic or hard copy format. Thank you. Please refer to
> http://www.jpmorgan.com/pages/disclosures for disclosures relating to
> European legal entities.
>

--
http://www.freelists.org/webpage/oracle-l
Received on Tue Nov 10 2009 - 14:56:01 CST

Original text of this message