Redhat Enterprise Linux 5.4下安装Oracle 10.2.0.1(备忘)

一.安装Redhat Enterprise Linux 5.4X

1.Network Setting
hostname: kod IP: 192.168.0.10 Gateway: 192.168.0.1
DNS1: 192.168.0.1 DNS2: 202.96.134.133(深圳DNS)
Root pswd: xxxxxx
2.Software
Desktop Environments
GNOME Desktop Environment
Applications
Graphical Internet
Development
Development Libraries
Development Tools
Legacy Software Development
Servers
None
Base System
Administration Tools
Base
Dialup Networking Support
Java
Legacy Software Support
XWindow System
Virtualization
None
Languages
Chinese Support

安装最后阶段Firewall暂时关闭,SELinux设为Disabled.

二.安装Oracle 10g2.0.1 for Linux
1.检查需要安装的rpm
# rpm -q gcc make binutils openmotif
gcc-4.1.2-46.el5
make-3.81-3.el5
binutils-2.17.50.0.6-12.el5
package openmotif is not installed

安装openmotif时提示缺少libXp.so.6
# rpm -i libXp-1.0.0-8.1.el5.i386.rpm
# rpm -i openmotif22-2.2.3-18.i386.rpm

检查其他需要的rpm
# rpm -q setarch compat-db compat-gcc compat-gcc-c++ compat-libstdc++ compat-libstdc++-devel
setarch-2.0-1.1
package compat-db is not installed
package compat-gcc is not installed (实际系统安装的是compat-gcc-34-3.4.6-4)
package compat-gcc-c++ is not installed(实际系统安装的是compat-gcc-34-c++-3.4.6-4)
package compat-libstdc++ is not installed(实际系统安装的是compat-libstdc++-296-2.138)
package compat-libstdc++-devel is not installed(不需要了)
# rpm -i compat-db-4.2.52-5.1.i386.rpm

2.创建需要的组和用户名
# groupadd oinstall
# groupadd dba
# useradd -g oinstall -G dba oracle
# id oracle
uid=501(oracle) gid=501(oinstall) groups=501(oinstall),502(dba)

# passwd oracle
3.创建安装目录
# mkdir -p /opt/app/oracle
# chown -R oracle:oinstall /opt/app/oracle
# chmod -R 775 /opt/app/oracle

4.配置内核参数:
要求的内核参数:
kernel.shmall = 2097152
kernel.shmmax = 1073741824(内存的一半)
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
fs.file-max = 65536
net.ipv4.ip_local_port_range = 1024 65000
net.core.rmem_default = 262144
net.core.rmem_max = 262144
net.core.wmem_default = 262144
net.core.wmem_max = 262144
修改/etc/sysctl.conf
增加如下内容:
kernel.sem = 250 32000 100 128
net.ipv4.ip_local_port_range = 1024 65000
net.core.rmem_default = 262144
net.core.rmem_max = 262144
net.core.wmem_default = 262144
net.core.wmem_max = 262144

保存后运行下面命令以便生效
# sysctl -p
5.oracle用户shell limits
修改/etc/security/limits.conf,增加以下内容
oracle soft nproc 2047
oracle hard nproc 16384
oracle soft nofile 1024
oracle hard nofile 65536
在/etc/pam.d/login中增加如下配置:
session required /lib/security/pam_limits.so

在/etc/profile中增加如下配置:
if [ $USER = "oracle" ]; then
if [ $SHELL = "/bin/ksh" ]; then
ulimit -p 16384
ulimit -n 65536
else
ulimit -u 16384 -n 65536
fi
umask 022
fi

6.配置oracle环境变量
# su - oracle
# vi .bash_profile
增加以下内容
ORACLE_BASE=/opt/app/oracle
export ORACLE_BASE

ORACLE_HOME=$ORACLE_BASE/product/10.2.0/db_1
export ORACLE_HOME

ORACLE_SID=orcl
export ORACLE_SID

ORACLE_OWNER=oracle
export ORACLE_OWNER

7.另开一个terminal,以root身份运行:
Xhost +
mkdir /mnt/dvd
mount -t iso9660 /dev/hda /mnt/dvd

实践证明,Oracle 10.2.0.1可以支持Rhel5, 而10.1.0.3不支持(需要修改/etc/redhat-release)

修改/etc/hosts,把127.0.0.1 localhost local改为192.168.0.10 kod kod,否则在安装时Checking Network Configuration requirements会not executed

至此,准备工作完成,开始安装.

8.以oracle身份运行
$ /mnt/dvd/runInstaller

安装快结束时出现窗口,记录信息如下:
database information:
Global database name: orcl
System Identifier(SID): orcl
Server Parameter File: /opt/app/oracle/product/10.2.0/db_1/dbs/spfileorcl.ora
The database control URL is http://kod:1158/em

然后以root身份运行两个脚本

最后安装完成,显示信息如下:

iSQL*Plus URL: http://kod:5560/isqlplus

iSQL*Plus DBA URL: http://kod:5560/isqlplus/dba

Enterprise Manager 10g Database Control URL: http://kod:1158/em

至此,安装完毕

[@more@]

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/22591099/viewspace-1027824/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/22591099/viewspace-1027824/

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值