在 Redhat Enterprise Linux 3 上安装了好几次 Oracle 9i(2.0.4.0) 了,就是忘记了以下的几个 trouble shooting.
OS :RedHat Enterprise Linux ES3 update6
ORACLE :Oracle9i Database Release2 (9.2.0.4.0) for Linux
Error occurred during initialization of VM
Unable to load native library: /tmp/OraInstall2003-10-25_03-14-57PM/jre/lib/i386/libjava.so:
symbol __libc_wait, version GLIBC_2.0 not defined in file libc.so.6 with link time reference
Google 了以下,发现原来是需要打一个补丁:
To resolve the __libc_wait symbol issue, download the p3006854_9204 patch p3006854_9204_LINUX.zip from http://metalink.oracle.com. See bug 3006854 for more information.当然,这个补丁可以在Oracle 9i的 CD(UpdateCD)的 rhel3 文件夹里面找到。To apply the patch, run
su - root
# unzip p3006854_9204_LINUX.zip
Archive: p3006854_9204_LINUX.zip
creating: 3006854/
inflating: 3006854/rhel3_pre_install.sh
inflating: 3006854/README.txt# cd 3006854
# sh rhel3_pre_install.sh
Applying patch...
Patch successfully applied
#
------------------------------------------------
[oracle@server oracle]$ dbca
/opt/app/oracle/product/9.2.0/bin/dbca: line 124: 2582 強制終了 $JRE_DIR/bin/jre -DORACLE_HOME=$OH -DJDBC_PROTOCOL=thin -mx64m -classpath $CLASSPATH oracle.sysman.assistants.dbca.Dbca $ARGUMENTS
------------------------------------------------
解决方法:
找到了一篇很牛的文章:
[Oracle] Installing Oracle 9iR2 on RHEL AS 3 Step-by-Step
要解决这个问题:
$ vi $ORACLE_HOME/bin/dbca
将下面列出的除第3 行外的其余行注释掉.(119-124行)
#if [ -f /etc/rac_on ]; then
#Run DBCA
$JRE_DIR/bin/jre -native -DORACLE_HOME=$OH...... //保留这一行
#else
#Run DBCA
#$JRE_DIR/bin/jre -DORACLE_HOME=$OH......
#fi
备注:
在使用script建立完数据库后,由于没有在原本的对话框建立过程中设置 sys 和 system 的密码,所以这里备注一笔:
SYSTEM (default password: MANAGER )这个可以在 Oracle9i Database Administrator's Guide 里面找到相关的备注。(不能保证是否可以登陆。)
(END)