Sunteți pe pagina 1din 15

[oracle@Finite gg11g]$ .

/ggsci
Oracle GoldenGate Command Interpreter for Oracle

Version 11.2.1.0.3 14400833 OGGCORE_11.2.1.0.3_PLATFORMS_120823.1258_FBO

Linux, x64, 64bit (optimized), Oracle 11g on Aug 23 2012 20:20:21

Copyright (C) 1995, 2012, Oracle and/or its affiliates. All rights reserved.

GGSCI (Finite.localdomain) 1> help


GGSCI Command Summary:

Object: Command:

SUBDIRS CREATE

ER INFO, KILL, LAG, SEND, STATUS, START, STATS, STOP

EXTRACT ADD, ALTER, CLEANUP, DELETE, INFO, KILL,

LAG, REGISTER, SEND, START, STATS, STATUS, STOP

UNREGISTER

EXTTRAIL ADD, ALTER, DELETE, INFO

GGSEVT VIEW

MANAGER INFO, SEND, START, STOP, STATUS

MARKER INFO

PARAMS EDIT, VIEW

REPLICAT ADD, ALTER, CLEANUP, DELETE, INFO, KILL, LAG, SEND,

START, STATS, STATUS, STOP

REPORT VIEW

RMTTRAIL ADD, ALTER, DELETE, INFO

TRACETABLE ADD, DELETE, INFO

TRANDATA ADD, DELETE, INFO

SCHEMATRANDATA ADD, DELETE, INFO

CHECKPOINTTABLE ADD, DELETE, CLEANUP, INFO

Commands without an object:

(Database) DBLOGIN, LIST TABLES, ENCRYPT PASSWORD, FLUSH SEQUENCE

MININGDBLOGIN

(DDL) DUMPDDL

(Miscellaneous) FC, HELP, HISTORY, INFO ALL, OBEY, SET EDITOR, SHELL,

SHOW, VERSIONS, ! (note: you must type the word

COMMAND after the ! to display the ! help topic.)

i.e.: GGSCI (sys1)> help ! command

For help on a specific command, type HELP <command> <object>.

Example: HELP ADD REPLICAT

GGSCI (Finite.localdomain) 2> CREATE SUBDIRS


Creating subdirectories under current directory /u001/app/gg11g

Parameter files /u001/app/gg11g/dirprm: already exists


Report files /u001/app/gg11g/dirrpt: created

Checkpoint files /u001/app/gg11g/dirchk: created

Process status files /u001/app/gg11g/dirpcs: created

SQL script files /u001/app/gg11g/dirsql: created

Database definitions files /u001/app/gg11g/dirdef: created

Extract data files /u001/app/gg11g/dirdat: created

Temporary files /u001/app/gg11g/dirtmp: created

Stdout files /u001/app/gg11g/dirout: created

GGSCI (Finite.localdomain) 3> info all


Program Status Group Lag at Chkpt Time Since Chkpt

MANAGER STOPPED

GGSCI (Finite.localdomain) 4> exit


[oracle@Finite gg11g]$ ls -l | wc -l
91

[oracle@Finite ~]$ sqlplus / as sysdba


SQL*Plus: Release 11.2.0.2.0 Production on Fri Mar 3 00:46:15 2017

Copyright (c) 1982, 2010, Oracle. All rights reserved.

Connected to an idle instance.

SQL> startup
ORACLE instance started.

Total System Global Area 1269366784 bytes

Fixed Size 2226112 bytes

Variable Size 855640128 bytes

Database Buffers 402653184 bytes

Redo Buffers 8847360 bytes

Database mounted.

Database opened.

SQL> SELECT NAME, OPEN_MODE FROM V$DATABASE;


NAME OPEN_MODE

--------- --------------------

FINITE READ WRITE

SQL> CREATE TABLESPACE admindpt


DATAFILE '/u002/oradata/Finite/admin01.dbf' SIZE 500K
AUTOEXTEND ON NEXT 512K MAXSIZE 30G;
Tablespace created.

