5 Upgrading a Managed Oracle HTTP Server from 11g to 12c

This chapter describes the procedure for upgrading a managed Oracle HTTP Server from 11g to 12c. The valid starting points for this upgrade are 11g releases 11.1.1.7 and above.

5.1 Installing the Managed 12c (12.2.1) Oracle HTTP Server

Before you upgrade your existing Managed Oracle HTTP Server components, you must first install the Oracle HTTP Server Release 12.2.1.

To install the Oracle HTTP Server:
  1. Log in to the host where you want to install the Oracle HTTP Server.
  2. Download the Oracle HTTP Server product distribution (ohs_linux64.bin|setup_ohs_win64.exe) from Oracle Technology Network or Oracle Software Delivery Cloud on your host system.
  3. Check that your machines meet the following requirements:
    • Ensure that the system, patch, kernel, and other requirements are met as specified in Installing and Configuring Oracle HTTP Server.
    • Because Oracle HTTP Server is installed by default on port 7777, you must ensure that port 7777 is not used by any service on the nodes. To check if this port is in use, run the following command before installing Oracle HTTP Server. You must free the port if it is in use.

      netstat -an | grep 7777

  4. On UNIX platforms, if the /etc/oraInst.loc file exists, check that its contents are correct. Specifically, check that the inventory directory is correct and that you have write permissions for that directory.
    If the /etc/oraInst.loc file does not exist, you can skip this step.
  5. Run the installer by entering the following command:
    On UNIX operating system:
    ./ohs_linux64.bin
    On Windows operating system:
    setup_ohs_win64.exe
  6. On the Installation Inventory Setup screen, specify the location where you want to create your central inventory in the Inventory Directory field.
    Make sure that the Operating System Group name that you select on this screen has write permissions to the central inventory location. Click OK.

    Note:

    This screen does not appear on Windows operating systems. For more information about the central inventory, see Understanding the Oracle Central Inventory in Installing Software with the Oracle Universal Installer.
  7. On the Welcome screen, review the information and click Next.
  8. On the Auto Updates screen, select one of the following and click Next:
    • 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.
  9. On the Installation Location screen, specify the location for the Oracle home directory and click Next.
    Since you are installing the standard installation topology for a collocated Oracle HTTP Server in a WebLogic Server domain, enter the path to an existing Oracle Fusion Middleware Infrastructure Oracle home.
    For more information about Oracle Fusion Middleware directory structure, see Selecting Directories for Installation and Configuration in Planning an Installation of Oracle Fusion Middleware.
  10. On the Installation Type screen, select Collocated HTTP Server (Managed through WebLogic Server) and click Next.
    For more information about the installation types, see Introducing the Oracle HTTP Server Standard Installation Topologies in Installing and Configuring Oracle HTTP Server.
  11. On the Prerequisite Check screen, verify that your system meets the minimum necessary requirements and click Next. If you see a warning or error message, see Oracle Fusion Middleware System Requirements and Specifications.
    For more information about other options on this screen, click Help.
  12. On the Installation Summary screen, verify the installation options you selected.
    To save these options to a response file, click Save Response File and enter the location and the name of the response file. You can use response files for silent installation. Click Install.
  13. On the Installation Progress screen, click Next when the progress bar displays 100%.
    If the installation is successful, the Installation Complete screen displays the message Oracle HTTP Server (OHS) installation completed successfully. Click Finish to dismiss the installer.
You have installed the Oracle HTTP Server in a collocated mode.

5.2 Creating the Required Schemas before Upgrade

If you are upgrading from Oracle HTTP Server 11g, you must create the required 12c schemas before you begin the upgrade. The schemas required for Oracle HTTP Server are: Service Table (STB) and Oracle Platform Security Services (OPSS).

Note:

