您好,登录后才能下订单哦!
密码登录
登录注册
点击 登录注册 即表示同意《亿速云用户服务条款》
Oracle DataGuard日志传输失败,日志信息如下所示,
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
------------------------------------------------------------
FAL[client, ARC2]: Error 16191 connecting to epmsn for fetching gap sequence
SQL> select * from v$archive_gap; --日志存在gap
THREAD# LOW_SEQUENCE# HIGH_SEQUENCE#
---------- ------------- --------------
1 38 40
日志中显示的非常清晰,该问题主要由以下原因造成,
SQL> alter user sys identified by Star_1234;
User altered.
SQL>
[oracle@sourcedb oracle]$ cd $ORACLE_HOME/dbs
[oracle@sourcedb dbs]$ ls -ltr
total 9568
-rw-r--r--. 1 oracle oinstall 2851 May 15 2009 init.ora
-rw-r-----. 1 oracle oinstall 24 Aug 13 2018 lkHSQL
-rw-r----- 1 oracle oinstall 24 Jun 21 2019 lkEPMBAK
-rw-r----- 1 oracle oinstall 3584 Jun 21 2019 spfileepmbak.ora
-rw-rw---- 1 oracle oinstall 1544 Jun 21 2019 hc_epmbak.dat
-rw-rw----. 1 oracle oinstall 1544 Jun 21 2019 hc_hsql.dat
-rw-r----- 1 oracle oinstall 1536 Jan 26 21:22 bak_orapwepmsn
-rw-r--r-- 1 oracle oinstall 50 Feb 15 00:18 initepmbak.ora
-rw-r----- 1 oracle oinstall 24 Feb 15 02:34 lkEPMSN
-rw-rw---- 1 oracle oinstall 1544 Feb 15 02:36 hc_epmsn.dat
-rw-r----- 1 oracle oinstall 9748480 Feb 15 21:24 snapcf_epmsn.f
-rw-r----- 1 oracle oinstall 3584 Mar 22 06:00 spfileepmsn.ora
-rw-r----- 1 oracle oinstall 1536 Mar 22 06:38 orapwepmsn
[oracle@sourcedb dbs]$ mv orapwepmsn bak_orapwepmsn ---备份源密码文件
[oracle@sourcedb dbs]$ orapwd file=orapwepmsn password=Star_1234 ignorecase=y ---重新生成密码文件
[oracle@sourcedb dbs]$ scp orapwepmsn oracle@hsql:$ORACLE_HOME/dbs/ --传输密码文件到dg目标端
orapwepmsn 100% 1536 1.5KB/s 00:00
[oracle@sourcedb dbs]$
SQL> select * from v$archive_gap; --日志传输恢复正常,gap消除
no rows selected
SQL>
**********oracle active data guard
alter database recover managed standby database cancel;
alter database open;
alter database recover managed standby database using current logfile disconnect;
免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。