SQL> CREATE USER SOURCE IDENTIFIED BY source DEFAULT TABLESPACE ADMINDPT;


User created.

SQL> GRANT CONNECT, RESOURCE, DBA TO SOURCE;


Grant succeeded.
SQL> SELECT SUPPLEMENTAL_LOG_DATA_MIN FROM V$DATABASE;
SUPPLEME

--------

NO

SQL> ALTER DATABASE ADD SUPPLEMENTAL LOG DATA;


Database altered.

SQL> SELECT SUPPLEMENTAL_LOG_DATA_MIN FROM V$DATABASE;


SUPPLEME

--------

YES

GGSCI (Finite.localdomain) 1> DBLOGIN USERID source, PASSWORD source


Successfully logged into database.

GGSCI (Finite.localdomain) 5> edit params mgr


PORT 7809
GGSCI (Finite.localdomain) 6> info all
Program Status Group Lag at Chkpt Time Since Chkpt

MANAGER STOPPED

GGSCI (Finite.localdomain) 7> start mgr


Manager started.

GGSCI (Finite.localdomain) 8> info all


Program Status Group Lag at Chkpt Time Since Chkpt

MANAGER RUNNING

GGSCI (Finite.localdomain) 9> info mgr


Manager is running (IP port Finite.localdomain.7809).

GGSCI (Finite.localdomain) 12> exit


[oracle@Finite gg11g]$ cd dirprm
[oracle@Finite dirprm]$ ls l
-rwxr-x--- 1 oracle oinstall 53 Aug 24 2012 jagent.prm

-rw-rw-rw- 1 oracle oinstall 10 Mar 3 01:43 mgr.prm

[oracle@Finite gg11g]$ exit

SQL> SELECT SUPPLEMENTAL_LOG_DATA_MIN FROM V$DATABASE;


SUPPLEME
--------
NO
SQL> ALTER DATABASE ADD SUPPLEMENTAL LOG DATA;
Database altered.

SQL> SELECT SUPPLEMENTAL_LOG_DATA_MIN FROM V$DATABASE;


SUPPLEME
--------
YES
[oracle@Finite gg11g]$ ./ggsci
Oracle GoldenGate Command Interpreter for Oracle

Version 11.2.1.0.3 14400833 OGGCORE_11.2.1.0.3_PLATFORMS_120823.1258_FBO

Linux, x64, 64bit (optimized), Oracle 11g on Aug 23 2012 20:20:21

Copyright (C) 1995, 2012, Oracle and/or its affiliates. All rights reserved.

GGSCI (Finite.localdomain) 1> help TRANDATA


ERROR: Invalid command for TRANDATA: expected ADD, INFO, or DELETE.

GGSCI (Finite.localdomain) 2> INFO TRANDATA SCOTT.*


ERROR: Not logged into database, use DBLOGIN.

GGSCI (Finite.localdomain) 3> DBLOGIN USERID SOURCE, PASSWORD source


Successfully logged into database.

GGSCI (Finite.localdomain) 4> INFO TRANDATA SCOTT.*


Logging of supplemental redo log data is disabled for table SCOTT.BONUS.

Logging of supplemental redo log data is disabled for table SCOTT.DEPT.

Logging of supplemental redo log data is disabled for table SCOTT.EMP.

Logging of supplemental redo log data is disabled for table SCOTT.SALGRADE.

GGSCI (Finite.localdomain) 5> ADD TRANDATA SCOTT.*


2017-03-03 14:59:23 WARNING OGG-00869 No unique key is defined for table 'BONUS'. All viable columns
will be used to represent the key, but may not guarantee uniqueness. KEYCOLS may be used to define the
key.

Logging of supplemental redo data enabled for table SCOTT.BONUS.

Logging of supplemental redo data enabled for table SCOTT.DEPT.

Logging of supplemental redo data enabled for table SCOTT.EMP.

