RHEL5.1 安装Oracle 10g

开始安装ORACLE
当我执行runInstaller命令开始安装时,跳出如下错误:

Using paramFile: /utils/database/install/oraparam.ini

Checking installer requirements...

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

这个问题是因为默认rhel5不支持10g,通过修改安装文件
# vi /10201_database_linux32/database/install/oraparam.ini
[Certified Versions]
Linux=redhat-3,SuSE-9,redhat-4,redhat-5,UnitedLinux-1.0,asianux-1,asianux-2(增加了redhat-5)
再添加
[Linux-redhat-5.0-optional]
TEMP_SPACE=80
SWAP_SPACE=150
MIN_DISPLAY_COLORS=256

修改完成后,继续安装,又出现如下报错:
Preparing to launch Oracle Universal Installer from /tmp/OraInstall2008-05-12_07-36-01PM. Please wait ...[oracle@
localhost database]$ Exception in thread "main" java.lang.UnsatisfiedLinkError: /tmp/OraInstall2008-05-12_07-36-0
1PM/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.<clinit>(Unknown Source)
        at java.awt.Component.<clinit>(Unknown Source)

在RHEL5以前这个错误是因为缺少XFree86-libs或xorg-x11-deprecated-libs这两个包其中一个(版本不同包不同),而在RHEL5中前面的包被libXp所取代了,因此找到libXp-1.0.0-8.i386.rpm包。
# rpm -ivh libXp-1.0.0-8.i386.rpm

 

 

安装过程出现如下错误
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%]

[root@dbatest1 tmp]# rpm -ivh compat-libstdc++-33-3.2.3-61.x86_64.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%]

 

之后安装顺利完成。

你可能感兴趣的:(java,oracle,linux,redhat,SuSE)