all cpp
yum -y install dos2unix
yum -y install ftp
yum -y install gcc
yum -y install gcc-c++
yum -y install lrzsz
yum -y install python-devel
yum -y install compat-db
yum -y install compat-db42
yum -y install compat-db43
yum -y install compat-gcc-34
yum -y install compat-gcc-34-c++
yum -y install compatlibstdc++-33
yum -y install glibc-*
yum -y install glibc-*.i686
yum -y install libXpm-*.i686
yum -y install libXp.so.6
yum -y install libXt.so.6
yum -y install libXtst.so.6
yum -y install libgcc_s.so.1
yum -y install ksh
yum -y install libXp
yum -y install libaio-devel
yum -y install numactl
yum -y install numactl-devel
yum -y install unixODBC
yum -y install unixODBC-devel #sh yum.sh
--执行yum安装脚本
3. 添加用户、组、目录
[root@hyltest /]# groupadd oinstall
--添加oinstall组
[root@hyltest /]# groupadd dba
--添加dba组
[root@hyltest /]# useradd -g oinstall -G dba oracle
--添加oracle用户,主组为oinstall,属组为dba
[root@hyltest /]# passwd oracle
--为oracle用户创建密码
Changing password for user oracle.
New password:
BAD PASSWORD: it is based on a dictionary word
BAD PASSWORD: is too simple
Retype new password:
passwd: all authentication tokens updated successfully.
[root@hyltest /]# id oracle
--查看oracle的id值
uid=501(oracle) gid=602(oinstall) groups=602(oinstall),603(dba)
[root@hyltest /]# mkdir -p /u01/app/oracle
--创建oracle相关目录
[root@hyltest /]# mkdir -p /u01/app/oraInventory
[root@hyltest /]# chown -R oracle:oinstall /u01/app
--将目录归属于oracle及其相关组
[root@hyltest /]# chmod -R 775 /u01/app
--赋予oracle对相关目录的访问权限
4. 配置内核参数等
[root@hyltest /]# vi /etc/sysctl.conf
--修改内核参数
kernel.shmall = 4294967296
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
fs.file-max = 65536
net.ipv4.ip_local_port_range = 1024 65500
net.core.rmem_default = 4194304
net.core.wmem_default = 262144
net.core.rmem_max = 4194304
net.core.wmem_max = 262144
~
[root@hyltest /]# sysctl p
--使修改的内核参数生效
net.ipv4.ip_forward = 0
net.ipv4.conf.default.rp_filter = 1
net.ipv4.conf.default.accept_source_route = 0
kernel.sysrq = 0
kernel.core_uses_pid = 1
net.ipv4.tcp_syncookies = 1
net.bridge.bridge-nf-call-ip6tables = 0
net.bridge.bridge-nf-call-iptables = 0
net.bridge.bridge-nf-call-arptables = 0
kernel.msgmnb = 65536
kernel.msgmax = 65536
kernel.shmmax = 68719476736
kernel.shmall = 4294967296
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
fs.file-max = 65536
net.ipv4.ip_local_port_range = 1024 65500
net.core.rmem_default = 4194304
net.core.wmem_default = 262144
net.core.rmem_max = 4194304
net.core.wmem_max = 262144
[oracle@hyltest ~]$ vi .bash_profile
--修改oracle环境变量
ORACLE_BASE=/u01/app/oracle
ORACLE_HOME=$ORACLE_BASE/product/11.2.0/db_1
ORACLE_SID=xcky
PATH=$PATH:$HOME/bin:$ORACLE_HOME/bin
LD_LIBRARY_PATH=$ORACLE_HOME/lib:/usr/lib
export ORACLE_BASE ORACLE_HOME ORACLE_SID PATH LD_LIBRARY_PATH
~
~
[root@hyltest ~]# vi /etc/security/limits.conf
--修改系统限制
oracle soft nproc 2047
oracle hard nproc 16384
oracle soft nofile 1024
oracle hard nofile 65536
~
[root@hyltest ~]# vi /etc/pam.d/login
session required /lib/security/pam_limits.so
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
5. 解压安装包
解压
例:解压.zip
# unzip p13390677_112040_Linux-x86-64_1of7.zip
# unzip p13390677_