2017-03-03 14:59:23 WARNING OGG-00869 No unique key is defined for table 'SALGRADE'. All viable
columns will be used to represent the key, but may not guarantee uniqueness. KEYCOLS may be used to
define the key.

Logging of supplemental redo data enabled for table SCOTT.SALGRADE.

GGSCI (Finite.localdomain) 7> INFO TRANDATA SCOTT.*


Logging of supplemental redo log data is enabled for table SCOTT.BONUS.

Columns supplementally logged for table SCOTT.BONUS: ENAME, JOB, SAL, COMM.

Logging of supplemental redo log data is enabled for table SCOTT.DEPT.

Columns supplementally logged for table SCOTT.DEPT: DEPTNO.

Logging of supplemental redo log data is enabled for table SCOTT.EMP.

Columns supplementally logged for table SCOTT.EMP: EMPNO.

Logging of supplemental redo log data is enabled for table SCOTT.SALGRADE.

Columns supplementally logged for table SCOTT.SALGRADE: GRADE, LOSAL, HISAL.

GGSCI (Finite.localdomain) 8> INFO ALL


Program Status Group Lag at Chkpt Time Since Chkpt

MANAGER RUNNING

GGSCI (Finite.localdomain) 9> ADD EXTRACT EXTFINOL, TRANLOG, BEGIN NOW


EXTRACT added.

GGSCI (Finite.localdomain) 10> INFO ALL


Program Status Group Lag at Chkpt Time Since Chkpt

MANAGER RUNNING

EXTRACT STOPPED EXTFINOL 00:00:00 00:00:11

GGSCI (Finite.localdomain) 11> INFO EXTFINOL


EXTRACT EXTFINOL Initialized 2017-03-03 15:04 Status STOPPED

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

Log Read Checkpoint Oracle Redo Logs

2017-03-03 15:04:11 Seqno 0, RBA 0

SCN 0.0 (0)

GGSCI (Finite.localdomain) 4> info rmttrail *

GGSCI (Finite.localdomain) 5> ADD RMTTRAIL ./dirdat/tr, EXTRACT EXTFINOL

RMTTRAIL added.

GGSCI (Finite.localdomain) 6> info rmttrail *

Extract Trail: ./dirdat/tr

Extract: EXTFINOL

Seqno: 0

RBA: 0

File Size: 100M

GGSCI (Finite.localdomain) 8> edit params extfinol

GGSCI (Finite.localdomain) 9> view params extfinol

EXTRACT extfinol

SETENV (ORACLE_SID="FINITE")

SETENV (ORACLE_HOME="/u001/app/oracle/product/11.2.0.2/db_1")

SETENV (NLS_LANG="AMERICAN_AMERICA.AL32UTF8")

USERID source@FINITE, PASSWORD source

RMTHOST OLE564.localdomain, MGRPORT 7809

RMTTRAIL ./dirdat/tr

Table scott.emp;

Table scott.dept;

GGSCI (Finite.localdomain) 7> info all

Program Status Group Lag at Chkpt Time Since Chkpt

MANAGER RUNNING

EXTRACT STOPPED EXTFINOL 00:00:00 01:36:13

GGSCI (Finite.localdomain) 8> edit params extfinol

GGSCI (Finite.localdomain) 9> start extfinol


Sending START request to MANAGER ...

EXTRACT EXTFINOL starting

GGSCI (Finite.localdomain) 10> info all

Program Status Group Lag at Chkpt Time Since Chkpt

MANAGER RUNNING

EXTRACT RUNNING EXTFINOL 00:00:00 01:40:04

GGSCI (Finite.localdomain) 11> info all

Program Status Group Lag at Chkpt Time Since Chkpt

MANAGER RUNNING

EXTRACT RUNNING EXTFINOL 00:00:00 00:00:00

SQL> select count(*) from emp;

COUNT(*)

----------

14

SQL> insert into emp(empno, ename) values(&empno, '&empname');

