3 Upgrading Oracle Traffic Director from 11g

You can upgrade Oracle Traffic Director from Oracle Fusion Middleware Release 11g to 12c (12.2.1.2) .

Complete the steps in the following topics to perform the upgrade:

3.1 About the Oracle Traffic Director Upgrade Process

Review the roadmap for an overview of the upgrade process for Oracle Traffic Director.

The steps you take to upgrade your existing domain will vary depending on how your domain is configured and which components are being upgraded. Follow only those steps that are applicable to your deployment.

Table 3-1 Tasks for Upgrading Oracle Traffic Director

Task Description

Required

If you have not done so already, review the introductory topics in this guide and complete the required pre-upgrade tasks.

See Pre-Upgrade Checklist

Required

Download and install the Oracle Fusion Middleware Infrastructure and Oracle Traffic Director 12c (12.2.1.2) distributions into a new Oracle home.

See

Installing the Product Distributions

Required

Shut down the 11g environment (stop all Administration and Managed Servers).

WARNING: Failure to shut down your servers during an upgrade may lead to data corruption.

See Stopping Servers and Processes

Required

Start the Upgrade Assistant (again) to upgrade domain component configurations.

The Upgrade Assistant is used to update the domain’s component configurations.

For 11g to 12c upgrades see Upgrading the Component Configurations

Required

Start the Upgrade Assistant (again) to upgrade standalone system component configurations.

The Upgrade Assistant updates the standalone agent’s component configurations.

See Starting the Upgrade Assistant

Required

Complete and verify the upgrade.

Perform the required post-upgrade configuration tasks (if needed), including starting the new Administration and Managed Servers and node manager to ensure there are no issues.

Oracle recommends that you ensure all of the upgraded components are working as expected before deleting your backups.

See Verifying The Component Configurations

3.2 Performing Traffic Director-specific Pre-Upgrade Tasks

Before you upgrade to Oracle Traffic Director 12c , you must follow these steps:
  1. Make sure Oracle WebLogic Server is installed into a new Oracle home and extend with the Oracle Traffic Director template.

    Note:

    For more information about configuring an Oracle Traffic Director Domain, see Administering Oracle Traffic Director.

  2. Shutdown 11g environment.
  3. Shutdown 12c environment.

    Note:

    If Oracle Traffic Director11g and 12c installations are on different hosts/machines (for example 11g on OEL5 and 12c on OEL6), then the user has to do one of the following:

    Remotely copy ORACLE_HOME and INSTANCE_HOME directories from 11g host to 12c preserving the same path as it was on 11g host.

    For example, on 12c host:

    # scp -r <11g host>:/otd/oracle_home /otd/oracle_home

    # scp -r <11g host>:/otd/instance_home /otd/instance_home

    Mount 11g ORACLE_HOME and INSTANCE_HOME paths on 12c host preserving the same path as it was on 11g host.

    For example, on 12c host:

    # mount <11g host>:/otd/oracle_home on /otd/oracle_home

    # mount <11g host>:/otd/instance_home on /otd/instance_home

3.3 Preparing to Upgrade Oracle Traffic Director to 12c (12.2.1.2)

This section describes the steps to prepare the upgrade Oracle Traffic Director to 12c (12.2.1.2)

Oracle Fusion Middleware Upgrade Assistant supports an out-of-place upgrade to 12c (12.2.1.2.0) for the following Oracle Traffic Director 11g releases:

  • Oracle Traffic Director FMW 11g Release 1 (11.1.1.7.0)

  • Oracle Traffic Director FMW 11g Release 1 (11.1.1.9.0)

