Patch Management Using Patching Utility
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.View Patching Tool Version
You can view the build version along with the Oracle license and copyright information.
Configure Initial Setup
You can configure the region from where to download the patches and create the configuration file in the specified Middleware Home.
Note:
You must set up the configuration before you run the patching tool on any provisioned VM.List Patches
You can list all the available patches in the patch catalog. 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
You can list the pending patches in the patching tool repository that need to be applied on a middleware home.
Note:
Ensure that you have upgraded the patching tool before using thepatch utils
to list pending patches.
See Upgrade Patching Tool.
View Patch Details
You can 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
You can download the patches to the specified location.
You can download the patches if NAT gateway is configured. However, if you provision an instance in a private subnet without a bastion (without NAT gateway), you must create a temporary bastion instance in the Oracle Cloud Infrastructure console, and then use the patching tool to download the patches on the bastion host. The patches are encrypted and can only be applied on the WebLogic Server VMs using the patching utility tool.
Apply Patches
You can apply the latest patches on a given 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.
In case of private subnets that do not have network access to outside of
Oracle Cloud, you must download the patching zip file on the bastion host, and copy
the zip file that has the tool and the VM key to the Weblogic Server VM in the
private subnet. After download of patches is complete, you can run
patch-utils apply -f <downloaded zip path>
to
apply the patch.
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.
Roll Back Patches
You can roll back the latest applied patches.
The patch-utils rollback -L
command rolls back all
patches that are applied using the patch-utils apply -L
command.
Note:
Ensure that you have upgraded the patching tool before you roll back the latest patches. See Upgrade Patching Tool.