博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
创建broker配置
阅读量:5312 次
发布时间:2019-06-14

本文共 3771 字,大约阅读时间需要 12 分钟。

1.准备工作

■ 创建oracle11g的primary和standby库,物理standby,最大性能模式

■ DG_BROKER_START设置为TRUE

 

2.创建broker配置

DGMGRL> CREATE CONFIGURATION 'DRTEST' AS PRIMARY DATABASE IS 'ora11gn1' CONNECT IDENTIFIER IS ora11gn1;DGMGRL> ADD DATABASE 'ora11gn2' AS CONNECT IDENTIFIER IS ora11gn2;DGMGRL> ENABLE CONFIGURATION;DGMGRL> SHOW CONFIGURATION;Configuration - DRTEST  Protection Mode: MaxPerformance  Databases:    ora11gn1 - Primary database    ora11gn2 - Physical standby databaseFast-Start Failover: DISABLEDConfiguration Status:SUCCESSDGMGRL> SHOW DATABASE VERBOSE ora11gn1;Database - ora11gn1  Role:            PRIMARY  Intended State:  TRANSPORT-ON  Instance(s):    ora11gn  Properties:    DGConnectIdentifier             = 'ora11gn1'    ObserverConnectIdentifier       = ''    LogXptMode                      = 'ASYNC'    DelayMins                       = '0'    Binding                         = 'optional'    MaxFailure                      = '0'    MaxConnections                  = '1'    ReopenSecs                      = '300'    NetTimeout                      = '30'    RedoCompression                 = 'DISABLE'    LogShipping                     = 'ON'    PreferredApplyInstance          = ''    ApplyInstanceTimeout            = '0'    ApplyParallel                   = 'AUTO'    StandbyFileManagement           = 'AUTO'    ArchiveLagTarget                = '0'    LogArchiveMaxProcesses          = '4'    LogArchiveMinSucceedDest        = '1'    DbFileNameConvert               = '/u01/oradata/ora11gn/, /u01/oradata/ora11gn/'    LogFileNameConvert              = '/u01/oradata/ora11gn/, /u01/oradata/ora11gn/'    FastStartFailoverTarget         = ''    InconsistentProperties          = '(monitor)'    InconsistentLogXptProps         = '(monitor)'    SendQEntries                    = '(monitor)'    LogXptStatus                    = '(monitor)'    RecvQEntries                    = '(monitor)'    SidName                         = 'ora11gn'    StaticConnectIdentifier         = '(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=ora11gdg)(PORT=1521))(CONNECT_DATA=(SERVICE_NAME=ora11gn1_DGMGRL)(INSTANCE_NAME=ora11gn)(SERVER=DEDICATED)))'    StandbyArchiveLocation          = '/u01/app/oracle/11.2.0/db_1/dbs/arch'    AlternateLocation               = ''    LogArchiveTrace                 = '0'    LogArchiveFormat                = '%t_%s_%r.dbf'    TopWaitEvents                   = '(monitor)'Database Status:SUCCESSDGMGRL> SHOW DATABASE ora11gn2;Database - ora11gn2  Role:            PHYSICAL STANDBY  Intended State:  APPLY-ON  Transport Lag:   0 seconds  Apply Lag:       0 seconds  Real Time Query: ON  Instance(s):    ora11gnDatabase Status:SUCCESS

 

附:

listener.ora

# listener.ora Network Configuration File: /u01/app/oracle/11.2.0/db_1/network/admin/listener.ora# Generated by Oracle configuration tools.SID_LIST_LISTENER =  (SID_LIST =    (SID_DESC =      (GLOBAL_NAME = ora11gn)      (GLOBAL_DBNAME=ora11gn1_DGMGRL)      (ORACLE_HOME = /u01/app/oracle/11.2.0/db_1)      (SID_NAME = ora11gn)    )  )LISTENER =  (DESCRIPTION_LIST =    (DESCRIPTION =      (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.56.101)(PORT = 1521))      (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))    )  )ADR_BASE_LISTENER = /u01/app/oracle

tnsnames.ora

# tnsnames.ora Network Configuration File: /u01/app/oracle/11.2.0/db_1/network/admin/tnsnames.ora# Generated by Oracle configuration tools.ORA11GN1 =  (DESCRIPTION =    (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.56.101)(PORT = 1521))    (CONNECT_DATA =      (SERVER = DEDICATED)      (SERVICE_NAME = ora11gn1)    )  )ORA11GN2 =  (DESCRIPTION =    (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.56.102)(PORT = 1521))    (CONNECT_DATA =      (SERVER = DEDICATED)      (SERVICE_NAME = ora11gn2)    )  )

 

  

 

转载于:https://www.cnblogs.com/adba/p/5187194.html

你可能感兴趣的文章
无法根据中文查找
查看>>
[简讯]phpMyAdmin项目已迁移至GitHub
查看>>
转载 python多重继承C3算法
查看>>
【题解】 bzoj1597: [Usaco2008 Mar]土地购买 (动态规划+斜率优化)
查看>>
css文本溢出显示省略号
查看>>
git安装和简单配置
查看>>
面向对象:反射,双下方法
查看>>
鼠标悬停提示文本消息最简单的做法
查看>>
Java面向对象重要关键字
查看>>
课后作业-阅读任务-阅读提问-2
查看>>
面向对象设计中private,public,protected的访问控制原则及静态代码块的初始化顺序...
查看>>
fat32转ntfs ,Win7系统提示对于目标文件系统文件过大解决教程
查看>>
500 Lines or Less
查看>>
adb devices unauthorized的解决办法
查看>>
ubuntu qq
查看>>
串口调试工具
查看>>
Awesome Adb——一份超全超详细的 ADB 用法大全
查看>>
shell cat 合并文件,合并数据库sql文件
查看>>
通过adb命令查看SN、CID码等信息
查看>>
linux 常用shell命令之wc
查看>>