Skip Headers
Oracle® Enterprise Manager Lifecycle Management Administrator's Guide
12c Release 2 (12.1.0.2)

Part Number E27046-08
Go to Documentation Home
Home
Go to Book List
Book List
Go to Table of Contents
Contents
Go to Index
Index
Go to Feedback page
Contact Us

Go to previous page
Previous
Go to next page
Next
PDF · Mobi · ePub

31 Example Scenario: Using Oracle Site Guard

This chapter uses the Oracle Business Intelligence Enterprise Edition (EE) enterprise deployment topology as an example to illustrate the steps required to use Oracle Site Guard to manage disaster recovery on the production site and standby site. To use Oracle Site Guard, complete the following tasks:

Task 1: Setting Up Oracle Business Intelligence Enterprise Deployment

Set up your Oracle Business Intelligence enterprise deployment, as described in the Oracle Fusion Middleware Enterprise Deployment Guide for Oracle Business Intelligence guide.

Ensure that the following requirements are met:

Task 2: Discovering Targets for the Primary Site and the Standby Site

Discover the targets for the Oracle BI Enterprise Edition Primary Site and the Standby Site on the Enterprise Manager Cloud Control 12c Release 1 (12.1.0.2). For more information, see "Discovering Targets on the Primary Site and the Standby Site".

The following targets are available:

Note:

Oracle Business Intelligence OPMN managed system components are not discovered in Enterprise Manager Cloud Control. To manage Oracle Business Intelligence OPMN managed system components, create custom scripts, as described in "Creating Pre-Scripts and Post-Scripts for Start or Stop Operations".

Figure 31-1 and Figure 31-2 show the available Oracle Fusion Middleware Farm and RAC Database target.

Figure 31-1 Oracle Fusion Middleware Targets

Description of Figure 31-1 follows
Description of "Figure 31-1 Oracle Fusion Middleware Targets"

Figure 31-2 Database Targets

Description of Figure 31-2 follows
Description of "Figure 31-2 Database Targets"

Task 3: Creating Production and Standby Systems for Oracle Business Intelligence

Complete the steps listed in "Creating Generic Systems for the Primary and Standby Sites". Enter BISystem1 and BISystem2 as the name for the production and standby systems respectively.

Figure 31-3 shows the BISystem1 system.

Figure 31-3 Generic System for the Production and Standby Site

Description of Figure 31-3 follows
Description of "Figure 31-3 Generic System for the Production and Standby Site"

Task 4: Creating Credentials

For more information, see "Creating Credentials".

Task 5: Configuring the Software Library

For more informaton, see "Configuring the Software Library"

Task 6: Creating Oracle Site Guard Configuration

Add the configuration for the BISystem1 and BISystem2 using one of the following options:

Associating Oracle Business Intelligence Sites Using Enterprise Manager Cloud Control Console

To associate BISystem2 with BISystem1, complete the following steps:

  1. Log in to Enterprise Manager as an EM_CLOUD_ADMINISTRATOR user.

  2. Select Targets, and from the drop-down menu, select Systems.

    The Systems page is displayed.

  3. Select BISystem1.

  4. Click Generic System > Site Guard > Configure.

    The Site Guard Configuration page is displayed.

  5. In the Standby System(s) section, click Add.

    The Search and Select: Standby Systems page is displayed.

  6. Choose BISystem2, and click Select.

  7. Click Save.

    The Site Guard configuration saved successfully dialog box is displayed.

  8. Click OK.

  9. Perform steps 1-8 to associate BISystem1 for BISystem2.

Associating Oracle Business Intelligence Sites Using EMCLI Commands

To add the configuration for the primary and standby sites, run the following emcli commands in the command-line interface:

emcli create_siteguard_configuration 
      -primary_system_name="BISystem1"
      -standby_system_name="BISystem2"

See Appendix F, "create_siteguard_configuration" for more information.

To display information about the association between existing primary sites and standby sites, run the following emcli commands in the command-line interface:

emcli get_siteguard_configuration
        -primary_system_name="BISystem1"
        -standby_system_name="BISystem2"

Task 7: Associating Credentials for Site

Associate the credentials for the BISystem1 and BISystem2 using one of the following options:

