oracle 10G 安装排错指南(转)

作者: shinqw 2011-06-21 14:56:51
oracle的安装其实很简单,甲骨文官方也有相应的文档可查。

我来说说安装过程中的可能出现几个问题。

对于一般的生产环境来说,linux主机是不会安装桌面程序的。

我们可以Xmanager 等工具将安装界面显示在工作环境下的windows主机上,具体步骤如下:

1>首先为你的windows主机安装ssh远程工具。

2>通过ssh远程工具连接到oracle服务器。

3>#export DISPLAY=windows主机ip:0

通过以上3步操作,就完成了把oracle安装界面显示到windows主机上的操作了!

接下来执行安装命令就可以了!

下面我说下oracle10g安装过程中可能出现的几个报错:

1.

INFO: mv -f /oracle/app/product/10.2.0/db_1/bin/ctxlc /oracle/app/product/10.2.0/db_1/bin/ctxlcO

INFO: mv ctxlc /oracle/app/product/10.2.0/db_1/bin/ctxlc


INFO: chmod 751 /oracle/app/product/10.2.0/db_1/bin/ctxlc

INFO: gcc -m32 -o ctxhx -L/oracle/app/product/10.2.0/db_1/ctx//lib32/ -L/oracle/app/product/10.2.0/db_1/lib32/ -L/oracle/app/product/10.2.0/db_1/lib32/stubs/ /oracle/app/product/10.2.0/db_1/ctx/lib/ctxhx.o -L/oracle/app/product/10.2.0/db_1/ctx/lib/ -ldl -lm -lctxhx -Wl,-rpath,/oracle/app/product/10.2.0/db_1/ctx/lib -lsnls10 -lnls10 -lcore10 -lsnls10 -lnls10 -lcore10 -lsnls10 -lnls10 -lxml10 -lcore10 -lunls10 -lsnls10 -lnls10 -lcore10 -lnls10 `cat /oracle/app/product/10.2.0/db_1/lib/sysliblist`

INFO: /usr/bin/ld: crt1.o: No such file: No such file or directory

INFO: collect2: ld returned 1 exit status

INFO: make: *** [ctxhx] Error 1

INFO: End output from spawned process.
INFO: ----------------------------------
INFO: Exception thrown from action: make
Exception Name: MakefileException
Exception String: Error in invoking target 'install' of makefile '/oracle/app/product/10.2.0/db_1/ctx/lib/ins_ctx.mk'. See '/oracle/app/oraInventory/logs/installActions2010-11-23_12-04-56PM.log' for details.
Exception Severity: 1

解决方法:rpm -ivh glibc-devel-2.5-49.i386.rpm

2.

