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 12.1.0.5.0 and later
Information in this document applies to any platform.

Symptoms

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 13.9.3.3.0
Copyright (c) 2019, Oracle Corporation.  All rights reserved.

PREREQ session

Oracle Home       : <OMS_HOME>
Central Inventory : <...>\Inventory
  from           :
OPatch version    : 13.9.3.3.0
OUI version       : 13.9.1.0.0
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

Cause

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
Symptoms
Cause
Solution
References


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