Associating Credentials for Oracle Business Intelligence Sites Using Enterprise Manager Cloud Control Console

To associate the credentials for BISystem1, complete the following steps:

  1. Log in to Enterprise Manager as an EM_CLOUD_ADMINISTRATOR user.

  2. Select Targets and then select Systems.

    The Systems page is displayed.

  3. Select BISystem1.

  4. Click Generic System > Site Guard > Configure.

    The Site Guard Configuration page is displayed.

  5. Click Credentials.

  6. In the Normal Host Credentials section, click Add.

    The Add Normal Host Credentials page is displayed.

  7. Enter the following details:

    Element Description
    Target Select the target name.
    Use Preferred Credentials If you are using preferred credentials, then select the checkbox.
    Named Credential If you are using named credentials, then select the credential name.

    Click Save.

  8. In the Privileged Host Credentials section, click Add.

    The Add Privileged Host Credentials page is displayed.

  9. Enter the following details:

    Element Description
    Target Select the target name.
    Use Preferred Credentials If you are using preferred credentials, then select the checkbox.
    Named Credential If you are using named credentials, then select the credential name.

    Click Save.

  10. In the Oracle WebLogic Administration Credentials section, click Add.

    The Add Oracle WebLogic Administration Credentials page is displayed.

  11. Enter the following details:

    Element Description
    Target Select the target name.
    Use Preferred Credentials If you are using preferred credentials, then select the checkbox.
    Named Credential If you are using named credentials, then select the credential name.

    Click Save.

  12. In the Database Credentials section, click Add.

    The Add Database Credentials page is displayed.

  13. Enter the following details:

    Element Description
    Target Select the target name
    Use Preferred Credentials If you are using preferred credentials, then select the checkbox.
    Named Credential If you are using named credentials, then select the credential name.

    Click Save.

  14. Choose the standby system, and click Select.

  15. Use the above steps to associate the credentials for BISystem2.

Associating Credentials for Oracle Business Intelligence Sites Using EMCLI Commands

You must associate the named credentials for the following targets:

  • Host (for normal user and users with root privileges)

  • Host (users with root privileges)

  • Oracle WebLogic Server

  • Oracle Database

Create the named credentials by running the credential framework emcli commands for the following:

Creating Credentials for Host Targets

Specify credentials for the host on which Oracle Business Intelligence Enterprise Edition (EE) is installed and configured. Run the following emcli commands in the command-line interface:

BISystem1 for Host (Normal User)

emcli create_siteguard_credential_association 
        -system_name="BISystem1"
        -credential_type="HostNormal"
        -credential_name="NC_HOSTNORMAL" 
        -credential_owner="sysman"

BISystem1 for Host (Users with Root Privileges)

emcli create_siteguard_credential_association 
        -system_name="BISystem1"
        -credential_type="HostPrivileged"
        -credential_name="NC_HOSTSUDO" 
        -credential_owner="sysman"

BISystem2 for Host (Normal User)

emcli create_siteguard_credential_association 
        -system_name="BISystem2"
        -credential_type="HostNormal"
        -credential_name="NC_HOSTNORMAL" 
        -credential_owner="sysman"

BISystem2 for Host (Users with root Privileges)

emcli create_siteguard_credential_association 
        -system_name="BISystem2"
        -credential_type="HostPrivileged"
        -credential_name="NC_HOSTSUDO" 
        -credential_owner="sysman"

See Appendix F, "create_siteguard_credential_association" for more information.

Creating Credentials for Oracle WebLogic Server Targets

Specify the credentials for Oracle WebLogic Server by running the following emcli commands in the command-line interface:

BISystem1

emcli create_siteguard_credential_association 
        -system_name="BISystem1"
        -credential_type="WLSAdmin"
        -credential_name="NC_WLSADMIN"
        -credential_owner="sysman"

BISystem2

emcli create_siteguard_credential_association 
        -system_name="BISystem2"
        -credential_type="WLSAdmin"
        -credential_name="NC_WLSADMIN" 
        -credential_owner="sysman"

See Appendix F, "create_siteguard_credential_association" for more information.

Creating Credentials for Oracle Database Targets