Before you upgrade to Oracle Traffic Director 12c (12.2.1.2), follow these steps:

  1. Ensure that 12.2.1.2 binaries are installed in a new MW_HOME. A valid WebLogic Server domain extended with Oracle Traffic Directorand dependant JRF templates must also be created at the target location.
    For more information, see Configuring the WebLogic Server Domain for Oracle Traffic Director in Administering Oracle Traffic Director.
  2. Shutdown the source (11g or 12.2.1) environment.
  3. Shutdown the target 12.2.1.2.0 environment.
  • If Oracle Traffic Director 11g and 12c installations are on different hosts/machines (for example 11g on OEL5 and 12c on OEL6), then the user has to do one of the following:

    • In the Upgrade Assistant, when you select '11g source' as the source version for the upgrade, specify the remote directory path for Oracle Traffic Director 11g instances. See Section 4.1.3, "Upgrading the Component Configurations".

    • Remotely copy ORACLE_HOME and INSTANCE_HOME directories from 11g host to 12c preserving the same path as it was on 11g host.

      For example, on 12c host:

      # scp -r <11g host>:/otd/oracle_home /otd/oracle_home
      # scp -r <11g host>:/otd/oracle_home /otd/oracle_home
      
    • Mount 11g ORACLE_HOME and INSTANCE_HOME paths on 12c host preserving the same path as it was on 11g host.

      For example, on 12c host:

      # mount <11g host>:/otd/oracle_home on /otd/oracle_home
      # mount <11g host>:/otd/instance_home on /otd/instance_home
      
  • Oracle Traffic Director 11g INSTANCE_HOME must have read permissions for the user running Upgrade Assistant to access the configurations within 11g Administration Server config-store.

  • Upgrading across different platforms is not supported. For example, you cannot upgrade Oracle Traffic Director from a Linux to Solaris environment.

3.4 Installing the Product Distributions

Before beginning your upgrade, download Oracle Fusion Middleware Infrastructure and Oracle Traffic Director 12c (12.2.1.2) distributions on the target system and install them using Oracle Universal Installer.

Note:

You must install the Oracle Fusion Middleware Infrastructure distribution first before installing other Fusion Middleware products, when Infrastructure is required for the upgrade.
The following install instructions are for the standard Oracle Fusion Middleware installation topology. Refer to the Oracle Traffic Director Installation Guide for more information about installing the other supported topologies.
To install 12c (12.2.1.2) distributions:
  1. Sign in to the target system where you want to install the 12c (12.2.1.2) product distribution.
  2. Download the following 12c (12.2.1.2) product distributions from Oracle Technology Network or Oracle Software Delivery Cloud to your target system:
    • Oracle Fusion Middleware Infrastructure (fmw_12.2.1.2.0_infrastructure_generic.jar)
    • Oracle Traffic Director (UNIX: fmw_12.2.1.2.0_otd_linux64.bin), (Windows: setup_fmw_12.2.1.2.0_otd_win64.exe)
  3. Change to the directory where you downloaded the 12c (12.2.1.2) product distribution.
  4. Start the installation program for Oracle Fusion Middleware Infrastructure:
    • (UNIX) JDK_HOME/bin/java -jar fmw_12.2.1.2.0_infrastructure_generic.jar
    • (Windows) JDK_HOME\bin\java -jar fmw_12.2.1.2.0_infrastructure_generic.jar
  5. On UNIX operating systems, the Installation Inventory Setup screen appears if this is the first time you are installing an Oracle product on this host.
    Specify the location where you want to create your central inventory. Make sure that the operating system group name selected on this screen has write permissions to the central inventory location and click Next.

    Note:

    The Installation Inventory Setup screen does not appear on Windows operating systems.
  6. On the Welcome screen, review the information to make sure that you have met all the prerequisites. Click Next.
  7. On the Auto Updates screen, select Skip Auto Updates. Options are:
    • Skip Auto Updates: If you do not want your system to check for software updates at this time.

    • Select patches from directory: To navigate to a local directory if you downloaded patch files.

    • Search My Oracle Support for Updates: To automatically download software updates if you have a My Oracle Support account. You must enter Oracle Support credentials then click Search. To configure a proxy server for the installer to access My Oracle Support, click Proxy Settings. Click Test Connection to test the connection.

    Click Next.
  8. On the Installation Location screen, specify the location for the Oracle home directory and click Next.
    For more information about Oracle Fusion Middleware directory structure, see Selecting Directories for Installation and Configuration in Oracle Fusion Middleware Planning an Installation of Oracle Fusion Middleware.
  9. On the Installation Type screen, select the following:
    1. For Infrastructure, select Fusion Middleware Infrastructure
    2. For Oracle Traffic Director, select Oracle Traffic Director
    Select the type of installation and consequently, the products and feature sets you want to install.
    • Select Standalone OTD (Managed independently of WebLogic server) if you are installing Oracle Traffic Director in a Standalone domain or installing Oracle Traffic Director in a remote node of a collocated domain.
    • Select Collocated OTD (Managed through WebLogic server) if you are installing Oracle Traffic Director in a WebLogic Server domain on the administration server node.
    Click Next

    See Installing Oracle Traffic Director for more information.

    .
  10. The Prerequisite Checks screen analyzes the host computer to ensure that the specific operating system prerequisites have been met.
    To view the list of tasks that gets verified, select View Successful Tasks. To view log details, select View Log. If any prerequisite check fails, then an error message appears at the bottom of the screen. Fix the error and click Rerun to try again. To ignore the error or the warning message and continue with the installation, click Skip (not recommended).
  11. On the Installation Summary screen, verify the installation options you selected.
    If you want to save these options to a response file, click Save Response File and enter the response file location and name. The response file collects and stores all the information that you have entered, and enables you to perform a silent installation (from the command line) at a later time.

    Click Install to begin the installation.

  12. On the Installation Progress screen, when the progress bar displays 100%, click Finish to dismiss the installer, or click Next to see a summary.
  13. The Installation Complete screen displays the Installation Location and the Feature Sets that are installed. Review this information and click Finish to close the installer.
  14. After you have installed Oracle Fusion Middleware Infrastructure, enter the following command to start the installer for your product distribution and repeat the steps above to navigate through the installer screens:
    (UNIX) ./fmw_12.2.1.2.0_otd_linux64.bin
    (Windows) setup_fmw_12.2.1.2.0_otd_win64.exe

