Saturday, September 30, 2023

Steps to reposition an oracle goldengate extract to a previous SCN

 

Steps to reposition an oracle goldengate extract to a previous SCN


Situation: 

There may be a situation in your DBA career when we play also the role of GG admin, where the application team missed a table from replication list or

the extract process cant be started at all for some reason when the initial seed was taken.

GG administration says the extract should be kicked before the initial seed is taken, you can setup the replicat at a later stage.

Reason... the replicat can use the extract files to perform the data sync even starting late, all we need is disk space to secure the extract files for the duration 

we arent kicking off the replicat.


But here, we arent even having extract setup. But then how we perform the replication?

We have our DB in Force Logging, Archivelog mode. We have all the archivelogs for the duration we need in disk and is accessible for the extract process to consume

and generate the extract files. So we are going to try using the same.


Initial SEED SCN: 459732

Steps Summary:


1. DB preperation

2. Add credentials

3. Setup Extract

4. Reposition the extract and start


Readings:

https://k21academy.com/oracle-goldengate-12c/goldengate-upgrade-classic-capture-to-integrated-capture/

https://docs.oracle.com/en/cloud/paas/goldengate-cloud/gwuad/restarting-primary-extract-system-failure-or-corruption.html

https://blogs.oracle.com/dataintegration/post/alter-integrated-extract-to-previous-scn


Actual Steps:


1. DB preperation for second setup of Golden Extract


Follow the below link for an idea on how to setup remote extract: 


https://oracledbaplanner.blogspot.com/2023/08/oracle-goldengate-setup-for-remote.html


There are 2 major steps in DB preperation for EXTRACT.

A. DB preperation overall for the extracts

B. Extract specific preperation such as user account


Here in our procedure we will have a seperate user managing the second extract.

To reduce the complexities, I have kept Database Vault in disabled state until the second extract is kicked off.

Note I still grant all the Database Vault related permissions to ggadmin2 user.


CREATE TABLESPACE GG_DATA2 DATAFILE '/oradata/GGSRC04T/gg_data2_01.dbf' SIZE 100M AUTOEXTEND ON NEXT 100M;

-- as dbv_owner user -- vault is disabled, so sys is good enough

CREATE USER ggadmin2 IDENTIFIED BY "ggadmin2" DEFAULT TABLESPACE GG_DATA2 TEMPORARY TABLESPACE TEMP;

grant connect to ggadmin2;

alter user ggadmin2 quota unlimited on GG_DATA2;

grant DV_GOLDENGATE_ADMIN to ggadmin2; -- this is needed otherwise OGG-08221 error will occur when you try start the GG extract


-- other permission as sys

GRANT ALTER SYSTEM TO ggadmin2;

GRANT DBA TO ggadmin2;

GRANT CREATE SESSION TO ggadmin2;

GRANT ALTER ANY TABLE TO ggadmin2;

GRANT RESOURCE TO ggadmin2;

EXEC DBMS_GOLDENGATE_AUTH.GRANT_ADMIN_PRIVILEGE('ggadmin2');


Actual output:

SQL> CREATE TABLESPACE GG_DATA2 DATAFILE '/oradata/GGSRC04T/gg_data2_01.dbf' SIZE 100M AUTOEXTEND ON NEXT 100M;

Tablespace created.


SQL> CREATE USER ggadmin2 IDENTIFIED BY "ggadmin2" DEFAULT TABLESPACE GG_DATA2 TEMPORARY TABLESPACE TEMP;

User created.


SQL> grant connect to ggadmin2;

Grant succeeded.


SQL> alter user ggadmin2 quota unlimited on GG_DATA2;


User altered.


SQL> grant DV_GOLDENGATE_ADMIN to ggadmin2;


Grant succeeded.


SQL> GRANT ALTER SYSTEM TO ggadmin2;

GRANT DBA TO ggadmin2;

GRANT CREATE SESSION TO ggadmin2;

GRANT ALTER ANY TABLE TO ggadmin2;

GRANT RESOURCE TO ggadmin2;

EXEC DBMS_GOLDENGATE_AUTH.GRANT_ADMIN_PRIVILEGE('ggadmin2');

Grant succeeded.


SQL>

Grant succeeded.


SQL>

Grant succeeded.


