今天为一个Rac onenode的主库搭建好一个dg库之后,一直没有传日志,在主库的alertlog中,有报错:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
Thu Jun 29 14:55:34 2017 ALTER SYSTEM SET log_archive_dest_state_2='DEFER' SCOPE=BOTH; Thu Jun 29 14:55:44 2017 ALTER SYSTEM SET log_archive_dest_state_2='ENABLE' SCOPE=BOTH; Thu Jun 29 14:55:44 2017 Errors in file /data/prd/oracle/diag/rdbms/payroll/payroll_2/trace/payroll_2_tt00_27554.trc: ORA-16047: DGID mismatch between destination setting and target database Thu Jun 29 14:55:44 2017 Errors in file /data/prd/oracle/diag/rdbms/payroll/payroll_2/trace/payroll_2_tt00_27554.trc: ORA-16047: DGID mismatch between destination setting and target database Thu Jun 29 14:55:44 2017 Errors in file /data/prd/oracle/diag/rdbms/payroll/payroll_2/trace/payroll_2_tt00_27554.trc: ORA-16047: DGID mismatch between destination setting and target database Thu Jun 29 14:55:45 2017 Thread 2 advanced to log sequence 632 (LGWR switch) Current log# 7 seq# 632 mem# 0: +DATA/PAYROLL/ONLINELOG/group_7.303.946836271 Current log# 7 seq# 632 mem# 1: +FRA/PAYROLL/ONLINELOG/group_7.791.946836271 Thu Jun 29 14:55:45 2017 |
根据oerr的报错信息:
1 2 3 4 5 6 7 8 9 |
SQL> !oerr ora 16047 16047, 00000, "DGID mismatch between destination setting and target database" // *Cause: The DB_UNIQUE_NAME specified for the destination did not match // the DB_UNIQUE_NAME at the target database. // *Action: Make sure the DB_UNIQUE_NAME specified in the LOG_ARCHIVE_DEST_n // parameter matches the DB_UNIQUE_NAME parameter defined at the // destination. SQL> |
检查了主库和备库的db_un […]