4 Upgrading Oracle Service Bus (without Oracle SOA Suite)
Note:
If Oracle Service Bus is part of your existing 12c domain, and you will be upgrading Oracle Service Bus as part of your Oracle SOA Suite upgrade to 14c (14.1.2.0.0), follow the standard upgrade process described in Upgrading SOA Suite and Business Process Management.Understanding the Oracle Service Bus Standalone Upgrade
Follow this process flow to upgrade an Oracle Service Bus 12c (12.2.1.4.0) deployment that does not include Oracle SOA Suite.
Oracle Service Bus (OSB) can be upgraded to 14c (14.1.2.0.0) with or without Oracle SOA Suite and Business Process Management. The upgrade steps in this topic describe how to upgrade Oracle Service Bus without SOA.
If Oracle Service Bus is part of your existing SOA 12c domain, and you will be upgrading Oracle Service Bus as part of your Oracle SOA Suite upgrade to 14c (14.1.2.0.0), follow the standard upgrade process described in Upgrading SOA Suite and Business Process Management.
Note:
Even though your domain does not include SOA, you will still have to upgrade the _SOAINFRA
schema to upgrade Oracle Service Bus metadata. Oracle Service Bus does not have a separate schema.
Task | Description |
---|---|
Required Export services, projects and resources when upgrading Oracle Service Bus |
You must export services, projects and resources into a configuration JAR file before you can upgrade to Oracle Service Bus 14c (14.1.2.0.0). After the upgrade, you will import the JAR file to the new environment. |
Required Delete all services, projects and resources from the existing environment. |
After the export, you must delete all user-created services, projects and resources before the upgrade. |
Required Install the 14c (14.1.2.0.0) Oracle Fusion Middleware Infrastructure distribution into a new Oracle home. |
You must install the 14c (14.1.2.0.0) Infrastructure (which includes Oracle WebLogic Server and JRF components). |
Required Install Oracle Service Bus into a new Oracle home. |
Obtain the Oracle Service Bus distribution and install the content to a new Oracle home. |
Required Stop all servers and processes. |
You must stop all servers and processes before starting the upgrade. |
Required Run the Upgrade Assistant to upgrade the required schemas. |
The |
Required
Run the Reconfiguration Wizard to reconfigure the existing domain. |
You will continue to use the existing domain after the upgrade, so it must be reconfigured to work with the new components. |
Required Run the Upgrade Assistant to configure the component configurations. |
You will run the Upgrade Assistant a second time to update the component configuration to work in the new domain. |
Required Perform all post-upgrade tasks. |
Perform the standard post-upgrade tasks, as well as any post-upgrade OSB-specific tasks, that apply to your deployment. |
Upgrade Limitations for Oracle Service Bus
If your Oracle Service Bus topology is configured with more than one component within a single domain, then you will not be able to upgrade to 14c (14.1.2.0.0)
Upgrading Multiple Components that use UMS in a Single OSB Domain (Not Supported)
Certain Fusion Middleware components such as Oracle SOA, Oracle Service Bus (OSB) and Business Activity Monitoring (BAM) have a dependency on User Messaging Service (UMS). If you configure more than one of these components within a single 14c (14.1.2.0.0) domain, then each of these components must run within its own cluster — even if there is only one server that runs that component.
In order to upgrade these components, you must create a separate cluster for each component during the domain reconfiguration as described in Clusters.
The supported upgrade topology for these components is described in Upgrading a Clustered Topology.
Performing Pre-Upgrade Tasks for Oracle Service Bus (OSB)
If you are upgrading Oracle Service Bus, you must perform the following tasks before you begin the upgrade. Review your own use case scenarios and existing deployment to determine if the following tasks apply to your environment.
Exporting Services, Projects and Resources when Upgrading Oracle Service Bus
You must export your existing services, projects and resources into a configuration JAR file before you can upgrade to Oracle Service Bus 14c (14.1.2.0.0). After the upgrade, you will import the JAR file to the new environment.
Note:
While WebLogic Server allows forward slashes in JNDI names, such as "myqueues/myqueue
", JNDI names with forward slashes interfere with the URI format required by Service Bus, and you cannot use those names. To work around this issue, define a JMS foreign server and reference that foreign server in the URI.
See Configure foreign servers in the Oracle WebLogic Server Administration Console Online Help.
Note that you can manually export resources and services from older, supported releases. See Migrating Oracle Service Bus Resources from Previous Releases.
For more information, see Importing and Exporting Resources and Configurations in Developing Services with Oracle Service Bus.
Deleting All Services, Projects and Resources
After the export, you must delete all user-created services, projects and resources before the upgrade.
For information on using the Oracle Service Bus Console to delete resources, see How to Delete Projects, Folders, and Resources.
For information on using JDeveloper to delete resources, see How to Delete a Project or Resource.
Migrating Oracle Service Bus Resources from Previous Releases
You can manually export resources and services and use them with Oracle Service Bus 14c (14.1.2.0.0):
For more information, see Importing and Exporting Resources and Configurations in Developing Services with Oracle Service Bus.
Installing Oracle Service Bus
Use the Oracle Universal Installer to install the required product distribution on the target system. You can install and upgrade Oracle Service Bus without Oracle SOA Suite and Business Process Management, but you must still install the Oracle Fusion Middleware Infrastructure 14c (14.1.2.0.0) before upgrading Oracle Service Bus.
Note:
When Infrastructure is required for the upgrade, you must install the Oracle Fusion Middleware Infrastructure distribution first before you install other Fusion Middleware products. If your JDK is not supported, or you do not have a JDK installed, you must download the required Java SE JDK before you begin-
Oracle Service Bus requires the Oracle Fusion Middleware Infrastructure (Oracle WebLogic Server and JRF).
- If you want to use Oracle Web Services Manager policies with Oracle Service Bus, then you must select the Oracle Web Services Manager extension template after selecting one of the Oracle Service Bus domain templates when configuring the Oracle WebLogic domain.
Stopping Servers and Processes
Before you run the Upgrade Assistant to upgrade your schemas and configurations, you must shut down all of the pre-upgrade 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, 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 the existing, pre-upgrade 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 Remote Console. See Starting and Stopping Administration and Managed Servers and Node Manager.
As of release 14c (14.1.2.0.0), the WebLogic Server Administration Console has been removed. For comparable functionality, you should use the WebLogic Remote Console. For more information, see Oracle WebLogic Remote Console.
Note:
It is important that you stop the following servers in the correct order.
Step 1: Stop System Components
To stop system components, such as Oracle HTTP Server, use the stopComponent
script:
-
(UNIX)
EXISTING_DOMAIN_HOME/bin/stopComponent.sh component_name
-
(Windows)
EXISTING_DOMAIN_HOME\bin\stopComponent.cmd component_name
You can stop system components in any order.
Step 2: Stop Any Managed Servers
To stop a WebLogic Server Managed Server, use the stopManagedWebLogic
script:
-
(UNIX)
EXISTING_DOMAIN_HOME/bin/stopManagedWebLogic.sh managed_server_name admin_url
-
(Windows)
EXISTING_DOMAIN_HOME\bin\stopManagedWebLogic.cmd managed_server_name admin_url
When prompted, enter your user name and password.
Stop SOA servers and processes in this order:
-
Business Activity Monitoring (BAM) Managed Server
-
Oracle Service Bus (OSB) Managed Server
-
Service-Oriented Architecture (SOA) Managed Server
-
Oracle Web Services Manager (OWSM) Managed Server
Step 3: Stop the Administration Server
To stop the Administration Server, use the stopWebLogic
script:
-
(UNIX)
EXISTING_DOMAIN_HOME/bin/stopWebLogic.sh
-
(Windows)
EXISTING_DOMAIN_HOME\bin\stopWebLogic.cmd
When prompted, enter your user name, password, and the URL of the Administration Server.
Step 4: Stop Node Manager
To stop Node Manager, close the command shell in which it is running.
Alternatively, after setting the nodemanager.properties
attribute QuitEnabled
to true
(the default is false
), you can use WLST to connect to Node Manager and shut it down. See stopNodeManager in WLST Command Reference for Oracle WebLogic Server.
Upgrading Schemas with the Upgrade Assistant
Note:
For Service Bus this step is only required if there are schemas in the domain that must be upgraded. If you just created the required schemas using the RCU, and there are no other schemas in the domain, you can skip this step and move to the Reconfiguration Wizard step.
Although there is no Oracle Service Bus schema, the database schema data for Oracle Service Bus is incorporated in the SOAINFRA schema. Therefore, to upgrade Oracle Service Bus, you must upgrade the SOAINFRA schema — if it exists.
Starting the Upgrade Assistant
Run the Upgrade Assistant to upgrade product schemas, domain component configurations, or standalone system components to 14c (14.1.2.0.0).
Note:
Before you start the Upgrade Assistant, make sure that the JVM character encoding is set to UTF-8 for the platform on which the Upgrade Assistant is running. If the character encoding is not set to UTF-8, then you will not be able to download files containing Unicode characters in their names. This can cause the upgrade to fail. To set the character encoding, run the following:
UNIX operating systems:
export UA_PROPERTIES="-Dfile.encoding=UTF-8 ${UA_PROPERTIES}"
Windows operating systems:
set UA_PROPERTIES=-Dfile.encoding=UTF-8 %UA_PROPERTIES%
- Go to the
oracle_common/upgrade/bin
directory:- (UNIX)
ORACLE_HOME/oracle_common/upgrade/bin
- (Windows)
ORACLE_HOME\oracle_common\upgrade\bin
- (UNIX)
- 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:
Upgrade Assistant Parameters
When you start the Upgrade Assistant from the command line, you can specify additional parameters.
Table 4-1 Upgrade Assistant Command-Line Parameters
Parameter | Required or Optional | Description |
---|---|---|
|
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 |
|
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. |
|
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 Upgrade Assistant in silent mode (without displaying Upgrade Assistant screens). |
|
Optional |
Performs the examine phase but does not perform an actual upgrade. Do not specify this parameter if you have specified the |
|
Optional |
Sets the logging level, specifying one of the following attributes:
The default logging level is Consider setting the |
|
Optional |
Sets the default location of upgrade log files and temporary files. You must specify an existing, writable directory where the Upgrade Assistant creates log files and temporary files. The default locations are: (UNIX)
(Windows)
|
|
Optional |
Displays all of the command-line options. |
Upgrading SOA Schemas Using the Upgrade Assistant
Navigate through the screens in the Upgrade Assistant to upgrade the product schemas.
About Reconfiguring the Domain
Run the Reconfiguration Wizard to reconfigure your domain component configurations to 14c (14.1.2.0.0).
Note:
If the source is a clustered environment, run the Reconfiguration Wizard on the primary node only.
When you reconfigure a WebLogic Server domain, the following items are automatically updated, depending on the applications in the domain:
-
WebLogic Server core infrastructure
-
Domain version
Note:
Before you begin the domain reconfiguration, note the following limitations:
-
The Reconfiguration Wizard does not update any of your own applications that are included in the domain.
-
Transforming a non-dynamic cluster domain to a dynamic cluster domain during the upgrade process is not supported.
The dynamic cluster feature is available when running the Reconfiguration Wizard, but Oracle only supports upgrading a non-dynamic cluster upgrade and then adding dynamic clusters. You cannot add dynamic cluster during the upgrade process.
-
If the installation that you’re upgrading does not use Oracle Access Management (OAM), then you must edit two files to prevent the Reconfiguration Wizard from attempting to update the nonexistent OAM Infrastructure schema, which causes the upgrade to fail.
Comment out the lines in your
$DOMAIN/init-info/domain-info.xml
that are similar to this example:<!--extention-template-ref name="Oracle Identity Navigator" version="14.1.2.0.0" location="/u01/app/oracle/product/fmw/iam111130/common/templates/applications/yourcomany.oinav_14.1.2.0.0_template.jar" symbol=""/--> <!--install-comp-ref name="oracle.idm.oinav" version="14.1.2.0.0" symbol="yourcompany.idm.oinav_14.1.2.0.0_iam141200_ORACLE_HOME" product_home="/u01/app/oracle/product/fmw/iam141200"/-->
and similarly comment out the lines in
$DOMAIN/config/config.xml
that are similar to this example:<!--app-deployment> <name>oinav#14.1.2.0.0</name> <target>AdminServer</target> <module-type>ear</module-type> <source-path>/u01/app/oracle/product/fmw/iam141200/oinav/modules/oinav.ear_14.1.2.0.0/oinav.ear</source-path> <deployment-order>500</deployment-order> <security-dd-model>DDOnly</security-dd-model> <staging-mode>nostage</staging-mode> </app-deployment-->
-
The domain version number in the
config.xml
file for the domain is updated to the Administration Server's installed WebLogic Server version. -
Reconfiguration templates for all installed Oracle products are automatically selected and applied to the domain. These templates define any reconfiguration tasks that are required to make the WebLogic domain compatible with the current WebLogic Server version.
-
Start scripts are updated.
If you want to preserve your modified start scripts, be sure to back them up before starting the Reconfiguration Wizard.
Note:
When the domain reconfiguration process starts, you can’t undo the changes that it makes. Before running the Reconfiguration Wizard, ensure that you have backed up the domain as covered in the pre-upgrade checklist. If an error or other interruption occurs while running the Reconfiguration Wizard, you must restore the domain by copying the files and directories from the backup location to the original domain directory. This is the only way to ensure that the domain has been returned to its original state before reconfiguration.Backing Up the Domain
Before running the Reconfiguration Wizard, create a backup copy of the domain directory.
- Create a backup of the domain directory.
- Before updating the domain on each remote Managed Server, create a backup copy of the domain directory on each remote machine.
- Verify that the backed up versions of the domain are complete.
Starting the Reconfiguration Wizard
Note:
Shut down the administration server and all collocated managed servers before starting the reconfiguration process. See Stopping Servers and Processes.To start the Reconfiguration Wizard in graphical mode:
Reconfiguring the SOA Domain with the Reconfiguration Wizard
You must first reconfigure your existing domain using the Reconfiguration Wizard before running the Upgrade Assistant to configure domain component configurations.
Note:
If the source is a clustered environment, run the Reconfiguration Wizard on the primary node only. Use the pack/unpack utility to apply the changes to other cluster members in the domain.Upgrading Domain Component Configurations
After reconfiguring the domain, use the Upgrade Assistant again to upgrade the domain component configurations inside the domain to match the updated domain configuration.
Starting the Upgrade Assistant
Run the Upgrade Assistant to upgrade product schemas, domain component configurations, or standalone system components to 14c (14.1.2.0.0).
Note:
Before you start the Upgrade Assistant, make sure that the JVM character encoding is set to UTF-8 for the platform on which the Upgrade Assistant is running. If the character encoding is not set to UTF-8, then you will not be able to download files containing Unicode characters in their names. This can cause the upgrade to fail. To set the character encoding, run the following:
UNIX operating systems:
export UA_PROPERTIES="-Dfile.encoding=UTF-8 ${UA_PROPERTIES}"
Windows operating systems:
set UA_PROPERTIES=-Dfile.encoding=UTF-8 %UA_PROPERTIES%
- Go to the
oracle_common/upgrade/bin
directory:- (UNIX)
ORACLE_HOME/oracle_common/upgrade/bin
- (Windows)
ORACLE_HOME\oracle_common\upgrade\bin
- (UNIX)
- 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:
Upgrade Assistant Parameters
When you start the Upgrade Assistant from the command line, you can specify additional parameters.
Table 4-2 Upgrade Assistant Command-Line Parameters
Parameter | Required or Optional | Description |
---|---|---|
|
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 |
|
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. |
|
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 Upgrade Assistant in silent mode (without displaying Upgrade Assistant screens). |
|
Optional |
Performs the examine phase but does not perform an actual upgrade. Do not specify this parameter if you have specified the |
|
Optional |
Sets the logging level, specifying one of the following attributes:
The default logging level is Consider setting the |
|
Optional |
Sets the default location of upgrade log files and temporary files. You must specify an existing, writable directory where the Upgrade Assistant creates log files and temporary files. The default locations are: (UNIX)
(Windows)
|
|
Optional |
Displays all of the command-line options. |
Upgrading Domain Components Using the Upgrade Assistant
Navigate through the screens in the Upgrade Assistant to upgrade component configurations in the WebLogic domain.
After running the Reconfiguration Wizard to reconfigure the WebLogic domain to Oracle Analytics server, you must run the Upgrade Assistant to upgrade the domain component configurations to match the updated domain configuration.
Performing Post Upgrade Tasks for Oracle Service Bus
After a successful upgrade, you may need to perform one or more of the following tasks. Review your own use case scenarios and existing deployment to determine if the following tasks apply to your environment.
Note:
If you experience any post-upgrade issues with Oracle Service Bus, refer to Troubleshooting Oracle Service Bus for a list of common solutions.
Configuring Oracle HTTP Server for the WLS_OSB Managed Servers
To enable Oracle HTTP Server to route to Oracle Service Bus console and Oracle Service Bus service, set the WebLogicCluster parameter to the list of nodes in the cluster.
For more information, see Configuring Oracle HTTP Server for the Oracle Service Bus in the Enterprise Deployment Guide for Oracle SOA Suite.
Importing Domain Configuration Data
After the upgrade you will need to import the domain configuration data that you exported in Exporting Services, Projects and Resources when Upgrading Oracle Service Bus.
Note:
While WebLogic Server allows forward slashes in JNDI names, such as "myqueues/myqueue
", JNDI names with forward slashes interfere with the URI format required by Service Bus, and you cannot use those names. To work around this issue, define a JMS foreign server and reference that foreign server in the URI.
See Configure foreign servers in the Oracle WebLogic Remote Console Online Help.
For more information, see How to Import Resources from a Configuration JAR File in the Console and Executing a Configuration File.
Importing Security Configurations
Use the Oracle WebLogic Remote Console to import the security data that you exported pre-upgrade into the new Oracle Service Bus domain.
For more information, see the "Import data into a security provider" section of the Oracle WebLogic Remote Console Online Help.
Note:
You must import the security information for each security provider separately.
Troubleshooting Oracle Service Bus Upgrade
If you experience post-upgrade issues with Oracle Service Bus, review the following and apply any relevant solutions.
Resolving the HTTP 404 Error After OSB Upgrade with OHS as Cluster Frontend Host
If you configure Oracle HTTP Server (OHS) as a cluster domain frontend host, then you must add the following code to the OHS configuration file (ohs.confg):
<Location /sbconsole> SetHandler weblogic-handler WebLogicCluster [ADMIN_SERVER_HOST]:[ADMIN.SERVER:PORT] </Location> <Location /servicebus> SetHandler weblogic-handler WebLogicCluster [ADMIN_SERVER_HOST]:[ADMIN.SERVER:PORT] </Location>
Where ADMIN.SERVER:PORT
is the machine name, server name and port number used for the OHS.
mymachine.us.mycompany.com:7001
as shown in this sample code example:
<Location /sbconsole> SetHandler weblogic-handler WebLogicCluster mymachine.us.mycompany.com:7001 </Location> <Location /servicebus> SetHandler weblogic-handler WebLogicCluster mymachine.us.mycompany.com:7001 </Location>