3.5 Stopping Servers and Processes

Before running the Upgrade Assistant to upgrade your schemas and configurations, you must shut down all processes and servers, including the Administration server and any managed servers.

An Oracle Fusion Middleware environment can consist of an Oracle WebLogic Server domain, an Administration Server, multiple managed servers, Java components, system components such as Identity Management components, and a database used as a repository for metadata. The components may be dependent on each other so they must be stopped in the correct order.

Note:

The procedures in this section describe how to stop servers and processes using the WLST command-line utility or a script. You can also use the Oracle Fusion Middleware Control and the Oracle WebLogic Server Administration Console. See Starting and Stopping Administration and Managed Servers and Node Manager in Administering Oracle Fusion Middleware.

To stop your Fusion Middleware environment, follow the steps below.

Step 1: Stop System Components

To stop system components, such as Oracle HTTP Server, use the stopComponent script:

  • (UNIX) DOMAIN_HOME/bin/stopComponent.sh component_name

  • (Windows) DOMAIN_HOME\bin\stopComponent.cmd component_name

You can stop system components in any order.

Step 2: Stop the Managed Servers

To stop a WebLogic Server Managed Server, use the stopManagedWebLogic script:

  • (UNIX) DOMAIN_HOME/bin/stopManagedWebLogic.sh managed_server_name admin_url

  • (Windows) DOMAIN_HOME\bin\stopManagedWebLogic.cmd managed_server_name admin_url

When prompted, enter your user name and password.

Step 3: Stop Oracle Identity Management Components

Stop any Oracle Identity Management components, such as Oracle Internet Directory, that form part of your environment:
  • (UNIX) DOMAIN_HOME/bin/stopComponent.sh component_name

  • (Windows) DOMAIN_HOME\bin\stopComponent.cmd component_name

Step 4: Stop the Administration Server

When you stop the Administration Server, you also stop the processes running in the Administration Server, including the WebLogic Server Administration Console and Fusion Middleware Control.

To stop the Administration Server, use the stopWebLogic script:

  • (UNIX) DOMAIN_HOME/bin/stopWebLogic.sh

  • (Windows) DOMAIN_HOME\bin\stopWebLogic.cmd

When prompted, enter your user name, password, and the URL of the Administration Server.

Step 5: Stop Node Manager

To stop Node Manager, close the command shell in which it is running.

Alternatively, after having set the nodemanager.properties attribute QuitEnabled to true (the default is false), you can use WLST to connect to Node Manager and shut it down. For more information, see stopNodeManager in WLST Command Reference for WebLogic Server.

3.6 Starting the Upgrade Assistant

Run the Upgrade Assistant to upgrade product schemas, domain component configurations, or standalone system components to 12c (12.2.1.2). Oracle recommends that you run the Upgrade Assistant as a non-SYSDBA user, completing the upgrade for one domain at a time.

To start the Upgrade Assistant:
  1. Go to the oracle_common/upgrade/bin directory:
    • (UNIX) ORACLE_HOME/oracle_common/upgrade/bin
    • (Windows) ORACLE_HOME\oracle_common\upgrade\bin
  2. Start the Upgrade Assistant:
    • (UNIX) ./ua
    • (Windows) ua.bat

For information about other parameters that you can specify on the command line, such as logging parameters, see:

3.6.1 Upgrade Assistant Command-Line Parameters

When you start the Upgrade Assistant from the command-line, you can specify additional parameters.

