oracle12.2 adg ORA-46952: standby database format mismatch for password file
oracle 12.2 adg 在應用日誌時報出這個問題
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 檔案手工建立的可能不規範,直接查出主庫上的password檔案,然後重新複製到備庫上就可以解決這個問題:
SQL> select * from v$passwordfile_info;
FILE_NAME
--------------------------------------------------------------------------------
FORMAT IS_AS CON_ID
------ ----- ----------
+DATA/O12DB/PASSWORD/pwdo12db.256.1024706535
12 TRUE 0
關於這個錯誤的另外的排查處理思路:
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
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/29863023/viewspace-2682793/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Convert a Physical Standby Database into a Snapshot Standby DatabaseDatabase
- STANDBY_FILE_MANAGEMENT引數未設定auto導致的ADG備庫異常
- Performing a Failover to a Physical Standby DatabaseORMAIDatabase
- Setup Standby Database on One PC(轉)Database
- Oracle DG Standby Database型別OracleDatabase型別
- Oracle DG建立Physical Standby DatabaseOracleDatabase
- Oracle DG建立Logical Standby DatabaseOracleDatabase
- rfs (PID:146054): Database mount ID mismatch案例Database
- Oracle 12.2 使用Database Link優化Standby Database WorkloadOracleDatabase優化
- Password is required when adding a database to AG group if the database has a master keyUIDatabaseAST
- [20230110]sql profile run standby database.txtSQLDatabase
- libheif is an HEIF and AVIF file format decoder and encoderORM
- 4 Creating a Logical Standby Database 建立邏輯備庫Database
- 邏輯STANDBY建立中碰到ORA-16146: standby destination control file enqueue unavailableENQAI
- 單例項Primary快速搭建Standby RAC參考手冊(19.16 ADG)單例
- 在Oracle DG Standby庫上啟用flashback database功能OracleDatabase
- Bug:java.lang.IllegalArgumentException: unknown document format for file:JavaExceptionORM
- standby_file_management為manual造成dataguard延遲
- Oracle RAC+DG 調整redo/standby log fileOracle
- 透過RMAN備份standby database成功恢復還原Database
- 【故障解決】ORA-17630: Mismatch in the remote file protocol version client 2REMProtocolclient
- hyperledger fabric - chaincode fingerprint mismatch data mismatchAI
- Oracle 12C Database File Mapping for Oracle ASM FilesOracleDatabaseAPPASM
- Oracle 19c透過recover standby database from service修復GAP案例OracleDatabase
- Oracle 12c DG備庫啟動報錯standby database requires recoveryOracleDatabaseUI
- 修改sys密碼報錯:ORA-01994: Password file missing or disabled密碼
- Standby_file_management引數導致日誌無法應用
- Oracle 19C CBD Active DataGuard Standby passwd file 注意事項 ORA-01017Oracle
- Oracle RAC+ADG新增資料檔案失敗處理(db_create_file_dest)Oracle
- mongodb錯誤解決辦法-bash: ./mongod: cannot execute binary file: Exec format errorMongoDBORMError
- Format and un-format money/currency in JavaScriptORMJavaScript
- Json formatJSONORM
- 求助:TypeError: unsupported format string passed to NoneType.__format__ErrorORMNone
- Django中的函式make_password、set_password和check_passwordDjango函式
- [20230425]注意snapshot standby與activate standby的區別.txt
- no-wwwtl622com17008768000-password never prompt for password
- JDK 12的Files.mismatch方法JDK
- ubuntu更新報錯Hash Sum mismatchUbuntu