Tuesday 30 December 2014

DB : OPatch failed with make ioracle

Error:

[Dec 30, 2014 6:05:42 PM]    OUI-67200:Make failed to invoke "/usr/bin/make -f ins_rdbms.mk ioracle ORACLE_HOME=/d01/UAT/db/tech_st/11.2.0.3"....'/usr/libexec/gcc/x86_64-redhat-linux/4.4.7/cc1: error while loading shared libraries: libmpfr.so.1: cannot open shared object file: No such file or directory
                             /usr/bin/ar: /d01/UAT/db/tech_st/11.2.0.3/rdbms/lib/config.o: No such file or directory
                             make: *** [/d01/UAT/db/tech_st/11.2.0.3/rdbms/lib/config.o] Error 1
                             '
[Dec 30, 2014 6:05:42 PM]    Re-link fails on target "ioracle".
[Dec 30, 2014 6:05:42 PM]    --------------------------------------------------------------------------------
                             Failed to run make commands. They are stored in file '/d01/UAT/db/tech_st/11.2.0.3/.patch_storage/12834800_Jan_27_2012_21_14_30/make.txt'
                             Invoke these commands manually to restore the binaries in the Oracle Home.
[Dec 30, 2014 6:05:42 PM]    OUI-67115:OPatch failed to restore OH '/d01/UAT/db/tech_st/11.2.0.3'. Consult OPatch document to restore the home manually before proceeding.
[Dec 30, 2014 6:05:42 PM]    --------------------------------------------------------------------------------
[Dec 30, 2014 6:05:42 PM]    The following warnings have occurred during OPatch execution:
[Dec 30, 2014 6:05:42 PM]    1) OUI-67200:Make failed to invoke "/usr/bin/make -f ins_rdbms.mk ioracle ORACLE_HOME=/d01/UAT/db/tech_st/11.2.0.3"....'/usr/libexec/gcc/x86_64-redhat-linux/4.4.7/cc1: error while loading shared libraries: libmpfr.so.1: cannot open shared object file: No such file or directory
                             /usr/bin/ar: /d01/UAT/db/tech_st/11.2.0.3/rdbms/lib/config.o: No such file or directory
                             make: *** [/d01/UAT/db/tech_st/11.2.0.3/rdbms/lib/config.o] Error 1
                             '
[Dec 30, 2014 6:05:42 PM]    2) OUI-67124:Re-link fails on target "ioracle".
[Dec 30, 2014 6:05:42 PM]    3) OUI-67200:Make failed to invoke "/usr/bin/make -f ins_rdbms.mk ioracle ORACLE_HOME=/d01/UAT/db/tech_st/11.2.0.3"....'/usr/libexec/gcc/x86_64-redhat-linux/4.4.7/cc1: error while loading shared libraries: libmpfr.so.1: cannot open shared object file: No such file or directory
                             /usr/bin/ar: /d01/UAT/db/tech_st/11.2.0.3/rdbms/lib/config.o: No such file or directory
                             make: *** [/d01/UAT/db/tech_st/11.2.0.3/rdbms/lib/config.o] Error 1
                             '


Solution:

11.2.0.3 Installation failed on RHEL 6 with the error libraries: libmpfr.so.1: cannot open shared object file: No such file or directory (Doc ID 1543787.1)

1. Check if library file exist

$cd /usr/lib64
$ls -la libmpfr*

Expected output:
lrwxrwxrwx 1 root root     16 Jul  6  2012 libmpfr.so.1 -> libmpfr.so.1.2.0*
-rwxr-xr-x 1 root root 321064 Jul 24  2010 libmpfr.so.1.2.0*
2. Check for missing mpfr package by below

$rpm -q --whatprovides /usr/lib64/libmpfr.so.1

or

$rpm -q mpfr-2.4.1-6.el6.x86_64

Expected output is as below

$ rpm -q --whatprovides /usr/lib64/libmpfr.so.1

mpfr-2.4.1-6.el6.x86_64

or

$ rpm -q mpfr-2.4.1-6.el6.x86_64

mpfr-2.4.1-6.el6.x86_64
3. If the output is not as expected then Install package mpfr by below and retry the installation.

$yum install mpfr-2.4.1-6.el6.x86_64

1 comment:

Oracle : Database Startup Time

 Oracle Instance Startup Time SET LINES 2000 SET PAGES 9999 COLUMN INSTANCE_NAME FOR A20 SELECT     instance_name,     to_char(startup_time,...