Search This Blog

Wednesday, April 12, 2017

12c runinstaller failed

Error :

Today i was getting the error below while invoking runinstaller during 12.1.0 installation.

Snapshot of error :


Please check the installation logs to find out more about error detail.

I am installing in solaris and my inventory is located in /var/opt/oracle and obviously runInstaller gonna write logs here.

runInstaller log Location : /var/opt/oracle/oraInventory/logs

I highlighted the error message in RED.

---# Begin Stacktrace #---------------------------
ID: oracle.install.commons.util.exception.DefaultErrorAdvisor:39
oracle.install.commons.base.driver.common.InstallerException: [INS-10102] Installer initialization failed.
at oracle.install.commons.base.driver.common.Installer.run(Installer.java:324)
at oracle.install.ivw.common.util.OracleInstaller.run(OracleInstaller.java:106)
at oracle.install.ivw.db.driver.DBInstaller.run(DBInstaller.java:142)
at oracle.install.commons.util.Application.startup(Application.java:921)
at oracle.install.commons.flow.FlowApplication.startup(FlowApplication.java:181)
at oracle.install.commons.flow.FlowApplication.startup(FlowApplication.java:198)
at oracle.install.commons.base.driver.common.Installer.startup(Installer.java:355)
at oracle.install.ivw.db.driver.DBInstaller.startup(DBInstaller.java:130)
at oracle.install.ivw.db.driver.DBInstaller.main(DBInstaller.java:161)
Caused by: oracle.install.commons.base.driver.common.SetupDriverException: [INS-21003] Installer has detected that an invalid inventory pointer location file was specified.
at oracle.install.driver.oui.OUIInstallDriver.load(OUIInstallDriver.java:393)
at oracle.install.ivw.db.driver.DBSetupDriver.load(DBSetupDriver.java:225)
at oracle.install.commons.base.driver.common.Installer.run(Installer.java:306)
... 8 more

---# End Stacktrace #-----------------------------

Reason :

As i looked into oraInst.loc i dont inst_group since runInstaller was throwing this error. after adding group in oraInst.loc i was able to fix this issue.

inventory_loc=/var/opt/oracle/oraInventory
inst_group=dba   --> Added in oraInst.loc

oraInst.loc location in solaris --> /var/opt/oracle/oraInst.loc

During installation there was an another error. As i looked into the logs, i figured out the below.

java.io.FileNotFoundException: /var/opt/oracle/oraInventory/ContentsXML/inventory.xml (Permission denied)
        at java.io.FileOutputStream.open(Native Method)
        at java.io.FileOutputStream.<init>(FileOutputStream.java:194)
        at java.io.FileOutputStream.<init>(FileOutputStream.java:84)
        at java.io.FileWriter.<init>(FileWriter.java:46)
        at oracle.sysman.oii.oiii.OiiiInstallXMLWriter.writeHomes(OiiiInstallXMLWriter.java:148)
        at oracle.sysman.oii.oiii.OiiiInstallInventory.saveInventory(OiiiInstallInventory.java:1039)
        at oracle.sysman.oii.oiii.OiiiInstallInventory.saveInventory(OiiiInstallInventory.java:1350)
        at oracle.sysman.oii.oiii.OiiiInstallAreaControl.writeInstallInv(OiiiInstallAreaControl.java:1424)
        at oracle.sysman.oii.oiii.OiiiInstallAreaControl.saveInstallInventory(OiiiInstallAreaControl.java:1344)
        at oracle.sysman.oii.oiii.OiiiInstallAreaControl.saveInstallInventory(OiiiInstallAreaControl.java:1246)
        at oracle.sysman.oii.oiic.OiicInstallSession.saveInventoryWithUpdate(OiicInstallSession.java:3010)
        at oracle.sysman.oii.oiic.OiicInstSaveInvWCCE.initialize(OiicInstSaveInvWCCE.java:269)
        at oracle.sysman.oii.oiif.oiifb.OiifbCondIterator.iterate(OiifbCondIterator.java:152)
        at oracle.sysman.oii.oiif.oiifw.OiifwActionsPhaseWCDE.doOperation(OiifwActionsPhaseWCDE.java:645)
        at oracle.sysman.oii.oiif.oiifb.OiifbLinearIterator.iterate(OiifbLinearIterator.java:147)
        at oracle.sysman.oii.oiic.OiicInstallAPISession$OiicAPISelCompsInstall.doOperation(OiicInstallAPISession.java:1095)
        at oracle.sysman.oii.oiif.oiifb.OiifbCondIterator.iterate(OiifbCondIterator.java:171)
        at oracle.sysman.oii.oiic.OiicInstallAPISession.doInstallAction(OiicInstallAPISession.java:679)
        at oracle.sysman.oii.oiic.OiicInstallAPISession.access$000(OiicInstallAPISession.java:94)
        at oracle.sysman.oii.oiic.OiicInstallAPISession$OiicActionsThread.run(OiicInstallAPISession.java:971)

