QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 727|回复: 3

oracle 9i 安装出错

[复制链接]
发表于 2004-6-22 09:25:06 | 显示全部楼层 |阅读模式
按照精华里bixuan的安装步骤,到了

[oracle@dugout linux]$ ./runInstaller
Initializing Java Virtual Machine from /tmp/OraInstall2004-06-22_09-03-19AM/jre/bin/java. Please wait...
Error occurred during initialization of VM
Unable to load native library: /tmp/OraInstall2004-06-22_09-03-19AM/jre/lib/i386/libjava.so: symbol __libc_wait, version GLIBC_2.0 not defined in file libc.so.6 with link time reference

我的一些环境变量
SSH_AGENT_PID=3518
HOSTNAME=dugout
TERM=xterm
SHELL=/bin/bash
DESKTOP_STARTUP_ID=
HISTSIZE=1000
PERL5LIB=/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi:/usr/lib/perl5/site_perl/5.8.0
GTK_RC_FILES=/etc/gtk/gtkrc:/home/dugout/.gtkrc-1.2-gnome2
WINDOWID=31457375
QTDIR=/usr/lib/qt-3.1
ORACLE_OWNER=oracle
USER=oracle
LD_LIBRARY_PATH=/opt/ora9/product/9.2/lib:
LS_COLORS=no=00:fi=00:di=00;34:ln=00;36:pi=40;33:so=00;35:bd=40;33;01:cd=40;33;01r=01;05;37;41:mi=01;05;37;41:ex=00;32:*.cmd=00;32:*.exe=00;32:*.com=00;32:*.btm=00;32:*.bat=00;32:*.sh=00;32:*.csh=00;32:*.tar=00;31:*.tgz=00;31:*.arj=00;31:*.taz=00;31:*.lzh=00;31:*.zip=00;31:*.z=00;31:*.Z=00;31:*.gz=00;31:*.bz2=00;31:*.bz=00;31:*.tz=00;31:*.rpm=00;31:*.cpio=00;31:*.jpg=00;35:*.gif=00;35:*.bmp=00;35:*.xbm=00;35:*.xpm=00;35:*.png=00;35:*.tif=00;35:
ORACLE_SID=ora9i
SSH_AUTH_SOCK=/tmp/ssh-GWAZ3466/agent.3466
ORACLE_BASE=/opt/ora9
SESSION_MANAGER=local/dugout:/tmp/.ICE-unix/3466
PATH=/opt/ora9/product/9.2/bin:/opt/ora9/product/9.2/bin:/opt/ora9/product/9.2/Apache/Apache/bin:/usr/local/java2/jdk/bin/:/opt/ora9/product/9.2/bin:/opt/ora9/product/9.2/bin:/opt/ora9/product/9.2/Apache/Apache/bin:/usr/kerberos/bin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/home/dugout/bin:./
MAIL=/var/spool/mail/dugout
PWD=/home/Disk1/install/linux
INPUTRC=/etc/inputrc
XMODIFIERS=@im=Chinput
JAVA_HOME=/usr/local/java2/jdk/
LANG=zh_CN.GB2312
THREADS_FLAG=native
ORACLE_TERM=vt100
LC=en_US
GDMSESSION=GNOME
SSH_ASKPASS=/usr/libexec/openssh/gnome-ssh-askpass
SHLVL=3
HOME=/home/oracle
LANGUAGE=zh_CN.GB2312:zh_CN.GB18030:en_US.UTF-8
LD_ASSUME_KERNEL=2.4.1
GNOME_DESKTOP_SESSION_ID=Default
LOGNAME=oracle
LC_CTYPE=zh_CN.GB2312
CLASSPATH=.:/usr/local/java2/jdk/jre/lib/rt.jar
LESSOPEN=|/usr/bin/lesspipe.sh %s
DISPLAY=:0.0
ORACLE_HOME=/opt/ora9/product/9.2
LC_TIME=en_US.UTF-8
G_BROKEN_FILENAMES=1
XAUTHORITY=/home/oracle/.xauth7HO0Jt
COLORTERM=gnome-terminal
 楼主| 发表于 2004-6-22 15:27:38 | 显示全部楼层
