安装系统的时候选择 web的那个
系统装好后 补包
yum -y install binutils compat-libcap1 compat-libstdc++-33 compat-libstdc++-33*.i686 elfutils-libelf-devel gcc gcc-c++ gcc-c++glibc*.i686 glibc glibc-devel glibc-devel*.i686 ksh libgcc*.i686 libgcclibstdc++ libstdc++*.i686 libstdc++-devel libstdc++-devel*.i686 libaiolibaio*.i686 libaio-devel libaio-devel*.i686 make sysstat unixODBC unixODBC*.i686 unixODBC-devel unixODBC-devel*.i686 libXp
yum groupinstall "GNOME Desktop"
yum install tigervnc-server*
groupadd oinstall -g 1000
cat /etc/passwd
groupadd oinstall -g 2000
groupadd dba -g 2001
groupadd oper -g 2002
useradd -g oinstall -G dba,oper oracle
修改内核参数vi /etc/sysctl.conf,添加:
fs.aio-max-nr = 1048576
fs.file-max = 6815744
kernel.shmall = 2097152
kernel.shmmax = 4294967295
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.d/20-nproc.conf 添加:
oracle soft nproc 2047
oracle hard nproc 16384
oracle soft nofile 1024
oracle hard nofile 65536
oracle soft stack 10240
oracle用户的 .bash_profile
ORACLE_BASE=/oracle/app
ORACLE_HOME=$ORACLE_BASE/product/12.2.0/dbhome_1
ORACLE_SID=orcl12c
export ORACLE_BASE ORACLE_HOME ORACLE_SID
PATH=$PATH:$HOME/.local/bin:$HOME/bin:$ORACLE_HOME/bin
id oracle
mkdir /oracle
chown oracle.oinstall /oracle/
su - oracle
启动vnc,然后就是开安装