Data Guard Physical Standby Setup Using the Data Guard Broker in Oracle 11.2 之01(安装配置)

Posted 轻飘飘D

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Data Guard Physical Standby Setup Using the Data Guard Broker in Oracle 11.2 之01(安装配置)相关的知识,希望对你有一定的参考价值。

1.假设条件

您有两台服务器,其中装有操作系统,并在其上安装了Oracle Linux 7 和Oracle Database 11.2.0.4。
主服务器XAG200上安装了实例。
备服务器XAG201上仅软件安装。

2.修改主机名(从克隆过来的vm)

[root@xag100 ~]# cat /etc/hostname
xag200

[oracle@xag100 ~]$ cat /etc/sysconfig/network
# Created by anaconda
NETWORKING=yes
HOSTNAME=xag200
# oracle-rdbms-server-11gR2-preinstall : Add NOZEROCONF=yes
NOZEROCONF=yes

vim /etc/hosts
#增加如下
192.168.40.200  xag200
192.168.40.201  xag201

3.網卡配置

[root@xag100 ~]# cd /etc/sysconfig/network-scripts/

[root@xag100 network-scripts]# cat ifcfg-ens33 
TYPE="Ethernet"
PROXY_METHOD="none"
BROWSER_ONLY="no"
BOOTPROTO="static"
DEFROUTE="yes"
IPV4_FAILURE_FATAL="no"
NAME="ens33"
UUID="0224e944-0b68-47d5-b327-71d0e5560845"
DEVICE="ens33"
ONBOOT="yes"
IPADDR="192.168.40.200"
GATEWAY="192.168.40.2"
NETMASK="255.255.255.0"
DNS1="8.8.8.8"

#重啟網卡
[root@xag100 network-scripts]# service network restart

4.修改监听

[oracle@xag100 ~]$ cd $ORACLE_HOME/network/admin

[oracle@xag100 admin]$ cat listener.ora 
# listener.ora Network Configuration File: /u01/app/oracle/product/11.2.0.4/db_1/network/admin/listener.ora
# Generated by Oracle configuration tools.

LISTENER =
  (DESCRIPTION_LIST =
    (DESCRIPTION =
      (ADDRESS = (PROTOCOL = TCP)(HOST = xag200)(PORT = 1521))
      (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
    )
  )

ADR_BASE_LISTENER = /u01/app/oracle

[oracle@xag100 admin]$ cat tnsnames.ora 
# tnsnames.ora Network Configuration File: /u01/app/oracle/product/11.2.0.4/db_1/network/admin/tnsnames.ora
# Generated by Oracle configuration tools.

DB100 =
  (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = xag200)(PORT = 1521))
    (CONNECT_DATA =
      (SERVER = DEDICATED)
      (SERVICE_NAME = DB100)
    )
  )

5.重启OS

6.重复上面步骤1到步骤5 配置备机xag201 后重启os

7.安装监听(xag201)

[oracle@xag200 ~]$ export DISPLAY=192.168.0.7:0.0

[oracle@xag200 ~]$ netca

以上是关于Data Guard Physical Standby Setup Using the Data Guard Broker in Oracle 11.2 之01(安装配置)的主要内容,如果未能解决你的问题,请参考以下文章

Data Guard Physical Standby Setup Using the Data Guard Broker in Oracle 11.2 之01(安装配置)

11.2 Data Guard Physical Standby Switchover Best Practices using SQL*Plus (Doc ID 1304939.1)

Oracle Data Gurad Physical Standby 相关说明

[译] Data Guard:Oracle Database 21c 中的 PREPARE DATABASE FOR DATA GUARD 命令

Oracle Active Data Guard和Data Guard的区别

DATA GUARD架构