QuestionQ60

VerifiedPerforming Role Transitions

Your Data Guard environment has a four-instance RAC primary database with SID PROD and a RAC physical standby database with SID PROD_SBY.

Review the command run on a node in the primary database cluster to create the OLTPWORKLOAD service, which applications will use to connect when the database is in the PRIMARY role:

Question Image

The service is subsequently started.

Consider these tasks:

  1. On a standby database cluster node, execute:

    Srvctl add service -db PROD_SBY -service oltpworkload -role PRIMARY -failovertype SESSION -failovermethod BASIC -failoverdalay 10 -failoverretry 150

  2. On the primary database, create the OLTPWORKLOAD database service with the DBMS_SERVICE.CREATE_SERVICE procedure.

  3. Configure TAF for clients in the tnsnames.ora files.

  4. Ensure that clients use the OLTPWORKLOAD service to connect to the database instances.

  5. On the standby database, create the OLTPWORKLOAD database service with the DBMS_SERVICE.CREATE_SERVICE procedure.

Identify the required steps for configuring and using Transparent Application Failover (TAF).

Explanation

A Data Guard role-based service that is active in the PRIMARY role must be configured by SRVCTL on both databases with identical service attributes, allowing the service to start on the database that becomes primary after a role transition. The SRVCTL service definition already contains the TAF session failover settings; applications must connect through that service for those settings to apply. RAC-managed services should not additionally be created with DBMS_SERVICE.CREATE_SERVICE, and a separate client-side TAF configuration is not required for this server-side SRVCTL TAF configuration.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!