Error
Oracle E-Business Suite Installation of Release 12.2.0 failed with error "RW-50004: Error code received when running external process".
Investigation done
Step 1. First have a look at the Installation log to see further details at the following location:
RDBMS $ORACLE_HOME/temp/$CONTEXT_NAME/logs
In my case the above log file was located at the following location:
/u01/oracle/VIS/12.1.0/appsutil/log/VIS_ebs1227oel75/08280649.log
Using /u01/oracle/VIS/12.1.0/temp/VIS_ebs1227oel75/xmldocs/instDB.xml
Executing command: /u01/Stage122/startCD/Disk1/rapidwiz/jre/Linux_x64/1.6.0//bin/java/bin/java -cp /u01/oracle/VIS/12.1.0/temp/VIS_ebs1227oel75/DBInstallHome/fnd/../j22065856_fnd.zip:/u01/oracle/VIS/12.1.0/temp/VIS_ebs1227oel75/DBInstallHome/fnd/java/3rdparty/stdalone/xmlparserv2.zip -Doracle.apps.fnd.txk.env_home=/u01/oracle/VIS/12.1.0/temp/VIS_ebs1227oel75/ -Doracle.apps.fnd.txk.runtime.config=/u01/oracle/VIS/12.1.0/temp/VIS_ebs1227oel75/xmldocs/instDB.xml oracle.apps.fnd.txk.config.InstallService
Fatal Error: TXK Install Service
oracle.apps.fnd.txk.config.ProcessStateException: OUI process failed : Exit=254 See log for details. CMD= /u01/Stage122/TechInstallMedia/database/database/runInstaller -waitForCompletion -ignoreSysPrereqs -force -silent -responseFile /u01/oracle/VIS/12.1.0/temp/VIS_ebs1227oel75/cfgHome/response/DB_HOME/txkDB12cR1_12102.rsp
at oracle.apps.fnd.txk.config.OUIPatchActionNode.processState(OUIPatchActionNode.java:160)
at oracle.apps.fnd.txk.config.PatchActionNode.processState(PatchActionNode.java:187)
at oracle.apps.fnd.txk.config.PatchNode.processState(PatchNode.java:338)
at oracle.apps.fnd.txk.config.PatchesNode.processState(PatchesNode.java:79)
at oracle.apps.fnd.txk.config.InstallNode.processState(InstallNode.java:68)
at oracle.apps.fnd.txk.config.TXKTopology.traverse(TXKTopology.java:594)
at oracle.apps.fnd.txk.config.InstallService.doInvoke(InstallService.java:224)
at oracle.apps.fnd.txk.config.InstallService.invoke(InstallService.java:237)
at oracle.apps.fnd.txk.config.InstallService.main(InstallService.java:291)
Cannot install Oracle Database Home
RW-50010: Error: - script has returned an error: 1
RW-50004: Error code received when running external process. Check log file for details.
Running Database Install Driver for VIS instance
Step 2. Now have a look at Oracle Database installation log files in your oraInventory directory. In my case it was located at /u01/oraInventory/logs/installActions2018-08-28_06-55-50AM.log.
Scanning through this file I could manage to get the root cause of the error, which was clearly printed under the above log file as:
INFO: size estimation for EEinstall is 6553.60000038147
INFO: PATH has :==>/tmp/OraInstall2018-08-28_06-55-50AM/jdk/jre/lib/amd64/server:/tmp/OraInstall2018-08-28_06-55-50AM/jdk/jre/lib/amd64:/tmp/OraInstall2018-08-28_06-55-50AM/jdk/jre/../lib/amd64:/tmp/OraInstall2018-08-28_06-55-50AM/ext/bin:/tmp/OraInstall2018-08-28_06-55-50AM/ext/lib:/usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib
SEVERE: [FATAL] [INS-32025] The chosen installation conflicts with software already installed in the given Oracle home.
ACTION: Install into a different Oracle home.
INFO: Advice is ABORT
INFO: Adding ExitStatus INVALID_USER_INPUT to the exit status set
INFO: Completed validating state
INFO: Terminating all background operations
INFO: Terminated all background operations
INFO: Finding the most appropriate exit status for the current application
INFO: Exit Status is -2
INFO: Shutdown Oracle Database 12c Release 1 Installer
INFO: Unloading Setup Driver
Solution
Step 1. Get rid of all files from your previous unsuccessful Oracle EBS 12.2.0 failed installation. In my case I have done the following:
A. Delete /u01/oracle folder and all files in it. This was my installation folder.:
rm -rf /u01/oracle
B. Delete all files under /tmp folder
C. Delete following directories from /u01/oraInventory folder:
oui
logs
locks
Step 2. Now restart rapidwiz wizard and hopefully you will not face the error reported before:
cd /u01/Stage122/startCD/Disk1/rapidwiz
./rapidwiz
Environment
+ Oracle Linux 7.5 (x86-64)
+ Oracle E-Business Suite Release 12.2.0 with startCD 51