Specify credentials for Oracle Database by running the following emcli commands in the command-line interface:

BISystem1

emcli create_siteguard_credential_association 
        -system_name="BISystem1"
        -credential_type="DatabaseSysdba"
        -credential_name="NC_BIDBINSTANCES" 
        -credential_owner="sysman"

BISystem2

emcli create_siteguard_credential_association 
        -system_name="BISystem2"
        -credential_type="DatabaseSysdba"
        -credential_name="NC_BIDBINSTANCES" 
        -credential_owner="sysman"

See Appendix F, "create_siteguard_credential_association" for more information.

Validate that the credentials that are associated with the system, by running the following emcli commands in the command-line interface:

emcli get_siteguard_credential_association 
        -system_name="system_name"

Figure 31-4 shows the credentials associated with BISystem1.

Figure 31-4 Credentials Associated with BISystem1

Description of Figure 31-4 follows
Description of "Figure 31-4 Credentials Associated with BISystem1"

Task 8: Creating Pre-Scripts and Post-Scripts

Oracle Site Guard provides options to include user- specified scripts in the disaster recovery operation workflow. Create the following pre-scripts and post-scripts:

Note:

After you create the required script, save them to the destination directory on each of the hosts from where the script is executed.

For example, /u01/ape/oracle/admin/bi_instance/sgscripts

For more information, see "Associating Pre-Scripts and Post-Scripts".

Creating Pre-Scripts and Post-Scripts for Start or Stop Operations

You can create Start and Stop scripts for the Oracle Business Intelligence OPMN managed system components. To manage these system components, create the following Start and Stop scripts:

Post-Script for Start Operation on BISystem1

Create a post-script for the start operation by running the following emcli commands in the command-line interface:

emcli create_siteguard_script
        -system_name= "BISystem1"
        -operation="Start"
        -script_type="Post-Script"
        -path="/u01/app/oracle/admin/bi_instance/sgscripts/startbisystemcomponents.sh"
        -host_name="BIHOST1"
        -host_name="BIHOST2"
        -role="Primary"
        –credential_type="HostNormal" 

See Appendix F, "create_siteguard_script" for more information.

You can associate a post-script for the start operation by using Enterprise Manager Cloud Control Console, as described in "Associating Pre-Scripts and Post-Scripts".

Enter the following details in the Add Pre/Post Scripts page:

Element Description
Script Path Enter the following path of the script:

/u01/app/oracle/admin/bi_instance/sgscripts/startbisystemcomponents.sh

Target Host Select BIHOST1 and BIHOST2.
Script Type Enter Post-Script.
Operation Type Enter Start.
Role Enter Primary.
Credential Type Enter Normal Host Credentials.

Pre-Script for Stop Operation on BISystem1

Create a pre- script for the stop operation by running the following emcli commands in the command-line interface:

emcli create_siteguard_script
        -system_name= "BISystem1"
        -operation="Stop"
        -script_type="Pre-Script"
        -path="/u01/app/oracle/admin/bi_instance/sgscripts/stopbisystemcomponents.sh"
        -host_name="BIHOST1"
        -host_name="BIHOST2"
        -role="Primary"
        –credential_type="HostNormal"

See Appendix F, "create_siteguard_script" for more information.

You can associate a post-script for the stop operation by using Enterprise Manager Cloud Control Console, as described in "Associating Pre-Scripts and Post-Scripts Using Enterprise Manager Cloud Control Console".

Enter the following details in the Add Pre/Post Scripts page:

Element Description
Script Path Enter the following path of the script:

/u01/app/oracle/admin/bi_instance/sgscripts/stopbisystemcomponents.sh

Target Host Select BIHOST1 and BIHOST2.
Script Type Enter Pre-Script.
Operation Type Enter Stop.
Role Enter Primary.
Credential Type Enter Normal Host Credentials.

Post-Script for Start Operation on BISystem2

Create a post-script for the start operation by running the following emcli commands in the command-line interface:

emcli create_siteguard_script
        -system_name= "BISystem2"
        -operation="Start"
        -script_type="Post-Script"
        -path="/u01/app/oracle/admin/bi_instance/sgscripts/startbisystemcomponents.sh"
        -host_name="STBYBI1"
        -host_name="STBYBI2"
        -role="Primary"
        –credential_type="HostNormal"

