Skip Navigation Links | |
Exit Print View | |
![]() |
Oracle Solaris Cluster Geographic Edition Data Replication Guide for Oracle Data Guard |
1. Replicating Data With Oracle Data Guard Software
2. Administering Oracle Data Guard Protection Groups
Working With Oracle Data Guard Protection Groups
Overview of Administering Protection Groups
How to Administer an Oracle Data Guard Protection Group (Example)
Creating, Modifying, Validating, and Deleting an Oracle Data Guard Protection Group
How to Create and Configure an Oracle Data Guard Protection Group
How to Modify an Oracle Data Guard Protection Group
How to Validate an Oracle Data Guard Protection Group
How to Delete an Oracle Data Guard Protection Group
Administering Oracle Data Guard Application Resource Groups
How to Add an Application Resource Group to an Oracle Data Guard Protection Group
How to Delete an Application Resource Group From an Oracle Data Guard Protection Group
Administering Oracle Data Guard Broker Configurations
How to Add an Oracle Data Guard Broker Configuration to an Oracle Data Guard Protection Group
How the Data Replication Subsystem Verifies the Oracle Data Guard Broker Configuration
How to Modify an Oracle Data Guard Broker Configuration
How to Delete an Oracle Data Guard Broker Configuration From an Oracle Data Guard Protection Group
Replicating the Oracle Data Guard Protection Group Configuration to a Partner Cluster
How to Replicate the Oracle Data Guard Protection Group Configuration to a Partner Cluster
Activating and Deactivating a Protection Group
How to Activate an Oracle Data Guard Protection Group
How to Deactivate an Oracle Data Guard Protection Group
Resynchronizing an Oracle Data Guard Protection Group
How to Resynchronize an Oracle Data Guard Protection Group
Checking the Runtime Status of Oracle Data Guard Data Replication
Displaying an Oracle Data Guard Runtime Status Overview
How to Check the Overall Runtime Status of Replication
Displaying a Detailed Oracle Data Guard Runtime Status
3. Migrating Services That Use Oracle Data Guard Data Replication
A. Geographic Edition Properties for Oracle Data Guard Broker Configurations
The following procedures describe how to administer Oracle Data Guard Broker data replication configurations in an Oracle Data Guard protection group.
How to Add an Oracle Data Guard Broker Configuration to an Oracle Data Guard Protection Group
How the Data Replication Subsystem Verifies the Oracle Data Guard Broker Configuration
How to Delete an Oracle Data Guard Broker Configuration From an Oracle Data Guard Protection Group
For details about configuring an Oracle Data Guard protection group, see How to Create and Configure an Oracle Data Guard Protection Group.
Before You Begin
A protection group is the container for the application resource groups, which contain data for services that are protected from disaster. Geographic Edition software protects the data by replicating it from the primary cluster to the standby cluster. By adding an Oracle Data Guard Broker configuration to a protection group, Geographic Edition software monitors the replication status of the Oracle RAC database that belongs to that Oracle Data Guard Broker configuration.
Geographic Edition software also controls the role and state of the Oracle Data Guard Broker configuration during protection group operations, such as start, stop, switchover, and takeover.
Before you add an Oracle Data Guard Broker configuration to a protection group, ensure that the following conditions are met:
The protection group is defined on the local cluster.
If the partner cluster can be reached, the protection group is offline on the local cluster and the partner cluster.
The Oracle Data Guard Broker configuration exists on both the local cluster and the partner cluster.
The Oracle RAC server proxy resource group and Oracle RAC server proxy resources that manage the Oracle RAC databases that are replicated by Oracle Data Guard exist on both the local and the partner cluster.
To complete this step, you need to be 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.
This command adds a configuration to a protection group on the local cluster and propagates the new configuration to the partner cluster if the partner cluster contains a protection group of the same name.
phys-node-n# geopg add-replication-component \ -p property [-p...] ODGConfigurationName protectiongroupname
Specifies the properties of either the Oracle Data Guard Broker configuration, the Oracle RAC server proxy resource group, or the Oracle database user name and the associated password.
You can specify the following properties:
local_database_name – Name of the local database in the Oracle Data Guard Broker configuration.
local_db_service_name – Oracle net service name for the local database.
local_rac_proxy_svr_rg_name – Name of the local Oracle RAC server proxy resource group that manages the local database in the Oracle Data Guard Broker configuration.
remote_database_name – Name of the remote database in the Oracle Data Guard Broker configuration.
remote_db_service_name – Oracle net service name for the remote database.
remote_rac_proxy_svr_rg_name – Name of the Oracle RAC server proxy resource group on the partner cluster that manages the remote database in the Oracle Data Guard Broker configuration.
replication_mode – Replication mode for the database in the Oracle Data Guard Broker configuration.
standby_type – Standby type for the database in the Oracle Data Guard Broker configuration.
sysdba_password – Password for the Oracle SYSDBA privileged database user. Do not specify the actual password on the command line. If you specify only -p sysdba_password=, the geopg command prompts you to type an actual password, which is not displayed as you type it.
sysdba_username – Name of an Oracle SYSDBA privileged database user who can perform the Oracle Data Guard Broker switchover and takeover operations.
For more information about the properties that you can set, see Appendix A, Standard Geographic Edition Properties, in Oracle Solaris Cluster Geographic Edition System Administration Guide.
Specifies the name of the new Oracle Data Guard Broker configuration.
Specifies the name of the protection group that contains the new Oracle Data Guard Broker configuration.
For information about the names and values that are supported by Geographic Edition software, see Appendix B, Legal Names and Values of Geographic Edition Entities, in Oracle Solaris Cluster Geographic Edition System Administration Guide.
For more information about the geopg command, refer to the geopg(1M) man page.
Example 2-7 Adding an Oracle Data Guard Broker Configuration to an Oracle Data Guard Protection Group
This example shows how to add an Oracle Data Guard Broker configuration to the sales-pg protection group.
To run the following command successfully, you must already be able to connect to both a local and a remote database service.
phys-paris-1# geopg add-replication-component \ -p local_database_name=sales \ -p remote_database_name=salesdr \ -p local_db_service_name=sales-svc \ -p remote_db_service_name=salesdr-svc \ -p standby_type=physical \ -p replication_mode=MaxPerformance \ -p sysdba_username=sys \ -p sysdba_password= \ -p local_rac_proxy_svr_rg_name=sales-rac-proxy-svr-rg \ -p remote_rac_proxy_svr_rg_name=salesdr-rac-proxy-svr-rg \ mysales.com sales-pg
When you add an Oracle Data Guard Broker configuration to a protection group, the data replication layer verifies that the Oracle Data Guard Broker configuration exists.
When you run the geopg add-replication-component command, if they do not already exist, an Oracle shadow RAC server proxy resource group and a replication resource group for the Oracle Data Guard Broker configuration are created. In addition, the configuration is successfully validated.
The Oracle shadow RAC server proxy resource group contains a Oracle Solaris Cluster resource. This resource is based on the generic data service SUNW.gds resource type. The Oracle shadow RAC server proxy resource shadows the real Oracle RAC server proxy resource that manages and monitors the Oracle RAC database in the Oracle Data Guard Broker configuration.
For more information about the shadow RAC server proxy resource group, see Oracle Data Guard Shadow Resource Groups.
The replication resource group contains a Oracle Solaris Cluster resource that is based on the generic data service SUNW.gds resource type. The replication resource monitors the state of the database replication as reported by Oracle Data Guard Broker.
For more information about replication resources, see Oracle Data Guard Replication Resource Groups.
For the validation to be successful, ensure that the following conditions are met:
The resource group that is named in the local_rac_proxy_svr_rg_name property contains a resource of type SUNW.scalable_rac_server_proxy. This resource is used to determine the values for ${ORACLE_HOME} and the local Oracle RAC SID values.
The Oracle dgmgrl command shows a SUCCESS status for the Oracle Data Guard Broker configuration. The presence of Oracle ORA- messages in the output from the dgmgrl command might indicate that the sysdba_username password is incorrect or that the cluster has been disabled. Oracle errors are returned as part of the messages that are generated by the validate command.
The sysdba_username password is valid for the standby cluster to ensure that switchovers are possible.
The Oracle Data Guard Broker configuration details match those held by Geographic Edition. The details to check include which cluster is primary, the configuration name, the database mode (for both the primary and standby cluster), the replication mode, and the standby type.
![]() | Caution - Do not use Oracle Solaris Cluster commands to change, remove, or bring offline these resources or resource groups. Use only Geographic Edition commands to administer shadow RAC server proxy resource groups, replication resource groups, and resources that are internal entities that are managed by Geographic Edition software. Altering the configuration or state of these entities directly with Oracle Solaris Cluster commands could result in an unrecoverable failure. |
To complete this step, you need to be 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.
This command modifies the properties of an Oracle Data Guard Broker configuration in a protection group on the local cluster. The command then propagates the new configuration to the partner cluster if the partner cluster contains a protection group of the same name.
phys-node-n# geopg modify-replication-component -p property [-p…] \ ODGConfigurationName protectiongroupname
Specifies the properties of the data replication Oracle Data Guard Broker configuration.
For more information about the properties that you can set, see Appendix A, Standard Geographic Edition Properties, in Oracle Solaris Cluster Geographic Edition System Administration Guide.
Specifies the name of the Oracle Data Guard Broker configuration.
Specifies the name of the protection group that contains the Oracle Data Guard Broker configuration.
Before You Begin
Before you remove an Oracle Data Guard Broker configuration from a protection group, ensure that the following conditions are met:
The protection group is defined on the local cluster.
If the partner cluster can be reached, the protection group is offline on the local cluster and the partner cluster.
The Oracle Data Guard Broker configuration is managed by the protection group.
For information about deleting protection groups, refer to How to Delete an Oracle Data Guard Protection Group.
To complete this step, you need to be 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.
This command removes an Oracle Data Guard Broker configuration from a protection group on the local cluster. The command then propagates the new configuration to the partner cluster if the partner cluster contains a protection group of the same name.
This command removes the Oracle Data Guard Broker configuration from the protection group. This command also deletes the Oracle shadow RAC server proxy resource group and replication resource group for this Oracle Data Guard Broker configuration.
phys-node-n# geopg remove-replication-component ODGConfigurationName protectiongroupname
Specifies the name of the Oracle Data Guard Broker configuration.
Specifies the name of the protection group.
Example 2-8 Deleting an Oracle Data Guard Broker Configuration From an Oracle Data Guard Protection Group
This example shows how to delete an Oracle Data Guard Broker configuration from an Oracle Data Guard protection group.
phys-paris-1# geopg remove-replication-component mysales.com sales-pg