5 Upgrading Oracle Access Manager Multi-Data Center Environments

You can upgrade Oracle Access Manager deployed across multi-data centers (MDC) from 11g Release 2 (11.1.2.3.0) to 12c (12.2.1.3.0).

In a multi-data center environment, where you have two OAM deployments replicating traffic, you must do the following:
  • Stop Replication
  • Direct all traffic to one of the deployments
  • Upgrade the other deployment(s)
  • Direct traffic to the newly upgraded deployment
  • Upgrade the remaining deployment
  • Re-establish replication

Note:

To upgrade Oracle Access Manager MDC environments to 12c (12.2.1.3.0), ensure that all of the data centers (DC) are at the same Patch Set level.

When you plan to upgrade to 12c (12.2.1.3.0), you can choose to have zero down time by stopping the data center that needs to be upgraded, and routing all the traffic to the other data centers. Once the upgrade has been completed on one data center, it can start and function as an independent data center. You can then redirect all the traffic to the upgraded data center. MDC Single Sign-On works between 11g and 12c Servers if backward compatibility flag is enabled. Therefore, all of the servers (upgraded and non-upgraded ones) can continue to participate in MDC.

Note:

For information about enabling the backward compatibility flag, see Modifying Backward Compatibility Flag in Administering Oracle Access Manager.

About the Oracle Access Manager Multi-Data Center Topology

The sample Oracle Access Manager Multi-Data Center topology has two data centers — Master data center and Clone data center.

The procedure in this chapter describes how to upgrade Oracle Access Manager in a MDC setup similar to the reference topology provided in this section. You can use this upgrade procedure to upgrade your environment with any number of data centers.

Figure 5-1 Oracle Access Manager in Multi—Data Center Setup

Description of Figure 5-1 follows
Description of "Figure 5-1 Oracle Access Manager in Multi—Data Center Setup"

This figure shows a Master data center and a Clone data center, each of them including a full Access Manager installation. In this topology, GTM refers to the global load balancer, LTM refers to the local load balancer, and WG refers to the WebGate. The S2S OAP is the Oracle Access Protocol.

Roadmap for Upgrading Oracle Access Manager MDC Setup

Use the upgrade roadmap to upgrade your Oracle Access Manager multi-data center setup to 12c (12.2.1.3.0).

Table 5-1 Oracle Access Manager MDC Upgrade Roadmap

Task For More Information

Review the Oracle Access Manager multi-data center topology.

See About the Oracle Access Manager Multi-Data Center Topology

Back up your existing environment.

See Backing Up the Existing MDC Environment

Enable write permission to Master and Clone data centers, if not already done.

See Enabling Write Permission to Master and Clones (If Necessary)

Disable and delete all replication agreements between Master and Clone data centers.

See Disabling and Deleting All Replication Agreements Between Master and Clone

Redirect the traffic to the Master data center.

See Redirecting Traffic to Master Data Center

Upgrade Oracle Access Manager on Clone data center.

See Upgrading Oracle Access Manager on Clone Data Center

Redirect the traffic to the Clone data center.

See Redirecting Traffic to Clone Data Center

Upgrade Oracle Access Manager on Master data center.

See Upgrading Oracle Access Manager on Master Data Center

Freeze all changes to the Master and Clones, if required.

See Freezing all Changes to Clones (if Necessary)

Sync the access UDM data by exporting the access store data from Master data center and importing it on the Clone data center.

See Syncing Access Metadata

Create the replication agreement again.

See Creating Replication Agreement

Upgrade the java.security file.

See Updating the java.security File

Bring up the Master and Clone data centers online.

See Bringing up the Master and Clone Data Centers Online

Backing Up the Existing MDC Environment

Before you begin with the upgrade, take a back up of your existing environment.

After stopping all the servers, you must back up the following on every data center before proceeding with the upgrade process:
  • ORACLE_HOME: the Oracle Home directory.

  • Oracle Access Manager Domain Home directory on all OAM hosts.

  • Following Database schemas:

    • Oracle Access Manager schema

    • Audit and any other dependent schema

For more information about backing up schemas, see Oracle Database Backup and Recovery User's Guide.

Enabling Write Permission to Master and Clones (If Necessary)

Before you start the upgrade, you must enable modifications to the system and policy configurations on both Master and Clones.

Complete the following:
  1. Go to the ORACLE_HOME/common/bin directory.

    For example: /home/oracle/oam/ORACLE_IDM/common/bin

  2. Run the following command on Master and Clone data centers:

    setMultiDataCenterWrite(WriteEnableFlag="true")

