这个触发的可能性有点多,不好一一说明...
单就你说的连接这一点上,单是tnsping不够,用sqlplus xxx/xxx@pdunq_dg 看看能不能连上

解决方案 »

  1.   

    Error:   ORA-16047  (ORA-16047)
    Text:    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.检查主库到备库配置的db_unique_name是否是正确的
      

  2.   

    主库上
    show parameter LOG_ARCHIVE_DEST
    查看到目标端的那个参数的配置的值备库上
    show parameter DB_UNIQUE_NAME看看两边是否一致
      

  3.   


    primary库:
    NAME      TYPE  VALUE
    ------------------------------------ ----------- ------------------------------
    log_archive_dest_19      string
    log_archive_dest_2      string  SERVICE=pdunq_dg  lgwr sync af
     firm VALID_FOR=(ONLINE_LOGFILE
     S,PRIMARY_ROLE) DB_UNIQUE_NAME
     =pdunq_dgstandby库:
    SQL> show parameter DB_UNIQUE_NAME;NAME      TYPE  VALUE
    ------------------------------------ ----------- ------------------------------
    db_unique_name      string  pdunq_dg
    SQL>