JavaScript is required to for searching.
Skip Navigation Links
Exit Print View
Oracle Solaris Cluster Geographic Edition Data Replication Guide for Oracle Data Guard     Oracle Solaris Cluster 4.0
search filter icon
search icon

Document Information

Preface

1.  Replicating Data With Oracle Data Guard Software

2.  Administering Oracle Data Guard Protection Groups

3.  Migrating Services That Use Oracle Data Guard Data Replication

Detecting Cluster Failure on a System That Uses Oracle Data Guard Data Replication

Detecting Primary Cluster Failure

Detecting Failure of the Standby Cluster

Migrating Services That Use Oracle Data Guard With a Switchover

How to Switch Over an Oracle Data Guard Protection Group From the Primary to the Standby Cluster

Actions Performed by the Geographic Edition Software During a Switchover

Forcing a Takeover on Systems That Use Oracle Data Guard

How to Force Immediate Takeover of Oracle Data Guard Services by a Standby Cluster

Actions Performed by the Geographic Edition Software During a Takeover

Recovering Oracle Data Guard Data After a Takeover

How to Resynchronize and Revalidate the Protection Group Configuration

How to Perform a Failback Switchover or Failback Takeover

Recovering From an Oracle Data Guard Data Replication Error

How to Recover From a Data Replication Error

A.  Geographic Edition Properties for Oracle Data Guard Broker Configurations

Index

Forcing a Takeover on Systems That Use Oracle Data Guard

You perform a takeover when applications need to be brought online on the standby cluster, regardless of whether the data is completely consistent between the primary database and the standby database. In this section, it is assumed that the protection group has been started.

The following operations occur after you initiate a takeover:

For details about the possible conditions of the primary and standby clusters before and after a takeover, see Appendix D, Takeover Postconditions, in Oracle Solaris Cluster Geographic Edition System Administration Guide.

This section provides the following information:

How to Force Immediate Takeover of Oracle Data Guard Services by a Standby Cluster

Perform this procedure from a node in the standby cluster.

Before You Begin

Before you force the standby cluster to assume the activity of the primary cluster, ensure that the following conditions are met:

  1. Become superuser or assume a role that is assigned the Geo Management RBAC rights profile.

    For more information about RBAC, see Geographic Edition Software and RBAC in Oracle Solaris Cluster Geographic Edition System Administration Guide.


    Note - If you use a role with Geo Management RBAC rights, ensure that the /var/cluster/geo ACLs are correct on each node of both partner clusters. If necessary, become superuser on the cluster node and set the correct ACLs.

    # chmod A+user:username:rwx:allow /var/cluster/geo

    The /var/cluster/geo directory must have the correct access control lists (ACL) applied for compatibility between the Geo Management RBAC rights profile and Oracle Data Guard.


  2. Initiate the takeover.
    phys-node-n# geopg takeover [-f] protectiongroupname
    -f

    Forces the command to perform the operation without your confirmation.

    protectiongroupname

    Specifies the name of the protection group.

Example 3-2 Forcing a Takeover by a Standby Cluster

This example shows how to force the takeover of sales-pg by the standby cluster cluster-newyork.

The node phys-newyork-1 is the first node of the standby cluster. For a reminder of which node is phys-newyork-1, see Example Geographic Edition Cluster Configuration in Oracle Solaris Cluster Geographic Edition System Administration Guide.

phys-newyork-1# geopg takeover -f sales-pg

Next Steps

For information about the state of the primary and the standby clusters after a takeover, see Appendix D, Takeover Postconditions, in Oracle Solaris Cluster Geographic Edition System Administration Guide.

Actions Performed by the Geographic Edition Software During a Takeover

When you run the geopg takeover command, the software confirms that databases in the Oracle Data Guard Broker configuration on the standby cluster, that is, the future primary, are enabled (as you cannot perform a takeover to a disabled database). The software also confirms that the Oracle Data Guard command-line interface show configuration command shows one of the following states:

If the show configuration command returns any other Oracle error code, the takeover fails.

If the original primary cluster, cluster-paris, can be reached, the software takes offline the application resource groups in the protection group and places them in an Unmanaged state.

On the original standby cluster, cluster-newyork, the software performs the following operations:

If the command completes successfully, the standby cluster, cluster-newyork, becomes the new primary cluster for the protection group. Databases that are associated with the Oracle Data Guard Broker configurations of the protection group have their role reversed according to the role of the protection group on the local cluster. The shadow Oracle database-server resource group and any other application resource group in the protection group are online on the new primary cluster. If the original primary cluster can be reached, it becomes the new standby cluster of the protection group. Replication of all databases that are associated with the Oracle Data Guard Broker configurations of the protection group are stopped.


Caution

Caution - After a successful takeover, data replication is stopped. If you want to continue to suspend replication, specify the -n option when you use the geopg start command. This option prevents the start of data replication from the new primary cluster to the new standby cluster.


If a previous operation fails, this command returns an error. Use the geoadm status command to view the status of each component. For example, the Configuration status of the protection group might be set to an Error state, depending on the cause of the failure. The protection group might be activated or deactivated.

If the Configuration status of the protection group is set to the Error state, revalidate the protection group by using the procedures that are described in How to Validate an Oracle Data Guard Protection Group.

If the configuration of the protection group is not the same on each partner cluster, you need to resynchronize the configuration by using the procedures described in How to Resynchronize an Oracle Data Guard Protection Group.