Enter value for empno: 1111

Enter value for empname: aaaa

old 1: insert into emp(empno, ename) values(&empno, '&empname')

new 1: insert into emp(empno, ename) values(1111, 'aaaa')

1 row created.

SQL> /

Enter value for empno: 2222

Enter value for empname: bbbb

old 1: insert into emp(empno, ename) values(&empno, '&empname')

new 1: insert into emp(empno, ename) values(2222, 'bbbb')

1 row created.

SQL> commit;

SQL> select count(*) from emp;

COUNT(*)

----------

16

[oracle@OLE564 gg11g]$ cd dirdat

[oracle@OLE564 dirdat]$ ls -l

total 4

-rw-rw-rw- 1 oracle oinstall 1486 Mar 3 16:53 tr000000

SQL> insert into emp(empno, ename) values(&empno, '&empname');


Enter value for empno: 3333
Enter value for empname: cccc
old 1: insert into emp(empno, ename) values(&empno, '&empname')
new 1: insert into emp(empno, ename) values(3333, 'cccc')
1 row created.
SQL> /
Enter value for empno: 4444
Enter value for empname: dddd
old 1: insert into emp(empno, ename) values(&empno, '&empname')
new 1: insert into emp(empno, ename) values(4444, 'dddd')
1 row created.
SQL> commit;
Commit complete.
[oracle@OLE564 dirdat]$ ls -l
total 4
-rw-rw-rw- 1 oracle oinstall 1916 Mar 3 16:58 tr000000
[oracle@OLE564 dirdat]$
SQL> conn sys/as sysdba
Enter password:
Connected.
SQL> SELECT CURRENT_SCN FROM V$DATABASE;
CURRENT_SCN
-----------
2009956
SQL> CREATE DIRECTORY DPDIR AS '/backup/export/Finite';
Directory created.
SQL> grant read, write on directory DPDIR to scott;
expdp scott/tiger dumpfile=DPDIR:scott.dmp logfile=DPDIR:scott.log
schemas=scott flashback_scn=2009956
SQL> insert into emp(empno, ename) values(&empno, '&empname')
Enter value for empno: 7777
Enter value for empname: ffff
old 1: insert into emp(empno, ename) values(&empno, '&empname')
new 1: insert into emp(empno, ename) values(7777, 'ffff')
1 row created.
SQL> /
Enter value for empno: 8888
Enter value for empname: gggg
old 1: insert into emp(empno, ename) values(&empno, '&empname')
new 1: insert into emp(empno, ename) values(8888, 'gggg')
1 row created.
SQL> /
Enter value for empno: 9999
Enter value for empname: hhhh
old 1: insert into emp(empno, ename) values(&empno, '&empname')
new 1: insert into emp(empno, ename) values(9999, 'hhhh')
1 row created.
SQL> select count(*) from emp;
COUNT(*)
----------
23
SQL> commit;
Commit complete.

[oracle@OLE564 ~]$ cd /u001/app


[oracle@OLE564 app]$ mkdir gg11g
[oracle@OLE564 app]$ cd gg11g/
[oracle@OLE564 gg11g]$ tar -xvf
/backup/software/fbo_ggs_Linux_x64_ora11g_64bit.tar
[oracle@OLE564 gg11g]$ pwd
/u001/app/gg11g

[oracle@OLE564 gg11g]$ cd ~
[oracle@OLE564 ~]$ vi .bash_profile
GG_HOME=/u001/app/gg11g; export GG_HOME
PATH=$ORACLE_HOME/bin:/usr/sbin:$PATH:$GG_HOME; export PATH
LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib:$GG_HOME;
[oracle@OLE564 ~]$ cd $GG_HOME
[oracle@OLE564 gg11g]$ ls -l| wc -l
83

[oracle@OLE564 gg11g]$ ./ggsci


Oracle GoldenGate Command Interpreter for Oracle

