Centos6.5系统安装oracle11.2.0.4基本步骤

时间:2021-09-23 07:42:11

1.修改hosts文件(简单,不详细叙述)

vim /etc/hosts

2.修改sysctl.conf 文件

 vim /etc/sysctl.conf 

Centos6.5系统安装oracle11.2.0.4基本步骤Centos6.5系统安装oracle11.2.0.4基本步骤
kernel.shmall = 1048576
kernel.shmmni = 4096
kernel.shmmax = 536870912
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
fs.aio-max-nr=1048576
View Code

3.修改limits.conf 文件

  vim /etc/security/limits.conf

Centos6.5系统安装oracle11.2.0.4基本步骤Centos6.5系统安装oracle11.2.0.4基本步骤
oracle    soft    nproc    2047
oracle    hard    nproc    16384
oracle    soft    nofile    1024
oracle    hard    nofile    65536
View Code

4.修改login文件

vim /etc/pam.d/login

Centos6.5系统安装oracle11.2.0.4基本步骤Centos6.5系统安装oracle11.2.0.4基本步骤
session   required    /lib/security/pam_limits.so 
session   required    pam_limits.so
View Code

5.创建用户和组

Centos6.5系统安装oracle11.2.0.4基本步骤Centos6.5系统安装oracle11.2.0.4基本步骤
groupadd oinstall
groupadd dba
useradd -g oinstall -G dba oracle
passwd oracle
View Code

6.创建oracle目录

Centos6.5系统安装oracle11.2.0.4基本步骤Centos6.5系统安装oracle11.2.0.4基本步骤
mkdir -p /u01/app/oracle/product/11.2.0/db1
chown -R oracle.dba /u01
View Code

7.修改oracle用户下的变量

Centos6.5系统安装oracle11.2.0.4基本步骤Centos6.5系统安装oracle11.2.0.4基本步骤
export ORACLE_BASE=/u01/app/oracle
export ORACLE_HOME=/u01/app/oracle/product/11.2.0/db1
export ORACLE_SID=mytest
export PATH=$ORACLE_HOME/bin:$PATH
View Code

8.安装oracle依赖包

  需要自己下载的是:pdksh-5.2.14-30.x86_64.rpm

  其他包光盘都有

9.优化操作系统

  关闭防火墙

  关闭selinux

  关闭没必要的服务 

  重启系统