SQL>

Grant succeeded.


SQL>

Grant succeeded.


SQL>



PL/SQL procedure successfully completed.



2. Add credential for GG extract using cURL or admin client web UI (BUI)


adminclient:

alter credentialstore add user ggadmin@192.168.194.10:1521/ggsrc04t alias ggsrc04t  PASSWORD ggadmin;


but it will give invalid usn/psw error.


> BUI based action is complete and tested as well.


3. Setup the GG extract using admin client from GG machine (remote extract)


credetnial creation -> DB login -> necessary table setup -> Add Extract -> Add Extract Trail file -> Register the db

export OGG_HOME=/u01/app/oracle/product/21.3.0/ogg_home_1

export PATH=$PATH:$OGG_HOME/bin

adminclient

connect http://127.0.0.1:9011 deployment oggdep01 user ggsca password ggsca


DBLOGIN USERIDALIAS ggsrc04t_2

ADD SCHEMATRANDATA encvault_test

ADD HEARTBEATTABLE

ADD CHECKPOINTTABLE ggadmin2.ggs_checkpoint


add extract rxt4, TRANLOG, begin NOW

-- now add param file

cp /oggdata/oggdep01/etc/conf/ogg/rxt2.prm /oggdata/oggdep01/etc/conf/ogg/rxt4.prm

-- update the below settings properly

EXTRACT rxt4

USERIDALIAS ggsrc04t DOMAIN OracleGoldenGate

EXTTRAIL src/r4


[oracle@vcentos79-oracle-sa1 ~]$ cat /oggdata/oggdep01/etc/conf/ogg/rxt4.prm

EXTRACT rxt4

USERIDALIAS ggsrc04t_2 DOMAIN OracleGoldenGate

EXTTRAIL src/r4

DDL INCLUDE MAPPED

TABLE encvault_test.*;

[oracle@vcentos79-oracle-sa1 ~]$


ADD EXTTRAIL src/r4 EXTRACT rxt4

info extract rxt4 detail




exit

adminclient

connect http://127.0.0.1:9011 deployment oggdep01 user ggsca password ggsca


DBLOGIN USERIDALIAS ggsrc04t_2

register extract rxt4 database



Actual output:

[oracle@vcentos79-oracle-sa1 ~]$ export OGG_HOME=/u01/app/oracle/product/21.3.0/ogg_home_1

[oracle@vcentos79-oracle-sa1 ~]$ export PATH=$PATH:$OGG_HOME/bin

[oracle@vcentos79-oracle-sa1 ~]$ adminclient

Oracle GoldenGate Administration Client for Oracle

Version 21.3.0.0.0 OGGCORE_21.3.0.0.0_PLATFORMS_210728.1047


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


Oracle Linux 7, x64, 64bit (optimized) on Jul 28 2021 12:32:46

Operating system character set identified as UTF-8.


OGG (not connected) 1> connect http://127.0.0.1:9011 deployment oggdep01 user ggsca password ggsca


