在 ORACLE RAC 到单机 DG Broker 配置与切换 的切换过程中遇到 ORA-12545: Connect failed because target host or object does not exist 具体报错如下:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
DGMGRL> switchover to rac11g; Performing switchover NOW, please wait... Operation requires a connection to instance "rac11g1" on database "rac11g" Connecting to instance "rac11g1"... Connected. Newprimary database "rac11g" is opening... Operation requires startup of instance "RAC11GDG" on database "rac11gdg" Starting instance "RAC11GDG"... Unable toconnectto database ORA-12545: Connect failed because target host or object does not exist
Failed. Warning: You areno longer connected to ORACLE.
Please complete the following steps to finish switchover: start up instance "RAC11GDG" of database "rac11gdg"
Database Status: DGM-17016: failed to retrieve status for database "rac11gdg" ORA-12514: TNS:listener does not currently know of service requested in connect descriptor ORA-16625: cannot reach database "rac11gdg"
Fatal NI connect error 12514, connecting to: (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=172.8.8.201)(PORT=1521))(CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=rac11gdg_DGB)(CID=(PROGRAM=oracle)(HOST=11g-node1)(USER=grid))))
VERSION INFORMATION: TNS for Linux: Version 11.2.0.4.0 - Production TCP/IP NT Protocol Adapter for Linux: Version 11.2.0.4.0 - Production Time: 08-FEB-2023 10:22:56 Tracing not turned on. Tns error struct: ns main err code: 12564
TNS-12564: TNS:connection refused ns secondary err code: 0 nt main err code: 0 nt secondary err code: 0 nt OS err code: 0
回切过程的提示为:
1 2
Please complete the following steps to finish switchover: start up instance "RAC11GDG" of database "rac11gdg"