The following factors are most frequently linked to this specific failure: Incorrect Execution Directory
If the log indicates file locking, you must find the process holding the file. opatch failed with error code 21
: If you are on Windows, ensure all Oracle services (including the Distributed Transaction Coordinator) are stopped, as active files can block the patching process. The following factors are most frequently linked to
Oracle software must be owned by the Oracle user (typically oracle ) and the appropriate group (e.g., oinstall or dba ). If any files in the Oracle home have incorrect ownership or permissions (e.g., root-owned files, missing write permissions), OPatch will abort. missing write permissions)
Alternatively, you can run OPatch with the -log flag to specify a custom log path.