7 Upgrading Oracle Access Management Multi-Data Center Environments

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

Note:

To upgrade Oracle Access Management 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 Management.

About the Oracle Access Management Multi-Data Center Topology

The sample Oracle Access Management 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 Management 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 7-1 Oracle Access Management in Multi—Data Center Setup

Description of Figure 7-1 follows
Description of "Figure 7-1 Oracle Access Management 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 Management MDC Setup

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

Table 7-1 Oracle Access Management MDC Upgrade Roadmap

Task For More Information

Review the Oracle Access Management multi-data center topology.

See About the Oracle Access Management 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 Management on Clone data center.

See Upgrading Oracle Access Management on Clone Data Center

Redirect the traffic to the Clone data center.

See Redirecting Traffic to Clone Data Center

Upgrade Oracle Access Management on Master data center.

See Upgrading Oracle Access Management 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:
  • MW_HOME directory (Middleware home directory), including the Oracle Home directories inside Middleware home.

  • Oracle Access Management 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.

Disabling Deprecated Services in OAM

Applies only to Mobile and Social, Security Token Service, and Mobile Security Service users.

Mobile and Social, Security Token Service, and Mobile Security Service can’t be used in OAM 12c. If your current installation makes use of any of these services, you must disable them before attempting to perform this upgrade. If any of these services are active during the upgrade, the upgrade will fail with an “upgrade not feasible” error message. You can find additional information about these features in the Oracle Mobile Security Suite Statement Of Direction support document.

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.

To do this, 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 Management.

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.

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

Upgrading Oracle Access Management on Clone Data Center

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

To upgrade Oracle Access Management on Master data center, follow the instructions described in Upgrading Oracle Access Management 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).

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

Upgrading Oracle Access Management on Master Data Center

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

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

Freezing all Changes to Clones (if Necessary)

After you upgrade Oracle Access Management 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, run the following command on the Clone data center(s):

SetMultiDataCenterWrite(WriteEnableFlag="false")

Syncing Access Metadata

Oracle Access Management 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. 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="/")
  2. Copy dc1metadata.zip to each of the upgraded Clone data centers.
  3. 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 Management.

Updating the java.security File

If you have multiple components of Oracle Identity and Access Management (Oracle Access Management, 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.