Goldengate 维护

1.查看ogg整体运行情况:

GGSCI (cwogg) 5> info all

Program     Status      Group       Lag at Chkpt  Time Since Chkpt

MANAGER     RUNNING

JAGENT      RUNNING

EXTRACT     RUNNING     EXT1        00:00:00      00:00:10

2.查看参数设置:

GGSCI (cwogg) 6> view params ext1

extract ext1

setenv (NLS_LANG=AMERICAN_AMERICA.AL32UTF8)

userid ogg,password ogg

rmthost 172.16.30.226, mgrport 7500

rmttrail /u01/ogg/dirdat/ht

TRANLOGOPTIONS DBLOGREADER

ddl include mapped objname scott.*;

table scott.*;

3.查看进程状态:

GGSCI (cwogg) 7> info mgr

Manager is running (IP port cwogg.7500).

GGSCI (cwogg) 8> info ext1

EXTRACT    EXT1      Last Started 2015-10-28 11:22   Status RUNNING

Checkpoint Lag       00:00:00 (updated 00:00:06 ago)

Log Read Checkpoint  Oracle Redo Logs

2015-10-28 14:31:10  Seqno 414, RBA 12156528

SCN 0.6356648 (6356648)

更加详细:

GGSCI (cwogg) 12> info ext1 detail

EXTRACT    EXT1      Last Started 2015-10-28 11:22   Status RUNNING

Checkpoint Lag       00:00:00 (updated 00:00:07 ago)

Log Read Checkpoint  Oracle Redo Logs

2015-10-28 14:32:03  Seqno 414, RBA 12290560

SCN 0.6356711 (6356711)

Target Extract Trails:

Remote Trail Name                                Seqno        RBA     Max MB

/u01/ogg/dirdat/lt                                   0          0        100

/u01/ogg/dirdat/ht                                  11    8692218        100

Extract Source                          Begin             End

+DATA/phub/onlinelog/group_3.267.890480947  2015-10-28 11:21  2015-10-28 14:32

+DATA/phub/onlinelog/group_2.265.890480945  2015-10-28 11:02  2015-10-28 11:21

+DATA/phub/onlinelog/group_2.265.890480945  2015-10-27 15:38  2015-10-28 11:03

+DATA/phub/onlinelog/group_1.263.890480945  2015-10-27 15:34  2015-10-27 15:38

+DATA/phub/onlinelog/group_1.263.890480945  2015-10-27 14:49  2015-10-27 15:35

+DATA/phub/onlinelog/group_1.263.890480945  2015-10-27 14:47  2015-10-27 14:49

+DATA/phub/onlinelog/group_1.263.890480945  2015-10-27 13:43  2015-10-27 14:48

+DATA/phub/onlinelog/group_3.267.890480947  2015-10-27 11:52  2015-10-27 13:44

+DATA/phub/onlinelog/group_3.267.890480947  * Initialized *   2015-10-27 11:52

Not Available                           * Initialized *   2015-10-27 11:52

Current directory    /u01/ogg

Report file          /u01/ogg/dirrpt/EXT1.rpt

Parameter file       /u01/ogg/dirprm/ext1.prm

Checkpoint file      /u01/ogg/dirchk/EXT1.cpe

Process file         /u01/ogg/dirpcs/EXT1.pce

Stdout file          /u01/ogg/dirout/EXT1.out

Error log            /u01/ogg/ggserr.log

GGSCI (cwogg) 13> info ext1 showch

EXTRACT    EXT1      Last Started 2015-10-28 11:22   Status RUNNING

Checkpoint Lag       00:00:00 (updated 00:00:05 ago)

Log Read Checkpoint  Oracle Redo Logs

2015-10-28 14:33:08  Seqno 414, RBA 12382720

SCN 0.6356783 (6356783)

Current Checkpoint Detail:

Read Checkpoint #1

Oracle Redo Log

Startup Checkpoint (starting position in the data source):

Thread #: 1

Sequence #: 410

RBA: 20734480

Timestamp: 2015-10-28 11:21:46.000000