See Appendix F, "create_siteguard_script" for more information.

You can associate a pre-script for the stop operation by using Enterprise Manager Cloud Control Console, as described in "Associating Pre-Scripts and Post-Scripts Using Enterprise Manager Cloud Control Console".

Enter the following details in the Add Pre/Post Scripts page:

Element Description
Script Path Enter the following path of the script:

/u01/app/oracle/admin/bi_instance/sgscripts/startbisystemcomponents.sh

Target Host Select STBYBI1 and STBYBI2.
Script Type Enter Pre-Script.
Operation Type Enter Start.
Role Enter Primary.
Credential Type Enter Normal Host Credentials.

Pre-Script for Stop Operation on BISystem2

Create a post-script for the stop operation by running the following emcli commands in the command-line interface:

emcli create_siteguard_script
        -system_name= "BISystem2"
        -operation="Stop"
        -script_type="Pre-Script"
        -path="/u01/app/oracle/admin/bi_instance/sgscripts/stopbisystemcomponents.sh"
        -host_name="STBYBI1"
        -host_name="STBYBI2"
        -role="Primary"
        –credential_type="HostNormal" 

See Appendix F, "create_siteguard_script" for more information.

You can associate a pre-script for the stop operation by using Enterprise Manager Cloud Control Console, as described in "Associating Pre-Scripts and Post-Scripts Using Enterprise Manager Cloud Control Console".

Enter the following details in the Add Pre/Post Scripts page:

Element Description
Script Path Enter the following script path:
/u01/app/oracle/admin/bi_instance/sgscripts/stopbisystemcomponents.sh
Target Host Select STBYBI1 and STBYBI2
Script Type Enter Pre-Script
Operation Type Enter Stop
Role Enter Primary
Credential Type Enter Normal Host Credentials

Creating Pre-Scripts and Post-Scripts for Switchover or Failover Operations

You can create the following pre-scripts and post-scripts for switchover and failover operations:

Pre-Script for Switchover Operation on BISystem1

Create a pre-script for the switchover operation by running the following emcli commands in the command-line interface:

emcli create_siteguard_script
        -system_name= "BISystem1"
        -operation="Switchover"
        -script_type="Pre-Script"
        -path="/u01/app/oracle/admin/bi_instance/sgscripts/stopbisystemcomponents.sh"
        -host_name="BIHOST1"
        -host_name="BIHOST2"
        -role="Primary"
        –credential_type="HostNormal"

See Appendix F, "create_siteguard_script" for more information.

You can associate a pre-script for the stop operation by using Enterprise Manager Cloud Control Console, as described in "Associating Pre-Scripts and Post-Scripts Using Enterprise Manager Cloud Control Console".

Enter the following details in the Add Pre/Post Scripts page:

Element Description
Script Path Enter the following script path:
/u01/app/oracle/admin/bi_instance/sgscripts/stopbisystemcomponents.sh
Target Host Select BIHOST1 and BIHOST2.
Script Type Enter Pre-Script
Operation Type Enter Switchover
Role Enter Primary
Credential Type Enter Normal Host Credentials

Post-Script for Switchover Operation on BISystem1

Create a post-script for the switchover operation by running the following emcli commands in the command-line interface:

emcli create_siteguard_script
        -system_name= "BISystem1"
        -operation="Switchover"
        -script_type="Post-Script"
        -path="/u01/app/oracle/admin/bi_instance/sgscripts/startbisystemcomponents.sh"
        -host_name="BIHOST1"
        -host_name="BIHOST2"
        -role="Standby"
        –credential_type="HostNormal"

See Appendix F, "create_siteguard_script" for more information.

You can associate a pre-script for the stop operation by using Enterprise Manager Cloud Control Console, as described in "Associating Pre-Scripts and Post-Scripts Using Enterprise Manager Cloud Control Console".

Enter the following details in the Add Pre/Post Scripts page:

