修改目的端trail文件的最大大小

本文为原创,转载请注明出处:

修改目的端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文件生成如下:

[[email protected] 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文件的最大大小

时间: 2024-10-04 11:17:11

修改目的端trail文件的最大大小的相关文章

IIS修改文件上传大小限制

修改文件上传大小限制 --IIS小知识 Web项目部署到IIS服务器上后,有时 在页面上传文件时,莫名失败 上传不上去,这是因为 IIS服务器有限制 一般不建议web端做大文件上传处理,受很多因素影响,可能文件会有损坏,如果实在需要做大文件上传,建议使用客户端 利用断点续传,保证文件的完整性. 下面教大家修改IIS服务器的文件上传大小限制: 如图:打开 '请求筛选'功能 点击'编辑功能设置-' 会弹出 编辑请求筛选框,可以看到请求限制区有个'允许的最大内容长度(字节)(C)' 这里就是限制文件的

查找出/tmp目录下面修改时间是7天以前,大小在50k到2M之间,并以.log结尾的文件

查找出/tmp目录下面修改时间是7天以前,大小在50k到2M之间,并以.log结尾的文件. 答:生成环境 [[email protected] tmp]# date -s "20170501" Mon May  1 00:00:00 CST 2017 [[email protected] tmp]# dd if=/dev/zero of=1.log bs=60KB count=1 1+0 records in 1+0 records out 60000 bytes (60 kB) co

linux+nginx+mysql+php系统修改文件上传大小限制

linux+nginx+mysql+php系统修改文件上传大小限制 对于LNMP框架的一些网站,上传文件大小会受到多个方面的限制,一个是nginx本身的限制,限制了客户端上传文件的大小,会报错"413 Request Entity Too Large":一个是php.ini文件中默认了多个地方的设置. 1.  在php.ini中,做如下修改:① file_uploads = On默认允许HTTP文件上传,此选项必须设置为On.② upload_tmp_dir =默认为空③ upload

Android jni aes加解密,实现文件的加解密,具体实现可以自行修改,上面的代码为简单介绍,下面的是JNI端实现文件加解密,可以修改为字符串加解密

#include "aes.h" #include "modes.h" #include "e_os2.h" #include "aes_locl.h" #include "opensslconf.h" AES_KEY aes; //aes cbc模式加解密用到的向量 unsigned char iv[AES_BLOCK_SIZE]; for (i = 0; i < AES_BLOCK_SIZE; i

IIS文件上传大小修改配置说明

原因:Web 服务器上的请求筛选被配置为拒绝该请求,因为内容长度超过配置的值(IIS 7 默认文件上传大小时30M). 解决:IIS7更改asp.net文件上传大小限制 步骤如下: 1.    修改IIS7的applicationhost.config配置 位置: C:\Windows\System32\inetsrv\config\applicationhost.config 找到<requestFiltering>节点,该节点下默认没有 <requestLimits maxAllow

phpmyadmin修改文件上传大小限制

1.修改php.ini中post_max_size,upload_max_filesize大小,假设增加到8M就是 post_max_size = 8M upload_max_filesize = 8M 其中 post_max_size >= upload_max_filesize 2.如果是nginx系统,修改完后上传文件还是会报nginx:413 Request Entity Too Large 需要修改配置文件http中client_max_body_size 8m;如果没有就加上 3.重

php.ini修改 表单提交大小限制 和 文件上传大小限制配置

表单提交大小限制 文件上传大小限制

通过Java WebService接口从服务端下载文件

一. 前言 本文讲述如何通过webservice接口,从服务端下载文件.报告到客户端.适用于跨系统间的文件交互,传输文件不大的情况(控制在几百M以内).对于这种情况搭建一个FTP环境,增加了系统部署的复杂度和系统对外暴露的接口.通过在服务端读取文件,返回字节流到客户端的方式比较简单. 下面采用restful的接口形式,满足SOA架构接口要求.如下代码拷贝到eclipse中即可运行,功能自测试运行正常.样例代码的服务端和客户端在同一台PC上运行,放到不同PC上运行改一下发布服务和请求服务的IP地址

推测Oracle GoldenGate(OGG)目的端 rep进程Checkpoint Lag的计算方法

本文为原创,转载请注明出处. 推测Oracle GoldenGate(OGG)OGG目的端 rep进程Checkpoint Lag的计算方法 背景介绍:如下是OGG目的端的rep进程的显示,当时,OGG源头的传输进程由于网络拥堵的原因,导致传输速度急剧下降,降低为1.5M/分钟.此时,源头已经积压了很多trail file. 也就是说,目的端的rep进程处于"吃不饱"的状态--传输进程的传输速度赶不上rep进程的应用速度. GGSCI (hostb) 5> info repb i