$ sh /u/install/runInstaller
假如不能出现安装画面,查看本文后面的FAQ。
非常值得称道的是,10g 的安装相比以前的多了一个Checking operating system
certification 的步骤。非凡实用。
安装文件会自动检测所需的条件。假如有不符合的地方,安装程序会报告给你.并会给出
具体原因。大大减少了出错的可能.下面是检查成功输出的内容:
Checking operating system certification
EXPected result: One of redhat-2.1,redhat-3,UnitedLinux-1.0
Actual Result: redhat-3
Check complete. The overall result of this check is: Passed
==============================================
Checking kernel parameters
Checking for VERSION=2.4.9.25; found VERSION=2.4.21. Passed
Checking for shmall=2097152; found shmall=2097152. Passed
Checking for shmseg=10; found shmseg=4096. Passed
Checking for semmsl=250; found semmsl=250. Passed
Checking for semmni=128; found semmni=128. Passed
Checking for filemax=65536; found filemax=65536. Passed
Checking for shmmni=4096; found shmmni=4096. Passed
Checking for semmns=32000; found semmns=32000. Passed
Checking for semopm=100; found semopm=100.Passed
Checking for shmmin=1; found shmmin=1. Passed
Checking for shmmax=2147483648; found shmmax=2147483648. Passed
Check complete. The overall result of this check is: Passed
==============================================
Checking recommended operating system packages
Checking for make-3.79; found make-3.79.1-17. Passed
Checking for binutils-2.11.90.0.8-12; found binutils-2.14.90.0.4-26. Passed
Checking for gcc-2.96; found gcc-3.2.3-20. Passed
Checking for openmotif-2.1.30-11; found openmotif-2.2.2-16. Passed
Check complete. The overall result of this check is: Passed
==============================================
Checking recommended glibc version
Expected result: 2.2.4.31.7
Actual Result: 2.3.2.95.3
Check complete. The overall result of this check is: Passed
==============================================
=====================
Validating Oracle_BASE location (if set)
Check complete. The overall result of this check is: Passed
==============================================
其他的步骤比较清楚,不再赘述.
最后系统会提示你运行root.sh 文件.按照提示做即可.
三FAQ (在Linux 平台安装Oracle 比较常见)
3.1 不能启动安装界面
运行runInstaller 提示信息类似如下:
xlib:connection to "localhost:0.0" refused by server
xlib:client is not authorized to connect to server
Exception in thread "main" Java.lang.InternalError:can't connect to x11
window server using "localhost:0.0"
at .......
解决办法:
设定你的DISPLAY 环境参数.
# export DISPLAY= your_IPaddress :0.0
把your_IPaddress 换成你的IP.
或者用root 简单的执行一下
# xhost +
(要注重这样会有安全上的隐患)
3.2 安装界面显示很多"口口"样子的乱码
解决办法:
查看locale 输出
# locale
LANG=en_US.UTF-8
LC_CTYPE=zh_CN.GB18030
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=
执行
#export LC_CTYPE=en_US.UTF-8
然后重新调用安装程序.
3.3 用IE 登录Linux 服务器上的em 出现乱码
在Linux(Unix) 环境下成功安装了Oracle 10g,从windows 下用IE 浏览器登录10g 的
em, 按钮是"口口"这样的方框.
解决办法:
参考http://www.dbanotes.nethttp://oracle.chinaitlab.com/Orac....properties.htm
或者是参考这个http://www.linuxsir.org/bbs/showthr...&threadid=98591
后者比较彻底,前者比较"Quick & Dirty ".
3.4 创建数据库的时候出现ORA-03113 的错误
解决办法:
查看核心参数是否调整正确.参考http://www.dbanotes.nethttp://oracle.chinaitlab.com/ORA-03113.htm
3.5 RedHat 9 / FC1 等系统10g 不支持如何安装?
解决办法:
在10g 不支持的Linux 发行版上安装10g 的解决方法
1). 运行runInstaller -ignoreSysPrereqs,这样会跳过检查
2). 摘自www.puschitz.com 修改/etc/redhat-release文件:
#su - root
#cp /etc/redhat-release /etc/redhat-release.backup
#cat > /etc/redhat-release << EOF
Red Hat Enterprise Linux AS release 3 (Taroon)
EOF
安装完毕,执行如下操作:
#su - root
#cp /etc/redhat-release.backup /etc/redhat-release
3). http://www.dbanotes.nethttp://oracle.chinaitlab.com/10G-Beta-Install-Bug.htm
同样的思路,我们可以修改Oracle 的install/oraparam.ini 文件达到目的
3.6 如何关掉那些oCssd.bin 进程?
解决办法:
编辑/etc/inittab 文件(做好备份)
注释掉这一行:
h1:3:respawn:/etc/init.d/init.cssd run >/dev/null 2>&1
四参考信息
Werner Puschitz 的10g 安装指南
http://www.puschitz.com/InstallingOracle10g.sHtml
Werner Puschitz 的站点的文章很翔实,假如您碰到了本文没有说清的问题,可以去看看那里.本文借鉴了该
站点不少内容。
ITPUB 论坛10g 版块Kamus 等的大作
http://www.itpub.net/forumdisplay.PHP?s=&forumid=70
关于核心参数等信息请查找Google
http://www.google.com
Oracle Database Quick Installation Guide 10 g Release 1 (10.1) for Linux x86
http://download-west.oracle.com/doc...0813_01/toc.htm
Oracle Database Installation Guide 10 g Release 1 (10.1) for UNIX Systems
http://download-west.oracle.com/doc...0811_02/toc.htm
DBAnotes.net 我的站点包括不少和Oracle 有关的信息