Element Description
Script Path Enter the following script path:
/u01/app/oracle/admin/bi_instance/sgscripts/startbisystemcomponents.sh
Target Host Select BIHOST1 and BIHOST2.
Script Type Enter Post-Script
Operation Type Enter Switchover
Role Enter Standby
Credential Type Enter Normal Host Credentials

Post-Script for Failover Operation on BISystem1

Create a post-script for the failover operation by running the following emcli commands in the command-line interface:

emcli create_siteguard_script
        -system_name= "BISystem1"
        -operation="failover"
        -script_type="Post-Script"
        -path="/u01/app/oracle/admin/bi_instance/sgscripts/startbisystemcomponents.sh"
        -host_name="BIHOST1"
        -host_name="BIHOST2"
        -role="Standby"
        –credential_type="HostNormal"

See Appendix F, "create_siteguard_script" for more information.

You can associate a pre-script for the stop operation by using Enterprise Manager Cloud Control Console, as described in "Associating Pre-Scripts and Post-Scripts Using Enterprise Manager Cloud Control Console".

Enter the following details in the Add Pre/Post Scripts page:

Element Description
Script Path Enter the following script path:
/u01/app/oracle/admin/bi_instance/sgscripts/startbisystemcomponents.sh
Target Host Select BIHOST1 and BIHOST2.
Script Type Enter Post-Script
Operation Type Enter Failover
Role Enter Standby
Credential Type Enter Normal Host Credentials

Pre-Script for Switchover Operation on BISystem2

Create a pre-script for the switchover operation by running the following emcli commands in the command-line interface:

emcli create_siteguard_script
        -system_name= "BISystem2"
        -operation="Switchover"
        -script_type="Pre-Script"
        -path="/u01/app/oracle/admin/bi_instance/sgscripts/stopbisystemcomponents.sh"
        -host_name="STBYBI1"
        -host_name="STBYBI2"
        -role="Primary"
        –credential_type="HostNormal"

See Appendix F, "create_siteguard_script" for more information.

You can associate a pre-script for the stop operation by using Enterprise Manager Cloud Control Console, as described in Associating Pre-Scripts and Post-Scripts Using Enterprise Manager Cloud Control Console.

Enter the following details in the Add Pre/Post Scripts page:

Element Description
Script Path Enter the following script path:
/u01/app/oracle/admin/bi_instance/sgscripts/stopbisystemcomponents.sh
Target Host Select STBYBI1 and STBYBI12
Script Type Enter Pre-Script as the script type.
Operation Type Specify Switchover as the operation type.
Role Specify Primary
Credential Type Enter Normal Host Credentials

Post-Script for Switchover Operation on BISystem2

Create a post-script for the switchover operation by running the following emcli commands in the command-line interface:

emcli create_siteguard_script
        -system_name= "BISystem2"
        -operation="Switchover"
        -script_type="Post-Script"
        -path="/u01/app/oracle/admin/bi_instance/sgscripts/startbisystemcomponents.sh"
        -host_name="STBYBI1"
        -host_name="STBYBI2"
        -role="Standby"
        –credential_type="HostNormal"

See Appendix F, "create_siteguard_script" for more information.

You can associate a pre-script for the stop operation by using Enterprise Manager Cloud Control Console, as described in "Associating Pre-Scripts and Post-Scripts Using Enterprise Manager Cloud Control Console".

Enter the following details in the Add Pre/Post Scripts page:

Element Description
Script Path Enter the following script path:
/u01/app/oracle/admin/bi_instance/sgscripts/startbisystemcomponents.sh
Target Host Select STBYBI1 and STBYBI2
Script Type Enter Post-Script as the script type.
Operation Type Specify Switchover as the operation type.
Role Specify Primary.
Credential Type Specify Normal Host Credentials as the credential type.

Post-Script for Failover Operation on BISystem2

Create a post-script for the failover operation, by running the following emcli commands in the command-line interface:

emcli create_siteguard_script
        -system_name= "BISystem2"
        -operation="failover"
        -script_type="Post-Script"
        -path="/u01/app/oracle/admin/bi_instance/sgscripts/startbisystemcomponents.sh"
        -host_name="STBYBI1"
        -host_name="STBYBI2"
        -role="Standby"
        –credential_type="HostNormal"

