My Oracle Support Banner

OPatch Failed with Error Code 2 (Doc ID 2685851.1)

Last updated on DECEMBER 16, 2023

Applies to:

Oracle WebLogic Server - Version and later
Information in this document applies to any platform.


How to resolve the error: "OPatch failed with error code 2" thrown when running the "opatch lspatches" or "opatch lsinventory" commands.

The complete error stack is as below:

OPatch failed with error code 2


To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!

In this Document

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.