libasmclntsh12.so missing after OPatch failed in Oracle 12c

Those days, I was trying to apply the latest Oracle Grid Infrastructure PSU over my 12.1.0.2 Clusterware.

During the apply phase, the OPatch failed because the gcc was not available for execution. Actually, someone gave chmod 700 to /usr/bin/gcc for protection.

/grid/app/grid/product/12.1.0/grid/bin/orald: line 31: /usr/bin/gcc: Permission denied
/grid/app/grid/product/12.1.0/grid/bin/orald: line 31: exec: /usr/bin/gcc: cannot execute: Permission denied
make[2]: *** [ld_shlib] Error 126
make[1]: *** [/grid/app/grid/product/12.1.0/grid/lib/libasmclntsh12.so] Error 2
make: *** [update_patchrep] Error 2

After altering gcc to 755 and re-executing, everything stopped to work because the libasmclntsh12.so was missing. I could not even bring the Clusterware up anymore.

I researched in My Oracle Support for similar errors but the only solution was copying the file from another Cluster, that I didn't . So, as workaround, I copied the file from Oracle Grid Installation zips:

# cp -ip ./stage/ext/lib/libasmclntsh12.so /grid/app/grid/product/12.1.0/grid/lib/
# chown root:oinstall /grid/app/grid/product/12.1.0/grid/lib/libasmclntsh12.so

Then I resume the OPatch and everything worked fine.

Similar Problem:

Have you enjoyed? Please leave a comment or give a 👍!

1 comment

    • JayaKishore Udayagiri on May 6, 2018 at 10:25
    • Reply

    HI RJ,

    Could you please provide some light on PATCHGEN utilization in oracle 12c patching

    Thanks
    JK

Leave a Reply

Your email address will not be published.