OGG (http://127.0.0.1:9011 oggdep01) 2> DBLOGIN USERIDALIAS ggsrc04t_2

Successfully logged into database.


OGG (http://127.0.0.1:9011 oggdep01 as ggsrc04t_2@GGSRC04T) 3> ADD SCHEMATRANDATA encvault_test

2023-09-30T18:56:34Z  INFO    OGG-01788  SCHEMATRANDATA has been added on schema "encvault_test".

2023-09-30T18:56:34Z  INFO    OGG-01976  SCHEMATRANDATA for scheduling columns has been added on schema "encvault_test".

2023-09-30T18:56:34Z  INFO    OGG-10154  Schema level PREPARECSN set to mode NOWAIT on schema "encvault_test"


OGG (http://127.0.0.1:9011 oggdep01 as ggsrc04t_2@GGSRC04T) 4> ADD HEARTBEATTABLE

2023-09-30T18:56:57Z  INFO    OGG-14101  Successfully added heartbeat table.


OGG (http://127.0.0.1:9011 oggdep01 as ggsrc04t_2@GGSRC04T) 5> ADD CHECKPOINTTABLE ggadmin2.ggs_checkpoint


OGG (http://127.0.0.1:9011 oggdep01 as ggsrc04t_2@GGSRC04T) 6> add extract rxt4, TRANLOG, begin NOW

2023-09-30T18:57:38Z  INFO    OGG-08100  Integrated Extract added.


OGG (http://127.0.0.1:9011 oggdep01 as ggsrc04t_2@GGSRC04T) 7> ADD EXTTRAIL src/r4 EXTRACT rxt4

2023-09-30T18:58:01Z  INFO    OGG-12029  The item type file with name 'RXT4.prm' does not exist.


OGG (http://127.0.0.1:9011 oggdep01 as ggsrc04t_2@GGSRC04T) 8> ADD EXTTRAIL src/r4 EXTRACT rxt4


2023-09-30T18:59:16Z  ERROR   OGG-08107  TARGETEXTTRAIL already exists.


OGG (http://127.0.0.1:9011 oggdep01 as ggsrc04t_2@GGSRC04T) 9> info extract rxt4 detail


Extract    RXT4      Initialized  2023-09-30 19:57   Status STOPPED

Checkpoint Lag       00:00:00 (updated 00:01:45 ago)

Log Read Checkpoint  Oracle Integrated Redo Logs

                     2023-09-30 19:57:38

                     SCN 0.0 (0)

Encryption Profile   LocalWallet


  Target Extract Trails:


  Trail Name                                       Seqno        RBA     Max MB Trail Type


  src/r4                                               0          0        500 EXTTRAIL



Integrated Extract outbound server first scn: Unavailable.


Integrated Extract outbound server filtering start scn: Unavailable.


  Extract Source                          Begin             End


  Not Available                           * Initialized *   2023-09-30 19:57



Current directory    /


Report file          /oggdata/oggdep01/var/lib/report/RXT4.rpt (does not yet exist)

Parameter file       /oggdata/oggdep01/etc/conf/ogg/rxt4.prm

Checkpoint file      /oggdata/oggdep01/var/lib/checkpt/RXT4.cpe

Process file         /oggdata/oggdep01/var/run/RXT4.pce

Error log            /oggdata/oggdep01/var/log/ggserr.log


OGG (http://127.0.0.1:9011 oggdep01 as ggsrc04t_2@GGSRC04T) 10> exit



[oracle@vcentos79-oracle-sa1 ~]$ adminclient

Oracle GoldenGate Administration Client for Oracle

Version 21.3.0.0.0 OGGCORE_21.3.0.0.0_PLATFORMS_210728.1047


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


Oracle Linux 7, x64, 64bit (optimized) on Jul 28 2021 12:32:46

Operating system character set identified as UTF-8.


OGG (not connected) 1> connect http://127.0.0.1:9011 deployment oggdep01 user ggsca password ggsca


OGG (http://127.0.0.1:9011 oggdep01) 2> DBLOGIN USERIDALIAS ggsrc04t_2

Successfully logged into database.


OGG (http://127.0.0.1:9011 oggdep01 as ggsrc04t_2@GGSRC04T) 3> register extract rxt4 database

2023-09-30T19:00:54Z  INFO    OGG-02003  Extract group RXT4 successfully registered with database at SCN 1088486.


OGG (http://127.0.0.1:9011 oggdep01 as ggsrc04t_2@GGSRC04T) 4> info extract rxt4 detail


Extract    RXT4      Initialized  2023-09-30 19:57   Status STOPPED

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

Log Read Checkpoint  Oracle Integrated Redo Logs

                     2023-09-30 19:57:38

                     SCN 0.0 (0)

Encryption Profile   LocalWallet


  Target Extract Trails:


  Trail Name                                       Seqno        RBA     Max MB Trail Type


  src/r4                                               0          0        500 EXTTRAIL



Integrated Extract outbound server first scn: 0.1088486 (1088486)


Integrated Extract outbound server filtering start scn: 0.1088486 (1088486)


  Extract Source                          Begin             End


  Not Available                           * Initialized *   2023-09-30 19:57



Current directory    /


Report file          /oggdata/oggdep01/var/lib/report/RXT4.rpt (does not yet exist)

Parameter file       /oggdata/oggdep01/etc/conf/ogg/rxt4.prm

Checkpoint file      /oggdata/oggdep01/var/lib/checkpt/RXT4.cpe

Process file         /oggdata/oggdep01/var/run/RXT4.pce

Error log            /oggdata/oggdep01/var/log/ggserr.log


OGG (http://127.0.0.1:9011 oggdep01 as ggsrc04t_2@GGSRC04T) 5>




4. Start the GG extract after repositioning it


select name, thread#, sequence# from v$archived_log 

where 459732 between first_change# and next_change#; 


info extract rxt4 detail

ALTER EXTRACT rxt4 EXTSEQNO 14  >>>>>>>>>> not an option

ALTER EXTRACT rxt4 EXTRBA 0 >>>>

ALTER EXTRACT rxt4 ETROLLOVER

info extract rxt4 detail

START EXTRACT rxt4


Actual output:

OGG (http://127.0.0.1:9011 oggdep01 as ggsrc04t_2@GGSRC04T) 5> ALTER EXTRACT rxt4 EXTSEQNO 14


Error: Unexpected value 'EXTSEQNO 14'.


Syntax for 'ALTER EXTRACT' command is:


ALTER EXTRACT <group-name>

              [ BEGIN     ( NOW | <begin-datetime> ) |

                SCN       <scn>

              ]

              [ DESC        <description>      ]

              [ ETROLLOVER                     ]

            [ ENCRYPTIONPROFILE    <encryption-profile-name>     ]

              [ CRITICAL    [ YES | NO ]       ]

              [ PROFILE     <profile-name>

            | [ AUTOSTART   [ YES | NO ]

                [ DELAY            <delay-number>   ] ]

              [ AUTORESTART [ YES | NO ]

                [ RETRIES          <retries-number> ]

                [ WAITSECONDS      <wait-number>    ]

                [ RESETSECONDS     <reset-number>   ]

                [ DISABLEONFAILURE [ YES | NO ]     ] ] ]


OGG (http://127.0.0.1:9011 oggdep01 as ggsrc04t_2@GGSRC04T) 5>


OGG (http://127.0.0.1:9011 oggdep01 as ggsrc04t_2@GGSRC04T) 5> ALTER EXTRACT rxt4 SCN 459730;


2023-09-30T19:04:28Z  ERROR   OGG-12111  JSON element '/begin' does not match any schemas


OGG (http://127.0.0.1:9011 oggdep01 as ggsrc04t_2@GGSRC04T) 6> ALTER EXTRACT rxt4 SCN 459730


OGG (http://127.0.0.1:9011 oggdep01 as ggsrc04t_2@GGSRC04T) 7> info extract rxt4 detail


Extract    RXT4      Initialized  2023-09-30 20:11   Status STOPPED

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

Log Read Checkpoint  Oracle Integrated Redo Logs

                     First Record

                     SCN 0.459730 (459730)

Encryption Profile   LocalWallet


  Target Extract Trails:


  Trail Name                                       Seqno        RBA     Max MB Trail Type


  src/r4                                               0          0        500 EXTTRAIL



Integrated Extract outbound server first scn: 0.1088486 (1088486)


Integrated Extract outbound server filtering start scn: 0.1088486 (1088486)


  Extract Source                          Begin             End


  Not Available                           * Initialized *   First Record

  Not Available                           * Initialized *   2023-09-30 19:57



Current directory    /


Report file          /oggdata/oggdep01/var/lib/report/RXT4.rpt (does not yet exist)

Parameter file       /oggdata/oggdep01/etc/conf/ogg/rxt4.prm

Checkpoint file      /oggdata/oggdep01/var/lib/checkpt/RXT4.cpe

Process file         /oggdata/oggdep01/var/run/RXT4.pce

Error log            /oggdata/oggdep01/var/log/ggserr.log


OGG (http://127.0.0.1:9011 oggdep01 as ggsrc04t_2@GGSRC04T) 8> ALTER EXTRACT rxt4 ETROLLOVER


OGG (http://127.0.0.1:9011 oggdep01 as ggsrc04t_2@GGSRC04T) 9> info extract rxt4 detail


Extract    RXT4      Initialized  2023-09-30 20:11   Status STOPPED

Checkpoint Lag       00:00:00 (updated 00:01:25 ago)

Log Read Checkpoint  Oracle Integrated Redo Logs

                     First Record

                     SCN 0.459730 (459730) <<<<< here it says it will try from our scn

Encryption Profile   LocalWallet


  Target Extract Trails:


  Trail Name                                       Seqno        RBA     Max MB Trail Type


  src/r4                                               1          0        500 EXTTRAIL



Integrated Extract outbound server first scn: 0.1088486 (1088486)


Integrated Extract outbound server filtering start scn: 0.1088486 (1088486)


  Extract Source                          Begin             End


  Not Available                           * Initialized *   First Record

  Not Available                           * Initialized *   First Record

  Not Available                           * Initialized *   2023-09-30 19:57



Current directory    /


Report file          /oggdata/oggdep01/var/lib/report/RXT4.rpt (does not yet exist)

Parameter file       /oggdata/oggdep01/etc/conf/ogg/rxt4.prm

Checkpoint file      /oggdata/oggdep01/var/lib/checkpt/RXT4.cpe

Process file         /oggdata/oggdep01/var/run/RXT4.pce

Error log            /oggdata/oggdep01/var/log/ggserr.log


OGG (http://127.0.0.1:9011 oggdep01 as ggsrc04t_2@GGSRC04T) 10> START EXTRACT rxt4

2023-09-30T19:13:45Z  INFO    OGG-00975  Extract group RXT4 starting.

2023-09-30T19:13:45Z  INFO    OGG-15426  Extract group RXT4 started.


OGG (http://127.0.0.1:9011 oggdep01 as ggsrc04t_2@GGSRC04T) 11> info extract rxt4 detail


Extract    RXT4      Last Started 2023-09-30 20:13   Status RUNNING

Checkpoint Lag       00:00:01 (updated 00:00:03 ago)

Process ID           19880

Log Read Checkpoint  Oracle Integrated Redo Logs

                     2023-09-30 20:14:04

                     SCN 0.1103524 (1103524) <<<< but it really didnt care about the scn we called out, since the dictionary build happened at a later stage

Encryption Profile   LocalWallet


  Target Extract Trails:


  Trail Name                                       Seqno        RBA     Max MB Trail Type


  src/r4                                               1      18877        500 EXTTRAIL



Integrated Extract outbound server first scn: 0.1088486 (1088486)


Integrated Extract outbound server filtering start scn: 0.1088486 (1088486)


  Extract Source                          Begin             End


  Not Available                           * Initialized *   2023-09-30 20:14

  Not Available                           * Initialized *   First Record

  Not Available                           * Initialized *   First Record

  Not Available                           * Initialized *   First Record

  Not Available                           * Initialized *   First Record

  Not Available                           * Initialized *   2023-09-30 19:57



Current directory    /


Report file          /oggdata/oggdep01/var/lib/report/RXT4.rpt

Parameter file       /oggdata/oggdep01/etc/conf/ogg/rxt4.prm

Checkpoint file      /oggdata/oggdep01/var/lib/checkpt/RXT4.cpe

Process file         /oggdata/oggdep01/var/run/RXT4.pce

Error log            /oggdata/oggdep01/var/log/ggserr.log


OGG (http://127.0.0.1:9011 oggdep01 as ggsrc04t_2@GGSRC04T) 12>



Try again:


OGG (http://127.0.0.1:9011 oggdep01 as ggsrc04t_2@GGSRC04T) 12> stop EXTRACT rxt4

2023-09-30T19:22:34Z  INFO    OGG-08100  Sending STOP request to Extract group RXT4.

2023-09-30T19:22:34Z  INFO    OGG-02964  Extract group RXT4 is down (gracefully).


OGG (http://127.0.0.1:9011 oggdep01 as ggsrc04t_2@GGSRC04T) 13> ALTER EXTRACT rxt4 SCN 459730

2023-09-30T19:22:50Z  INFO    OGG-08100  Error: Extract group RXT4 can not be positioned to SCN 459730 because of the following SQL error: ORA-26686: cannot capture from specified SCN <<<<<<< ORacle says this SCN is invalid, so we cant go back.

ORA-06512: at "SYS.DBMS_XSTREAM_ADM", line 193

ORA-06512: at "SYS.DBMS_XSTREAM_UTL_IVK", line 1325

ORA-06512: at "SYS.DBMS_XSTREAM_ADM_UTL", line 1818

ORA-06512: at "SYS.DBMS_XSTREAM_ADM_UTL", line 1494

ORA-06512: at "SYS.DBMS_LOGREP_UTIL", line 581

ORA-06512: at "SYS.DBMS_LOGREP_UTIL", line 616

ORA-06512: at "SYS.DBMS_XSTREAM_ADM_UTL", line 1408

ORA-06512: at "SYS.DBMS_XSTREAM_ADM_UTL", line 1770

ORA-06512: at "SYS.DBMS_XSTREAM_UTL_IVK", line 1250

ORA-06512: at "SYS.DBMS_XSTREAM_UTL_IVK", line 2357

ORA-06512: at "SYS.DBMS_XSTREAM_ADM", line 186

ORA-06512: at line 1

.


OGG (http://127.0.0.1:9011 oggdep01 as ggsrc04t_2@GGSRC04T) 14> info extract rxt4 detail


Extract    RXT4      Last Started 2023-09-30 20:13   Status STOPPED

Checkpoint Lag       00:00:00 (updated 00:01:34 ago)

Log Read Checkpoint  Oracle Integrated Redo Logs

                     2023-09-30 20:22:22

                     SCN 0.1106087 (1106087)

Encryption Profile   LocalWallet


  Target Extract Trails:


  Trail Name                                       Seqno        RBA     Max MB Trail Type


  src/r4                                               1      27524        500 EXTTRAIL



Integrated Extract outbound server first scn: 0.1088486 (1088486)


Integrated Extract outbound server filtering start scn: 0.1088486 (1088486)


  Extract Source                          Begin             End


  Not Available                           * Initialized *   2023-09-30 20:22

  Not Available                           * Initialized *   First Record

  Not Available                           * Initialized *   First Record

  Not Available                           * Initialized *   First Record

  Not Available                           * Initialized *   First Record

  Not Available                           * Initialized *   2023-09-30 19:57



Current directory    /


Report file          /oggdata/oggdep01/var/lib/report/RXT4.rpt

Parameter file       /oggdata/oggdep01/etc/conf/ogg/rxt4.prm

Checkpoint file      /oggdata/oggdep01/var/lib/checkpt/RXT4.cpe

Process file         /oggdata/oggdep01/var/run/RXT4.pce

Error log            /oggdata/oggdep01/var/log/ggserr.log


OGG (http://127.0.0.1:9011 oggdep01 as ggsrc04t_2@GGSRC04T) 15>




OK, but does repositioning really work?


Range of SCNs: 1088486 -> 1106087


Try reposition to: 1100000


OGG (http://127.0.0.1:9011 oggdep01 as ggsrc04t_2@GGSRC04T) 15> ALTER EXTRACT rxt4 SCN 1100000


OGG (http://127.0.0.1:9011 oggdep01 as ggsrc04t_2@GGSRC04T) 16> info extract rxt4 detail


Extract    RXT4      Initialized  2023-09-30 20:25   Status STOPPED

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

Log Read Checkpoint  Oracle Integrated Redo Logs

                     First Record

                     SCN 0.1100000 (1100000)

Encryption Profile   LocalWallet


  Target Extract Trails:


  Trail Name                                       Seqno        RBA     Max MB Trail Type


  src/r4                                               1      27524        500 EXTTRAIL



Integrated Extract outbound server first scn: 0.1088486 (1088486)


Integrated Extract outbound server filtering start scn: 0.1100000 (1100000)


  Extract Source                          Begin             End


  Not Available                           * Initialized *   First Record

  Not Available                           * Initialized *   2023-09-30 20:22

  Not Available                           * Initialized *   First Record

  Not Available                           * Initialized *   First Record

  Not Available                           * Initialized *   First Record

  Not Available                           * Initialized *   First Record

  Not Available                           * Initialized *   2023-09-30 19:57



Current directory    /


Report file          /oggdata/oggdep01/var/lib/report/RXT4.rpt

Parameter file       /oggdata/oggdep01/etc/conf/ogg/rxt4.prm

Checkpoint file      /oggdata/oggdep01/var/lib/checkpt/RXT4.cpe

Process file         /oggdata/oggdep01/var/run/RXT4.pce

Error log            /oggdata/oggdep01/var/log/ggserr.log


OGG (http://127.0.0.1:9011 oggdep01 as ggsrc04t_2@GGSRC04T) 17> ALTER EXTRACT rxt4 ETROLLOVER


OGG (http://127.0.0.1:9011 oggdep01 as ggsrc04t_2@GGSRC04T) 18> info extract rxt4 detail


Extract    RXT4      Initialized  2023-09-30 20:25   Status STOPPED

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

Log Read Checkpoint  Oracle Integrated Redo Logs

                     First Record

                     SCN 0.1100000 (1100000) <<<< repositioned SCN

Encryption Profile   LocalWallet


  Target Extract Trails:


  Trail Name                                       Seqno        RBA     Max MB Trail Type


  src/r4                                               2          0        500 EXTTRAIL



Integrated Extract outbound server first scn: 0.1088486 (1088486)


Integrated Extract outbound server filtering start scn: 0.1100000 (1100000)


  Extract Source                          Begin             End


  Not Available                           * Initialized *   First Record

  Not Available                           * Initialized *   First Record

  Not Available                           * Initialized *   2023-09-30 20:22

  Not Available                           * Initialized *   First Record

  Not Available                           * Initialized *   First Record

  Not Available                           * Initialized *   First Record

  Not Available                           * Initialized *   First Record

  Not Available                           * Initialized *   2023-09-30 19:57



Current directory    /


Report file          /oggdata/oggdep01/var/lib/report/RXT4.rpt

Parameter file       /oggdata/oggdep01/etc/conf/ogg/rxt4.prm

Checkpoint file      /oggdata/oggdep01/var/lib/checkpt/RXT4.cpe

Process file         /oggdata/oggdep01/var/run/RXT4.pce

Error log            /oggdata/oggdep01/var/log/ggserr.log


OGG (http://127.0.0.1:9011 oggdep01 as ggsrc04t_2@GGSRC04T) 19> START EXTRACT rxt4

2023-09-30T19:26:12Z  INFO    OGG-00975  Extract group RXT4 starting.

2023-09-30T19:26:12Z  INFO    OGG-15426  Extract group RXT4 started.


OGG (http://127.0.0.1:9011 oggdep01 as ggsrc04t_2@GGSRC04T) 20> info extract rxt4 detail


Extract    RXT4      Last Started 2023-09-30 20:26   Status RUNNING

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

Process ID           20587

Log Read Checkpoint  Oracle Integrated Redo Logs

                     2023-09-30 20:27:25

                     SCN 0.1107009 (1107009)

Encryption Profile   LocalWallet


  Target Extract Trails:


  Trail Name                                       Seqno        RBA     Max MB Trail Type


  src/r4                                               2      29688        500 EXTTRAIL



Integrated Extract outbound server first scn: 0.1088486 (1088486)


Integrated Extract outbound server filtering start scn: 0.1100000 (1100000)


  Extract Source                          Begin             End


  Not Available                           * Initialized *   2023-09-30 20:27

  Not Available                           * Initialized *   First Record

  Not Available                           * Initialized *   First Record

  Not Available                           * Initialized *   First Record

  Not Available                           * Initialized *   First Record

  Not Available                           * Initialized *   2023-09-30 20:22

  Not Available                           * Initialized *   First Record

  Not Available                           * Initialized *   First Record

  Not Available                           * Initialized *   First Record

  Not Available                           * Initialized *   First Record

  Not Available                           * Initialized *   2023-09-30 19:57



Current directory    /


Report file          /oggdata/oggdep01/var/lib/report/RXT4.rpt

Parameter file       /oggdata/oggdep01/etc/conf/ogg/rxt4.prm

Checkpoint file      /oggdata/oggdep01/var/lib/checkpt/RXT4.cpe

Process file         /oggdata/oggdep01/var/run/RXT4.pce

Error log            /oggdata/oggdep01/var/log/ggserr.log


OGG (http://127.0.0.1:9011 oggdep01 as ggsrc04t_2@GGSRC04T) 21>



So the reposition really works from the server's first scn not before. How we make the GG learn the first scn (old) is something to give it a try later.

YouTube Video:




No comments:

Post a Comment

Flashback data archive steps

 Objective: Ways to track DML changes in a table Detailed objective: We should be able to track the changes in the table at any point in tim...