5 Upgrading Enterprise Manager and Transitioning to DR Readiness

This chapter describes how to upgrade your Enterprise Manager environment with best practices to implement the Standby OMSs using Storage Replication DR architecture.

In particular, this chapter covers the following:

5.1 Overview of Upgrading Enterprise Manager and Transitioning to DR Readiness

Enterprise Manager Cloud Control 12.1.0.3 included a significant change to MAA Disaster Recovery (DR) architecture. Starting with Enterprise Manager Cloud Control 12.1.0.3, the recommended MAA DR architecture, Standby OMSs using Storage Replication, makes use of a single WebLogic domain, replicated storage, and alias hostnames. The previous Standby OMS using Standby WebLogic Domain DR architecture was deprecated in Enterprise Manager Cloud Control 12.1.0.3 and desupported in Enterprise Manager Cloud Control 13.1. A best practice implementation of the Standby OMSs using Storage Replication DR architecture includes the following:
  • OMSs and agents secured against an application virtual hostname

  • Each OMS and central agent configured using alias hostname

  • Each OMS and central agent installed on replicated storage and replicated between sites

  • Each OMS and central agent installations attached to inventory on replicated storage and replicated between sites

  • Software Library and BI Publisher storage shared between OMS servers at each site and replicated between sites

  • Agents installed on each physical host at each site to provide monitoring of the hosts regardless of which site is currently the active site

Environments that have already implemented Standby OMSs using Storage Replication DR architecture configured with best practices can make use of the standard upgrade procedures and do not require the additional steps detailed in this chapter. Environments that have not yet implemented the best practices for the Standby OMSs using Storage Replication DR architecture will need to be transitioned in order to support Disaster Recovery in Enterprise Manager Cloud Control 13c.

To assist with the process of transitioning to the new architecture, a new mode of the installer named Upgrade and Transition to DR Readiness has been created. This new mode is enabled by passing a parameter named UPGRADE_TRANSITION, and is only supported for use on the first OMS, via a standard GUI installation, and requires a specific flow of preparation and post-upgrade steps that must be followed. A software only install followed by ConfigureGC.sh does not provide support for Upgrade and Transition to DR Readiness. In addition, upgrading additional OMSs using Upgrade and Transition to DR Readiness is not supported. In a multi-OMS environment, the additional OMSs must first be deinstalled, the first OMS and related post-upgrade processes associated with the transition must be completed, and then additional OMSs can be deployed.

In addition to upgrading the primary OMS and repository from Enterprise Manager Cloud Control 12.1.0.4 or 12.1.0.5 to Enterprise Manager Cloud Control 13.2.0.0 the Upgrade and Transition to DR Readiness installation can perform the following steps:
  • Install the Enterprise Manager 13c software for the primary OMS on replicated storage

  • Configure the upgraded Enterprise Manager 13c primary OMS to make use of an alias hostname

  • Attach the upgraded Enterprise Manager 13c installation to a specified inventory on replicated storage

The Upgrade and Transition to DR Readiness process requires significant preparation and additional steps outside the context of the installer itself. The degree of change required as part of the upgrade and transition process depends upon the degree to which the existing installation follows best practices for the Standby OMSs using Storage Replication DR architecture. The maximum amount of change involves implementation of alias hostnames and relocation of OMS and OMS agent (Central Agent) from installations and inventory on local storage to installations and inventory on replicated storage. Variations of this process can be performed to address environments where only a subset of the configuration changes are required. The following table provides an overview of the process applicable to each scenario.

After additional OMSs are successfully deployed, WebLogic demonstration certificates are regenerated to reflect alias hostnames on all OMS servers; the binaries from the Enterprise Manager 12c OMS on OMS1 are deinstalled; and physical hostname agents are deployed to all Primary and Standby OMS servers.

Table 5-1 Transitions Supported by Upgrade Modes

Old Install Upgraded Install Old Inventory Upgraded Inventory Old Hostname Upgraded Hostname Upgrade Mode

Local or Replicated

Replicated

Local

Replicated

Physical

Alias

Upgrade and Transition to DR Readiness

Local or Replicated

Replicated

Local

Replicated

Alias

Same

Upgrade and Transition to DR Readiness

Local or Replicated

Replicated

Replicated

Same

Physical

Alias

Upgrade and Transition to DR Readiness

Local or Replicated

Replicated

Replicated

Same

Alias

Same

Upgrade

5.2 Upgrading Enterprise Manager 12c to 13c Release 2 and Transitioning to DR Readiness

5.2.1 Process of Upgrading Enterprise Manager 12c to 13c Release 2 and Transitioning to DR Readiness

The upgrade and transition process starts with preparation activities across the environment to ensure readiness. Once the environment is ready, a consistent set of backups of all OMS servers are taken at both sites and the repository database. Once the backups are complete, the deinstallation of the standby OMSs and OMS agents begin. The Standby OMSs are deleted, the Standby OMS agents are deinstalled, and the Standby OMS binaries are deinstalled.

Once the Standby site deinstallation is complete, detailed preparation of servers begins on both sites. The OMS Installation Base directory is identified; Primary and Standby OMS Servers are prepared for replicated storage configuration and for alias hostnames; an Oracle Inventory Location pointer file is created in the Oracle Inventory Directory on replicated storage on Primary OMS1; the Enterprise Manager 13c installation software is staged on Primary OMS1 server; and the local lock file directories are created on all Primary and Standby OMS Servers.

Once the preparation on both sites is complete, additional OMSs and additional OMS agents at the primary site are deleted and deinstalled, and the upgrade and transition of OMS1 begins. The Primary OMS1 and OMS1 agent are stopped, the installer is launched, and the upgrade and transition of OMS1 and the repository begins. After the upgrade and transition of OMS1 completes, OMS1 is stopped, configured for local lock files, and restarted.

At this point, the upgrade and transition of OMS1 Agent begins. The OMS1 Agent is upgraded to Enterprise Manager 13.2; the Post Agent Upgrade Cleanup is performed for the OMS1 Agent; the OMS1 Agent is relocated from local storage and inventory to replicated storage and inventory; steps are taken to prepare and recover the OMS1 Agent to make use of the alias hostname; OMS1 related targets are relocated to the recovered alias hostname agent.

Once the Agent and target relocation is complete, the OMS1 is resecured to make use of the updated Enterprise Manager 13c SLB configuration, the internal channel between the OMS and BI Publisher is configured, and the deferred DDMP jobs are submitted. Once the DDMP Jobs complete, the upgrade and transition of OMS1 is complete and additional OMS deployment begins. An alias hostname agent is deployed to each additional OMS server on replicated storage with inventory on replicated storage. Additional OMSs are deployed using the Add Oracle Management Service deployment procedure.

After additional OMSs are successfully deployed, WebLogic demonstration certificates are regenerated to reflect alias hostnames on all OMS servers; the binaries from the Enterprise Manager 12c OMS on OMS1 are deinstalled; and physical hostname agents are deployed to all Primary and Standby OMS servers.

This completes the upgrade and transition process on both sites.

Note:

In development and test environments that can accommodate the associated downtime, a switchover can be performed to and back from the new standby OMSs to confirm the successful upgrade and transition, and additional patching and other maintenance tests also can be performed.
Once the upgrade and transition is complete and known to be successful, interim upgrade and transition files can be backed up as necessary and deleted.

5.2.2 Upgrading Enterprise Manager 12c to 13c Release 2 and Transitioning to DR Readiness

To upgrade your Enterprise Manager 12c Release 5 (12.1.0.5) or 12c Release 4 (12.1.0.4) environment configured with Standby OMSs using Standby WebLogic Domain Disaster Recovery (DR) architecture to Enterprise Manager 13c Release 2 (13.2.0.0) and transition to Standby OMSs using Storage Replication DR architecture, follow these steps:

5.2.2.1 Preparing to Upgrade and Transition to DR Readiness

This section details the preparation steps required to ensure a successful upgrade and transition. As a general approach, consider preparation for this upgrade and transition to be similar to preparation that you would perform for an upgrade or other heavy maintenance activity. As with those maintenance activities, it is important to ensure that the environment is healthy prior to commencing the upgrade and transition activities.

It is important to understand the entire upgrade and transition process as well as the conventions used in this section. There are two users referenced in the instructions:

  • Root

  • Oracle Software Owner User

If there is no reference to the specific user to use for a command, the command should be run as the Oracle Software Owner User. Commands that should be run as root are identified explicitly. If you cannot directly log in as root in your environment, you can make use of sudo or other means to execute the commands as root. If you are using other means to execute the commands as root in your environment, be sure to make the appropriate changes to the commands to ensure they are run with root privileges and test those commands in your development or test environment to ensure they are structured correctly.

Variables are referenced within commands using angle brackets as in <VARIABLE>. As environments can vary substantially, it is possible that direct variable substitution may not work for your environment. In these cases, you must identify the difference between your environment and the example environment reflected in the examples in this section, and adapt the variable substitution to reflect the differences in your environment.

Enterprise Manager servers that contain an OMS are referenced within these instructions individually as an OMS server or OMSn (such as OMS1), and collectively as OMSs or OMS servers. Thus, a reference to an OMS server often includes components besides the OMS, such as BI Publisher if BI Publisher is configured. A reference to Start OMS with the command emctl start oms will start the full product stack installed and configured on the particular OMS server, including OMS, BI Publisher (if configured), WebLogic Node Manager, and WebLogic Administration Server if on OMS1.

Before you proceed with Upgrading Enterprise Manager 12c to 13c Release 2 and Transitioning to DR Readiness, ensure that you have verified the following:

5.2.2.1.1 Prerequisites for Upgrading Enterprise Manager Cloud Control 13c Release 2 and Transitioning to DR Readiness

The prerequisites for performing an Upgrade and Transition to DR Readiness are a superset of the prerequisites for performing a standard upgrade. Review, understand, and ensure the environment meets the prerequisites specified in Prerequisites for Upgrading to Enterprise Manager Cloud Control 13c Release 2. Ensure that prerequisites not specifically referenced in this chapter are performed at the appropriate time in the upgrade and transition process, no later than before the start of the actual Upgrade and Transition to DR Readiness using the installer. Instructions in this chapter will address when to stop the OMS and OMS agent.

5.2.2.1.2 Securing Enterprise Manager Installation Against an Application Virtual Hostname

A disaster recovery configuration requires securing the OMS and agents against an application virtual hostname, which can be implemented manually with DNS or in an automated fashion with a global load balancer. Ensure that the OMS and agents have been secured against an application virtual hostname before performing the upgrade and transition. For more information on application virtual hostname, see Application Virtual Host Name Consideration in the Oracle Enterprise Manager Cloud Control Advanced Installation and Configuration Guide.

5.2.2.1.3 Ensuring the Replicated Storage is Provisioned and Currently Active on the Primary Site

This chapter makes use of the terms replicated storage and storage replication to describe the storage that is used for the installation, configuration, and execution of the OMS and OMS agent software using the alias hostnames. The storage for a given OMS at the primary site is replicated to the corresponding storage at the standby site. The changes are replicated at a minimum on a defined schedule, and on demand before a switchover occurs such that the same installed software and configuration can be accessed by whichever site is active. Depending upon the technologies chosen, there may be manual steps required to be taken by storage administrators in order to change the direction of the replication and prepare the other site’s storage for access. Each OMS (OMS1, OMS2, and so on) has a server at the primary site and at the standby site, and for each OMS only one server is active at any given time. The server at the active site hosts the OMS using the replicated storage.