See Appendix F, "create_siteguard_script" for more information.

Associate a pre-script for the stop operation by using Enterprise Manager Cloud Control Console, as described in "Associating Pre-Scripts and Post-Scripts Using Enterprise Manager Cloud Control Console".

Enter the following details in the Add Pre/Post Scripts page:

Element Description
Script Path Enter the following script path:
/u01/app/oracle/admin/bi_instance/sgscripts/startbisystemcomponents.sh
Target Host Select STBYBI1 and STBYBI2
Script Type Enter Post-Script as the script type.
Operation Type Specify Failover as the operation type.
Role Specify Standby.
Credential Type Specify Normal Host Credentials as the credential type.

Task 9: Associating Storage Scripts

You can associate the storage scripts for BISystem1 and BISystem2 using one of the following options:

Associating Storage Scripts for Oracle Business Intelligence Sites Using Enterprise Manager Cloud Control Console

To associate the storage scripts for BISystem1, complete the following steps:

  1. Log in to Enterprise Manager as an EM_CLOUD_ADMINISTRATOR user.

  2. Select Targets and then select Systems.

    The Systems page is displayed.

  3. Select BISystem1.

  4. Click Generic System > Site Guard > Configure.

    The Site Guard Configuration page is displayed.

  5. Click the Storage Scripts tab.

  6. Click Add.

    The Add Storage Scripts page is displayed.

  7. Enter the following details:

    Element Description
    Script Path Enter the following script path:
    /u01/app/oracle/admin/bi_instance/sgstoragescripts/switchovertobisystem1.sh
    
    Target Host Select BIHOST1.
    Script Type Enter Storage-Switchover as the script type.
    Operation Type Specify Switchover as the operation type.
    Credential Type Specify Privileged Host Credentials as the credential type.

    Click Save.

  8. Use the above steps to associate the storage failover script for BISystem1. Ensure that you enter the following details:

    Element Description
    Script Path Enter the following script path:
    /u01/app/oracle/admin/bi_instance/sgstoragescripts/failovertobisystem1.sh
    
    Target Host Select BIHOST1.
    Script Type Enter Storage-Switchover as the script type.
    Operation Type Specify Failover as the operation type.
    Credential Type Specify Privileged Host Credentials as the credential type.

Create the storage switchover and failover Script for BISystem2, as described in "Associating Storage Scripts for Oracle Business Intelligence Sites Using Enterprise Manager Cloud Control Console". Ensure that you enter the following details:

Storage switchover script

Element Description
Script Path Enter the following script path:
/u01/app/oracle/admin/bi_instance/sgstoragescripts/switchovertobisystem2.sh
Target Host Select STBYBI1.
Script Type Enter Storage-Switchover as the script type.
Operation Type Specify Switchover as the operation type.
Credential Type Specify Privileged Host Credentials as the credential type.

Storage failover script

Element Description
Script Path Enter the following script path:
/u01/app/oracle/admin/bi_instance/sgstoragescripts/failovertobisystem2.sh
Target Host Select STBYBI1.
Script Type Enter Storage-Failover as the script type.
Operation Type Specify Failover as the operation type.
Credential Type Specify Privileged Host Credentials as the credential type.

Associating Storage Scripts for Oracle Business Intelligence Sites Using EMCLI Commands

You must create storage scripts, as described in "Creating Storage Scripts" and then complete the following:

Storage Switchover Script for BISystem1

Associate a storage switchover script for BISystem1 by running the following emcli commands in the command-line interface:

emcli create_siteguard_script
        -system_name= "BISystem1"
        -operation="Switchover"
        -script_type="Storage-Switchover"
        -path="/u01/app/oracle/admin/bi_instance/sgstoragescripts/switchovertobisystem1.sh"
        -host_name="BIHOST1"
        –credential_type="HostPrivileged"

See Appendix F, "create_siteguard_script" for more information.

Storage Switchover Script for BISystem2

Associate a storage switchover script for BISystem2 by running the following emcli commands in the command-line interface:

