Ogg入门--基本命令

1.切换到oracle用户,进入到goldengate的安装目录。

2.查看进程的运行状况:

GGSCI (pxpaddb1) 1> info all

Program     Status      Group       Lag at Chkpt  Time Since Chkpt

MANAGER     RUNNING
EXTRACT     RUNNING     DPEXPAD     00:00:00      00:00:08
EXTRACT     RUNNING     DPEXPAD2    00:00:00      00:00:04    --投递进程
EXTRACT     RUNNING     EXTXPAD     00:00:02      00:00:09    --抽取进程
EXTRACT     RUNNING     EXTXPAD2    00:00:01      00:00:09
REPLICAT    RUNNING     REPRPT      00:00:00      00:00:04  

3.查看进程参数信息

GGSCI (pxpaddb1) 18> view params EXTXPAD    --view params group

Extract extxpad
USERID [email protected], PASSWORD goldengate
warnlongtrans 12h, checkinterval 10m
--tranlogoptions rawdeviceoffset 0
--TRANLOGOPTIONS CONVERTUCS2CLOBS
--THREADOPTIONS MAXCOMMITPROPAGATIONDELAY  3000 IOLATENCY 3000
--TranlogOptions ASMUSER [email protected], ASMPASSWORD Oracle123
TRANLOGOPTIONS DBLOGREADER

--tranlogoptions altarchivelogdest primary instance XPADDB1 /arch, altarchivelogdest instance XPADDB1 /arch, altarchivelogdes
t instance XPADDB2  /arch
--tranlogoptions altarchivedlogformat instance XPADDB1 %t_%s_%r.dbf
--tranlogoptions altarchivedlogformat instance XPADDB2 %t_%s_%r.dbf 

4.查看进程正在读取的文件

GGSCI (pxpaddb1) 21> info extract EXTXPAD,showch

EXTRACT    EXTXPAD   Last Started 2018-08-11 20:33   Status RUNNING
Checkpoint Lag       00:00:01 (updated 00:00:07 ago)
Process ID           27787578
Log Read Checkpoint  Oracle Redo Logs
                     2018-08-21 14:17:45  Thread 1, Seqno 51694, RBA 170517296
                     SCN 1415.2876303350 (6080255027190)
Log Read Checkpoint  Oracle Redo Logs
                     2018-08-21 14:17:46  Thread 2, Seqno 39994, RBA 532338192
                     SCN 1415.2876305473 (6080255029313)

Current Checkpoint Detail:

Read Checkpoint #1

  Oracle Threaded Redo Log

  Startup Checkpoint (starting position in the data source):
    Thread #: 1
    Sequence #: 49829
    RBA: 237193232
    Timestamp: 2018-08-11 19:58:38.000000
    SCN: 1415.2182025043 (6079560748883)
    Redo File: +XPADDG/xpadadg/onlinelog/group_1.480.929619589

  Recovery Checkpoint (position of oldest unprocessed transaction in the data source):
    Thread #: 1
    Sequence #: 51691
    RBA: 196478480
    Timestamp: 2018-08-21 14:00:32.000000
    SCN: 1415.2874644065 (6080253367905)
    Redo File: Not Available

  Current Checkpoint (position of last record read in the data source):
    Thread #: 1
    Sequence #: 51694
    RBA: 170517296
    Timestamp: 2018-08-21 14:17:45.000000
    SCN: 1415.2876303350 (6080255027190)
    Redo File: Not Available

  BR Previous Recovery Checkpoint:
    Thread #: 1
    Sequence #: 0
    RBA: 0
    Timestamp: 2018-08-11 20:33:42.479286
    SCN: Not available
    Redo File: 

  BR Begin Recovery Checkpoint:
    Thread #: 1
    Sequence #: 51677
    RBA: 201504784
    Timestamp: 2018-08-21 11:49:55.000000
    SCN: 1415.2867329996 (6080246053836)
    Redo File: 

  BR End Recovery Checkpoint:
    Thread #: 1
    Sequence #: 51687
    RBA: 40715468
    Timestamp: 2018-08-21 12:37:39.000000
    SCN: 1415.2870483139 (6080249206979)
    Redo File: 

