LSNRCTL for Linux: Version 19.0.0.0.0 - Production on 07-AUG-2024 18:10:50
Copyright (c) 1991, 2023, Oracle. All rights reserved.
Connecting to (ADDRESS=(PROTOCOL=TCP)(HOST=fcdora02)(PORT=1522)) STATUS of the LISTENER ------------------------ Alias LISTENER20240807181005 Version TNSLSNR for Linux: Version 19.0.0.0.0 - Production Start Date 07-AUG-2024 18:10:06 Uptime 0 days 0 hr. 0 min. 44 sec Trace Level off Security ON: Local OS Authentication SNMP OFF Listener Parameter File /data/app/oracle/product/19c/db/network/admin/listener.ora Listener Log File /data/app/oracle/diag/tnslsnr/fcdora02/listener20240807181005/alert/log.xml Listening Endpoints Summary... (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=fcdora02)(PORT=1522))) Services Summary... Service "armdg" has 1 instance(s). Instance "armdg", status UNKNOWN, has 1 handler(s) for this service... The command completed successfully [oracle@fcdora02 ~]$ cat /data/app/oracle/product/19c/db/network/admin/listener.ora # listener.ora Network Configuration File: /data/app/oracle/product/19c/db/network/admin/listener.ora # Generated by Oracle configuration tools.
NAME TYPE VALUE ------------------------------------ --------------------------------- ------------------------------ log_archive_config string dg_config=(armdb,armdg) log_archive_dest string log_archive_dest_1 string
可以看到并没有启用MRP,需要手动配置 Standby database 的参数,具体 配置如下:
Physical Standby database参数配置
1 2 3 4 5 6
-- alter system set log_archive_config='dg_config=(armdb,armdg)'; altersystemset log_archive_dest_1='location=/data/archivelog/ valid_for=(all_logfiles,all_roles) db_unique_name=armdg'; altersystemset log_archive_dest_2='SERVICE=armdg lgwr async VALID_FOr=(ONLINE_LOGFILES,primary_role) DB_UNIQUE_NAME=armdb'; altersystemset log_archive_dest_state_2='enable'; altersystemset standby_file_management='AUTO'; altersystemset fal_server=armdb;
启动MRP
1
alter database recover managed standby database usingcurrent logfile disconnect