emcli create_siteguard_script
        -system_name= "BISystem2"
        -operation="Switchover"
        -script_type="Storage-Switchover"
        -path="/u01/app/oracle/admin/bi_instance/sgstoragescripts/switchovertobisystem2.sh"
        -host_name="STBYBI1"
        –credential_type="HostPrivileged"

See Appendix F, "create_siteguard_script" for more information.

Storage Failover Script for BISystem1

Associate a storage failover script for BISystem1 by running the following emcli commands in the command-line interface:

emcli create_siteguard_script
        -system_name= "BISystem1"
        -operation="Failover"
        -script_type="Storage-Failover
        -path="/u01/app/oracle/admin/bi_instance/sgstoragescripts/failovertobisystem1.sh"
        -host_name="BIHOST1"
        –credential_type="HostPrivileged"

See Appendix F, "create_siteguard_script" for more information.

Storage Failover Script for BISystem2

Associate a storage failover script for BISytem2 by running the following emcli commands in the command-line interface:

emcli create_siteguard_script
        -system_name= "BISystem2"
        -operation="Failover"
        -script_type="Storage-Failover"
        -path="/u01/app/oracle/admin/bi_instance/sgstoragescripts/failovertobisystem2.sh"
        -host_name="STBYBI1"
        –credential_type="HostPrivileged"

See Appendix F, "create_siteguard_script" for more information.

Task 10: Creating Operation Plans

You must create the following operation plans:

For more information, see Executing Oracle Site Guard Operations.

Operation Plan for Start Operation on BISystem1

Create a start operation plan by running the following emcli commands in the command-line interface:

emcli create_operation_plans
        _system_name="BISystem1"
        -operation="Start"
        -name="start-bisystem1"
        -role="Primary"

See Appendix F, "create_operation_plan" for more information.

Operation Plan for Stop Operation on BISystem1

Create a stop operation plan by running the following emcli commands in the command-line interface:

emcli create_operation_plan
        -system_name="BISystem1"
        -operation="Stop"
        -name="stop-bisystem1"
        -role="Primary"

See Appendix F, "create_operation_plan" for more information.

Operation Plan for Start Operation on BISystem2

Create a start operation plan by running the following emcli commands in the command-line interface:

emcli create_operation_plan
        -system_name="BISystem2"
        -operation="Start"
        -name="start-bisystem2"
        -role="Standby"

See Appendix F, "create_operation_plan" for more information.

Operation Plan for Stop Operation on BISystem2

Create a stop operation plan by running the following emcli commands in the command-line interface:

emcli create_operation_plan
        -system_name="BISystem2"
        -operation="Stop"
        -name="stop-bisystem2"
        -role="Standby"

See Appendix F, "create_operation_plan" for more information.

Operation Plan for Switchover Operation on BISystem2

Create a switchover operation plan by running the following emcli commands in the command-line interface:

emcli create_operation_plan
        -primary_system_name="BISystem1"
        -standby_system_name="BISystem2" 
        -operation="Switchover""
        -name="switchover-to-bisystem2"

See Appendix F, "create_operation_plan" for more information.

Operation Plan for Switchover Operation on BISystem1

Create a switchover operation plan by running the following emcli commands in the command-line interface:

emcli create_operation_plan
        -primary_system_name="BISystem2"
        -standby_system_name="BISystem1" 
        -operation="Switchover""
        -name="switchover-to-bisystem1"

See Appendix F, "create_operation_plan" for more information.

Operation Plan for Failover Operation on BISystem2

Create a failover operation plan by running the following emcli commands in the command-line interface:

emcli create_operation_plan
        -primary_system_name="BISystem1"
        -standby_system_name="BISystem2" 
        -operation="Failover"
        -name="Failover-to-bisystem2"

See Appendix F, "create_operation_plan" for more information.

Operation Plan for Failover Operation on BISystem1

Create a failover operation plan by running the following emcli commands in the command-line interface:

emcli create_operation_plan
        -primary_system_name="BISystem2"
        -standby_system_name="BISystem1" 
        -operation="Failover"
        -name="Failover-to-bisystem1"

See Appendix F, "create_operation_plan" for more information.

Listing Operation Plan

To list all operation plans, run the following emcli commands in the command-line interface:

emcli get_operation_plan
        -name="plan_name"

