dg切換操作文件
SQL> SELECT TO_CHAR(STANDBY_BECAME_PRIMARY_SCN) FROM V$DATABASE;
TO_CHAR(STANDBY_BECAME_PRIMARY_SCN)
----------------------------------------
SQL> alter session set nls_date_format='yyyy-mm-dd hh24:mi:ss';
Session altered.
SQL> select oldest_flashback_scn,oldest_flashback_time from v$flashback_database_log;
OLDEST_FLASHBACK_SCN OLDEST_FLASHBACK_TI
-------------------- -------------------
1202090 2019-05-05 04:01:45
SQL> recover managed standby database cancel;
Media recovery complete.
SQL>
SQL>
SQL> recover managed standby database finish force;
Media recovery complete.
SQL> select database_role from v$database;
DATABASE_ROLE
----------------
PHYSICAL STANDBY
SQL> select open_mode,database_role,protection_mode,protection_level,switchover_status from v$database;
OPEN_MODE DATABASE_ROLE PROTECTION_MODE PROTECTION_LEVEL SWITCHOVER_STATUS
-------------------- ---------------- -------------------- -------------------- --------------------
READ ONLY PHYSICAL STANDBY MAXIMUM PERFORMANCE MAXIMUM PERFORMANCE TO PRIMARY
SQL> alter database commit to switchover to primary;
Database altered
SQL>
SQL> select open_mode,database_role,protection_mode,protection_level,switchover_status from v$database;
OPEN_MODE DATABASE_ROLE PROTECTION_MODE PROTECTION_LEVEL SWITCHOVER_STATUS
-------------------- ---------------- -------------------- -------------------- --------------------
MOUNTED PRIMARY MAXIMUM PERFORMANCE UNPROTECTED NOT ALLOWED
SQL> SELECT TO_CHAR(STANDBY_BECAME_PRIMARY_SCN) FROM V$DATABASE;
TO_CHAR(STANDBY_BECAME_PRIMARY_SCN)
----------------------------------------
1330559
SQL> alter database open;
Database altered.
SQL> select open_mode,database_role,protection_mode,protection_level,switchover_status from v$database;
OPEN_MODE DATABASE_ROLE PROTECTION_MODE PROTECTION_LEVEL SWITCHOVER_STATUS
-------------------- ---------------- -------------------- -------------------- --------------------
READ WRITE PRIMARY MAXIMUM PERFORMANCE MAXIMUM PERFORMANCE NOT ALLOWED
SQL> SELECT TO_CHAR(STANDBY_BECAME_PRIMARY_SCN) FROM V$DATABASE;
TO_CHAR(STANDBY_BECAME_PRIMARY_SCN)
----------------------------------------
1330559
SQL>
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/31549397/viewspace-2647771/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- DG的切換操作
- oracle dg切換操作示例Oracle
- Oracle 11g dg switchover切換操作流程Oracle
- 使用Broker實現DG切換
- Oracle RAC DG手動切換Oracle
- RAC+單例項DG的切換單例
- 【DG】Data Guard主備庫Failove切換AI
- 【DG】Data Guard主備庫Switchover切換
- 5分鐘,徹底精通Oracle DG切換Oracle
- Oracle 18c&19c physical dg切換總結Oracle
- 基於單機的DataGuard切換文件
- 5 切換和故障轉移操作
- oracle 跨小版本dg切換應用補丁報錯處理Oracle
- DG同步異常恢復文件
- oracle 11g dg broker 開啟fast-start failover自動故障切換OracleASTAI
- 10g DG保護模式的切換:從最大效能到最大可用模式
- Oracle切換undo表空間操作步驟Oracle
- Git切換遠端伺服器操作指南Git伺服器
- 程式切換(上下文切換)
- db_ha叢集安裝後的自動切換及切換後的判斷步驟說明文件
- ppt轉換word文件怎麼操作 把ppt轉換成word純文字
- RHEL7 執行級別簡介及切換操作
- 棧切換
- win10一鍵切換夜晚模式怎麼操作_win10怎麼實現夜間模式快速切換Win10模式
- win10雙系統怎麼切換另一個_windows10雙系統快速切換操作方法Win10Windows
- [python][selenium] Web UI自動化切換iframe框架以及瀏覽器操作切換視窗和處理彈窗PythonWebUI框架瀏覽器
- 開啟、關閉、切換App以及清除App程序,操作so easy!APP
- 開啟、關閉、切換 App 以及清除 App 程序,操作 so easy!APP
- win10虛擬機器切換滑鼠怎麼操作_win10虛擬機器內外滑鼠如何切換Win10虛擬機
- win10開始選單怎麼切換風格_win10開始選單樣式切換如何操作Win10
- Oracle DG資料庫狀態轉換Oracle資料庫
- 切換UNDO(zt)
- ubuntu切換源Ubuntu
- Git分支切換Git
- 切換java版本Java
- 切換 PHP 版本PHP
- MongoDB 操作文件 查詢文件MongoDB
- Slate文件編輯器-WrapNode資料結構與操作變換資料結構