INFO: /oracle/app/product/10.2.0/db_1/lib32//libnls10.a(lmsagb.o):
INFO: In function `lmsagbcmt':
lmsagb.c:(.text+0xa3): undefined reference to `SltsPrRead'
lmsagb.c:(.text+0x10a): undefined reference to `SltsPrUnlock'
/oracle/app/product/10.2.0/db_1/lib32//libnls10.a(lmsagb.o): In function `lmsagb1':
lmsagb.c:(.text+0x47e): undefined reference to `SltsPrUnlock'
lmsagb.c:(.text+0x48a): undefined reference to `SltsPrWrite'
/oracle/app/product/10.2.0/db_1/lib32//libnls10.a(lmsamts.o): In function `lmsamtsini':
lmsamts.c:(.text+0xa5): undefined reference to `SltsPrInit'
/oracle/ap
INFO: p/product/10.2.0/db_1/lib32//libnls10.a(lmsamts.o): In function `lmsamtster':
lmsamts.c:(.text+0x255): undefined reference to `SltsPrDestroy'
/oracle/app/product/10.2.0/db_1/lib32//libnls10.a(lxldlbb.o): In function `lxldlbb':
lxldlbb.c:(.text+0x37f): undefined reference to `slste2a'
/oracle/app/product/10.2.0/db_1/lib32//libnls10.a(lxlfrd.o): In function `lxladjobj':
lxlfrd.c:(.text+0x551): undefined reference to `slste2a'
lxlfrd.c:(.text+0x147d): undefined reference to `slste2a'
lxlfrd.c:(.text+0x1510): u
INFO: ndefined reference to `slste2a'
lxlfrd.c:(.text+0x15aa): undefined reference to `slste2a'
/oracle/app/product/10.2.0/db_1/lib32//libnls10.a(lxlfrd.o):lxlfrd.c:(.text+0x1607): more undefined references to `slste2a' follow
/oracle/app/product/10.2.0/db_1/lib32//libnls10.a(lxlgsz.o): In function `lxlgsz':
lxlgsz.c:(.text+0x82): undefined reference to `lcvb2w'
/oracle/app/product/10.2.0/db_1/lib32//libnls10.a(lxocmpst.o): In function `lxoCmpStr':
lxocmpst.c:(.text+0x3a3): undefined reference to `lmebucp'
/oracl
INFO: e/app/product/10.2.0/db_1/lib32//libnls10.a(slms.o): In function `slmspe':
slms.c:(.text+0x6c5): undefined reference to `slcgems'
/oracle/app/product/10.2.0/db_1/lib32//libnls10.a(lxscdj.o): In function `lxscdja':
lxscdj.c:(.text+0x1a4): undefined reference to `slmaacb'
lxscdj.c:(.text+0x1bc): undefined reference to `slmaacb'
/oracle/app/product/10.2.0/db_1/lib32//libnls10.a(lxscdj.o): In function `lxscdjl':
lxscdj.c:(.text+0x3dc): undefined reference to `slmaacb'
lxscdj.c:(.text+0x3f1): undefined reference
INFO: to `slmaacb'
/oracle/app/product/10.2.0/db_1/lib32//libnls10.a(lxscdt.o): In function `lxscdth':
lxscdt.c:(.text+0x125): undefined reference to `slmaacb'
/oracle/app/product/10.2.0/db_1/lib32//libnls10.a(lxscdt.o):lxscdt.c:(.text+0x13d): more undefined references to `slmaacb' follow
/oracle/app/product/10.2.0/db_1/lib32//libnls10.a(lxecg2e.o): In function `lxecg2e':
lxecg2e.c:(.text+0xb0): undefined reference to `ldxnbeg'
lxecg2e.c:
INFO: (.text+0xf2): undefined reference to `ldxdtd'
lxecg2e.c:(.text+0x270): undefined reference to `ldxdtd'
lxecg2e.c:(.text+0x2d7): undefined reference to `ldxdtd'
lxecg2e.c:(.text+0x493): undefined reference to `ldxdtd'
lxecg2e.c:(.text+0x681): undefined reference to `ldxdtd'
lxecg2e.c:(.text+0x6b7): undefined reference to `ldxdfd'
/oracle
INFO: /app/product/10.2.0/db_1/lib32//libnls10.a(lxecg2i.o): In function `lxecg2i':
lxecg2i.c:(.text+0xf0): undefined reference to `ldxnbeg'
lxecg2i.c:(.text+0x120): undefined reference to `ldxdfd'
lxecg2i.c:(.text+0x164): undefined reference to `ldxdtd'
lxecg2i.c:(.text+0x204): undefined reference to `ldxnbeg'
lxecg2i.c:(.text+0x231): undefined reference to `ldxdtd'
lxecg2i.c:(.text+0x314): undefined reference to `ldxnbeg'
lxecg2i.c:(.text+0x340): undefined reference to `ldxdfd'
/oracle/app/product/10.2.0/db_1/l
INFO: ib32//libnls10.a(lxecg2l.o): In function `lxecg2l':
lxecg2l.c:(.text+0x13f): undefined reference to `ldxnbeg'
lxecg2l.c:(.text+0x16f): undefined reference to `ldxdtd'
lxecg2l.c:(.text+0x48b): undefined reference to `ldxnbeg'
lxecg2l.c:(.text+0x4b7): undefined reference to `ldxdfd'
/oracle/app/product/10.2.0/db_1/lib32//libunls10.a(lxu4tstc.o): In function `lxu4TstClsXMLPubidChar0':
lxu4tstc.c:(.text+0x8b4): undefined reference to `lxpTstClsXMLPubidCharTbl'
/oracle/app/product/10.2.0/db_1/lib32//libunls10.a(
INFO: lxu4dec.o): In function `lxu4Decomposition':
lxu4dec.c:(.text+0x18b): undefined reference to `lxujmd'
collect2: ld returned 1 exit status

INFO: make[1]: *** [/oracle/app/product/10.2.0/db_1/sysman/lib/e2eme] Error 1

INFO: make[1]: Leaving directory `/oracle/app/product/10.2.0/db_1/sysman/lib'

INFO: make: *** [e2eme] Error 2

INFO: End output from spawned process.
INFO: ----------------------------------
INFO: Exception thrown from action: make
Exception Name: MakefileException
Exception String: Error in invoking target 'agent nmo nmb' of makefile '/oracle/app/product/10.2.0/db_1/sysman/lib/ins_sysman.mk'. See '/oracle/app/oraInventory/logs/installActions2010-11-23_12-04-56PM.log' for details.
Exception Severity: 1

解决办法:

确认以下包有没有安装,然后重启图形界面再次安装

libgomp-4.4.0-6.el5.x86_64.rpm \
kernel-headers-2.6.18-164.el5.x86_64.rpm \
glibc-headers-2.5-42.x86_64.rpm \
libstdc++-devel-4.1.2-46.el5.x86_64.rpm \
sysstat-7.0.2-3.el5.x86_64.rpm \
glibc-devel-2.5-42.x86_64.rpm \
libaio-devel-0.3.106-3.2.x86_64.rpm \
gcc-4.1.2-46.el5.x86_64.rpm \
gcc-c++-4.1.2-46.el5.x86_64.rpm \
elfutils-libelf-devel-static-0.137-3.el5.x86_64.rpm \
elfutils-libelf-devel-0.137-3.el5.x86_64.rpm \
libtermcap-devel-2.0.8-46.1.x86_64.rpm \
readline-devel-5.1-3.el5.x86_64.rpm \
unixODBC-2.2.11-7.1.x86_64.rpm \
unixODBC-devel-2.2.11-7.1.x86_64.rpm \
glibc-devel-2.5-42.i386.rpm \
libaio-devel-0.3.106-3.2.i386.rpm \
compat-db-4.2.52-5.1.x86_64.rpm \
compat-gcc-34-3.4.6-4.x86_64.rpm \
compat-gcc-34-c++-3.4.6-4.x86_64.rpm \
gdb-6.8-37.el5.x86_64.rpm \
libXp-1.0.0-8.1.el5.i386.rpm \
libstdc++-devel-4.1.2-46.el5.i386.rpm
compat-libstdc++-296-2.96-132.7.2.i386.rpm
compat-libstdc++-33-3.2.3-47.3.i386.rpm

以上是oracle安装时oracle后台编译的编译错误!

因生产环境的主机在安装linux系统时一般不会把软件包安装完整,所以在安装oracle前要检查oracle所需的软件包是否完整,以避免安装时出现不必要的麻烦!

相关资讯