Read Checkpoint #2

  Oracle Threaded Redo Log

  Startup Checkpoint (starting position in the data source):
    Thread #: 2
    Sequence #: 38987
    RBA: 12691984
    Timestamp: 2018-08-11 19:58:45.000000
    SCN: 1415.2182025469 (6079560749309)
    Redo File: +XPADDG/xpadadg/onlinelog/group_7.430.929619597

  Recovery Checkpoint (position of oldest unprocessed transaction in the data source):
    Thread #: 2
    Sequence #: 39908
    RBA: 237699088
    Timestamp: 2018-08-20 16:42:20.000000
    SCN: 1415.2804907070 (6080183630910)
    Redo File: Not Available

  Current Checkpoint (position of last record read in the data source):
    Thread #: 2
    Sequence #: 39994
    RBA: 532338192
    Timestamp: 2018-08-21 14:17:46.000000
    SCN: 1415.2876305473 (6080255029313)
    Redo File: +XPADDG/xpadadg/onlinelog/group_4.449.929619593

  BR Previous Recovery Checkpoint:
    Thread #: 2
    Sequence #: 0
    RBA: 0
    Timestamp: 2018-08-11 20:33:42.479286
    SCN: Not available
    Redo File: 

  BR Begin Recovery Checkpoint:
    Thread #: 2
    Sequence #: 39980
    RBA: 546082320
    Timestamp: 2018-08-21 10:53:04.000000
    SCN: 1415.2861763125 (6080240486965)
    Redo File: 

  BR End Recovery Checkpoint:
    Thread #: 2
    Sequence #: 39990
    RBA: 469438992
    Timestamp: 2018-08-21 12:37:40.000000
    SCN: 1415.2870483300 (6080249207140)
    Redo File: 

Write Checkpoint #1

  GGS Log Trail

  Current Checkpoint (current write position):
    Sequence #: 10386
    RBA: 129905207
    Timestamp: 2018-08-21 14:17:47.557203
    Extract Trail: ./dirdat/xp
    Seqno Length: 6
    Flip Seqno Length: No
    Trail Type: EXTTRAIL

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

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

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

Status:
  Start Time = 2018-08-11 20:33:44
  Last Update Time = 2018-08-21 14:17:47
  Stop Status = A
  Last Result = 0

GGSCI (pxpaddb1) 22> 

5.查看表上的事务统计信息

GSCI (pxpaddb1) 30> stats extract  EXTXPAD2,table xpad.XPADC_CORP_DEALLOG

Sending STATS request to EXTRACT EXTXPAD2 ...

Start of Statistics at 2018-08-21 15:24:13.

Output to ./dirdat/ek:

Extracting from XPAD.XPADC_CORP_DEALLOG to XPAD.XPADC_CORP_DEALLOG:

*** Total statistics since 2018-08-11 20:38:50 ***
        Total inserts                                   1076.00
        Total updates                                   6324.00
        Total deletes                                      0.00
        Total discards                                     0.00
        Total operations                                7400.00

*** Daily statistics since 2018-08-21 00:00:00 ***
        Total inserts                                    136.00
        Total updates                                    608.00
        Total deletes                                      0.00
        Total discards                                     0.00
        Total operations                                 744.00

*** Hourly statistics since 2018-08-21 15:00:00 ***
        Total inserts                                     17.00
        Total updates                                    141.00
        Total deletes                                      0.00
        Total discards                                     0.00
        Total operations                                 158.00

*** Latest statistics since 2018-08-21 15:23:46 ***
        Total inserts                                      0.00
        Total updates                                      9.00
        Total deletes                                      0.00
        Total discards                                     0.00
        Total operations                                   9.00

End of Statistics.

原文地址:https://www.cnblogs.com/dayu-liu/p/9521726.html

时间: 2024-10-04 04:18:12

Ogg入门--基本命令的相关文章

mysql 入门 基本命令

MYSQL入门学习之一:基本操作  1.登录数据库    www.2cto.com 命令:mysql -u username –p (mysql -h主机地址 -u用户名 -p用户密码) 描述:输入命令回车,即可输入密码了.密码验证通过即可进入数据库了. 2.查看数据状态 命令:show database; 描述:该命令会显示现存的所有数据库. 3.建立与删除数据库 命令:create database db; 描述:db可以替换为要建立数据库的名称. 命令:drop database db;

Linux入门- 基本命令 cd命令