Reason :

inventory.xml file does not have permission. I granter proper permission to the user then re-initiated the installation. Finally 12c installation was successful.

Hope this helps.

Monday, April 3, 2017

adcfgclone fails in R12.2.4

Hello DBA's,

I was getting the error below while runnig adcfgclone.pl for run file system. adcfgclone was returning into error while generating OHS. After digging into the logs i found out the error and fix.

Error  returned in adcfgclone :

Beginning application tier Apply - Sun Apr  2 16:14:55 2017

/d02/DEV/appltest/fs2/EBSapps/comn/clone/bin/../jre/bin/java -Xmx600M -DCONTEXT_VALIDATED=true -Doracle.installer.oui_loc=/oui -classpath /d02/DEV/appltest/fs2/EBSapps/comn/clone/jlib/xmlparserv2.jar:/d02/DEV/appltest/fs2/EBSapps/comn/clone/jlib/ojdbc6.jar:/d02/DEV/appltest/fs2/EBSapps/comn/clone/jlib/java:/d02/DEV/appltest/fs2/EBSapps/comn/clone/jlib/oui/OraInstaller.jar:/d02/DEV/appltest/fs2/EBSapps/comn/clone/jlib/oui/ewt3.jar:/d02/DEV/appltest/fs2/EBSapps/comn/clone/jlib/oui/share.jar:/d02/DEV/appltest/fs2/FMW_Home/webtier/../Oracle_EBS-app1/oui/jlib/srvm.jar:/d02/DEV/appltest/fs2/EBSapps/comn/clone/jlib/ojmisc.jar:/d02/DEV/appltest/fs2/FMW_Home/wlserver_10.3/server/lib/weblogic.jar:/d02/DEV/appltest/fs2/EBSapps/comn/clone/jlib/obfuscatepassword.jar  oracle.apps.ad.clone.ApplyAppsTier -e /d02/DEV/appltest/fs2/inst/apps/dev_ahqtest/appl/admin/dev_ahqtest.xml -stage /d02/DEV/appltest/fs2/EBSapps/comn/clone    -showProgress -nopromptmsg
Log file located at /d02/DEV/appltest/fs2/inst/apps/dev_ahqtest/admin/log/clone/ApplyAppsTier_04021614.log
  \    100% completed
ERROR while running Apply...
Sun Apr  2 16:50:53 2017

 ERROR: Failed to execute /d02/DEV/appltest/fs2/EBSapps/comn/clone/bin/adclone.pl

 Please check logfile.


Go to the below location and look into the clone logs.

/d02/DEV/appltest/fs2/inst/apps/dev_ahqtest/admin/log

Please navigate into the directories below and check each error log. Since OHS generation was failing i looked into ohsT2PApply folder. You can look into the each folders to figure out the root cause of the issue.



As i looked into the ohs clone logs. i found the below,


