linux下oracle11g的安装
准备工作:
系统:centos7.5.1804 yum仓库 有外网
step1:关闭防火墙,selinux
systemctl stop firewalld
vim /etc/selinux/config
=====disabled
step2:创建oracle用户
groupadd dba //创建dba组
groupadd oinstall //创建oinstall组
useradd -g oinstall -G dba oracle //创建oracle用户,并指定用户oracle的基本组和附加组
echo oracle |passwd --stdin oracle //设置oracle用户的密码
step3:创建目录
mkdir -p /home/oracle/oraInventory
mkdir -p /home/oracle/product/11.2.0/dbhome_1
step4:修改权限
chown -Rf oracle:oinstall /home/oracle
chmod -Rf 775 /home/oracle
step5:更改配置
vim /home/oracle/.bash_profile ======》source /home/oracle/.bash_profile
export ORACLE_BASE=/home/oracle
export ORACLE_HOME=$ORACLE_BASE/product/11.2.0/dbhome_1
export ORACLE_SID=orcl
export PATH=$PATH:$HOME/bin:$ORACLE_HOME/bin
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/usr/lib
vim /etc/sysctl.conf ====>stsctl -p 刷新配置
fs.file-max = 6815744
fs.aio-max-nr = 1048576
kernel.shmall = 2097152
kernel.shmmax = 2147483648
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
net.ipv4.ip_local_port_range = 9000 65500
net.core.rmem_default = 4194304
net.core.rmem_max = 4194304
net.core.wmem_default = 262144
net.core.wmem_max = 1048586
vim /etc/security/limits.conf
oracle soft nproc 2047
oracle hard nproc 16384
oracle soft nofile 1024
oracle hard nofile 65536
oracle soft stack 10240
find / -name pam_limits.so //以root去查找文件绝对路径
vim /etc/pam.d/login
session required /usr/lib64/security/pam_limits.so
session required pam_limits.so
vim /etc/profile
unset i
unset -f pathmunge
if [ $USER = "oracle" ]; then
if [ $SHELL = "/bin/ksh" ]; then
ulimit -p 16384
ulimit -n 65536
else
ulimit -u 16384 -n 65536
fi
fi
step6:rz上传Oracle11g的安装包到/home/oracle
安装依赖包:
yum -y gcc make install libaio glibc compat-libstdc* elfutils-libelf-devel\* gcc-c++ libaio-devel unixODBC\* readline\* xorg-x11-xauth
上传xorg-x11-server-utils-7.7-20.el7.x86_64.rpm,pdksh-5.2.14-30.x86_64.rpm,compat-libstdc++-33-3.2.3-72.el7.x86_6 4.rpm
yum -y install compat-libstdc++-33-3.2.3-72.el7.x86_64.rpm
rpm -ivh --force pdksh-5.2.14-30.x86_64.rpm
yum -y install xorg-x11-server-utils-7.7-20.el7.x86_64.rpm
tar -xf oracle11g安装包
客户机安装xmanage