This procedure assumes that you are a SYS or SYSDBA user with full database administrator privileges. If you are a user with limited database privileges, follow the procedure stated in Creating Schemas as a User With Limited Database Privileges. For in-depth information about using RCU, see Creating Schemas with the Repository Creation Utility.
To create the 12c schema:
  1. Change directory to the following:
    12c_Oracle_Home/oracle_common/bin/
  2. Run the RCU by entering the following command:
    ./rcu
  3. On the Welcome screen, click Next.
  4. On the Create Repository screen, select Create Repository and then select System Load and Product Load. Click Next.
  5. On the Database Connection Details screen, select the Database Type and enter the following details:
    Option Example
    Host Name dbhost.oracle.com
    Port 1521
    Service Name example.oracle.com
    Username SYS or SYSDBA
    Password N/A
    Role Normal or SYSDBA
    If the prerequisite check is successful, click OK to continue to the next page. If the check fails, review the details you entered and try again.
  6. On the Select Components screen, select Create new prefix and enter the same prefix as the 11g schema.
    The custom prefix is used to logically group these schemas together for use in this domain.
    Select AS Common Schemas. All of the schemas in this section are automatically selected. Click Next.
    You must remember the prefix and schema names for the components you are installing; you need this information while configuring your product installation. Oracle recommends that you note these values.
  7. Verify that the prerequisites checking is successful. Click OK to go to the next page.
  8. On the Schema Passwords screen, specify the passwords for your schema owners.
    You must remember the passwords you enter on this screen; you need this information while configuring your product installation. Oracle recommends that you note these values.
  9. On the Map Tablespaces screen, configure the desired tablespace mapping for the schemas you want to create.
    When you click Next, a separate dialog window appears asking you to confirm that you want to create these tablespaces. Click OK to proceed and dismiss the dialog window.
    A second dialog window appears showing the progress of tablespace creation. After this is complete, click OK to dismiss this window and go to the next screen.
  10. Verify the information on the Summary screen and click Create to begin schema creation.
    This screen contains information about the log files that were created from this RCU operation. You can click on the name of a particular log file to view the contents of that file.
  11. Review the information on the Completion Summary screen to verify that the operation is completed successfully. Click Close to complete the schema creation and dismiss RCU.

5.3 Upgrading the 11g Schema using the Upgrade Assistant

You need to upgrade the 11g OPSS and IAU (Audit Services) schema using the 12c Upgrade Assistant.

To upgrade the 11g OPSS and IAU schema:
  1. Run the Upgrade Assistant from the 12.2.1 Oracle home by entering the following command:
    On UNIX operating system:
    12c_Oracle_Home/oracle_common/upgrade/bin/.ua
    On Windows operating system:
    12c_Oracle_Home\oracle_common\upgrade\bin\ua.bat
  2. The Welcome screen provides an overview of the Upgrade Assistant and some information about important pre-upgrade tasks. Click Next.
    For more information about using the Upgrade Assistant, see Upgrading with the Upgrade Assistant or click Help on the Upgrade Assistant screen.
  3. On the Selected Schemas screen, select Individually Selected Schemas to upgrade selected schemas for your installed components and click Next.
    The Upgrade Assistant identifies the components that are available for a schema upgrade thus allowing you to select the schemas you want to include in the upgrade.

    Caution:

    Upgrade only those schemas that are used to support your 12.2.1 components. Do not upgrade schemas that are currently being used to support 11g or 12c components that are not included in the Oracle Fusion Middleware 12.2.1 release.
  4. The Available Components screen provides a list of installed Oracle Fusion Middleware components that have schemas that can be upgraded. When you select a component, the schemas and any dependencies are automatically selected.
    Select Oracle Platform Security Services. Selecting this automatically selects Oracle Audit Services. Click Next.
  5. On the Domain Directory screen, enter the 11g WebLogic domain directory. Click Browse and use the navigation tree to select the 11g WebLogic domain directory.
    The Upgrade Assistant requires the 11g domain location to access the jps-config.xml file.
  6. On the Prerequisites screen, acknowledge that the prerequisites have been met by checking all the three boxes. Click Next.

    WARNING:

    The Upgrade Assistant does not verify whether the prerequisites have been met.
  7. The Examine screen displays the status of the Upgrade Assistant as it examines each component, verifying that the component is ready for upgrade. If the status is “succeeded”, click Upgrade.
    If the examine phase fails, Oracle recommends that you cancel the upgrade by clicking No on the Examination Failure dialog box. Click View Log to see what caused the error and refer to Troubleshooting Your Upgrade for information on resolving common upgrade errors.

    Note:

    • If you resolve any issues detected during the examine phase without proceeding with the upgrade, you can start the Upgrade Assistant again without restoring from backup. However, if you proceed by clicking Yes on the Examination Failure dialog box, you need to restore your pre-upgrade environment from backup before starting the Upgrade Assistant again.

    • Canceling the examination process has no effect on the schemas or configuration data; the only consequence is that the information the Upgrade Assistant has collected must be collected again in a future upgrade session.

  8. On the Upgrade Summary screen, review the summary of the options you have selected by expanding the tree.
    Review the Source Version and the Target Version to make sure that both the versions are correct before proceeding with the upgrade.
    The response file collects and stores all the information that you have entered through the Upgrade Assistant's graphical user interface , and enables you to perform a silent upgrade at a later time. The silent upgrade performs exactly the same function that the Upgrade Assistant wizard performs, but you do not have to manually enter the data again. If you want to save these options to a response file, click Save and provide the location and name of the response file.
    Click Upgrade to start the upgrade process.
  9. The Upgrade Progress screen shows the status of the upgrade process and the projected Target Version of the component after a successful upgrade. Click Next.

    Caution:

    Allow the Upgrade Assistant enough time to perform the upgrade. Do not cancel the upgrade operation unless absolutely necessary. Doing so may result in an unstable environment.
    If any components are not upgraded successfully, refer to the Upgrade Assistant log files for more information.
  10. On the End of Upgrade, click Finish to complete the upgrade and dismiss the wizard.

