1、检测补丁包: (后面小版本号不确定)
rpm -qa | grep binutils-
rpm -qa | grep compat-db-
rpm -qa | grep compat-glibc
rpm -qa | grep compat-libstdc++-
rpm -qa | grep control-center-
rpm -qa | grep gcc-
rpm -qa | grep gcc-c++-
rpm -qa | grep glibc-
rpm -qa | grep glibc-common-
rpm -qa | grep gnome-libs-
rpm -qa | grep libstdc++-
rpm -qa | grep libstdc++-devel-
rpm -qa | grep make-
rpm -qa | grep pdksh-
rpm -qa | grep sysstat-
rpm -qa | grep xscreensaver-
rpm -qa | grep setarch-
rpm -qa | grep libaio
或者
rpm -q --qf '%{NAME}-%{VERSION}-%{RELEASE} (%{ARCH})/n' binutils compat-db compat-glibc compat-libstdc++- control-center gcc gcc-c++ glibc glibc-common gnome-libs libstdc++ libstdc++-devel make pdksh sysstat xscreensaver libaio libaio-devel glibc-devel unixODBC
如缺安装包,在iso或光盘里面找,安装即可
例:rpm -ivh setarch-
2、修改参数
vi /etc/sysctl.conf
kernel.shmall = 2097152
kernel.shmmax = 2147483648
kernel.shmmni = 4096
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
vi /etc/security/limits.conf
oracle soft nproc 2047
oracle hard nproc 16384
oracle soft nofile 1024
oracle hard nofile 65536
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
vi /etc/pam.d/login
session required /lib/security/pam_limits.so
session required pam_limits.so
3、添加oracle用户和环境变量,以下为参考,可自己根据环境改变
mkdir /u01
groupadd dba
groupadd oinstall
useradd -d /u01/oracle -g oinstall -G dba oracle
chown -R oracle:oinstall /u01
passwd oracle 设置密码
su - oracle
vi .bash_profile
增加以下
ORACLE_SID=orcl
ORACLE_BASE=/u01
ORACLE_HOME=/u01/oracle
PATH=$ORACLE_HOME/bin:$PATH
export ORACLE_SID ORACLE_BASE ORACLE_HOME PATH
4、重启机器,以oracle用户登录,解压传上来的安装包,安装
reboot
5、unzip xxxxx.zip
开始安装