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*