Book Image

Oracle Data Guard 11gR2 Administration : Beginner's Guide

Book Image

Oracle Data Guard 11gR2 Administration : Beginner's Guide

Overview of this book

Data Guard is the high availability, disaster recovery and data replication solution for Oracle Databases. With the huge growth of Data Guard it's getting harder to encounter an Oracle DBA not dealing with Data Guard. Since it's a common DBA task to provide high availability of databases, Data Guard is a must-know topic for every Oracle Database Administrator."Oracle Data Guard 11g R2 Beginner's Administration Guide" is a practical guide that provides all the information you will need to configure and maintain Data Guard. This book will show you what Data Guard can really do.By following the practical examples in this book, you'll learn to set up your Data Guard Broker, the management framework for Data Guard configurations. Learn and implement different data protection modes, perform role transitions between databases (switchover and failover) and configure Active Data Guard. Next, we will dive into the features of Snapshot Standby. The book progresses into looking at Data Guard configuration with other Oracle products (such as EM, RAC, and RMAN) and patch databases in Data Guard. The final chapters will cover commonly encountered Data Guard issues and Data Guard best practices, which are very important to make a Data Guard configuration perfect and take maximum advantage of Data Guard properties.
Table of Contents (19 chapters)
Oracle Data Guard 11gR2 Administration Beginner's Guide
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Pop Quiz Answers
Index

Time for action – enabling force logging


Perform the following steps on the primary database:

  1. Check the force logging status as follows:

    SQL> select name, force_logging from v$database;
    NAME      FOR
    --------- ---
    ORCL      NO
    
  2. Enable the force logging mode as follows:

    Enabling Force Logging on Primary Database is mandatory. 
    SQL> alter database force logging;
    Database altered.
    
  3. Check the force logging status again as follows:

    SQL> select name,force_logging from v$database;
    NAME      FOR
    --------- ---
    ORCL      YES
    

    In the alert log, you'll see following lines:

    alter database force logging
    ALTER DATABASE FORCE LOGGING command is waiting for existing direct writes to finish. This may take a long time.
    Completed: alter database force logging
    

What just happened?

We've put the primary database in the force logging mode, which is required for the Data Guard physical standby database to work properly.

Standby redo logs

Standby redo logfiles are used by a standby database to store the redo...