SQL> alter database open read only;
alter database open read only
*
ERROR at line 1:
ORA-10458: standby database requires recovery
ORA-01152: file 1 was not restored from a sufficiently old backup
ORA-01110: data file 1: '/u01/app/oracle/oradata/test/system01.dbf'
查看备库日志,发现一堆Error 12154 received logging on to the standby的报错
查询主库:
SQL> select dest_name,status,error from v$archive_dest;
dest_name status ERROR
-----------------------------------------------------------------
log_archive_dest_1 valid
log_archive_dest_2 BAD PARAM ORA-12154: TNS:could not resolve the connect identifier specified I could tnsping the STANDBY from production
..................................................................