|
告警日志出现大量的:
[oracle@primary trace]$ tail -f alert_orcl.log
Error 1017 received logging on to the standby
------------------------------------------------------------
Check that the primary and standby are using a password file
and remote_login_passwordfile is set to SHARED or EXCLUSIVE,
and that the SYS password is same in the password files.
returning error ORA-16191
看到这样的告警,感觉是主备库的sys密码不一致导致的,所以:
当初搭建DG时,在主备两端通过 orapwd file=orapworcl password=oracle 生成
现将DG端密码文件删掉,从生产端scp密码文件到DG端,问题解决
[oracle@standby dbs]$ rm -rf orapworcl
[oracle@primary dbs]$ scp orapworcl oracle@192.168.186.88:/u01/app/base/product/11.2.0/db_1/dbs/
oracle@192.168.186.88's password:
orapworcl 100% 1536 1.5KB/s 00:00
验证生产端:
SQL> select database_role from v$database;
DATABASE_ROLE
----------------
PRIMARY
SQL> alter system set log_archive_dest_state_2 = DEFER scope=both;
System altered.
SQL> alter system set log_archive_dest_state_2 = ENABLE scope=both;
System altered.
SQL> select max(sequence#) from v$archived_log;
MAX(SEQUENCE#)
--------------
20
SQL> select dest_name,status,error from v$archive_dest where dest_id=1 or dest_id=2;
DEST_NAME STATUS ERROR
------------------------------ --------- ----------------------------------------------------------------------------------------------------
LOG_ARCHIVE_DEST_1 VALID
LOG_ARCHIVE_DEST_2 VALID
验证DG端:
SQL> select database_role from v$database;
DATABASE_ROLE
----------------
PHYSICAL STANDBY
SQL> select max(sequence#) from v$archived_log;
MAX(SEQUENCE#)
--------------
20
SQL> select process,pid,status from v$managed_standby;
PROCESS PID STATUS
--------- ---------- ------------
ARCH 2400 CONNECTED
ARCH 2402 CONNECTED
ARCH 2404 CONNECTED
ARCH 2406 CONNECTED
RFS 2611 IDLE
RFS 2613 IDLE
RFS 2615 IDLE
7 rows selected.
RFS进程正常,归档日志已经同步
|
|