SCN: 0.6337061 (6337061)

Redo File: +DATA/phub/onlinelog/group_2.265.890480945

Recovery Checkpoint (position of oldest unprocessed transaction in the data source):

Thread #: 1

Sequence #: 414

RBA: 12370448

Timestamp: 2015-10-28 14:32:45.000000

SCN: 0.6356762 (6356762)

Redo File: +DATA/phub/onlinelog/group_3.267.890480947

Current Checkpoint (position of last record read in the data source):

Thread #: 1

Sequence #: 414

RBA: 12382720

Timestamp: 2015-10-28 14:33:08.000000

SCN: 0.6356783 (6356783)

Redo File: +DATA/phub/onlinelog/group_3.267.890480947

BR Previous Recovery Checkpoint:

Thread #: 0

Sequence #: 0

RBA: 0

Timestamp: 2015-10-27 15:38:52.178490

SCN: Not available

Redo File:

BR Begin Recovery Checkpoint:

Thread #: 1

Sequence #: 409

RBA: 32126576

Timestamp: 2015-10-28 07:39:05.000000

SCN: 0.6313190 (6313190)

Redo File:

BR End Recovery Checkpoint:

Thread #: 1

Sequence #: 409

RBA: 32126576

Timestamp: 2015-10-28 07:39:05.000000

SCN: 0.6313190 (6313190)

Redo File:

Write Checkpoint #1

GGS Log Trail

Current Checkpoint (current write position):

Sequence #: 0

RBA: 0

Timestamp: 2015-10-27 11:53:28.434500

Extract Trail: /u01/ogg/dirdat/lt

Write Checkpoint #2

GGS Log Trail

Current Checkpoint (current write position):

Sequence #: 11

RBA: 8692218

Timestamp: 2015-10-28 14:33:11.839262

Extract Trail: /u01/ogg/dirdat/ht

CSN state information:

CRC: 66-20-55-66

Latest CSN: 6356132

Latest TXN: 6.1.4109

Latest CSN of finished TXNs: 6356132

Completed TXNs: 6.1.4109

Header:

Version = 2

Record Source = A

Type = 10

# Input Checkpoints = 1

# Output Checkpoints = 2

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 = 2015-10-28 11:22:13

Last Update Time = 2015-10-28 14:33:11

Stop Status = A

Last Result = 400

4.查看延时:

GGSCI (cwogg) 14> lag ext1

Sending GETLAG request to EXTRACT EXT1 ...

Last record lag: 33 seconds.

At EOF, no more records to process.

5.查看统计信息:

GGSCI (cwogg) 27> stats ext1 total

Sending STATS request to EXTRACT EXT1 ...

Start of Statistics at 2015-10-28 15:15:19.

DDL replication statistics (for all trails):

*** Total statistics since extract started     ***

Operations                           3.00

Mapped operations                   3.00

Unmapped operations                   0.00

Other operations                   0.00

Excluded operations                   0.00

Output to /u01/ogg/dirdat/ht:

Extracting from SCOTT.TEST to SCOTT.TEST:

*** Total statistics since 2015-10-28 12:12:32 ***

Total inserts                       1307130.00

Total updates                           336.00

Total deletes                            99.00

Total discards                             0.00

Total operations                     1307565.00

Extracting from OGG.GGS_MARKER to OGG.GGS_MARKER:

*** Total statistics since 2015-10-28 12:12:32 ***

No database operations have been performed.

End of Statistics

时间: 2024-10-05 23:05:26

Goldengate 维护的相关文章

oracle goldengate维护

1.配置源端具有pump.目标端具有trail的ogg环境1.1 参数文件extract进程ett参数:EXTRACT ett USERID system, PASSWORD oracle EXTTRAIL ./dirdat/tr TABLE gguser.huangliqiang , WHERE (ID = 100) ; data pump进程dpp参数:EXTRACT dpp USERID system, PASSWORD oracle RMTHOST 192.168.1.29, MGRPO

Oracle数据库集群容灾实施与维护(RAC+DataGuard+GoldenGate)培训教程