自己顶一下,这是RHEL3的bug,下面是解决之道,转自www.puschitz.com

Installing Oracle9iR2 on RH AS 3

Install the following RPMs (see Oracle Note:252217.1 for more information):

su - root
rpm -ivh \
compat-db-4.0.14-5.i386.rpm \
compat-gcc-7.3-2.96.122.i386.rpm \
compat-gcc-c++-7.3-2.96.122.i386.rpm \
compat-libstdc++-7.3-2.96.122.i386.rpm \
compat-libstdc++-devel-7.3-2.96.122.i386.rpm \
openmotif21-2.1.30-8.i386.rpm \
setarch-1.3-1.i386.rpm \
tcl-8.3.5-92.i386.rpm

Relink gcc so that the older gcc will be used during the Oracle installation (see Oracle Note:252217.1 for more information):

su - root
mv /usr/bin/gcc /usr/bin/gcc323
ln -s /usr/bin/gcc296 /usr/bin/gcc
mv /usr/bin/g++ /usr/bin/g++323      # if g++ doesn't exist, then gcc-c++ was not installed
ln -s /usr/bin/g++296 /usr/bin/g++


When you execute runInstaller from the Oracle 9iR2 (9.2.0) CD, you will get the following error message:

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


To resolve the __libc_wait symbol issue, download the patch p3006854_9204_LINUX.zip from http://metalink.oracle.com. See bug 3006854 for more information.

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
#

NOTE: If you get the following error when you run rhel3_pre_install.sh:

  rhel3_pre_install.sh: line 36: gcc: command not found

Then you forgot to install or link gcc, see above. This means you can't start any binaries any more:

# ls
ls: error while loading shared libraries: /etc/libcwait.so: cannot open shared object file: No such file or directory
# rm /etc/ld.so.preload
rm: error while loading shared libraries: /etc/libcwait.so: cannot open shared object file: No such file or directory
#

To fix that, run the echo command which is a built-in shell command:

# echo "" > /etc/ld.so.preload
rm /etc/ld.so.preload

And start over again.


Now runInstaller can be started from the CD:

su - oracle
$ echo $LD_ASSUME_KERNEL    # it is important that this variable is set!
2.4.1
$ /mnt/cdrom/runInstaller

- Welcome Screen:       Click Next
- Inventory Location:   Click Next
- Unix Group Name:      Use "oinstall" and click Next
                         When asked to run /tmp/orainstRoot.sh, run it before you click Continue
- File Locations:       Use default values
- Available Products:   Select "Oracle9i Database 9.2.0.1.0"
- Installation Types:   Select Custom since we only want to install the software for now
- Available Products:   Click Next or add some more components.
- Components Locations: Accept default values and click Next
- Privileged Operating System Groups:
                         I used the default values: OSDBA Group = dba, OSOPER Group = dba
- Oracle Managent Server Repository:
                         I used the default choice
- Create database:      Select NO since we first have to patch Oracle before a database can be created!
- Summary:              Start the Install
- Configuration tools:  Tools won't come up. Simply ignore it.
- At the end of the installation, exit runInstaller.



You may get the following errors:

Error in invoking target install of makefile /opt/oracle/product/9.2.0/network/lib/ins_oemagent.mk.

