1) Environmental preparation
a) Edit /etc/sysctl.conf and add some parameters, which need to be checked (such as net.core, etc.)
After the file is edited, use sysctl -p to check
b) Create user and group groupadd oinstall
useradd -g oinstall -G BAC -m oracle
Initial group Accessory group User
c) Edit the file limit.conf to add
oracle soft nproc 2047
oracle hard nproc 16384
oracle soft nofile 1024
oracle hard nofile 65536
d) Edit /etc/pam.d/login
session required pam_limit.so
e)mkdir -p /u01/app/oracle
chown -R /u01/app/oracle
chmod -R 775 /u01/app/oracle
f) Set the computer name vim /etc/sysconfig/network
hostname oracle executes the command is the computer name takes effect
vim /etc/hostname
ip and hostname correspond
Two) start to install oracle
a) Copy the source files to the /media directory. Use unzip to extract to the database directory
cd /database
./runinstaller
The environment needs to be checked during the installation process, and some dependent packages are missing, which can be installed by mounting the system ISO file and writing the yum source
Three) Installation examples
a) Edit oracle user environment variables. Bash_profile add
export oracle_base=
export oracle_home=
export oracle_SID=
export PATH=PATH:$oracle-home/bin
xhost +
Execute dbca under root user