CentOS install ORACLE (the most detailed in history!!! There is no one!!!)

这篇博客详细记录了在CentOS上安装ORACLE的全过程,包括安装所需软件、环境配置、启动安装等步骤,涵盖了从创建Oracle用户组和用户账号到修改系统参数、配置环境变量等细节。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

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
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值