套餐介绍: 风哥Oracle数据库集群容灾(RAC+DataGuard+GoldenGate)实施与维护培训教程套餐)包括内容: Oracle12c DataGuard容灾实施与维护1+1, Linux系统Oracle RAC 12C安装实施与维护, Oracle11gR2 RAC下DataGuard容灾实施与维护2+1, Linux系统Oracle RAC 11gR2安装与维护, Linux系统上安装Oracle12c数据库, Linux上安装Oracle11g数据库, Linux系统安装Or

Oracle Goldengate数据库复制与容灾项目实施与维护_OGG实战培训

Oracle Goldengate数据库复制与容灾项目实施与维护_OGG实战培训 课程介绍 Oracle视频教程,风哥本套oracle教程培训学习oracle数据库GoldenGate数据复制与容灾项目实施,涉及goldengate版本:OGG 11.2.OGG 12:GoldenGate概念讲解,GoldenGate数据复制与容灾项目实施3个(文件系统1+1,ASM 1+1,RAC*2+FS*1),常用的初始化方式,Goldengate基础功能操作与测试,GoldenGate日常维护与管理,G

2.goldengate日常维护命令(转载)

goldengate日常维护命令 发表于 2013 年 7 月 4 日 由 Asysdba 1.查看进程状态 GGSCI (PONY) 2> info all 2.查看进程详细状态,有助于排错 GGSCI (PONY) 2> view report +进程名称 3.查看告警日志信息 GGSCI (PONY) 2> view ggsevt 4. 查看延时,以及文件抽取应用情况 GGSCI> lag <进程名称> 可以查看详细的延时信息. 例如: GGSCI (db4) 1

goldengate日常维护命令

1.查看进程状态 GGSCI (PONY) 2> info all 2.查看进程详细状态,有助于排错GGSCI (PONY) 2> view report +进程名称 3.查看告警日志信息GGSCI (PONY) 2> view ggsevt 4. 查看延时,以及文件抽取应用情况GGSCI> lag <进程名称> 可以查看详细的延时信息.例如:GGSCI (db4) 11> lag rep1Sending GETLAG request to REPLICAT RE

Oracle GoldenGate同步服务归档空间维护

ORA-00257: archiver error. Connect internal only, until freed 查看归档日志序列 SQL> archive log list; Automatic archival Enabled #自动归档 Archive destination USE_DB_RECOVERY_FILE_DEST #归档目录为指定的闪回恢复区 Oldest online log sequence 174 #最旧的在线日志序列 Next log sequence to

GoldenGate实施步骤

一.GoldenGate实施环境 source database:oracle 11.2.0.3 target  database:oracle 11.2.0.3 需要配置的进程如下: source database:extract.data pump target database:replicat 说明如下: 1.主提取进程首先将trail生成在本地,然后datapump读取本地trail再发送到目标服务器,即便网络故障,主提取进程仍然能随着事务生成trail文件,而datapump则会暂时

GoldenGate 应用系统升级

(仅复制DML时)源端和目标端数据库增减复制表 增加复制表 在GoldenGate的进程参数中,如果通过*来匹配所有表,因此只要符合*所匹配的条件,那么只要在源端建立了表之后GoldenGate就能自动复制,无需修改配置文件,但是需要为新增的表添加附加日志. 步骤如下: GGSCI 〉dblogin userid goldengate, password XXXXXXX GGSCI > info trandata <schema>.<table name> 如果不是enabl

Goldengate参数规范

1.    文档综述 1.1.  文档说明 本文档规定了在实施Goldengate时,各个进程需要配置的参数. 该参数模板适合于Goldengate11.2.1.0版本: **注:本文档为Goldengate实施规范系列文档内容之一.在Goldengate的实施过程中,需要严格遵循系列实施规范. **注:无主键,大事务,这些都是OGG支持有问题的,需要进行应用调整,否则即使按照规范执行,某些情况下也会出现问题. **注:本文档不涉及任何调优参数,如需使用性能调优参数需咨询oracle后谨慎使用.