OracleLinux9.4系统 安装Oracle19c
文章目录
- OracleLinux9.4系统 安装Oracle19c
- 一、安装准备
- 1、yum安装预检查需要的包
- 2、系统资源
- 二、滚动安装
一、安装准备
1、yum安装预检查需要的包
yum install libnsl
yum install -y oracle-database-preinstall-19c
# 最新的unzip
yum install unzip
2、系统资源
内核参数
vi /etc/security/limits.conf# 添加以下内容oracle soft no le 10240oracle hard no le 65536oracle soft nproc 16384oracle hard nproc 16384oracle soft stack 10240oracle hard stack 32768oracle hard memlock 134217728oracle soft memlock 134217728
共享内存
# 调整系统的共享内存参数
vi /etc/sysctl.conf kernel.sysrq = 1fs.aio-max-nr = 1048576fs. le-max = 6815744#16419251+8209625=24628876kernel.shmall = 24628876# 33626626048 + 67253252096 kernel.shmmax = 100879878144kernel.shmmni = 4096kernel.sem = 250 32000 100 128net.ipv4.ip_local_port_range = 9000 65500net.core.rmem_default = 262144net.core.rmem_max = 4194304net.core.wmem_default = 262144net.core.wmem_max = 1048576# 修改完成后,执行以下命令使配置生效:sysctl -pecho $(expr $(getconf _PHYS_PAGES) / 2)echo $(expr $(getconf _PHYS_PAGES) / 2 \* $(getconf PAGE_SIZE))
swap分区
# 一定要有分区sudo fallocate -l 4G /swapfilesudo dd if=/dev/zero of=/swapfie bs=1G count=4sudo mkswap /swapfilesudo swapon /swapfilesudo nano /etc/fstab
创建用户和目录
useradd oracle
mkdir /u01
环境变量
export name=orel8
二、滚动安装
安装数据库软件之前,补丁升级
mv OPatch OPatch_bac
unzip p688*.zip
安装软件
cd $ORACLE_HOME
./runInstaller -silent -responseFile /*.rsp -applyRU /opatch
看补丁日志中详细报错
chmod 755 $ORACLE_HOME/jdk/gre*