My Oracle Support Banner

datapatch fails with Error :"Can't locate XML/Simple.pm in @INC " or sqlpatch.bat not recognized (Doc ID 2696332.1)

Last updated on SEPTEMBER 19, 2021

Applies to:

Oracle Database - Enterprise Edition - Version 12.1.0.2 and later
Information in this document applies to any platform.

Symptoms

datapatch fails with error:

datapatch -verbose
Can't locate XML/Simple.pm in @INC (@INC contains: $ORACLE_HOME/sqlpatch
$ORACLE_HOME/rdbms/admin $ORACLE_HOME/sqlpatch/lib $ORACLE_HOME/perl/lib/site_perl/5.14.1/x86_64-linux-thread-multi
$ORACLE_HOME/perl/lib/site_perl/5.14.1
$ORACLE_HOME/perl/lib/5.14.1/x86_64-linux-thread-multi
$ORACLE_HOME/perl/lib/5.14.1 .) at
$ORACLE_HOME/sqlpatch/sqlpatch.pm line 188.
BEGIN failed--compilation aborted at $ORACLE_HOME/sqlpatch/sqlpatch.pm line 188.
Compilation failed in require at $ORACLE_HOME/sqlpatch/sqlpatch.pl line 64.
BEGIN failed--compilation aborted at $ORACLE_HOME/sqlpatch/sqlpatch.pl line 64.

 

In Windows:

datapatch fails with error:

datapatch -verbose
'%ORACLE_HOME%\OPatch\\..\sqlpatch\sqlpatch.bat' is not recognized as an internal or external command,operable program or batch file. "

 

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


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