In addition to the storage replication of OMS and OMS agent software, there are two other sets of storage replication that must be provisioned prior to performing this upgrade and transition process in order to support replication of the Software Library and the BI Publisher shared storage. Storage replication for the Software Library should already be addressed because the Software Library should already be shared between OMSs at a site and replicated between the primary and standby sites as part of the existing two-domain installation. As such, while the Software Library is backed up at the start of this upgrade and transition process, there are no steps incorporated into this upgrade and transition to address preparation of replication of the Software Library. Ensure Software Library replication is configured properly such that the Software Library is currently available on all OMSs at both the primary and standby sites using the same path on all OMSs to support the current two-domain installation, and that it will continue to be available to whichever site is active in the migrated environment.

BI Publisher shared storage needs to be replicated to the standby site such that it can be mounted with the same path, same mount point options, and so on, on each of the standby site OMSs at switchover or failover time. The BI Publisher shared storage at the standby site should make use of the same technology (including software version and configuration options) as that used on the primary site. This chapter does not provide specific instructions to setup or configure storage replication for the BI Publisher shared storage. Before beginning this upgrade and transition process, ensure that each of the OMS servers at the primary and standby sites are configured to be able to mount the replicated BI Publisher shared storage located at the respective site. If BI Publisher is already configured on the primary site, ensure that it is configured to make use of the replicated BI Publisher shared storage as this configuration will be carried forward in the upgrade and transition. If BI Publisher is not yet configured on the primary site, the BI Publisher config and cluster volume directories on the replicated BI Publisher shared storage will need to be specified in the installer. These BI Publisher config volume and cluster volume directories will need to be created on the primary site on the replicated BI Publisher shared storage. Steps in this chapter will ensure the replicated BI Publisher shared storage config and cluster volume directories are specified in the appropriate screen in the installer.

For more information regarding storage replication requirements, see Storage Considerations in the Oracle Enterprise Manager Cloud Control Advanced Installation and Configuration Guide.

For more information on BI Publisher High Availability including the BI Publisher shared storage, see BI Publisher High Availability in the Oracle Enterprise Manager Cloud Control Advanced Installation and Configuration Guide.

Ensure that the replicated storage has been provisioned as requested, and that the replication is currently configured such that the primary site is active. This will prevent delays during the maintenance window for the upgrade and transition by ensuring that the storage replication is ready to support the upgrade and transition.

5.2.2.1.4 Ensuring Upgrade and Transition Occurs on the Primary Site

The upgrade and transition process will upgrade and transition the Primary WebLogic domain to become the new single WebLogic domain that will be used on both sites.

Ensure that:

  • The upgrade and transition process is started on the primary site.

  • You do not use a standby WebLogic domain as the source domain for the upgrade and transition.

5.2.2.1.5 Identifying the OMS Installation Base Directory

Identify the directory to be used as the OMS Installation Base Directory, which is the parent directory for the Middleware Home, Instance Base, Agent Base, and Oracle Inventory locations on the replicated storage. The OMS Installation Base directory can serve as the mount point for the replicated storage. The example configuration of the OMS Installation Base Directory detailed in this chapter is /u01/app/oracle/OMS and is referenced as the variable <OMS_MOUNT_POINT>.

For further details on the OMS Installation Base Directory, see Oracle Management Service High Availability in the Oracle Enterprise Manager Cloud Control Advanced Installation and Configuration Guide.

5.2.2.1.6 Additional Steps Required if Using Custom WLS Certificates Instead of Demonstration Certificates

As part of the transition to alias hostnames, WebLogic Server certificates need to be updated on each OMS to reflect the alias hostname FQDN instead of the physical hostname. The upgrade and transition process includes the instructions required to perform these updates for the default WebLogic Server demonstration certificates. It does not include the instructions required to update custom WLS certificates.

For more details on configuring custom WLS certificates, see Configuring Custom Certificates for WebLogic Server in the Oracle Enterprise Manager Cloud Control Security Guide.

If you use custom certificates for WLS, ensure that you have obtained the needed certificates and understand the steps required to perform the updates at the appropriate point in the upgrade and transition process before proceeding.

5.2.2.1.7 Updating SLB Configuration for the Upgraded Enterprise Manager 13c Environment

SLB configuration updates are required to support Always-On Monitoring (AOM), BI Publisher and Java Virtual Machine Diagnostics (JVMD) SLB configuration requirements in EM 13c. Ensure that the SLB configuration on both primary and standby sites is updated with the new configuration required to support AOM, BI Publisher and JVMD. A future step will resecure the OMS to implement the updated configuration for BI Publisher and JVMD.

For more details on SLB configuration for high availability in EM 13c, see Configuring a Load Balancer in the Oracle Enterprise Manager Cloud Control Advanced Installation and Configuration Guide.

For more details on SLB configuration for disaster recovery in EM 13c, see Management Service Disaster Recovery in the Oracle Enterprise Manager Cloud Control Advanced Installation and Configuration Guide.

For an example of detailed step by step instructions for configuring an SLB for a site, see the white paper Enterprise Manager 13c Cloud Control Configuring OMS High Availability with F5 BIG-IP Local Traffic Manager.

5.2.2.1.8 Creating Backups
Before starting the upgrade and transition, create a set of backups that can be used as a fallback if the entire environment need to be reset. There are five parts to the backup process:
  • Full backup of each OMSs relevant directories

  • Backup of the configuration of each OMS

  • Backup of the Software Library

  • Backup of the BI Publisher storage if it is configured

  • Corresponding backups of the repository database(s)

The backups of the OMSs' relevant directories must include the instance, middleware, agent, and inventory. As the backups of the OMSs' relevant directories are filesystem backups, they must be performed as root and must be performed while the OMS and the agent are down. These backups can be performed in a staggered manner, for a single OMS at a time, to ensure availability. Each OMS must be backed up.

A single corresponding backup of the Software Library is required.

If BI Publisher is configured, a single corresponding backup of the BI Publisher config and cluster volumes is also required. Corresponding backups of the database must also be taken or identified.

For more information on backing up Enterprise Manager, see Backing Up and Recovering Enterprise Manager in the Oracle Enterprise Manager Cloud Control Advanced Installation and Configuration Guide.

5.2.2.2 Preparing Primary and Standby OMSs for Upgrade and Transition to DR Readiness

5.2.2.2.1 Preparing All Primary and Standby OMS Servers for Replicated Storage Configuration

Configure all Primary and Standby OMS Servers for replicated storage. Each corresponding Primary and Standby OMS server must be configured to mount replicated storage containing the Middleware Home, Instance Base, Agent Base, and Oracle Inventory Home. These directories will be used in the upgrade and transition process.

A best practice is to ensure that all four of these directories are located underneath an OMS Installation Base Directory, which can serve as the mount point to the replicated storage. In addition, all OMS servers at each site must be configured to mount the shared storage for BI Publisher and the Software Library, and the shared storage must be shared between all OMS servers at a site and must be replicated between sites. The directory paths must be identical on all OMS servers, for the Middleware Home, Instance Base, Agent Base, Oracle Inventory Home, BI Publisher, and Software Library storage.

Preparation of all the Primary and Standby OMS Servers for replicated storage is complete when:

  • The replicated storage is active on the primary site

  • The replicated storage is mounted on the primary site OMS servers

  • Replication is configured and running on the configured schedule

  • Ownership and permissions have been set properly on the mounted storage on primary site OMS servers

For more details regarding storage considerations, see Storage Considerations in the Oracle Enterprise Manager Cloud Control Advanced Installation and Configuration Guide.

5.2.2.2.2 Preparing All Primary and Standby OMS Servers for Alias Hostnames

Configure alias host names for all Primary and Standby OMS Servers such that each corresponding OMS host at the Primary and Standby sites is configured with an alias host name that is the same at both the sites. Ensure that all the OMS servers at each site can communicate with all other OMS servers at the same site using the alias host names.

For more details, see Option 2 - Alias host names on both sites in Planning Host Names in the Oracle Enterprise Manager Cloud Control Advanced Installation and Configuration Guide.

5.2.2.2.3 Creating Inventory Location Pointer File in Oracle Inventory Directory on Primary OMS1

As a part of the upgrade and transition to replicated storage, the OMS and OMS Agent software must be associated with Oracle Inventory located on replicated storage beneath the OMS Installation Base Directory. Once the upgrade is complete, it will be important to use this Oracle Inventory location for all maintenance of the OMS and OMS Agent to ensure that software maintenance can be performed on whichever site is currently serving as the active site.

Create the Oracle Inventory directory located on replicated storage and create the oraInst.loc Inventory Location pointer file in that directory on Primary OMS1. The Inventory Location pointer file will be used when launching the installer to perform the upgrade to ensure that the upgraded software will be associated with inventory on replicated storage.

For further details, see Configure an Oracle Inventory located under OMS installation base directory in the Oracle Enterprise Manager Advanced Installation and Configuration Guide.

5.2.2.2.4 Staging Enterprise Manager 13c Installation Software on Primary OMS1 Server

Stage the Enterprise Manager 13c installation software to a directory on the Primary OMS1 Server in preparation for the upgrade.

5.2.2.2.5 Preparing Local Lock File Directory on All Primary and Standby Site OMSs

Create or identify a directory owned by the Oracle Software Owner User located on local storage that can be used to store the local lock file for OHS and configure the directory consistently on all primary and standby OMS servers. In the future steps, you will configure each OMS to make use of this directory for local lock file storage.

5.2.2.2.6 Removing Standby OMSs and OMS Agents

Removal of the Standby OMSs and OMS Agents is done through the following steps:

5.2.2.2.6.1 Removing All Additional Standby OMS Instances

To remove all additional standby OMS instances, see the section on removing additional standby OMS instances in Oracle Enterprise Manager Cloud Control Advanced Installation and Configuration Guide

5.2.2.2.6.2 Removing the First Standby OMS

To remove the first standby OMS, see the section on removing the first standby OMS in Oracle Enterprise Manager Cloud Control Advanced Installation and Configuration Guide

5.2.2.2.6.3 Removing All Standby OMS Agents

To remove all of the standby OMS agents, for each standby OMS agent, see the section on Deinstalling Oracle Management Agents in the Oracle Enterprise Manager Cloud Control Advanced Installation and Configuration Guide

5.2.2.2.6.4 Deinstalling All Standby OMS Binaries

To deinstall the binaries for all of the standby OMS instances, for each standby OMS, see the procedure for Deinstalling Enterprise Manager in Oracle Enterprise Manager Cloud Control Advanced Installation and Configuration Guide

5.2.2.3 Deleting Primary Additional OMSs and Additional OMS Agents

Before beginning the upgrade, delete the additional OMSs and the agents on the additional OMSs. Perform the following steps sequentially for each additional OMS in the environment.

Note:

Only the additional OMSs and OMS agents are being deleted at this point and hence the instructions in this section are a subset of the instructions in Prerequisites for Deinstalling Only the OMS and Retaining the Management Repository in Oracle Enterprise Manager Cloud Control Advanced Installation and Configuration Guide

To delete Primary Additional OMSs and Additional OMS Agents, follow these steps:

5.2.2.3.1 Stopping and Deleting Primary Additional OMSs

To remove all the additional OMSs at the primary site, you need to stop and delete the additional OMS for each primary additional OMS, separately.

To stop and delete the additional OMS for each primary additional OMS, follow these steps:

  1. On the additional OMS server, if BI Publisher is configured, stop the Oracle BI Publisher managed server by running the following command.

    <OLD_OMS_HOME>/bin/emctl stop oms -bip_only -force

    Note:

    If any Oracle BI Publisher managed server fails to stop, then manually kill it using operating system commands. Ensure to gracefully stop the process. For example, on Linux, use ‘kill xxxx’ and not ‘kill -9 xxxx’ where xxxx is the process.
  2. On the additional OMS server, if BI Publisher is configured, delete the BI Publisher managed server stopped in the previous step, by running the following command.

    <OLD_OMS_HOME>/bin/configureBIP –delete

  3. On the additional OMS server, perform an omsca delete to remove the second primary OMS configuration. This cleanly removes the additional primary OMS from the Enterprise Manager repository and the WebLogic configuration, and updates configuration files appropriately.

    <OLD_OMS_HOME>/bin/omsca delete -OMSNAME <ADDITIONAL_OMS_NAME> -REP_CONN_STR "<REPOSITORY_CONNECTION_STRING>"

    The <ADDITIONAL_OMS_NAME> for the additional OMS, for example EMGC_OMS2, can be seen in the output of running emctl status oms -details on the additional OMS. In the output on the additional OMS, see the value returned for Managed Server Instance Name. For example, Managed Server Instance Name: EMGC_OMS2.
  4. In the Enterprise Manager, remove the targets related to the additional OMS that has just been deleted, replacing the <#> with the appropriate number for the additional OMS in BIP<#>, OMS<#> and ohs<#> in the following instructions:
    1. Wait for status to change to Down for the BIP<#>, EMGC_OMS<#> and ohs<#> targets.

    2. If BI Publisher is configured on OMS<#>, remove BIP<#> target for the deleted OMS<#>.

      1. Navigate to the home page for target /EMGC_GCDomain/GCDomain/BIP<#>.

      2. Select WebLogic Server, Target Setup and then select Remove Target.

      3. On the Warning page, select Yes.

      4. Confirm that the target is deleted.

    3. Remove OMS<#> target for the deleted OMS<#>.

      1. Navigate to the home page for target /EMGC_GCDomain/GCDomain/EMGC_OMS<#>.

      2. Select WebLogic Server, Target Setup and then select Remove Target.

      3. On the Warning page, select Yes.

      4. Confirm that the target is deleted.

    4. Remove ohs<#> target for the deleted OMS<#>.
      1. Navigate to the home page for target /EMGC_GCDomain/instance<#>/ohs<#>.

      2. Select Oracle HTTP Server, Target Setup and then select Remove Target.

      3. On the Confirmation dialog, select Yes.

      4. Confirm that the target is deleted.

  5. Upload from OMS<#> agent <OLD_OMS_AGENT_HOME>/bin/emctl upload agent

    Note:

    The step to upload from the OMS<#> agent is added in this order (after OMS<#> has been deleted) for customers running in a High Availability configuration, to provide administrators with visibility of the latest state of the components in the environment.

    Note:

    You may receive an error “EMD upload error:full upload has failed: uploadXMLFiles skipped :: OMS version not checked yet” while attempting the upload which may last for several minutes and then clear. If this issue persists check trace files for ping to OMS related errors (OMS_DOWN).
5.2.2.3.2 Stopping and Deinstalling Primary Additional OMS Agents

To remove all of the primary additional OMS agents, for each primary additional OMS agent, see the section on Deinstalling Oracle Management Agents in the Oracle Enterprise Manager Cloud Control Advanced Installation and Configuration Guide

5.2.2.3.3 Deinstalling Primary Additional OMS binaries

To deinstall the binaries for all of the primary additional OMS instances, for each primary additional OMS see Procedure for Deinstalling Enterprise Manager in Oracle Enterprise Manager Cloud Control Advanced Installation and Configuration Guide

5.2.2.4 Upgrading and Transitioning the OMS1 and the Repository

Before you upgrade and transition the OMS1 and the repository, ensure that:

Perform the upgrade and transition of OMS1 and the repository using the following steps:

5.2.2.4.1 Upgrading and Transitioning OMS1 and Oracle Management Repository to 13c Release 2
5.2.2.4.1.1 Invoking the Enterprise Manager Cloud Control Installer in GUI Mode to Upgrade and Transition to DR Readiness

Oracle strongly recommends that you back up the Management Repository, the OMS, the inventory, the Software Library, and other components that are critical to the functioning of Enterprise Manager. This will enable you to revert to the original contents if the upgrade fails.

Invoke the Enterprise Manager Cloud Control Installation Wizard on the host where your existing OMS1 is running.

./em13200_<platform>.bin -invPtrLoc <absolute_path_to_oraInst.loc_on_replicated_storage> ORACLE_HOSTNAME=<OMS1_ALIAS_HOSTNAME_FQDN> UPGRADE_TRANSITION=true OLD_INVENTORY_LOCATION=<OLD_INVENTORY_HOME>

Example:

./em13200_linux64.bin -invPtrLoc /u01/app/oracle/OMS/oraInventory/oraInst.loc ORACLE_HOSTNAME=emoms1.domain.com UPGRADE_TRANSITION=true OLD_INVENTORY_LOCATION=/u01/app/oracle/oraInventory

Ensure that each of the following parameters is passed to the installer:
  • Specifying the following parameter and value ensures that the Enterprise Manager Cloud Control 13c installation will be associated with Oracle Inventory located on replicated storage:

    -invPtrLoc <absolute_path_to_oraInst.loc_on_replicated_storage>

  • Specifying the following parameter and value enables the Upgrade and Transition to DR Readiness mode of the installer:

    UPGRADE_TRANSITION=true

  • The following parameter and value specifies the alias hostname to use for the upgraded OMS1:

    Note:

    Ensure that the Host Name field on the Installation Details page is reviewed and updated if necessary to match the alias hostname of OMS1.

    ORACLE_HOSTNAME=<OMS1_ALIAS_HOSTNAME_FQDN>

  • The following parameter and value specifies the directory of the old Oracle Inventory associated with the Enterprise Manager Cloud Control installation that is being upgraded:

    OLD_INVENTORY_LOCATION=<OLD_INVENTORY_HOME>

5.2.2.4.1.2 Enabling Oracle Configuration Manager

(Optional) On the My Oracle Support Details screen, enter your My Oracle Support credentials to enable Oracle Configuration Manager, and click Next. If you do not want to enable Oracle Configuration Manager now, click Next without entering any details, and go to Applying the Latest Software Updates.

If the host from where you are running the installation wizard does not have a connection to the Internet, then enter only the e-mail address and leave the other fields blank. After you complete the installation, manually collect the configuration information and upload it to My Oracle Support. For instructions, see Oracle Enterprise Manager Cloud Control Advanced Installation and Configuration Guide.

5.2.2.4.1.3 Applying the Latest Software Updates

On the Software Updates screen, apply the latest software updates, including the latest PSU patches, click Next.

You can download the software updates in offline mode (if you do not have Internet connectivity) or online mode (if you have Internet connectivity). For instructions, see Oracle Enterprise Manager Cloud Control Advanced Installation and Configuration Guide.

5.2.2.4.1.4 Running the Prerequisite Checks and Validating the Environment

On the Prerequisite Checks screen, check the status of the prerequisite checks run by the installation wizard, and verify whether your environment meets all the minimum requirements for a successful upgrade. Then click Next.

The installation wizard runs the prerequisite checks automatically when you come to this screen. The status of the prerequisite check can be either Warning, Failed, Succeeded, Not Executed, In Progress, or Pending.

If some checks result in Warning or Failed status, then investigate and correct the problems before you proceed with the upgrade. The screen provides details on why the prerequisites failed and how you can resolve them. After you correct the problems, return to this screen and click Rerun to check the prerequisites again.

5.2.2.4.1.5 Selecting the Installation Type

On the Installation Types page, follow these steps:

  1. Select Upgrade and Transition to DR Readiness.
  2. Ensure that One-System Upgrade is selected.
  3. Select the Management Server with the Installed Oracle Home for the old Enterprise Manager 12.1.0.4 or 12.1.0.5 installation being upgraded and transitioned.

    For example, /u01/app/oracle/MWare_12.5

  4. Click Next.
5.2.2.4.1.6 Configuring a Middleware Home and Validating the Host Name

On the Installation Details page, follow these steps:

  1. Enter a new middleware home on replicated storage where the installer can automatically install Oracle WebLogic Server 12c Release 1 (12.1.3.0) and Java Development Kit 1.7.0_80. Ensure this new middleware home is located on replicated storage under the OMS Installation Base directory. For example, /u01/app/oracle/OMS/MWare_13.2

    Note:

    • Ensure that the Middleware home you enter or validate here is used only for Enterprise Manager Cloud Control.

    • Ensure that no other Oracle Fusion Middleware products or components are installed in the same Middleware home.

  2. Review the Host Name and ensure that it is the alias host name for OMS1 that was specified with the ORACLE_HOSTNAME parameter when the installer was launched. If the Host Name does not match the alias host name for OMS1, replace the contents of the field with the alias host name for OMS1.
    For example, emoms1.domain.com
  3. Click Next.
5.2.2.4.1.7 Providing Database Connection Details

On the Database Connection Details page, select Disable DDMP Jobs, and follow the remainder of the instructions in Providing Database Connection Details. The DDMP Jobs will be submitted later in the upgrade and transition process.

5.2.2.4.1.8 Upgrading or Migrating Plug-ins, or Deploying Dependent Plug-ins

On the Plug-In Upgrade screen, review the plug-ins that will experience one of the following effects, and click Next.

  • Upgraded when newer versions exist

  • Migrated when newer versions do not exist

  • Deployed when the plug-ins being upgraded have new dependencies, or when there are any new default plug-ins introduced with a release.

    Here, newer versions refer to the newer versions of plug-ins available in the Enterprise Manager software (DVD, or downloaded software) that you are using to install.

Note:

You might have a deprecated plug-in in your environment that can be upgraded to a plug-in version that is supported only in 13c Release 2 but not in any of the future releases. If such a deprecated plug-in is selected by default in this screen for upgrade, then you are prompted to evaluate your selection and decide whether or not you want to proceed with the upgrade of such plug-ins.

Note:

Before you proceed to the next screen, run the following command to stop all the associated OMS instances. Here, <ORACLE_HOME> is the Oracle home of the OMS.

$<ORACLE_HOME>/bin/emctl stop oms -all

