日期:2014-05-16  浏览次数:20377 次

RHEL5.4与SLES11下安装oracle9i
一个古老的系统(AIX4.3+oracle9i)需要迁移到新的x86机器,并且没有开发人员的支持,为了适应新的机器,操作系统打算使用RHEL5.4或者SLES11 SP1。
一开始在64位SUSE Linux Enterprise Server 11 SP1下安装oracle9i,当进行到18%时hang住了,此时显示的是copying naeet.o。
换成在64位Red Hat Enterprise Linux Server release 5.4下安装oracle9i,当进行到17%时hang住,此时也显示的是copying naeet.o。
google了很久也没用找到办法,估计也没人安装成功过,于是换成32位操作系统测试,都成功了,记录如下。
(一)先说SUSE LINUX。
32位SUSE Linux Enterprise Server 11下安装oracle9i需要下载2个RPM:
1)compat-2010.1.31-6.1.i586.rpm,下载地址:
http://download.csdn.net/download/lordcoohoo/4704111
2)gcc_old-2.95.3-175.2.i586.rpm,下载地址:
http://download.csdn.net/download/lordcoohoo/4704133
先安装compat-2010.1.31-6.1.i586.rpm,再安装gcc_old-2.95.3-175.2.i586.rpm。
gcc安装完毕还需要进行如下设置:
# cd /usr/lib
# ln -s /opt/gcc295/bin/gcc /usr/bin/gcc
# ln -s /opt/gcc295/bin/g++ /usr/bin/g++
第1个RPM不安装的话,安装会报错,如下:
oracle@suse11:~/source/Disk1> ./runInstaller
oracle@suse11:~/source/Disk1> Initializing Java Virtual Machine from /tmp/OraInstall2012-10-29_04-09-38PM/jre/bin/java. Please wait...
/tmp/OraInstall2012-10-29_04-09-38PM/jre/bin/i386/native_threads/java: error while loading shared libraries: libstdc++-libc6.1-1.so.2: cannot open shared object file: No such file or directory
第2个RPM不安装的话,安装到61%的时候出错:
Error in invoking target relink of makefile /opt/oracle/product/9iR2/precomp/lib/ins_precomp.mk
安装到最后运行root.sh的时候会报错:
suse11:/usr/lib # /opt/oracle/product/9iR2/root.sh
Running Oracle9 root.sh script...
\nThe following environment variables are set as:
    ORACLE_OWNER= oracle
    ORACLE_HOME=  /opt/oracle/product/9iR2

Enter the full pathname of the local bin directory: [/usr/local/bin]:
   Copying dbhome to /usr/local/bin ...
   Copying oraenv to /usr/local/bin ...
   Copying coraenv to /usr/local/bin ...

\nCreating /etc/oratab file...
Adding entry to /etc/oratab file...
Entries will be added to the /etc/oratab file as needed by
Database Configuration Assistant when a database is created
Finished running generic part of root.sh script.
Now product-specific root actions will be performed.

Starting RPM to install the Legato Single Server Version (LSSV) product.
Form more information, please refer to the Linux installation section
in the LSSV Installation Guide at  http://www.legato.com/LSSV

error: Failed dependencies:
        libncurses.so.4 is needed by orclclnt-nw_lssv.Build.71-1.i386
        libtermcap.so.2 is needed by orclclnt-nw_lssv.Build.71-1.i386
error: Failed dependencies:
        orclclnt = nw_lssv.Build.71-1 is needed by orcldrvr-nw_lssv.Build.71-1.i                                                                                                                     386
error: Failed dependencies:
        orclclnt = nw_lssv.Build.71-1 is needed by orclnode-nw_lssv.Build.71-1.i                                        &nbs