ORA-16217: prepare to switchover has not completed
在執行logical standby switchover的時候,出現了
[@more@]
ORA-16217: prepare to switchover has not completed錯誤.
[@more@]
SQL> alter database prepare to switchover to logical standby;
Database altered.
Database altered.
SQL> select switchover_status from v$database;
SWITCHOVER_STATUS
--------------------
PREPARING SWITCHOVER
SWITCHOVER_STATUS
--------------------
PREPARING SWITCHOVER
SQL> alter database commit to switchover to logical standby;
alter database commit to switchover to logical standby
*
ERROR at line 1:
ORA-16217: prepare to switchover has not completed
ORA-06512: at line 1
alter database commit to switchover to logical standby
*
ERROR at line 1:
ORA-16217: prepare to switchover has not completed
ORA-06512: at line 1
原來是在standby database中沒有設定
log_archive_dest_n='service=asm lgwr sync affirm valid_for=(all_logfiles,all_roles) db_unique_name=asm'導致的,
其中log_archive_dest_state_n等引數設定有誤,也會導致這個錯誤的。
在standby database上
SQL> alter system set log_archive_dest_3='service=asm lgwr sync affirm valid_for=(all_logfiles,all_roles) db_unique_name=asm';
System altered.
System altered.
然後在pirmary database上
SQL> alter database prepare to switchover to logical standby;
Database altered.
Database altered.
SQL> select switchover_status from v$database;
SWITCHOVER_STATUS
--------------------
TO LOGICAL STANDBY
SWITCHOVER_STATUS
--------------------
TO LOGICAL STANDBY
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/24237320/viewspace-1060313/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- DataGuard SwitchOver
- Arch更新時failed to prepare transactionAI
- 對“checkpoint not completed!”的理解 (zt)
- How to Prepare Storage for ASM (Doc ID 452924.1)ASM
- prepare statement cache size influence databaseDatabase
- WPF Backgroundworker dowork work completed progress changed
- Oracle:DG 的 switchoverOracle
- DataGuard:Physical Standby Switchover
- PostgreSQL DBA(160) - pgAdmin(prepare transaction)SQL
- Oracle 18.3 Resize operation completed for file#Oracle
- jQuery has()jQuery
- jQuery :has()jQuery
- oracle hasOracle
- MySQL 5.7 PREPARE、EXECUTE、DEALLOCATE語句介紹MySql
- MySQL 遊標(PREPARE預處理語句)MySql
- 使用 nuxi prepare 命令準備 Nuxt 專案UX
- dataguard角色轉換—switchover
- 邏輯備庫Switchover
- Dataguard Physical Standy Switchover
- 10g_dataguard_switchover
- DataGuard:Logical Standby Switchover
- data guard switchover on solaris 10
- 【iOS報錯】“The operation couldn’t be completed (LaunchServicesError erroiOSError
- AttributeError: 'dict' object has no attribute 'has_key'ErrorObject
- [CSS 3] :has()CSS
- iOS:The operation couldn’t be completed. (DVTCoreSimulatorAdditionsErrorDomain eiOSErrorAI
- CRS-4000: Command Start failed, or completed with errors.AIError
- 解決ERROR ResizeObserver loop completed with undelivered notifications.ErrorServerOOP
- 10gDG switchover 過程
- 物理DG角色轉換:switchover
- DG物理standby,switchover步驟
- In Data Guard,choose switchover or failover?AI
- 不停機 data guard 以及 switchover
- oracle has a disk HB, but no network HB, DHB has r cfg , wrtcntOracle
- mysql之 事務prepare 與 commit 階段分析MySqlMIT
- android -- Looper.prepare()和Looper.loop() —深入版AndroidOOP
- MySQL 預處理語句prepare、execute、deallocate的使用MySql
- yarn certificate has expiredYarn