安装12c遇到 Error in invoking target 'irman ioracle' of makefile

在OEL6.4、OEL5.7上多次安装Oracle12c都是报这个错误,在网上找到的解决办法修改ins_rdbms.mk 没用 ! 
vi ins_rdbms.mk

879 $(PLSHPROF) : $(ALWAYS) $(PLSHPROF_DEPS)
 880         $(SILENT)$(ECHO)
 881         $(SILENT)$(ECHO) " - Linking hierarchical profiler utility (plshprof)"
 882         $(RMF) $@
 883         $(PLSHPROF_LINKLINE) - lons
 884
 885 $(DBFSIZE) : $(ALWAYS) $(DBFSIZE_DEPS)
 886         $(SILENT)$(ECHO)
 887         $(SILENT)$(ECHO) " - Linking database file size utility (dbfsize)"
 888         $(RMF) $@
 889         $(DBFSIZE_LINKLINE)
 890
 891 $(CURSIZE) : $(ALWAYS) $(CURSIZE_DEPS)
 892         $(SILENT)$(ECHO)
 893         $(SILENT)$(ECHO) " - Linking cursor size utility (cursize)"
 894         $(RMF) $@
 895         $(CURSIZE_LINKLINE)
 896
 897 $(RMAN) : $(ALWAYS) $(RMAN_DEPS)
 898         $(SILENT)$(ECHO)
 899         $(SILENT)$(ECHO) " - Linking recovery manager (rman)"
 900         $(RMF) $@
 901         $(RMAN_LINKLINE) - lons



在/u01/app/oraInventory/logs/installActions2015-01-31_06-49-16AM.log 的最后一段发现了问题的关键就是缺少 javavm12

INFO: /usr/bin/ld: cannot find -ljavavm12
collect2: ld returned 1 exit status

INFO: make: *** [/u01/app/oracle/product/12.1.0/db_1/rdbms/lib/oracle] Error 1

INFO: End output from spawned process.
INFO: ----------------------------------
INFO: Exception thrown from action: make
Exception Name: MakefileException
Exception String: Error in invoking target 'irman ioracle' of makefile '/u01/app/oracle/product/12.1.0/db_1/rdbms/lib/ins_rdbms.mk'. See '/u01/app/oraInventory/logs/installActions2015-02-01_10-00-19AM.log' for details.
Exception Severity: 1


解决方案:
找到libjavavm12复制到$ORACLE_HOME/lib下

1, 查找javavm12
# find / -name *javavm12*
/u01/app/oracle/product/12.1.0/db_1/javavm/jdk/jdk7/lib/libjavavm12.a
/u01/app/oracle/product/12.1.0/db_1/javavm/jdk/jdk6/lib/libjavavm12.a

2, 确认$ORACLE_HOME/lib确实没有该文件
cd $ORACLE_HOME/lib
$ ls -l *java*
-rw-r--r-- 1 oracle oinstall 2469823 Jan 14  2013 libcorejava.so

3, 将/u01/app/oracle/product/12.1.0/db_1/javavm/jdk/jdk7/lib/libjavavm12.a 复制到$ORACLE_HOME/lib
[oracle@oracle12c lib]$ cp /u01/app/oracle/product/12.1.0/db_1/javavm/jdk/jdk7/lib/libjavavm12.a .

4, 
[oracle@oracle12c lib]$ ls -l *java*
-rw-r--r-- 1 oracle oinstall  2469823 Jan 14  2013 libcorejava.so
-rw-r--r-- 1 oracle oinstall 31158646 Feb  1 10:31 libjavavm12.a

回到图形页面点击retry,问题解决!

你可能感兴趣的:(oracle)