Search This Blog

Sunday, March 4, 2018

R12.2.4 autoconfig failed while cloning : ld.so.1: FNDCPUCF: fatal: /a01/appstier/UAT/fs2/EBSapps/10.1.2/lib/libclntsh.so.10.1: wrong ELF class: ELFCLASS64

Dear DBA's,

This error encountered while cloning r12.2.4. My apps tier is repeatedly ended with error in apps side. Cloning ended with 100% completed status but autoconfig recorded some errors. I was able to start the services without any error status but i was unable to launch the forms. This issue is due to relink does not happen properly during autoconfig phase. So simply running autoconfig wont fix the issue. I had to fix the issue and re-run adcfgclone. 

I have described the steps i followed in detail through this article. 


Error returned at the bottom of the autoconfig log :

WARNING: [CVM Error Report]
The following report lists errors encountered during CVM Phase
      <filename>  <return code where appropriate>
  /a01/appstier/UAT/fs2/EBSapps/appl/ad/12.0.0/bin/adgentns.pl  2

 No. of scripts failed in CVM phase: 1



WARNING: [AutoConfig Error Report]
The following report lists errors AutoConfig encountered during each
phase of its execution.  Errors are grouped by directory and phase.
The report format is:
      <filename>  <phase>  <return code where appropriate>

  [PROFILE PHASE]
  AutoConfig could not successfully execute the following scripts:
    Directory: /a01/appstier/UAT/fs2/inst/apps/UAT_ahqtest/admin/install
      afcpctx.sh              INSTE8_PRF         137



AutoConfig is exiting with status 1


I wasted bunch of time on tracing out this issue. Later i found out this is not the reason for the error. 

I strongly recommend don't just come to conclusion that this is the reason for the error. We need to read through the entire autoconfig log to find actual issue. 

I just searched the autoconfig log with the keyword "error" and i found the below. 

Actual Error :

Uploading Metadata file /a01/appstier/UAT/fs2/EBSapps/appl/ad/12.0.0/admin/template/adctxinf.tmp
Metadata file /a01/appstier/UAT/fs2/EBSapps/appl/ad/12.0.0/admin/template/adctxinf.tmp upload failed.
Check log file created by FNDCPUCF program.
ERRORCODE = 137 ERRORCODE_END
.end std out.
ld.so.1: FNDCPUCF: fatal: /a01/appstier/UAT/fs2/EBSapps/10.1.2/lib/libclntsh.so.10.1: wrong ELF class: ELFCLASS64
Killed
ld.so.1: FNDCPUCF: fatal: /a01/appstier/UAT/fs2/EBSapps/10.1.2/lib/libclntsh.so.10.1: wrong ELF class: ELFCLASS64
Killed


You can find the note below if you search with the above error.

R12 - adcfgclone appsTier fails with error for ld.so.1 'wrong ELF class: ELFCLASS64' (Doc ID 1078123.1)


After reading the note, i found out that the user does not have any permission to central inventory. But instead of giving him actual permission we could follow the below :

1. Create a global inventory under its default locations. 

For Solaris : /var/opt/oracle/ 

2. oraInst.loc must point to any directory location where the user has access

You should see : /var/opt/oracle/oraInventory

3. Rename the previous global inventory :

mv oraInventory to oraInventory_old 

create empty directory as oraInventory (mkdir oraInventory)

Make sure the user which you run cfgclone has full permission on the directory above.

4. Start the Cloning scripts again - for the DB-Tier and the APPS-Tier

I just re-run the apps tier and i was able to complete the cloning. 

5. Check the new created logfile ohclone.log

Thanks!
~Sikky

No comments:

Post a Comment

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...