DG修复:修改密码文件导致归档不应用
问题描述:重启完备库,之后发现主备同步状态异常,mrp进程状态显示applying log,但是v$datagaurd_stats视图中查询到归档日志并没有在应用。主库切换归档,可以正常传输过来,但是没法应用
1.备库状态
2.查看归档是否正常传输,可以正常从主库传输过来,但是不会实时应用
3.查看备库alert日志,没有报错,只有RFS进程的信息,没有备库应用归档的信息
4.查看主库状态及alert日志,发现主库切换状态不正常
5.查看trc日志文件,提示无效的用户和密码。此次单纯的只是重启了一下备库,也不晓得密码文件发生了什么情况
*** 2021-12-23 19:52:21.070 OCISessionBegin failed -1 .. Detailed OCI error val is 1017 and errmsg is 'ORA-01017: invalid username/password; logon denied ' OCISessionBegin failed. Error -1 .. Detailed OCI error val is 1017 and errmsg is 'ORA-01017: invalid username/password; logon denied ' *** 2021-12-23 19:52:22.124 OCISessionBegin failed. Error -1 .. Detailed OCI error val is 1017 and errmsg is 'ORA-01017: invalid username/password; logon denied ' OCISessionBegin failed. Error -1 .. Detailed OCI error val is 1033 and errmsg is 'ORA-01033: ORACLE initialization or shutdown in progress ' *** 2021-12-23 19:52:22.148 4329 krsh.c Error 1033 received logging on to the standby *** 2021-12-23 19:52:22.148 939 krsu.c Error 1033 connecting to destination LOG_ARCHIVE_DEST_2 standby host 'racdg' Error 1033 attaching to destination LOG_ARCHIVE_DEST_2 standby host 'racdg'
5.查看主库密码文件,重传密码文件。发现主库的密码文件,竟然在22号做了一次修改,导致我23号重启了一次备库,再次同步失败
6.重传密码文件之后,就可以发现立马归档就重新应用了。