溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點(diǎn)擊 登錄注冊 即表示同意《億速云用戶服務(wù)條款》

怎么解決oracle12.2 adg中的ORA-46952問題

發(fā)布時(shí)間:2021-11-05 10:36:13 來源:億速云 閱讀:374 作者:iii 欄目:關(guān)系型數(shù)據(jù)庫

這篇文章主要講解了“怎么解決oracle12.2 adg中的ORA-46952問題”,文中的講解內(nèi)容簡單清晰,易于學(xué)習(xí)與理解,下面請大家跟著小編的思路慢慢深入,一起來研究和學(xué)習(xí)“怎么解決oracle12.2 adg中的ORA-46952問題”吧!

oracle 12.2 adg  在應(yīng)用日志時(shí)報(bào)出這個(gè)問題

Errors in file /app/oracle/oracle/diag/rdbms/o12dbadg/O12DBDG/trace/O12DBDG_pr00_186543.trc:

ORA-46952: standby database format mismatch for password file '/app/oracle/oracle/product/12.2.0/dbhome_1/dbs/orapwO12DBDG'

問題還是在于備庫的的password 文件手工創(chuàng)建的可能不規(guī)范,直接查出主庫上的password文件,然后重新復(fù)制到備庫上就可以解決這個(gè)問題:

SQL> select * from v$passwordfile_info;

FILE_NAME

--------------------------------------------------------------------------------

FORMAT IS_AS CON_ID

------ ----- ----------

+DATA/O12DB/PASSWORD/pwdo12db.256.1024706535

12     TRUE      0

關(guān)于這個(gè)錯(cuò)誤的另外的排查處理思路:

Was getting the same error after primary to standby switchover: 
ORA-46952: standby database format mismatch for password file AND MRP0: 
Background Media Recovery process shutdown
1. select * from v$passwordfile_info; --> showed different format in primary (12.2) and standby (12)
2. password changes were propagated correctly between primary and secondary
***********************************************************************************************
For me fix was (RAC environments):
 
1. Delete password file on standby with version 12
 
     pwdelete --dbuniquename standby
 
2. Remove from SRVCTL
 
     srvctl modify database -db standby -pwfile
 
3. Create new password file in ASM ( asmcmd )
 
     pwcreate --dbuniquename standby +DATASM/standby/PASSWORD/pwdstandby PwdThat# EnforcesThe12201ComplexityRules
 
Password must contain at least 8 charactersPassword must not contain double quotesPassword must contain at least 1 letterPassword must contain at least 1 digitPassword must contain at least 1 special characterPassword must not contain the usernamePassword must not contain username reversed 
 
4. Add the pwd file back to SRVCTL
 
    srvctl modify database -db standby -pwfile +DATASM/standby/PASSWORD/pwdstandby
 
5. select * from v$passwordfile_info --> now shows same format 12.2 as primary password file
 
6. ALTER DATABASE RECOVER MANAGED STANDBY DATABASE DISCONNECT FROM SESSION; --> started redo apply no issues
 
I
 think our issue was due to the legacy password file we had on the 
original primary db where 12.2.0.1 password complexity rules were not 
followed so version was determined as 12 vs 12.2
In 12.2.0.1 there should be no need to copy password files between primary and standby dbs.
My issue got resolved after i followed below process:-
1. Created the password file in primary with the old password.
2. deleted all the password file in the standby site.
3. Started the MRP and standby got sync.
4.
 changed the password in the primary db(in sqlplus only like alter user 
sys) and it got sync automatically without copying file manually.
 
SR has helped to resolve the issue:-
The Workaround to bypass this difference in Redo are the steps in internal Note 2503352.1

感謝各位的閱讀,以上就是“怎么解決oracle12.2 adg中的ORA-46952問題”的內(nèi)容了,經(jīng)過本文的學(xué)習(xí)后,相信大家對怎么解決oracle12.2 adg中的ORA-46952問題這一問題有了更深刻的體會(huì),具體使用情況還需要大家實(shí)踐驗(yàn)證。這里是億速云,小編將為大家推送更多相關(guān)知識點(diǎn)的文章,歡迎關(guān)注!

向AI問一下細(xì)節(jié)

免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點(diǎn)不代表本網(wǎng)站立場,如果涉及侵權(quán)請聯(lián)系站長郵箱:is@yisu.com進(jìn)行舉報(bào),并提供相關(guān)證據(jù),一經(jīng)查實(shí),將立刻刪除涉嫌侵權(quán)內(nèi)容。

AI