Objective : Upgrading Oracle from 11g to 12c.
Error: Using DBUA (Database Upgrade Assistance), It was making progress till 35% and then I was getting an error as:
Error in process E:\Oracle\12c\db1\perl\bin\perl.exe
Cause: I checked the logs and it was saying can’t spawn cmd.exe.
Solution: Added some environmental variables as follows:
ORACLE_HOME=C:\oracle\product\12.2.0.1\db_1\bin;C:\ProgramData\Oracle\Java\javapath;
C:\ProgramFiles(x86)\MailEnable\BIN;C:\SymantecDLP\Protect\lib\native;C:\SymantecDLP\jre\bin;
C:\SymantecDLP\jre\bin\client;C:\oracle\product\12.2.0.1\db_1\bin;
%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;
%systemroot%\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Mail Enable\BIN64;
C:\Program Files\PGP Corporation\PGP Command Line\;%systemroot%\System32\WindowsPowerShell\v1.0\
The values mentioned above for the environmental variable ORACLE_HOME shoulb be in one line separated by semicolon.
You can add by going to properties of my computer or This PC and select Advanced System Settings.
After adding the above variables, I had upgraded the database successfully.
Regards
Satyajeet Anand