oracle12.2RAC之OGG安装配置(二)
本机到本机的配置:
源端 10.1.83.144:1521/SIBP_GSDY HNSIB_GSDY
目标端 10.1.83.144:1521/SIBP_GS HNSIB_GS
进程名规划 :OBB05
源端抽取进程及文件前缀:BG01_DY DY
目标端恢复进程:OBR01
//环境变量设置
#for ogg
export GG_HOME=/ogg/data
export PATH=$JAVA_HOME/bin:$GG_HOME:$PATH
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$GG_HOME:$ORACLE_HOME/lib:/lib:/usr/lib
export NLS_LANG="american_america.ZHS16GBK"
alias ggsci='cd $GG_HOME; $GG_HOME/ggsci'
alias gglog='cd $GG_HOME;tail -n50 -f $GG_HOME/ggserr.log'
alias ggserr='cd $GG_HOME;tail -n50 -f $GG_HOME/ggserr.log'
alias e1log='cd $GG_HOME/dirrpt;tail -n50 -f $GG_HOME/dirrpt/E1.rpt'
alias ggdir='cd $GG_HOME'
alias dirrpt='cd $GG_HOME/dirrpt'
alias dirdat='cd $GG_HOME/dirdat'
alias dirout='cd $GG_HOME/dirout'
//数据库设置
Select SUPPLEMENTAL_LOG_DATA_MIN,SUPPLEMENTAL_LOG_DATA_PK,SUPPLEMENTAL_LOG_DATA_UI,SUPPLEMENTAL_LOG_DATA_FK,SUPPLEMENTAL_LOG_DATA_ALL from v$database;
alter database add supplemental log data;
Alter database force logging;
alter database add supplemental log data (primary key, unique,foreign key) columns;
alter system switch logfile;
Alter database force logging;
SQL> show parameter enable_goldengate_replication
SQL> alter system set enable_goldengate_replication=true scope=both; --RAC的所有实例也需要设置
//tns设置
SIBP_GSDY =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = scanvip05)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = SIBP_GSDY)
)
)
SIBP_GS =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = scanvip05)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = SIBP_GS)
)
)
//源端
create user c##ggadm identified by ggadm;
grant connect,resource,dba to c##ggadm container=all;
--DROP USER C##GGADM CASCADE
exec dbms_goldengate_auth.grant_admin_privilege('c##ggadm');
exec dbms_goldengate_auth.grant_admin_privilege('c##ggadm',container=>'all');
//目的端,分别connect到每个PDB
SQL> alter session set container = SIBP_GS ;
SQL> create user ggadm identified by ggadm container=current ;
SQL> grant connect,resource,dba to ggadm ;
SQL> exec dbms_goldengate_auth.grant_admin_privilege('GGADM',container=>'SIBP_GS');
GGSCI > add credentialstore
GGSCI > ALTER CREDENTIALSTORE ADD USER ggadm@SIBP_GS PASSWORD ggadm ALIAS ggadm1
GGSCI (node1) 8> ALTER CREDENTIALSTORE ADD USER c##ggadm@SIBCGSC1 PASSWORD ggadm ALIAS ggadm
Credential store altered.
--ALTER CREDENTIALSTORE delete USER c##ggadm@SIBP_GS ALIAS ggadm1
//以下两条摘自文档,但不完全包含所需的权限,比如CREATE SESSION就没有
exec dbms_goldengate_auth.grant_admin_privilege('c##ggadm');
exec dbms_goldengate_auth.grant_admin_privilege('c##ggadm',container=>'all');
------------------------------------------------------------------------------------extract
info credentialstore
add credentialstore
DBLOGIN USERIDALIAS ggadm
DBLOGIN USERIDALIAS ggadm1
DBLOGIN USERID ggadm, PASSWORD ggadm
add schematrandata SIBP_GSDY.HNSIB_GSDY
info schematrandata HNSIB_GSDY
info trandata *.*
REGISTER EXTRACT BG01_DY DATABASE CONTAINER (SIBP_GSDY)
SCN 2088952.
ADD EXTRACT BG01_DY, INTEGRATED TRANLOG, BEGIN NOW
ADD EXTTRAIL ./dirdat/DY, EXTRACT BG01_DY
edit params BG01_DY
EXTRACT BG01_DY
USERIDALIAS ggadm
DDL INCLUDE MAPPED
DDLOPTIONS REPORT
GETTRUNCATES
EXTTRAIL ./dirdat/DY
DISCARDFILE ./dirrpt/DY.dsc, APPEND, MEGABYTES 4000
WARNLONGTRANS 1H, CHECKINTERVAL 5M
LOGALLSUPCOLS
NOCOMPRESSUPDATES
UPDATERECORDFORMAT FULL
REPORTCOUNT EVERY 2 SECONDS, RATE
--SOURCECATALOG SIBP_GSDY
TABLE SIBP_GSDY.HNSIB_GSDY.AA20 ;
TABLE SIBP_GSDY.HNSIB_GSDY.AA50 ;
-------------------pump
空
---------------------R
DBLOGIN USERIDALIAS ggadm1
add checkpointtable ggadm.checkpoint
ADD REPLICAT OBR01 INTEGRATED EXTTRAIL ./dirdat/DY
edit params OBR01
REPLICAT OBR01
USERIDALIAS ggadm1
ASSUMETARGETDEFS
REPERROR (DEFAULT, ABEND)
--REPERROR (1403, DISCARD)
--REPERROR (-1,IGNORE)
DISCARDFILE ./dirrpt/GS.dsc, append, megabytes 400
--For DDL :
DDL INCLUDE MAPPED
DDLOPTIONS REPORT
DDLERROR DEFAULT DISCARD RETRYOP MAXRETRIES 5 RETRYDELAY 20
DBOPTIONS SUPPRESSTRIGGERS
DBOPTIONS INTEGRATEDPARAMS(parallelism 2)
Gettruncates
ALLOWNOOPUPDATES
numfiles 3000
REPORTCOUNT EVERY 2 SECONDS, RATE
--MAP scott.*,TARGET scott.*;
--SOURCECATALOG SIBP_GSDY
--MAP SIBP_GSDY.HNSIB_GSDY.*, TARGET SIBP_GS.HNSIB_GS.*;
MAP SIBP_GSDY.HNSIB_GSDY.AA20 ,TARGET HNSIB_GS.AA20 ;
MAP SIBP_GSDY.HNSIB_GSDY.AA50 ,TARGET HNSIB_GS.AA50 ;
oracle12.2RAC之OGG安装配置(二)的更多相关文章
- oracle12.2RAC之OGG安装配置(一)
前面配置了ACFS用于ogg目录. 上传软件并解压安装: unzip 123014_fbo_ggs_Linux_x64_shiphome.zip cd fbo_ggs_Linux_x64_shipho ...
- MYSQL + MHA +keepalive + VIP安装配置(二)--MHA的配置
一.总概 1.MHA介绍 MHA(Master High Availability)是自动的master故障转移和Slave提升的软件包.它是基于标准的MySQL复制(异步/半同步). MH ...
- RHEL7-openldap安装配置二(客户端安装配置)
LDAP用户登录流程: 当在客户端输入账号登录系统时,系统根据/etc/nsswitch.conf配置文件获取账号查找顺序,然后再根据PAM配置文件调用相关模块,对账号(/etc/passwd)及密码 ...
- cobbler安装配置(二)
安装环境: 操作系统:CentOS 6.5 x86_64测试机器ip:192.168.0.1 关闭防火墙.selinux:service iptables stop && chkcon ...
- jenkins安装配置[二]
标签(linux): jenkins 笔者Q:972581034 交流群:605799367.有任何疑问可与笔者或加群交流 安装依赖,如果本机已有java环境可跳过 yum install java- ...
- redis主从+哨兵 安装配置二
实验环境: 192.168.2.201 centos7 master sentinel 192.168.2.202 centos7 slave sentinel 192.168.2.203 cen ...
- 异构平台mysql-oracle(ogg)安装部署
如图所示:源端采用Mysql库,目标端采用Oracle库 一.OGG安装配置(源端) 1.OGG下载 https://edelivery.oracle.com/EPD/Download/get_f ...
- 阿里云服务器Linux CentOS安装配置(二)yum安装svn
阿里云服务器Linux CentOS安装配置(二)yum安装svn 1.secureCRT连接服务器 2.先创建一个文件夹,用来按自己的习惯来,用来存放数据 mkdir /data 3.yum安装sv ...
- Docker: 安装配置入门[二]
一.安装配置启动 1.环境 [root@docker1 ~]# cat /etc/redhat-release CentOS Linux release 7.4.1708 (Core) [root@d ...
随机推荐
- Sqlite—Python接口
#!/usr/bin/env python # -*- coding:utf-8 -*- import sqlite3,os,time import traceback class Sqlite(): ...
- WebShell代码分析溯源(七)
WebShell代码分析溯源(七) 一.一句话变形马样本 <?php $e = $_REQUEST['e'];$arr = array($_POST['POST'],);array_map(ba ...
- MongoDB(三):数据库操作、集合操作
1. 数据库操作 看完前面的文章,大家应该把环境搭建好了,下面我们就开始学习MongoDB的一些基本操作了. 首先我们要了解的一些要点: MongoDB将数据存储为一个文档,数据结构由键值对(key= ...
- SharePoint 2019 里安装FlowPortal6.00c报错
环境: Windows Server 2016+SharePoint 2019 安装FlowPortal 6.00c后应用程序池FlowPortal.net 6.x AppPool自动停止. 事件查看 ...
- 阻止保存要求重新创建表的更改-只需设置SQLServer的一个设置
- MySQL多实例安装教程
目录 MySQL的多实例 实验准备: 准备阶段: 实验阶段 MySQL的多实例 实验准备: 1. 一个干净的centos7系统 2. 关闭防火墙和selinux 3. 之前已经二进制安装过的MySQL ...
- 12.2新特性 使用DBCA duplicate创建物理备用数据库 (Doc ID 2283697.1)
Creating a Physical Standby database using DBCA duplicate (Doc ID 2283697.1) APPLIES TO: Oracle Data ...
- CodeForces - 460C(二分+差分)
题意 https://vjudge.net/problem/CodeForces-460C 一个长度为 n 的序列 a ,你有 m 次操作的机会,每次操作是将其中连续的 w 个元素增加 1 .最大化最 ...
- 手机投屏工具与HOSTS切换工具
ApowerMirror windows -->switchhosts
- [译]Vulkan教程(13)图形管道基础之Shader模块
[译]Vulkan教程(13)图形管道基础之Shader模块 Shader modules Unlike earlier APIs, shader code in Vulkan has to be s ...