首页 > 数据库 > Oracle > oracle 26ai rac silent 安装
redhat 8.9 + oracle 26ai rac:
硬件规划:
网卡至少两张 public / private
磁盘
CD/DVD ####用于依赖安装
/ 根盘
/asm-ocr ##共享
/asm-data ##共享
###物理机可不要下述两个
/soft 50G使用时分配 用完可删除 ##共享 虚拟机上建议
/u01 60G使用时分配 ##虚拟机上建议
RAC信息规划:
主机名 racnode41 racnode42
IP地址:
public: 192.168.11.41 192.168.11.42
private: 192.168.201.41 192.168.201.42
vip: 192.168.11.43 192.168.11.44
scan: 192.168.11.45
实例名:racdb racdb1 racdb2
#################################################################################################################################################################
前置工作
1. 虚拟机配置(物理机忽略)
##设置虚拟磁盘非独占模式 vmx文件添加如下,物理机忽略
scsi1.sharedBus = "virtual"
disk.locking = "false"
diskLib.dataCacheMaxSize = "0"
diskLib.dataCacheMaxReadAheadSize = "0"
diskLib.dataCacheMinReadAheadSize = "0"
diskLib.dataCachePageSize = "4096"
diskLib.maxUnsyncedWrites = "0"
disk.EnableUUID = "TRUE"
##重新启动如遭遇 磁盘启动顺序问题,进入"打开电源时进入固件"BIOS修改启动顺序 (nvme本地盘 优先 scsi启动 )
2. 网络
nmcli c
NAME UUID TYPE DEVICE
ens160 87bc0295-d0b3-43e5-89fa-0189ebb6ff6f ethernet ens160
virbr0 eb6a769b-962d-449f-bf60-aecadd63f0d8 bridge virbr0
有线连接 1 51d856d2-9b90-37c5-93aa-239639c5a83e ethernet ens224
##网卡的名称ens160 ens224 请按照实际修改
nmcli c delete "Wired connection 1" ##删除带空格的网卡名字,记住DEVICE名字
nmcli c
##用DEVICE名字 新建 网卡
nmcli c a type Ethernet con-name ens224 ifname ens224
##node1修改IP
nmcli con mod ens224 ipv4.addresses '192.168.201.41/24'
nmcli con mod ens224 ipv4.method manual
nmcli con mod ens224 connection.autoconnect yes
nmcli con mod ens160 ipv4.addresses '192.168.11.41/24'
nmcli con mod ens160 ipv4.method manual
nmcli con mod ens160 connection.autoconnect yes
nmcli con mod ens160 ipv4.gateway "192.168.11.2"
#增加dns
nmcli connection modify ens160 ipv4.dns 8.8.8.8
#删除dns
nmcli connection modify ens160 -ipv4.dns 114.114.114.114
nmcli c reload
nmcli c up ens224
nmcli c
nmcli c up ens160
##node2修改IP
nmcli con mod ens224 ipv4.addresses '192.168.201.42/24'
nmcli con mod ens224 ipv4.method manual
nmcli con mod ens224 connection.autoconnect yes
nmcli con mod ens160 ipv4.addresses '192.168.11.42/24'
nmcli con mod ens160 ipv4.method manual
nmcli con mod ens160 connection.autoconnect yes
nmcli con mod ens160 ipv4.gateway "192.168.11.2" ipv4.dns "8.8.8.8"
nmcli c reload
nmcli c up ens224
nmcli c
nmcli c up ens160
3. 修改主机名 配置rac host文件
hostnamectl set-hostname racnode41 ##41
hostnamectl set-hostname racnode42 ##42
#修改/etc/hosts
echo "
#Public IP(公司内部访问,非外网)
192.168.11.41 racnode41
192.168.11.42 racnode42
#Private IP(用于节点间心跳网络)
192.168.201.41 racnode41-priv
192.168.201.42 racnode42-priv
#Virtual IP(提供客户端访问,漂移)
192.168.11.43 racnode41-vip
192.168.11.44 racnode42-vip
#SCAN IP(提供客户端访问,均衡)
192.168.11.45 racnode-scan
" >> /etc/hosts
## 查看修改结果并验证
cat /etc/hosts
ping racnode41
ping racnode42
4. yum仓库
########################################################
##redhat8光盘配置
mount /dev/sr0 /mnt
echo "[BaseOS]
name=BaseOS
baseurl=file:///mnt/BaseOS
enabled=1
gpgcheck=0
[AppStream]
name=AppStream
baseurl=file:///mnt/AppStream
enabled=1
pgcheck=0
" >/etc/yum.repos.d/RHEL-ISO.repo
yum clean all
yum list
##安装测试
yum install vim
##yum 如yum安装正常忽略,若有权限问题,打开注释导入key,再行安装验证
#rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
##8.安装依赖
#26ai
yum -y install xdpyinfo libnsl autoconf automake binutils binutils-devel bison cpp dos2unix ftp gcc gcc-c++ lrzsz python-devel
yum -y install compat-db* compat-gcc-34 compat-gcc-34-c++ compat-libcap1 compat-libstdc++-33 compat-libstdc++-33.i686 glibc-* glibc-.i686 libXpm-.i686
yum -y install libXp.so.6 libXt.so.6 libXtst.so.6 libXext libXext.i686 libXtst libXtst.i686 libX11 libX11.i686 libXau libXau.i686
yum -y install libxcb libxcb.i686 libXi libXi.i686 libXtst libstdc++-docs libgcc_s.so.1 compat-openssl10
yum -y install libstdc++.i686 libstdc++-devel libstdc++-devel.i686 libaio libaio.i686 libaio-devel libaio-devel.i686
yum -y install ksh libXp libaio-devel numactl numactl-devel make -y sysstat -y unixODBC unixODBC-devel elfutils-libelf-devel redhat-lsb-core
yum -y install bc binutils elfutils-libelf elfutils-libelf-devel fontconfig-devel glibc glibc-devel ksh libaio libaio-devel libXrender libX11 libXau libXi libXtst libgcc libnsl librdmacm libstdc++ libstdc++-devel libxcb libibverbs make smartmontools sysstat
5. 时间同步
##############禁用chronyd:
yum install -y chrony
timedatectl set-timezone "Asia/Shanghai" ##//设置时区
##date -s "20251122 00:00:00" ##//设置时间
systemctl stop chronyd.service
systemctl disable chronyd.service
chronyd -q 'server ntp.ntsc.ac.cn iburst' #时间服务器可以自行选择,这里选择国家授时中心时间
chronyd -q 'server ntp1.aliyun.com iburst' #阿里云
配置时间同步计划任务:
##yum install -y ntpdate
##自行修改时间服务器IP,例:每天23点同步系统时间
cat <<EOF>>/var/spool/cron/root
#00 23 * * * /usr/sbin/ntpdate -u 192.168.229.143 && /usr/sbin/hwclock -w
#00 23 * * * /usr/sbin/chronyd -q 'server ntp.ntsc.ac.cn iburst' && /usr/sbin/hwclock -w
EOF
##查看计划任务
crontab -l
6. 存储 多路径
lsblk -f
[root@racnode41 ~]# lsblk -f
NAME FSTYPE LABEL UUID MOUNTPOINT
sda xfs 9a92e767-8648-4535-91fb-e80978f74435
sr0 iso9660 RHEL-8-9-0-BaseOS-x86_64 2023-10-30-14-26-34-00 /mnt
nvme0n1
├─nvme0n1p1 xfs edbbfe1d-9c62-4295-950a-4168d5cde6f4 /boot
├─nvme0n1p2 swap 96c61c07-2e60-4a19-b971-39d271f13def [SWAP]
└─nvme0n1p3 xfs eb35c74e-3837-46b4-9b10-994c7757bae4 /
nvme0n2
nvme0n3
##说明 nvme0n1根盘 sda: /soft nvme0n2/nvme0n3: asm*
mkdir -p /u01 /soft
mkfs.xfs /dev/sdb
mkfs.xfs /dev/sde
echo "
#/dev/sdb /soft xfs defaults 0 0" >>/etc/fstab
?
rac1:
yum install -y device-mapper*
mpathconf --enable --with_multipathd y
cat /sys/class/block/nvme0n2/wwid ##eui.0b27e60438040b48000c2963b98866d1
cat /sys/class/block/nvme0n3/wwid ##eui.7d2b18292dd69e5a000c296b2bd5c521
rac2:
yum install -y device-mapper*
mpathconf --enable --with_multipathd y
##############配置激活多路径:
RAC1 RAC2均执行:
配置multipath.conf
mv /etc/multipath.conf /etc/multipath.conf.bak
cat <<EOF>/etc/multipath.conf
defaults {
user_friendly_names yes
}
blacklist {
devnode "^sda"
devnode "^nvme0n1"
}
multipaths {
multipath {
wwid eui.0b27e60438040b48000c2963b98866d1
alias asm_ocr
}
multipath {
wwid eui.7d2b18292dd69e5a000c296b2bd5c521
alias asm_data
}
}
EOF
#刷新 查看
multipath -F
multipath -v2
multipath -ll
##############配置UDEV绑定:
[ -f /dev/mapper/udev_info ] && rm -rf /dev/mapper/udev_info
[ -f /etc/udev/rules.d/99-oracle-asmdevices.rules ] && rm -rf /etc/udev/rules.d/99-oracle-asmdevices.rules
##生成 udev_info 99-oracle-asmdevices.rules
cd /dev/mapper
for i in asm_*; do
printf "%s %s\n" "$i" "$(udevadm info --query=all --name=/dev/mapper/"$i" | grep -i dm_uuid)" >>/dev/mapper/udev_info
done
##19c
while read -r line; do
dm_uuid=$(echo "$line" | awk -F'=' '{print $2}')
disk_name=$(echo "$line" | awk '{print $1}')
echo "KERNEL==\"dm-*\",ENV{DM_UUID}==\"${dm_uuid}\",SYMLINK+=\"${disk_name}\",OWNER=\"grid\",GROUP=\"asmadmin\",MODE=\"0660\"" >>/etc/udev/rules.d/99-oracle-asmdevices.rules
done </dev/mapper/udev_info
##23~26ai 组权限变更asmdba
while read -r line; do
dm_uuid=$(echo "$line" | awk -F'=' '{print $2}')
disk_name=$(echo "$line" | awk '{print $1}')
echo "KERNEL==\"dm-*\",ENV{DM_UUID}==\"${dm_uuid}\",SYMLINK+=\"${disk_name}\",OWNER=\"grid\",GROUP=\"asmdba\",MODE=\"0660\"" >>/etc/udev/rules.d/99-oracle-asmdevices.rules
done </dev/mapper/udev_info
##查看文件内容
cat /dev/mapper/udev_info
cat /etc/udev/rules.d/99-oracle-asmdevices.rules
##重载udev
udevadm control --reload-rules
sleep 2
udevadm trigger --type=devices
sleep 1
##查看udev绑定
ll /dev/asm*
#################################################################################################################################################################
安装前准备: 此部分完整拷贝执行
##7. 防火墙配置
##############关闭防火墙
systemctl stop firewalld.service
systemctl disable firewalld.service
systemctl status firewalld.service
##9.selinux 配置
##############selinux 配置
sed -i 's/SELINUX=enforcing/SELINUX=disabled/g' /etc/selinux/config
setenforce 0
getenforce
cat /etc/selinux/config
##10.关闭透明大页和NUMA
##关闭透明大页和numa:
cp /etc/default/grub /etc/default/grub.bak
sed -i 's/quiet/quiet transparent_hugepage=never numa=off/' /etc/default/grub
grub2-mkconfig -o /boot/grub2/grub.cfg
##11.avahi-daemon 配置禁用
##有些主机安装选择最小化安装,没有安装 avahi-daemon 功能,建议安装之后禁用,防止以后误操作导致出问题:
yum install -y avahi*
systemctl stop avahi-daemon.socket
systemctl stop avahi-daemon.service
pgrep -f avahi-daemon | awk '{print "kill -9 "$2}'
systemctl disable avahi-daemon.socket
systemctl disable avahi-daemon.service
##配置 NOZEROCONF:
mv /etc/sysconfig/network /etc/sysconfig/network.bak
cat <<EOF>>/etc/sysconfig/network
NOZEROCONF=yes
EOF
##12.系统参数配置
cp /etc/sysctl.conf /etc/sysctl.conf.bak
##一键配置 获取OS资源信息
memTotal=$(grep MemTotal /proc/meminfo | awk '{print $2}')
totalMemory=$((memTotal / 2048))
shmall=$((memTotal / 4))
if [ $shmall -lt 2097152 ]; then
shmall=2097152
fi
shmmax=$((memTotal * 1024 - 1))
if [ "$shmmax" -lt 4294967295 ]; then
shmmax=4294967295
fi
###配置系统参数
cat <<EOF>>/etc/sysctl.conf
fs.aio-max-nr = 1048576
fs.file-max = 6815744
kernel.shmall = $shmall
kernel.shmmax = $shmmax
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
##rp_filter 反向路径过滤 必须设置,否则两个节点的db实例无法交流,其中一个节点被踢出集群
net.ipv4.conf.ens160.rp_filter = 1 ##网卡根据 nmcli c 真实网卡调整
net.ipv4.conf.ens224.rp_filter = 2 ##~~
kernel.panic=30
kernel.panic_on_oops=1
EOF
##参数 生效
cat /etc/sysctl.conf
sysctl -p
##13.系统资源限制配置(rac01&rac02)
###配置limits.conf:
cp /etc/security/limits.conf /etc/security/limits.conf.bak
cat <<EOF>>/etc/security/limits.conf
oracle soft nofile 1024
oracle hard nofile 65536
oracle soft stack 10240
oracle hard stack 32768
oracle soft nproc 2047
oracle hard nproc 16384
oracle hard memlock 134217728
oracle soft memlock 134217728
grid soft nofile 1024
grid hard nofile 65536
grid soft stack 10240
grid hard stack 32768
grid soft nproc 2047
grid hard nproc 16384
oracle soft memlock 3145728
oracle hard memlock 3145728
grid soft memlock 3145728
grid hard memlock 3145728
EOF
###配置pam.d/login:
cp /etc/pam.d/login /etc/pam.d/login.bak
cat <<EOF>>/etc/pam.d/login
session required pam_limits.so
session required /lib64/security/pam_limits.so
EOF
##14、用户及组、目录创建(rac01&rac02)
###创建安装 Oracle 数据库所需的用户、组以及安装目录:(id如有重复 去掉 -g id )
/usr/sbin/groupadd -g 54321 oinstall
/usr/sbin/groupadd -g 54322 dba
/usr/sbin/groupadd -g 54323 oper
/usr/sbin/groupadd -g 54324 backupdba
/usr/sbin/groupadd -g 54325 dgdba
/usr/sbin/groupadd -g 54326 kmdba
/usr/sbin/groupadd -g 54327 asmdba
/usr/sbin/groupadd -g 54328 asmoper
/usr/sbin/groupadd -g 54329 asmadmin
/usr/sbin/groupadd -g 54330 racdba
###grid/oracle 用户创建:
/usr/sbin/useradd -u 54321 -g oinstall -G asmdba,dba,backupdba,dgdba,kmdba,racdba,oper -c "db user " oracle
/usr/sbin/useradd -u 54322 -g oinstall -G asmadmin,asmdba,asmoper,dba,racdba,oper -c "grid user " grid
##修改用户密码为123
echo "123" |passwd oracle --stdin
echo "123" |passwd grid --stdin
##查看用户组
id grid
id oracle
##重载udev
/sbin/udevadm trigger --type=devices --action=change
sleep 2
/sbin/udevadm control --reload-rules
ll /dev/asm*
ll /dev/dm*
###注意: /dev/dm*这里udev重载之后,绑盘权限已经变 grid , asm未变
###创建软件目录:
#26ai
mkdir -p /u01/app/23.0.0/grid
mkdir -p /u01/app/grid
mkdir -p /u01/app/oracle/product/23.0.0/db
mkdir -p /u01/app/oraInventory
mkdir -p /backup
mkdir -p /home/oracle/scripts
chown -R oracle:oinstall /backup
chown -R oracle:oinstall /home/oracle/scripts
chown -R grid:oinstall /u01
chown -R grid:oinstall /u01/app/grid
chown -R grid:oinstall /u01/app/23.0.0/grid
chown -R grid:oinstall /u01/app/oraInventory
chown -R oracle:oinstall /u01/app/oracle
chmod -R 775 /u01
#准备目录
#echo "" >>/etc/fstab
#echo "/dev/nvme0n2 /soft xfs defaults 0 0" >>/etc/fstab
#mkdir -p /soft
#mount -a
#虚拟机规整硬盘空间
#mv /u01 /soft/
#ln -s /soft/u01 /u01
##15、环境变量配置(rac01&rac02)
#####################grid用户环境变量:
#RAC1:
cat <<EOF>>/home/grid/.bash_profile
################OracleBegin#########################
umask 022
export TMP=/tmp
export TMPDIR=\$TMP
export NLS_LANG=AMERICAN_AMERICA.AL32UTF8
export ORACLE_BASE=/u01/app/grid
export ORACLE_HOME=/u01/app/23.0.0/grid
export ORACLE_TERM=xterm
export TNS_ADMIN=\$ORACLE_HOME/network/admin
export LD_LIBRARY_PATH=\$ORACLE_HOME/lib:/lib:/usr/lib
export ORACLE_SID=+ASM1
export PATH=/usr/sbin:\$PATH
export PATH=\$ORACLE_HOME/bin:\$ORACLE_HOME/OPatch:\$PATH
alias sas='sqlplus / as sysasm'
export PS1="[\`whoami\`@\`hostname\`:"'\$PWD]\$ '
EOF
chown grid.oinstall /home/grid/.bash_profile
######RAC2: 参考上述RAC1 ORACLE_SID 不一样 调整为: +ASM2
##略 copy rac1的内容在执行下述修改
sed -i 's/+ASM1/+ASM2/g' /home/grid/.bash_profile
#####################oracle用户环境变量:
#RAC1:
cat <<EOF>>/home/oracle/.bash_profile
################OracleBegin#########################
umask 022
export TMP=/tmp
export TMPDIR=\$TMP
export NLS_LANG=AMERICAN_AMERICA.AL32UTF8
export ORACLE_BASE=/u01/app/oracle
export ORACLE_HOME=\$ORACLE_BASE/product/23.0.0/db
export ORACLE_TERM=xterm
export TNS_ADMIN=\$ORACLE_HOME/network/admin
export LD_LIBRARY_PATH=\$ORACLE_HOME/lib:/lib:/usr/lib
export ORACLE_SID=racdb1
export ORACLE_HOSTNAME=racnode41
export PATH=/usr/sbin:\$PATH
export PATH=\$ORACLE_HOME/bin:\$ORACLE_HOME/OPatch:\$PATH
alias sas='sqlplus / as sysdba'
export PS1="[\`whoami\`@\`hostname\`:"'\$PWD]\$ '
################OracleEnd#########################
EOF
chown oracle.oinstall /home/oracle/.bash_profile
######RAC2: 参考上述RAC1 ORACLE_SID 不一样 调整为: +ASM2
##略 copy rac1的内容在执行下述修改
sed -i -e 's/racdb1/racdb2/g' -e 's/racnode41/racnode42/g' /home/oracle/.bash_profile
#################################################################################################################################################################
rac安装:
##16、重启虚拟机
reboot
##重启后检查禁用大页和numa是否生效:
cat /sys/kernel/mm/transparent_hugepage/enabled
cat /proc/cmdline
##参考步骤12 检查内核参数rp_filter,其中ens160 ens224调整为真实网卡
cat /etc/sysctl.conf|grep rp_filter
##修正后执行生效
sysctl -p
##17、安装介质上传解压(rac01)
##上传安装介质到 ...(/soft)
##挂盘 如果认不到重新scsi发现一下
echo "- - -" > /sys/class/scsi_host/host32/scan
##如果host太多分辨不出来,可全部发现一下
for i in `ls /sys/class/scsi_host`
do
echo "- - -" > /sys/class/scsi_host/${i}/scan
done
mount /dev/sda /soft
chmod 777 /soft
##上传安装介质
V1054592-01.zip #oracle安装包
V1054596-01.zip #grid安装包
解压缩:
##解压grid安装包:
su - grid -c "unzip -q /soft/23ai/V1054596-01.zip -d /u01/app/23.0.0/grid/"
##解压oracle安装包:
su - oracle -c "unzip -q /soft/23ai/V1054592-01.zip -d /u01/app/oracle/product/23.0.0/db"
#检查环境
su - grid
opatch version
OPatch Version: 12.2.0.1.48
su - oracle
opatch version
OPatch Version: 12.2.0.1.48
##cvuqdisk安装:
##rac01:
su - root
cd /u01/app/23.0.0/grid/cv/rpm
rpm -ivh /u01/app/23.0.0/grid/cv/rpm/cvuqdisk-1.0.10-1.rpm
##传输到节点二安装
scp cvuqdisk-1.0.10-1.rpm root@racnode42:~
##rac02:
rpm -ivh ~/cvuqdisk-1.0.10-1.rpm
##18、安装Grid软件(rac01)
###18.1 节点互信
####18.1.1 sshUserSetup构建互信
su - grid
cd $ORACLE_HOME
export SSH_AUTH_SOCK=0
./oui/prov/resources/scripts/sshUserSetup.sh -user grid -hosts "racnode41 racnode42" -advanced -confirm -noPromptPassphrase
./oui/prov/resources/scripts/sshUserSetup.sh -user oracle -hosts "racnode41 racnode42" -advanced -confirm -noPromptPassphrase
./oui/prov/resources/scripts/sshUserSetup.sh -user root -hosts "racnode41 racnode42" -advanced -confirm -noPromptPassphrase
####18.1.2 SSH执行验证
su - oracle
date;ssh racnode41 date;ssh racnode41 date;ssh racnode42 date;ssh racnode42 date;ssh racnode41 date
su - grid
date;ssh racnode41 date;ssh racnode41 date;ssh racnode42 date;ssh racnode42 date;ssh racnode41 date
####18.1.3 runcluvfy对等互信验证
su - grid
$ORACLE_HOME/runcluvfy.sh comp admprv -n racnode41,racnode42 -o user_equiv -sshonly -verbose
####18.1.4 异常重建互信
##如核查有问题,执行如下
##删除已有的ssh配置,在重新互信及验证
rm -f /home/grid/.ssh/*
rm -f /home/oracle/.ssh/*
###18.2 GRID安装
####18.2.1 安装前预校验
su - grid
cd $ORACLE_HOME
./runcluvfy.sh stage -pre crsinst -n racnode41,racnode42 -verbose -fixup
####18.2.2 rsp文件准备
cat <<EOF>./grid_26ai_mod
oracle.install.responseFileVersion=/oracle/install/rspfmt_crsinstall_response_schema_v23.0.0
INVENTORY_LOCATION=/u01/app/oraInventory
installOption=CRS_CONFIG
ORACLE_BASE=/u01/app/grid
clusterUsage=RAC
OSDBA=asmdba
OSOPER=asmoper
OSASM=asmadmin
scanType=LOCAL_SCAN
scanName=racnode-scan
scanPort=1521
configureAsExtendedCluster=false
clusterName=racnode-cluster
configureGNS=false
configureDHCPAssignedVIPs=false
clusterNodes=racnode41:racnode41-vip,racnode42:racnode42-vip
networkInterfaceList=ens160:192.168.11.0:1,ens224:192.168.201.0:5
storageOption=FLEX_ASM_STORAGE
useIPMI=false
bmcBinpath=
bmcUsername=
bmcPassword=
sysasmPassword=oracle
diskGroupName=OCR
redundancy=EXTERNAL
auSize=4
failureGroups=
disksWithFailureGroupNames=/dev/asm_ocr,
diskList=/dev/asm_ocr
quorumFailureGroupNames=
diskString=/dev/asm*
asmsnmpPassword=oracle
configureBackupDG=false
managementOption=NONE
ignoreDownNodes=false
executeRootScript=false
configMethod=
sudoPath=/usr/local/bin/sudo
sudoUserName=grid
batchInfo=
nodesToDelete=
enableAutoFixup=false
EOF
####18.2.3 静默安装
su - grid
/u01/app/23.0.0/grid/gridSetup.sh -executeConfigTools -responseFile /home/grid/grid_26ai_mod.rsp
##################################
[grid@racnode41:/home/grid]$ $ORACLE_HOME/gridSetup.sh -silent -ignorePrereqFailure -waitForCompletion -responseFile ~/grid_26ai_mod.rsp
Launching Oracle Grid Infrastructure Setup Wizard...
[WARNING] [INS-30011] The SYS password entered does not conform to the Oracle recommended standards.
CAUSE: Oracle recommends that the password entered should be at least 8 characters in length, contain at least 1 uppercase character, 1 lower case character and 1 digit [0-9].
ACTION: Provide a password that conforms to the Oracle recommended standards.
[WARNING] [INS-30011] The ASMSNMP password entered does not conform to the Oracle recommended standards.
CAUSE: Oracle recommends that the password entered should be at least 8 characters in length, contain at least 1 uppercase character, 1 lower case character and 1 digit [0-9].
ACTION: Provide a password that conforms to the Oracle recommended standards.
[WARNING] [INS-40109] The specified Oracle base location is not empty on this server.
ACTION: Specify an empty location for Oracle base.
[WARNING] [INS-32047] The location (/u01/app/oraInventory) specified for the central inventory is not empty.
ACTION: It is recommended to provide an empty location for the inventory.
[WARNING] [INS-13013] Target environment does not meet some mandatory requirements.
CAUSE: Some of the mandatory prerequisites are not met. See logs for details. /tmp/GridSetupActions2026-04-15_11-09-07AM/gridSetupActions2026-04-15_11-09-07AM.log.
ACTION: Identify the list of failed prerequisite checks from the log: /tmp/GridSetupActions2026-04-15_11-09-07AM/gridSetupActions2026-04-15_11-09-07AM.log. Then either from the log file or from installation manual find the appropriate configuration to meet the prerequisites and fix it manually.
The response file for this session can be found at:
/u01/app/23.0.0/grid/install/response/grid_2026-04-15_11-09-07AM.rsp
You can find the log of this install session at:
/tmp/GridSetupActions2026-04-15_11-09-07AM/gridSetupActions2026-04-15_11-09-07AM.log
As a root user, run the following script(s):
1. /u01/app/oraInventory/orainstRoot.sh
2. /u01/app/23.0.0/grid/root.sh
Run /u01/app/oraInventory/orainstRoot.sh on the following nodes:
[racnode41, racnode42]
Run /u01/app/23.0.0/grid/root.sh on the following nodes:
[racnode41, racnode42]
The scripts can be run in parallel on all the nodes.
Successfully Setup Software with warning(s).
As install user, run the following command to complete the configuration.
/u01/app/23.0.0/grid/gridSetup.sh -executeConfigTools -responseFile /home/grid/grid_26ai_mod.rsp
Moved the install session logs to:
/u01/app/oraInventory/logs/GridSetupActions2026-04-15_11-09-07AM
##################################
racnode41 root脚本执行:
[root@racnode41 ~]# /u01/app/oraInventory/orainstRoot.sh
Changing permissions of /u01/app/oraInventory.
Adding read,write permissions for group.
Removing read,write,execute permissions for world.
Changing groupname of /u01/app/oraInventory to oinstall.
The execution of the script is complete.
[root@racnode41 ~]#
[root@racnode41 ~]#
[root@racnode41 ~]# /u01/app/23.0.0/grid/root.sh
Check /u01/app/23.0.0/grid/install/root_racnode41_2026-04-15_11-13-21-832776284.log for the output of root script
[root@racnode41 oraInventory]# tail -200f /u01/app/23.0.0/grid/install/root_racnode41_2026-04-15_11-13-21-832776284.log
Performing root user operation.
The following environment variables are set as:
ORACLE_OWNER= grid
ORACLE_HOME= /u01/app/23.0.0/grid
Copying dbhome to /usr/local/bin ...
Copying oraenv to /usr/local/bin ...
Copying coraenv to /usr/local/bin ...
Creating /etc/oratab file...
Entries will be added to the /etc/oratab file as needed by
Database Configuration Assistant when a database is created
Finished running generic part of root script.
Now product-specific root actions will be performed.
RAC option enabled on: Linux
Executing command '/u01/app/23.0.0/grid/perl/bin/perl -I/u01/app/23.0.0/grid/perl/lib -I/u01/app/23.0.0/grid/crs/install /u01/app/23.0.0/grid/crs/install/rootcrs.pl '
Using configuration parameter file: /u01/app/23.0.0/grid/crs/install/crsconfig_params
The log of current session can be found at:
/u01/app/grid/crsdata/racnode41/crsconfig/rootcrs_racnode41_2026-04-15_11-13-22AM.log
2026/04/15 11:13:25 CLSRSC-594: Executing installation step 1 of 18: 'ValidateEnv'.
2026/04/15 11:13:25 CLSRSC-363: User ignored prerequisites during installation
2026/04/15 11:13:25 CLSRSC-594: Executing installation step 2 of 18: 'CheckRootCert'.
2026/04/15 11:13:26 CLSRSC-594: Executing installation step 3 of 18: 'GenSiteGUIDs'.
2026/04/15 11:13:26 CLSRSC-594: Executing installation step 4 of 18: 'SetupOSD'.
Redirecting to /bin/systemctl restart rsyslog.service
2026/04/15 11:13:27 CLSRSC-594: Executing installation step 5 of 18: 'CheckCRSConfig'.
2026/04/15 11:13:27 CLSRSC-594: Executing installation step 6 of 18: 'SetupLocalGPNP'.
2026/04/15 11:13:31 CLSRSC-594: Executing installation step 7 of 18: 'CreateRootCert'.
2026/04/15 11:13:44 CLSRSC-594: Executing installation step 8 of 18: 'ConfigOLR'.
2026/04/15 11:13:47 CLSRSC-594: Executing installation step 9 of 18: 'ConfigCHMOS'.
2026/04/15 11:13:48 CLSRSC-594: Executing installation step 10 of 18: 'CreateOHASD'.
2026/04/15 11:13:49 CLSRSC-594: Executing installation step 11 of 18: 'ConfigOHASD'.
2026/04/15 11:13:49 CLSRSC-330: Adding Clusterware entries to file 'oracle-ohasd.service'
2026/04/15 11:14:01 CLSRSC-594: Executing installation step 12 of 18: 'SetupTFA'.
2026/04/15 11:14:01 CLSRSC-594: Executing installation step 13 of 18: 'InstallACFS'.
2026/04/15 11:14:17 CLSRSC-594: Executing installation step 14 of 18: 'CheckFirstNode'.
2026/04/15 11:14:18 CLSRSC-594: Executing installation step 15 of 18: 'InitConfig'.
CRS-4256: Updating the profile
Successful addition of voting disk 52edfc78a40f4ff0bf28b448c2be8d34.
Successfully replaced voting disk group with +OCR.
CRS-4256: Updating the profile
CRS-4266: Voting file(s) successfully replaced
## STATE File Universal Id File Name Disk group
-- ----- ----------------- --------- ---------
1. ONLINE 52edfc78a40f4ff0bf28b448c2be8d34 (/dev/asm_ocr) [OCR]
Located 1 voting disk(s).
2026/04/15 11:15:27 CLSRSC-4002: Successfully installed Oracle Autonomous Health Framework (AHF).
2026/04/15 11:15:52 CLSRSC-594: Executing installation step 16 of 18: 'StartCluster'.
2026/04/15 11:16:08 CLSRSC-343: Successfully started Oracle Clusterware stack
2026/04/15 11:16:10 CLSRSC-594: Executing installation step 17 of 18: 'ConfigNode'.
clscfg: EXISTING configuration version 23 detected.
Successfully accumulated necessary OCR keys.
Creating OCR keys for user 'root', privgrp 'root'..
Operation successful.
2026/04/15 11:16:26 CLSRSC-594: Executing installation step 18 of 18: 'PostConfig'.
2026/04/15 11:16:34 CLSRSC-325: Configure Oracle Grid Infrastructure for a Cluster ... succeeded
##################################
racnode42 root脚本执行::
Performing root user operation.
The following environment variables are set as:
ORACLE_OWNER= grid
ORACLE_HOME= /u01/app/23.0.0/grid
Copying dbhome to /usr/local/bin ...
Copying oraenv to /usr/local/bin ...
Copying coraenv to /usr/local/bin ...
Creating /etc/oratab file...
Entries will be added to the /etc/oratab file as needed by
Database Configuration Assistant when a database is created
Finished running generic part of root script.
Now product-specific root actions will be performed.
RAC option enabled on: Linux
Executing command '/u01/app/23.0.0/grid/perl/bin/perl -I/u01/app/23.0.0/grid/perl/lib -I/u01/app/23.0.0/grid/crs/install /u01/app/23.0.0/grid/crs/install/rootcrs.pl '
Using configuration parameter file: /u01/app/23.0.0/grid/crs/install/crsconfig_params
The log of current session can be found at:
/u01/app/grid/crsdata/racnode42/crsconfig/rootcrs_racnode42_2026-04-15_11-18-20AM.log
2026/04/15 11:18:24 CLSRSC-594: Executing installation step 1 of 18: 'ValidateEnv'.
2026/04/15 11:18:24 CLSRSC-363: User ignored prerequisites during installation
2026/04/15 11:18:24 CLSRSC-594: Executing installation step 2 of 18: 'CheckRootCert'.
2026/04/15 11:18:24 CLSRSC-594: Executing installation step 3 of 18: 'GenSiteGUIDs'.
2026/04/15 11:18:24 CLSRSC-594: Executing installation step 4 of 18: 'SetupOSD'.
Redirecting to /bin/systemctl restart rsyslog.service
2026/04/15 11:18:25 CLSRSC-594: Executing installation step 5 of 18: 'CheckCRSConfig'.
2026/04/15 11:18:25 CLSRSC-594: Executing installation step 6 of 18: 'SetupLocalGPNP'.
2026/04/15 11:18:25 CLSRSC-594: Executing installation step 7 of 18: 'CreateRootCert'.
2026/04/15 11:18:25 CLSRSC-594: Executing installation step 8 of 18: 'ConfigOLR'.
2026/04/15 11:18:28 CLSRSC-594: Executing installation step 9 of 18: 'ConfigCHMOS'.
2026/04/15 11:18:28 CLSRSC-594: Executing installation step 10 of 18: 'CreateOHASD'.
2026/04/15 11:18:29 CLSRSC-594: Executing installation step 11 of 18: 'ConfigOHASD'.
2026/04/15 11:18:30 CLSRSC-330: Adding Clusterware entries to file 'oracle-ohasd.service'
2026/04/15 11:18:37 CLSRSC-594: Executing installation step 12 of 18: 'SetupTFA'.
2026/04/15 11:18:37 CLSRSC-594: Executing installation step 13 of 18: 'InstallACFS'.
2026/04/15 11:18:55 CLSRSC-594: Executing installation step 14 of 18: 'CheckFirstNode'.
2026/04/15 11:18:55 CLSRSC-594: Executing installation step 15 of 18: 'InitConfig'.
2026/04/15 11:19:03 CLSRSC-594: Executing installation step 16 of 18: 'StartCluster'.
2026/04/15 11:19:24 CLSRSC-343: Successfully started Oracle Clusterware stack
2026/04/15 11:19:25 CLSRSC-594: Executing installation step 17 of 18: 'ConfigNode'.
2026/04/15 11:19:25 CLSRSC-594: Executing installation step 18 of 18: 'PostConfig'.
2026/04/15 11:19:28 CLSRSC-325: Configure Oracle Grid Infrastructure for a Cluster ... succeeded
2026/04/15 11:20:12 CLSRSC-4002: Successfully installed Oracle Autonomous Health Framework (AHF).
##################################
racnode41 继续执行未完安装(executeConfigTools):
[grid@racnode41:/home/grid]$ /u01/app/23.0.0/grid/gridSetup.sh -executeConfigTools -responseFile /home/grid/grid_26ai_mod.rsp
ERROR: Unable to verify the graphical display setup. This application requires X display. Make sure that xdpyinfo exist under PATH variable.
Launching Oracle Grid Infrastructure Setup Wizard...
You can find the logs of this session at:
/u01/app/oraInventory/logs/GridSetupActions2026-04-15_01-07-18PM
[ Start ] NETCA - 2026-04-15 13:07:32.935
Command: /bin/sh -c /u01/app/23.0.0/grid/bin/netca /orahome /u01/app/23.0.0/grid /instype typical /inscomp client,oraclenet,javavm,server,ano /insprtcl tcp /cfg local /authadp NO_VALUE /responseFile /u01/app/23.0.0/grid/network/install/netca_typ.rsp /silent /orahnam OraGI23Home1 /ouiinternal
Parsing command line arguments:
Parameter "orahome" = /u01/app/23.0.0/grid
Parameter "instype" = typical
Parameter "inscomp" = client,oraclenet,javavm,server,ano
Parameter "insprtcl" = tcp
Parameter "cfg" = local
Parameter "authadp" = NO_VALUE
Parameter "responsefile" = /u01/app/23.0.0/grid/network/install/netca_typ.rsp
Parameter "silent" = true
Parameter "orahnam" = OraGI23Home1
Parameter "ouiinternal" = true
Done parsing command line arguments.
Oracle Net Services Configuration:
Profile configuration complete.
Profile configuration complete.
Listener "LISTENER" already exists.
Oracle Net Services configuration successful. The exit code is 0
[ Exit Code ] 0
[ End ] NETCA - 2026-04-15 13:07:36.832
[ Start ] ASMCA - 2026-04-15 13:07:36.896
Command: /bin/sh -c /u01/app/23.0.0/grid/bin/asmca -silent -postConfigureASM -oui_internal
SYS_PASSWORD_PROMPT
ASMSNMP_PASSWORD_PROMPT
Post configuration completed successfully
[ Exit Code ] 0
[ End ] ASMCA - 2026-04-15 13:07:42.334
[ Start ] CVU - 2026-04-15 13:07:42.37
Command: /bin/sh -c /u01/app/23.0.0/grid/bin/cluvfy stage -post crsinst -collect cluster -n all
This software is "187" days old. It is a best practice to update the CRS home by downloading and applying the latest release update. Refer to MOS note 756671.1 for more details.
Initializing ...
Performing following verification checks ...
Node Connectivity ...
Hosts File ...PASSED
Check that maximum (MTU) size packet goes through subnet ...PASSED
subnet mask consistency for subnet "192.168.11.0" ...PASSED
subnet mask consistency for subnet "192.168.201.0" ...PASSED
Node Connectivity ...PASSED
Multicast or broadcast check ...
Checking subnet "192.168.201.0" for multicast communication with multicast
group "224.0.0.251"
Subnet Network Type Multicast Enabled
------------ ------------------------ ------------------------
192.168.201.0 PRIVATE TRUE
Multicast or broadcast check ...PASSED
Time zone consistency ...PASSED
Path existence, ownership, permissions and attributes ...
Path "/var" ...PASSED
Path "/var/lib/oracle" ...PASSED
Path "/u01/app/oraInventory/ContentsXML/inventory.xml" ...PASSED
Path "/dev/asm" ...PASSED
Path "/dev/shm" ...PASSED
Path "/etc/init.d/ohasd" ...PASSED
Path "/etc/init.d/init.ohasd" ...PASSED
Path "/etc/init.d/init.tfa" ...PASSED
Path "/etc/oracle/maps" ...PASSED
Path "/etc/oraInst.loc" ...PASSED
Path "/etc/tmpfiles.d/oracleGI.conf" ...PASSED
Path "/u01/app/grid/diag/crs/racnode41/crs/metadata_dgif" ...PASSED
Path "/u01/app/grid/diag/crs/racnode41/crs/metadata" ...PASSED
Path "/u01/app/grid/diag/crs/racnode41/crs/trace" ...PASSED
Path "/u01/app/grid/diag/crs/racnode41/crs/incident" ...PASSED
Path "/u01/app/grid/diag/crs/racnode41/crs/lck" ...PASSED
Path "/u01/app/grid/diag/crs/racnode41/crs/log" ...PASSED
Path "/u01/app/grid/diag/crs/racnode41/crs/incpkg" ...PASSED
Path "/u01/app/grid/diag/crs/racnode41/crs/cdump" ...PASSED
Path "/u01/app/grid/diag/crs/racnode41/crs/alert" ...PASSED
Path "/u01/app/grid/diag/crs/racnode41/crs/metadata_pv" ...PASSED
Path "/u01/app/grid/diag/crs/racnode41/crs/sweep" ...PASSED
Path "/u01/app/grid/diag/crs/racnode41/crs/stage" ...PASSED
Path "/u01/app/23.0.0/grid/gpnp/wallets/peer/cwallet.sso" ...PASSED
Path "/u01/app/23.0.0/grid/gpnp/wallets/root/cwallet.sso" ...PASSED
Path "/u01/app/23.0.0/grid/gpnp/profiles/peer/profile.xml" ...PASSED
Path existence, ownership, permissions and attributes ...PASSED
Cluster Manager Integrity ...PASSED
User Mask ...PASSED
Cluster Integrity ...PASSED
OCR Integrity ...PASSED
CRS Integrity ...
Clusterware Version Consistency ...PASSED
CRS Integrity ...PASSED
Node Application Existence ...PASSED
Single Client Access Name (SCAN) ...
DNS/NIS name service 'racnode-scan' ...
Name Service Switch Configuration File Integrity ...PASSED
DNS/NIS name service 'racnode-scan' ...FAILED (PRVG-1101)
Single Client Access Name (SCAN) ...FAILED (PRVH-1558, PRVG-1101)
OLR Integrity ...PASSED
Voting Disk ...PASSED
ASM Integrity ...PASSED
ASM Network ...PASSED
ASM disk group free space ...PASSED
User Not In Group "root": grid ...PASSED
Clock Synchronization ...
Network Time Protocol (NTP) ...
Daemon 'ntpd' ...FAILED (PRVG-1024, PRVF-7590)
Daemon 'chronyd' ...FAILED (PRVG-1024, PRVF-7590)
Network Time Protocol (NTP) ...FAILED (PRVG-1024, PRVF-7590)
Clock Synchronization ...FAILED (PRVG-1024, PRVF-7590)
VIP Subnet configuration check ...PASSED
Oracle Net Services configuration ...PASSED
Network configuration consistency checks ...PASSED
Package: psmisc-22.6-19 ...PASSED
File system mount options for path GI_HOME ...PASSED
File system mount option hidepid for proc filesystem ...PASSED
Cleanup of communication socket files ...PASSED
Domain Sockets ...PASSED
Post-check for cluster services setup was unsuccessful.
Checks did not pass for the following nodes:
racnode42,racnode41
Failures were encountered during execution of CVU verification request "stage -post crsinst".
Single Client Access Name (SCAN) ...FAILED
PRVH-1558 : The IP addresses "" that the SCAN name "racnode-scan" resolved to
do not match the IP addresses "192.168.11.45" configured for SCAN VIP resources.
DNS/NIS name service 'racnode-scan' ...FAILED
PRVG-1101 : SCAN name "racnode-scan" failed to resolve
Clock Synchronization ...FAILED
Network Time Protocol (NTP) ...FAILED
Daemon 'ntpd' ...FAILED
PRVG-1024 : The NTP daemon or Service was not running on any of the cluster
nodes.
racnode42: PRVF-7590 : "ntpd" is not running on node "racnode42"
racnode42: Liveness check failed for "ntpd"
racnode41: PRVF-7590 : "ntpd" is not running on node "racnode41"
racnode41: Liveness check failed for "ntpd"
Daemon 'chronyd' ...FAILED
PRVG-1024 : The NTP daemon or Service was not running on any of the cluster
nodes.
racnode42: PRVF-7590 : "chronyd" is not running on node "racnode42"
racnode42: Liveness check failed for "chronyd"
racnode41: PRVF-7590 : "chronyd" is not running on node "racnode41"
racnode41: Liveness check failed for "chronyd"
CVU operation performed: stage -post crsinst
Date: Apr 15, 2026, 1:07:42 PM
CVU version: 23.26.1.0.0 (010926x8664)
Clusterware version: 23.0.0.0.0
CVU home: /u01/app/23.0.0/grid
Grid home: /u01/app/23.0.0/grid
User: grid
Operating system: Linux4.18.0-513.5.1.el8_9.x86_64
Configuration failed.
[FATAL] [INS-20801] Configuration Assistant 'Oracle Cluster Verification Utility' failed.
ACTION: Refer to the logs or the extra details from below for additional information.
*ADDITIONAL INFORMATION:*
Command: /bin/sh -c /u01/app/23.0.0/grid/bin/cluvfy stage -post crsinst -collect cluster -n all
Standard error: This software is "187" days old. It is a best practice to update the CRS home by downloading and applying the latest release update. Refer to MOS note 756671.1 for more details. Initializing ... Performing following verification checks ... Node Connectivity ... Hosts File ...PASSED Check that maximum (MTU) size packet goes through subnet ...PASSED subnet mask consistency for subnet "192.168.11.0" ...PASSED subnet mask consistency for subnet "192.168.201.0" ...PASSED Node Connectivity ...PASSED Multicast or broadcast check ... Checking subnet "192.168.201.0" for multicast communication with multicast group "224.0.0.251" Subnet Network Type Multicast Enabled ------------ ------------------------ ------------------------ 192.168.201.0 PRIVATE TRUE Multicast or broadcast check ...PASSED Time zone consistency ...PASSED Path existence, ownership, permissions and attributes ... Path "/var" ...PASSED Path "/var/lib/oracle" ...PASSED Path "/u01/app/oraInventory/ContentsXML/inventory.xml" ...PASSED Path "/dev/asm" ...PASSED Path "/dev/shm" ...PASSED Path "/etc/init.d/ohasd" ...PASSED Path "/etc/init.d/init.ohasd" ...PASSED Path "/etc/init.d/init.tfa" ...PASSED Path "/etc/oracle/maps" ...PASSED Path "/etc/oraInst.loc" ...PASSED Path "/etc/tmpfiles.d/oracleGI.conf" ...PASSED Path "/u01/app/grid/diag/crs/racnode41/crs/metadata_dgif" ...PASSED Path "/u01/app/grid/diag/crs/racnode41/crs/metadata" ...PASSED Path "/u01/app/grid/diag/crs/racnode41/crs/trace" ...PASSED Path "/u01/app/grid/diag/crs/racnode41/crs/incident" ...PASSED Path "/u01/app/grid/diag/crs/racnode41/crs/lck" ...PASSED Path "/u01/app/grid/diag/crs/racnode41/crs/log" ...PASSED Path "/u01/app/grid/diag/crs/racnode41/crs/incpkg" ...PASSED Path "/u01/app/grid/diag/crs/racnode41/crs/cdump" ...PASSED Path "/u01/app/grid/diag/crs/racnode41/crs/alert" ...PASSED Path "/u01/app/grid/diag/crs/racnode41/crs/metadata_pv" ...PASSED Path "/u01/app/grid/diag/crs/racnode41/crs/sweep" ...PASSED Path "/u01/app/grid/diag/crs/racnode41/crs/stage" ...PASSED Path "/u01/app/23.0.0/grid/gpnp/wallets/peer/cwallet.sso" ...PASSED Path "/u01/app/23.0.0/grid/gpnp/wallets/root/cwallet.sso" ...PASSED Path "/u01/app/23.0.0/grid/gpnp/profiles/peer/profile.xml" ...PASSED Path existence, ownership, permissions and attributes ...PASSED Cluster Manager Integrity ...PASSED User Mask ...PASSED Cluster Integrity ...PASSED OCR Integrity ...PASSED CRS Integrity ... Clusterware Version Consistency ...PASSED CRS Integrity ...PASSED Node Application Existence ...PASSED Single Client Access Name (SCAN) ... DNS/NIS name service 'racnode-scan' ... Name Service Switch Configuration File Integrity ...PASSED DNS/NIS name service 'racnode-scan' ...FAILED (PRVG-1101) Single Client Access Name (SCAN) ...FAILED (PRVH-1558, PRVG-1101) OLR Integrity ...PASSED Voting Disk ...PASSED ASM Integrity ...PASSED ASM Network ...PASSED ASM disk group free space ...PASSED User Not In Group "root": grid ...PASSED Clock Synchronization ... Network Time Protocol (NTP) ... Daemon 'ntpd' ...FAILED (PRVG-1024, PRVF-7590) Daemon 'chronyd' ...FAILED (PRVG-1024, PRVF-7590) Network Time Protocol (NTP) ...FAILED (PRVG-1024, PRVF-7590) Clock Synchronization ...FAILED (PRVG-1024, PRVF-7590) VIP Subnet configuration check ...PASSED Oracle Net Services configuration ...PASSED Network configuration consistency checks ...PASSED Package: psmisc-22.6-19 ...PASSED File system mount options for path GI_HOME ...PASSED File system mount option hidepid for proc filesystem ...PASSED Cleanup of communication socket files ...PASSED Domain Sockets ...PASSED Post-check for cluster services setup was unsuccessful. Checks did not pass for the following nodes: racnode42,racnode41 Failures were encountered during execution of CVU verification request "stage -post crsinst". Single Client Access Name (SCAN) ...FAILED PRVH-1558 : The IP addresses "" that the SCAN name "racnode-scan" resolved to do not match the IP addresses "192.168.11.45" configured for SCAN VIP resources. DNS/NIS name service 'racnode-scan' ...FAILED PRVG-1101 : SCAN name "racnode-scan" failed to resolve Clock Synchronization ...FAILED Network Time Protocol (NTP) ...FAILED Daemon 'ntpd' ...FAILED PRVG-1024 : The NTP daemon or Service was not running on any of the cluster nodes. racnode42: PRVF-7590 : "ntpd" is not running on node "racnode42" racnode42: Liveness check failed for "ntpd" racnode41: PRVF-7590 : "ntpd" is not running on node "racnode41" racnode41: Liveness check failed for "ntpd" Daemon 'chronyd' ...FAILED PRVG-1024 : The NTP daemon or Service was not running on any of the cluster nodes. racnode42: PRVF-7590 : "chronyd" is not running on node "racnode42" racnode42: Liveness check failed for "chronyd" racnode41: PRVF-7590 : "chronyd" is not running on node "racnode41" racnode41: Liveness check failed for "chronyd" CVU operation performed: stage -post crsinst Date: Apr 15, 2026, 1:07:42 PM CVU version: 23.26.1.0.0 (010926x8664) Clusterware version: 23.0.0.0.0 CVU home: /u01/app/23.0.0/grid Grid home: /u01/app/23.0.0/grid User: grid Operating system: Linux4.18.0-513.5.1.el8_9.x86_64
Exit code: 1
[ Exit Code ] 1
[ End ] CVU - 2026-04-15 13:08:25.022
[WARNING] [INS-43080] Some of the configuration assistants failed, were cancelled or skipped.
ACTION: Refer to the logs or contact Oracle Support Services.
####18.2.4 安装完验证
##查看集群服务情况
source ~grid/.bash_profile
crsctl stat res -t
#########################################################################################################
##19 ASM磁盘创建
su - grid
asmca -silent -createDiskGroup -diskGroupName DATA -diskList '/dev/asm_data' -redundancy EXTERNAL
[grid@racnode41:/home/grid]$ asmca -silent -createDiskGroup -diskGroupName DATA -diskList '/dev/asm_data' -redundancy EXTERNAL
[INFO] [DBT-30001] Disk groups created successfully. Check /u01/app/grid/cfgtoollogs/asmca/asmca-260715PM011608.log for details.
asmcmd lsdg #查看
[grid@racnode41:/home/grid]$ asmcmd lsdg
State Type Rebal Sector Logical_Sector Block AU Total_MB Free_MB Req_mir_free_MB Usable_file_MB Offline_disks Voting_files Name
MOUNTED EXTERN N 512 512 4096 1048576 5120 5012 0 5012 0 N DATA/
MOUNTED EXTERN N 512 512 4096 4194304 2048 1696 0 1696 0 Y OCR/
#########################################################################################################
##20 DB软件安装
###20.1 准备仅安装DB软件的rsp文件
su - oracle
cat <<EOF >~oracle/db_install_26ai.rsp
oracle.install.responseFileVersion=/oracle/install/rspfmt_dbinstall_response_schema_v23.0.0
installOption=INSTALL_DB_SWONLY
UNIX_GROUP_NAME=oinstall
INVENTORY_LOCATION=/u01/app/oraInventory
ORACLE_BASE=/u01/app/oracle
ORACLE_HOME=/u01/app/oracle/product/23.0.0/db
installEdition=EE
OSDBA=dba
OSOPER=oper
OSBACKUPDBA=backupdba
OSDGDBA=dgdba
OSKMDBA=kmdba
OSRACDBA=racdba
executeRootScript=false
clusterNodes=racnode41,racnode42
dbType=GENERAL_PURPOSE
enableAutoMemoryManagement=false
enableRecovery=false
EOF
chown -R oracle.oinstall ~oracle/db_install_26ai.rsp
###20.2 软件静默安装
$ORACLE_HOME/runInstaller -silent -ignorePrereqFailure -waitForCompletion -responseFile ~/db_install_26ai.rsp
[oracle@racnode41:/home/oracle]$ $ORACLE_HOME/runInstaller -silent -ignorePrereqFailure -waitForCompletion -responseFile ~/db_install_26ai.rsp
Launching Oracle AI Database Setup Wizard...
[WARNING] [INS-13013] Target environment does not meet some mandatory requirements.
CAUSE: Some of the mandatory prerequisites are not met. See logs for details. /u01/app/oraInventory/logs/InstallActions2026-04-15_01-28-25PM/installActions2026-04-15_01-28-25PM.log.
ACTION: Identify the list of failed prerequisite checks from the log: /u01/app/oraInventory/logs/InstallActions2026-04-15_01-28-25PM/installActions2026-04-15_01-28-25PM.log. Then either from the log file or from installation manual find the appropriate configuration to meet the prerequisites and fix it manually.
The response file for this session can be found at:
/u01/app/oracle/product/23.0.0/db/install/response/db_2026-04-15_01-28-25PM.rsp
You can find the log of this install session at:
/u01/app/oraInventory/logs/InstallActions2026-04-15_01-28-25PM/installActions2026-04-15_01-28-25PM.log
As a root user, run the following script(s):
1. /u01/app/oracle/product/23.0.0/db/root.sh
Run /u01/app/oracle/product/23.0.0/db/root.sh on the following nodes:
[racnode41, racnode42]
Successfully Setup Software with warning(s).
##racnode41 执行root脚本
[root@racnode41 ~]# /u01/app/oracle/product/23.0.0/db/root.sh
Check /u01/app/oracle/product/23.0.0/db/install/root_racnode41_2026-04-15_13-33-44-113129768.log for the output of root script
[root@racnode41 ~]# cat /u01/app/oracle/product/23.0.0/db/install/root_racnode41_2026-04-15_13-33-44-113129768.log
Performing root user operation.
The following environment variables are set as:
ORACLE_OWNER= oracle
ORACLE_HOME= /u01/app/oracle/product/23.0.0/db
Copying dbhome to /usr/local/bin ...
Copying oraenv to /usr/local/bin ...
Copying coraenv to /usr/local/bin ...
Entries will be added to the /etc/oratab file as needed by
Database Configuration Assistant when a database is created
Finished running generic part of root script.
Now product-specific root actions will be performed.
##racnode42 执行root脚本(略)
#########################################################################################################
##21 DBCA建库
###21.1 已知问题修复
##非安装节点oradism权限有问题导致建库失败 修改
chown root:oinstall /u01/app/oracle/product/23.0.0/db/bin/oradism
chmod 4750 /u01/app/oracle/product/23.0.0/db/bin/oradism
###21.2 准备安装rsp文件
cat <<EOF > ~oracle/dbca_26ai.rsp
responseFileVersion=/oracle/assistants/rspfmt_dbca_response_schema_v23.0.0
gdbName=racdb
sid=racdb
databaseConfigType=RAC
RACOneNodeServiceName=
policyManaged=false
createServerPool=false
createAsContainerDatabase=false
nodelist=racnode41,racnode42
sehaNodeList=
templateName=/u01/app/oracle/product/23.0.0/db/assistants/dbca/templates/General_Purpose.dbc
sysPassword=oracle
systemPassword=oracle
dvConfiguration=false
olsConfiguration=false
datafileJarLocation={ORACLE_HOME}/assistants/dbca/templates/
datafileDestination=+DATA/{DB_UNIQUE_NAME}/
recoveryAreaDestination=
storageType=ASM
diskGroupName=+DATA/{DB_UNIQUE_NAME}/
characterSet=ZHS16GBK
nationalCharacterSet=AL16UTF16
registerWithDirService=false
skipListenerRegistration=true
enableArchive=false
useOMF=false
memoryPercentage=40
databaseType=MULTIPURPOSE
automaticMemoryManagement=false
totalMemory=0
EOF
chown -R oracle.oinstall ~oracle/dbca_26ai.rsp
###21.3 dbca静默建库
dbca -silent -createDatabase -responseFile ~/dbca_26ai.rsp -ignorePreReqs
[oracle@racnode41:/home/oracle]$ dbca -silent -createDatabase -responseFile ~/dbca_26ai.rsp -ignorePreReqs
[WARNING] [DBT-11003] ASM storage option is selected for datafile location. However Oracle Managed Files (OMF) option is not selected.
CAUSE: OMF option is recommended when datafiles are placed in ASM storage.
[WARNING] [DBT-06208] The 'SYS' password entered does not conform to the Oracle recommended standards.
CAUSE:
a. Oracle recommends that the password entered should be at least 8 characters in length, contain at least 1 uppercase character, 1 lower case character and 1 digit [0-9].
b.The password entered is a keyword that Oracle does not recommend to be used as password
ACTION: Specify a strong password. If required refer Oracle documentation for guidelines.
[WARNING] [DBT-06208] The 'SYSTEM' password entered does not conform to the Oracle recommended standards.
CAUSE:
a. Oracle recommends that the password entered should be at least 8 characters in length, contain at least 1 uppercase character, 1 lower case character and 1 digit [0-9].
b.The password entered is a keyword that Oracle does not recommend to be used as password
ACTION: Specify a strong password. If required refer Oracle documentation for guidelines.
Prepare for db operation
8% complete
Copying database files
33% complete
Creating and starting Oracle instance
34% complete
35% complete
39% complete
42% complete
45% complete
50% complete
Creating cluster database views
52% complete
67% complete
Completing Database Creation
71% complete
73% complete
75% complete
Executing Post Configuration Actions
100% complete
Database creation complete. For details check the logfiles at:
/u01/app/oracle/cfgtoollogs/dbca/racdb.
Database Information:
Global Database Name:racdb
System Identifier(SID) Prefix:racdb
Look at the log file "/u01/app/oracle/cfgtoollogs/dbca/racdb/racdb.log" for further details.
###21.4 安装后检查及其它
##local listener和remote listener
show parameter listener
srvctl status LISTENER
srvctl status SCAN_LISTENER
--删除数据库
##dbca -silent -deletedatabase -sourcedb racdb
################################################################################################
##22. 安装结束 测试连通性
sqlplus system/oracle@racdb
sqlplus system/oracle@192.168.11.45:1521/racdb
[oracle@racnode41:/home/oracle]$ sqlplus system/oracle@192.168.11.45:1521/racdb
SQL*Plus: Release 23.26.1.0.0 - Production on Wed Apr 15 15:11:50 2026
Version 23.26.1.0.0
Copyright (c) 1982, 2025, Oracle. All rights reserved.
Last Successful login time: Wed Apr 15 2026 14:31:47 +08:00
Connected to:
Oracle AI Database 26ai Enterprise Edition Release 23.26.1.0.0 - Production
Version 23.26.1.0.0
SQL>
##通过pdb$seed 创建一个pdb(26ai 必须使用多租户架构的 CDB(容器数据库)模式,传统的非 CDB 架构已不再受支持 ,非 CDB 架构在 21c 被标记为弃用,并在后续版本中被彻底移除 )
根据 Oracle 官方文档和技术社区的实践,在 ASM + OMF 环境下使用 CREATE PLUGGABLE DATABASE 时,不应使用 FILE_NAME_CONVERT 子句。正确做法是让 Oracle 自动管理文件位置。
你可以使用以下命令,直接去掉 FILE_NAME_CONVERT 子句
--设置 DB_CREATE_FILE_DEST 参数:在 CDB 根容器(CDB$ROOT)中执行以下命令,指定新 PDB 数据文件的存放位置。在你的 ASM 环境中,这个位置应该是 ASM 磁盘组路径
ALTER SYSTEM SET DB_CREATE_FILE_DEST = '+DATA' SCOPE=BOTH;
--ASM + OMF 创建PDB时让 Oracle 自动管理文件位置,不需要使用FILE_NAME_CONVERT
CREATE PLUGGABLE DATABASE jean ADMIN USER jean IDENTIFIED BY jean;
alter session set container=jean;
alter pluggable database jean open read write;
alter database open;
select OPEN_MODE from v$database;
################################################################################################
##23. rac操作
source ~grid/.bash_profile;
srvctl status database -db racdb
srvctl stop database -d racdb
srvctl start database -d racdb
crsctl stat res -t ##查看rac服务状态
crsctl stop cluster -all ##集群关闭(所有节点)
crsctl stop crs ####集群关闭(当前节点)
crsctl start crs
crsctl start cluster -all
##has
crsctl start has
crsctl stop has
crsctl check has
##ahf
ahfctl statusahf
ahfctl startahf
ahfctl stopahf
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/15404498/viewspace-3176237/ ,如需转载,请注明出处,否则将追究法律责任。