RHEL6.0x64安装oracle11gr2

Checking the Hardware Requirements

#grep MemTotal /proc/meminfo 检查内存大小

The following table describes the relationship between installed RAM and the configured swap space recommendation:

Available RAM Swap Space Required
=======================================================
Between 1 GB and 2 GB 1.5 times the size of the RAM
Between 2 GB and 16 GB Equal to the size of the RAM
More than 16 GB 16 GB

#uname -m 检查操作系统版本

#grep SwapTotal /proc/meminfo 检查Swap大小

#free 可以直接看到MemTotal 、SwapTotal

Checking the Software Requirements

#cat /proc/version 检查操作系统版本

#uname -r 查看内核版本

The following or later version of packages for Oracle Linux 6, and Red Hat
Enterprise Linux 6 must be installed:

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)
gcc-4.4.4-13.el6 (x86_64)
gcc-c++-4.4.4-13.el6 (x86_64)
glibc-2.12-1.7.el6 (x86_64)
glibc-devel-2.12-1.7.el6 (x86_64)
ksh
libgcc-4.4.4-13.el6 (x86_64)
libstdc++-4.4.4-13.el6 (x86_64)
libstdc++-devel-4.4.4-13.el6 (x86_64)
libaio-0.3.107-10.el6 (x86_64)
libaio-devel-0.3.107-10.el6 (x86_64)
make-3.81-19.el6
sysstat-9.0.4-11.el6 (x86_64)
unixODBC-2.2.14-11.el6 (x86_64) or later
unixODBC-devel-2.2.14-11.el6 (x86_64) or later


检查依赖的rpm包

#rpm -q binutils compat-libcap1 compat-libstdc++-33 gcc gcc-c++ glibc glibc-devel ksh libgcc libstdc++ libstdc++-devel libaio libaio-devel make sysstat unixODBC unixODBC-devel

#groupadd oinstall
#groupadd dba
#mkdir -p /u01/oracle
#useradd -g oinstall -G dba -d /u01/oracle oracle
#passwd oracle 修改oracle用户密码
#chown -R oracle:oinstall u01
#chmod -R 775 /u01/oracle/
检查 nobody 是否存在 ,
#id nobody
缺省存在的。如果不存在
# /usr/sbin/useradd -g nobody
接下来修改内核参数
#vi /etc/sysctl.conf
加入以下内容
fs.aio-max-nr = 1048576
fs.file-max = 6815744
kernel.shmall = 2097152
kernel.shmmax = 536870912
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

#/sbin/sysctl -p 使之生效
#vi /etc/security/limits.conf
加入如下内容
oracle soft nproc 2047
oracle hard nproc 16384
oracle soft nofile 1024
oracle hard nofile 65536
oracle soft stack 10240

#vi /etc/pam.d/login
加入如下内容
session required pam_limits.so
#vi /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

#cp /etc/skel/.bash_profile /u01/oracle/
#v

i /u01/oracle/.bash_profile
加入如下内容
ORACLE_BASE=/u01
ORACLE_HOME=$ORACLE_BASE/oracle
ORACLE_SID=orcl
PATH=$ORACLE_HOME/bin:$PATH:$HOME/bin

export ORACLE_BASE ORACLE_HOME ORACLE_SID PATH

修改hosts文件
#vi /etc/hosts
加入本机IP 和主机名
10.134.20.60 testoracle
#cd /tmp
#unzip linux.x64_11gR2_database_1of2.zip
#unzip linux.x64_11gR2_database_2of2.zip
#mv database/ /u01/
#chown -R oracle:oinstall /u01/database/
#mkdir /oraInventory
#chown -R oracle:oinstall oraInventory


重启系统
oracle 用户登录图形界面运行/u01/database/runInstaller
若安装界面显示乱码,则需要修改语言环境,在oracle用户下
#export LANG=en_US
#export LC_ALL=en_US

#netca 配置监听器,一路下一步直到finish
#ps -ef 查看listener是否配置成功

#dbca 一直下一步,直到Global Database Name 和SID

选择 User the Same.....All Accounts

密码: 123456


选择 Sample Schemas

Memory 内存分配,默认就可以了
Character Sets 选择 Use Unicode(AL32UTF8)

然后一直 Next , 到最后 Finish


超级管理员 sys / change_on_install
普通管理员 system / manager
普通用户 scott / tiger
大数据用户 sh / sh

相关主题
相关文档
最新文档