Disabling and Deleting All Replication Agreements Between Master and Clone

Disable all replication agreements between the Master and the Clone data centers.

See Disabling Automated Policy Synchronization in the Administrator's Guide for Oracle Access Manager.

Redirecting Traffic to Master Data Center

An in-line upgrade procedure is used to upgrade the Clone data center which requires downtime. Therefore, all traffic must be rerouted to the Master data center.

This is usually achieved by directing your load balancer to send all requests to the Master Site. Contact your network administrator to perform this task.

Upgrading Oracle Access Manager on Clone Data Center

Upgrade Oracle Access Manager on Clone data center to 12c (12.2.1.3.0) after you redirect the traffic to Master data center.

To upgrade Oracle Access Manager on Master data center, follow the instructions described in Upgrading Oracle Access Manager Highly Available Environments.

Redirecting Traffic to Clone Data Center

An in-line upgrade procedure is used to upgrade the Master data center which requires downtime. Therefore, all traffic must be rerouted to the Clone data centers (also referred to as, the backup data centers or the secondary data centers).

This is usually achieved by directing your load balancer to send all requests to the Master Site. Contact your network administrator to perform this task.

Upgrading Oracle Access Manager on Master Data Center

Upgrade Oracle Access Manager on Master data center to 12c (12.2.1.3.0) after you redirect the traffic to clone data center.

To upgrade Oracle Access Manager on Master data center, follow the instructions described in Upgrading Oracle Access Manager Highly Available Environments.

Freezing all Changes to Clones (if Necessary)

After you upgrade Oracle Access Manager on all of the Clone data center(s), it is recommended that you freeze the changes to the Clone data center(s). This is to avoid any inadvertent writes.

To freeze the changes, complete the following on the Clone data center(s):
  1. Go to ORACLE_HOME/common/bin.
  2. Run the following command:

    SetMultiDataCenterWrite(WriteEnableFlag="false")

Syncing Access Metadata

Oracle Access Manager metadata stored in Unified Data Model (UDM) needs to be synced from Master to Clone.

You can sync the access metadata using the WLST commands - exportAccessStore and importAccessStore. These commands need to be executed after you upgrade all of the data centers and before creating the new replication agreement. This exports the UDM artifacts created till that point, from the Master data center and imports them in the Clone data center(s).

To sync the UDM metadata, complete the following steps:

  1. Go to the ORACLE_HOME/common/bin directory.
  2. Run the following WLST command on the Master data center to create a ZIP file containing the UDM metadata:
    exportAccessStore(toFile="/master/location/dc1metadata.zip", namePath="/")
  3. Copy dc1metadata.zip to each of the upgraded Clone data centers.
  4. Run the following WLST command on the each of the Clone data centers to import the UDM metadata:
    importAccessStore(fromFile="/clone/location/dc1metadata.zip", namePath="/")

Creating Replication Agreement

Create the replication agreement again after upgrading the Master and the Clone data centers.

To create the replication agreement, run the following command:

Note:

Ensure that Master & Clone data centers REST endpoints are up and running, before you run this command.

curl -u <repluser> -H 'Content-Type: application/json' -X POST 'https://supplier.example.com/oam/services/rest/_replication/setup' -d '{"name":"DC12DC2", "source":"DC1","target":"DC2","documentType":"ENTITY"}'

For more information about creating a replication agreement, see Creating a Replication Agreement in the Administrator's Guide for Oracle Access Manager.

Updating the java.security File

If you have multiple components of Oracle Identity and Access Management (Oracle Access Manager, Oracle Identity Manager, WebGates and so on) deployed, until you upgrade all of the components to 12c (12.2.1.3.0), you must update the java.security file with the changes described in this section.

To do this:
  1. Open the java.security file located at JAVA_HOME/jre/lib/security/ in an editor.
  2. Remove TLSv1, TLSv1.1, MD5withRSA from the following key:
    key - jdk.tls.disabledAlgorithms
  3. Remove MD5 from the following key:
    key - jdk.certpath.disabledAlgorithms
For more information on possible upgrade scenarios, see Troubleshooting Security Policy Issues When Upgrading.

Bringing up the Master and Clone Data Centers Online

After successful upgrade, both Master and Clone data centers can be brought up online. Traffic can be routed to both data centers based on existing routing rules.

Consult your network infrastructure team or refer to the network infrastructure documentation to accomplish the traffic re-routing.