5.4 Upgrading the 11g Domain using the Re-Configuration Wizard

You need to upgrade the 11g Oracle HTTP Server domain using the 12c Re-Configuration Wizard.

To upgrade the 11g domain, follow the procedure documented in Using the Reconfiguration Wizard to Upgrade Your 12c Domain.:
After reconfiguring the 11g domain, go to the Node Manager screen and select Node Manager type as Per Domain Default Location, Node Manager Configuration as Create New Configuration, and provide a username and password for the new Node Manager Credentials.

5.5 Upgrading the Component Configuration

If you are running the Upgrade Assistant from an Oracle home that contains managed domain components, then the WebLogic Component Configuration upgrade option is available.

To upgrade the component configurations for Oracle HTTP Server:
  1. Run the Upgrade Assistant from the 12.2.1 Oracle home by entering the following command:
    On UNIX operating system:
    12c_Oracle_Home/oracle_common/upgrade/bin/.ua
    On Windows operating system:
    12c_Oracle_Home\oracle_common\upgrade\bin\ua.bat
  2. The Welcome screen provides an overview of the Upgrade Assistant and some information about important pre-upgrade tasks. Click Next.
    For more information about using the Upgrade Assistant, see Upgrading with the Upgrade Assistant or click Help on the Upgrade Assistant screen.
  3. On the WebLogic Components screen, select the WebLogic Component Configurations option to upgrade component configurations for a managed WebLogic Server domain. Enter the connection details required to connect to the WebLogic Administration Server that is managing the domain and click Next.
  4. The Component List screen provides a list of components that are included in the WebLogic domain's component configuration upgrade. The name of the domain is provided along with the list of components located within the domain.
    Review the list to verify that the required components are displayed. If you do not see the components you want to upgrade, you may have selected the wrong domain. Click Back to go to the previous screen and specify a different domain.
  5. On the Prerequisites screen, acknowledge that the prerequisites have been met by checking all the three boxes. Click Next.

    WARNING:

    The Upgrade Assistant does not verify whether the prerequisites have been met.
  6. The Examine screen displays the status of the Upgrade Assistant as it examines each component, verifying that the component is ready for upgrade. If the status is “succeeded”, click Upgrade.
    If the examine phase fails, Oracle recommends that you cancel the upgrade by clicking No on the Examination Failure dialog box. Click View Log to see what caused the error and refer to Troubleshooting Your Upgrade for information on resolving common upgrade errors.

    Note:

    • If you resolve any issues detected during the examine phase without proceeding with the upgrade, you can start the Upgrade Assistant again without restoring from backup. However, if you proceed by clicking Yes on the Examination Failure dialog box, you need to restore your pre-upgrade environment from backup before starting the Upgrade Assistant again.

    • Canceling the examination process has no effect on the schemas or configuration data; the only consequence is that the information the Upgrade Assistant has collected must be collected again in a future upgrade session.

  7. On the Upgrade Summary screen, review the summary of the options you have selected by expanding the tree.
    Review the Source Version and the Target Version to make sure that both the versions are correct before proceeding with the upgrade.
    The response file collects and stores all the information that you have entered through the Upgrade Assistant's graphical user interface , and enables you to perform a silent upgrade at a later time. The silent upgrade performs exactly the same function that the Upgrade Assistant wizard performs, but you do not have to manually enter the data again. If you want to save these options to a response file, click Save and provide the location and name of the response file.
    Click Upgrade to start the upgrade process.
  8. The Upgrade Progress screen shows the status of the upgrade process and the projected Target Version of the component after a successful upgrade. Click Next.

    Caution:

    Allow the Upgrade Assistant enough time to perform the upgrade. Do not cancel the upgrade operation unless absolutely necessary. Doing so may result in an unstable environment.
    If any components are not upgraded successfully, refer to the Upgrade Assistant log files for more information.
  9. On the End of Upgrade, click Finish to complete the upgrade and dismiss the wizard.

