在Radhat 5 上安裝Oracle 10g(轉)

tonywi888發表於2009-07-02

環境:
1.作業系統
[root@dbatest1 ~]# cat /etc/redhat-release
Red Hat Enterprise Linux release 5 (Tikanga)
[root@dbatest1 ~]# uname -a
Linux dbatest1 2.6.18-8.el5 #1 SMP Fri Jan 26 14:15:21 EST 2007 i686 i686 i386 GNU/Linux

2. Oracle 版本
Oracle Database 10g Enterprise Edition Release 10.2.0.3.0

安裝過程遇到的問題

1.在redhat5中無法透過系統檢查
#./runInstaller
Starting Oracle Universal Installer...

Checking installer requirements...

Checking operating system version: must be redhat-3, SuSE-9, redhat-4, UnitedLinux-1.0, asianux-1 or asianux-2
                                      Failed <<<<

Exiting Oracle Universal Installer, log for this session can be found at /u01/oracle/oraInventory/logs/installActions2008-08-14_12-18-01PM.log

解決方法: 新增-ignoreSysPrereqs跳過系統檢查

#./runInstaller -ignoreSysPrereqs
Starting Oracle Universal Installer...

Checking installer requirements...

Checking operating system version: must be redhat-3, SuSE-9, redhat-4, UnitedLinux-1.0, asianux-1 or asianux-2
                                      Failed <<<<


>>> Ignoring required pre-requisite failures. Continuing...

Preparing to launch Oracle Universal Installer from /tmp/OraInstall2008-08-14_10-45-36AM. Please wait#Oracle Universal Installer, Version 10.2.0.1.0 Production
Copyright (C) 1999, 2005, Oracle. All rights reserved.

Exception .lang.UnsatisfiedLinkError: /tmp/OraInstall2008-08-14_10-45-36AM/jre/1.4.2/lib/i386/libawt.so: libXp.so.6: cannot open shared object file: No such file or directory occurred..
java.lang.UnsatisfiedLinkError: /tmp/OraInstall2008-08-14_10-45-36AM/jre/1.4.2/lib/i386/libawt.so: libXp.so.6: cannot open shared object file: No such file or directory
        at java.lang.ClassLoader$NativeLibrary.load(Native Method)
        at java.lang.ClassLoader.loadLibrary0(Unknown Source)
        at java.lang.ClassLoader.loadLibrary(Unknown Source)
        at java.lang.Runtime.loadLibrary0(Unknown Source)
        at java.lang.System.loadLibrary(Unknown Source)
        at sun.security.action.LoadLibraryAction.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at sun.awt.NativeLibLoader.loadLibraries(Unknown Source)
        at sun.awt.DebugHelper.(Unknown Source)
        at java.awt.Component.(Unknown Source)
        at oracle.sysman.oii.oiif.oiifm.OiifmGraphicInterfaceManager.(OiifmGraphicInterfaceManager.java:222)
        at oracle.sysman.oii.oiic.OiicSessionInterfaceManager.createInterfaceManager(OiicSessionInterfaceManager.java:193)
        at oracle.sysman.oii.oiic.OiicSessionInterfaceManager.getInterfaceManager(OiicSessionInterfaceManager.java:202)
        at oracle.sysman.oii.oiic.OiicInstaller.getInterfaceManager(OiicInstaller.java:436)
        at oracle.sysman.oii.oiic.OiicInstaller.runInstaller(OiicInstaller.java:926)
        at oracle.sysman.oii.oiic.OiicInstaller.main(OiicInstaller.java:866)
Exception in thread "main" java.lang.NoClassDefFoundError
        at oracle.sysman.oii.oiif.oiifm.OiifmGraphicInterfaceManager.(OiifmGraphicInterfaceManager.java:222)
        at oracle.sysman.oii.oiic.OiicSessionInterfaceManager.createInterfaceManager(OiicSessionInterfaceManager.java:193)
        at oracle.sysman.oii.oiic.OiicSessionInterfaceManager.getInterfaceManager(OiicSessionInterfaceManager.java:202)
        at oracle.sysman.oii.oiif.oiifm.OiifmAlert.(OiifmAlert.java:151)
        at oracle.sysman.oii.oiic.OiicInstaller.runInstaller(OiicInstaller.java:984)
        at oracle.sysman.oii.oiic.OiicInstaller.main(OiicInstaller.java:866)


2.出現如下錯誤

Preparing to launch Oracle Universal Installer from /tmp/OraInstall2008-08-14_10-45-36AM. Please wait#Oracle Universal Installer, Version 10.2.0.1.0 Production
Copyright (C) 1999, 2005, Oracle. All rights reserved.

Exception java.lang.UnsatisfiedLinkError: /tmp/OraInstall2008-08-14_10-45-36AM/jre/1.4.2/lib/i386/libawt.so: libXp.so.6: cannot open shared object file: No such file or directory occurred..
java.lang.UnsatisfiedLinkError: /tmp/OraInstall2008-08-14_10-45-36AM/jre/1.4.2/lib/i386/libawt.so: libXp.so.6: cannot open shared object file: No such file or directory

解決方法:安裝以下兩個包

[root@dbatest1 tmp]# rpm -ivh xorg-x11-deprecated-libs-6.9.0-1.112.16.14asp.i386.rpm
warning: xorg-x11-deprecated-libs-6.9.0-1.112.16.14asp.i386.rpm: Header V3 DSA signature: NOKEY, key ID 9b3c94f4
Preparing...                ########################################### [100%]
   1:xorg-x11-deprecated-lib########################################### [100%]

[root@dbatest1 tmp]# rpm -ivh libXp-1.0.0-8.1.el5.i386.rpm
warning: libXp-1.0.0-8.1.el5.i386.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
Preparing...                ########################################### [100%]
   1:libXp                  ########################################### [100%]
  
3.當安裝84%在link database時,出現如下錯誤
Error in invoking target 'all_no_orcl ihsodbc' of makefile '/u01/oracle/product/10.2.0.3/rdbms/lib/ins_rdbms.mk'.
See '/u01/oracle/oraInventory/logs/installActions2008-08-14_12-07-44PM.log' for details.

解決方法:安裝以下包可解決

[root@dbatest1 tmp]# rpm -ivh compat-libstdc++-33-3.2.3-61.i386.rpm
warning: compat-libstdc++-33-3.2.3-61.i386.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
Preparing...                ########################################### [100%]
   1:compat-libstdc++-33    ########################################### [100%]

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

相關文章