Skip Headers
Oracle® Smart Update Applying Patches to Oracle WebLogic Server
Release 3.3.0

Part Number E14143-12
Go to Documentation Home
Go to Table of Contents
Go to Feedback page
Contact Us

Go to previous page
Go to next page
View PDF

A Smart Update Quick Reference

This section guides you through the steps to complete three basic tasks and describes the icons and labels used in the graphical interface:

How to Generate a Maintenance Snapshot

Smart Update provides a mechanism for capturing information about your Oracle product installation that you can send to My Oracle Support when reporting a problem. This information is called a maintenance snapshot. This section guides you through the steps of creating a maintenance snapshot.

To generate a maintenance snapshot, complete the following steps.

  1. Launch Smart Update:


    From the Start menu, choose Start > Programs > Oracle WebLogic > Smart Update.


    1. Change to the MW_HOME/utils/bsu directory.

    2. Enter the command.


      You do not need to log in to My Oracle Support to generate a maintenance snapshot.

  2. In the Smart Update main window, in the panel labeled Target Installation, select the Oracle product installation with which you are reporting a problem.

  3. Select a patch profile in the Manage Patches tab.

  4. Choose Patches > Patch Profiles > Save Snapshot.

  5. In the Save Snapshot dialog box, enter a file name for the maintenance snapshot, and click OK.

    The maintenance snapshot is a simple ASCII text file.

  6. Send the maintenance snapshot file to My Oracle Support. Use of e-mail is preferred. But you can print the file and send it through postal mail, if appropriate.

How to Create a Custom Patch Profile

If you want to limit the scope of a class or library path patch to a specific domain or server, you need to perform the following steps.


Custom profiles have been deprecated as of Smart Update 3.3.0. Oracle recommends that you no longer use custom profiles. Custom profiles increase the complexity of installing installation-wide WebLogic Server patches.

  1. Create a custom patch profile, and apply the patch to it.

  2. Modify the start script for the corresponding domain or server to add a reference to the custom patch profile.

This section provides a quick-reference aid that shows how to complete these steps, and uses the example of a test engineer who has downloaded a patch and plans to test the patch in a QA domain before incorporating the patch into a production domain.

To create a custom patch profile and point a domain or server at the patches applied to the profile, complete the following steps:

  1. Download the patch from My Oracle Support into the patch download directory.

  2. Start Smart Update, log in to My Oracle Support, and select the Oracle product in the Target Installation panel.

  3. Create a custom patch profile to which the patch is to be applied, using the following steps:

    1. Choose Patches > Patch Profiles > New.

    2. Assign a name for the custom patch profile, and specify the initial set of patches you want in the custom patch profile by cloning the contents of another existing patch profile that exists for the target installation.

      Example: The test engineer wants to run the QA domain at the same patch maintenance level as the production system, but with the addition of the patch downloaded in step 1. Therefore, the engineer creates the custom patch profile, QADomainProfile, and clones the contents of the default patch profile to it. Later, the engineer will apply the downloaded patch to this custom patch profile.

    Note that any existing installation-wide patches that have been applied to the target installation are included in the custom patch profile by default.

    After you click Create, the custom patch profile is displayed in a tab adjacent to the tab for the default patch profile.

  4. Apply patches to, or remove patches from, the custom patch profile, as appropriate.

    Example: The test engineer now applies the patch that was downloaded in step 1 to the QADomainProfile custom patch profile.

  5. Before running the Start Script Editor, make backup copies of any scripts you plan to modify.


    Start Script Editor is not applicable for OSGi-based products such as Oracle Enterprise Repository.

  6. Choose Patches > Patch Profiles to open the Start Script Editor. You can modify the appropriate start script so that it references patches in the custom patch profile.

  7. In the Start Script Editor dialog box, choose the custom patch profile you created, the product for which you want to edit the script, and then click Open.

  8. Open the appropriate start script so that the domain, cluster, or server can run with the patches in the custom patch profile. In the following table, domain_home represents the path to the domain root directory.

    To point the following at patches applied to the custom patch profile Open the following script






    All WebLogic Server instances in the domain





    All Managed Servers





    One server instance





    Example: Because the test engineer needs to point the QA domain to the custom patch profile, the engineer opens the setDomainEnv.cmd script, which sets the environment for all servers in that domain only. Unless you need to limit the scope of a patch to a specific server instance, we generally recommend that you choose the setDomainEnv for pointing to custom patch profiles.

  9. In the appropriate start script, create the environment variables that reference the classes, extension directories, or library path patches in the custom patch profile to which you want the script to point.

    Patch classpath and other environment variables are set for each product individually. You must set the appropriate variables for each product similar to the variables set in WL_HOME\common\bin\setPatchEnv.cmd (Windows) or WL_HOME/common/bin/ (UNIX). These environment variables are listed in the following table.

    To reference the following patch Define the following environment variable so it points to the patches in the custom patch profile

    Patch JAR containing classes to be interested into the WebLogic system classpath

    Environment variables to define:



    if "%PATCH_CLASSPATH%" == "" 

    Patch JAR containing classes to be inserted into the classpath of an application deployed on WebLogic Server

    Environment variables to define:




    Native file to be inserted into the system library path (UNIX)

    Environment variables to define:




    Native file to be inserted into the system library path (Windows)

    Environment variables to define:



    set PATCH_PATH=

    The figure example shows the snippet used to change the setDomainEnv.cmd script.

    Description of scriptsnippetnew.gif follows
    Description of the illustration scriptsnippetnew.gif

  10. Ensure that any patch path variables you add to a start script precedes an invocation to one of the other environment scripts. For example, if you add a patch path variable definition to the setDomainEnv script, ensure that it is placed before the invocation of the commEnv script.

    If you use custom scripts in your environment that do not invoke the WL_HOME\common\bin\commEnv script, or any of the other default scripts produced by the Configuration Wizard, you also need to modify the statements in your scripts that set the class and library paths for your environment so that the environment variables you have defined are properly inserted into those statements.

    For example, to set the WebLogic system classpath so that patch JARs in a custom patch profile supersede same-named classes appearing later in the classpath, add the PATCH_CLASSPATH variable as follows, shown in bold:

  11. Click Save.

    For the patch to go into effect, each server instance that uses the patch must be restarted.

  12. If you subsequently decide to change the scope of a patch so that a different domain or server uses the patch, or so that all servers and domains that run on an installation use the patch, update the appropriate patch profile.

    Example: When the test engineer approves the patch that has been tested in the QA domain, the patch can then be promoted for use in the production domains. To promote the patch, the test engineer does the following:

    1. Runs Smart Update, and selects the product installation used by the production domain.

    2. In the Manage Patches tab, selects the default patch profile, and applies the patch.

    3. Restarts the servers in the production domain.

