第一次配置rac to rac的的adg,ADG过程就不叙述了,备库同步完成后,使用srvctl加入集群时未报错,但是使用crsctl status res -t查看状态时,发现了问题,如下图
+ASM1:/home/grid@hydb1> crsctl status res -t
...........................
...........................
ora.orcls.db
1 OFFLINE OFFLINE hydb1 STABLE
2 OFFLINE OFFLINE hydb2 STABLE
通过查看资料,和帮忙信息,总算解决了问题,使用如下命令修改
orcl:/home/oracle@hydb1> oracle srvctl modify database -db orcls -role physical_standby
修改后,再次查看,状态正常显示了
+ASM1:/home/grid@hydb1> crsctl status res -t
...........................
...........................
ora.orcls.db
1 ONLINE ONLINE hydb1 Open,Readonly,HOME=/
u01/app/oracle/produ
ct/19.0.0/db_1,STABL
E
2 ONLINE ONLINE hydb2 Open,Readonly,HOME=/
u01/app/oracle/produ
ct/19.0.0/db_1,STABL
E
orcl1:/home/oracle@hydb1>srvctl config database -d orcls
Database unique name: orcls
Database name: orcl
Oracle home: /u01/app/oracle/product/19.0.0/db_1
Oracle user: oracle
Spfile: +DATA/ORCL/PARAMETERFILE/spfile.267.1139495225
Password file: +DATA/ORCL/pwdorcl
Domain:
Start options: open
Stop options: immediate
Database role: PHYSICAL_STANDBY
Management policy: AUTOMATIC
Server pools:
Disk Groups: DATA,FRA
Mount point paths:
Services:
Type: RAC
Start concurrency:
Stop concurrency:
OSDBA group: dba
OSOPER group: oper
Database instances: orcl1,orcl2
Configured nodes: hydb1,hydb2
CSS critical: no
CPU count: 0
Memory target: 0
Maximum memory: 0
Default network number for database services:
Database is administrator managed
orcl1:/home/oracle@hydb1>