首先查看数据库的集群的db_unique_name
SQL> show parameter name
NAME TYPE VALUE
------------------------------------ ----------- ---------------------------
cdb_cluster_name string
cell_offloadgroup_name string
db_file_name_convert string
db_name string p19c0
db_unique_name string p19c0
global_names boolean FALSE
instance_name string p19c01
lock_name_space string
log_file_name_convert string
pdb_file_name_convert string
processor_group_name string
NAME TYPE VALUE
------------------------------------ ----------- -------------------------
service_names string p19c0
–确认集群的instance_name
SQL> select instance_name,status from gv$instance;
INSTANCE_NAME STATUS
p19c01 OPEN
p19c02 OPEN
su - grid
srvctl stop database -d p19c0
srvctl status database -d p19c0
su - root
/u01/app/19.3.0/grid/bin/crsctl stop cluster -all
/u01/app/19.3.0/grid/bin/crsctl start cluster -all --会启动数据库
/u01/app/19.3.0/grid/bin/crsctl start has --启动数据库
/u01/app/19.3.0/grid/bin/crsctl start crs
/u01/app/19.3.0/grid/bin/crsctl start cluster -all
CRS-2672: Attempting to start 'ora.cssdmonitor' on 'node1'
CRS-2672: Attempting to start 'ora.evmd' on 'node1'
CRS-2672: Attempting to start 'ora.cssdmonitor' on 'node2'
CRS-2672: Attempting to start 'ora.evmd' on 'node2'
CRS-2676: Start of 'ora.cssdmonitor' on 'node1' succeeded
CRS-2672: Attempting to start 'ora.cssd' on 'node1'
CRS-2672: Attempting to start 'ora.diskmon' on 'node1'
CRS-2676: Start of 'ora.diskmon' on 'node1' succeeded
CRS-2676: Start of 'ora.cssdmonitor' on 'node2' succeeded
CRS-2672: Attempting to start 'ora.cssd' on 'node2'
CRS-2672: Attempting to start 'ora.diskmon' on 'node2'
CRS-2676: Start of 'ora.diskmon' on 'node2' succeeded
CRS-2676: Start of 'ora.evmd' on 'node1' succeeded
CRS-2676: Start of 'ora.evmd' on 'node2' succeeded
CRS-2676: Start of 'ora.cssd' on 'node1' succeeded
CRS-2672: Attempting to start 'ora.cluster_interconnect.haip' on 'node1'
CRS-2672: Attempting to start 'ora.ctssd' on 'node1'
CRS-2676: Start of 'ora.cssd' on 'node2' succeeded
CRS-2672: Attempting to start 'ora.cluster_interconnect.haip' on 'node2'
CRS-2676: Start of 'ora.ctssd' on 'node1' succeeded
CRS-2676: Start of 'ora.cluster_interconnect.haip' on 'node1' succeeded
CRS-2672: Attempting to start 'ora.asm' on 'node1'
CRS-2676: Start of 'ora.cluster_interconnect.haip' on 'node2' succeeded
CRS-2672: Attempting to start 'ora.ctssd' on 'node2'
CRS-2676: Start of 'ora.ctssd' on 'node2' succeeded
CRS-2672: Attempting to start 'ora.asm' on 'node2'
CRS-2676: Start of 'ora.asm' on 'node2' succeeded
CRS-2672: Attempting to start 'ora.storage' on 'node2'
CRS-2676: Start of 'ora.asm' on 'node1' succeeded
CRS-2672: Attempting to start 'ora.storage' on 'node1'
CRS-2676: Start of 'ora.storage' on 'node1' succeeded
CRS-2672: Attempting to start 'ora.crsd' on 'node1'
CRS-2676: Start of 'ora.crsd' on 'node1' succeeded
CRS-2676: Start of 'ora.storage' on 'node2' succeeded
CRS-2672: Attempting to start 'ora.crsd' on 'node2'
CRS-2676: Start of 'ora.crsd' on 'node2' succeeded
crsctl status res -t
srvctl status database -d p19c0
srvctl start database -d p19c0
ps -ef|grep smon
su - oracle
sqlplus / as sysdba
alter system checkpoint;
ALTER SYSTEM SWITCH LOGFILE;
alter pluggable database all close immediate;
srvctl stop instance -d p19c0 -i p19c01
su - root
crsctl enable crs1.
crsctl stop crs -f1.
crsctl status res -t1.
shutdown
su - oracle
srvctl start instance -d p19c0 -i p19c01
crsctl status res -t1.2.3.4.5.