您好,登錄后才能下訂單哦!
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
日志中顯示的非常清晰,該問(wèn)題主要由以下原因造成,
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目標(biāo)端
orapwepmsn 100% 1536 1.5KB/s 00:00
[oracle@sourcedb dbs]$
SQL> select * from v$archive_gap; --日志傳輸恢復(fù)正常,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;
免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如果涉及侵權(quán)請(qǐng)聯(lián)系站長(zhǎng)郵箱:is@yisu.com進(jìn)行舉報(bào),并提供相關(guān)證據(jù),一經(jīng)查實(shí),將立刻刪除涉嫌侵權(quán)內(nèi)容。