Note:

  • If the newer versions do not exist in the Enterprise Manager software that you are using, but exist on Oracle Technology Network (OTN), then you can choose to manually download them from OTN and upgrade your existing plug-ins, instead of having them automatically migrated by default. To do so, follow these steps:

    1. Manually download the required plug-ins from the following location:

      http://www.oracle.com/technetwork/oem/enterprise-manager/downloads/oem-plugins-2882950.html

      In addition, if you want to download any partner or customer plug-ins, then download from the following location:

      https://apex.oracle.com/pls/apex/f?p=53891:1

    2. Invoke the installer with the following option and pass the location where the additional plug-ins have been downloaded:

      On UNIX platforms:

      ./em13200_<platform>.bin PLUGIN_LOCATION=<absolute_path_to_plugin_software_location>

      On Microsoft Windows platforms:

      setup_em13200_win64.exe PLUGIN_LOCATION=<absolute_path_to_plugin_software_location>

      This displays a list of plug-ins available in the software kit (DVD, downloaded software) as well as the plug-ins available in this custom location. You can choose the ones you want to install.

    Once the newer versions of the plug-ins are made available, this screen lists those plug-ins as plug-ins that will automatically be upgraded.

  • If you see a message stating that you have unsupported plug-ins on the OMS or on some of the Management Agents, then follow the instructions outlined in the message to upgrade the plug-ins, and then retry upgrading the OMS.

5.2.2.4.1.9 Deploying Additional Plug-ins

On the Select Plug-ins screen, select the optional plug-ins you want to deploy in addition to the plug-ins that will automatically be upgraded while upgrading the OMS, and click Next.

Note:

If you select a deprecated plug-in that is supported only in 13c Release 2 but not in any of the future releases, then you are prompted to evaluate your selection and decide whether or not you want to proceed with the deployment of such plug-ins.

Note:

If you want to install some plug-ins that are not listed on this screen, then follow these steps:

  1. Manually download the required plug-ins from the following location:

    http://www.oracle.com/technetwork/oem/enterprise-manager/downloads/oem-plugins-2882950.html

    In addition, if you want to download any partner or customer plug-ins, then download from the following location:

    https://apex.oracle.com/pls/apex/f?p=53891:1

  2. Invoke the installer with the following option and pass the location where the additional plug-ins have been downloaded:

    On UNIX platforms:

    em13200_<platform>.bin INSTALL_SWONLY_WITH_PLUGINS=true PLUGIN_LOCATION=<absolute_path_to_plugin_software_location>

    On Microsoft Windows platforms:

    setup_em13200_win64.exe INSTALL_SWONLY_WITH_PLUGINS=true PLUGIN_LOCATION=<absolute_path_to_plugin_software_location>

    This displays a list of plug-ins available in the software kit (DVD, downloaded software) as well as the plug-ins available in this custom location. You can choose the ones you want to install.

5.2.2.4.1.10 Extending the Existing WebLogic Server Domain

On the Extend WebLogic Server Domain page, follow the instructions listed in Extending the Existing WebLogic Server Domain.

Note:

  • The Admin Server Host still lists the physical host name for OMS1. This is ok as the Admin Server will be updated to use the OMS1 alias host name as part of this mode of the upgrade.

  • Ensure the OMS Instance Base location is located on replicated storage. If the replicated storage is configured at or above the OMS Installation Base directory, and the Middleware Home is beneath the OMS Installation Base directory, no change is required as the OMS Instance Base location will be a peer directory of the Middleware Home by default. For example, /u01/app/oracle/OMS/gc_inst.

  • If the mount point makes use of NFS mounted storage, a warning appears to place the lock file directory on local storage. A post-upgrade step in the upgrade and transition process will place the http lock file in a directory on local storage after the upgrade completes

5.2.2.4.1.11 Configuring the Shared Locations for Oracle BI Publisher

On the Enterprise Manager Shared Location Details screen, do the following, and click Next.

  • If you are upgrading an OMS that already has Oracle BI Publisher installed and configured in a shared location, then the fields for configuring Oracle BI Publisher are prefilled and grayed out. You can leave them as they are and proceed to the other sections of this screen.

    However, if you are upgrading an OMS that does not already have Oracle BI Publisher installed, or if you are upgrading an OMS that has Oracle BI Publisher installed but not configured in a shared location, then do the following:

    (i) Identify a shared location that you can use for Oracle BI Publisher.

    If you do not have an existing shared location, create a new one and ensure that it is visible on the host where you are installing the first OMS and also on other hosts where you plan to install additional OMS instances.

    At install time, for the installation to be successful, you can reserve approximately 400 MB of hard disk space for the shared directory. However, Oracle recommends that you scale it to at least 10 GB eventually, and ensure that it can be extended further in the future because the space utilization increases over a period of time as you install additional plug-ins and create more reports.

    Caution:

    If you already have a shared location that you were using for the Software Library or for staging gold images in the previous release of Enterprise Manager, then you can choose to use the same location. However, ensure that the directories within the shared location are unique for Oracle BI Publisher, Software Library, and staged gold images. For example, if you already are using the shared location /u01/software/examplehost/shrd/ where the Software Library is configured in /u01/software/examplehost/shrd/SW, then you can use the same location, but make sure the directory within this shared location for Oracle BI Publisher is /u01/software/examplehost/shrd/BIP.

    (ii) On this screen, select Configure a Shared Location for Oracle BI Publisher. Enter the following directory paths. Ensure that the user account that you are using to install the first OMS has read and write permission on these paths.

    Note:

    When you invoke the installer on Microsoft Windows, the Enterprise Manager Shared Location Details screen does not show the Config Volume and Cluster Volume options. This is an expected behavior.

    For Config Volume, enter the path leading up to the /config directory on the shared storage location where Oracle BI Publisher repository and configuration files can be stored. For example, /u01/software/examplehost/shrd/BIP/config

    For Cluster Volume, enter the path leading up to the /cluster directory on the shared storage location where Oracle BI Publisher scheduler storage can be maintained for Oracle BI Publisher to operate in a high-availability environment. For example, /u01/software/examplehost/shrd/BIP/cluster

    WARNING:

    Do not delete these directories after the installation. The directories are required for proper functioning of Oracle BI Publisher, and therefore will still be required after the installation.

  • Enable or disable the installed and configured Oracle BI Publisher. Enabling Oracle BI Publisher starts the software and keeps it ready for use within the Enterprise Manager system. Disabling Oracle BI Publisher leaves the software as it is without starting it.

    To enable Oracle BI Publisher, select Enable Oracle BI Publisher.

    Note:

    If you choose to disable Oracle BI Publisher during the installation, then you can enable it after the installation by running the following EM CTL command from the Oracle home of the upgraded OMS.

    $<ORACLE_HOME>/bin/emctl config oms -enable_bip

    For example,

    /u01/software/em13c/oraclehome/bin/emctl config oms -enable_bip

    The command only enables Oracle BI Publisher, but does not start it. To start it, run the following command from the Oracle home of the upgraded OMS.

    $<ORACLE_HOME>/bin/emctl start oms -bip_only

    /u01/software/em13c/oraclehome/bin/emctl start oms -bip_only

5.2.2.4.1.12 Configuring the Ports

On the Port Configuration Details screen, customize the ports to be used for the new components being added for this release, and click Next.

The ports for most components are automatically carried over from the previous release, and therefore, this screen lists only the ports for the new components being added for this release.

Note:

If all the ports on this screen appear as -1, then it indicates that the installer is unable to bind the ports on the host. To resolve this issue, exit the installer, verify the host name and the IP configuration of this host (ensure that the IP address of the host is not being used by another host), restart the installer, and try again.

You can enter a free custom port that is either within or outside the port range recommended by Oracle.

To verify if a port is free, run the following command:

  • On Unix:

    netstat -an | grep <port no>

  • On Microsoft Windows:

    netstat -an|findstr <port_no>

However, the custom port must be greater than 1024 and lesser than 65535. Alternatively, if you already have the ports predefined in a staticports.ini file and if you want to use those ports, then click Import staticports.ini file and select the file.

Note:

If the staticports.ini file is passed during installation, then by default, the ports defined in the staticports.ini file are displayed. Otherwise, the first available port from the recommended range is displayed.

The staticports.ini file is available in the following location:

<Software_Extracted_Location>/response

5.2.2.4.1.13 Reviewing the Upgrade Details

On the Review screen, review the details you have provided for the upgrade.

The installer performs only the software install with plug-ins and this step is part of the process. There is no actual upgrade in progress.

  1. If you want to change the details, click Back repeatedly until you reach the screen where you want to make the changes.
  2. After you verify the details, if you are satisfied, click Upgrade to begin the upgrade.

Note:

When performing an Upgrade and Transition to DR Readiness, ensure the Host Name displayed is the alias host name for OMS1. If it is not, navigate back to the Installation Details screen and ensure the Host Name is properly specified.
5.2.2.4.1.14 Monitoring the Upgrade Progress

On the Install Progress screen, view the overall progress (in percentage) of the upgrade operation and the status of each of the Configuration Assistants.

Note:

  • If a Configuration Assistant fails, the installer stops and none of the subsequent Configuration Assistants are run until the issue related to the failed Configuration Assistant is resolved. In this case, diagnose the issue, resolve it, and then, click Retry on the Install Progress screen to rerun the Configuration Assistants starting from the Configuration Assistant that failed.

    However, if you accidentally exit the installer before clicking Retry, then do NOT restart the installer to reach the same screen; instead, invoke the runConfig.sh script from the Oracle home of the OMS to rerun the Configuration Assistant in silent mode. If the runConfig.sh script fails, raise a service request and contact Oracle Support.

    $<ORACLE_HOME>/oui/bin/runConfig.sh ORACLE_HOME=<absolute_path_to_Middleware_home> MODE=perform ACTION=configure COMPONENT_XML={encap_oms.1_0_0_0_0.xml}

    For example,

    /u01/software/em13c/oraclehome/oui/bin/runConfig.sh ORACLE_HOME=/u01/software/em13c/oraclehome MODE=perform ACTION=configure COMPONENT_XML={encap_oms.1_0_0_0_0.xml}

    If the runConfig.sh script fails, raise a service request and contact Oracle Support.

  • If the Management Repository upgrade fails with the following error in the schemamanager logs, then restart the database, and then try the upgrade again.

    ORA-04020: deadlock detected while trying to lock object SYSMAN.MGMT_GLOBAL

5.2.2.4.1.15 Ending the Upgrade

On the Finish screen, you should see information pertaining to the upgrade of Enterprise Manager. Review the information and click Close to exit the wizard.

Once the software binaries are copied and configured, you are prompted to run the allroot.sh script. Open another window, log in as root, and manually run the scripts.

If you are installing on Microsoft Windows operating system, then you will NOT be prompted to run this script.

5.2.2.4.2 Specifying Local File System Location for Lock Files on Primary OMS1
Once the upgrade and transition is complete, if the replicated storage is mounted using NFS, edit the httpd.conf file to specify a location on local storage for the http lock file. Follow the instructions in the following step in Performing Postinstallation Tasks After Installing an Enterprise Manager System in the Oracle Enterprise Manager Basic Installation Guide.

Note:

If you installed an NFS-mounted drive and created the OMS instance base directory gc_inst on that NFS-mounted drive, then move the lock files from the NFS-mounted drive to a local file system location. To do so, modify the lock files location in the httpd.conf file to map to a location on a local file system.
5.2.2.4.3 Confirming the WebLogic and the OMS are Configured for Alias Hostname

