My Oracle Support Banner

Opatch error : The Patch Directory Area Must Be A Number (Doc ID 258650.1)

Last updated on NOVEMBER 22, 2019

Applies to:

Oracle Database - Enterprise Edition - Version to [Release 9.2]
Information in this document applies to any platform.


 + You are trying to apply a patch with opatch and it errors out with following:

> opatch apply /oracle/stage/9202/2652950
PERL5LIB=/usr/local/lib/perl5/5.8.0; export PERL5LIB
/usr/local/bin/perl $ORACLE_HOME/OPatch/ apply
OPatch Version
Perl Version
Performing pre-patch installation checks.
general_options is set to 0
Using oraInst.loc to look up oui libs...
Parsing /oracle/oraInventory/ContentsXML/comps.xml
Found "oracle.swd.oui" version ""
on "/oracle/oui"
Found JRE version ""
on "/oracle/jre/1.3.1/bin/java"
Oracle Home = /oracle/product/920_64
inventory_location = /oracle/oraInventory
liboraInstaller_lib= /oracle/oui/bin/hpunix/
path_to_java = /oracle/jre/1.3.1/bin/java
path_to_oI_loc = /var/opt/oracle/oraInst.loc
oui_component_loc = /oracle/oui
required_jar_file under oui = lib/OraInstaller.jar
Checking if this is a RAC system...
This is not a RAC system
$ORACLE_HOME/OPatch/ version:
Copyright (c) 2001,2002,2003 Oracle Corporation. All Rights Reserved.
The patch directory area must be a number.
ERROR: OPatch failed during pre-reqs check

+ The patch is unzipped in the correct directory

i.e, if it is patch 2652950 it is unzipped in /oracle/stage/9202/2652950 or in any other location with the patch number as the directory name

+ You have tried many other one-off patches too and opatch returns the same error.


 To apply the patch.


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

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

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