RHEL6 安装 Oracle11g

  1. 编辑 hosts 文件:/etc/hosts
# hostname loopback address
ip_address    hostname
  1. 挂载操作系统光盘
mkdir /mnt/cdrom
mount /dev/cdrom /mnt/cdrom

如果是 ISO 文件,可采用如下方式挂载:
mount -o loop redhat6.iso /mnt/cdrom

  1. 编辑 /etc/yum.repo.d/rhel-source.repo 文件,配置本地 YUM 源
[local-yum]
name=RHEL6 ISO
baseurl=file:///mnt/cdrom/Server
enabled=1
gpgcheck=0
  1. 更新本地 YUM 缓存
yum clean all && yum makecache
  1. 安装 oracle 所需的依赖包 yum install ...
binutils-2.20.51.0.2-5.11.el6 (x86_64)
compat-libcap1-1.10-1 (x86_64)
compat-libstdc++-33-3.2.3-69.el6 (x86_64)
compat-libstdc++-33-3.2.3-69.el6.i686
gcc-4.4.4-13.el6 (x86_64)
gcc-c++-4.4.4-13.el6 (x86_64)
glibc-2.12-1.7.el6 (i686)
glibc-2.12-1.7.el6 (x86_64)
glibc-devel-2.12-1.7.el6 (x86_64)
glibc-devel-2.12-1.7.el6.i686
ksh
libgcc-4.4.4-13.el6 (i686)
libgcc-4.4.4-13.el6 (x86_64)
libstdc++-4.4.4-13.el6 (x86_64)
libstdc++-4.4.4-13.el6.i686
libstdc++-devel-4.4.4-13.el6 (x86_64)
libstdc++-devel-4.4.4-13.el6.i686
libaio-0.3.107-10.el6 (x86_64)
libaio-0.3.107-10.el6.i686
libaio-devel-0.3.107-10.el6 (x86_64)
libaio-devel-0.3.107-10.el6.i686
make-3.81-19.el6
sysstat-9.0.4-11.el6 (x86_64)
unixODBC-2.2.14-11.el6 (x86_64)
unixODBC-2.2.14-11.el6.i686
unixODBC-devel-2.2.14-11.el6 (x86_64)
unixODBC-devel-2.2.14-11.el6.i686
elfutils-libelf-devel-0.125
  1. 编辑 /etc/security/limits.conf,修改限制 oracle 用户的资源使用
oracle soft nproc 2047
oracle hard nproc 16384
oracle soft nofile 1024
oracle hard nofile 65536
oracle soft stack 10240
  1. 编辑 /etc/sysctl.conf,修改 Linux 内核参数
fs.aio-max-nr = 1048576
fs.file-max = 6815744
kernel.shmall = 2097152
kernel.shmmax = 4294967295
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
net.ipv4.ip_local_port_range = 9000 65500
net.core.rmem_default = 262144
net.core.rmem_max = 4194304
net.core.wmem_default = 262144
net.core.wmem_max = 1048576
  1. 使修改的参数生效
sysctl -p
  1. 创建安装需要的用户和组
groupadd dba && groupadd oinstall && useradd –g dba –G oinstall oracle && passwd oracle
  1. 创建软件安装目录并授权给 oracle 用户
mkdir –p /u01/app/oracle && chown –R oracle:oinstall /u01 && chmod –R 775 /u01
  1. 编辑 /home/oracle/.bash_profile,配置 oracle 用户的环境变量
export ORACLE_SID=orcl
export ORACLE_BASE=/u01/app/oracle
export ORACLE_HOME=$ORACLE_BASE/product/11.2.0/db_1
export PATH=$ORACLE_HOME/bin:$PATH
  1. 使用 oracle 用户开始安装

你可能感兴趣的:(RHEL6 安装 Oracle11g)