红帽企业Linux 5.4下安装Oracle 10g 全程图解,红帽企业Linux 5.4,内存不小于1G,硬盘要大于8G,在本环境中Linux的地址192.168.
1、安装环境:
红帽企业Linux 5.4,内存不小于1G,硬盘要大于8G,,在本环境中Linux的地址192.168.1.80。Oracle版本:10g
安装步骤:
2、修改hosts文件:
[root@ ~]# hostname
Eleven.localdomain
[root@ ~]# vim /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 Eleven.localdomain localhost.localdomain localhost
::1 localhost6.localdomain6 localhost6
192.168.1.80 Eleven.localdomain
3、以root登录,挂载linux iso文件:
[root@ ~]# mkdir /mnt/cdrom
[root@ ~]# mount /dev/cdrom /mnt/cdrom/
4、检查所需的软件包是否安装,如果还没安装,则需安装:
sudo-1.6.9p17-5.el5.i386.rpm
binutils-2.17.50.0.6-12.el5.i386.rpm
compat-db-4.2.52-5.1.i386.rpm
compat-libstdc++-296-2.96-138.i386.rpm
control-center-2.16.0-16.el5.i386.rpm
gcc-4.1.2-46.el5.i386.rpm
gcc-c++-4.1.2-46.el5.i386.rpm
glibc-2.5-42.i386.rpm
glibc-common-2.5-42.i386.rpm
libstdc++-4.1.2-46.el5.i386.rpm
libstdc++-devel-4.1.2-46.el5.i386.rpm
make-3.81-3.el5.i386.rpm
pdksh-5.2.14-36.el5.i386.rpm
sysstat-7.0.2-3.el5.i386.rpm
setarch-2.0-1.1.i386.rpm
libXp-1.0.0-8.1.el5.i386.rpm(此软件包如不安装下面一步将无法进行)
以上软件包都在系统光盘的Server的仓库里,因在此使用的是linux5.4光盘,不同的光盘镜像这些软件包的版本可能不相同。
5、创建所需的用户和组:
[root@ Server]# groupadd dba
[root@ Server]# groupadd oinstall
[root@ Server]# groupadd oper
[root@ Server]# useradd -g oinstall -G dba,oper oracle
给用户oracle设置密码,这里将密码设为oracle:
[root@ Server]# passwd oracle
Changing password for user oracle.
New UNIX password:
BAD PASSWORD: it is based on a dictionary word
Retype new UNIX password:
6、
[root@ Server]# vim /etc/sysctl.conf
加入下面的内容:
kernel.shmall = 2097152
kernel.shmmax = 2147483648
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 = 1048576
net.core.rmem_max = 1048576
net.core.wmem_default = 262144
net.core.wmem_max = 262144
7、
[root@ Server]# vim /etc/security/limits.conf
添加下面的内容:
oracle soft nproc 2047
oracle hard nproc 16384
oracle soft nofile 1024
oracle hard nofile 65536
8、
[root@ Server]# vim /etc/pam.d/login
添加下面的内容:
session required /lib/security/pam_limits.so
session required pam_limits.so
9、
[root@ Server]# vim /etc/profile
添加下面的内容:
if [ $USER = "oracle" ]; then
if [ $SHELL = "/bin/ksh" ]; then
ulimit -p 16384
ulimit -n 65536
else
ulimit -u 16384 -n 65536
fi
fi