Oracle WebLogic Server for OCI provides the patching utility tool to download the patches for the WebLogic Server instances. From release 21.3.3 onwards, you can use the patching utility tool to download patches for custom images that are created from Oracle WebLogic Server for OCI instance.
You can perform the following tasks using the patching utility tool:
Setup Utility
To use the patching tool you need to configure the utility. Follow the steps below after login to Virtual Machine with opc
user to configure the utility.
patch-utils setup
Upgrade Patching Tool
Use the patching tool to upgrade the patching tool to the latest version.
patch-utils upgrade
List Patches
List all patches in the object storage for the applicable WebLogic Server version.
patch-utils list
List all the current patches based on OPatch utility.
patch-utils list -a
List Pending Patches
Use the below command to list the pending patches in the patching tool repository that need to be applied on a Middleware Home.
patch-utils diff
To list the pending patches for a given Middleware Home, use the following command:
patch-utils diff -m <MW_HOME>
Download Patches
Use the patching tool to download the patches to the specified location.
patch-utils download -L -p /tmp/patches
Download patches using patch ID.
patch-utils download -l <Patch ID> -p /tmp/patches
Apply Patches
Use the patching tool to apply the latest patches on a given Middleware Home.
Apply the latest patches.
patch-utils apply -L
To apply the patches for a given Middleware Home, use the following command:
patch-utils apply -L -m <MW_HOME>
This command leverages the OPATCH utility found in the Middleware Home to apply individual patches.
patch-utils apply -l <Patch ID>
This command applies the patch using the local zip file.
patch-utils apply -f /tmp/<Patch ID>.zip
Roll Back Patches
The utility will roll back all patches that are applied using it.
patch-utils rollback -L
To roll back the patches for a given Middleware Home, use the following command:
patch-utils rollback -L -m <MW_HOME>
While using the patching tool utility make sure you run it from opc user but not oracle user. Also, make sure that the Middleware home is having right permissions (755).