Figure 31-5 shows an example of all operation plans for BISystem1 and BISystem2.

Figure 31-5 Operation Plans for BISystem1 and BISystem2

Description of Figure 31-5 follows
Description of "Figure 31-5 Operation Plans for BISystem1 and BISystem2"

Listing Operation Plan Detail

To obtain information about an operation plan, run the following emcli commands in the command-line interface:

emcli get_operation_plan_details
        -name="plan_name"

See Appendix F, "get_operation_plan_details" for more information.

Task 11: Starting BISystem1

Start BISystem1 by submitting the start-bisystem1 operation using emcli commands in the command-line interface:

emcli submit_operation_plan 
              -name="start-bisystem1" 

See Appendix F, "submit_operation_plan" for more information.

Figure 31-6 shows the start-bisystem1 operation status.

You can also monitor the status from the Enterprise Manager Cloud Control console by completing the following steps:

  1. Log in to Enterprise Manager Cloud Control Console as an EM_CLOUD_ADMINISTRATOR user.

  2. Click Enterprise > Provisioning and Patching > Procedure Activity.

    The Provisioning page is displayed.

  3. Click the Procedure Activity tab.

Task 12: Stopping BISystem1

Stop BISystem1 by submitting the stop-bisystem1 operation using emcli commands in the command-line interface:

emcli submit_operation_plan 
              -name="stop-bisystem1" 

See Appendix F, "submit_operation_plan" for more information.

Figure 31-7 shows the stop-bisystem1 operation status.

Task 13: Running the Oracle Site Guard Pre-Check Utility

Oracle Site Guard runs the pre-check utility after you submit the operation plan.

To run the pre-check utility for an operation plan, run the following emcli commands in the command-line interface:

emcli run_prechecks
       -operation_plan="name"

See Appendix F, "run_prechecks" for more information.

Figure 31-8 shows an example of a pre-check utility emcli command in the command-line interface.

Figure 31-8 Pre-Check Utility

Description of Figure 31-8 follows
Description of "Figure 31-8 Pre-Check Utility"

Task 14: Performing Site Switchover

You must complete the following:

Switchover to BISystem1

To perform a site switchover to BISystem1, run the following emcli commands in the command-line interface:

emcli submit_operation_plan 
        -name="switchover-to-bisystem1" 

See Appendix F, "submit_operation_plan" for more information.

Figure 31-9 shows the switchover operation status.

Figure 31-9 Switchover Status for BISystem1

Description of Figure 31-9 follows
Description of "Figure 31-9 Switchover Status for BISystem1"

Switchover to BISystem2

To perform a site switchover to BISystem2, run the following emcli commands in the command-line interface:

emcli submit_operation_plan 
        -name="switchover-to-bisystem2"

See Appendix F, "submit_operation_plan" for more information.

Figure 31-10 shows the switchover operation status.

Figure 31-10 Switchover Status for BISystem2

Description of Figure 31-10 follows
Description of "Figure 31-10 Switchover Status for BISystem2"

After you perform switchover the associations in the Site Guard configuration will be updated, as shown in Figure 31-11.

Figure 31-11 Updated Site Guard Status

Description of Figure 31-11 follows
Description of "Figure 31-11 Updated Site Guard Status"

Task 15: Performing Site Failover

To perform a site failover, complete the following steps:

Failover to BISystem1

To perform a site failover to BISystem1, run the following emcli commands in the command-line interface:

emcli submit_operation_plan 
        -name="failover-to-bisystem1"

See Appendix F, "submit_operation_plan" for more information.

Figure 31-12 shows the failover operation status.

Figure 31-12 Failover Status for BISystem1

Description of Figure 31-12 follows
Description of "Figure 31-12 Failover Status for BISystem1"

Failover to BISystem2

To perform a site failover to BISystem2, run the following emcli commands in the command-line interface:

emcli submit_operation_plan 
        -name="failover-to-bisystem2"

See Appendix F, "submit_operation_plan" for more information.

Figure 31-13 shows the failover operation status.

Figure 31-13 Failover Status for BISystem2

Description of Figure 31-13 follows
Description of "Figure 31-13 Failover Status for BISystem2"