Main

Data Guard Archives

September 19, 2006

Oracle 10g Higher Availability using Data Guard

Last week I attended a class with OU in SFO with "Marielle Canning" for Data Guard implementation on Linux env & will be sharing some of my learnings there .....

One of the biggest responsibilities for a DBA is to provide 100% availability and reduce unplanned downtime for a database & Oracle Data Guard is one of the most effective and comprehensive data availability, data protection and disaster recovery solutions available today .

Overview :
    The database size is increasing dramatically every day and our critical business information system requires 24x7 uptime specially in an unplanned downtime when we can loose Data or it might get corrupted & it may take hours, even days to restore such a database. To minimize downtime and avoid data loss, we need a standby database that can take the role of the primary database in a timely fashion & here come the data guard in picture where Data Guard maintains these standby databases as transactionally consistent copies of the production database.

In short Oracle Data Guard is the management, monitoring, and automation software infrastructure that creates, maintains, and monitors one or more standby databases to protect enterprise data from failures, disasters, errors, and corruptions.


Data Guard Functional Components:    
    So here we will discuss what all we need to get the data guard working ....

dg:

a) Data Guard Config -A Data Guard configuration consists of one production (or primary) database and up to nine standby databases.

b)Redo Apply and SQL Apply - As Standbys are created from primary , we need the technology to make them at par with the primary by applying Redo to standby.

Data Guard provides two methods to apply this redo data to the standby database :

    * Redo Apply, used for physical standby databases
    * SQL Apply, used for logical standby databases

c)Role Management-Using Data Guard, the role of a database can be switched from a primary role to a standby role and vice versa, ensuring no data loss in the process, and minimizing downtime. There are two kinds of role transitions - a switchover and a failover.

    Switchover - This is used for planned maintaince specially for patching & upgrades .
    
    Failover
- Is disaster recovery measure which comes in picture when Primary node is down .


d)Types of standby - we have 2 kinds of stanby data bases :

    Physical Standby - this is a replica of primary database on Block-by-block basis.The database schema, including indexes, are the same.

    Logical Standby - It has the same logical information as primary , but can be used as a seprate database for reporting etc .


e)Data Guard Protection Modes

    Maximum Protection- this is also called no-data-loss mode as here no commit of transaction is done unless teh redo is shipped & applied to atleast one of the standby .But the issue here is that if standby becomes unavailable , primary shuts down .

    Maximum Availability - the only diffenece this has from maximum performace mode is that it doesnt shutsdown db when standby is down , it waits for standby to get up & running and then resync it with primary .

    Maximum Performance- Archiver is used for this to ship the logs , thus the performance is more .The commit operation of the primary database does not wait for the standby database to acknowledge receipt .


f)Data Guard Broker
The Oracle Data Guard Broker is a distributed management framework that automates and centralizes the creation, maintenance, and monitoring of Data Guard configurations.


I will continue on the Data Guard topic for next blog & will include its functionalities , Pros & Cons of all modes , Switch over & Failover process .......
so stay tuned .......

December 3, 2006

so what kind of standby ??

Been lazy (& bussy) for past couple of weeks with new implementations on Rman Catalog , AS & others ......


So continuing with the discussion on DR .....


Some of the biggest question faced when implementing a DR are :



  • What Kind of standby - physical or logical
  • What king of Protection mode
  • What to use - Log Writer or Archiver 

Here is a small table to help you make a better decesion :

































Mode


Log Writing Process


Network Trans Mode


 Disk Write Option


Redo Log Reception Option


Supported on


Maximum Protection


LGWR


SYNC


AFFIRM


Standby redo logs are required


Physical standby databases


Maximum Availability


LGWR


SYNC


AFFIRM


Standby redo logs


Physical and logical standby databases


Maximum Performance


LGWR or ARCH


ASYNC if LGWR


NOAFFIRM


Standby redo logs


Physical and logical standby databases


Physical Standby : is a exact replica of Primary DB , it uses redo apply technique & has to be open in "Read only" mode .


Logical Standby : uses SQL apply technique & is in read-write mode as it can also hold addtional objects for reporting use .


One of the reasons people opt for physical standby is that logical standby has some limitations when it comes to objects , so before proceding to logical one should always check weather all his objects can be supported in Logical standby .


in couple of days i will describr the process of implementing DR (both logical & Physical).....keep watching the blog ..


 

About Data Guard

This page contains an archive of all entries posted to Pankaj Chandiramani's Blog in the Data Guard category. They are listed from oldest to newest.

Backup & recovery is the previous category.

Data Vault is the next category.

Many more can be found on the main index page or by looking through the archives.

Top Tags

Powered by
Movable Type and Oracle