redhat6.3上安裝oracle10g遇到的問題,redhat6.3oracle10g

來源:互聯網
上載者:User

redhat6.3上安裝oracle10g遇到的問題,redhat6.3oracle10g
版本描述:

作業系統版本:redhat6.3  x64

oracle版本:10.2.0.1


經驗之談:

今天在這個版本匹配中,遇到一些問題。主要是包缺失造成的,再次總結一下。

如果要在redhat6 64位平台上安裝oracle10g。

你在常規檢查的包之外,還需要安裝以下包的32位版本(預設這些包的64位版本已經安裝過了)。


對,這就是奇特的地方,你在64位作業系統上安裝64位軟體的時候,還必須安裝一些32位的包。


這些包有

libXp

libXt

libXtst

glibc-devel

後面加上.i686就是完整的包名了。


另外安裝前需要提前將以下環境變數定義好

export ORACLE_BASE=/oracle

export ORACLE_HOME=/oracle/product/10.2.0/db_1

export  LD_LIBRARY_PATH=$ORACLE_HOME/lib

export  PATH=$PATH:$ORACLE_HOME/bin

主要是 LD_LIBRARY_PATH這個。


不注意以上操作會遇到的問題:


如果沒有這些32位的包,按照我遇到的順序,你在安裝軟體的過程中,會依次遇到以下錯誤

1、error in invoking target 'install' of makefile '/u01/app/oracle/product/10201/db_1/ctx/lib/ins_ctx.mk'

2、error in invoking target 'install' of makefile '/u01/app/oracle/product/10201/db_1/ctx/lib/ins_sysman.mk'


裝完上述的包,以上兩個問題應該就不會出現了。

但還會出現第三個問題

3. Error in invoking target 'collector' of makefile '/u01/app/oracle/product/10.2.0/db_1/sysman/lib/ins_emdb.mk'. 

針對這個問題,我的操作是按照網上說的

直接continue,安裝完成。

完成後,進入$ORACLE_HOME/bin目錄下,執行./relink all

第一次這個命令也報錯,然後定義下這個環境變數就能執行成功了。

export LD_LIBRARY_PATH=$ORACLE_HOME/lib

執行過程中會遇到

cp: cannot stat `/DISCARD/': No such fileor directory

這個問題可以直接忽略掉。參考:http://www.linuxidc.com/Linux/2012-07/66113.htm


至於是否可以通過輸出這個變數直接pass掉第3個報錯,沒有測試。


相關文章

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.