I am applying a patch on 12.2.0.1 database version on a single instance installed on windows server. The patch on the binaries is successful. But when I apply the datapatch to the database I get the following error .
C:\oracle2\app\oracle\product\12.2.0\dbhome_1\OPatch>datapatch -verbose
SQL Patching tool version 12.2.0.1.0 Production on Mon Aug 27 18:01:51 2018
Copyright (c) 2012, 2018, Oracle. All rights reserved.
Log file for this invocation: C:\oracle2\app\oracle\product\12.2.0\dbhome_1\cfgt
oollogs\sqlpatch\sqlpatch_3928_2018_08_27_18_01_51\sqlpatch_invocation.log
Connecting to database...OK
open2: IO::Pipe: Can't spawn-NOWAIT: No such file or directory at C:\oracle2\app
\oracle\product\12.2.0\dbhome_1\\rdbms\admin/catcon.pm line 657.
Please refer to MOS Note 1609718.1 and/or the invocation log
C:\oracle2\app\oracle\product\12.2.0\dbhome_1\cfgtoollogs\sqlpatch\sqlpatch_3928
_2018_08_27_18_01_51\sqlpatch_invocation.log
for information on how to resolve the above errors.
SQL Patching tool complete on Mon Aug 27 18:01:52 2018
PS: I had uninstalled and reinstalled Oracle software on the server, could that be a reason, the uninstall may not have been clean?