The /opt/oracle/product/9.2.0/install/make.log file reads:

  /opt/oracle/product/9.2.0/network/lib/libnmi.a(snmitcln.o)(.text+0xa4e): In function `Nls_FormatCmd':
  : undefined reference to `__ctype_b'
  /opt/oracle/product/9.2.0/network/lib/libnmi.a(snmitcln.o)(.text+0x159d): In function `Nls_ScanCmd':
  : undefined reference to `__ctype_b'
  /opt/oracle/product/9.2.0/network/lib/libnmi.a(snmitcln.o)(.text+0x1603): more undefined references to `__ctype_b' follow
  collect2: ld returned 1 exit status
  make: *** [dbsnmp] Error 1

Click ignore. This will be fixed by applying the patch 3119415 after the 9.2.0.4 patchset has been applied. You won't be able to apply the patch 3119415 at this time since the file /opt/oracle/oraInventory/ContentsXML/comps.xml doesn't exist yet.


Error in invoking target install of makefile /opt/oracle/product/9.2.0/ctx/lib/ins_ctx.mk.

The /opt/oracle/product/9.2.0/install/make.log file reads:

  /usr/bin/ld: ctxhx: hidden symbol `stat' in /usr/lib/libc_nonshared.a(stat.oS) is referenced by DSO
  collect2: ld returned 1 exit status
  make: *** [ctxhx] Error 1

Click ignore. This is fixed by applying the 9.2.0.4 patchset.


Patching Oracle9iR2 on RH AS 3

To patch Oracle9iR2, download the Oracle 9i Release 2 Patch Set 3 Version 9.2.0.4.0 for Linux x86 from http://metalink.oracle.com.

Copy the downloaded "p3095277_9204_LINUX.zip" file to e.g. /tmp and run the following command:

su - oracle
$ cp p3095277_9204_LINUX.zip /tmp
$ cd /tmp
$ unzip p3095277_9204_LINUX.zip
Archive:  p3095277_9204_LINUX.zip
  inflating: 9204_lnx32_release.cpio
  inflating: README.html
  inflating: patchnote.css
$
$ cpio -idmv < 9204_lnx32_release.cpio
Disk1/stage/locks
Disk1/stage/Patches/oracle.apache.isqlplus/9.2.0.4.0/1/DataFiles/bin.1.1.jar
Disk1/stage/Patches/oracle.apache.isqlplus/9.2.0.4.0/1/DataFiles/lib.1.1.jar
...


To patch the runInstaller, run:

su - oracle
$ echo $LD_ASSUME_KERNEL    # it is important that this variable is set!
2.4.1
$ cd /tmp/Disk1/
$ ./runInstaller

- Welcome Screen:       Click Next
- File Locations:       Use default values
- Available Products:   Select "Oracle Universial Installer 2.2.0.18.0 !"
- Components Locations: Accept default values and click Next
- Summary:              Start the Install
- At the end of the installation, you must exit runInstaller!

To patch Oracle9iR2, run:

su - oracle
$ echo $LD_ASSUME_KERNEL    # it is important that this variable is set!
2.4.1
$ cd $ORACLE_HOME/bin
$ ./runInstaller

- Welcome Screen:       Click Next
- File Locations:       Use default values
- Available Products:   Select "Oracle9iR2 Patch Set 3 9.2.0.4.0 !"
- Summary:              Start the Install
- At the end of the installation, exit runInstaller

You may get the following error:

Error in invoking target install of makefile /opt/oracle/product/9.2.0/network/lib/ins_oemagent.mk.