Version 11.2.1.0.3 14400833 OGGCORE_11.2.1.0.3_PLATFORMS_120823.1258_FBO

Linux, x64, 64bit (optimized), Oracle 11g on Aug 23 2012 20:20:21

Copyright (C) 1995, 2012, Oracle and/or its affiliates. All rights reserved.

GGSCI (OLE564.localdomain) 1> info all


Program Status Group Lag at Chkpt Time Since Chkpt

MANAGER STOPPED

GGSCI (OLE564.localdomain) 2> CREATE SUBDIRS


Creating subdirectories under current directory /u001/app/gg11g

Parameter files /u001/app/gg11g/dirprm: already exists

Report files /u001/app/gg11g/dirrpt: created

Checkpoint files /u001/app/gg11g/dirchk: created

Process status files /u001/app/gg11g/dirpcs: created

SQL script files /u001/app/gg11g/dirsql: created

Database definitions files /u001/app/gg11g/dirdef: created

Extract data files /u001/app/gg11g/dirdat: created

Temporary files /u001/app/gg11g/dirtmp: created

Stdout files /u001/app/gg11g/dirout: created

GGSCI (OLE564.localdomain) 2> EXIT


[oracle@OLE564 gg11g]$ ls -l| wc -l
91

[oracle@OLE564 ~]$ sqlplus / as sysdba


SQL*Plus: Release 11.2.0.4.0 Production on Fri Mar 3 01:02:52 2017

Copyright (c) 1982, 2013, Oracle. All rights reserved.

Connected to an idle instance.

SQL> startup
ORACLE instance started.

Total System Global Area 1653518336 bytes

Fixed Size 2253784 bytes

Variable Size 1006636072 bytes

Database Buffers 637534208 bytes

Redo Buffers 7094272 bytes

Database mounted.

Database opened.

SQL> SELECT NAME, OPEN_MODE FROM V$DATABASE;


NAME OPEN_MODE

--------- --------------------

FINITE READ WRITE

SQL> CREATE TABLESPACE admindpt


DATAFILE '/u002/oradata/OLE564/admin01.dbf' SIZE 500K
AUTOEXTEND ON NEXT 512K MAXSIZE 30G;
Tablespace created.

SQL> CREATE USER TARGET IDENTIFIED BY target DEFAULT TABLESPACE ADMINDPT;


User created.

SQL> GRANT CONNECT, RESOURCE, DBA TO TARGET;


Grant succeeded.

GGSCI (OLE564.localdomain) 1> DBLOGIN USERID target, PASSWORD target


Successfully logged into database.

GGSCI (OLE564.localdomain) 6> EDIT PARAMS MGR


PORT 7809

GGSCI (OLE564.localdomain) 7> info mgr


Manager is DOWN!

GGSCI (OLE564.localdomain) 8> start mgr


Manager started.

GGSCI (OLE564.localdomain) 9> info mgr


Manager is running (IP port OLE564.localdomain.7809).

GGSCI (OLE564.localdomain) 10> exit


[oracle@OLE564 gg11g]$ cd dirprm
[oracle@OLE564 dirprm]$ ls -l
total 12

-rwxr-x--- 1 oracle oinstall 53 Aug 24 2012 jagent.prm

-rw-rw-rw- 1 oracle oinstall 10 Mar 3 01:47 mgr.prm

GGSCI (OLE564.localdomain) 7> edit params ./GLOBALS

GGSCI (OLE564.localdomain) 8> view params ./GLOBALS

checkpointtable target.fcheckpointtable

GGSCI (OLE564.localdomain) 9> exit

[oracle@OLE564 gg11g]$ ls lrt

-rw-rw-rw- 1 oracle oinstall 40 Mar 3 14:46 GLOBALS

[oracle@OLE564 gg11g]$ ./ggsci

Oracle GoldenGate Command Interpreter for Oracle

Version 11.2.1.0.3 14400833 OGGCORE_11.2.1.0.3_PLATFORMS_120823.1258_FBO