To confirm that the upgrade and transition has successfully configured the OMS for the alias hostname, follow these steps:

  1. On the Primary OMS1, confirm the ServerName configured in the httpd.conf file shows the alias hostname for OMS1.

    grep ^ServerName <NEW_INSTANCE_HOMEBASE>/user_projects/domains/GCDomain/config/fmwconfig/components/OHS/ohs<#>/httpd.conf

    For example:

    grep ^ServerName /u01/app/oracle/OMS/gc_inst/user_projects/domains/GCDomain/config/fmwconfig/components/OHS/ohs1/httpd.conf

    Example Output:

    [oracle@host1 ~]$ grep ^ServerName /u01/app/oracle/OMS/gc_inst/user_projects/domains/GCDomain/config/fmwconfig/components/OHS/ohs1/httpd.conf
    ServerName emoms1.domain.com
    
  2. On the Primary OMS1, examine the output of emctl status oms -details.

    <NEW_MIDDLEWARE_HOME>/bin/emctl status oms -details

    For example:

    /u01/app/oracle/OMS/MWare_13.2/bin/emctl status oms -details

    Example Output (highlights):

    [oracle@host1 ~]$ /u01/app/oracle/OMS/MWare_13.2/bin/emctl status oms -details
    Oracle Enterprise Manager Cloud Control 13c Release 2
    Copyright (c) 1996, 2016 Oracle Corporation. All rights reserved.
    Enter Enterprise Manager Root (SYSMAN) Password :
    Console Server Host : emoms1.domain.com
    …
    WLS Domain Information
    Domain Name : GCDomain
    Admin Server Host : emoms1.domain.com
    …
    Oracle Management Server Information
    Managed Server Instance Name: EMGC_OMS1
    Oracle Management Server Instance Host: emoms1.domain.com
    WebTier is Up
    Oracle Management Server is Up
    JVMD Engine is Up
    …
    
  3. Login to the WebLogic Administration Console via a browser using the FQDN of the physical hostname for the Primary OMS1 and review settings to confirm the alias hostname has been configured.

    https://<PRIMARY_OMS1_PHYSICAL_FQDN>:<ADMIN_SERVER_HTTPS_PORT>/console

    For example:

    https://host1.domain.com:7101/console

    1. Navigate to GCDomain, Environment and then select Servers. Perform the following for each of the Servers in the Servers table.

      1. Click the link for the Server Name.

      2. On the General tab within the Configuration tab, verify that the <OMS1_ALIAS_HOSTNAME_FQDN> is displayed in the Listen Address field.

        For example:

        emoms1.domain.com

    2. Navigate to GCDomain, Environment and then select Machines. Perform the following steps:

      1. Click the Machine Name.

      2. On the Node Manager tab within the Configuration tab, verify that the <OMS1_ALIAS_HOSTNAME_FQDN> is displayed in the Listen Address field.

        For example:

        emoms1.domain.com

5.2.2.5 Transitioning the OMS1 Agent to DR Readiness

5.2.2.5.1 Upgrading the OMS1 Agent to Enterprise Manager 13c Release 2

To upgrade the OMS1 Agent to Enterprise Manager 13c release 2, follow these steps using the command listed with each step:

  1. Start the OMS1 Agent.

    <OLD_OMS_AGENT_HOME>/bin/emctl start agent

    Example:

    /u01/app/oracle/oms_agent/core/12.1.0.5.0/bin/emctl start agent

  2. Login to the EM Console and wait until the agent is healthy and all OMS related targets no longer report agent unreachable.
  3. Upgrade the OMS1 Agent to Enterprise Manager 13c Release 2, following the instructions in Upgrading Central Agents or Standalone Management Agents to 13c Release 2 Using the Agent Upgrade Console or EM CLI.

    Note:

    Do not move the agent or perform cleanup yet as those activities will occur in the next steps.
5.2.2.5.2 Verifying the OMS1 Agent Upgrade

Verify that the OMS1 Agent was successfully upgraded to Enterprise Manager 13c Release 2 following the instructions in Verifying Your 13c Management Agent Upgrade.

5.2.2.5.3 Performing Post Agent Upgrade Cleanup for the OMS1 Agent

After confirming that the OMS1 Agent was successfully upgraded to Enterprise Manager 13c Release 2, cleanup the previous version of the OMS1 agent installation by following the instructions in Performing Postupgrade Cleanup of Old Management Agents.

5.2.2.5.4 Relocating the OMS1 Agent From Local Storage and Inventory to Replicated Storage and Inventory

To relocate the OMS1 Agent from its location on local storage registered with the local Oracle Inventory to a location on replicated storage registered with the replicated storage Oracle Inventory, follow these steps using the command listed with each step:

Note:

These instructions are based on the instructions in Moving the Central Agent Base Directory Outside Oracle Middleware Home. However, it is important to note that there is an additional parameter beyond those instructions in the documentation that must be provided to the command in order to make use of a different Oracle Inventory for the new location.
  1. Check if a plugins.txt file exists under the agent base directory.

    ls -alF <OLD_OMS_AGENT_BASE>

    Example:

    ls -alF /u01/app/oracle/oms_agent

  2. If the plugins.txt file exists under the agent base directory, take a backup of the file.

    cp -p <OLD_OMS_AGENT_BASE>/plugins.txt <OLD_OMS_AGENT_BASE>/plugins.txt.before_agent_migrate_regen_YYYYMMDD

    Example:

    cp -p /u01/app/oracle/oms_agent/plugins.txt /u01/app/oracle/oms_agent/plugins.txt.before_agent_migrate_regen_20160502

  3. Ensure that the agent is up and running. Start the agent if it is not running.

    <INTERIM_OMS_AGENT_HOME>/bin/emctl status agent

    Example:

    /u01/app/oracle/oms_agent/agent_13.2.0.0.0/bin/emctl status agent

    Confirm the agent is up and running before proceeding further.

  4. Regenerate the plugins.txt file.
    <INTERIM_OMS_AGENT_HOME>/perl/bin/perl <INTERIM_OMS_AGENT_HOME>/sysman/install/create_plugin_list.pl -instancehome <INTERIM_OMS_AGENT_INSTANCE_HOME>
    
    Example:
    /u01/app/oracle/oms_agent/agent_13.2.0.0.0/perl/bin/perl /u01/app/oracle/oms_agent/agent_13.2.0.0.0/sysman/install/create_plugin_list.pl -instancehome /u01/app/oracle/oms_agent/agent_inst
    
  5. Run the AgentMigrate.pl script to relocate the agent to the replicated storage and Oracle Inventory on replicated storage.
    <INTERIM_OMS_AGENT_HOME>/perl/bin/perl <INTERIM_OMS_AGENT_HOME>/sysman/install/AgentMigrate.pl -instanceHome <INTERIM_OMS_AGENT_INSTANCE_HOME> -newAgentBaseDir <NEW_OMS_AGENT_BASE> -invPtrLoc <NEW_INVENTORY_HOME>/oraInst.loc
    
    Example:
    /u01/app/oracle/oms_agent/agent_13.2.0.0.0/perl/bin/perl /u01/app/oracle/oms_agent/agent_13.2.0.0.0/sysman/install/AgentMigrate.pl -instanceHome /u01/app/oracle/oms_agent/agent_inst -newAgentBaseDir /u01/app/oracle/OMS/oms_agent -invPtrLoc /u01/app/oracle/OMS/oraInventory/oraInst.loc
    
  6. Log in as root and run the root.sh script when instructed.

    <NEW_OMS_AGENT_HOME>/root.sh

    Example:

    /u01/app/oracle/OMS/oms_agent/agent_13.2.0.0.0/root.sh

  7. Get status of the agent.

    <NEW_OMS_AGENT_HOME>/bin/emctl status agent

    Example:

    /u01/app/oracle/OMS/oms_agent/agent_13.2.0.0.0/bin/emctl status agent

  8. In the Enterprise Manager Console, wait for the status of the Enterprise Manager related targets to no longer show “Diagnose for Status Pending [(Post Blackout)]” and for the OMS1 Agent and Host targets to no longer show “Agent Unreachable” before proceeding further.
  9. Invoke the AgentDeinstall.pl script to deinstall the interim agent on local storage.

    <INTERIM_OMS_AGENT_HOME>/perl/bin/perl <INTERIM_OMS_AGENT_HOME>/sysman/install/AgentDeinstall.pl -agentHome <INTERIM_OMS_AGENT_HOME>

    Example:

    /u01/app/oracle/oms_agent/agent_13.2.0.0.0/perl/bin/perl /u01/app/oracle/oms_agent/agent_13.2.0.0.0/sysman/install/AgentDeinstall.pl -agentHome /u01/app/oracle/oms_agent/agent_13.2.0.0.0

    Note:

    Only the installation of the interim agent located on local storage under <INTERIM_OMS_AGENT_HOME> is to be deinstalled. Do NOT delete the targets from cloud control as those targets are now being managed by the agent that has been relocated to replicated storage under <NEW_OMS_AGENT_HOME>. For this reason, disregard the following message at the bottom of the output of the AgentDeinstall.pl command "Make sure to delete the targets manually from the Cloud Control Console for a successful deinstallation.”
5.2.2.5.5 Preparing to Redeploy OMS1 Agent Using Alias Hostname

The OMS1 Agent uses the existing installation on replicated storage in order to configure the OMS1 Agent with the alias hostname. To prepare to redeploy OMS1 Agent using alias hostname, follow these steps using the command listed with each step:

  1. Update the plugins.txt file located under <NEW_OMS_AGENT_BASE> to contain current information.
    1. Identify the current plugins.txt related files.

      ls -ltr <NEW_OMS_AGENT_BASE>/plugins*

      Example:

      ls -ltr /u01/app/oracle/OMS/oms_agent/plugins*

    2. Backup the existing plugins.txt file if the file exists.

      cp -p <NEW_OMS_AGENT_BASE>/plugins.txt <NEW_OMS_AGENT_BASE>/plugins.txt.before_update_YYYYMMDD

      Example:

      cp -p /u01/app/oracle/OMS/oms_agent/plugins.txt /u01/app/oracle/OMS/oms_agent/plugins.txt.before_update_20160502

    3. Ensure that the agent is up and running. Start the agent if it is not running.

      <NEW_OMS_AGENT_HOME>/bin/emctl status agent

      Example:

      /u01/app/oracle/OMS/oms_agent/agent_13.2.0.0.0/bin/emctl status agent

      Confirm the agent is up and running, before proceeding further.

    4. Run the following script to generate the plugins.txt file.

      <NEW_OMS_AGENT_HOME>/perl/bin/perl <NEW_OMS_AGENT_HOME>/sysman/install/create_plugin_list.pl -instancehome <NEW_OMS_AGENT_INSTANCE_HOME>

      Example:

      /u01/app/oracle/OMS/oms_agent/agent_13.2.0.0.0/perl/bin/perl /u01/app/oracle/OMS/oms_agent/agent_13.2.0.0.0/sysman/install/create_plugin_list.pl -instancehome /u01/app/oracle/OMS/oms_agent/agent_inst

    5. Confirm the plugins.txt related files.

      ls -ltr <NEW_OMS_AGENT_BASE>/plugins*

      Example:

      ls -ltr /u01/app/oracle/OMS/oms_agent/plugins*

  2. Upload from OMS1 agent.

    <NEW_OMS_AGENT_HOME>/bin/emctl upload agent

    Example:

    /u01/app/oracle/OMS/oms_agent/agent_13.2.0.0.0/bin/emctl upload agent

  3. Stop the primary OMS1 agent.

    <NEW_OMS_AGENT_HOME>/bin/emctl stop agent

    Example:

    /u01/app/oracle/OMS/oms_agent/agent_13.2.0.0.0/bin/emctl stop agent

  4. Move the OMS1 agent instance directory.

    mv <NEW_OMS_AGENT_INSTANCE_HOME> <NEW_OMS_AGENT_INSTANCE_HOME>.YYYYMMDD

    Example:

    mv /u01/app/oracle/OMS/oms_agent/agent_inst /u01/app/oracle/OMS/oms_agent/agent_inst.20160502

