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

Posted 九號客栈

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了『ORACLE』 DG性能转换(11g)相关的知识,希望对你有一定的参考价值。

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

确认主库模式:

[email protected] hey~2->select protection_mode,protection_level from v$database;

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

确认备库模式:

[email protected] 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.

模式转换

[email protected] hey~1->alter database set standby database to maximize availability;

Database altered.

主库确认模式:

[email protected] 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

备库确认模式:

[email protected] 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

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

[email protected] hey~1->alter database set standby database to maximize protection;

Database altered.

[email protected] 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)的主要内容,如果未能解决你的问题,请参考以下文章

Oracle11g 配置DG broker

相交存在性能Oracle11g

oracle 11g DG 搭建

Oracle11G DG 搭建及管理

DG 最大性能转换最大保护

oracle 11g 12c dg环境 SYS密码同步的问题