select name,datab..."/>
溫馨提示×

溫馨提示×

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

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

maximum protection 轉(zhuǎn) maximum availability

發(fā)布時間:2020-08-04 20:07:23 來源:ITPUB博客 閱讀:109 作者:大鯊魚o0O 欄目:關(guān)系型數(shù)據(jù)庫
PS:該實驗建立在之前DG博客的基礎(chǔ)之上的

主庫之前的狀態(tài),執(zhí)行轉(zhuǎn)換語句,主庫之后的狀態(tài)

  1. 15:00:01 SYS @ slow >select name,database_role,protection_mode from v$database;

  2. NAME     DATABASE_ROLE PROTECTION_MODE
  3. --------- ---------------- --------------------
  4. SLOW     PRIMARY     MAXIMUM PROTECTION

  5. 1 row selected.

  6. Elapsed: 00:00:00.00
  7. 15:00:35 SYS @ slow >select status from v$instance;

  8. STATUS
  9. ------------
  10. OPEN

  11. 1 row selected.

  12. Elapsed: 00:00:00.00
  13. 18:57:24 SYS @ slow >startup mount force;
  14. ORACLE instance started.

  15. Total System Global Area 521936896 bytes
  16. Fixed Size         2254824 bytes
  17. Variable Size         377489432 bytes
  18. Database Buffers     138412032 bytes
  19. Redo Buffers         3780608 bytes
  20. Database mounted.
  21. 18:57:44 SYS @ slow >select name,database_role,protection_mode from v$database;

  22. NAME     DATABASE_ROLE PROTECTION_MODE
  23. --------- ---------------- --------------------
  24. SLOW     PRIMARY     MAXIMUM PROTECTION

  25. 1 row selected.

  26. Elapsed: 00:00:00.01
  27. 18:58:20 SYS @ slow >select status from v$instance;

  28. STATUS
  29. ------------
  30. MOUNTED

  31. 1 row selected.

  32. Elapsed: 00:00:00.01
  33. 18:58:39 SYS @ slow >alter database set standby database to maximize availability;

  34. Database altered.

  35. Elapsed: 00:00:00.00
  36. 19:00:09 SYS @ slow >alter database open;

  37. Database altered.

  38. Elapsed: 00:00:03.03
  39. 19:00:25 SYS @ slow >select name,database_role,protection_mode from v$database;

  40. NAME     DATABASE_ROLE PROTECTION_MODE
  41. --------- ---------------- --------------------
  42. SLOW     PRIMARY     MAXIMUM AVAILABILITY

  43. 1 row selected.

  44. Elapsed: 00:00:00.00
  45. 19:01:20 SYS @ slow >

備庫之前的狀態(tài),主庫執(zhí)行轉(zhuǎn)換語句,備庫之后的狀態(tài)  ,,,一切正常,轉(zhuǎn)換成功?。?!

  1. 14:56:33 SYS @ gotime >select name,database_role,protection_mode from v$database;

  2. NAME     DATABASE_ROLE PROTECTION_MODE
  3. --------- ---------------- --------------------
  4. SLOW     PHYSICAL STANDBY MAXIMUM PROTECTION

  5. 1 row selected.

  6. Elapsed: 00:00:00.00
  7. 14:57:21 SYS @ gotime >select status from v$instance;

  8. STATUS
  9. ------------
  10. OPEN

  11. 1 row selected.

  12. Elapsed: 00:00:00.00
  13. 18:56:45 SYS @ gotime >startup mount force;
  14. ORACLE instance started.

  15. Total System Global Area 521936896 bytes
  16. Fixed Size         2254824 bytes
  17. Variable Size         377489432 bytes
  18. Database Buffers     138412032 bytes
  19. Redo Buffers         3780608 bytes
  20. Database mounted.
  21. 18:57:07 SYS @ gotime >select name,database_role,protection_mode from v$database;

  22. NAME     DATABASE_ROLE PROTECTION_MODE
  23. --------- ---------------- --------------------
  24. SLOW     PHYSICAL STANDBY MAXIMUM AVAILABILITY

  25. 1 row selected.

  26. Elapsed: 00:00:00.04
  27. 19:02:08 SYS @ gotime >





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

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

AI