In this case the operating system version: CentOS 7, database version: Oracle 12c (12.2.0)
oracle12c download link: linuxx64_12201_database extraction code: n3z6
Of course, you can prepare your own good will upload and download files to the server, I upload the root directory: /
Preparations before installing Oracle:
Turn off the firewall, disable the firewall boot from Kai
Turn off the firewall
systemctl stop firewalld.service
Disable the firewall boot
systemctl disable firewalld.service
Check firewall status
systemctl status firewalld.service
yum install the necessary installation package
Use the second time (multiple times does not have other problems) yum install batch dependencies, if the execution fails again to continue
yum -y install binutils compat-libcap1 compat-libstdc++-33 compat-libstdc++-33*i686 compat-libstdc++-33*.devel compat-libstdc++-33 compat-libstdc++-33*.devel gcc gcc-c++ glibc glibc*.i686 glibc-devel glibc-devel*.i686 ksh libaio libaio*.i686 libaio-devel libaio-devel*.devel libgcc libgcc*.i686 libstdc++ libstdc++*.i686 libstdc++-devel libstdc++-devel*.devel libXi libXi*.i686 libXtst libXtst*.i686 make sysstat unixODBC unixODBC*.i686 unixODBC-devel unixODBC-devel*.i686
Check whether the installation was successful (31 installation package)
rpm -q binutils compat-libcap1 compat-libstdc++-33 gcc gcc-c++ glibc glibc-devel ksh libaio libaio-devel libgcc libstdc++ libstdc++-devel libXi libXtst make sysstat unixODBC unixODBC-devel
Creating swap
For more details refer to the article : Creating Swap
Creating oracle data directory (optional, not necessarily with the / u01)
mkdir /u01
Oracle create users and groups
Creating oinstall and dba groups
/usr/sbin/groupadd oinstall
/usr/sbin/groupadd dba
Create the oracle user
/usr/sbin/useradd -g oinstall -G dba oracle
Set oracle password
passwd oracle
View create results
id oracle
Set data directory permissions created above
chown -R oracle:oinstall /u01
chmod -R 775 /u01
chmod g+s /u01
Configuration parameters
Kernel configuration parameters (these parameters are different depending on the configuration of your machine, some parameters need to be modified again, check that step in the installation process oralce, will prompt, as required individually modified corresponding to the recommended value)
vim /etc/sysctl.conf
fs.aio-max-nr = 1048576
fs.file-max = 6815744
kernel.shmall = 2097152
kernel.shmmax = 8329226240
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
Press esc, and then: wq save and exit
Ulimit configuration parameters vim /etc/security/limits.conf
vim /etc/security/limits.conf
Add in the bottom of the file
oracle soft nproc 65536
oracle hard nproc 65536
oracle soft nofile 65536
oracle hard nofile 65536
oracle soft stack 65536
oracle hard stack 65536
Press esc, and then: wq save and exit
Set the time zone, upgrade the system, install the desktop environment (I installed a virtual machine desktop environment is already installed)
1. Set time zone
timedatectl set-timezone Asia/Shanghai
2. Upgrade System
yum clean all && yum update -y
3. Install the desktop environment (two pack must be, otherwise there will be installed oracle stuck phenomenon)
yum groupinstall "GNOME Desktop" "Server with GUI" -y
4. Set the boot installed desktop environment
systemctl set-default graphical.target
So far oracle data preparation before the installation is complete, restart the system ready to install reboot
reboot
See the next article oracle installation