GoldenGate的基本操作

1.查看帮助

 help, help add exttrail

 

2.显示当前的GoldenGate环境信息

 show

 

3.查看运行状态

  info all, info mgr, info extract einikk

 

4.启动和停止服务

  start mgr,stop mgr

  start extract einikk,stop extract einikk

  start replicat rinikk,stop replicat rinikk

 

   如果不能停止的话,

   killi extract einikk

 

5.历史命令

  history

 

6.使用OBEY(自动运行一个文件)

  1. Create and save a text file that contains the commands, one command per line. This is
your OBEY file. Name it what you want.
2. In GGSCI, call the OBEY file by using the following syntax.
OBEY <file name>


gdora@testdb11 ggs]$ cat /home/gdora/ggs/yzhq.txt
status manager
status mgr
[gdora@testdb11 ggs]$


GGSCI (testdb11.zhyhl.com) 1> obey yzhq.txt

GGSCI (testdb11.zhyhl.com) 2> status manager


Manager is running (IP port testdb11.zhyhl.com.7809).


GGSCI (testdb11.zhyhl.com) 3> status mgr


Manager is running (IP port testdb11.zhyhl.com.7809).


GGSCI (testdb11.zhyhl.com) 4>

 

  7.使用shell脚本
   Using UNIX batch and shell scripts
On a UNIX system, you can issue GoldenGate commands from a script such as a startup
script, shutdown script, or failover script by running GGSCI and calling an input file. Use
the following syntax:

ggsci < <input_file>


[gdora@testdb11 ggs]$ ggsci < yzhq.txt

GoldenGate Command Interpreter for Oracle
Version 10.4.0.12 Build 001
Linux, x86, 32bit (optimized), Oracle 10 on Aug 21 2009 14:34:04

Copyright (C) GoldenGate Software, Inc. 1995-2009.
The GoldenGate software may include other code written by third parties;
details regarding such third party code, including applicable copyright,
legal and licensing notices are available at http://support.goldengate.com.



GGSCI (testdb11.zhyhl.com) 1>
Manager is running (IP port testdb11.zhyhl.com.7809).


GGSCI (testdb11.zhyhl.com) 2>
Manager is running (IP port testdb11.zhyhl.com.7809).


GGSCI (testdb11.zhyhl.com) 3> [gdora@testdb11 ggs]$
[gdora@testdb11 ggs]$

 

8.修改参数文件

  edit params <group name>

 

9.参数文件存放的目录

  Storing parameter files<完整路径>

 

10.参数的使用规则和注释

   ---注释

 

11.参数文件内的语法

   <PARAMETER> <argument> [, <option>] [&]
 

12.查看参数文件的内容

  view params mgr

 

13.查看报告

  view report einikk

 

14.查看操作的统计信息

  STATS {EXTRACT | REPLICAT} <group>

  stats er*

 

15.info er*

 

16.查看GoldenGate的错误日志内容

  VIEW GGSEVT Contents

 

17. Deleting a process group

  delete einikk

 

 

 

 

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值