察看日志:
Logged on to standby successfully
Client logon and security negotiation successful!
Error 16401 creating standby archive log file at host 'STDBYTNS'
经检查,发现主库的log_archive_dest_2是这样设置的:
log_archive_dest_2 string service=STDBYTNS NOAFFIRM max_
failure=10 max_connections=5 r
eopen=180 valid_for=(online_lo
gfiles,primary_role) db_unique
_name=stdby
SQL> show parameter fal
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
fal_client string primarytns
fal_server string STDBYTNS
备库的fal设置:
SQL> show parameter fal
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
fal_client string primarytns
fal_server string STDBYTNS
备库和主库一样了,备库的fal_client的值,应该和主库的service=STDBYTNS 一样才对.
SQL> alter system set fal_client=STDBYTNS ;
System altered.
SQL> alter system set fal_server=primarytns;
System altered.