My Oracle Support Banner

EM12C, 13C : "opatch prereq CheckActiveFilesAndExecutables -phBaseDir" Command Fails With "OPatch failed with error code = 2" (Doc ID 2557534.1)

Last updated on AUGUST 19, 2022

Applies to:

Enterprise Manager Base Platform - Version and later
Information in this document applies to any platform.


In Enterprise Manager (EM) 12C, 13C, Trying to run "opatch prereq CheckActiveFilesAndExecutables -phBaseDir" fails with error,

<OMS_HOME>\OPatch\opatch prereq CheckActiveFilesAndExecutables -phBaseDir <patchlocation>/<patchtoplocation>
Oracle Interim Patch Installer version
Copyright (c) 2019, Oracle Corporation.  All rights reserved.

PREREQ session

Oracle Home       : <OMS_HOME>
Central Inventory : <...>\Inventory
  from           :
OPatch version    :
OUI version       :
Log file location : <OMS_HOME>\cfgtoollogs\opatch\opatchxxxx-xx-xx-x_x.log

OPatch detects the Middleware Home as "<OMS_HOME>"

Unable to parse base dir or base file.
Invoking prereq "checkactivefilesandexecutables"

Prereq "checkActiveFilesAndExecutables" not executed.
PrereqSession failed: null

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.