修改目的端trail文件的最大大小--转载
本文为原创,转载请注明出处:
http://blog.csdn.net/msdnchina/article/details/38346435
修改目的端trail文件的最大大小。
本文产生的背景:
在OGG源数据库上,检查文件系统使用率的过程中,发现$OGG_HOME的使用率相当高,于是追查原因,查到dirdat目录下有大量的trail文件没有删除。这些trail文件都是去年产生的,早就被传输到目的端了。但是为什么没有被mgr 的PURGEOLDEXTRACTS 参数正常删除呢?
后来检查发现:源头的trail file(/u02/ggs/dirdat/aa)和目的端的trail file(u02/ggs/dirrdat/aa)的名字一样,这是导致源头os上 trail文件没有删除的原因。
具体是这么回事:比如说源头trail file(/u02/ggs/dirdat/aa)到了aa001000,此时目的端的trail file(/u02/ggs/dirrdat/aa)却只到了aa000010。
OGG的mgr进程删除trail文件的判断逻辑为:
检查整个复制环境(包括源头和目的端)中的相同trail文件名的trail,获得最小的那个trail文件号,在此号之前的那些trail文件就会被OGG的mgr进程的PURGEOLDEXTRACTS 参数正常删除掉。
这里有人会问:为啥源头到了/u02/ggs/dirdat/aa001000,目的端却只到了/u02/ggs/dirdat/aa000010 ?这是不是意味着丢了数据?
这个很好解释,包括但是不限于如下的原因:
1.源头trail文件最大大小是20M一个,目的端trail文件的最大大小是2M一个。
2.源头trail文件中包括10个表的信息,目的端trail文件中包括2个表的信息(即:传输进程的参数文件起到了过滤需要同步的table的作用)
因此,如上的情况不代表传丢了数据。
本文的思路就是调整目的端trail文件的大小,让目的端trail文件号的生成速度加快,即:让目的端的trail文件号尽快的追上源头的trail文件号,从而让OGG的mgr进程尽快的删除源头的trail文件。
额外注意:
1.调整目的端trail文件的大小 是在源头进行的,具体来说就是:修改源头的传输进程
2.在整个过程中,只需要停止一下传输进程,然后修改rmttrail文件大小,然后再启动传输进程即可。可以说风险极其微小。
调整步骤(以下均在源头机器上进行)
1.info 传输进程, showch
2.info 传输进程, detail
3.stop 传输进程
4.alter rmttrail /u02/ggs/dirdat/aa, extract 传输进程, megabytes 1
--->这个alter命令是修改远程的trail file /u02/ggs/dirdat/aa 的最大大小为1MB
5.info 传输进程, showch
6.info 传输进程, detail
7.start 传输进程
如下是当时操作的记录:
- GGSCI (hosta) 2> info dpaa, showch
- EXTRACT DPAA Last Started 2014-07-25 17:30 Status RUNNING
- Checkpoint Lag 00:00:00 (updated 00:00:07 ago)
- Log Read Checkpoint File /u02/ggs/dirdat/aa019357
- 2014-08-01 14:08:29.000000 RBA 44906368
- Current Checkpoint Detail:
- Read Checkpoint #1
- GGS Log Trail
- Startup Checkpoint (starting position in the data source):
- Sequence #: 18965
- RBA: 36113095
- Timestamp: 2014-07-25 16:37:28.000000
- Extract Trail: /u02/ggs/dirdat/aa
- Current Checkpoint (position of last record read in the data source):
- Sequence #: 19357
- RBA: 44906368
- Timestamp: 2014-08-01 14:08:29.000000
- Extract Trail: /u02/ggs/dirdat/aa
- Write Checkpoint #1
- GGS Log Trail
- Current Checkpoint (current write position):
- Sequence #: 5341
- RBA: 36395386
- Timestamp: 2014-08-01 14:08:35.734473
- Extract Trail: /u02/ggs/dirdat/aa
- 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 = 2014-07-25 17:30:55
- Last Update Time = 2014-08-01 14:08:35
- Stop Status = A
- Last Result = 400
- GGSCI (hosta) 3> info DPAA, showch
- EXTRACT DPAA Last Started 2014-07-25 17:30 Status RUNNING
- Checkpoint Lag 00:00:00 (updated 00:00:07 ago)
- Log Read Checkpoint File /u02/ggs/dirdat/aa019357
- 2014-08-01 14:09:43.000000 RBA 46549780
- Current Checkpoint Detail:
- Read Checkpoint #1
- GGS Log Trail
- Startup Checkpoint (starting position in the data source):
- Sequence #: 18965
- RBA: 36113095
- Timestamp: 2014-07-25 16:37:28.000000
- Extract Trail: /u02/ggs/dirdat/aa
- Current Checkpoint (position of last record read in the data source):
- Sequence #: 19357
- RBA: 46549780
- Timestamp: 2014-08-01 14:09:43.000000
- Extract Trail: /u02/ggs/dirdat/aa
- Write Checkpoint #1
- GGS Log Trail
- Current Checkpoint (current write position):
- Sequence #: 5341
- RBA: 36782463
- Timestamp: 2014-08-01 14:10:02.300738
- Extract Trail: /u02/ggs/dirdat/aa
- 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 = 2014-07-25 17:30:55
- Last Update Time = 2014-08-01 14:10:02
- Stop Status = A
- Last Result = 400
- GGSCI (hosta) 4> info dpaa, detail
- EXTRACT DPAA Last Started 2014-07-25 17:30 Status RUNNING
- Checkpoint Lag 00:00:00 (updated 00:00:03 ago)
- Log Read Checkpoint File /u02/ggs/dirdat/aa019357
- 2014-08-01 14:10:00.000000 RBA 46852715
- Target Extract Trails:
- Remote Trail Name Seqno RBA Max MB
- /u02/ggs/dirdat/aa 5341 36852196 50 --->注意此处的50M,此时是改之前。
- Extract Source Begin End
- /u02/ggs/dirdat/aa019357 2014-07-25 16:37 2014-08-01 14:10
- /u02/ggs/dirdat/aa018965 2014-07-25 16:14 2014-07-25 16:37
- /u02/ggs/dirdat/aa018965 2014-07-25 12:20 2014-07-25 16:14
- /u02/ggs/dirdat/aa018960 2014-07-25 12:20 2014-07-25 12:20
- /u02/ggs/dirdat/aa018960 2014-07-25 12:20 2014-07-25 12:20
- /u02/ggs/dirdat/aa018960 2014-07-25 12:20 2014-07-25 12:20
- /u02/ggs/dirdat/aa018960 2014-07-25 12:20 2014-07-25 12:20
- /u02/ggs/dirdat/aa018960 2014-07-25 12:20 2014-07-25 12:20
- /u02/ggs/dirdat/aa018960 2014-07-25 12:20 2014-07-25 12:20
- /u02/ggs/dirdat/aa018960 2014-07-25 12:20 2014-07-25 12:20
- /u02/ggs/dirdat/aa018960 2014-07-04 18:17 2014-07-25 12:20
- /u02/ggs/dirdat/aa017864 2014-06-30 18:32 2014-07-04 18:17
- /u02/ggs/dirdat/aa017531 2014-06-06 10:01 2014-06-30 18:32
- /u02/ggs/dirdat/aa016295 2014-06-06 10:01 2014-06-06 10:01
- /u02/ggs/dirdat/aa016295 2014-06-06 10:01 2014-06-06 10:01
- /u02/ggs/dirdat/aa016295 2014-06-01 08:39 2014-06-06 10:01
- /u02/ggs/dirdat/aa016049 2014-05-02 10:06 2014-06-01 08:39
- /u02/ggs/dirdat/aa014617 2014-04-11 02:49 2014-05-02 10:06
- /u02/ggs/dirdat/aa013640 2014-03-29 09:01 2014-04-11 02:49
- /u02/ggs/dirdat/aa013090 2014-03-18 22:12 2014-03-29 09:01
- /u02/ggs/dirdat/aa012599 2014-01-20 20:22 2014-03-18 22:12
- /u02/ggs/dirdat/aa010415 2014-01-20 20:22 2014-01-20 20:22
- /u02/ggs/dirdat/aa010415 2014-01-20 20:22 2014-01-20 20:22
- /u02/ggs/dirdat/aa010415 2014-01-20 20:22 2014-01-20 20:22
- /u02/ggs/dirdat/aa010415 2014-01-20 20:22 2014-01-20 20:22
- /u02/ggs/dirdat/aa010415 2014-01-20 20:22 2014-01-20 20:22
- /u02/ggs/dirdat/aa010415 2014-01-20 20:22 2014-01-20 20:22
- /u02/ggs/dirdat/aa010415 2014-01-20 20:22 2014-01-20 20:22
- /u02/ggs/dirdat/aa010415 2014-01-20 20:22 2014-01-20 20:22
- /u02/ggs/dirdat/aa010415 2014-01-20 20:22 2014-01-20 20:22
- /u02/ggs/dirdat/aa010415 2014-01-20 20:22 2014-01-20 20:22
- /u02/ggs/dirdat/aa010415 2014-01-20 20:22 2014-01-20 20:22
- /u02/ggs/dirdat/aa010415 2014-01-20 20:22 2014-01-20 20:22
- /u02/ggs/dirdat/aa010415 2014-01-20 20:22 2014-01-20 20:22
- /u02/ggs/dirdat/aa010415 2014-01-20 20:22 2014-01-20 20:22
- /u02/ggs/dirdat/aa010415 2014-01-20 20:22 2014-01-20 20:22
- /u02/ggs/dirdat/aa010415 2014-01-20 20:22 2014-01-20 20:22
- /u02/ggs/dirdat/aa010415 2014-01-20 20:22 2014-01-20 20:22
- /u02/ggs/dirdat/aa010415 2014-01-20 20:22 2014-01-20 20:22
- /u02/ggs/dirdat/aa010415 2014-01-20 20:22 2014-01-20 20:22
- /u02/ggs/dirdat/aa010415 2014-01-20 20:22 2014-01-20 20:22
- /u02/ggs/dirdat/aa010415 2014-01-20 20:22 2014-01-20 20:22
- /u02/ggs/dirdat/aa010415 2014-01-20 20:22 2014-01-20 20:22
- /u02/ggs/dirdat/aa010415 2014-01-20 20:22 2014-01-20 20:22
- /u02/ggs/dirdat/aa010415 2014-01-20 20:22 2014-01-20 20:22
- /u02/ggs/dirdat/aa010415 2014-01-20 20:22 2014-01-20 20:22
- /u02/ggs/dirdat/aa010415 2014-01-20 20:22 2014-01-20 20:22
- /u02/ggs/dirdat/aa010415 2014-01-20 20:22 2014-01-20 20:22
- /u02/ggs/dirdat/aa010415 2014-01-20 20:22 2014-01-20 20:22
- /u02/ggs/dirdat/aa010415 2014-01-20 20:22 2014-01-20 20:22
- /u02/ggs/dirdat/aa010415 2014-01-20 20:22 2014-01-20 20:22
- /u02/ggs/dirdat/aa010415 2014-01-20 20:22 2014-01-20 20:22
- /u02/ggs/dirdat/aa010415 2014-01-20 20:22 2014-01-20 20:22
- /u02/ggs/dirdat/aa010415 2014-01-20 20:22 2014-01-20 20:22
- /u02/ggs/dirdat/aa010415 2014-01-20 20:22 2014-01-20 20:22
- /u02/ggs/dirdat/aa010415 2014-01-20 20:22 2014-01-20 20:22
- /u02/ggs/dirdat/aa010415 2014-01-20 20:22 2014-01-20 20:22
- /u02/ggs/dirdat/aa010415 2014-01-20 20:22 2014-01-20 20:22
- /u02/ggs/dirdat/aa010415 2014-01-20 20:22 2014-01-20 20:22
- /u02/ggs/dirdat/aa010415 2014-01-20 20:22 2014-01-20 20:22
- /u02/ggs/dirdat/aa010415 2014-01-20 20:22 2014-01-20 20:22
- /u02/ggs/dirdat/aa010415 2014-01-20 20:22 2014-01-20 20:22
- /u02/ggs/dirdat/aa010415 2014-01-20 20:22 2014-01-20 20:22
- /u02/ggs/dirdat/aa010415 2014-01-20 20:22 2014-01-20 20:22
- /u02/ggs/dirdat/aa010415 2014-01-20 20:22 2014-01-20 20:22
- /u02/ggs/dirdat/aa010415 2014-01-20 20:22 2014-01-20 20:22
- /u02/ggs/dirdat/aa010415 2014-01-20 20:22 2014-01-20 20:22
- /u02/ggs/dirdat/aa010415 2014-01-20 20:22 2014-01-20 20:22
- /u02/ggs/dirdat/aa010415 2014-01-20 20:22 2014-01-20 20:22
- /u02/ggs/dirdat/aa010415 2014-01-20 20:22 2014-01-20 20:22
- /u02/ggs/dirdat/aa010415 2014-01-20 20:22 2014-01-20 20:22
- /u02/ggs/dirdat/aa010415 2014-01-20 20:22 2014-01-20 20:22
- /u02/ggs/dirdat/aa010415 2014-01-20 20:22 2014-01-20 20:22
- /u02/ggs/dirdat/aa010415 2014-01-20 20:22 2014-01-20 20:22
- /u02/ggs/dirdat/aa010415 2014-01-20 20:22 2014-01-20 20:22
- /u02/ggs/dirdat/aa010415 2014-01-20 20:22 2014-01-20 20:22
- /u02/ggs/dirdat/aa010415 2014-01-20 20:22 2014-01-20 20:22
- /u02/ggs/dirdat/aa010415 2014-01-20 20:22 2014-01-20 20:22
- /u02/ggs/dirdat/aa010415 2014-01-20 20:22 2014-01-20 20:22
- /u02/ggs/dirdat/aa010415 2014-01-20 20:22 2014-01-20 20:22
- /u02/ggs/dirdat/aa010415 2014-01-20 20:22 2014-01-20 20:22
- /u02/ggs/dirdat/aa010415 2014-01-03 18:59 2014-01-20 20:22
- /u02/ggs/dirdat/aa009782 2013-12-02 10:21 2014-01-03 18:59
- /u02/ggs/dirdat/aa008290 2013-12-02 10:21 2013-12-02 10:21
- /u02/ggs/dirdat/aa008290 2013-12-02 10:21 2013-12-02 10:21
- /u02/ggs/dirdat/aa008290 2013-12-02 10:21 2013-12-02 10:21
- /u02/ggs/dirdat/aa008290 2013-12-02 10:21 2013-12-02 10:21
- /u02/ggs/dirdat/aa008290 2013-10-26 07:26 2013-12-02 10:21
- /u02/ggs/dirdat/aa006549 2013-10-11 16:13 2013-10-26 07:26
- /u02/ggs/dirdat/aa005885 2013-08-18 17:36 2013-10-11 16:13
- /u02/ggs/dirdat/aa003826 2013-08-17 16:22 2013-08-18 17:36
- /u02/ggs/dirdat/aa003803 2013-06-28 17:53 2013-08-17 16:22
- /u02/ggs/dirdat/aa002302 2013-06-21 14:23 2013-06-28 17:53
- /u02/ggs/dirdat/aa002056 2013-06-17 21:51 2013-06-21 14:23
- /u02/ggs/dirdat/aa001918 2013-06-17 21:51 2013-06-17 21:51
- /u02/ggs/dirdat/aa001918 2013-06-17 21:51 2013-06-17 21:51
- /u02/ggs/dirdat/aa001918 2013-06-17 21:51 2013-06-17 21:51
- /u02/ggs/dirdat/aa001918 2013-06-17 21:51 2013-06-17 21:51
- /u02/ggs/dirdat/aa001918 2013-06-17 21:51 2013-06-17 21:51
- /u02/ggs/dirdat/aa001918 2013-06-17 21:51 2013-06-17 21:51
- Current directory /u02/ggs
- Report file /u02/ggs/dirrpt/DPAA.rpt
- Parameter file /u02/ggs/dirprm/dpaa.prm
- Checkpoint file /u02/ggs/dirchk/DPAA.cpe
- Process file /u02/ggs/dirpcs/DPAA.pce
- Stdout file /u02/ggs/dirout/DPAA.out
- Error log /u02/ggs/ggserr.log
- GGSCI (hosta) 5> stop dpaa
- Sending STOP request to EXTRACT DPAA ...
- Request processed.
- GGSCI (hosta) 6> alter rmttrail /u02/ggs/dirdat/aa, extract dpaa, megabytes 1
- RMTTRAIL altered.
- GGSCI (hosta) 7> info dpaa, detail
- EXTRACT DPAA Initialized 2014-07-25 17:30 Status STOPPED
- Checkpoint Lag 00:00:00 (updated 00:00:11 ago)
- Log Read Checkpoint File /u02/ggs/dirdat/aa019358
- 2014-08-01 14:12:34.000000 RBA 1397741
- Target Extract Trails:
- Remote Trail Name Seqno RBA Max MB
- /u02/ggs/dirdat/aa 5341 38129829 1 --->注意此处的1M,此时是改之后。
- Extract Source Begin End
- /u02/ggs/dirdat/aa019358 * Initialized * 2014-08-01 14:12
- /u02/ggs/dirdat/aa018965 2014-07-25 16:14 2014-07-25 16:37
- /u02/ggs/dirdat/aa018965 2014-07-25 12:20 2014-07-25 16:14
- /u02/ggs/dirdat/aa018960 2014-07-25 12:20 2014-07-25 12:20
- /u02/ggs/dirdat/aa018960 2014-07-25 12:20 2014-07-25 12:20
- /u02/ggs/dirdat/aa018960 2014-07-25 12:20 2014-07-25 12:20
- /u02/ggs/dirdat/aa018960 2014-07-25 12:20 2014-07-25 12:20
- /u02/ggs/dirdat/aa018960 2014-07-25 12:20 2014-07-25 12:20
- /u02/ggs/dirdat/aa018960 2014-07-25 12:20 2014-07-25 12:20
- /u02/ggs/dirdat/aa018960 2014-07-25 12:20 2014-07-25 12:20
- /u02/ggs/dirdat/aa018960 2014-07-04 18:17 2014-07-25 12:20
- /u02/ggs/dirdat/aa017864 2014-06-30 18:32 2014-07-04 18:17
- /u02/ggs/dirdat/aa017531 2014-06-06 10:01 2014-06-30 18:32
- /u02/ggs/dirdat/aa016295 2014-06-06 10:01 2014-06-06 10:01
- /u02/ggs/dirdat/aa016295 2014-06-06 10:01 2014-06-06 10:01
- /u02/ggs/dirdat/aa016295 2014-06-01 08:39 2014-06-06 10:01
- /u02/ggs/dirdat/aa016049 2014-05-02 10:06 2014-06-01 08:39
- /u02/ggs/dirdat/aa014617 2014-04-11 02:49 2014-05-02 10:06
- /u02/ggs/dirdat/aa013640 2014-03-29 09:01 2014-04-11 02:49
- /u02/ggs/dirdat/aa013090 2014-03-18 22:12 2014-03-29 09:01
- /u02/ggs/dirdat/aa012599 2014-01-20 20:22 2014-03-18 22:12
- /u02/ggs/dirdat/aa010415 2014-01-20 20:22 2014-01-20 20:22
- /u02/ggs/dirdat/aa010415 2014-01-20 20:22 2014-01-20 20:22
- /u02/ggs/dirdat/aa010415 2014-01-20 20:22 2014-01-20 20:22
- /u02/ggs/dirdat/aa010415 2014-01-20 20:22 2014-01-20 20:22
- /u02/ggs/dirdat/aa010415 2014-01-20 20:22 2014-01-20 20:22
- /u02/ggs/dirdat/aa010415 2014-01-20 20:22 2014-01-20 20:22
- /u02/ggs/dirdat/aa010415 2014-01-20 20:22 2014-01-20 20:22
- /u02/ggs/dirdat/aa010415 2014-01-20 20:22 2014-01-20 20:22
- /u02/ggs/dirdat/aa010415 2014-01-20 20:22 2014-01-20 20:22
- /u02/ggs/dirdat/aa010415 2014-01-20 20:22 2014-01-20 20:22
- /u02/ggs/dirdat/aa010415 2014-01-20 20:22 2014-01-20 20:22
- /u02/ggs/dirdat/aa010415 2014-01-20 20:22 2014-01-20 20:22
- /u02/ggs/dirdat/aa010415 2014-01-20 20:22 2014-01-20 20:22
- /u02/ggs/dirdat/aa010415 2014-01-20 20:22 2014-01-20 20:22
- /u02/ggs/dirdat/aa010415 2014-01-20 20:22 2014-01-20 20:22
- /u02/ggs/dirdat/aa010415 2014-01-20 20:22 2014-01-20 20:22
- /u02/ggs/dirdat/aa010415 2014-01-20 20:22 2014-01-20 20:22
- /u02/ggs/dirdat/aa010415 2014-01-20 20:22 2014-01-20 20:22
- /u02/ggs/dirdat/aa010415 2014-01-20 20:22 2014-01-20 20:22
- /u02/ggs/dirdat/aa010415 2014-01-20 20:22 2014-01-20 20:22
- /u02/ggs/dirdat/aa010415 2014-01-20 20:22 2014-01-20 20:22
- /u02/ggs/dirdat/aa010415 2014-01-20 20:22 2014-01-20 20:22
- /u02/ggs/dirdat/aa010415 2014-01-20 20:22 2014-01-20 20:22
- /u02/ggs/dirdat/aa010415 2014-01-20 20:22 2014-01-20 20:22
- /u02/ggs/dirdat/aa010415 2014-01-20 20:22 2014-01-20 20:22
- /u02/ggs/dirdat/aa010415 2014-01-20 20:22 2014-01-20 20:22
- /u02/ggs/dirdat/aa010415 2014-01-20 20:22 2014-01-20 20:22
- /u02/ggs/dirdat/aa010415 2014-01-20 20:22 2014-01-20 20:22
- /u02/ggs/dirdat/aa010415 2014-01-20 20:22 2014-01-20 20:22
- /u02/ggs/dirdat/aa010415 2014-01-20 20:22 2014-01-20 20:22
- /u02/ggs/dirdat/aa010415 2014-01-20 20:22 2014-01-20 20:22
- /u02/ggs/dirdat/aa010415 2014-01-20 20:22 2014-01-20 20:22
- /u02/ggs/dirdat/aa010415 2014-01-20 20:22 2014-01-20 20:22
- /u02/ggs/dirdat/aa010415 2014-01-20 20:22 2014-01-20 20:22
- /u02/ggs/dirdat/aa010415 2014-01-20 20:22 2014-01-20 20:22
- /u02/ggs/dirdat/aa010415 2014-01-20 20:22 2014-01-20 20:22
- /u02/ggs/dirdat/aa010415 2014-01-20 20:22 2014-01-20 20:22
- /u02/ggs/dirdat/aa010415 2014-01-20 20:22 2014-01-20 20:22
- /u02/ggs/dirdat/aa010415 2014-01-20 20:22 2014-01-20 20:22
- /u02/ggs/dirdat/aa010415 2014-01-20 20:22 2014-01-20 20:22
- /u02/ggs/dirdat/aa010415 2014-01-20 20:22 2014-01-20 20:22
- /u02/ggs/dirdat/aa010415 2014-01-20 20:22 2014-01-20 20:22
- /u02/ggs/dirdat/aa010415 2014-01-20 20:22 2014-01-20 20:22
- /u02/ggs/dirdat/aa010415 2014-01-20 20:22 2014-01-20 20:22
- /u02/ggs/dirdat/aa010415 2014-01-20 20:22 2014-01-20 20:22
- /u02/ggs/dirdat/aa010415 2014-01-20 20:22 2014-01-20 20:22
- /u02/ggs/dirdat/aa010415 2014-01-20 20:22 2014-01-20 20:22
- /u02/ggs/dirdat/aa010415 2014-01-20 20:22 2014-01-20 20:22
- /u02/ggs/dirdat/aa010415 2014-01-20 20:22 2014-01-20 20:22
- /u02/ggs/dirdat/aa010415 2014-01-20 20:22 2014-01-20 20:22
- /u02/ggs/dirdat/aa010415 2014-01-20 20:22 2014-01-20 20:22
- /u02/ggs/dirdat/aa010415 2014-01-20 20:22 2014-01-20 20:22
- /u02/ggs/dirdat/aa010415 2014-01-20 20:22 2014-01-20 20:22
- /u02/ggs/dirdat/aa010415 2014-01-20 20:22 2014-01-20 20:22
- /u02/ggs/dirdat/aa010415 2014-01-20 20:22 2014-01-20 20:22
- /u02/ggs/dirdat/aa010415 2014-01-20 20:22 2014-01-20 20:22
- /u02/ggs/dirdat/aa010415 2014-01-20 20:22 2014-01-20 20:22
- /u02/ggs/dirdat/aa010415 2014-01-20 20:22 2014-01-20 20:22
- /u02/ggs/dirdat/aa010415 2014-01-20 20:22 2014-01-20 20:22
- /u02/ggs/dirdat/aa010415 2014-01-20 20:22 2014-01-20 20:22
- /u02/ggs/dirdat/aa010415 2014-01-03 18:59 2014-01-20 20:22
- /u02/ggs/dirdat/aa009782 2013-12-02 10:21 2014-01-03 18:59
- /u02/ggs/dirdat/aa008290 2013-12-02 10:21 2013-12-02 10:21
- /u02/ggs/dirdat/aa008290 2013-12-02 10:21 2013-12-02 10:21
- /u02/ggs/dirdat/aa008290 2013-12-02 10:21 2013-12-02 10:21
- /u02/ggs/dirdat/aa008290 2013-12-02 10:21 2013-12-02 10:21
- /u02/ggs/dirdat/aa008290 2013-10-26 07:26 2013-12-02 10:21
- /u02/ggs/dirdat/aa006549 2013-10-11 16:13 2013-10-26 07:26
- /u02/ggs/dirdat/aa005885 2013-08-18 17:36 2013-10-11 16:13
- /u02/ggs/dirdat/aa003826 2013-08-17 16:22 2013-08-18 17:36
- /u02/ggs/dirdat/aa003803 2013-06-28 17:53 2013-08-17 16:22
- /u02/ggs/dirdat/aa002302 2013-06-21 14:23 2013-06-28 17:53
- /u02/ggs/dirdat/aa002056 2013-06-17 21:51 2013-06-21 14:23
- /u02/ggs/dirdat/aa001918 2013-06-17 21:51 2013-06-17 21:51
- /u02/ggs/dirdat/aa001918 2013-06-17 21:51 2013-06-17 21:51
- /u02/ggs/dirdat/aa001918 2013-06-17 21:51 2013-06-17 21:51
- /u02/ggs/dirdat/aa001918 2013-06-17 21:51 2013-06-17 21:51
- /u02/ggs/dirdat/aa001918 2013-06-17 21:51 2013-06-17 21:51
- /u02/ggs/dirdat/aa001918 2013-06-17 21:51 2013-06-17 21:51
- Current directory /u02/ggs
- Report file /u02/ggs/dirrpt/DPAA.rpt
- Parameter file /u02/ggs/dirprm/dpaa.prm
- Checkpoint file /u02/ggs/dirchk/DPAA.cpe
- Process file /u02/ggs/dirpcs/DPAA.pce
- Stdout file /u02/ggs/dirout/DPAA.out
- Error log /u02/ggs/ggserr.log
- GGSCI (hosta) 8> info dpaa,showch
- EXTRACT DPAA Initialized 2014-07-25 17:30 Status STOPPED
- Checkpoint Lag 00:00:00 (updated 00:00:24 ago)
- Log Read Checkpoint File /u02/ggs/dirdat/aa019358
- 2014-08-01 14:12:34.000000 RBA 1397741
- Current Checkpoint Detail:
- Read Checkpoint #1
- GGS Log Trail
- Startup Checkpoint (starting position in the data source):
- Sequence #: 18965
- RBA: 36113095
- Timestamp: 2014-07-25 16:37:28.000000
- Extract Trail: /u02/ggs/dirdat/aa
- Current Checkpoint (position of last record read in the data source):
- Sequence #: 19358
- RBA: 1397741
- Timestamp: 2014-08-01 14:12:34.000000
- Extract Trail: /u02/ggs/dirdat/aa
- Write Checkpoint #1
- GGS Log Trail
- Current Checkpoint (current write position):
- Sequence #: 5341
- RBA: 38129829
- Timestamp: 2014-08-01 14:12:51.485592
- Extract Trail: /u02/ggs/dirdat/aa
- Header:
- Version = 2
- Record Source = U
- 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 = 2014-07-25 17:30:55
- Last Update Time = 2014-08-01 14:12:45
- Stop Status = G
- Last Result = 400
- GGSCI (hosta) 9> start dpaa
- Sending START request to MANAGER ...
- EXTRACT DPAA starting
- GGSCI (hosta) 10> exit
之后,在目的端上,trail文件生成如下:
[oracle@hostb dirdat]$ ls -lrt
total 95832
-rw-rw-rw- 1 oracle oinstall 49999851 Aug 1 12:41 aa005340
-rw-rw-rw- 1 oracle oinstall 38129829 Aug 1 14:16 aa005341
-rw-rw-rw- 1 oracle oinstall 999951 Aug 1 14:16 aa005342
-rw-rw-rw- 1 oracle oinstall 999046 Aug 1 14:18 aa005343
-rw-rw-rw- 1 oracle oinstall 998338 Aug 1 14:19 aa005344
-rw-rw-rw- 1 oracle oinstall 999930 Aug 1 14:20 aa005345
-rw-rw-rw- 1 oracle oinstall 998526 Aug 1 14:22 aa005346
-rw-rw-rw- 1 oracle oinstall 999772 Aug 1 14:23 aa005347
之后,在源头上,tail -f MGR.rpt
2014-08-01 14:20:51 INFO OGG-00957 Purged old extract file /u02/ggs/dirdat/aa005341, applying UseCheckPoints purge rule: Oldest Chkpt Seqno 5347 > 5341.
2014-08-01 14:20:51 INFO OGG-00957 Purged old extract file /u02/ggs/dirdat/aa005342, applying UseCheckPoints purge rule: Oldest Chkpt Seqno 5347 > 5342.
2014-08-01 14:20:51 INFO OGG-00957 Purged old extract file /u02/ggs/dirdat/aa005343, applying UseCheckPoints purge rule: Oldest Chkpt Seqno 5347 > 5343.
2014-08-01 14:20:51 INFO OGG-00957 Purged old extract file /u02/ggs/dirdat/aa005344, applying UseCheckPoints purge rule: Oldest Chkpt Seqno 5347 > 5344.
2014-08-01 14:20:51 INFO OGG-00957 Purged old extract file /u02/ggs/dirdat/aa005345, applying UseCheckPoints purge rule: Oldest Chkpt Seqno 5347 > 5345.
2014-08-01 14:20:51 INFO OGG-00957 Purged old extract file /u02/ggs/dirdat/aa005346, applying UseCheckPoints purge rule: Oldest Chkpt Seqno 5347 > 5346.
也许有人有疑问:在目的端上aa005346文件的最后写入时间是Aug 1 14:22,而看MGR.rpt,
2014-08-01 14:20:51 INFO OGG-00957 Purged old extract file /u02/ggs/dirdat/aa005346
这是因为,目的端的os时间比北京时间快而已。
修改目的端trail文件的最大大小--转载的更多相关文章
- 使用rest方式修改服务端xml文件
想法: 最近想用REST的方式去修改一个远端的xml文件,于是自己写了个Handler 设计: 用现成的XPath,和GET,POST,PUT,DELETE这4个http方法作为动作,达到直接读写xm ...
- ogg trail文件序列号不一致
一.Cause 在某些情况下,对于一个已经running的OGG进程,对已同步的数据(正确的同步或者错误的同步)做修改,修改完之后,需要保持一个一致点,从一致点继续同步. 这时需要人工干涉产生一个新的 ...
- php文件上传大小限制的修改方法大全
php文件上传大小限制的修改方法大全 基本就是修改maxsize选项,当然为了提高上传文件的成功率,还需要设置超时时间等. 文章如下: [php文件上传]php文件上传大小限制修改,phpmyadmi ...
- IIS限制ASP.Net 文件上传大小解决方案,修改IIS7/7.5配置
当在web.config中设置了 httpruntime 后还是无法成功上传大文件,则要修改IIS的系统config IIS 7 默认文件上传大小是30M 要突破这个限制: 修改IIS的applica ...
- drupal7 修改文件上传大小限制
参考文章:Drupal 7 设置上传文件的限制大小 自己用 '#type' => 'managed_file'做了一个上传的功能,但是上传时总是说超过了2M的限制,接下来说一下怎么修改限制. 一 ...
- linux查找某段时间修改的文件的总大小
1.统计 2017-10-25 16:30:00 至 2017-10-25 19:30:00 修改的文件的总大小 b= for i in `find -type f \( -newermt '2017 ...
- IIS 之 通过 Web.config 修改文件上传大小限制设置方法
在IIS 6.0中,不设置默认大小为4M,设置文件上传大小的方法,maxRequestLength(KB),executionTimeout(毫秒),配置如下节点: <system.web> ...
- IIS文件上传大小修改配置说明
原因:Web 服务器上的请求筛选被配置为拒绝该请求,因为内容长度超过配置的值(IIS 7 默认文件上传大小时30M). 解决:IIS7更改asp.net文件上传大小限制 步骤如下: 1. 修改I ...
- 修改 IIS 默认文件上传大小
IIS 7 默认文件上传大小是30M 要突破这个限制: 修改IIS的applicationhost.config 打开 c:/windows/system32/inetsrv/config/appli ...
随机推荐
- RBM阅读笔记
RBM包含两个层,可见层(visble layer)和隐藏层(hidden layer).神经元之间的连接具有以下特点:层内无连接,层间全连接.RBM可以看做是一个二分图(神经元当做顶点,神经元之间的 ...
- Python 中的map和reduce学习笔记
map和reduce都是Python中的内置函数 map函数接受两个参数,第一个参数是函数,第二个参数是列表,将函数依次作用于列表中的元素,并返回一个元素 reduce同样以函数和列表作为参数,区别在 ...
- eclipse创建maven web项目
eclipse创建maven web项目: 1.安装eclipse maven插件 2.新建maven project选择webapp模板. 3.改造为maven文档结构. 4.添加项目的JAVAEE ...
- Socket实现粗略的Android聊天功能
面试时写过,但是很乱,今天看到代码库里有一个,还是很规范的,贴出来. 主要用到俩类,一个是ServerSocket.class 一个是Socket.class. 记得要加权限: <uses-p ...
- ImageLoader框架的使用、调用系统相册显示图片并裁剪显示、保存图片的两种方式
ImageLoader虽然说是一个相对于比较老的一个框架了 ,但是总的来说,还是比较好用的,今天我就总结了一下它的用法.还有调用系统相册并裁剪,以及,通过sharedpreference和文件存储来保 ...
- Android Studio Eclipse Code Formatter
在从Eclipse转到Android Studio上开发后,如果还想继续使用在Eclipse上制定的自定义的Code Formatter的话,需要按如下步骤操作:1.进入Settings界面,如果能看 ...
- Codeforces Round #170 (Div. 2)
A. Circle Line 考虑环上的最短距离. B. New Problem \(n\) 个串建后缀自动机. 找的时候bfs一下即可. C. Learning Languages 并查集维护可以沟 ...
- BSD License
BSD开源协议(original BSD license.FreeBSD license.Original BSD license) BSD开源协议是一个给于使用者很大自由的协议.基本上使用者可以”为 ...
- VS2008编译bat
工程文件为AirCode,批处理文件为bulit.bat(与*.sln文件在同级目录). 以下是批处理的代码: echo %~dp0 rem set build_config="Debug| ...
- JTree使用
package JTree; import java.awt.Component; import javax.swing.Icon; import javax.swing.JTree; import ...