当前位置:网站首页>farsync 简易测试
farsync 简易测试
2022-06-25 22:13:00 【文档搬运工】
rdbms 12.2.0.1
已经安装好的dg,增加一个节点,改为farsync模式。
参考文档:
Using Far Sync Instances (oracle.com)
12c新特性 - Active Data Guard Far Sync (oracle.com)
| database_role | dbname | db_unique_name | IP |
| primary | test | test | 192.168.2.81 |
| standby | test | test_stdby | 192.168.2.80 |
| farsync | test | farsync | 192.168.2.82 |
-- 创建farsync实例的控制文件 ,并copy到farsync主机所在的机器上
alter database create far sync instance controlfile as '/tmp/control01.ctl';-- 修改主库的LOG_ARCHIVE_CONFIG,LOG_ARCHIVE_DEST_1,LOG_ARCHIVE_DEST_2
alter system set log_archive_config = 'DG_CONFIG=(test,farsync,test_stdby)' ; -- 变为3个
alter system set log_archive_dest_1 = 'LOCATION=/u01/archive_log VALID_FOR=(ALL_LOGFILES,ALL_ROLES) DB_UNIQUE_NAME=test' -- 不变
alter system set log_archive_dest_2 = 'SERVICE=farsync ASYNC AFFIRM VALID_FOR=(ONLINE_LOGFILES,PRIMARY_ROLE) DB_UNIQUE_NAME=farsync' -- 变为指向farsync --修改备库的LOG_ARCHIVE_CONFIG、LOG_ARCHIVE_DEST_1,LOG_ARCHIVE_DEST_2
alter system set log_archive_config = 'DG_CONFIG=(test,farsync,test_stdby)' ; -- 变为3个
alter system set log_archive_dest_1 = 'LOCATION=/u01/archive_log VALID_FOR=(ALL_LOGFILES,ALL_ROLES) DB_UNIQUE_NAME=test_stdby' -- 不变
alter system set log_archive_dest_2 ='SERVICE=test ASYNC VALID_FOR=(ONLINE_LOGFILES,PRIMARY_ROLE) DB_UNIQUE_NAME=test' -- 不变
alter system set fal_server = 'farsync','test' ; -- 变为2个 -- 配置farsync实例
alter system set db_unique_name = farsync scope=spfile;
alter system set DB_FILE_NAME_CONVERT='test','farsync','test_stdby','farsync' scope=spfile ;
alter system set LOG_FILE_NAME_CONVERT='test','farsync','test_stdby','farsync' scope=spfile ;
alter system set FAL_SERVER=test scope=spfile ;
alter system set LOG_ARCHIVE_CONFIG='DG_CONFIG=(test,farsync,test_stdby)' scope=spfile ;
alter system set log_archive_dest_1 = 'LOCATION=/u01/archive_log VALID_FOR=(ALL_LOGFILES,ALL_ROLES) DB_UNIQUE_NAME=farsync' scope=spfile ;
alter system set log_archive_dest_2 ='SERVICE=test_stdby ASYNC VALID_FOR=(STANDBY_LOGFILES,STANDBY_ROLE) DB_UNIQUE_NAME=test_stdby' scope=spfile ;-- 配置listener.ora 和tnsnames.ora (略)
-- 启动farsync,先根据原来的主备库生成farsync实例的pfile,修改一些参数后,生成spfile,启动到mount状态(过程略,主要上面farsync实例的一些参数)
startup mount ;-- 查看farsync实例状态
select protection_mode,database_role,protection_level,open_mode from v$database;
[email protected]>select protection_mode,database_role,protection_level,open_mode from v$database;
PROTECTION_MODE DATABASE_ROLE PROTECTION_LEVEL OPEN_MODE
-------------------- ---------------- -------------------- --------------------
MAXIMUM PERFORMANCE FAR SYNC MAXIMUM PERFORMANCE MOUNTED
[email protected]>-- 检查配置
select * from v$dataguard_config;
[email protected]>select * from v$dataguard_config;
DB_UNIQUE_NAME PARENT_DBUN DEST_ROLE CURRENT_SCN CON_ID
------------------------------ ------------------------------ ----------------- ----------- ----------
FARSYNC test FAR SYNC INSTANCE 11753274 0
test_stdby FARSYNC PHYSICAL STANDBY 11753274 0
test NONE PRIMARY DATABASE 0 0
[email protected]>-- farsync上备份归档日志(在farsync节点上,是可以对归档日志进行处理的)
[[email protected]_farsync /u01]$rman target /
Recovery Manager: Release 12.2.0.1.0 - Production on Fri Nov 26 14:49:30 2021
Copyright (c) 1982, 2017, Oracle and/or its affiliates. All rights reserved.
connected to target database: TEST (DBID=2361166120, not open)
RMAN> backup archivelog all;
Starting backup at 26-NOV-21
using target database control file instead of recovery catalog
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=251 device type=DISK
channel ORA_DISK_1: starting archived log backup set
channel ORA_DISK_1: specifying archived log(s) in backup set
input archived log thread=1 sequence=30 RECID=1 STAMP=1089625843
input archived log thread=1 sequence=31 RECID=2 STAMP=1089625845
channel ORA_DISK_1: starting piece 1 at 26-NOV-21
channel ORA_DISK_1: finished piece 1 at 26-NOV-21
piece handle=/u01/app/oracle/product/12.2.0/dbhome_1/dbs/3n0f598a_1_1 tag=TAG20211126T144946 comment=NONE
channel ORA_DISK_1: backup set complete, elapsed time: 00:00:01
Finished backup at 26-NOV-21
RMAN-06497: warning: control file is not current, control file AUTOBACKUP skipped
RMAN> END
边栏推荐
- Redis memory elimination mechanism
- huibian
- How to configure SQL Server 2008 Manager_ Old bear passing by_ Sina blog
- 文献调研(一):基于集成学习和能耗模式分类的办公楼小时能耗预测
- Alipay payment interface sandbox environment test and integration into an SSM e-commerce project
- Simulation connection between WinCC and STEP7_ Old bear passing by_ Sina blog
- SSH review
- Smt贴片加工出现元件立碑的解决方法
- 贴片加工厂家讲解__ICT是什么?主要测试什么?ICT测试的优缺点?
- Redis cluster
猜你喜欢

Unsigned and signed vernacular

Establishment of multiple background blocks in botu software_ Old bear passing by_ Sina blog

DNS复习

ValueError: color kwarg must have one color per data set. 9 data sets and 1 colors were provided

10.2.3、Kylin_ The dimension is required for kylin

10.4.1、数据中台

Building cloud computers with FRP

10.2.3、Kylin_kylin的使用,维度必选

POSTMAN测试出现SSL无响应

Installation of third-party library iGraph for social network visualization
随机推荐
mysql 主从复制
JS中的数字数组去重
Detailed explanation of redis
SSH review
Common problems encountered when creating and publishing packages using NPM
Read CSV file data in tensorflow
搜索旋转数组II[抽象二分练习]
Prototype chain test questions in JS --foo and getname
Frequently asked questions about redis
postman如何测试需要登录的接口
Common methods of object class
11.1.1、flink概述_flink概述
Linking MySQL database with visual studio2015 under win10
迅为RK3568开发板使用RKNN-Toolkit-lite2运行测试程序
The role of iomanip header file in actual combat
DateTimeFormatter与LocalDateTime
DNS复习
Realize the conversion between analog quantity value and engineering quantity value in STEP7_ Old bear passing by_ Sina blog
WINCC与STEP7的仿真连接_过路老熊_新浪博客
我的博客今天2岁167天了,我领取了先锋博主徽章_过路老熊_新浪博客