ora11_node_dg(2)ADG做(switchover)切換測試

fjzcau發表於2015-12-31

  1. # primary節點

  2. --切換為standby
  3. SQL> alter database commit to switchover to physical standby;

  4. SQL> shutdown immediate;

  5. SQL> startup;

  6. --開啟redo應用
  7. SQL> alter database recover managed standby database using current logfile disconnect from session;

  8. SQL> select db_unique_name,database_role,protection_mode,protection_level,open_mode,switchover_status from v$database;


  9. # standby 節點

  10. --切換為primary
  11. SQL> alter database commit to switchover to primary;

  12. SQL> shutdown immediate

  13. SQL> startup
  14. SQL> alter system switch logfile;

  15. SQL> select db_unique_name,database_role,protection_mode,protection_level,open_mode,switchover_status from v$database;

  16. 升為主庫後,SWITCHOVER_STATUS 狀態依次為:
  17. 1)RESOLVABLE GAP
  18. 2)TO STANDBY
  19. 3)SESSIONS ACTIVE


來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/22661144/viewspace-1969254/,如需轉載,請註明出處,否則將追究法律責任。

相關文章