"Could not open logfile" occurred when run "datapatch -verbose" (Doc ID 2243580.1)

Last updated on MARCH 22, 2017

Applies to:

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

Symptoms

"datapatch -verbose" throws the following error:

For example:

[terminal log]
Validating logfiles...
Patch 24732088 apply (pdb CDB$ROOT): WITH ERRORS
logfile:
/u01/app/grid/cfgtoollogs/sqlpatch/24732088/20933516/24732088_apply__MGMTDB_CDBROOT_20171<Month in Japanese> 25_17_27_32.log (errors)
Error at line 0: Could not open logfile
/u01/app/grid/cfgtoollogs/sqlpatch/24732088/20933516/24732088_apply__MGMTDB_CDBROOT_20171<Month in Japanese> 25_17_27_32.log
Patch 24732088 apply (pdb PDB$SEED): WITH ERRORS
logfile:
/u01/app/grid/cfgtoollogs/sqlpatch/24732088/20933516/24732088_apply__MGMTDB_PDBSEED_20171<Month in Japanese> 25_17_29_38.log (errors)
Error at line 0: Could not open logfile
/u01/app/grid/cfgtoollogs/sqlpatch/24732088/20933516/24732088_apply__MGMTDB_PDBSEED_20171<Month in Japanese> 25_17_29_38.log

[sqlpatch_catcon_0.log]

SQL><OLD> 1: SELECT '&logfiledir' || '24732088_apply_' ||
<NEW> 1: SELECT '/u01/app/grid/cfgtoollogs/sqlpatch/24732088/20933516/' ||'24732088_apply_' ||

SQLPATCH_LOGFILE
--------------------------------------------------------------------------------
/u01/app/grid/cfgtoollogs/sqlpatch/24732088/20933516/24732088_apply__MGMTDB_CDBROOT_20171<Month in Japanese> 25_17_27_32.log

SP2-0768: <Illegal SPOOL command>

Cause

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 hundreds of Community platforms