今天简单介绍一下Linux常用的基本命令. (一)cd 命令 :进入磁盘的某个目录下[dir] 操作: cd [dir] 其中dir 可以是相对路径也可以绝对路径. 相对路径: cd logs/    #进入当前logs目录 cd ./logs/  #进入当前目录下的logs目录 cd ../logs/ #进入上一层目录下的logs目录 绝对路径: cd /home/logs/ #进入home下的logs目录 补充知识: ./ #表示当前目录 ../ #表示上一层目录 ../../ #表示向上两

Linux入门基本命令

man touch mkdir cp cd rm mv echo pwd cat alias unalias head tail tree rmdirxargs find awk sed grep vi vim seq man: an interface to the on-line reference manuals 在线参考手册界面 查看命令及配置文件 使用例子:[[email protected] ~]# man mantouch:新增一个文件再此目录下 使用例子: [[email pro

Docker容器入门-基本命令的使用

目前容器技术使用相当广泛 不会或者没有使用过容器感觉都不像是个搞技术的 所以,我也就docker相关内容做一个整理 只有不断的学习,才能保持自己的竞争力 什么是容器? 容器是一种轻量级.可移植.自包含的软件打包技术,使应用程序可以在几乎任何地方以相同的方式运行. 为什么使用容器? 容器使软件具备了超强的可移植能力 怎样使用容器? 容器常用的基本操作: docker stop\start\restart [container_id\container_name] // 停止.启动.重启容器 doc

vim 命令图解

vim 命令,vim是一个很好的编辑工具,下面为大家介绍一下vim入门基本命令. 方法/步骤 1 [vim 命令-启动vimtutor]:执行命令:vimtutor.vimtutor是vim使用入门教程.25到30分钟就可以入门. 2 [vim 命令-移动光标]: h 的鍵位于左邊,每次按下就會向左移動. l 的鍵位于右邊,每次按下就會向右移動. j 鍵看起來很象一支尖端方向朝下的箭頭. k朝上移动. 3 [vim 命令-启动和退出]: 1. 請按<ESC>鍵(這是為了確保您處在正常模式).

Linux入门第二天——基本命令入门(上)

一.常用命令介绍 常见命令可参考:http://man.linuxde.net/ 常用的快捷键:http://blog.csdn.net/avilifans/article/details/11847371 Tab: 单击补全,双击列出所有 ↑↓:历史命令翻阅 Ctrl+C:强制终止Ctrl+D:相当于输入exit,退出 Ctrl+L:清屏 Ctrl+A/E:移动光标到行首/尾 ...   常用帮助指令(学习Linux哪些复杂的选项都可以通过帮助进行查找:) http://blog.csdn.n

Linux的基础入门和基本命令

什么是shell?   shell 是一个命令语言解释器(command-language interpreter). 拥有自己内建的 shell 命令集.此外,shell也能被系统中其他有效的Linux 实用程序和应用程序(utilities and application programs)所调用. 不论何时你键入一个命令,它都被Linux shell所解释.一些命令,比如打印当前工作目录命令(pwd), 是包含在Linux bash内部的(就象DOS的内部命令).其他命令,比如拷贝命令(c

Linux中许多常用命令是必须掌握的,这里将我学linux入门时学的一些常用的基本命令分享给大家一下,希望可以帮助你们。

1.显示日期的指令: date   2.显示日历的指令:cal     3.简单好用的计算器:bc   怎么10/100会变成0呢?这是因为bc预设仅输出整数,如果要输出小数点下位数,那么就必须要执行 scale=number ,那个number就是小数点位数,例如:     4.重要的几个热键[Tab],[ctrl]-c, [ctrl]-d    [Tab]按键---具有『命令补全』不『档案补齐』的功能   [Ctrl]-c按键---让当前的程序『停掉』   [Ctrl]-d按键---通常代表

Redis入门——安装与基本命令

1. Redis安装 下载地址:https://github.com/MSOpenTech/redis/releases 下载zip文件后直接解压 2. 启动Redis服务端 解压目录下执行redis-server.exe redis.windows.conf,启动服务 3. 命令行连接redis服务端 解压目录下执行redis-cli.exe -h 127.0.0.1 -p 6379 4. Redis支持五种数据类型:string(字符串),hash(哈希),list(列表),set(集合)及