Installing Oracle 10g on RHEL AS 3 Step-by-Step[2]

[入库:2005年8月18日] [更新:2007年3月24日]

本文简介:选择自 llmmysun 的 blog

compat-gcc-c++-7.3-2.96.122
compat-libstdc++-7.3-2.96.122
compat-libstdc++-devel-7.3-2.96.122
compat-glibc-7.x-2.2.4.32.5
compat-db-4.0.14-5
compat-gcc-7.3-2.96.122

# rpm -qa | grep openmotif
openmotif-devel-2.2.2-16
openmotif-2.2.2-16

# rpm -qa | grep setarch
setarch-1.3-1

上面显示的内容是在笔者已经安装了具体的rpm包之后的结果.一般情况下,你的系统上的输出结果和这个不同.如果个
别包没有安装,把系统安装光盘mount上,找到具体的软件包(大多数在第三张光盘上),然后利用如下的命令来安装相应
的包:

# rpm -ivh compat.....rpm

要额外注意的是,这些软件包之间是有依赖性的,先后的顺序要找好.否则会报告不能安装的错误.

此外,最好验证一下 gcc和glibc的版本(要求是gcc-3.2.3-2 或者更高)

#gcc -v
#rpm -q glibc

创建用户和相关的组

# /usr/sbin/groupadd oinstall
# /usr/sbin/groupadd dba
# /usr/sbin/useradd -g oinstall -g dba oracle 

如果只是测试目的的话,不创建oinstall组也没什么. 不过还是规范一点比较好.如果oracle 用户和dba组等已经存在,作
适当的调整即可.

检查并调整环境变量

登录为oracle用户
# su – oracle
$ cd
$ vi .bash_profile

#添加如下内容,你的具体值应该不会和这个完全相同.

export oracle_base=/u/app/oracle
export oracle_home=$oracle_base/product/10.1.0/db_1
export oracle_sid=test
export path=$path:$home/bin:$oracle_home/bin
export ld_library_path=$oracle_home/lib:/usr/lib
export lc_ctype=en_us.utf-8

然后执行
$ source .bash_profile
使环境变量生效. /u/app/oracle 等目录应该建立好并做合适的授权.

开始安装10g

mount你的安装盘.(我一般都是把文件拷贝到系统中一个具体的位置,比如/u/install ) . 执行

$ 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
=======================================================================


其他的步骤比较清晰,不再赘述.

本文关键:Installing Oracle 10g on RHEL AS 3 Step-by-Step
  相关方案
Google
 

本站最佳浏览方式为 分辨率 1024x768 IE 6.0(或更高版本的 IE浏览器)

go top