欢迎关注作者 分享更多数据库安装配置,troubleshooting,调优,备份恢复知识和案例
CSDN:潇湘秦-CSDN博客
公众号:潇湘秦
本文详细介绍利用虚拟机安装配置oracle 21c rac
OS版本:oracle linux 8.4
oracle版本:21.3
博主文章目前只发布在两个平台CSDN和墨天伦
ID:潇湘秦,转载请注明出处
- 安装oracle linux 8.4
选择本地可用的ISO 文件(虚拟机安装)
挂载后重启
选择timezone
2. 主机相关配置
设置主机名 永久有效
*Hostnamectl set-hostname xxxxx*
设置IP地址 重启不变
[root@21ctest1/] *ifconfig ens192 10.7.46.212 broadcast* 10.7.46.254 netmask 255.255.255.0
[root@21ctest1 network-scripts]# pwd
/etc/sysconfig/network-scripts
[root@db21ctest1 rules.d]# *nmcli con* ###查看网卡的uuid
NAME UUID TYPE DEVICE
ens192 02835ffa-5388-46a9-a9a4-c36f439b7337 ethernet ens192
ens256 97fb9305-7235-4678-b3b6-4d84bd63e2bb ethernet ens256
virbr0 034b9925-0521-4a6d-bcb9-23122babd179 bridge virbr0
[root@21ctest1 network-scripts]# ls
ifcfg-ens192
[root@21ctest1 network-scripts]# *cat ifcfg-ens192* ##配置网卡
TYPE=Ethernet
PROXY_METHOD=none
BROWSER_ONLY=no
BOOTPROTO=none
DEFROUTE=yes
IPV4_FAILURE_FATAL=no
IPV6INIT=yes
IPV6_AUTOCONF=yes
IPV6_DEFROUTE=yes
IPV6_FAILURE_FATAL=no
NAME=ens192
UUID=02835ffa-5388-46a9-a9a4-c36f439b7337
DEVICE=ens192
ONBOOT=yes
MACADDR=permanent
IPADDR=10.7.46.212
PREFIX=24
GATEWAY=10.7.46.254
DNS1=10.7.48.1
IPV6_PRIVACY=no
```bash
[root@21ctest1 network-scripts]#
配置私网IP
*ifconfig ens192:0 192.168.111.1 broadcast 192.168.111.254 netmask 255.255.255.0 up
ifconfig ens192:0 192.168.111.2 broadcast 192.168.111.254 netmask 255.255.255.0 up*
cd /etc/sysconfig/network-scripts
[root@21ctest1 ~]# *cd /etc/sysconfig/network-scripts/*
[root@21ctest1 network-scripts]# ll
total 8
-rw-r*--r--. 1 root root 346 Jul 8 10:48 ifcfg-ens192*
-rw-r*--r-- 1 root root 340 Jul 12 14:39 ifcfg-ens192:0*
[root@21ctest1 network-scripts]#
vi ifcfg-ens192:0
TYPE=Ethernet
PROXY_METHOD=none
BROWSER_ONLY=no
BOOTPROTO=none
DEFROUTE=yes
IPV4_FAILURE_FATAL=no
IPV6INIT=yes
IPV6_AUTOCONF=yes
IPV6_DEFROUTE=yes
IPV6_FAILURE_FATAL=no
NAME=ens192
UUID=6e0d929b-dab1-4608-ac54-234648b09f97
DEVICE=ens192:0
ONBOOT=yes
MACADDR=permanent
IPADDR=192.168.111.2
PREFIX=24
GATEWAY=192.168.111.254
IPV6_PRIVACY=no
关闭防火墙
[root@21ctest2 ~]# systemctl stop firewalld
[root@21ctest2 ~]# systemctl disable firewalld
Removed /etc/systemd/system/multi-user.target.wants/firewalld.service.
Removed /etc/systemd/system/dbus-org.fedoraproject.FirewallD1.service.
[root@21ctest2 ~]#
关闭selinux
[root@21ctest2 ~]# echo "SELINUX=disabled" > /etc/selinux/config
[root@21ctest2 ~]#
配置网卡模式 增加如下参数(私网通讯相关)
```bash
```bash
[root@db21ctest2 rules.d]# vi /etc/sysconfig/network
```# Created by anaconda
NOZEROCONF=yes
配置hosts
节点1
[root@21ctest1 ~]# cat /etc/hosts
10.7.46.212 db21ctest1 ###不要加localhost,加了grid安装会报错
10.7.46.213 db21ctest2
10.7.46.214 db21ctest1-vip
10.7.46.215 db21ctest2-vip
10.7.46.216 db21ctest-cluster-scan
10.7.46.217 db21ctest-cluster-scan
10.7.46.218 db21ctest-cluster-scan
#priv ip
192.168.222.1 db21ctest1-priv
192.168.222.2 db21ctest2-priv
关闭NTP服务(两节点)
[root@21ctest1 ~]# systemctl disable ntpd.service
[root@21ctest1 ~]# systemctl stop ntpd
[root@21ctest1 ~]# ps -ef|grep ntp
root 6690 6455 0 14:55 pts/2 00:00:00 grep --color=auto ntp
[root@21ctest1 ~]# cd /etc
[root@21ctest1 etc]# ls -lrt |grep ntp
[root@21ctest1 etc]#
[root@21ctest1 etc]# systemctl status ntpd
[root@21ctest1 etc]# ls -lrt |grep chron
-rw-r-----. 1 root chrony 540 May 10 2019 chrony.keys
-rw-r--r--. 1 root root 1078 May 10 2019 chrony.conf
[root@21ctest1 etc]# systemctl stop chrony.service
[root@21ctest1 etc]# systemctl disable chrony.service
[root@21ctest1 etc]# mv chrony.conf chrony.conf.bk
[root@21ctest1 etc]# ls -lrt |grep chron
-rw-r-----. 1 root chrony 540 May 10 2019 chrony.keys
-rw-r--r--. 1 root root 1078 May 10 2019 chrony.conf.bk
[root@21ctest1 etc]#
设置两个节点时区一直
[root@21ctest2 etc]# timedatectl show
Timezone=Asia/Shanghai
LocalRTC=no
CanNTP=yes
NTP=no
NTPSynchronized=no
TimeUSec=Thu 2021-07-08 15:03:08 CST
RTCTimeUSec=Thu 2021-07-08 15:03:08 CST
[root@21ctest2 etc]# timedatectl set-timezone Asia/Shanghai
3.配置本地yum源并安装所需的依赖包
挂载本地yum源
打开remote console 挂载iso文件 并重启
启动后可以看到挂载的iso文件
创建挂载点 并将iso挂上去
[root@21ctest2 ~]# mkdir -p /mnt/cdrom/
[root@21ctest2 ~]# mount /dev/sr0 /mnt/cdrom/
mount: /mnt/cdrom: WARNING: device write-protected, mounted read-only.
[root@21ctest2 ~]# df -lh
Filesystem Size Used Avail Use% Mounted on
devtmpfs 7.7G 0 7.7G 0% /dev
tmpfs 7.7G 0 7.7G 0% /dev/shm
tmpfs 7.7G 9.4M 7.7G 1% /run
tmpfs 7.7G 0 7.7G 0% /sys/fs/cgroup
/dev/mapper/ol-root 70G 5.2G 65G 8% /
/dev/sda2 1014M 298M 717M 30% /boot
/dev/sda1 599M 5.1M 594M 1% /boot/efi
/dev/mapper/ol-home 271G 2.0G 269G 1% /home
tmpfs 1.6G 3.5M 1.6G 1% /run/user/0
/dev/sr0 9.3G 9.3G 0 100% /mnt/cdrom
[root@21ctest2 ~]# cd /etc/yum.repos.d/
[root@21ctest2 yum.repos.d]# ls
oracle-linux-ol8.repo uek-ol8.repo
[root@21ctest2 yum.repos.d]# mv oracle-linux-ol8.repo oracle-linux-ol8.repo.bk
[root@21ctest2 yum.repos.d]# vi oracle-linux-ol8.repo
[Server]
name=Server
baseurl=file:///mnt/cdrom
enabled=1
gpgcheck=0
~
root@21ctest2 yum.repos.d]# yum repolist
Warning: failed loading '/etc/yum.repos.d/oracle-linux-ol8.repo', skipping.
repo id repo name
ol8_UEKR6 Latest Unbreakable Enterprise Kernel Release 6 for Oracle Linux 8 (x86_64)
yum clean all
yum repolist all
4.安装依赖包及主机参数修改
4.1 安装依赖包
yum install -y binutils
yum install -y compat-libcap1
yum install -y compat-libstdc++-33
yum install -y compat-libstdc++-33.i686
yum install -y gcc
yum install -y gcc-c++
yum install -y glibc
yum install -y glibc.i686
yum install -y glibc-devel
yum install -y glibc-devel.i686
yum install -y ksh
yum install -y libgcc
yum install -y libgcc.i686
yum install -y libstdc++
yum install -y libstdc++.i686
yum install -y libstdc++-devel
yum install -y libstdc++-devel.i686
yum install -y libaio
yum install -y libaio.i686
yum install -y libaio-devel
yum install -y libaio-devel.i686
yum install -y libXext
yum install -y libXext.i686
yum install -y libXtst
yum install -y libXtst.i686
yum install -y libX11
yum install -y libX11.i686
yum install -y libXau
yum install -y libXau.i686
yum install -y libxcb
yum install -y libxcb.i686
yum install -y libXi
yum install -y libXi.i686
yum install -y make
yum install -y sysstat
yum install -y unixODBC
yum install -y unixODBC-devel
yum install -y readline
yum install -y libtermcap-devel
yum install -y bc
yum install -y compat-libstdc++
yum install -y elfutils-libelf
yum install -y elfutils-libelf-devel
yum install -y fontconfig-devel
yum install -y libXi
yum install -y libXtst
yum install -y libXrender
yum install -y libXrender-devel
yum install -y libgcc
yum install -y librdmacm-devel
yum install -y libstdc++
yum install -y libstdc++-devel
yum install -y net-tools
yum install -y nfs-utils
yum install -y python
yum install -y python-configshell
yum install -y python-rtslib
yum install -y python-six
yum install -y targetcli
yum install -y smartmontools
4.2 修改操作系统参数
vi /etc/sysctl.conf
####fs setting
fs.aio-max-nr = 4194304
fs.file-max = 6815744
####kernel setting
kernel.shmall = 4194304
kernel.shmmax = 16106127360
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
kernel.panic_on_oops = 1
kernel.panic = 10
#### Net Setting
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 = 4194304
##TCP Cache Setting
net.ipv4.tcp_moderate_rcvbuf=1
net.ipv4.tcp_rmem = 4096 87380 4194304
net.ipv4.tcp_wmem = 4096 16384 4194304
net.ipv4.conf.ens36.rp_filter = 2
net.ipv4.conf.ens35.rp_filter = 2
net.ipv4.conf.ens34.rp_filter = 1
####Memory Setting
vm.vfs_cache_pressure=200
vm.swappiness=10
vm.min_free_kbytes=102400
sysctl -p生效
4.3 修改OS用户限制
vi /etc/security/limits.conf
grid soft nproc 16384
grid hard nproc 65536
grid soft nofile 32768
grid hard nofile 65536
grid soft stack 32768
grid hard stack 65536
grid soft memlock -1 --##这个参数可能会需要修改
grid hard memlock -1
oracle soft nproc 16384
oracle hard nproc 65536
oracle soft nofile 32768
oracle hard nofile 65536
oracle soft stack 32768
oracle hard stack 65536
oracle soft memlock -1 ####这个参数可能会需要修改
oracle hard memlock -1
4.4 创建用户/组和目录
/usr/sbin/groupadd -g 50001 oinstall
/usr/sbin/groupadd -g 50002 dba
/usr/sbin/groupadd -g 50003 oper
/usr/sbin/groupadd -g 50004 backupdba
/usr/sbin/groupadd -g 50005 dgdba
/usr/sbin/groupadd -g 50006 kmdba
/usr/sbin/groupadd -g 50007 asmdba
/usr/sbin/groupadd -g 50008 asmoper
/usr/sbin/groupadd -g 50009 asmadmin
/usr/sbin/groupadd -g 50010 racdba
/usr/sbin/useradd -u 50011 -g oinstall -G dba,asmdba,asmoper,asmadmin,racdba grid
/usr/sbin/useradd -u 50012 -g oinstall -G dba,oper,backupdba,dgdba,kmdba,asmdba,racdba oracle
passwd oracle/19crac123
passwd grid/19crac123
mkdir -p /u01/app/grid
mkdir -p /u01/app/21.0.0/grid
mkdir -p /u01/app/oracle
mkdir -p /u01/app/oracle/product/21.0.0/db_1
chown -R grid:oinstall /u01
chown -R oracle:oinstall /u01/app/oracle
chmod -R 775 /u01
5.虚拟机配置共享磁盘
虚拟机添加共享存储盘两个节点虚拟机都关机
编辑设置
两台节点都添加一个新的scsi控制器,属性如下
节点一添加磁盘
节点二新加磁盘选择现有磁盘,将节点一新加的磁盘选中
Test2新加磁盘为test1 已有的磁盘
完成以上操作后 开机
确保两个节点都能看到新加磁盘
6.配置共享存储
[root@21ctest1 ~]# fdisk /dev/sde
Welcome to fdisk (util-linux 2.32.1).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.
Device does not contain a recognized partition table.
Created a new DOS disklabel with disk identifier 0xc58dc876.
Command (m for help): n
Partition type
p primary (0 primary, 0 extended, 4 free)
e extended (container for logical partitions)
Select (default p): p
Partition number (1-4, default 1):
First sector (2048-1048575999, default 2048):
Last sector, +sectors or +size{K,M,G,T,P} (2048-1048575999, default 1048575999):
Created a new partition 1 of type 'Linux' and of size 500 GiB.
Command (m for help): w
The partition table has been altered.
Calling ioctl() to re-read partition table.
Syncing disks.
**6.1 Udev配置新加共享盘**
查下新加磁盘的ID
[root@21ctest1 dev]# /usr/lib/udev/scsi_id -g -u -d /dev/sdb
36000c29d3cdaf7c558163b15dd259dc5
[root@21ctest1 dev]# /usr/lib/udev/scsi_id -g -u -d /dev/sdc
36000c29b5a22d8d2a7717152d8cca771
[root@21ctest1 dev]# /usr/lib/udev/scsi_id -g -u -d /dev/sdd
36000c2951a7e35db5c2836c63f512874
[root@21ctest1 dev]# /usr/lib/udev/scsi_id -g -u -d /dev/sde
36000c29916475e67df50fce0dd9a9357
[root@21ctest1 dev]#
[root@21ctest1 dev]# cd udev
-bash: cd: udev: No such file or directory
[root@21ctest1 dev]# cd /etc/udev
[root@21ctest1 udev]# ls
hwdb.bin hwdb.d rules.d udev.conf
[root@21ctest1 udev]# cd rules.d/
[root@21ctest1 rules.d]# ls
69-vdo-start-by-dev.rules 70-persistent-ipoib.rules 99-vmware-scsi-timeout.rules
[root@21ctest1 rules.d]# ls -lrt
total 12
-rw-r--r--. 1 root root 628 Oct 29 2020 70-persistent-ipoib.rules
-rw-r--r--. 1 root root 67 Apr 6 05:15 69-vdo-start-by-dev.rules
-rw-r--r--. 1 root root 148 Apr 13 01:24 99-vmware-scsi-timeout.rules
[root@21ctest1 rules.d]# vi 99-oracle-asmdevices.rules ##新加oracle rule
KERNEL=="sd*",ENV{DEVTYPE}=="disk",SUBSYSTEM=="block",PROGRAM=="/usr/lib/udev/scsi_id -g -u -d $devnode",RESULT=="36000c29d3cdaf7c558163b15dd259dc5", RUN+="/bin/sh -c 'mknod /dev/asmdiskb b $major $minor; chown grid:asmdba /dev/asmdiskb; chmod 0660 /dev/asmdiskb'"
KERNEL=="sd*",ENV{DEVTYPE}=="disk",SUBSYSTEM=="block",PROGRAM=="/usr/lib/udev/scsi_id -g -u -d $devnode",RESULT=="36000c29b5a22d8d2a7717152d8cca771", RUN+="/bin/sh -c 'mknod /dev/asmdiskc b $major $minor; chown grid:asmdba /dev/asmdiskc; chmod 0660 /dev/asmdiskc'"
KERNEL=="sd*",ENV{DEVTYPE}=="disk",SUBSYSTEM=="block",PROGRAM=="/usr/lib/udev/scsi_id -g -u -d $devnode",RESULT=="36000c2951a7e35db5c2836c63f512874", RUN+="/bin/sh -c 'mknod /dev/asmdiskd b $major $minor; chown grid:asmdba /dev/asmdiskd; chmod 0660 /dev/asmdiskd'"
KERNEL=="sd*",ENV{DEVTYPE}=="disk",SUBSYSTEM=="block",PROGRAM=="/usr/lib/udev/scsi_id -g -u -d $devnode",RESULT=="36000c29916475e67df50fce0dd9a9357", RUN+="/bin/sh -c 'mknod /dev/asmdiske b $major $minor; chown grid:asmdba /dev/asmdiske; chmod 0660 /dev/asmdiske'"
~
~
~
~
"99-oracle-asmdevices.rules" [New] 5L, 1065C written
[root@21ctest1 rules.d]#
[root@21ctest1 rules.d]# ls -lrt
total 16
-rw-r--r--. 1 root root 628 Oct 29 2020 70-persistent-ipoib.rules
-rw-r--r--. 1 root root 67 Apr 6 05:15 69-vdo-start-by-dev.rules
-rw-r--r--. 1 root root 148 Apr 13 01:24 99-vmware-scsi-timeout.rules
-rw-r--r-- 1 root root 1065 Aug 19 14:35 99-oracle-asmdevices.rules
[root@21ctest1 rules.d]# cat 99-oracle-asmdevices.rules
KERNEL=="sd*",ENV{DEVTYPE}=="disk",SUBSYSTEM=="block",PROGRAM=="/usr/lib/udev/scsi_id -g -u -d $devnode",RESULT=="36000c29d3cdaf7c558163b15dd259dc5", RUN+="/bin/sh -c 'mknod /dev/asmdiskb b $major $minor; chown grid:asmdba /dev/asmdiskb; chmod 0660 /dev/asmdiskb'"
KERNEL=="sd*",ENV{DEVTYPE}=="disk",SUBSYSTEM=="block",PROGRAM=="/usr/lib/udev/scsi_id -g -u -d $devnode",RESULT=="36000c29b5a22d8d2a7717152d8cca771", RUN+="/bin/sh -c 'mknod /dev/asmdiskc b $major $minor; chown grid:asmdba /dev/asmdiskc; chmod 0660 /dev/asmdiskc'"
KERNEL=="sd*",ENV{DEVTYPE}=="disk",SUBSYSTEM=="block",PROGRAM=="/usr/lib/udev/scsi_id -g -u -d $devnode",RESULT=="36000c2951a7e35db5c2836c63f512874", RUN+="/bin/sh -c 'mknod /dev/asmdiskd b $major $minor; chown grid:asmdba /dev/asmdiskd; chmod 0660 /dev/asmdiskd'"
KERNEL=="sd*",ENV{DEVTYPE}=="disk",SUBSYSTEM=="block",PROGRAM=="/usr/lib/udev/scsi_id -g -u -d $devnode",RESULT=="36000c29916475e67df50fce0dd9a9357", RUN+="/bin/sh -c 'mknod /dev/asmdiske b $major $minor; chown grid:asmdba /dev/asmdiske; chmod 0660 /dev/asmdiske'"
[root@21ctest1 rules.d]# /sbin/udevadm trigger --type=devices --action=change
##将配置生效
[root@21ctest1 rules.d]# ll /dev/asm* ##查看共享盘的属性
brw-rw---- 1 grid asmdba 8, 16 Aug 19 14:35 /dev/asmdiskb
brw-rw---- 1 grid asmdba 8, 32 Aug 19 14:35 /dev/asmdiskc
brw-rw---- 1 grid asmdba 8, 48 Aug 19 14:35 /dev/asmdiskd
brw-rw---- 1 grid asmdba 8, 64 Aug 19 14:35 /dev/asmdiske
[root@21ctest1 rules.d]# ls -lrt
配置用户环境变量
注意修改实例名
注意grid的ORACLE_BASE不再和oracle下的公用,所以grid的一些trace文件放在grid用户下ORACLE_BASE/diag下面
grid用户:
.bash_profile
export ORACLE_SID=+ASM1
export ORACLE_BASE=/u01/app/grid
export ORACLE_HOME=/u01/app/21.0.0/grid
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:$LD_LIBRARY_PATH
export PATH=$ORACLE_HOME/bin:$ORACLE_HOME/OPatch:$PATH
export LANG=en_US
oracle用户:
=====================================
export ORACLE_SID=21ctest1
export ORACLE_BASE=/u01/app/oracle
export ORACLE_HOME=$ORACLE_BASE/product/21.0.0/db_1
export GRID_HOME=/u01/app/21.0.0/grid
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:$LD_LIBRARY_PATH
export PATH=$ORACLE_HOME/bin:$ORACLE_HOME/OPatch:$GRID_HOME/bin:$PATH
export LANG=en_US
root用户:
=====================================
export ORACLE_HOME=/u01/app/21.0.0/grid
export PATH=$ORACLE_HOME/bin:$ORACLE_HOME/OPatch:$PATH
export LANG=en_US
7. 安装21c grid
安装和19c区别不大
CAUSE
RHEL8 is not installed libnsl.so.1
SOLUTION
Install libnsl.so.1 as follows.
64bit:
#yum install /lib64/libnsl.so.1
[root@db21ctest2 oracle.ahf]# yum install /lib64/libnsl.so.1
Last metadata expiration check: 0:12:18 ago on Wed 25 Aug 2021 04:33:21 PM CST.
Dependencies resolved.
=================================================================================================================================================================================
Package Architecture Version Repository Size
=================================================================================================================================================================================
Installing:
libnsl x86_64 2.28-151.0.1.el8 local_iso_baseos 102 k
Transaction Summary
=================================================================================================================================================================================
Install 1 Package
Total size: 102 k
Installed size: 160 k
Is this ok [y/N]: y
Downloading Packages:
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
Preparing : 1/1
Installing : libnsl-2.28-151.0.1.el8.x86_64 1/1
Running scriptlet: libnsl-2.28-151.0.1.el8.x86_64 1/1
/sbin/ldconfig: /etc/ld.so.conf.d/kernel-5.4.17-2102.201.3.el8uek.x86_64.conf:6: hwcap directive ignored
Verifying : libnsl-2.28-151.0.1.el8.x86_64 1/1
Installed:
libnsl-2.28-151.0.1.el8.x86_64
Complete!
安装完成后检查集群状态
[root@db21ctest2 oracle.ahf]# su - grid
[grid@db21ctest2 ~]$ /u01/app/21.0.0/grid/oui/bin/runInstaller -attachHome -noClusterEnabled ORACLE_HOME=/u01/app/21.0.0/grid ORACLE_HOME_NAME=OraGI21Home1 "CLUSTER_NODES={db21ctest2}" -force INVENTORY_LOCATION=/u01/app/oraInventory -doNotUpdateNodeList LOCAL_NODE=db21ctest2
Starting Oracle Universal Installer...
Checking swap space: must be greater than 500 MB. Actual 16271 MB Passed
The inventory pointer is located at /etc/oraInst.loc
You can find the log of this install session at:
/u01/app/oraInventory/logs/AttachHome2021-08-25_04-46-12PM.log
Please execute the '/u01/app/oraInventory/orainstRoot.sh' script at the end of the session.
'AttachHome' was successful.
[grid@db21ctest2 ~]$
[grid@db21ctest2 ~]$ crsctl status res -t
--------------------------------------------------------------------------------
Name Target State Server State details
--------------------------------------------------------------------------------
Local Resources
--------------------------------------------------------------------------------
ora.LISTENER.lsnr
ONLINE ONLINE db21ctest1 STABLE
ONLINE ONLINE db21ctest2 STABLE
ora.chad
ONLINE ONLINE db21ctest1 STABLE
ONLINE ONLINE db21ctest2 STABLE
ora.net1.network
ONLINE ONLINE db21ctest1 STABLE
ONLINE ONLINE db21ctest2 STABLE
ora.ons
ONLINE ONLINE db21ctest1 STABLE
ONLINE ONLINE db21ctest2 STABLE
--------------------------------------------------------------------------------
Cluster Resources
--------------------------------------------------------------------------------
ora.ASMNET1LSNR_ASM.lsnr(ora.asmgroup)
1 ONLINE ONLINE db21ctest1 STABLE
2 ONLINE ONLINE db21ctest2 STABLE
ora.CRS.dg(ora.asmgroup)
1 ONLINE ONLINE db21ctest1 STABLE
2 ONLINE ONLINE db21ctest2 STABLE
ora.LISTENER_SCAN1.lsnr
1 ONLINE ONLINE db21ctest1 STABLE
ora.LISTENER_SCAN2.lsnr
1 ONLINE ONLINE db21ctest1 STABLE
ora.LISTENER_SCAN3.lsnr
1 ONLINE ONLINE db21ctest2 STABLE
ora.asm(ora.asmgroup)
1 ONLINE ONLINE db21ctest1 Started,STABLE
2 ONLINE ONLINE db21ctest2 Started,STABLE
ora.asmnet1.asmnetwork(ora.asmgroup)
1 ONLINE ONLINE db21ctest1 STABLE
2 ONLINE ONLINE db21ctest2 STABLE
ora.cdp1.cdp
1 ONLINE ONLINE db21ctest1 STABLE
ora.cdp2.cdp
1 ONLINE ONLINE db21ctest1 STABLE
ora.cdp3.cdp
1 ONLINE ONLINE db21ctest2 STABLE
ora.cvu
1 ONLINE ONLINE db21ctest1 STABLE
ora.db21ctest1.vip
1 ONLINE ONLINE db21ctest1 STABLE
ora.db21ctest2.vip
1 ONLINE ONLINE db21ctest2 STABLE
ora.qosmserver
1 ONLINE ONLINE db21ctest1 STABLE
ora.scan1.vip
1 ONLINE ONLINE db21ctest1 STABLE
ora.scan2.vip
1 ONLINE ONLINE db21ctest1 STABLE
ora.scan3.vip
1 ONLINE ONLINE db21ctest2 STABLE
8. 安装oracle软件
9. asmca创建磁盘组
10. DBCA安装数据库
21C提供的标准模板来创建数据库,最大的变化是从21c开始,只能是CDB模式 无法选择传统模式了
可以直接按标准模式来安装