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

snowdba發表於2015-02-01
在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,問題解決!

困擾了我一天的問題,心情極其煩躁,希望此文能幫助到其他同學!

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/29047826/viewspace-1422559/,如需轉載,請註明出處,否則將追究法律責任。

相關文章