CentOS install ORACLE (the most detailed in history!!! There is no one!!!)
文章目录
1.Install required software
1.1.centos installation platform, vmware esxi 6.5 (Alibaba Cloud)
https://www.aliyundrive.com/s/QEB5TMaLJRv
1.2.CentOS-7-x86_64-DVD-1810.iso (Alibaba Cloud)
https://www.aliyundrive.com/s/SqmtWGCXPGU
1.3.oracle installation package (Alibaba Cloud)
https://www.aliyundrive.com/s/QBEw8utfFjo
2.Configuration environment (operation under root user)
2.1 Install httpd
yum install httpd -y
2.2 Configure epel source
rpm -vih https://dl.fedoraproject.org/pub/epel/7Server/x86_64/Packages/e/epel-release-7-12.noarch.rpm
2.3 Turn off the firewall
systemctl stop firewalld.service
systemctl disable firewalld
systemctl stop firewalld
systemctl status firewalld
2.4 install Dependent library
yum install -y compat-libstdc++-33 elfutils-libelf-devel gcc gcc-c++ glibc-devel
yum install -y ksh libaio-devel numactl-devel
yum install -y unixODBC unixODBC-devel oracleasm oracleasmlib oracleasm-support
2.5 Create Oracle user groups and user accounts
groupadd oinstall
groupadd dba
useradd -g oinstall -G dba oracle
passwd oracle
2.6 Configure kernel parameters,Modify the file /etc/sysctl.conf, vim /etc/sysctl.conf, and add the following command
fs.file-max = 6815744
kernel.shmall = 2097152
kernel.shmmax = 536870912
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 = 1048576
net.ipv4.tcp_wmem = 262144 262144 262144
net.ipv4.tcp_rmem = 4194304 4194304 4194304
Execute the command: /sbin/sysctl -p to make the parameters take effect.
2.7 Modify the files /etc/security/limits.conf, vim /etc/security/limits.conf, and add the following commands
oracle soft nproc 2047
oracle hard nproc 16384
oracle soft nofile 1024
oracle hard nofile 65536
oracle soft stack 10240
oracle hard stack 32768
oracle hard memlock 134217728
oracle soft memlock 134217728
2.8 Create the Oracle installation directory and give it read and write permissions
mkdir -p /u01/app/oracle
chown -R oracle:oinstall /u01/app/oracle
chmod -R 777 /u01/app/oracle
chown -R oracle:oinstall /home/oracle
chmod -R 777 /home/oracle
mkdir -p /u01/app/oraInventory
chown -R oracle:oinstall /u01