Linux, x64, 64bit (optimized), Oracle 11g on Aug 23 2012 20:20:21

Copyright (C) 1995, 2012, Oracle and/or its affiliates. All rights reserved.

GGSCI (OLE564.localdomain) 1> dblogin userid target, password target


Successfully logged into database.

GGSCI (OLE564.localdomain) 2> help

GGSCI (OLE564.localdomain) 3> ADD CHECKPOINTTABLE

No checkpoint table specified, using GLOBALS specification (target.fcheckpointtable)...

Successfully created checkpoint table target.fcheckpointtable.

[oracle@OLE564 ~]$ sqlplus

SQL*Plus: Release 11.2.0.4.0 Production on Fri Mar 3 14:52:32 2017

Copyright (c) 1982, 2013, Oracle. All rights reserved.

Enter user-name: target

Enter password:

Connected to:

Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production

With the Partitioning option

SQL> select * from tab;

TNAME TABTYPE CLUSTERID

------------------------------ ------- ----------

FCHECKPOINTTABLE TABLE

FCHECKPOINTTABLE_LOX TABLE

[oracle@OLE564 gg11g]$ ./ggsci

Oracle GoldenGate Command Interpreter for Oracle

Version 11.2.1.0.3 14400833 OGGCORE_11.2.1.0.3_PLATFORMS_120823.1258_FBO

Linux, x64, 64bit (optimized), Oracle 11g on Aug 23 2012 20:20:21

Copyright (C) 1995, 2012, Oracle and/or its affiliates. All rights reserved.

GGSCI (OLE564.localdomain) 1> dblogin userid target, password target

Successfully logged into database.

GGSCI (OLE564.localdomain) 2> info all

Program Status Group Lag at Chkpt Time Since Chkpt

MANAGER RUNNING

GGSCI (OLE564.localdomain) 3> ADD REPLICAT REPFINOL, EXTTRAIL ./dirdat/tr

REPLICAT added.

GGSCI (OLE564.localdomain) 4> info all

Program Status Group Lag at Chkpt Time Since Chkpt

MANAGER RUNNING
REPLICAT STOPPED REPFINOL 00:00:00 00:00:05

GGSCI (OLE564.localdomain) 5> edit params repfinol

GGSCI (OLE564.localdomain) 6> view params repfinol

REPLICAT repfinol

SETENV (ORACLE_HOME="/u001/app/oracle/product/11.2.0/db_2")

SETENV (ORACLE_SID="ole564")

SETENV (NLS_LANG=AMERICAN_AMERICA.AL32UTF8)

userid target, password target

discardfile ./discard/rep_discard_repfinol.txt, append, megabytes 10

ASSUMETARGETDEFS

MAP scott.dept, target scott.dept;

MAP scott.emp, target scott.emp;

SQL> SELECT NAME FROM V$DATABASE;

NAME

---------

OLE564

SQL> CREATE DIRECTORY DPDIR AS '/backup/export/OLE564';

Directory created.

SQL> grant read, write on directory DPDIR to scott;

Grant succeeded.

GGSCI (OLE564.localdomain) 11> info all

Program Status Group Lag at Chkpt Time Since Chkpt

MANAGER RUNNING

REPLICAT STOPPED REPFINOL 00:00:00 02:46:38

GGSCI (OLE564.localdomain) 12> start replicat repfinol

Sending START request to MANAGER ...

REPLICAT REPFINOL starting

GGSCI (OLE564.localdomain) 13> info all

Program Status Group Lag at Chkpt Time Since Chkpt

MANAGER RUNNING

REPLICAT STOPPED REPFINOL 00:00:00 02:47:40

GGSCI (OLE564.localdomain) 14> start replicat repfinol, ATCSN 2009956

Sending START request to MANAGER ...

REPLICAT REPFINOL starting

GGSCI (OLE564.localdomain) 15> info all