Smart Update GUI Glossary

Table A-1 provides a key to the graphical symbols and labels used throughout the Smart Update graphical interface.


Starting from the Oracle Fusion Middleware 11gR1 release, MW_HOME is the new term for BEA_HOME.

Table A-1 Smart Update Graphical Interface

Screen or Panel Symbol Description

Target Installation

This icon represents a BEA Home directory

Represents a Middleware home directory, which may contain multiple Oracle products. When you create a maintenance snapshot, you must select the appropriate Middleware home directory.

Note that the Smart Update graphical interface can display only those Middleware home directories for products that were installed by the current system. Middleware home directories on remote-mounted disks are visible only if installed from the current system.

Target Installation

This icon represents a BEA product home directory

Represents a product home directory. For example, WebLogic Platform, or Oracle Service Bus.

Target Installation

This icon represents a specific installation of a product

Represents a specific installation of a product, called the target installation. For example, WebLogic Server Release 9.1.

A specific installation must be selected to do the following:

  • View or download a publicly available patch or patch set

  • Apply or remove a patch or patch set

  • Create or remove a custom patch profile

Downloaded Patches panel

Icon that enables you to download patches

Displays the contents of the patch download directory. Only patches not yet applied to a given profile are displayed.

Downloaded Patches panel

Click this icon to apply selected patches

When you click a green arrow, it applies the corresponding patch to the current patch profile.

Manage Patches tab

Surrounding text describes icon-managepatches.gif.

Displays the contents of each patch profile, which is the set of patches applied to the currently selected target installation. You apply and remove patches from the Manage Patches tab.

Note: To apply a patch and add it to the current profile, click Apply next to that patch or patch set in the Downloaded Patches panel.

Manage Patches tab

Surrounding text describes icon-defaultprofile.gif.

Displays the set of patches scoped to the entire installation in a given Middleware home directory, which corresponds to the currently selected target installation.

If you have created additional patch profiles, called custom patch profiles, each has its own tab adjacent to the Default Profile tab.

Manage Patches tab

Surrounding text describes icon-removepatch.gif.

When you click the red arrow, the corresponding patch is removed from the target installation and from the profile. (Removed patches are listed in the Downloaded Patches panel and can subsequently be applied again if needed.

Patch Application Validation dialog box

Surrounding text describes icon-confdb.gif.

Displays conflicts that have occurred when applying a patch, identifying the patches that conflict with the one, or ones, being applied. The conflict conditions that can occur when applying a patch are described below.

Patch Application Validation dialog box

Surrounding text describes icon-conflictprereq.gif.

The selected patch cannot be applied until one or more other patches are first applied. To resolve this conflict:

  1. Note the identifiers of the prerequisite patches.

  2. Click Cancel, download and apply the prerequisite patches, then apply the selected patch

Patch Application Validation dialog box

Surrounding text describes icon-conflictseq.gif.

The selected patch requires that you first remove one or more other patches that have been applied. To resolve this conflict:

  1. Note the identifiers of the patches that must be removed.

  2. Click Cancel and remove the identified patches.

  3. Download and apply the selected patch.

  4. Re-apply the patches removed in step 2.

Patch Application Validation dialog box

Surrounding text describes icon-conflictexc.gif.

The selected patch cannot coexist with one or more other patches that have been applied To resolve this conflict, you must choose which patch you want applied to the target installation.