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 – changing the database name


Follow these steps to change DB_UNIQUE_NAME of a database in the Data Guard broker configuration.

  1. Prior to changing the database name, disable the database from the configuration as follows:

     DGMGRL> show database 'INDIA_UN';
    Database - INDIA_UN
      Role:            PHYSICAL STANDBY
      Intended State:  APPLY-ON
      Transport Lag:   0 seconds
      Apply Lag:       0 seconds
      Real Time Query: ON
      Instance(s):
        INDIA
    Database Status:
    SUCCESS
    DGMGRL> disable database 'INDIA_UN';
    Disabled.
    
  2. Change the DB_UNIQUE_NAME value of the standby database as follows:

    SQL> select db_unique_name,database_role from v$database;
    DB_UNIQUE_NAM DATABASE_ROLE
    ------------- ----------------
    india_un      PHYSICAL STANDBY
    SQL> alter system set db_unique_name='INDIA_NEW' scope=spfile;
    System altered.

    DB_UNIQUE_NAME is a static parameter, so you must use scope with SPFILE. If you are using PFILE, edit PFILE and bounce the database.

  3. Now shut down and start up the database...