Patch Management Using the Patching Utility Tool
Use the patching utility tool in Oracle WebLogic Server for OCI to list, download, apply, and roll back patches. You can also view the patching tool version and upgrade the patching tool.
Note:
Using this utility, you cannot apply the patch for a bastion instance.Note:
If you want to use some of the new features, which were added to the patching utility tool in December 15, 2022, for your existing Oracle WebLogic Server for OCI instances (created before December 15, 2022), then ensure that you upgrade the patching tool. See Upgrade Patching Tool.View Patching Tool Version
Use the patching tool to view the build version along with the Oracle license and copyright information.
Configure Initial Setup
Use the patching tool to configure the region from where to download the patches and create the configuration file in the specified Middleware Home.
The patches are hosted on the object storage locations in the regions supported by the patching tool. Currently, the regions: us-phoenix-1, us-ashburn-1, eu-frankfurt-1, ap-mumbai-1, ap-tokyo-1, and sa-saopaulo-1 are supported.
Ensure that you establish a connection from the WebLogic compute instance where you
are running patch-utils
to the object storage endpoints for the
regions that are listed in the following table.
Table 8-3 Object Storage Endpoints for the Supported Regions
Region | Object Storage Endpoint |
---|---|
us-phoenix-1 |
|
us-ashburn-1 |
|
eu-frankfurt-1 |
|
ap-mumbai-1 |
|
ap-tokyo-1 |
|
sa-saopaulo-1 |
|
Note:
You must configure a NAT gateway to use the patching tool functionality if:- Your WebLogic compute instance is deployed in a region different from those listed in the Table 8-3.
- Your WebLogic compute instance is deployed in a region different than the region where you set up the patching tool configuration.
List Patches
Use the patching tool to list all the available patches in the object storage. You can also list current patches and latest patches that are available in the patching tool repository.
Note:
You must set up the configuration file before running thepatch-utils list
command. See Configure Initial Setup.
List Pending Patches
Use the patching tool to list the pending patches in the patching tool repository that need to be applied on a Middleware Home.
View Patch Details
Use the patching tool to view information of the specified patch.
The WebLogic Server patches include the readme
file
that provides the patch details and other useful information about patching.
Download Patches
Use the patching tool to download the patches to the
/tmp
directory.
If your WebLogic compute instance does not have connectivity to the object storage endpoints for the regions that you configured in the initial setup, you must download the patches on the bastion host that you created with Oracle WebLogic Server for OCI and then copy the zip files to the WebLogic VM.
For the list of regions, see Configure Initial Setup.
Apply Patches
Use the patching tool to apply the latest patches on a given Middleware Home.
The patch utils apply
command downloads the patches
from the object storage and then applies the patches to the Middleware Home. The
patches that are already installed in the Middleware Home are not applied. You can
apply multiple patches by specifying the patch numbers as comma separated lists. The
patches are applied in the order they are specified.
If your WebLogic compute instance does not have connectivity to the
object storage endpoints for the regions that you configured in the initial set up,
you must first download the patches on the bastion host that you created with Oracle WebLogic Server
for OCI and then copy the zip files to the WebLogic VM. After download of patches is
complete, run patch-utils apply -f <downloaded zip
path>
to apply the patch.
For the list of regions, see Configure Initial Setup.
When you run the apply command, if you receive an error that the Weblogic servers are running on the host, you must stop the servers. See. Start and Stop a Domain.