OGG 修改 trail 文件大小

2018-06-11 15:14 380 0 原创 GoldenGate

1. OGG 修改 trail 文件大小

1.1. 添加进程指定trail文件大小

添加本地队列文件的时候megabytes 添加参数指定队列文件的大小,如果指定默认是100m
例如:
add exttrail ./dirdat/et, extract ext1
add rmttrail ./dirdat/et,extract pump1
GGSCI (cndba) 8> info exttrail * Extract Trail: ./dirdat/et
Extract: EXT1
Seqno: 8
RBA: 1075
File Size: 100M Extract Trail: ./dirdat/et
Extract: PUMP1
Seqno: 6
RBA: 1314
File Size: 100M
可通过以下方式在添加时指定trail文件大小:
add exttrail ./dirdat/et,extract ext1,megabytes 500
ADD RMTTRAIL ./dirdat/et, EXTRACT pump1, MEGABYTES 500

1.2. 修改trail文件大小

你可以通过alter 命令调整MEGABYTES 参数的值来改变trail 文件的大小,是使用ALTER EXTTRAIL
或者 ALTER RMTTRAIL要看trail 文件是在本地还是在其它地方
使用下面的命令获得你想修改trail 文件的存放地址,你的trail文件所属的组
本地
INFO EXTTRAIL * (Local trail)
INFO RMTTRAIL * (Remote trail)
通过以下命名修改本地和远端的trail文件
(Remote trail)
ALTER RMTTRAIL <trail name>, EXTRACT <group name>, MEGABYTES <n>
(Local trail)
ALTER EXTTRAIL <trail name>, EXTRACT <group name>, MEGABYTES <n>

1.3. 修改trail文件大小步骤

1.3.1. 停止源端抽取和投递进程

GGSCI (cndba) 12> stop ext1

Sending STOP request to EXTRACT EXT1 ...
Request processed.

1.3.2. 查看复制进程应用trail 文件情况

检查源端投递到目标端的trail文件和目标端trail文件检查点是否一致,若果一样说明复制进程应用完成可以继续后面的操作
--源端查看检查点信息
GGSCI (cndba) 5> info pump1,showch EXTRACT PUMP1 Last Started 2018-06-11 21:17 Status RUNNING
Checkpoint Lag 00:00:00 (updated 00:00:07 ago)
Log Read Checkpoint File ./dirdat/et000025
2018-06-11 21:17:54.955265 RBA 1075 Current Checkpoint Detrail: Read Checkpoint #1 GGS Log Trail Startup Checkpoint (starting position in the data source):
Sequence #: 24
RBA: 1324
Timestamp: 2018-06-11 18:49:55.000000
Extract Trail: ./dirdat/et Current Checkpoint (position of last record read in the data source):
Sequence #: 25
RBA: 1075
Timestamp: 2018-06-11 21:17:54.955265
Extract Trail: ./dirdat/et Write Checkpoint #1 GGS Log Trail Current Checkpoint (current write position):
Sequence #: 22
RBA: 1314
Timestamp: 2018-06-11 21:20:05.434123
Extract Trail: ./dirdat/et CSN state information:
CRC: 41-A9-39-75
Latest CSN: 1311152
Latest TXN: 3.2.972
Latest CSN of finished TXNs: 1311152
Completed TXNs: 3.2.972 Header:
Version = 2
Record Source = A
Type = 1
# Input Checkpoints = 1
# Output Checkpoints = 1 File Information:
Block Size = 2048
Max Blocks = 100
Record Length = 2048
Current Offset = 0 Configuration:
Data Source = 0
Transaction Integrity = 1
Task Type = 0 Status:
Start Time = 2018-06-11 21:17:53
Last Update Time = 2018-06-11 21:20:05
Stop Status = A
Last Result = 400
--目标端查看检查点信息
GGSCI (cndba) 6> info rep1,showch REPLICAT REP1 Last Started 2018-06-11 21:18 Status RUNNING
Checkpoint Lag 00:00:00 (updated 00:00:02 ago)
Log Read Checkpoint File ./dirdat/et000022
2018-06-11 21:17:55.377684 RBA 1314 Current Checkpoint Detrail: Read Checkpoint #1 GGS Log Trail Startup Checkpoint (starting position in the data source):
Sequence #: 21
RBA: 2327
Timestamp: 2018-06-11 18:49:49.320050
Extract Trail: ./dirdat/et Current Checkpoint (position of last record read in the data source):
Sequence #: 22
RBA: 1314
Timestamp: 2018-06-11 21:17:55.377684
Extract Trail: ./dirdat/et CSN state information:
CRC: 9-70-46-F2
Latest CSN: 1311152
Latest TXN: 3.2.972
Latest CSN of finished TXNs: 1311152
Completed TXNs: 3.2.972 Header:
Version = 2
Record Source = A
Type = 1
# Input Checkpoints = 1
# Output Checkpoints = 0 File Information:
Block Size = 2048
Max Blocks = 100
Record Length = 2048
Current Offset = 0 Configuration:
Data Source = 0
Transaction Integrity = -1
Task Type = 0 Database Checkpoint:
Checkpoint table = ogg.checkpoint
Key = 401993224 (0x17f5ee08)
Create Time = 2018-06-07 16:09:16 Status:
Start Time = 2018-06-11 21:18:05
Last Update Time = 2018-06-11 21:35:09
Stop Status = A
Last Result = 400

