Skip to main content
Special offer: 12 Months + 24 Months extra! ALL PrivateVPN subscriptions are protected by a 100% money back guarantee. Sign up in three easy steps and test your VPN without obligation for 30 days!

Opatch Failed With Error Code 21 -

opatch apply -local But you omitted -local (on a non-RAC environment), it might fail. Try running:

Introduction For any Oracle Database Administrator (DBA) or middleware specialist, applying patches is a routine yet critical task. Oracle’s OPatch utility is the standard tool for applying interim patches (one-off patches) to Oracle software. However, the process is not always seamless. Among the various error codes that can halt a patching operation, "OPatch failed with error code 21" is one of the most common—and often one of the most frustrating. opatch failed with error code 21

The error message usually appears as:

OPatch failed with error code 21 Or, in more verbose logs: opatch apply -local But you omitted -local (on

$ORACLE_HOME/OPatch/opatch version Compare the version with the patch's README file. If the README specifies a minimum OPatch version (e.g., 13.9.4.2.0) and you have an older one, you must upgrade OPatch. Check available space in the Oracle home and /tmp : However, the process is not always seamless