1.以ROOT登录
2.检查RAM 和swap
3.软件
binutils compat-libstdc++ elfutils-libelf elfutils-libelf-devel elfutils-libelf-devel-static gcc gcc-c++ glibc glibc-common glibc-devel glibc-headers
kernel-headers ksh libaio libaio-devel libgcc libgcc libstdc++ libstdc++-devel make sysstat unixODBC unixODBC-devel
4.网络
hostname
/etc/sysconfig/network
/etc/hosts
5.用户和组
groupadd oinstall
groupadd dba
useradd -g oinstall -G dba oracle
6.修改内核参数
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 = 1048586
sysctl -p
vi /etc/security/limits.conf
oracle soft nproc 2047
oracle hard nproc 16384
oracle soft nofile 1024
oracle hard nofile 65536
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
7.建立目录
mkdir -p /u01/app/oracle
chown -R oracle.oinstall /u01
chmod -R 775 /u01
8.设置Oracle环境变量,这里特别注意ORACLE_SID 这个可以取任意名,export NLS_LANG=american_america.zhs16gbk 这个
解释:american_america 这个是语言,zhs16gbk这个是字符集
vi /home/oracle/.bash_profile
export ORACLE_BASE=/u01/app/oracle
export ORACLE_HOME=$ORACLE_BASE/product/11.2.0.1/db_1
export ORACLE_SID=orcl
export PATH=$ORACLE_HOME/bin:$PATH
export NLS_LANG=american_america.zhs16gbk
9.以root执行xhost +
su - oracle 必须以Oracle 身份来安装
远程终端可能还要执行:export DISPLAY=192.168.0.1:0.0
那个地址从who 的FROM 那列得到