5.2.2.5.6 Redeploying OMS1 Agent Using Alias Hostname

To redeploy the OMS1 Agent using the alias hostname instead of the physical hostname, follow these steps using the command listed with each step:

  1. Wait for the OMS1 agent and all of its monitored targets to go to unreachable state in the Cloud Control console.
  2. Remove Oracle Home targets for the old physical hostname based agent, to prevent shared agent issues due to redeployment of the agent using the alias hostname. The same steps are performed twice; once for the upgraded interim Enterprise Manager 13c physical hostname agent located on local storage, and once for the Enterprise Manager 13c physical hostname agent located on replicated storage.
    1. Perform the following steps for the Oracle Home of the upgraded interim Enterprise Manager 13c physical hostname agent located on local storage:

      <INTERIM_OMS_AGENT_HOME>

      Example:

      /u01/app/oracle/oms_agent/agent_13.2.0.0.0

      1. In Enterprise Manager, navigate to the Oracle Home for the upgraded interim Enterprise Manager 13c physical hostname agent located on local storage.

      2. Select Oracle Home, Target Setup and then select Remove Target.

      3. Select Yes on the Confirmation dialog.

      4. Confirm that Oracle Home has been deleted.

    2. Perform the following steps for the Oracle Home of the Enterprise Manager 13c physical hostname agent located on replicated storage.

      <NEW_OMS_AGENT_HOME>

      Example:

      /u01/app/oracle/OMS/oms_agent/agent_13.2.0.0.0

      1. In Enterprise Manager, navigate to the Oracle Home for the Enterprise Manager 13c physical hostname agent located on replicated storage.

      2. Select Oracle Home, Target Setup and then select Remove Target.

      3. Select Yes on the Confirmation dialog.

      4. Confirm that Oracle Home has been deleted.

    Note:

    It is critical to ensure the above steps have been completed successfully prior to performing the agentDeploy.sh in the next step.
  3. Create agent_inst.

    <NEW_OMS_AGENT_HOME>/sysman/install/agentDeploy.sh AGENT_BASE_DIR=<NEW_OMS_AGENT_BASE> AGENT_INSTANCE_HOME=<NEW_OMS_AGENT_INSTANCE_HOME> ORACLE_HOSTNAME=<OMS1_ALIAS_HOSTNAME_FQDN> AGENT_PORT=<OMS_AGENT_PORT> -configOnly OMS_HOST=<OMS_HOST> EM_UPLOAD_PORT=<OMS_UPLOAD_PORT> AGENT_REGISTRATION_PASSWORD=<AGENT_REG_PASSWORD> PLUGIN_RSPFILE=<NEW_OMS_AGENT_BASE>/plugins.txt

    Example:

    /u01/app/oracle/OMS/oms_agent/agent_13.2.0.0.0/sysman/install/agentDeploy.sh AGENT_BASE_DIR=/u01/app/oracle/OMS/oms_agent AGENT_INSTANCE_HOME=/u01/app/oracle/OMS/oms_agent/agent_inst ORACLE_HOSTNAME=emoms1.domain.com AGENT_PORT=3872 -configOnly OMS_HOST=em.domain.com EM_UPLOAD_PORT=4900 AGENT_REGISTRATION_PASSWORD=changeme PLUGIN_RSPFILE=/u01/app/oracle/OMS/oms_agent/plugins.txt

  4. Log in as root and run the root.sh script when instructed in the output of the above command.

    <NEW_OMS_AGENT_HOME>/root.sh

    Example:

    /u01/app/oracle/OMS/oms_agent/agent_13.2.0.0.0/root.sh

  5. Check status of agent. Repeat as necessary until all uploads are complete.

    <NEW_OMS_AGENT_HOME>/bin/emctl status agent

    Example:

    /u01/app/oracle/OMS/oms_agent/agent_13.2.0.0.0/bin/emctl status agent

  6. Check in Enterprise Manager to confirm that OMS1 alias hostname agent and host are listed as targets in EM with status Up.
5.2.2.5.7 Relocating OMS1 Targets to Alias Hostname OMS1 Agent

To relocate the OMS1 related targets associated with the physical hostname agent to the alias hostname agent, follow these steps using the command listed with each step:

  1. Relocate the oracle_emrep target to the Management Agent of the new OMS host using the following commands:

    <NEW_MIDDLEWARE_HOME>/bin/emcli login -username="<EM_USERNAME>"

    <NEW_MIDDLEWARE_HOME>/bin/emcli sync

    <NEW_MIDDLEWARE_HOME>/bin/emctl config emrep -agent <OMS1_ALIAS_HOSTNAME_FQDN>:<OMS_AGENT_PORT>

    Example:

    /u01/app/oracle/OMS/MWare_13.2/bin/emcli login -username="john.doe@domain.com"

    /u01/app/oracle/OMS/MWare_13.2/bin/emcli sync

    /u01/app/oracle/OMS/MWare_13.2/bin/emctl config emrep -agent emoms1.domain.com:3872

    Note:

    If you encounter errors due to time zone disparities between the agents, ensure the time zones of the agents are consistent. If you run emctl config emrep -agent and set the flag -ignore_timeskew, there may be loss of monitoring data as the availability of monitored targets may be affected when the Management Services and Repository target is moved to the new Agent. For information on resetting the time zone for a management agent, see emctl resetTZ agent in EMCTL Commands for Management Agent in the Oracle Enterprise Manager Cloud Control Administrator's Guide. Once these errors are corrected, reattempt the target relocation.
  2. Create a mapping file, under the home directory for the Oracle Software Owner User, that will be used to map the physical hostname of OMS1 to the alias hostname of OMS1.

    vi <ORACLE_SOFTWARE_OWNER_USER_HOME>/<PRIMARY_OMS1_PHYSICAL_HOSTNAME>_to_<OMS1_ALIAS_HOSTNAME>_host_mapping.txt

    Example:

    vi /home/oracle/host1_to_emoms1_host_mapping.tx

    The file should contain a comma separated list of the FQDNs of the physical and alias hostnames. The first entry is the hostname that will be replaced (in this case the physical hostname of OMS1), and the second entry is the new hostname (in this case the alias hostname of OMS1).

    <PRIMARY_OMS1_PHYSICAL_FQDN>,<OMS1_ALIAS_HOSTNAME_FQDN>

    Example:

    host1.domain.com,emoms1.domain.com

  3. Run the relocate_wls verb via emcli once, to relocate the targets:

    <NEW_MIDDLEWARE_HOME>/bin/emcli relocate_wls -target_name=/EMGC_GCDomain/GCDomain -host=<OMS1_ALIAS_HOSTNAME_FQDN> -port=<ADMIN_SERVER_HTTPS_PORT> -dest_agent=<OMS1_ALIAS_HOSTNAME_FQDN>:<OMS_AGENT_PORT> -src_agent=<PRIMARY_OMS1_PHYSICAL_FQDN>:<OMS_AGENT_PORT> -debug

    Example:

    /u01/app/oracle/OMS/MWare_13.2/bin/emcli relocate_wls -target_name=/EMGC_GCDomain/GCDomain -host=emoms1.domain.com -port=7101 -dest_agent=emoms1.domain.com:3872 -src_agent=host1.domain.com:3872 -debug
  4. Run the relocate_wls verb via emcli for a second time, with an additional parameter, to update the host name for targets as necessary:

    <NEW_MIDDLEWARE_HOME>/bin/emcli relocate_wls -target_name=/EMGC_GCDomain/GCDomain -host=<OMS1_ALIAS_HOSTNAME_FQDN> -port=<ADMIN_SERVER_HTTPS_PORT> -dest_agent=<OMS1_ALIAS_HOSTNAME_FQDN>:<OMS_AGENT_PORT> -src_agent=<PRIMARY_OMS1_PHYSICAL_FQDN>:<OMS_AGENT_PORT> -input_file=old_to_new_host_mapping_file:<ORACLE_SOFTWARE_OWNER_USER_HOME>/<PRIMARY_OMS1_PHYSICAL_HOSTNAME>_to_<OMS1_ALIAS_HOSTNAME>_host_mapping.txt -debug

    Example:

    /u01/app/oracle/OMS/MWare_13.2/bin/emcli relocate_wls -target_name=/EMGC_GCDomain/GCDomain -host=emoms1.domain.com -port=7101 -dest_agent=emoms1.domain.com:3872 -src_agent=host1.domain.com:3872 -input_file=old_to_new_host_mapping_file:/home/oracle/host1_to_emoms1_host_mapping.txt -debug
  5. Remove the Oracle Home of the upgraded middleware home on replicated storage that is associated with the alias hostname on Primary OMS1. This Oracle Home will be rediscovered in the next step. This is done to ensure that the associations are made properly to the correct Oracle Home.

    To remove the Oracle Home:

    1. In the Enterprise Manager, navigate to the Oracle Home for the upgraded middleware home on replicated storage that is associated with the alias hostname on Primary OMS1.

      Host <OMS1_ALIAS_HOSTNAME_FQDN>

      Host Location <NEW_MIDDLEWARE_HOME>

      Example:

      Host emoms1.domain.com

      Home Location /u01/app/oracle/OMS/MWare_13.2

      Example Oracle Home target name:

      oms13c1_1_emoms1.domain.com_9136

    2. Select Oracle Home, Target Setup and then select Remove Target.
    3. Select Yes on the Confirmation dialog.
    4. Confirm that Oracle Home is deleted.
  6. Run a “Discover Promote Oracle Home Target” job on Primary OMS1 to discover the Oracle Home of the upgraded Middleware Home on replicated storage that is associated with the alias hostname.
    1. Navigate to Enterprise, Job and then select Activity.
    2. Click Create Job.
    3. Select Discover Promote Oracle Home Target on the Select Job Type - Oracle Enterprise Manager dialog.
    4. Click Select.
    5. Enter a Name for the job, such as “Promote OMS1 Oracle Home”.
    6. In the Target section, click Add.
    7. In the Search and Select: Targets dialog, select the OMS1 alias hostname

      <OMS1_ALIAS_HOSTNAME_FQDN>

      Example:

      emoms1.domain.com
    8. Click Select.
    9. Click the Parameters tab.
    10. In the Path, enter the path to the upgraded Middleware Home for Primary OMS1 on replicated storage.

      <NEW_MIDDLEWARE_HOME>

      Example:

      /u01/app/oracle/OMS/MWare_13.2
    11. Ensure that Manage Entity is set to Oracle Home and Action is set to Discover And Manage.
    12. Click Submit.
    13. When the job has "succeeded", check the job output to ensure the Oracle Home was properly discovered.
  7. Navigate to the home page for the Oracle Home target for the upgraded middleware home on replicated storage that is associated with the alias hostname on Primary OMS1.
    1. Review the Associated Instance Targets list.
    2. If there are no targets listed, wait a few minutes, refresh, and repeat until this the list is populated.
    3. Proceed with reviewing and updating target and configuration information listed in the next section, once the list is populated.