Table 3-2 Upgrade Assistant Command Line Parameters

Parameter Required or Optional Description

-readiness

Required for readiness checks

NOTE: Readiness checks cannot be performed on standalone installations (those not managed by the WebLogic Server).

Performs the upgrade readiness check without performing an actual upgrade.

Schemas and configurations are checked.

Do not use this parameter if you have specified the -examine parameter.

-threads

Optional

Identifies the number of threads available for concurrent schema upgrades or readiness checks of the schemas.

The value must be a positive integer in the range 1 to 8. The default is 4.

-response

Required for silent upgrades or silent readiness checks

Runs the Upgrade Assistant using inputs saved to a response file generated from the data that is entered when the Upgrade Assistant is run in GUI mode. Using this parameter runs the the Upgrade Assistant in silent mode (without displaying Upgrade Assistant screens).

-examine

Optional

Performs the examine phase but does not perform an actual upgrade.

Do not specify this parameter if you have specified the -readiness parameter.

-logLevel attribute

Optional

Sets the logging level, specifying one of the following attributes:

  • TRACE

  • NOTIFICATION

  • WARNING

  • ERROR

  • INCIDENT_ERROR

The default logging level is NOTIFICATION.

Consider setting the -logLevel TRACE attribute to so that more information is logged. This is useful when troubleshooting a failed upgrade. The Upgrade Assistant's log files can become very large if -logLevel TRACE is used.

-logDir location

Optional

Sets the default location of upgrade log files and temporary files. You must specify an existing, writable directory where the Upgrade Assistant will create log files and temporary files.

The default locations are:

(UNIX) ORACLE_HOME/oracle_common/upgrade/logs
ORACLE_HOME/oracle_common/upgrade/temp

(Windows) ORACLE_HOME\oracle_common\upgrade\logs
ORACLE_HOME\oracle_common\upgrade\temp

-help

Optional

Displays all of the command-line options.

3.7 Upgrading the Component Configurations

When you run the Upgrade Assistant to upgrade the Oracle Traffic Director component configurations, consider the following points based on the Oracle Traffic Director domain.

Collocated domain upgrade:

  • Specify the starting point for an upgrade. The options are 12c source and 11g source.

  • Specify the 11g Oracle Traffic Director Instance Home where instances are located.

  • For each Oracle Traffic Director configuration, specify the NSS DB password for internal token, if one exists.

You can run the Upgrade Assistant in the following ways:

3.7.1 Upgrading Oracle Traffic Director in Graphical Mode

Launch the upgrade assistance and follow the steps below:

  1. The Welcome screen displays list of tasks to be performed. Click Next to continue.

  2. In the All Configurations screen, select All Configurations Used By a Domain and provide the correct domain path in the Domain Directory field.

  3. Click Next to continue.

  4. In the Component List screen, click Next to continue.

  5. In the Prerequisites screen, select all the check boxes, then click Next to continue.

  6. In the OTD 11g Instance Home screen, provide the path to 11g OTD Instance Home, then click Next to continue.

  7. The Examine screen displays the list of tasks done. Click Next to continue.

  8. The Upgrade Summary screen is displayed.

    Note:

    Click the Save Response File.. button to create a response file, which can be used as an input for Command Line upgrade.

  9. Click Next to continue.

  10. In the Upgrade Progress screen, click Next to continue.

  11. In the Upgrade Success screen, click Close to complete the upgrade.

3.7.2 Upgrading Oracle Traffic Director in Silent Mode

To upgrade using silent mode, run the upgrade UA command with the response file option.

This response file is generated using the upgrade wizard. Click the Save Response File button in the Upgrade Summary screen.

After successful upgrade, a success message is displayed on the console. Log file is available under the following path:

<FMW_HOME>\oracle_common\upgrade\logs

Command Line for silent upgrade (on unix):

Syntax

<MW_HOME>/oracle_common/upgrade/bin/ua -response <response-file> -logLevel <Log-verbosity>

Sample response file:

[GENERAL]
fileFormatVersion = 3

[UAWLSINTERNAL.UAWLS]
pluginInstance = 1
UASVR.path = <PATH-TO-12C-OTD-DOMAIN>

[JRF.JRF_CONFIG_PLUGIN]
pluginInstance = 5

[CAM.SYSCOMP]
pluginInstance = 2

[OTD.CONFIG_UPGRADE]
pluginInstance = 12
INSTANCE_HOME.path = <PATH-TO-11g-OTD-INSTANCE-HOME>

