Oracle 11g OGG 修改 trail 文件大小
OGG 修改 trail 文件大小
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 文件大小的更多相关文章
- Oracle 11g中修改默认密码过期天数和锁定次数
Oracle 11g中修改默认密码过期天数和锁定次数 密码过期的原因一般有两种可能: 一.由于Oracle中默认在default概要文件中设置了"PASSWORD_LIFE_TIME=180 ...
- Oracle 11g RAC 修改各类IP地址
Oracle 11g RAC 修改各类IP地址 首先,我们都知道Oracle 11g RAC中的IP主要有:Public IP.VIP.SCAN VIP.Private IP这几种. 一般这类改IP地 ...
- oracle 11g rac 修改VIP、scan VIP、priv IP
11GR2 RAC modify vip,public ip,private ip,scan vip实施步骤1 修改目的 根据业务的需求,需要由原来的临时IP改为生产ip,以下为调整前后对应的I ...
- Oracle 11g ogg单表初始化步骤
ogg单表初始化步骤 2018-06-08 14:55 296 0 原创 GoldenGate 本文链接:https://www.cndba.cn/leo1990/article/2842 1.ogg ...
- oracle 11g rac 修改字符集
系统版本: Oracle Linux Server release 5.7 数据库版本: Oracle Database 11g Enterprise Edition Release 11.2.0.3 ...
- Oracle 11g OGG mgr定期清理tail 文件
OGG mgr定期清理tail 文件 2018-06-11 11:58 440 0 原创 GoldenGate 本文链接:https://www.cndba.cn/leo1990/article/28 ...
- oracle 11g rac修改监听端口(远程监听和本地监听)
转至:https://www.cnblogs.com/yj411511/p/12459533.html 目录 1.修改远程监听端口 1.1 查看远程监听状态 1.2 修改SCAN listener端口 ...
- ORACLE 11G R2 修改"用户名"
SQL> create pfile from spfile; 修改pfile文件,添加隐含参数 *._enable_rename_user='TRUE',将数据库以restrict方式启动 1. ...
- Oracle 11g中修改被锁定的用户:scott
在安装完Oracle10g和创建完oracle数据库之后,想用数据库自带的用户scott登录,看看连接是否成功. 在cmd命令中,用“sqlplus scott/ tiger”登录时,老是提示如下信息 ...
随机推荐
- C# 为所有 CheckBox 添加事件
C# 为 form 窗体中的所有相同组件循环添加相同事件,这样减少了代码量. private void Form2_Load(object sender, EventArgs e) { foreach ...
- python爬取全名k歌
python3 爬取全名k歌 代码: import re import requests import ssl ssl._create_default_https_context=ssl._creat ...
- ajaxToolkit 异步加载报 错误500的解决方法
设置IIS程序池的托管模式为经典
- Spring Boot 监控利器 —— Actutor
参考 CSDN-学习Spring Boot:(二十七)Spring Boot 2.0 中使用 Actuator 使用Actuator监控Spring Boot应用 程序猿DD-Spring Boot ...
- django 开发笔记1
1.布置到云服务器 使用 python3 manage.py runserver提示错误,需要将settings.py 中 ALLOWED_HOSTS 字典中加入 localhost;0.0.0.0; ...
- zookeeper图形化的客户端工具
追加一个zookeeper图形化的客户端工具: 1.zookeeper图像化客户端工具的下载地址:https://issues.apache.org/jira/secure/attachment/12 ...
- nodejs+express+socket.io
其实官网文档清楚了 https://socket.io/get-started/chat/ 但是因为之前写的是nodejs+express, socket.io是后加的, 还是有小坑 服务器端: 官 ...
- Axure中继器的应用场景和结构组成
应用场景: 当点击回复的时候,页面会会跳出来头像.昵称.时间.评论的内容(详情:https://jingyan.baidu.com/article/77b8dc7fb478346174eab622.h ...
- HTML CSS 特殊字符表
HTML有许多特殊的字符,您对此有多少了解?平时在WEB制作中,您又有用到多少?或者说你在平时使用之时,是否也会碰到,有许多特殊字符要如何打印出来?比如说“笑脸”,比如说“版权号”.要是你用时忘记了这 ...
- 素数问题(JAVA)
http://wenda.haosou.com/q/1371348579062596 http://blog.csdn.net/liukehua123/article/details/5482854