1.3.3. 在源端查看trail文件大小信息

GGSCI (cndba) 14>  info exttrail *

       Extract Trail: ./dirdat/et
Extract: EXT1
Seqno: 8
RBA: 1075
File Size: 100M Extract Trail: ./dirdat/et
Extract: PUMP1
Seqno: 6
RBA: 1314
File Size: 100M

1.3.4. 投递进程

GGSCI (cndba) 13> stop pump1

Sending STOP request to EXTRACT PUMP1 ...
Request processed.

1.3.5. 停止目标端复制进程

GGSCI (cndba) 10> stop rep1

Sending STOP request to REPLICAT REP1 ...
Request processed. GGSCI (cndba) 11> info all Program Status Group Lag at Chkpt Time Since Chkpt MANAGER RUNNING
REPLICAT STOPPED REP1 00:00:00 00:00:01

1.3.6. 修改本地和远端trail文件大小

修改本地文件需要重启抽取进程
GGSCI (cndba) 19> alter exttrail ./dirdat/et,extract ext1,megabytes 200
EXTTRAIL altered.
如果只修改远端trail文件大小的话不需要重启进程,直接修改。
GGSCI (cndba) 18> alter rmttrail ./dirdat/et, extract pump1, megabytes 200
RMTTRAIL altered.

1.3.7. 启动源端进程

GGSCI (cndba) 21> start ext1

Sending START request to MANAGER ...
EXTRACT EXT1 starting
GGSCI (cndba) 22> start pump1 Sending START request to MANAGER ...
EXTRACT PUMP1 starting

1.3.8. 生成本地和远端新的trail文件

GGSCI (cndba) 23> SEND extract ext1, ROLLOVER

Sending ROLLOVER request to EXTRACT EXT1 ...
Request processed. GGSCI (cndba) 24> SEND extract pump1, ROLLOVER Sending ROLLOVER request to EXTRACT PUMP1 ...
Request processed.
查看修改后的trail文件大小
GGSCI (cndba) 25> info exttrail * Extract Trail: ./dirdat/et
Extract: EXT1
Seqno: 10
RBA: 1016
File Size: 200M Extract Trail: ./dirdat/et
Extract: PUMP1
Seqno: 8
RBA: 1265
File Size: 200M

1.3.9. 启动目标端进程

GGSCI (cndba) 12> start rep1

Sending START request to MANAGER ...
REPLICAT REP1 starting GGSCI (cndba) 13> info all Program Status Group Lag at Chkpt Time Since Chkpt MANAGER RUNNING
REPLICAT RUNNING REP1 00:00:00 00:00:02