The /opt/oracle/product/9.2.0/install/make.log file reads:

  /opt/oracle/product/9.2.0/network/lib/libnmi.a(snmitcl.o)(.text+0x1cc): In function `get_ora_stmt_handle':
  : undefined reference to `__ctype_b'
  /opt/oracle/product/9.2.0/network/lib/libnmi.a(snmitcl.o)(.text+0x124e): In function `OraProcess_Oid':
  : undefined reference to `__ctype_b'
  /opt/oracle/product/9.2.0/network/lib/libnmi.a(snmitcl.o)(.text+0x176c): more undefined references to `__ctype_b' follow
  collect2: ld returned 1 exit status
  make: *** [dbsnmp] Error 1

Click ignore. This will be fixed by applying the patch 3119415 after the 9.2.0.4 patchset has been applied. The patch 3119415 cannot be applied while the patch process for the 9.2.0.4 patchset is running.


After the 9.2.0.4 patchset has been applied, download the patch p3119415_9204_LINUX.zip from http://metalink.oracle.com. See bug 3119415 for more information. Also, download the opatch Release 2.2.0 utility from http://metalink.oracle.com. See bug 2617419 for more information.

To install opatch, run:

su - oracle
$ cp p2617419_210_GENERIC.zip /tmp
$ cd /tmp
$ unzip p2617419_210_GENERIC.zip

Before you apply the 3119415 patch, you need to make sure the fuser binary can be found by the oracle user, see the PATH environment variable below. Otherwise the patch can't be applied because the fuser binary is used by opatch.

To apply the 3119415 patch, run

su - oracle
$ unzip p3119415_9204_LINUX.zip
$ cd 3119415
$ export PATH=$PATH:/tmp/OPatch
$ export PATH=$PATH:/sbin        # the patch needs "fuser" which is located in /sbin
$ which opatch
/tmp/OPatch/opatch
$ opatch apply


Now you should be able to create a database with dbca:

su - oracle
dbca


Patching Oracle Intelligent Agent on RH AS 3

When you run "agentctl start" (Oracle 9.2.0.4), dbsnmp will crash:

$ su - oracle
$ agentctl start

DBSNMP for Linux: Version 9.2.0.4.0 - Production on 07-JAN-2004 19:11:14

Copyright (c) 2003 Oracle Corporation.  All rights reserved.

Starting Oracle Intelligent Agent.../opt/oracle/product/9.2.0/bin/dbsnmpwd: line 156:  1855 Segmentation fault      nohup $ORACLE_HOME/bin/dbsnmp $*
>>$DBSNMP_WDLOGFILE 2>&1
/opt/oracle/product/9.2.0/bin/dbsnmpwd: line 156:  1868 Segmentation fault      nohup $ORACLE_HOME/bin/dbsnmp $* >>$DBSNMP_WDLOGFILE 2>&1
/opt/oracle/product/9.2.0/bin/dbsnmpwd: line 156:  1880 Segmentation fault      nohup $ORACLE_HOME/bin/dbsnmp $* >>$DBSNMP_WDLOGFILE 2>&1
/opt/oracle/product/9.2.0/bin/dbsnmpwd: line 156:  1892 Segmentation fault      nohup $ORACLE_HOME/bin/dbsnmp $* >>$DBSNMP_WDLOGFILE 2>&1


To resolve this problem, apply the patch p3238244_9204_LINUX.zip from http://metalink.oracle.com. See bug/patch 3238244 for more information.

Before you apply the patch, make sure the instance is down!

Also make sure the opatch script appears in your $PATH. See "Patching Oracle9iR2 on Red Hat AS 3" for information on getting and installing opatch. To verify if opatch is in your $PATH, run the which command:

$ su - oracle
$ which opatch
/tmp/OPatch/opatch
$


To apply now the patch, run:

$ su - oracle
$ unzip p3238244_9204_LINUX.zip
$ cd 3238244
$ export PATH=$PATH:/sbin        # the patch needs "fuser" which is located in /sbin
$ opatch apply

Now you need to relink dbsnmp. This is the binary that crashed when running agentctl start. To find which makefile handles the linking of dbsnmp, you can run:

$ su - oracle
$ find $ORACLE_HOME -name "*.mk" | xargs grep -l dbsnmp
/opt/oracle/product/9.2.0/network/lib/ins_oemagent.mk
/opt/oracle/product/9.2.0/network/lib/env_oemagent.mk
$


I relinked dbsnmp and all associated executables which are maintained by the ins_oemagent.mk makefile:

$ su - oracle
$ cd $ORACLE_HOME/network/lib
$ make -f ins_oemagent.mk install


Now you should be able to start the agent:

$ su - oracle
$ agentctl start


NOTE: Don't forget to undo the changes (links) to /usr/bin/gcc and /usr/bin/g++ if you don't need it any more. Also don't forget the /etc/ld.so.preload file.
回复

使用道具 举报

发表于 2004-6-29 01:19:08 | 显示全部楼层
回复

使用道具 举报

发表于 2004-6-29 01:19:23 | 显示全部楼层
good good study , day day up  
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-11-8 06:34 , Processed in 0.078732 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表