环境说明
操作系统版本:
[root@cjc-db-07 ~]# cat /etc/os-release NAME="Oracle Linux Server" VERSION="10.1" ID="ol" ID_LIKE="fedora" VARIANT="Server" VARIANT_ID="server" VERSION_ID="10.1" PLATFORM_ID="platform:el10" PRETTY_NAME="Oracle Linux Server 10.1" ANSI_COLOR="0;31" CPE_NAME="cpe:/o:oracle:linux:10:1:server" HOME_URL="https://linux.oracle.com/" BUG_REPORT_URL="https://github.com/oracle/oracle-linux" ORACLE_BUGZILLA_PRODUCT="Oracle Linux 10" ORACLE_BUGZILLA_PRODUCT_VERSION=10.1 ORACLE_SUPPORT_PRODUCT="Oracle Linux" ORACLE_SUPPORT_PRODUCT_VERSION=10.1
[root@cjc-db-07 ~]# cat /etc/redhat-release Red Hat Enterprise Linux release 10.1 (CentOS Stream)
资源需求:
内存、磁盘等需求



操作系统需求:


安装前配置
配置本地yum
挂载操作系统镜像文件
[oracle@cjc-db-07 ~]$ ls -lrth /soft/oracle/OracleLinux-R10-U1-x86_64-dvd.iso -rw-r--r-- 1 root root 9.6G Feb 2 22:25 /soft/oracle/OracleLinux-R10-U1-x86_64-dvd.iso [oracle@cjc-db-07 ~]$ sha256sum /soft/oracle/OracleLinux-R10-U1-x86_64-dvd.iso 82fa2b70a18fb268c5ef013e298f85bba0d0e6c7ae882c49a3f67c02ee6d68de /soft/oracle/OracleLinux-R10-U1-x86_64-dvd.iso mount -o loop /soft/oracle/OracleLinux-R10-U1-x86_64-dvd.iso /mnt
配置本地yum
[root@cjc-db-07 yum.repos.d]# cat oracle.repo [local] name=cjc baseurl=file:///mnt/BaseOS/ gpgcheck=0 enabled=1
安装需要的包
yum -y install bc* binutils* elfutils-libelf* fontconfig* glibc* glibc-devel* glibc-headers* ksh* libaio* libasan* liblsan* libX11* libXau* libXi* libXrender* libXtst* libxcrypt-compat* libgcc* libibverbs* librdmacm* libstdc++* libxcb* libvirt-libs* make* policycoreutils* policycoreutils-python-utils* smartmontools* sysstat*
配置sysctl.conf
vi /etc/sysctl.conf net.ipv4.ip_forward = 0 net.ipv4.conf.default.rp_filter = 1 net.ipv4.conf.default.accept_source_route = 0 kernel.sysrq = 0 kernel.core_uses_pid = 1 net.ipv4.tcp_syncookies = 1 kernel.msgmnb = 65536 kernel.msgmax = 65536 kernel.shmmni = 4096 kernel.sem = 250 32000 100 128 kernel.shmmax = 4398046511104 kernel.shmall = 1073741824 fs.file-max = 6815744 net.ipv4.ip_local_port_range = 9000 65500 net.core.rmem_default = 262144 net.core.wmem_default = 262144 net.core.rmem_max = 4194304 net.core.wmem_max = 1048576 fs.aio-max-nr = 1048576 刷新 sysctl –p
配置limits.conf
vi /etc/security/limits.conf oracle soft nproc 131072 oracle hard nproc 131072 oracle soft nofile 131072 oracle hard nofile 65536 oracle hard nofile 131072 oracle soft nofile 131072
创建操作系统用户、组
/usr/sbin/groupadd -g 5000 dba /usr/sbin/groupadd -g 5001 oinstall /usr/sbin/groupadd -g 5002 oper /usr/sbin/groupadd -g 5003 asmadmin /usr/sbin/groupadd -g 5004 asmoper /usr/sbin/groupadd -g 5005 asmdba /usr/sbin/groupadd -g 5006 backupdba /usr/sbin/groupadd -g 5007 dgdba /usr/sbin/groupadd -g 5008 kmdba /usr/sbin/groupadd -g 5009 racdba /usr/sbin/useradd -g oinstall -G dba,asmdba,backupdba,dgdba,kmdba,racdba,oper oracle
新建目录
mkdir -p /u01/app/oracle mkdir -p /u01/app/oraInventory chown -R oracle:oinstall /u01/app/oracle chown -R oracle:oinstall /u01/app/oraInventory mkdir -p /u01/app/oracle/product/23.0.0/dbhome_1 chmod -R 775 /u01/app
用户环境变量
[oracle@cjc-db-07 ~]$ cat .bash_profile export ORACLE_BASE=/u01/app/oracle export ORACLE_HOME=$ORACLE_BASE/product/23.0.0/dbhome_1 export ORACLE_SID=cjcdb export PATH=$ORACLE_HOME/bin:$PATH export LD_LIBRARY_PATH=$ORACLE_HOME/lib:$LD_LIBRARY_PATH
下载并解压安装介质


本次下载的是 LINUX.X64_2326100_db_home.zip
解压:
mv LINUX.X64_2326100_db_home.zip /u01/app/oracle/product/23.0.0/dbhome_1/ cd $ORACLE_HOME unzip LINUX.X64_2326100_db_home.zip
安装Oracle软件











执行脚本:
[root@cjc-db-07 yum.repos.d]# /u01/app/oraInventory/orainstRoot.sh [root@cjc-db-07 yum.repos.d]# /u01/app/oracle/product/23.0.0/dbhome_1/root.sh


新建监听






创建Oracle实例
dbca



















安装后检查
查询版本
[oracle@cjc-db-07 ~]$ sqlplus / as sysdba SQL*Plus: Release 23.26.1.0.0 - Production on Mon Feb 2 23:12:30 2026 Version 23.26.1.0.0 Copyright (c) 1982, 2025, Oracle. All rights reserved. Connected to: Oracle AI Database 26ai Enterprise Edition Release 23.26.1.0.0 - Production Version 23.26.1.0.0 SQL> select BANNER from v$version; BANNER -------------------------------------------------------------------------------- Oracle AI Database 26ai Enterprise Edition Release 23.26.1.0.0 - Production SQL>

参考
https://www.oracle.com/database/technologies/oracle26ai-linux-downloads.html https://docs.oracle.com/en/database/oracle/oracle-database/26/ladbi/server-hardware-checklist-for-oracle-database-installation.html https://docs.oracle.com/en/database/oracle/oracle-database/26/ladbi/operating-system-checklist-for-oracle-database-installation-on-linux.html https://docs.oracle.com/en/database/oracle/oracle-database/26/ladbi/server-configuration-checklist-for-oracle-database-installation.html https://docs.oracle.com/en/database/oracle/oracle-database/26/ladbi/storage-checklist-for-oracle-database-installation.html
欢迎关注我的公众号《 IT小Chen》