5.2.2.5.8 Reviewing and Updating Target and Configuration Information in Enterprise Manager

To ensure that the WebLogic Admin console can be accessed from a link using the Enterprise Manager console, update the URL for the WebLogic Admin console. To update the URL using the Enterprise Manager console, follow these steps:

  1. Navigate to the WebLogic Domain target (/EMGC_GCDomain/GCDomain).
  2. Select WebLogic Domain, Target Setup and then select Monitoring Configuration.
  3. Review the host name and ensure that the hostname contains the FQDN of the alias hostname for the OMS.
  4. Review the URI for the WebLogic Admin Console and update the URL for the WebLogic Admin console to contain the FQDN of the physical hostname for Primary OMS1.

    https://<PRIMARY_OMS1_PHYSICAL_FQDN>:<ADMIN_SERVER_HTTPS_PORT>/console

    For example:

    https://host1.domain.com:7101/console

  5. If you made the above changes, click Ok. Else, click Cancel.

    Note:

    You need to update the URI of the WebLogic Admin console to the physical host hosting OMS1 after each switchover or failover operation.
5.2.2.5.9 Decommissioning the Physical Hostname OMS1 Agent That No Longer Exists

In Enterprise Manager, decommission the OMS1 Agent that no longer exists (the agent that was associated with the physical host name) using the following steps:

  1. Navigate to the home page for the old physical hostname based agent on Primary OMS1.

    <PRIMARY_OMS1_PHYSICAL_FQDN>:<OMS_AGENT_PORT>

    For example:

    host1.domain.com:3872

  2. Select Agent, Target Setup and then select Agent Decommission.
  3. Select Continue on the Confirmation dialog.
  4. Review the targets monitored by the old physical hostname based agent on Primary OMS1.

    Note:

    Ensure that the monitored targets only contain the old Oracle Homes associated with the old physical hostname of the Primary OMS1 server, the agent, the physical hostname host of the Primary OMS1 server, and other targets whose name includes the physical hostname of the Primary OMS1 server. It is ok if the /EMGC_GCDomain/GCDomain Oracle WebLogic Domain target is listed under both the old physical hostname agent and the new alias hostname agent, as long as all other WebLogic Domain related targets that do not contain the physical host name of Primary OMS1 as part of the target name are only associated with the new alias hostname agent.

    If there are additional targets related to the current version of the OMS components and agents that have been upgraded and transitioned to replicated storage and alias hostname, cancel and relocate those targets to the new agent using the emcli relocate_targets command, and restart the Agent Decommission steps listed above, before proceeding further.

    Note:

    At this point, after completing the substeps above, if there are additional targets that are unrelated to the current version of the OMS components, and agents that have been upgraded and transitioned to replicated storage and alias hostnames but still need to be managed by an agent (such as other software installed locally on the OMS server or other targets that need to be monitored from this physical host), there are two options:
  5. Select Continue.
  6. Select OK, if you are presented with an Agent Decommission Confirmation dialog.

5.2.2.6 Updating Primary Site Configuration

5.2.2.6.1 Resecuring OMS1 to Include the Updated Enterprise Manager 13c SLB Configuration

The SLB should be updated to include required Enterprise Manager 13c configuration as part of the preparation for this upgrade and transition process. This step will resecure the configuration of OMS1 to make use of the updated configuration in the SLB for Enterprise Manager 13c for BI Publisher and JVMD.

For more details on SLB configuration for high availability in Enterprise Manager 13c, please see Configuring a Load Balancer in the Oracle Enterprise Manager Cloud Control Advanced Installation and Configuration Guide

For more details on SLB configuration for disaster recovery in Enterprise Manager 13c, please see Management Service Disaster Recovery in theOracle Enterprise Manager Cloud Control Advanced Installation and Configuration Guide

For an example of detailed step by step instructions for configuring an SLB for a site, please see the white paper Enterprise Manager 13c Cloud Control Configuring OMS High Availability with F5 BIG-IP Local Traffic Manager

Note:

It is important to ensure that the emctl secure oms command is run with the same -host, -slb_port, and -slb_console_port used when the OMS was originally secured for the SLB configuration so that agents need not be resecured. If the SLB configuration needs to be changed more substantially, ensure that agents are resecured appropriately.

To resecure the OMS1 to include the updated Enterprise Manager 13c SLB configuration, follow these steps:

  1. Secure OMS to reflect updated SLB configuration.

    <NEW_MIDDLEWARE_HOME>/bin/emctl secure oms -host <OMS_HOST> -slb_port <SLB_VS_SECURE_UPLOAD_PORT> -slb_console_port <SLB_VS_SECURE_CONSOLE_PORT> -slb_bip_http_port <SLB_VS_UNSECURE_BIP_CONSOLE_PORT> -slb_bip_https_port <SLB_VS_SECURE_BIP_CONSOLE_PORT> -slb_jvmd_https_port <SLB_VS_SECURE_JVMD_PORT> -lock_console -lock_upload

    For example:

    /u01/app/oracle/OMS/MWare_13.2/bin/emctl secure oms -host em.domain.com -slb_port 4900 -slb_console_port 443 -slb_bip_http_port 8080 -slb_bip_https_port 5443 -slb_jvmd_https_port 7301 -lock_console -lock_upload

  2. Stop OMS1.

    <NEW_MIDDLEWARE_HOME>/bin/emctl stop oms -all

    For example:

    /u01/app/oracle/OMS/MWare_13.2/bin/emctl stop oms -all

  3. Start OMS1.

    <NEW_MIDDLEWARE_HOME>/bin/emctl start oms

    For example:

    /u01/app/oracle/OMS/MWare_13.2/bin/emctl start oms

5.2.2.6.2 Configuring the Internal Channel Between the Oracle Management Service and BI Publisher

Beginning with Enterprise Manager 13.1, communication from the Oracle Management Service to BI Publisher can be configured to go through the SLB, ensuring that all operations that require this communication will also be routed through the SLB.

For more information on the internal channel, see Paths to Access BI Publisher in the Oracle Enterprise Manager Cloud Control Advanced Installation and Configuration Guide

To configure the internal channel for BI Publisher follow these steps:

  1. On Primary OMS1, run the following command to confirm the current setting for the internal channel.

    <NEW_MIDDLEWARE_HOME>/bin/emcli login -username="<EM_USERNAME>"

    <NEW_MIDDLEWARE_HOME>/bin/emcli sync

    <NEW_MIDDLEWARE_HOME>/bin/emcli unregister_bipublisher

    For example:

    /u01/app/oracle/OMS/MWare_13.2/bin/emcli login -username="john.doe@domain.com"

    /u01/app/oracle/OMS/MWare_13.2/bin/emcli sync

    /u01/app/oracle/OMS/MWare_13.2/bin/emcli unregister_bipublisher

    Example Output:

    $ /u01/app/oracle/OMS/MWare_13.2/bin/emcli login -username="john.doe@domain.com"

    Enter password :

    Login successful

    $ /u01/app/oracle/OMS/MWare_13.2/bin/emcli sync

    Synchronized successfully

    $ /u01/app/oracle/OMS/MWare_13.2/bin/emcli unregister_bipublisher

    Error: The BI Publisher managed server named "https://emoms1.domain.com:9803/xmlpserver" is registered. Use -force option to overwrite this.

    Note:

    This command is called unregister_bipublisher, but will not actually unregister anything as long as the -force parameter is not passed. The output of this command displays the current setting for the internal channel. DO NOT pass -force.
  2. On Primary OMS1, run the following command to change the internal channel to make use of the SLB configuration.

    <NEW_MIDDLEWARE_HOME>/bin/emcli setup_bipublisher -force -nodeploy -proto=https -host=<OMS_HOST> -port=<SLB_VS_SECURE_BIP_CONSOLE_PORT> -uri=xmlpserver

    For example:

    /u01/app/oracle/OMS/MWare_13.2/bin/emcli setup_bipublisher -force -nodeploy -proto=https -host=em.domain.com -port=5443 -uri=xmlpserver

    Example Output:

    $ /u01/app/oracle/OMS/MWare_13.2/bin/emcli setup_bipublisher -force -nodeploy -proto=https -host=em.domain.com -port=5443 -uri=xmlpserver

    BI Publisher "https://em.domain.com:5443/xmlpserver" has been registered for use with Enterprise Manager.

  3. On Primary OMS1, run the following command to confirm the setting for the internal channel has been updated. The output should now show the <OMS_HOST> rather than the alias hostname of OMS1.

    <NEW_MIDDLEWARE_HOME>/bin/emcli unregister_bipublisher

    For example:

    /u01/app/oracle/OMS/MWare_13.2/bin/emcli unregister_bipublisher

    Example Output:

    $ /u01/app/oracle/OMS/MWare_13.2/bin/emcli unregister_bipublisher

    Error: The BI Publisher managed server named "https://em.domain.com:5443/xmlpserver" is registered. Use -force option to overwrite this.

    Note:

    This command is called unregister_bipublisher, but will not actually unregister anything as long as the -force parameter is not passed. The output of this command displays the current setting for the internal channel. DO NOT pass -force.
5.2.2.6.3 Submitting DDMP Jobs

The DDMP jobs were disabled earlier during the upgrade when the Disable DDMP Jobs option was selected in the installer on the Database Connection Details page. For more details on the DDMP jobs, seeTracking the Status of Deferred Data Migration Jobs

To submit the DDMP jobs, Follow these steps:

  1. Navigate to Setup, Manage Cloud Control, and then select Post Upgrade Tasks.
  2. Review the status of the jobs listed in the table on the Deferred Data Migration tab. All of the tabs should show a status Not Started.
  3. Select all of the rows in the table and click the Start button.
  4. Monitor the jobs to ensure that they complete successfully.
    1. Reload the current page using the browser’s reload button.
    2. Click the refresh icon that appears at the upper right of the page.

5.2.2.7 Adding New Primary Additional OMS Alias Hostname Agents and Additional OMSs

To add new Primary Additional OMS alias hostname agents and Additional OMSs follow these steps:

5.2.2.7.1 Deploying Alias Host Name Agents to All Primary Additional OMS Servers