5.6 Post-Upgrade Tasks

The post-upgrade tasks include starting the Node Manager, starting the Administration Server, starting the Oracle HTTP Server, and verifying whether the upgrade from 11g to 12c is successful.

5.6.1 Starting the Node Manager

Server instances in a WebLogic Server production environment are often distributed across multiple domains, machines, and geographic locations. Node Manager is a WebLogic Server utility that enables you to start, shut down, and restart Administration Server and Managed Server instances from a remote location.

On Windows operating systems, it is recommended that you configure Node Manager to run as a startup service. This allows Node Manager to start up automatically each time the system is restarted. For more information, see Running Node Manager as a Startup Service in Administering Node Manager for Oracle WebLogic Server.

Note:

On UNIX platform, do not run Node Manager as the root user.
To start the Node Manager:
  1. Change directory to the following:
    Oracle_home/wlserver/server/bin/
  2. On the UNIX operating system, start the Node Manager by running the following command:
    nohup ./startNodeManager.sh > nm.out&
    Where, nohup and nm.out are sample output files.
    On the Windows operating system, start the Node Manager by running the following command:
    startNodeManager.cmd
    You can also use a shortcut on the Start menu to start the Node Manager (Tools > Node Manager).

5.6.2 Starting the Administration Server

One instance of WebLogic Server in each domain acts as an Administration Server. The Administration Server provides a central point for managing a WebLogic Server domain. All other WebLogic Server instances in a domain are called Managed Servers. In a domain with only a single WebLogic Server instance, that server functions both as Administration Server and Managed Server.

In a development environment, it is usually sufficient to start an Administration Server and deploy your applications directly onto the Administration Server. However, in a production environment, it is recommended that you create Managed Servers to run your applications.

To start an Administration Server:
  1. Change directory to the following:
    Oracle_Home\user_projects\domains\DOMAIN_NAME
    Where, DOMAIN_NAME is the name of the directory in which you located the domain.
  2. On the Windows operating system, start the Administration Server by running the following command:
    startWebLogic.cmd
    On the Windows operating system, the Configuration Wizard creates a shortcut on the Start menu to start the Administration Server that you created.
    On the UNIX operating system, start the Administration Server by running the following command:
    ./startWebLogic.sh

    Note:

    If the server prompts you to enter a username and password, enter the name of a WebLogic Server user who has permission to start servers.

5.6.3 Starting the Oracle HTTP Server

You can use Enterprise Manager Fusion Middleware Control or the opmnctl command to start, stop, and restart Oracle HTTP Server.

5.6.3.1 Starting the Oracle HTTP Server using the Enterprise Manager Fusion Middleware Control

To start an Oracle HTTP Server using the Enterprise Manager Fusion Middleware Control:
  1. Go to the Oracle HTTP Server home page.
  2. From the Oracle HTTP Server menu:
    1. Select Control.
    2. Select Start Up from the Control menu.
    Or
  3. From the Target Navigation tree:
    1. Right-click the Oracle HTTP Server instance you want to start.
    2. Select Control.
    3. Select Start Up from the Control menu.
5.6.3.1.1 Starting the Oracle HTTP Server using opmnctl
To start Oracle HTTP Server components in an Oracle instance using opmnctl:
  1. Change directory to the following:
    ORACLE_INSTANCE/bin
  2. Run the following command to start all Oracle HTTP Server components in an Oracle instance
    opmnctl startproc process-type=OHS
5.6.3.1.2 Determining the Status of Oracle HTTP Server Components using opmnctl
To determine the status of the Oracle HTTP Server components:
  1. Change directory to the following:
    ORACLE_INSTANCE/bin
  2. Enter the following command:
    opmnctl status
    Following is a sample output:
    Processes in Instance: instance1
    ---------------------------------+--------------------+---------+---------
    ias-component                    | process-type       |     pid | status  
    ---------------------------------+--------------------+---------+---------
    webcache1                        | WebCache-admin     |   19556 | Alive   
    webcache1                        | WebCache           |   19555 | Alive   
    ohs1                             | OHS                |    7249 | Alive 
    

5.6.4 Verifying that Oracle HTTP Server Installation is Successful

If you can log in to the Administration Console and the Enterprise Manager Fusion Middleware Control, you have installed Oracle HTTP Server successfully.

To verify whether the software patch is installed successfully:
  1. Log in to the following URL:
    http://MachineName.us.oracle.com:7777
  2. To access Enterprise Manager Fusion Middleware Control:
    http://MachineName.us.oracle.com:7001/em