goldengate針對目的端數據庫啓停的操作

針對目的端數據庫數據文件換盤操作,goldengate操作如下:

GGSCI (mktdb1) 1> info all

Program     Status      Group       Lag           Time Since Chkpt

MANAGER     RUNNING                                           
EXTRACT     RUNNING     DPEMKHC     00:00:02      00:00:08    
EXTRACT     RUNNING     EXTMKHC     00:00:00      00:00:06    


GGSCI (mktdb1) 2> info EXTMKHC,showch

EXTRACT    EXTMKHC   Last Started 2012-08-31 11:04   Status RUNNING
Checkpoint Lag       00:00:00 (updated 00:00:09 ago)
Log Read Checkpoint  Oracle Redo Logs
                     2012-08-31 11:44:13  Seqno 370326, RBA 143012352


Current Checkpoint Detail:

Read Checkpoint #1

  Oracle Redo Log

  Startup Checkpoint (starting position in the data source):
    Sequence #: 370276
    RBA: 4361744
    Timestamp: 2012-08-31 08:33:54.000000
    Redo File: /oracle/oradata/u2/archive/1_370276_579660705.dbf

  Recovery Checkpoint (position of oldest unprocessed transaction in the data source):
    Sequence #: 370325
    RBA: 295927824
    Timestamp: 2012-08-31 11:33:53.000000
    Redo File: Not Avaliable

  Current Checkpoint (position of last record read in the data source):
    Sequence #: 370326
    RBA: 143012352
    Timestamp: 2012-08-31 11:44:13.000000
    Redo File: /oracle/oradata1/u1/mktdb/log31.ora

  BR Previous Recovery Checkpoint:
    Sequence #: 0
    RBA: 0
    Timestamp: 2012-08-25 00:04:27.049605
    Redo File:

  BR Begin Recovery Checkpoint:
    Sequence #: 370261
    RBA: 49396240
    Timestamp: 2012-08-31 07:34:00.000000
    Redo File:

  BR End Recovery Checkpoint:
    Sequence #: 370266
    RBA: 198313472
    Timestamp: 2012-08-31 08:08:23.000000
    Redo File:

Write Checkpoint #1

  GGS Log Trail

  Current Checkpoint (current write position):
    Sequence #: 1552
    RBA: 79045447
    Timestamp: 2012-08-31 11:44:15.321501
    Extract Trail: ./dirdat/hc

Header:
  Version = 2
  Record Source = A
  Type = 4
  # Input Checkpoints = 1
  # Output Checkpoints = 1

File Information:
  Block Size = 2048
  Max Blocks = 100
  Record Length = 2048
  Current Offset = 0

Configuration:
  Data Source = 3
  Transaction Integrity = 1
  Task Type = 0

Status:
  Start Time = 2012-08-31 11:04:53
  Last Update Time = 2012-08-31 11:44:15
  Stop Status = A
  Last Result = 400



GGSCI (mktdb1) 3>

查看Recovery Checkpoint 對應的 Sequence #: 370325,然後到歸檔目錄看是否存在序列號爲370325的歸檔,如果有,可以停goldengate,

停goldengate操作順序如下:

源端:

GGSCI (mktdb1) 4> stop DPEMKHC
GGSCI (mktdb1) 4> stop EXTMKHC

目標端:
GGSCI (localhost.localdomain) 72> stop rep *
GGSCI (localhost.localdomain) 72> stop mgr

目標端數據庫起來後,goldengate操作如下:

目標端:
GGSCI (localhost.localdomain) 72> start mgr

源端:
GGSCI (mktdb1) 4> start EXTMKHC
GGSCI (mktdb1) 4> start DPEMKHC

目標端:
GGSCI (localhost.localdomain) 72> start rep *  

查看源及目標端進程狀態是否正常,如有問題,根據相關問題進行解決。

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章