码迷,mamicode.com
首页 > 数据库 > 详细

『ORACLE』 DG性能转换(11g)

时间:2017-05-06 20:48:15      阅读:223      评论:0      收藏:0      [点我收藏+]

标签:ora   ice   online   nbsp   data   form   _for   switch   font   

一、最大性能转换至最大可用

确认主库模式:

SYS@enmo2 hey~2->select protection_mode,protection_level from v$database;

PROTECTION_MODE PROTECTION_LEVEL
-------------------- --------------------
MAXIMUM PERFORMANCE MAXIMUM PERFORMANCE

确认备库模式:

SYS@enmo1 hey~1->select name,protection_mode,database_role,switchover_status from v$database;

NAME PROTECTION_MODE DATABASE_ROLE SWITCHOVER_STATUS
--------- -------------------- ---------------- --------------------
ENMO1 MAXIMUM PERFORMANCE PHYSICAL STANDBY TO PRIMARY

修改参数:alter system set LOG_ARCHIVE_DEST_2= ‘SERVICE=enmo2 ASYNC VALID_FOR=(ONLINE_LOGFILES,PRIMARY_ROLE) DB_UNIQUE_NAME=enmo2‘;

Database altered.

模式转换

SYS@enmo1 hey~1->alter database set standby database to maximize availability;

Database altered.

主库确认模式:

SYS@enmo2 hey~2->select name,protection_mode,database_role,switchover_status from v$database;

NAME PROTECTION_MODE DATABASE_ROLE SWITCHOVER_STATUS
--------- -------------------- ---------------- --------------------
ENMO1 MAXIMUM AVAILABILITY PHYSICAL STANDBY TO STANDBY

备库确认模式:

SYS@enmo1 hey~1->select name,protection_mode,database_role,switchover_status from v$database;

NAME PROTECTION_MODE DATABASE_ROLE SWITCHOVER_STATUS
--------- -------------------- ---------------- --------------------
ENMO1 MAXIMUM AVAILABILITY PHYSICAL STANDBY NOT ALLOWED

二、最大可用切换到最大保护

SYS@enmo1 hey~1->alter database set standby database to maximize protection;

Database altered.

SYS@enmo1 hey~1->select name,protection_mode,database_role,switchover_status from v$database;

NAME PROTECTION_MODE DATABASE_ROLE SWITCHOVER_STATUS
--------- -------------------- ---------------- --------------------
ENMO1 MAXIMUM PROTECTION PHYSICAL STANDBY TO STANDBY

 

『ORACLE』 DG性能转换(11g)

标签:ora   ice   online   nbsp   data   form   _for   switch   font   

原文地址:http://www.cnblogs.com/KT-melvin/p/6817841.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!