SEVERE : Apr 2, 2017 4:50:52 PM - ERROR - CLONE-20218   Cloning is not successful.
SEVERE : Apr 2, 2017 4:50:52 PM - CAUSE - CLONE-20218   An internal operation failed.
SEVERE : Apr 2, 2017 4:50:52 PM - ACTION - CLONE-20218   Provide the clone log and error file for investigation.
oracle.as.clone.cloner.exception.ApplyCloneException:  Instance "Create & Start" step  failed.
at oracle.as.clone.util.ASInstanceUtil.createStartInstance(ASInstanceUtil.java:203)
at oracle.as.clone.cloner.component.ComponentApplyCloner.createStartInstance(ComponentApplyCloner.java:253)
at oracle.as.clone.cloner.component.ComponentApplyCloner.doClone(ComponentApplyCloner.java:124)
at oracle.as.clone.cloner.Cloner.doFinalClone(Cloner.java:61)
at oracle.as.clone.request.ApplyCloneRequest.applyArchive(ApplyCloneRequest.java:188)
at oracle.as.clone.request.ApplyCloneRequest._clone(ApplyCloneRequest.java:69)
at oracle.as.clone.process.CloningExecutionProcess.execute(CloningExecutionProcess.java:131)
at oracle.as.clone.process.CloningExecutionProcess.execute(CloningExecutionProcess.java:114)
at oracle.as.clone.client.CloningClient.executeT2PCommand(CloningClient.java:238)
at oracle.as.clone.client.CloningClient.main(CloningClient.java:115)
Caused by: oracle.as.config.ProvisionException: Unable to create Oracle wallet for CN=\"Self-Signed Certificate for EBS_web_DEV_OHS1 \", OU=OAS, O=ORACLE, L=REDWOODSHORES, ST=CA, C=US
at oracle.as.config.utl.FileUtil.generateWallet(FileUtil.java:635)
at oracle.as.config.utl.FileUtil.generateWallet(FileUtil.java:669)
at oracle.as.config.utl.FileUtil.generateWallet(FileUtil.java:560)
at oracle.as.config.impl.OpmnProvisioner.generateWallet(OpmnProvisioner.java:70)
at oracle.as.config.impl.OpmnProvisioner.createOpmnConfiguration(OpmnProvisioner.java:366)
at oracle.as.config.impl.OracleASInstanceImpl.createOpmnConfiguration(OracleASInstanceImpl.java:587)
at oracle.as.config.impl.OracleASInstanceImpl.create(OracleASInstanceImpl.java:108)
at oracle.as.clone.provisioning.implementations.ASInstanceProvImpl.createInstanceAndStart(ASInstanceProvImpl.java:151)
at oracle.as.clone.util.ASInstanceUtil.createStartInstance(ASInstanceUtil.java:197)
... 9 more
Caused by: oracle.as.config.ProvisionException: Unable to generate wallet:/d02/DEV/appltest/fs2/FMW_Home/webtier/instances/EBS_web_DEV_OHS1/config/OPMN/opmn/wallet
at oracle.as.config.utl.FileUtil.createSelfSignedOracleWallet(FileUtil.java:717)
at oracle.as.config.utl.FileUtil.generateWallet(FileUtil.java:633)
... 17 more
Caused by: java.io.IOException: java.io.FileNotFoundException: /var/tmp/pki_data351618491.lck.tmp (Permission denied)
at oracle.security.pki.FileLocker.lock(Unknown Source)
at oracle.security.pki.p.b(Unknown Source)
at oracle.security.pki.OracleWallet.saveAs(Unknown Source)
at oracle.as.config.utl.FileUtil.createSelfSignedOracleWallet(FileUtil.java:713)
... 18 more
Caused by: java.io.FileNotFoundException: /var/tmp/pki_data351618491.lck.tmp (Permission denied)
at java.io.RandomAccessFile.open(Native Method)
at java.io.RandomAccessFile.<init>(RandomAccessFile.java:233)
... 22 more
SEVERE :  Instance "Create & Start" step  failed.


Fix :

Go into /var/tmp and remove all *.tmp and *tm* files. Error is due to the files created already by other OS user while previous clone. After removing these files i was able to run adcfgclone without any issue.

Example files,

l0068316.tmp                            oracle-dfw-183105158211537317.tmp.lck   oracle-dfw-3425756421653396373.tmp.lck  oracle-dfw-6819160851092011229.tmp.lck
l0074798.tmp                            oracle-dfw-2538503116833463042.tmp.lck  oracle-dfw-381765866794171712.tmp.lck   oracle-dfw-7403137649019225396.tmp.lck
o0068316.tmp                            oracle-dfw-2768660284650699974.tmp.lck  oracle-dfw-3881486271877275351.tmp.lck  oracle-dfw-7581853159876750729.tmp.lck
o0074798.tmp                            oracle-dfw-2864542042881798703.tmp.lck  oracle-dfw-3949270719924899349.tmp.lck  oracle-dfw-811586717221662313.tmp.lck
oracle-dfw-1289848250680752772.tmp.lck  oracle-dfw-2885216464135319148.tmp.lck  oracle-dfw-4021867361401290383.tmp.lck  oracle-dfw-8316190839543132266.tmp.lck
oracle-dfw-1348441697504327757.tmp.lck  oracle-dfw-2978949011485778224.tmp.lck  oracle-dfw-4307512469973605009.tmp.lck  oracle-dfw-9056445239475151314.tmp.lck
oracle-dfw-1395632348555471284.tmp.lck  oracle-dfw-3017158076078216067.tmp.lck  oracle-dfw-4367139050759866178.tmp.lck  oracle-dfw-996988207737723041.tmp.lck

You cannot complete this task because one of the following events caused a loss of page data: A system failure has occurred "Front end is locked after 12.2 upgrade"

  If you have upgraded to Oracle E-Business Suite 12.2.10 Release Update Pack from Oracle E-Business Suite 12.2.6 Release Update Pack (or ea...