In the Enterprise Manager, deploy an agent to the alias host name of each Primary Additional OMS server. Review the information below and use this information when following the instructions in Installing Standalone Management Agents Using Add Host Targets Wizard in the Oracle Enterprise Manager Cloud Control Basic Installation Guide.

  1. On the Add Host Targets: Host and Platform page, enter the alias host name Fully-Qualified Domain Name for the additional OMS in the Host field of the first row.

    For example:

    emoms2.domain.com

  2. On the Add Host Targets: Installation Details page:
    1. Enter the Installation Base Directory, which must be located under the OMS Installation Base directory on the replicated storage. This directory path on the additional OMSs should be the same directory path as that used with the OMS1 Agent.

      For example:

      /u01/app/oracle/OMS/oms_agent

    2. Enter the port for the alias hostname agent. This should be the same port number as the port used on the first OMS and will be the port number used by the OMS agent running on the host for the OMS server at the active site.

      For example:

      3872

    3. Expand Optional Details and add the following in Additional Parameters to specify use of the replicated storage Oracle Inventory. INVENTORY_LOCATION=<NEW_INVENTORY_HOME>

      For example:

      INVENTORY_LOCATION=/u01/app/oracle/OMS/oraInventory

5.2.2.7.2 Deploying Additional OMSs

In Enterprise Manager, deploy an additional OMS, one at a time, using the alias host name agent of each Primary Additional OMS server. Review the information below and use this information when following the instructions in Adding an Additional Oracle Management Service in the Oracle Enterprise Manager Cloud Control Basic Installation Guide.

  1. On the Select Destination page:
    1. Select the alias host name Fully-Qualified Domain Name for the additional OMS on the Destination Host.

      For example:

      emoms2.domain.com

    2. Review the Destination Instance Base Location. This should match the value on OMS1 and should be located on replicated storage.

      For example:

      /u01/app/oracle/OMS/gc_inst

    3. Select or add Source and Destination Credentials. The credentials should be that of the Oracle Software Owner User.
  2. On the Destination Ports section of the Options page, validate the ports displayed by default. These default ports are based on the ports already assigned and used by OMS1. It is a best practice to keep these ports on the additional OMS the same as those on OMS1.
  3. If the replicated storage is NFS-mounted, be sure to move the lock files for the additional OMS from the NFS-mounted drive to a local file system location after the additional OMS is deployed, following the instructions in the Postinstallation Tasks.

5.2.2.8 Finalizing Primary and Standby Site Configuration

5.2.2.8.1 Updating Demonstration Keystores to Reflect Alias Hostnames

If your site uses Demonstration WebLogic Certificates, the certificates need to be recreated with alias hostnames to ensure that WebLogic communication will work properly on both the sites. Follow the steps in Updating Demonstration Keystores to Reflect Alias Hostnames in the Oracle Enterprise Manager Cloud Control Advanced Installation and Configuration Guide.

5.2.2.8.2 Deinstalling Enterprise Manager 12c OMS Binaries on Primary OMS1

To deinstall the binaries for the Enterprise Manager 12c OMS on the Primary OMS1 server, see Deleting the Old OMS Home When the Central Agent Is Migrated to a Location Outside the Old Middleware Home.

5.2.2.8.3 Deploying Host-based Agents to Primary and Standby OMSs

In Enterprise Manager, deploy an agent to the physical host name of each Primary and Standby OMS server. Review the information below and use this information when following the instructions in Installing Standalone Management Agents Using Add Host Targets Wizard in the Oracle Enterprise Manager Cloud Control Basic Installation Guide.

  1. On the Add Host Targets: Host and Platform page, enter the physical host Fully-Qualified Domain Name for each of the Primary and Standby OMS servers, each on its own row.

    For example:

    host1.domain.com

  2. On the Add Host Targets: Installation Details page:
    1. Enter the Installation Base Directory, which must be located on local storage as these agents will always run on the target hosts at the Primary and Standby sites.

      For example:

      /u01/app/oracle/local/oms_agent

    2. Enter the port for the physical hostname agent. This should be a different port number than the port number used by the alias hostname OMS agents running on the hosts for the OMS servers at the active site.

      For example:

      1830

    3. Expand Optional Details and add the following in Additional Parameters to specify use of the local storage Oracle Inventory. INVENTORY_LOCATION=<INVENTORY_HOME>

      For example:

      INVENTORY_LOCATION=/u01/app/oracle/oraInventory

5.2.2.8.4 Ensuring Agents on all OMS Nodes Have Correct Time Zone Configuration

To ensure agents on all OMS nodes have correct time zone configuration, follow these steps.

  1. Check configuration of all OMS agents (the physical hostname local storage agents and the alias hostname replicated storage agents) using emcli from primary OMS1. Add additional commands as necessary for each additional OMS.

    <NEW_MIDDLEWARE_HOME>/bin/emcli login -username="<EM_USERNAME>"

    <NEW_MIDDLEWARE_HOME>/bin/emcli get_agent_properties -agent_name="<PRIMARY_OMS1_PHYSICAL_FQDN>:<LOCAL_AGENT_PORT>"

    <NEW_MIDDLEWARE_HOME>/bin/emcli get_agent_properties -agent_name="<PRIMARY_OMS<#>_PHYSICAL_FQDN>:<LOCAL_AGENT_PORT>"

    <NEW_MIDDLEWARE_HOME>/bin/emcli get_agent_properties -agent_name="<STANDBY_OMS1_PHYSICAL_FQDN>:<LOCAL_AGENT_PORT>"

    <NEW_MIDDLEWARE_HOME>/bin/emcli get_agent_properties -agent_name="<STANDBY_OMS<#>_PHYSICAL_FQDN>:<LOCAL_AGENT_PORT>"

    <NEW_MIDDLEWARE_HOME>/bin/emcli get_agent_properties -agent_name="<OMS1_ALIAS_HOSTNAME_FQDN>:<OMS_AGENT_PORT>"

    <NEW_MIDDLEWARE_HOME>/bin/emcli get_agent_properties -agent_name="<OMS<#>_ALIAS_HOSTNAME_FQDN>:<OMS_AGENT_PORT>"

    For example:

    /u01/app/oracle/OMS/MWare_13.2/bin/emcli login -username="john.doe@domain.com"

    /u01/app/oracle/OMS/MWare_13.2/bin/emcli get_agent_properties -agent_name="host1.domain.com:1830"

    /u01/app/oracle/OMS/MWare_13.2/bin/emcli get_agent_properties -agent_name="host2.domain.com:1830"

    /u01/app/oracle/OMS/MWare_13.2/bin/emcli get_agent_properties -agent_name="host3.domain.com:1830"

    /u01/app/oracle/OMS/MWare_13.2/bin/emcli get_agent_properties -agent_name="host4.domain.com:1830"

    /u01/app/oracle/OMS/MWare_13.2/bin/emcli get_agent_properties -agent_name="emoms1.domain.com:3872"

    /u01/app/oracle/OMS/MWare_13.2/bin/emcli get_agent_properties -agent_name="emoms2.domain.com:3872"

  2. Review the results of the command. If the local agents differ in time zone configuration from the replicated storage agents, reset the time zone for the local agents.
  3. Reset the time zone for any agents as required to ensure that the OMS related agents are in a consistent time zone. This is important in the event that targets need to be moved between agents.
    1. For each agent that needs the time zone to be reset, perform the following from the agent home:

      echo $TZ

      <AGENT_HOME>/bin/emctl config agent getTZ

      <AGENT_HOME>/bin/emctl stop agent

      <AGENT_HOME>/bin/emctl resetTZ agent

    2. Login to the repository via sqlplus and run the commands provided in the output of the emctl resetTZ agent command.

      <AGENT_HOME>/bin/emctl start agent

  4. Repeat step 1, and review the results, confirming that the time zones are now consistent.

    Note:

    For more information, please refer support note "Enterprise Manager Cloud Control 12c Agent: Troubleshooting Timezone (TZ) issues (Doc ID 1550956.1)."
5.2.2.8.5 Performing Post-Upgrade and Transition Activities

To perform Post-Upgrade and Transition activities follow these steps:

5.2.2.8.5.1 Reviewing and Completing Remaining Post-Upgrade Activities

At this point, steps specific to the upgrade and transition process are complete. Review the post-upgrade activities referenced in the Oracle Enterprise Manager Cloud Control Upgrade Guide to ensure that any remaining tasks required in your environment have been completed. Pay particular attention to steps that have not yet been accomplished as part of the upgrade and transition process, such as upgrading management agents on systems other than the OMS servers, upgrading JVMD agents, and performing any other steps appropriate in your environment such as reconfiguring WebLogic with custom certificates.

5.2.2.8.5.2 Performing Post-Upgrade and Transition Switchover, Patching, and Plug-in Deployment Tests

This step is intended to build confidence in the upgraded and transitioned environment in a test or development environment. These steps involve downtime and require planning to identify specific patches and plug-ins to deploy. Oracle recommends that switchover testing be scheduled at the first reasonable opportunity following the completion of the upgrade and transition such that any issues are identified and resolved to ensure the successful availability of the standby to protect against unplanned and planned outages, and to provide operations personnel familiarity with the new standby configuration and switchover processes..

Patching Considerations:

When using OMSPatcher to perform patching, set the following property to disable the host verification check due to the alias hostnames configuration.

OMSPatcher.OMS_DISABLE_HOST_CHECK=true

Oracle Inventory Considerations:

Now that the upgrade and transition is complete, there are two sets of Oracle Inventory locations that need to be considered when performing any maintenance in the EM environment: local storage Oracle Inventory and replicated storage Oracle Inventory. This upgrade and transition process did not make any changes to the central Oracle Inventory pointer located in /etc/oraInst.loc. It is possible that this pointer may reference the replicated storage Oracle Inventory, the local storage Oracle Inventory, or perhaps even a different Oracle Inventory. The key is to ensure that when you are performing maintenance operations that you are aware of the Oracle Inventory that should be used for the particular installed software. Operations against the locally installed software such as the local agents should be performed against the local storage Oracle Inventory. Operations against the software installed on replicated storage such as the OMS and OMS agent should be performed against the replicated storage Oracle Inventory so that the software installed on replicated storage can be maintained regardless of which physical host is currently hosting the software.

5.2.2.8.5.3 Cleanup

When you are certain of upgrade and transition success and that you will no longer need to fall back from the upgrade and transition, and once any logs, configuration, or other long-term reference information has been copied or backed up via other means as necessary, you can remove temporary directories, backups, directories related to old installations, and so on, that were made on local and replicated storage as part of the upgrade and transition process.

The following are a list of the areas to review:

  1. Review the following directories on Primary OMS1:

    1. Renamed agent base directory prior to running agentDeploy.sh

      <NEW_OMS_AGENT_BASE>/agent_inst.YYYYMMDD

      Example:

      /u01/app/oracle/OMS/oms_agent/agent_inst.20160502

    2. Staging directory used for the EM 13.2 installer

      <UPGRADE_STAGING_DIR>

      Example:

      /u01/app/oracle/OMS/stage

  2. Review the following on all Primary and Standby OMS servers:

    1. Instance Base directories from the EM 12c installations which have been deinstalled.

      <OLD_INSTANCE_BASE>

      Example:

      /u01/app/oracle/gc_inst

    2. Backups taken before or during this upgrade and transition process.

      <BACKUP_DIR>

      Example:

      /u01/app/oracle/local/backup

    3. Scheduled jobs, such as via cron, that reference the EM 12c software and/or environment.

      <BACKUP_DIR>

      Example:

      crontab -l