SSL_TOKEN_TABLE.CONFIG_NAME.0.string = <OTD-11G-CONFIG-NAME>
SSL_TOKEN_TABLE.SSL_TOKEN_PIN.0.encryptedPassword = 
<ENCRYPTED-SSL-TOKEN-PIN-FOR-CONFIG-IN-11G>
SSL_TOKEN_TABLE.WALLET_PSWD.0.encryptedPassword = 
<ENCRYPTED-WALLET-PASSWORD-FOR-UPGRADED-CONFIG-IN-12C>

Note:

The SSL_TOKEN* fields are applicable only if the 11g instance has SSL enabled config.

3.8 Verifying the Component Configurations Upgrade

Verifying the Component Configurations Upgrade.

For Oracle Traffic Director 11g Configuration:

  • The 11g configuration files are copied to the 12.2.1.2.0 domain under DOMAIN_HOME/config/fmwconfig/components/OTD/ directory.

  • The configuration elements in server.xml file are modified.

  • The 11g server.xml elements which are not supported in 12.2.1.2.0 are removed.

  • The 11g obj.conf parameters which are not supported in 12.2.1.2.0 are removed.

  • Certificate configurations from the NSS database are moved to KSS and to Oracle wallet for Oracle Traffic Director runtime consumption.

  • The version in server.xml of config-store is modified to 12.2.1.2.

3.9 Post-Upgrade Steps

Review the following list of post-upgrade tasks to be performed after using the Upgrade Assistant to upgrade to Oracle Traffic Director 12c (12.2.1.2):

  • Oracle Traffic Director system component instances must be created post-upgrade by targeting the system component configurations to machines using Fusion Middleware Control or WLST. For more information, see Managing Instances in Administering Oracle Traffic Director.

  • Creation of instances and failover groups is a deployment task. These steps are best handled outside upgrade as post-upgrade steps. For more information about the deployment topology and configuring failover groups, see Configuring Oracle Traffic Director for High Availability in Administering Oracle Traffic Director.

  • Any references in the Oracle Traffic Director config files to the paths outside of INSTANCE_HOME and ORACLE_HOME may not be accessible post-upgrade. This should be configured manually.

3.10 Starting Servers and Processes

After a successful upgrade, restart all processes and servers, including the Administration Server and any Managed Servers.

The components may be dependent on each other so they must be started in the correct order.

Note:

The procedures in this section describe how to start servers and process using the WLST command line or a script. You can also use the Oracle Fusion Middleware Control and the Oracle WebLogic Server Administration Console. See Starting and Stopping Administration and Managed Servers and Node Manager in Administering Oracle Fusion Middleware.

To start your Fusion Middleware environment, follow the steps below.

Step 1: Start the Administration Server

When you start the Administration Server, you also start the processes running in the Administration Server, including the WebLogic Server Administration Console and Fusion Middleware Control.

To start the Administration Server, use the startWebLogic script:

  • (UNIX) DOMAIN_HOME/bin/startWebLogic.sh

  • (Windows) DOMAIN_HOME\bin\startWebLogic.cmd

When prompted, enter your user name, password, and the URL of the Administration Server.

Step 2: Start Node Manager

To start Node Manager, use the startNodeManager script:

  • (UNIX) DOMAIN_HOME/bin/startNodeManager.sh

  • (Windows) DOMAIN_HOME\bin\startNodeManager.cmd

Step 3: Start Oracle Identity Management Components

Start any Oracle Identity Management components, such as Oracle Internet Directory, that form part of your environment:
  • (UNIX) DOMAIN_HOME/bin/startComponent.sh component_name

  • (Windows) DOMAIN_HOME\bin\startComponent.cmd component_name

Step 4: Start the Managed Servers

To start a WebLogic Server Managed Server, use the startManagedWebLogic script:

  • (UNIX) DOMAIN_HOME/bin/startManagedWebLogic.sh managed_server_name admin_url

  • (Windows) DOMAIN_HOME\bin\startManagedWebLogic.cmd managed_server_name admin_url

When prompted, enter your user name and password.

Note:

The startup of a Managed Server will typically start the applications that are deployed to it. Therefore, it should not be necessary to manually start applications after the Managed Server startup.

Step 5: Start System Components

To start system components, such as Oracle HTTP Server, use the startComponent script:

  • (UNIX) DOMAIN_HOME/bin/startComponent.sh component_name

  • (Windows) DOMAIN_HOME\bin\startComponent.cmd component_name

You can start system components in any order.