Program Status Group Lag at Chkpt Time Since Chkpt

MANAGER RUNNING

REPLICAT STOPPED REPFINOL 00:00:00 02:48:34

GGSCI (OLE564.localdomain) 16> stop mgr

Manager process is required by other GGS processes.

Are you sure you want to stop it (y/n)? y


Sending STOP request to MANAGER ...

Request processed.

Manager stopped.

GGSCI (OLE564.localdomain) 17> info all

Program Status Group Lag at Chkpt Time Since Chkpt

MANAGER STOPPED

REPLICAT STOPPED REPFINOL 00:00:00 02:49:09

GGSCI (OLE564.localdomain) 18> start mgr

Manager started.

GGSCI (OLE564.localdomain) 19> info all

Program Status Group Lag at Chkpt Time Since Chkpt

MANAGER RUNNING

REPLICAT STOPPED REPFINOL 00:00:00 02:49:24

GGSCI (OLE564.localdomain) 20> info all

Program Status Group Lag at Chkpt Time Since Chkpt

MANAGER RUNNING

REPLICAT STOPPED REPFINOL 00:00:00 02:49:31

GGSCI (OLE564.localdomain) 21> edit params repfinol

GGSCI (OLE564.localdomain) 22> info all

Program Status Group Lag at Chkpt Time Since Chkpt

MANAGER RUNNING

REPLICAT STOPPED REPFINOL 00:00:00 03:05:47

[oracle@OLE564 gg11g]$ cat ggserr.log

identified as UTF-8. Locale: en_US, LC_ALL:.

2017-03-03 18:46:55 ERROR OGG-01091 Oracle GoldenGate Delivery for Oracle, repfinol.prm: Unable to
open file "./discard/rep_discard_repfinol.txt" (error 2, No such file or directory).

[oracle@OLE564 gg11g]$ mkdir discard

GGSCI (OLE564.localdomain) 23> start repfinol

Sending START request to MANAGER ...

REPLICAT REPFINOL starting

GGSCI (OLE564.localdomain) 24> info all

Program Status Group Lag at Chkpt Time Since Chkpt

MANAGER RUNNING

REPLICAT ABENDED REPFINOL 00:00:00 03:06:00

GGSCI (OLE564.localdomain) 25> start replicat repfinol, ATCSN 2009956

Sending START request to MANAGER ...

REPLICAT REPFINOL starting

GGSCI (OLE564.localdomain) 26> info all

Program Status Group Lag at Chkpt Time Since Chkpt

MANAGER RUNNING

REPLICAT RUNNING REPFINOL 01:34:56 00:00:04


GGSCI (OLE564.localdomain) 27> info all

Program Status Group Lag at Chkpt Time Since Chkpt

MANAGER RUNNING

REPLICAT RUNNING REPFINOL 00:00:00 00:00:03

GGSCI (OLE564.localdomain) 28> info all

Program Status Group Lag at Chkpt Time Since Chkpt

MANAGER RUNNING

REPLICAT RUNNING REPFINOL 00:00:00 00:00:00

[oracle@OLE564 gg11g]$ cat ggserr.log

2017-03-03 19:06:02 INFO OGG-00987 Oracle GoldenGate Command Interpreter for Oracle: GGSCI
command (oracle): start repfinol.

2017-03-03 19:06:02 INFO OGG-00963 Oracle GoldenGate Manager for Oracle, mgr.prm: Command
received from GGSCI on host OLE564.localdomain:56384 (START REPLICAT REPFINOL ).

2017-03-03 19:06:02 INFO OGG-00975 Oracle GoldenGate Manager for Oracle, mgr.prm: REPLICAT
REPFINOL starting.

2017-03-03 19:06:02 INFO OGG-00995 Oracle GoldenGate Delivery for Oracle, repfinol.prm: REPLICAT
REPFINOL starting.

2017-03-03 19:06:02 INFO OGG-03035 Oracle GoldenGate Delivery for Oracle, repfinol.prm: Operating
system character set identified as UTF-8. Locale: en_US, LC_ALL:.