Oracle 11g OGG 修改 trail 文件大小的更多相关文章

  1. Oracle 11g中修改默认密码过期天数和锁定次数

    Oracle 11g中修改默认密码过期天数和锁定次数 密码过期的原因一般有两种可能: 一.由于Oracle中默认在default概要文件中设置了"PASSWORD_LIFE_TIME=180 ...

  2. Oracle 11g RAC 修改各类IP地址

    Oracle 11g RAC 修改各类IP地址 首先,我们都知道Oracle 11g RAC中的IP主要有:Public IP.VIP.SCAN VIP.Private IP这几种. 一般这类改IP地 ...

  3. oracle 11g rac 修改VIP、scan VIP、priv IP

    11GR2 RAC modify vip,public ip,private ip,scan vip实施步骤1 修改目的    根据业务的需求,需要由原来的临时IP改为生产ip,以下为调整前后对应的I ...

  4. Oracle 11g ogg单表初始化步骤

    ogg单表初始化步骤 2018-06-08 14:55 296 0 原创 GoldenGate 本文链接:https://www.cndba.cn/leo1990/article/2842 1.ogg ...

  5. oracle 11g rac 修改字符集

    系统版本: Oracle Linux Server release 5.7 数据库版本: Oracle Database 11g Enterprise Edition Release 11.2.0.3 ...

  6. Oracle 11g OGG mgr定期清理tail 文件

    OGG mgr定期清理tail 文件 2018-06-11 11:58 440 0 原创 GoldenGate 本文链接:https://www.cndba.cn/leo1990/article/28 ...

  7. oracle 11g rac修改监听端口(远程监听和本地监听)

    转至:https://www.cnblogs.com/yj411511/p/12459533.html 目录 1.修改远程监听端口 1.1 查看远程监听状态 1.2 修改SCAN listener端口 ...

  8. ORACLE 11G R2 修改"用户名"

    SQL> create pfile from spfile; 修改pfile文件,添加隐含参数 *._enable_rename_user='TRUE',将数据库以restrict方式启动 1. ...

  9. Oracle 11g中修改被锁定的用户:scott

    在安装完Oracle10g和创建完oracle数据库之后,想用数据库自带的用户scott登录,看看连接是否成功. 在cmd命令中,用“sqlplus scott/ tiger”登录时,老是提示如下信息 ...

随机推荐

  1. AOP之proceedingjoinpoint和joinpoint区别(获取各对象备忘)、动态代理机制及获取原理代理对象、获取Mybatis Mapper接口原始对象

    现在AOP的场景越来越多,所以我们有必要理解下和AOP相关的一些概念和机制. import org.aspectj.lang.reflect.SourceLocation; public interf ...

  2. GMap获取可视范围内四个角的坐标

    原理: 先获取控件的四个顶点,逐一将其转换成经纬度坐标. private void GetBonds() { //左上↖ PointLatLng pLeftTop = map1.FromLocalTo ...

  3. Elasticsearch-搭建自己的搜索系统

    参考链接: https://blog.csdn.net/weixin_42730079/article/details/81113806 https://www.cnblogs.com/dreamro ...

  4. CefSharp浏览器网页中文语言设置

    设置浏览器语言而非cef语言 ChromiumWebBrowser browser = new ChromiumWebBrowser(url); BrowserSettings browserSett ...

  5. bzoj 3473 字符串 - 后缀数组 - 树状数组

    题目传送门 传送门 题目大意 给定n个字符串,询问每个字符串有多少子串(不包括空串)是所有n个字符串中至少k个字符串的子串 先用奇怪的字符把所有字符串连接起来. 建后缀树,数每个节点的子树内包含多少属 ...

  6. centos7 升级内核

    rpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org rpm -Uvh http://www.elrepo.org/elrepo-rel ...

  7. 给COCO数据集的json标签换行

    #include <iostream> #include <fstream> #include <string> #include <vector> u ...

  8. Magento 2.2.5和2.2.6的bug 产品设置special price又删除后价格排序有误

    Magento 2.2.5和2.2.6的bug 产品设置special price又删除后价格排序有误 一.问题描述:版本2.2.5和2.2.6均有此问题,为Magento2的系统bug.为产品设置s ...

  9. Python内置进制转换函数(实现16进制和ASCII转换)

    在进行wireshark抓包时你会发现底端窗口报文内容左边是十六进制数字,右边是每两个十六进制转换的ASCII字符,这里使用Python代码实现一个十六进制和ASCII的转换方法. hex() 转换一 ...

  10. 用Tensorflow实现DCGAN

    1. GAN简介 最近几年,深度神经网络在图像识别.语音识别以及自然语言处理方面的应用有了爆炸式的增长,并且都达到了极高的准确率,某些方面甚至超过了人类的表现.然而人类的能力远超出图像识别和语音识别的 ...