【DG】Oracle11g​异构平台之Linux到Windows DataGuard安装配置--duplicate

0    321    1

Tags:

👉 本文共约4694个字,系统预计阅读时间或需18分钟。

1 、环境介绍

1.1 、主库

Ø 操作系统:RedHat Enterprise Linux 5.4 64bit

Ø IP 地址: 172.168.10.231

Ø 数据库版本:oracle 11.2.0.3 64bit

Ø 数据库sid 名: demo1

Ø 数据库名:demo1

Ø 数据库db_unique_name demo231

Ø 数据文件路径:/oradata/demo1

Ø 归档路径:/oracle/arch

1.2 、备库

Ø 操作系统:windows server 2003 64bit

Ø IP 地址: 172.168.10.233

Ø 数据库版本:oracle 11.2.0.3

Ø 数据库sid 名: demo1

Ø 数据库名:demo1

Ø 数据库db_unique_name : demo233

Ø 数据文件路径:c:\oradata\demo1

Ø 归档路径:c:\oracle\arch

2 、 DG 配置准备

2.1 、主库安装 oracle 11.2.0.3 数据库软件并创建数据库实例

Ø 安装oracle 数据库软件(略)

Ø 创建数据库实例(略)

Ø 创建监听(略)

2.2 、备库安装 oracle 11.2.0.3 数据库软件

Ø 安装oracle 数据库软件(略)

Ø 创建数据库实例:oradim -new -sid orcldg

Ø 创建监听(略)

3 、 DG 配置

3.1 、将主库设置为归档模式

Ø 略

3.2 、设置主库为强制归档模式

Ø SQL>alter database force logging;

3.3 、主库监听配置

Ø listener.ora

SID_LIST_LISTENER=

(SID_LIST=

(SID_DESC=

(GLOBAL_DBNAME=demo1)

(ORACLE_HOME=/oracle/product/11.2.0/db_1)

(SID_NAME=demo1)

)

(SID_DESC=

(SID_NAME=PLSExtProc)

(ORACLE_HOME=/oracle/product/11.2.0/db_1)

(PROGRAM=extproc)

)

)

LISTENER =

(DESCRIPTION_LIST =

(DESCRIPTION =

(ADDRESS = (PROTOCOL = TCP)(HOST = dg231)(PORT = 1521))

(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))

)

)

Ø tnsnames.ora

DEMO231 =

(DESCRIPTION =

(ADDRESS_LIST =

(ADDRESS = (PROTOCOL = TCP)(HOST = 172.168.10.231)(PORT = 1521))

)

(CONNECT_DATA =

(SERVICE_NAME = demo1)

)

)

DEMO233 =

(DESCRIPTION =

(ADDRESS_LIST =

(ADDRESS = (PROTOCOL = TCP)(HOST = 172.168.10.233)(PORT = 1521))

)

(CONNECT_DATA =

(SERVICE_NAME = demo1)

)

)

3.4 、备库监听配置

Ø listener.ora

SID_LIST_LISTENER=

(SID_LIST=

(SID_DESC=

(GLOBAL_DBNAME=demo1)

(ORACLE_HOME=C:\oracle\product\11.2.0.3/db_1)

(SID_NAME=demo1)

)

(SID_DESC=

(SID_NAME=PLSExtProc)

(ORACLE_HOME=C:\oracle\product\11.2.0.3/db_1)

(PROGRAM=extproc)

)

)

LISTENER =

(DESCRIPTION_LIST =

(DESCRIPTION =

(ADDRESS = (PROTOCOL = TCP)(HOST = ygdg)(PORT = 1521))

(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))

)

)

Ø tnsnames.ora

DEMO231 =

(DESCRIPTION =

(ADDRESS_LIST =

(ADDRESS = (PROTOCOL = TCP)(HOST = 172.168.10.231)(PORT = 1521))

)

(CONNECT_DATA =

(SERVICE_NAME = demo1)

)

)

DEMO233 =

(DESCRIPTION =

(ADDRESS = (PROTOCOL = TCP)(HOST = ygdg)(PORT = 1521))

(CONNECT_DATA =

(SERVER = DEDICATED)

(SERVICE_NAME = demo1)

)

)

3.5 、主库初始化参数修改

Ø 生成pfile 文件( create pfile from spfile )

Ø 修改生成的pfile 文件,添加如下红色部分内容

demo1.__db_cache_size=205520896

demo1.__java_pool_size=4194304

demo1.__large_pool_size=4194304

demo1.__oracle_base='/oracle'#ORACLE_BASE set from environment

demo1.__pga_aggregate_target=218103808

demo1.__sga_target=327155712

本人提供Oracle(OCP、OCM)、MySQL(OCP)、PostgreSQL(PGCA、PGCE、PGCM)等数据库的培训和考证业务,私聊QQ646634621或微信dbaup66,谢谢!
AiDBA后续精彩内容已被站长无情隐藏,请输入验证码解锁本文!
验证码:
获取验证码: 请先关注本站微信公众号,然后回复“验证码”,获取验证码。在微信里搜索“AiDBA”或者“dbaup6”或者微信扫描右侧二维码都可以关注本站微信公众号。

标签:

Avatar photo

小麦苗

学习或考证,均可联系麦老师,请加微信db_bao或QQ646634621

您可能还喜欢...

发表回复