2017-03-03 19:06:02 INFO OGG-01815 Oracle GoldenGate Delivery for Oracle, repfinol.prm: Virtual
Memory Facilities for: COM

anon alloc: mmap(MAP_ANON) anon free: munmap

file alloc: mmap(MAP_SHARED) file free: munmap

target directories:

/u001/app/gg11g/dirtmp.

2017-03-03 19:06:02 INFO OGG-00996 Oracle GoldenGate Delivery for Oracle, repfinol.prm: REPLICAT
REPFINOL started.

2017-03-03 19:06:04 WARNING OGG-00869 Oracle GoldenGate Delivery for Oracle, repfinol.prm: OCI Error
ORA-00001: unique constraint (SCOTT.PK_EMP) violated (status = 1). INSERT INTO "SCOTT"."EMP"
("EMPNO","ENAME","JOB","MGR","HIREDATE","SAL","COMM","DEPTNO") VALUES
(:a0,:a1,:a2,:a3,:a4,:a5,:a6,:a7).

2017-03-03 19:06:04 WARNING OGG-01004 Oracle GoldenGate Delivery for Oracle, repfinol.prm: Aborted
grouped transaction on 'SCOTT.EMP', Database error 1 (OCI Error ORA-00001: unique constraint
(SCOTT.PK_EMP) violated (status = 1). INSERT INTO "SCOTT"."EMP"
("EMPNO","ENAME","JOB","MGR","HIREDATE","SAL","COMM","DEPTNO") VALUES
(:a0,:a1,:a2,:a3,:a4,:a5,:a6,:a7)).

2017-03-03 19:06:04 WARNING OGG-01003 Oracle GoldenGate Delivery for Oracle, repfinol.prm:
Repositioning to rba 1056 in seqno 0.

2017-03-03 19:06:04 WARNING OGG-01154 Oracle GoldenGate Delivery for Oracle, repfinol.prm: SQL error
1 mapping SCOTT.EMP to SCOTT.EMP OCI Error ORA-00001: unique constraint (SCOTT.PK_EMP) violated (status
= 1). INSERT INTO "SCOTT"."EMP" ("EMPNO","ENAME","JOB","MGR","HIREDATE","SAL","COMM","DEPTNO") VALUES
(:a0,:a1,:a2,:a3,:a4,:a5,:a6,:a7).

2017-03-03 19:06:04 WARNING OGG-01003 Oracle GoldenGate Delivery for Oracle, repfinol.prm:
Repositioning to rba 1056 in seqno 0.

2017-03-03 19:06:04 ERROR OGG-01296 Oracle GoldenGate Delivery for Oracle, repfinol.prm: Error
mapping from SCOTT.EMP to SCOTT.EMP.

2017-03-03 19:06:04 ERROR OGG-01668 Oracle GoldenGate Delivery for Oracle, repfinol.prm: PROCESS
ABENDING.

GGSCI (OLE564.localdomain) 25> start replicat repfinol, ATCSN 2009956

Sending START request to MANAGER ...


REPLICAT REPFINOL starting

GGSCI (OLE564.localdomain) 26> info all

Program Status Group Lag at Chkpt Time Since Chkpt

MANAGER RUNNING

REPLICAT RUNNING REPFINOL 01:34:56 00:00:04

GGSCI (OLE564.localdomain) 27> info all

Program Status Group Lag at Chkpt Time Since Chkpt

MANAGER RUNNING

REPLICAT RUNNING REPFINOL 00:00:00 00:00:03

GGSCI (OLE564.localdomain) 28> info all

Program Status Group Lag at Chkpt Time Since Chkpt

MANAGER RUNNING

REPLICAT RUNNING REPFINOL 00:00:00 00:00:00

SQL> select count(*) from emp;

COUNT(*)

----------

20

SQL> /

COUNT(*)

----------

23