0% found this document useful (0 votes)
9 views

Oracle Golden Gate 19c

The document details a session on an Oracle Linux server where the user logs in and performs various operations, including checking the status of Oracle database instances and system information. It includes commands for enabling the web console, checking memory and disk usage, and performing database backups using RMAN. The database is set to archive log mode, and multiple backups of the database and control files are successfully completed.

Uploaded by

lidstella
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
9 views

Oracle Golden Gate 19c

The document details a session on an Oracle Linux server where the user logs in and performs various operations, including checking the status of Oracle database instances and system information. It includes commands for enabling the web console, checking memory and disk usage, and performing database backups using RMAN. The database is set to archive log mode, and multiple backups of the database and control files are successfully completed.

Uploaded by

lidstella
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 164

PRD: 172.168.1.

101
login as: oracle
[email protected]'s password:
Activate the web console with: systemctl enable --now cockpit.socket

Last login: Tue Aug 16 20:17:47 2022


[oracle@oraprd01 ~]$

[oracle@oraprd01 ~]$ ps -ef | grep pmon


grid 10478 1 0 20:14 ? 00:00:00 asm_pmon_+ASM
oracle 10716 1 0 20:15 ? 00:00:00 ora_pmon_QAS
oracle 10722 1 0 20:15 ? 00:00:00 ora_pmon_PRD
oracle 12873 12783 0 20:20 pts/1 00:00:00 grep --color=auto pmon
[oracle@oraprd01 ~]$ sqlplus / as sysdba

SQL*Plus: Release 19.0.0.0.0 - Production on Tue Aug 16 20:20:32 2022


Version 19.3.0.0.0

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

Connected to:
Oracle Database 19c Enterprise Edition Release 19.0.0.0.0 - Production
Version 19.3.0.0.0

SQL> select status from v$instance;

STATUS
------------
OPEN

SQL>
[oracle@oraprd01 ~]$
[oracle@oraprd01 ~]$ cat /etc/redhat-release
Red Hat Enterprise Linux release 8.2 (Ootpa)
[oracle@oraprd01 ~]$ cat /etc/os-release
NAME="Oracle Linux Server"
VERSION="8.2"
ID="ol"
ID_LIKE="fedora"
VARIANT="Server"
VARIANT_ID="server"
VERSION_ID="8.2"
PLATFORM_ID="platform:el8"
PRETTY_NAME="Oracle Linux Server 8.2"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:oracle:linux:8:2:server"
HOME_URL="https://linux.oracle.com/"
BUG_REPORT_URL="https://bugzilla.oracle.com/"

ORACLE_BUGZILLA_PRODUCT="Oracle Linux 8"


ORACLE_BUGZILLA_PRODUCT_VERSION=8.2
ORACLE_SUPPORT_PRODUCT="Oracle Linux"
ORACLE_SUPPORT_PRODUCT_VERSION=8.2
[oracle@oraprd01 ~]$

[oracle@oraprd01 ~]$ uname -a


Linux oraprd01.edutronic.pe 5.4.17-2011.1.2.el8uek.x86_64 #2 SMP Mon Apr 20 22:10:46 PDT 2020 x86_64 x86_64 x86_64
GNU/Linux
[oracle@oraprd01 ~]$

[oracle@oraprd01 ~]$ free -m


total used free shared buff/cache available
Mem: 7953 2051 982 2701 4919 2933
Swap: 8099 0 8099
[oracle@oraprd01 ~]$ df -h
Filesystem Size Used Avail Use% Mounted on
devtmpfs 3.9G 0 3.9G 0% /dev
tmpfs 3.9G 641M 3.3G 17% /dev/shm
tmpfs 3.9G 9.6M 3.9G 1% /run
tmpfs 3.9G 0 3.9G 0% /sys/fs/cgroup
/dev/mapper/ol-root 50G 6.7G 44G 14% /
/dev/mapper/vg_oracle-lvg_oracle 80G 11G 70G 14% /oracle
/dev/mapper/vg_oragrid-lvg_oragrid 80G 9.7G 71G 13% /oragrid
/dev/sda1 1014M 276M 739M 28% /boot
/dev/mapper/ol-home 42G 345M 41G 1% /home
tmpfs 796M 1.2M 795M 1% /run/user/42
tmpfs 796M 4.6M 791M 1% /run/user/1002
[oracle@oraprd01 ~]$ lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 100G 0 disk
ââsda1 8:1 0 1G 0 part /boot
ââsda2 8:2 0 99G 0 part
ââol-root 252:0 0 50G 0 lvm /
ââol-swap 252:1 0 7.9G 0 lvm [SWAP]
ââol-home 252:2 0 41.1G 0 lvm /home
sdb 8:16 0 80G 0 disk
ââsdb1 8:17 0 80G 0 part
ââvg_oragrid-lvg_oragrid 252:4 0 79.9G 0 lvm /oragrid
sdc 8:32 0 80G 0 disk
ââsdc1 8:33 0 80G 0 part
ââvg_oracle-lvg_oracle 252:3 0 79.9G 0 lvm /oracle
sdd 8:48 0 64G 0 disk
ââasm_disk_01 252:7 0 64G 0 mpath
sde 8:64 0 64G 0 disk
ââasm_disk_02 252:8 0 64G 0 mpath
ââasm_disk_02p1 252:12 0 64G 0 part
sdf 8:80 0 128G 0 disk
ââasm_disk_03 252:9 0 128G 0 mpath
sdg 8:96 0 128G 0 disk
ââasm_disk_04 252:10 0 128G 0 mpath
sdh 8:112 0 256G 0 disk
ââasm_disk_05 252:5 0 256G 0 mpath
sdi 8:128 0 256G 0 disk
ââasm_disk_06 252:6 0 256G 0 mpath
ââasm_disk_06p1 252:11 0 256G 0 part
sr0 11:0 1 1024M 0 rom
[oracle@oraprd01 ~]$ lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 100G 0 disk
├─sda1 8:1 0 1G 0 part /boot
└─sda2 8:2 0 99G 0 part
├─ol-root 252:0 0 50G 0 lvm /
├─ol-swap 252:1 0 7.9G 0 lvm [SWAP]
└─ol-home 252:2 0 41.1G 0 lvm /home
sdb 8:16 0 80G 0 disk
└─sdb1 8:17 0 80G 0 part
└─vg_oragrid-lvg_oragrid 252:4 0 79.9G 0 lvm /oragrid
sdc 8:32 0 80G 0 disk
└─sdc1 8:33 0 80G 0 part
└─vg_oracle-lvg_oracle 252:3 0 79.9G 0 lvm /oracle
sdd 8:48 0 64G 0 disk
└─asm_disk_01 252:7 0 64G 0 mpath
sde 8:64 0 64G 0 disk
└─asm_disk_02 252:8 0 64G 0 mpath
└─asm_disk_02p1 252:12 0 64G 0 part
sdf 8:80 0 128G 0 disk
└─asm_disk_03 252:9 0 128G 0 mpath
sdg 8:96 0 128G 0 disk
└─asm_disk_04 252:10 0 128G 0 mpath
sdh 8:112 0 256G 0 disk
└─asm_disk_05 252:5 0 256G 0 mpath
sdi 8:128 0 256G 0 disk
└─asm_disk_06 252:6 0 256G 0 mpath
└─asm_disk_06p1 252:11 0 256G 0 part
sr0 11:0 1 1024M 0 rom
[oracle@oraprd01 ~]$
PREPARACIÓN DEL AMBIENTE DE CONTINGENCIA

[oracle@oraprd01 ~]$ sqlplus / as sysdba

SQL*Plus: Release 19.0.0.0.0 - Production on Tue Aug 16 21:14:31 2022


Version 19.3.0.0.0

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

Connected to:
Oracle Database 19c Enterprise Edition Release 19.0.0.0.0 - Production
Version 19.3.0.0.0

SQL> archive log list


Database log mode No Archive Mode
Automatic archival Disabled
Archive destination USE_DB_RECOVERY_FILE_DEST
Oldest online log sequence 5
Current log sequence 7
SQL>
SQL> SHUTDOWN IMMEDIATE;
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL>
SQL>
SQL> startup mount
ORACLE instance started.

Total System Global Area 1073737800 bytes


Fixed Size 8904776 bytes
Variable Size 276824064 bytes
Database Buffers 780140544 bytes
Redo Buffers 7868416 bytes
Database mounted.
SQL>
SQL> alter database archivelog;

Database altered.

SQL> alter database open;


[oracle@oraprd01 ~]$ mkdir -p /oracle/backup
[oracle@oraprd01 ~]$ rman target /

Recovery Manager: Release 19.0.0.0.0 - Production on Tue Aug 16 21:17:05 2022


Version 19.3.0.0.0

Copyright (c) 1982, 2019, Oracle and/or its affiliates. All rights reserved.

connected to target database: PRD (DBID=2151431399)

RMAN>

RMAN> backup database format '/oracle/backup/bkp_db_%U.rman';

Starting backup at 16-08-2022 21:18:10


using target database control file instead of recovery catalog
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=39 device type=DISK
channel ORA_DISK_1: starting full datafile backup set
channel ORA_DISK_1: specifying datafile(s) in backup set
input datafile file number=00001 name=+DG_DATA_PRD/PRD/DATAFILE/system.256.1087767667
input datafile file number=00003 name=+DG_DATA_PRD/PRD/DATAFILE/sysaux.257.1087767701
input datafile file number=00004 name=+DG_DATA_PRD/PRD/DATAFILE/undotbs1.258.1087767727
input datafile file number=00007 name=+DG_DATA_PRD/PRD/DATAFILE/users.259.1087767729
channel ORA_DISK_1: starting piece 1 at 16-08-2022 21:18:14
channel ORA_DISK_1: finished piece 1 at 16-08-2022 21:18:29
piece handle=/oracle/backup/bkp_db_0115b8sm_1_1.rman tag=TAG20220816T211813 comment=NONE
channel ORA_DISK_1: backup set complete, elapsed time: 00:00:15
Finished backup at 16-08-2022 21:18:29

Starting Control File and SPFILE Autobackup at 16-08-2022 21:18:29


piece handle=+DG_FRA/PRD/AUTOBACKUP/2022_08_16/s_1112908709.264.1112908711 comment=NONE
Finished Control File and SPFILE Autobackup at 16-08-2022 21:18:32
RMAN> alter system switch logfile;

Statement processed

RMAN> alter system switch logfile;

Statement processed

RMAN> alter system switch logfile;

Statement processed

RMAN>

RMAN> backup archivelog all format '/oracle/backup/bkp_archivelog_%U.rman';

Starting backup at 16-08-2022 21:19:43


current log archived
using channel ORA_DISK_1
channel ORA_DISK_1: starting archived log backup set
channel ORA_DISK_1: specifying archived log(s) in backup set
input archived log thread=1 sequence=7 RECID=1 STAMP=1112908727
input archived log thread=1 sequence=8 RECID=2 STAMP=1112908730
input archived log thread=1 sequence=9 RECID=3 STAMP=1112908730
input archived log thread=1 sequence=10 RECID=4 STAMP=1112908784
channel ORA_DISK_1: starting piece 1 at 16-08-2022 21:19:44
channel ORA_DISK_1: finished piece 1 at 16-08-2022 21:19:45
piece handle=/oracle/backup/bkp_archivelog_0315b8vg_1_1.rman tag=TAG20220816T211944 comment=NONE
channel ORA_DISK_1: backup set complete, elapsed time: 00:00:01
Finished backup at 16-08-2022 21:19:45

Starting Control File and SPFILE Autobackup at 16-08-2022 21:19:45


piece handle=+DG_FRA/PRD/AUTOBACKUP/2022_08_16/s_1112908786.269.1112908787 comment=NONE
Finished Control File and SPFILE Autobackup at 16-08-2022 21:19:49
RMAN> backup current controlfile format '/oracle/backup/bkp_ctl.rman';

Starting backup at 16-08-2022 21:20:26


using channel ORA_DISK_1
channel ORA_DISK_1: starting full datafile backup set
channel ORA_DISK_1: specifying datafile(s) in backup set
including current control file in backup set
channel ORA_DISK_1: starting piece 1 at 16-08-2022 21:20:27
channel ORA_DISK_1: finished piece 1 at 16-08-2022 21:20:28
piece handle=/oracle/backup/bkp_ctl.rman tag=TAG20220816T212026 comment=NONE
channel ORA_DISK_1: backup set complete, elapsed time: 00:00:01
Finished backup at 16-08-2022 21:20:28

Starting Control File and SPFILE Autobackup at 16-08-2022 21:20:28


piece handle=+DG_FRA/PRD/AUTOBACKUP/2022_08_16/s_1112908828.270.1112908829 comment=NONE
Finished Control File and SPFILE Autobackup at 16-08-2022 21:20:31

RMAN>

SQL> create pfile='/oracle/backup/initPRD.ora' from spfile;


create pfile='/oracle/backup/initPRD.ora' fro spfile

File created.

SQL> 2

[oracle@oraprd01 ~]$ cp /oracle/product/19c/dbs/orapwPRD /oracle/backup/orapwPRD

[oracle@oraprd01 ~]$ cd /oracle/backup/


[oracle@oraprd01 backup]$ ls
bkp_archivelog_0315b8vg_1_1.rman bkp_ctl.rman bkp_db_0115b8sm_1_1.rman initPRD.ora orapwPRD
[oracle@oraprd01 backup]$ ls -lrht
total 1.2G
-rw-r----- 1 oracle asmadmin 1.2G Aug 16 21:18 bkp_db_0115b8sm_1_1.rman
-rw-r----- 1 oracle asmadmin 13M Aug 16 21:19 bkp_archivelog_0315b8vg_1_1.rman
-rw-r----- 1 oracle asmadmin 11M Aug 16 21:20 bkp_ctl.rman
-rw-r--r-- 1 oracle asmadmin 1.1K Aug 16 21:21 initPRD.ora
-rw-r----- 1 oracle oinstall 2.0K Aug 16 21:23 orapwPRD
[oracle@oraprd01 backup]$

[oracle@oraprd01 backup]$ scp * 172.168.1.201:/oracle/backup/.


The authenticity of host '172.168.1.201 (172.168.1.201)' can't be established.
ECDSA key fingerprint is SHA256:+PQAYfsdQKsK/g9/T1m1KT/Rly4zVYmTjrFRs9MaWfI.
Are you sure you want to continue connecting (yes/no/[fingerprint])? yes
Warning: Permanently added '172.168.1.201' (ECDSA) to the list of known hosts.
[email protected]'s password:
bkp_archivelog_0315b8vg_1_1.rman 100% 13MB
41.5MB/s 00:00
bkp_ctl.rman 100% 10MB
59.2MB/s 00:00
bkp_db_0115b8sm_1_1.rman 100% 1183MB
40.9MB/s 00:28
initPRD.ora 100% 1107
773.4KB/s 00:00
orapwPRD 100% 2048
1.3MB/s 00:00
[oracle@oraprd01 backup]$
CTG: 172.168.1.201

login as: oracle


[email protected]'s password:
Activate the web console with: systemctl enable --now cockpit.socket

Last login: Tue Aug 16 20:23:03 2022

[oracle@oractg01 ~]$
[oracle@oractg01 ~]$
[oracle@oractg01 ~]$ ps -ef | grep pmon
grid 10927 1 0 20:23 ? 00:00:00 asm_pmon_+ASM
oracle 11302 11248 0 20:24 pts/1 00:00:00 grep --color=auto pmon
[oracle@oractg01 ~]$

oracle@oractg01 oracle]$ mkdir -p /oracle/backup

[oracle@oractg01 backup]$ cp initPRD.ora $ORACLE_HOME/dbs/.

[oracle@oractg01 dbs]$ vi initPRD.ora

– remover el LISTENER_PRD

[oracle@oractg01 dbs]$ sqlplus / as sysdba

SQL*Plus: Release 19.0.0.0.0 - Production on Tue Aug 16 21:30:37 2022


Version 19.3.0.0.0

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

Connected to an idle instance.


SQL> create spfile from pfile;

File created.

SQL> startup nomount

ORA-09925: Unable to create audit trail file


Linux-x86_64 Error: 2: No such file or directory
Additional information: 9925
SQL> exit

[oracle@oractg01 dbs]$ mkdir -p /oracle/admin/PRD/adump

[oracle@oractg01 dbs]$ sqlplus / as sysdba

SQL*Plus: Release 19.0.0.0.0 - Production on Tue Aug 16 21:31:59 2022


Version 19.3.0.0.0

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

Connected to an idle instance.

SQL> startup nomount


ORACLE instance started.

Total System Global Area 1073737800 bytes


Fixed Size 8904776 bytes
Variable Size 276824064 bytes
Database Buffers 780140544 bytes
Redo Buffers 7868416 bytes
SQL>
[oracle@oractg01 dbs]$ rman target /

Recovery Manager: Release 19.0.0.0.0 - Production on Tue Aug 16 21:33:45 2022


Version 19.3.0.0.0

Copyright (c) 1982, 2019, Oracle and/or its affiliates. All rights reserved.

connected to target database: PRD (not mounted)

RMAN> restore controlfile from '/oracle/backup/bkp_ctl.rman';

Starting restore at 16-08-2022 21:34:14


using target database control file instead of recovery catalog
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=259 device type=DISK

channel ORA_DISK_1: restoring control file


channel ORA_DISK_1: restore complete, elapsed time: 00:00:01
output file name=+DG_DATA_PRD/PRD/CONTROLFILE/current.256.1112909657
output file name=+DG_FRA/PRD/CONTROLFILE/current.256.1112909657
Finished restore at 16-08-2022 21:34:17

RMAN>

RMAN> alter database mount;

released channel: ORA_DISK_1


Statement processed

RMAN> restore database;

Starting restore at 16-08-2022 21:34:58


Starting implicit crosscheck backup at 16-08-2022 21:34:58
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=259 device type=DISK
Crosschecked 4 objects
Finished implicit crosscheck backup at 16-08-2022 21:35:00

Starting implicit crosscheck copy at 16-08-2022 21:35:00


using channel ORA_DISK_1
Finished implicit crosscheck copy at 16-08-2022 21:35:00

searching for all files in the recovery area


cataloging files...
no files cataloged

using channel ORA_DISK_1

channel ORA_DISK_1: starting datafile backup set restore


channel ORA_DISK_1: specifying datafile(s) to restore from backup set
channel ORA_DISK_1: restoring datafile 00001 to +DG_DATA_PRD/PRD/DATAFILE/system.256.1087767667
channel ORA_DISK_1: restoring datafile 00003 to +DG_DATA_PRD/PRD/DATAFILE/sysaux.257.1087767701
channel ORA_DISK_1: restoring datafile 00004 to +DG_DATA_PRD/PRD/DATAFILE/undotbs1.258.1087767727
channel ORA_DISK_1: restoring datafile 00007 to +DG_DATA_PRD/PRD/DATAFILE/users.259.1087767729
channel ORA_DISK_1: reading from backup piece /oracle/backup/bkp_db_0115b8sm_1_1.rman

channel ORA_DISK_1: piece handle=/oracle/backup/bkp_db_0115b8sm_1_1.rman tag=TAG20220816T211813


channel ORA_DISK_1: restored backup piece 1
channel ORA_DISK_1: restore complete, elapsed time: 00:00:15
Finished restore at 16-08-2022 21:35:16

RMAN> recover database preview;

Starting recover at 16-08-2022 21:35:37


using channel ORA_DISK_1
using channel ORA_DISK_1
List of Backup Sets
===================

BS Key Size Device Type Elapsed Time Completion Time


------- ---------- ----------- ------------ -------------------
3 12.92M DISK 00:00:00 16-08-2022 21:19:44
BP Key: 3 Status: AVAILABLE Compressed: NO Tag: TAG20220816T211944
Piece Name: /oracle/backup/bkp_archivelog_0315b8vg_1_1.rman

List of Archived Logs in backup set 3


Thrd Seq Low SCN Low Time Next SCN Next Time
---- ------- ---------- ------------------- ---------- ---------
1 7 2195248 16-08-2022 20:16:09 2201767 16-08-2022 21:18:46
1 8 2201767 16-08-2022 21:18:46 2201779 16-08-2022 21:18:49
1 9 2201779 16-08-2022 21:18:49 2201791 16-08-2022 21:18:50
1 10 2201791 16-08-2022 21:18:50 2201821 16-08-2022 21:19:43
recovery will be done up to SCN 2201725
Media recovery start SCN is 2201725
Recovery must be done beyond SCN 2201725 to clear datafile fuzziness
Finished recover at 16-08-2022 21:35:37

RMAN> recover database until scn 2201725;

Starting recover at 16-08-2022 21:36:07


using channel ORA_DISK_1

starting media recovery


media recovery complete, elapsed time: 00:00:01

Finished recover at 16-08-2022 21:36:08

RMAN> alter database open resetlogs;

Statement processed
INSTALACION
—------------

login as: oracle


[email protected]'s password:
Activate the web console with: systemctl enable --now cockpit.socket

Last login: Thu Nov 4 22:19:12 2021


[oracle@oraprd01 ~]$ ps -ef | grep pmon
grid 9971 1 0 19:54 ? 00:00:00 asm_pmon_+ASM
oracle 10623 1 0 19:55 ? 00:00:00 ora_pmon_PRD
oracle 10627 1 0 19:55 ? 00:00:00 ora_pmon_QAS
oracle 11588 11351 0 19:56 pts/0 00:00:00 grep --color=auto pmon
[oracle@oraprd01 ~]$ mkdir -p /oracle/Install
[oracle@oraprd01 ~]$
[oracle@oraprd01 ~]$ cd /oracle/Install
[oracle@oraprd01 Install]$ ls -lrht
total 531M
-rw-r--r-- 1 oracle oinstall 531M Aug 18 17:43 191004_fbo_ggs_Linux_x64_shiphome.zip
[oracle@oraprd01 Install]$ unzip 191004_fbo_ggs_Linux_x64_shiphome.zip

[oracle@oraprd01 Install]$ vncserver

New 'oraprd01.edutronic.pe:1 (oracle)' desktop is oraprd01.edutronic.pe:1

Starting applications specified in /home/oracle/.vnc/xstartup


Log file is /home/oracle/.vnc/oraprd01.edutronic.pe:1.log

[oracle@oraprd01 Install]$
[oracle@oraprd01 product]$ cd GoldenGate19c
[oracle@oraprd01 GoldenGate19c]$ ls
archivelog.sql ddl_status.sql dirrpt libggperf.so
oraInst.loc
bcpfmt.tpl ddl_staymetadata_off.sql dirsca libggrepo.so oui
bcrypt.txt ddl_staymetadata_on.sql dirsql libggssl.so
params.sql
cachefiledump ddl_tracelevel.sql dirtmp libggutil.so
pmsrvr
cfgtoollogs ddl_trace_off.sql dirwlt libicudata.so.62
prvtclkm.plb
checkprm ddl_trace_on.sql emsclnt libicui18n.so.62
prvtlmpg.plb
chkpt_ora_create.sql defgen extract libicuuc.so.62
prvtlmpg_uninstall.sql
convchk deinstall freeBSD.txt liblmdb.so
remove_seq.sql
convprm demo_more_ora_create.sql ggcmd libPocoCrypto.so.60
replicat
crypto demo_more_ora_insert.sql ggMessage.dat libPocoFoundation.so.60
retrace
db2cntl.tpl demo_ora_create.sql ggparam.dat libPocoJSON.so.60
role_setup.sql
db_upgrade demo_ora_insert.sql ggsci libPocoNet.so.60
sequence.sql
ddl_cleartrace.sql demo_ora_lob_create.sql ggserr.log libPocoNetSSL.so.60
server
ddl_create.sql demo_ora_misc.sql healthcheck libPocoUtil.so.60
SQLDataTypes.h
ddl_ddl2file.sql demo_ora_pk_befores_create.sql help.txt libPocoXML.so.60
sqlldr.tpl
ddl_disable.sql demo_ora_pk_befores_insert.sql install libstdc++.so.6 srvm
ddl_enable.sql demo_ora_pk_befores_updates.sql inventory libudt.so
tcperrs
ddl_filter.sql diagnostics jdk libxerces-c-3.2.so
ucharset.h
ddl_ora10.sql dirchk keygen logdump
ulg.sql
ddl_ora10upCommon.sql dircrd label.sql marker_remove.sql
UserExitExamples
ddl_ora11.sql dirdat libantlr3c.so marker_setup.sql
usrdecs.h
ddl_ora9.sql dirdef libboost_system-mt.so.1.67.0 marker_status.sql
version4j.jar
ddl_pin.sql dirdmp libdb-6.1.so mgr
zlib.txt
ddl_remove.sql diretc libgcc_s.so.1 noop.sql
ddl_session1.sql dirout libgglog.so notices.txt
ddl_session.sql dirpcs libggnnzitp.so oggerr
ddl_setup.sql dirprm libggparam.so OPatch
[oracle@oraprd01 GoldenGate19c]$

[oracle@oraprd01 GoldenGate19c]$ ./ggsci

Oracle GoldenGate Command Interpreter for Oracle


Version 19.1.0.0.4 OGGCORE_19.1.0.0.0_PLATFORMS_191017.1054_FBO
Linux, x64, 64bit (optimized), Oracle 19c on Oct 17 2019 21:16:29
Operating system character set identified as UTF-8.

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

GGSCI (oraprd01.edutronic.pe) 1>

GGSCI (oraprd01.edutronic.pe) 1> info all

Program Status Group Lag at Chkpt Time Since Chkpt


MANAGER RUNNING

GGSCI (oraprd01.edutronic.pe) 2>

GGSCI (oraprd01.edutronic.pe) 2> info mgr

Manager is running (IP port TCP:oraprd01.edutronic.pe.7809, Process ID 13852).

GGSCI (oraprd01.edutronic.pe) 3>

GGSCI (oraprd01.edutronic.pe) 3> 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 (oraprd01.edutronic.pe) 4> info all

Program Status Group Lag at Chkpt Time Since Chkpt

MANAGER STOPPED

GGSCI (oraprd01.edutronic.pe) 5> info mgr

Manager is DOWN!
GGSCI (oraprd01.edutronic.pe) 6> start mgr
Manager started.

GGSCI (oraprd01.edutronic.pe) 7> info all

Program Status Group Lag at Chkpt Time Since Chkpt

MANAGER RUNNING

GGSCI (oraprd01.edutronic.pe) 8> info mgr

Manager is running (IP port TCP:oraprd01.edutronic.pe.7809, Process ID 13933).

GGSCI (oraprd01.edutronic.pe) 9>


Instalando en contingencia

[oracle@oractg01 ~]$ mkdir -p /oracle/Install

[oracle@oractg01 Install]$ ls
191004_fbo_ggs_Linux_x64_shiphome.zip
[oracle@oractg01 Install]$ unzip 191004_fbo_ggs_Linux_x64_shiphome.zip
Archive: 191004_fbo_ggs_Linux_x64_shiphome.zip
creating: fbo_ggs_Linux_x64_shiphome/
creating: fbo_ggs_Linux_x64_shiphome/Disk1/
[oracle@oractg01 Install]$ vncserver

New 'oractg01.edutronic.pe:1 (oracle)' desktop is oractg01.edutronic.pe:1

Starting applications specified in /home/oracle/.vnc/xstartup


Log file is /home/oracle/.vnc/oractg01.edutronic.pe:1.log

[oracle@oractg01 Install]$
[oracle@oractg01 GoldenGate19c]$ ./ggsci

Oracle GoldenGate Command Interpreter for Oracle


Version 19.1.0.0.4 OGGCORE_19.1.0.0.0_PLATFORMS_191017.1054_FBO
Linux, x64, 64bit (optimized), Oracle 19c on Oct 17 2019 21:16:29
Operating system character set identified as UTF-8.

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

GGSCI (oractg01.edutronic.pe) 1> info all

Program Status Group Lag at Chkpt Time Since Chkpt

MANAGER RUNNING

GGSCI (oractg01.edutronic.pe) 2> info mgr

Manager is running (IP port TCP:oractg01.edutronic.pe.7809, Process ID 12757).

GGSCI (oractg01.edutronic.pe) 3>

GGSCI (oractg01.edutronic.pe) 3> create subdirs

Creating subdirectories under current directory /oracle/product/GoldenGate19c

Parameter file /oracle/product/GoldenGate19c/dirprm: already exists.


Report file /oracle/product/GoldenGate19c/dirrpt: already exists.
Checkpoint file /oracle/product/GoldenGate19c/dirchk: already exists.
Process status files /oracle/product/GoldenGate19c/dirpcs: already exists.
SQL script files /oracle/product/GoldenGate19c/dirsql: already exists.
Database definitions files /oracle/product/GoldenGate19c/dirdef: already exists.
Extract data files /oracle/product/GoldenGate19c/dirdat: already exists.
Temporary files /oracle/product/GoldenGate19c/dirtmp: already exists.
Credential store files /oracle/product/GoldenGate19c/dircrd: already exists.
Masterkey wallet files /oracle/product/GoldenGate19c/dirwlt: already exists.
Dump files /oracle/product/GoldenGate19c/dirdmp: already exists.

GGSCI (oractg01.edutronic.pe) 4>

GGSCI (oractg01.edutronic.pe) 4> shell date

Thu Aug 18 20:20:45 -05 2022

GGSCI (oractg01.edutronic.pe) 5> shell df -h

Filesystem Size Used Avail Use% Mounted on


devtmpfs 3.9G 0 3.9G 0% /dev
tmpfs 3.9G 641M 3.3G 17% /dev/shm
tmpfs 3.9G 9.7M 3.9G 1% /run
tmpfs 3.9G 0 3.9G 0% /sys/fs/cgroup
/dev/mapper/ol-root 50G 6.6G 44G 14% /
/dev/mapper/vg_oracle-lvg_oracle 80G 13G 68G 16% /oracle
/dev/mapper/vg_oragrid-lvg_oragrid 80G 9.7G 71G 13% /oragrid
/dev/sda1 1014M 276M 739M 28% /boot
/dev/mapper/ol-home 42G 350M 41G 1% /home
tmpfs 796M 1.2M 795M 1% /run/user/42
tmpfs 796M 32K 796M 1% /run/user/1002

GGSCI (oractg01.edutronic.pe) 6> shell free -m

total used free shared buff/cache available


Mem: 7953 1709 1493 658 4749 4079
Swap: 8099 0 8099

GGSCI (oractg01.edutronic.pe) 7> shell top


top - 20:21:04 up 27 min, 1 user, load average: 0.30, 0.95, 0.80
Tasks: 335 total, 1 running, 334 sleeping, 0 stopped, 0 zombie
%Cpu(s): 22.0 us, 9.8 sy, 0.0 ni, 65.9 id, 0.0 wa, 2.4 hi, 0.0 si, 0.0 st
MiB Mem : 7953.3 total, 1493.0 free, 1709.9 used, 4750.3 buff/cache
MiB Swap: 8100.0 total, 8100.0 free, 0.0 used. 4079.6 avail Mem

PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND


11510 oracle 20 0 3154164 238440 112560 S 29.4 2.9 0:19.39 gnome-shell
12879 oracle 20 0 64776 5004 4128 R 29.4 0.1 0:00.06 top
6152 grid 20 0 444632 35256 26448 S 5.9 0.4 0:03.71 evmlogger.bin
1 root 20 0 179604 11676 8372 S 0.0 0.1 0:04.25 systemd
2 root 20 0 0 0 0 S 0.0 0.0 0:00.00 kthreadd
3 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 rcu_gp
4 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 rcu_par_gp
6 root 0 -20 0 0 0 I 0.0 0.0 0:00.30 kworker/0:0H-kblockd
8 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 mm_percpu_wq
9 root 20 0 0 0 0 S 0.0 0.0 0:13.42 ksoftirqd/0
10 root 20 0 0 0 0 I 0.0 0.0 0:00.40 rcu_sched
11 root rt 0 0 0 0 S 0.0 0.0 0:00.01 migration/0
13 root 20 0 0 0 0 S 0.0 0.0 0:00.00 cpuhp/0
14 root 20 0 0 0 0 S 0.0 0.0 0:00.00 cpuhp/1
15 root rt 0 0 0 0 S 0.0 0.0 0:00.01 migration/1
16 root 20 0 0 0 0 S 0.0 0.0 0:02.84 ksoftirqd/1
18 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 kworker/1:0H-kblockd

GGSCI (oractg01.edutronic.pe) 8>

GGSCI (oractg01.edutronic.pe) 8> shell date


Thu Aug 18 20:21:31 -05 2022

GGSCI (oractg01.edutronic.pe) 9> !


shell date

Thu Aug 18 20:21:41 -05 2022

GGSCI (oractg01.edutronic.pe) 10>

GGSCI (oractg01.edutronic.pe) 12> history

GGSCI Command History

3: create subdirs
4: shell date
5: shell df -h
6: shell free -m
7: shell top
8: shell date
9: shell date
10: shell date
11: histor
12: history

GGSCI (oractg01.edutronic.pe) 13>

GGSCI (oractg01.edutronic.pe) 14> help VERSIONS


Use VERSIONS to display operating system and database version information. For
ODBC connections, the driver version is also displayed. To include database
information in the output, issue a DBLOGIN command before issuing VERSIONS to
establish a database connection.

Syntax

VERSIONS

GGSCI (oractg01.edutronic.pe) 15>

GGSCI (oractg01.edutronic.pe) 16> help add extract

GGSCI (oractg01.edutronic.pe) 18> help add extract

Use ADD EXTRACT to create an Extract group. Unless a SOURCEISTABLE task or


an alias Extract is specified, ADD EXTRACT creates an online group that uses
checkpoints so that processing continuity is maintained from run to run.

For DB2 for i, this command establishes a global start point for all journals
and is a required first step. After issuing the ADD EXTRACT command, you can
then optionally position any given journal at a specific journal sequence
number by using the ALTER EXTRACT command with an appropriate journal option.

Oracle GoldenGate supports up to 5,000 concurrent Extract and Replicat


groups per instance of Oracle GoldenGate Manager. At the supported level,
all groups can be controlled and viewed in full with GGSCI commands such
as the INFO and STATUS commands. Oracle GoldenGate recommends keeping the
combined number of Extract and Replicat groups at the default level of
300 or below in order to manage your environment effectively.
This command cannot exceed 500 bytes in size for all keywords and input,
including any text that you enter for the DESC option.

Syntax

ADD EXTRACT group_name


{, SOURCEISTABLE |
, TRANLOG [bsds_name |
, INTEGRATED TRANLOG |
, EXTFILESOURCE file_name |
, EXTTRAILSOURCE trail_name |
[, BEGIN {NOW | yyyy-mm-dd[ hh:mi:[ss[.cccccc]]]}]
[, EXTSEQNO sequence_number
[, EXTRBA offset_number |
[, EOF
[, LSN value |
[, EXTRBA relative_byte_address |
[, LRI value |
[, PAGE data_page, ROW row_ID |
[, SEQNO sequence_number
[, SCN value]
[, THREADS n]
[, PASSIVE]
[, PARAMS file_name]
[, REPORT file_name]
[, DESC 'description']
[, SOCKSPROXY {host_name | IP_address}[:port] [PROXYCSALIAS credential_store_alias [PROXYCSDOMAIN
credential_store_domain]]]
[, RMTNAME passive_Extract_name]

group_name

The name of the Extract group. The name of an Extract group can contain
up to eight characters. See for group naming conventions. See Administering
Oracle GoldenGate for group naming conventions.

The name of the Extract group. The name of an Extract group can contain
up to eight characters, see Choosing Names for Processes and F

[oracle@oractg01 GoldenGate19c]$ vi /tmp/monitor.oby

shell date
info all
info mgr
shell free -m
shell df -h
shell uname -a
shell date

GGSCI (oractg01.edutronic.pe) 1> obey /tmp/monitor.oby

GGSCI (oractg01.edutronic.pe) 2> shell date

Thu Aug 18 20:32:54 -05 2022

GGSCI (oractg01.edutronic.pe) 3> info all

Program Status Group Lag at Chkpt Time Since Chkpt

MANAGER RUNNING

GGSCI (oractg01.edutronic.pe) 4> info mgr


Manager is running (IP port TCP:oractg01.edutronic.pe.7809, Process ID 12757).

GGSCI (oractg01.edutronic.pe) 5> shell free -m

total used free shared buff/cache available


Mem: 7953 1512 1701 658 4739 4277
Swap: 8099 0 8099

GGSCI (oractg01.edutronic.pe) 6> shell df -h

Filesystem Size Used Avail Use% Mounted on


devtmpfs 3.9G 0 3.9G 0% /dev
tmpfs 3.9G 641M 3.3G 17% /dev/shm
tmpfs 3.9G 9.6M 3.9G 1% /run
tmpfs 3.9G 0 3.9G 0% /sys/fs/cgroup
/dev/mapper/ol-root 50G 6.6G 44G 14% /
/dev/mapper/vg_oracle-lvg_oracle 80G 13G 68G 16% /oracle
/dev/mapper/vg_oragrid-lvg_oragrid 80G 9.7G 71G 13% /oragrid
/dev/sda1 1014M 276M 739M 28% /boot
/dev/mapper/ol-home 42G 350M 41G 1% /home
tmpfs 796M 1.2M 795M 1% /run/user/42
tmpfs 796M 36K 796M 1% /run/user/1002

GGSCI (oractg01.edutronic.pe) 7> shell uname -a


Linux oractg01.edutronic.pe 5.4.17-2011.1.2.el8uek.x86_64 #2 SMP Mon Apr 20 22:10:46 PDT 2020 x86_64 x86_64 x86_64
GNU/Linux

GGSCI (oractg01.edutronic.pe) 8> shell date

Thu Aug 18 20:33:00 -05 2022

GGSCI (oractg01.edutronic.pe) 9>

GGSCI (oractg01.edutronic.pe) 9> exit


[oracle@oractg01 GoldenGate19c]$ scp /tmp/monitor.oby 172.168.1.101:/tmp/monitor.oby
The authenticity of host '172.168.1.101 (172.168.1.101)' can't be established.
ECDSA key fingerprint is SHA256:+PQAYfsdQKsK/g9/T1m1KT/Rly4zVYmTjrFRs9MaWfI.
Are you sure you want to continue connecting (yes/no/[fingerprint])? yes
Warning: Permanently added '172.168.1.101' (ECDSA) to the list of known hosts.
[email protected]'s password:
monitor.oby 100% 81
36.7KB/s 00:00
[oracle@oractg01 GoldenGate19c]$
[oracle@oraprd01 GoldenGate19c]$ ./ggsci

Oracle GoldenGate Command Interpreter for Oracle


Version 19.1.0.0.4 OGGCORE_19.1.0.0.0_PLATFORMS_191017.1054_FBO
Linux, x64, 64bit (optimized), Oracle 19c on Oct 17 2019 21:16:29
Operating system character set identified as UTF-8.

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

GGSCI (oraprd01.edutronic.pe) 1> obey /tmp/monitor.oby

GGSCI (oraprd01.edutronic.pe) 2> shell date

Thu Aug 18 20:34:25 -05 2022

GGSCI (oraprd01.edutronic.pe) 3> info all

Program Status Group Lag at Chkpt Time Since Chkpt

MANAGER RUNNING

GGSCI (oraprd01.edutronic.pe) 4> info mgr

Manager is running (IP port TCP:oraprd01.edutronic.pe.7809, Process ID 13933).

GGSCI (oraprd01.edutronic.pe) 5> shell free -m


total used free shared buff/cache available
Mem: 7953 2252 472 2482 5228 2946
Swap: 8099 43 8056

GGSCI (oraprd01.edutronic.pe) 6> shell df -h

Filesystem Size Used Avail Use% Mounted on


devtmpfs 3.9G 0 3.9G 0% /dev
tmpfs 3.9G 641M 3.3G 17% /dev/shm
tmpfs 3.9G 9.6M 3.9G 1% /run
tmpfs 3.9G 0 3.9G 0% /sys/fs/cgroup
/dev/mapper/ol-root 50G 6.5G 44G 14% /
/dev/mapper/vg_oragrid-lvg_oragrid 80G 9.7G 71G 13% /oragrid
/dev/mapper/vg_oracle-lvg_oracle 80G 13G 68G 16% /oracle
/dev/sda1 1014M 276M 739M 28% /boot
/dev/mapper/ol-home 42G 345M 41G 1% /home
tmpfs 796M 1.2M 795M 1% /run/user/42
tmpfs 796M 32K 796M 1% /run/user/1002

GGSCI (oraprd01.edutronic.pe) 7> shell uname -a

Linux oraprd01.edutronic.pe 5.4.17-2011.1.2.el8uek.x86_64 #2 SMP Mon Apr 20 22:10:46 PDT 2020 x86_64 x86_64 x86_64
GNU/Linux

GGSCI (oraprd01.edutronic.pe) 8> shell date


Thu Aug 18 20:34:31 -05 2022

GGSCI (oraprd01.edutronic.pe) 9>


SINCRONIZACION
—--------------
[oracle@oraprd01 ~]$ sqlplus / as sysdba

SQL*Plus: Release 19.0.0.0.0 - Production on Thu Aug 18 21:03:02 2022


Version 19.3.0.0.0

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

Connected to:
Oracle Database 19c Enterprise Edition Release 19.0.0.0.0 - Production
Version 19.3.0.0.0

SQL> archive log list


Database log mode No Archive Mode
Automatic archival Disabled
Archive destination USE_DB_RECOVERY_FILE_DEST
Oldest online log sequence 5
Current log sequence 7
SQL>
SQL> shutdown immediate;
Database closed.
Database dismounted.

SQL> STARTUP MOUNT


ORACLE instance started.

Total System Global Area 1073737800 bytes


Fixed Size 8904776 bytes
Variable Size 276824064 bytes
Database Buffers 780140544 bytes
Redo Buffers 7868416 bytes
Database mounted.
SQL> ALTER DATABASE ARCHIVELOG;

Database altered.

SQL> ALTER DATABASE OPEN;

Database altered.

SQL>

[oracle@oraprd01 ~]$ mkdir /oracle/backup


[oracle@oraprd01 ~]$ cd /oracle/backup
[oracle@oraprd01 backup]$ pwd
/oracle/backup
[oracle@oraprd01 backup]$ rman target /

RMAN> report schema;

using target database control file instead of recovery catalog


Report of database schema for database with db_unique_name PRD

List of Permanent Datafiles


===========================
File Size(MB) Tablespace RB segs Datafile Name
---- -------- -------------------- ------- ------------------------
1 900 SYSTEM YES +DG_DATA_PRD/PRD/DATAFILE/system.256.1087767667
3 530 SYSAUX NO +DG_DATA_PRD/PRD/DATAFILE/sysaux.257.1087767701
4 340 UNDOTBS1 YES +DG_DATA_PRD/PRD/DATAFILE/undotbs1.258.1087767727
7 5 USERS NO +DG_DATA_PRD/PRD/DATAFILE/users.259.1087767729

List of Temporary Files


=======================
File Size(MB) Tablespace Maxsize(MB) Tempfile Name
---- -------- -------------------- ----------- --------------------
1 32 TEMP 32767 +DG_DATA_PRD/PRD/TEMPFILE/temp.264.1087767795

RMAN>

RMAN> backup database format '/oracle/backup/bkp_db_%U.rman';

Starting backup at 18-08-2022 21:06:43


allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=39 device type=DISK
channel ORA_DISK_1: starting full datafile backup set
channel ORA_DISK_1: specifying datafile(s) in backup set
input datafile file number=00001 name=+DG_DATA_PRD/PRD/DATAFILE/system.256.1087767667
input datafile file number=00003 name=+DG_DATA_PRD/PRD/DATAFILE/sysaux.257.1087767701
input datafile file number=00004 name=+DG_DATA_PRD/PRD/DATAFILE/undotbs1.258.1087767727
input datafile file number=00007 name=+DG_DATA_PRD/PRD/DATAFILE/users.259.1087767729
channel ORA_DISK_1: starting piece 1 at 18-08-2022 21:06:45
channel ORA_DISK_1: finished piece 1 at 18-08-2022 21:07:00
piece handle=/oracle/backup/bkp_db_0115ggv5_1_1.rman tag=TAG20220818T210644 comment=NONE
channel ORA_DISK_1: backup set complete, elapsed time: 00:00:15
Finished backup at 18-08-2022 21:07:00

Starting Control File and SPFILE Autobackup at 18-08-2022 21:07:00


piece handle=+DG_FRA/PRD/AUTOBACKUP/2022_08_18/s_1113080820.264.1113080821 comment=NONE
Finished Control File and SPFILE Autobackup at 18-08-2022 21:07:01

RMAN>
RMAN> backup spfile format '/oracle/backup/bkp_spfile.rman';

Starting backup at 18-08-2022 21:07:34


using channel ORA_DISK_1
channel ORA_DISK_1: starting full datafile backup set
channel ORA_DISK_1: specifying datafile(s) in backup set
including current SPFILE in backup set
channel ORA_DISK_1: starting piece 1 at 18-08-2022 21:07:34
channel ORA_DISK_1: finished piece 1 at 18-08-2022 21:07:35
piece handle=/oracle/backup/bkp_spfile.rman tag=TAG20220818T210734 comment=NONE
channel ORA_DISK_1: backup set complete, elapsed time: 00:00:01
Finished backup at 18-08-2022 21:07:35

Starting Control File and SPFILE Autobackup at 18-08-2022 21:07:35


piece handle=+DG_FRA/PRD/AUTOBACKUP/2022_08_18/s_1113080856.265.1113080857 comment=NONE
Finished Control File and SPFILE Autobackup at 18-08-2022 21:07:36

RMAN>

RMAN> backup archivelog all format '/oracle/backup/bkp_archivelog_%U.rman';

Starting backup at 18-08-2022 21:08:24


current log archived
using channel ORA_DISK_1
channel ORA_DISK_1: starting archived log backup set
channel ORA_DISK_1: specifying archived log(s) in backup set
input archived log thread=1 sequence=7 RECID=1 STAMP=1113080878
input archived log thread=1 sequence=8 RECID=2 STAMP=1113080880
input archived log thread=1 sequence=9 RECID=3 STAMP=1113080881
input archived log thread=1 sequence=10 RECID=4 STAMP=1113080904
channel ORA_DISK_1: starting piece 1 at 18-08-2022 21:08:24
channel ORA_DISK_1: finished piece 1 at 18-08-2022 21:08:25
piece handle=/oracle/backup/bkp_archivelog_0515gh28_1_1.rman tag=TAG20220818T210824 comment=NONE
channel ORA_DISK_1: backup set complete, elapsed time: 00:00:01
Finished backup at 18-08-2022 21:08:25

Starting Control File and SPFILE Autobackup at 18-08-2022 21:08:25


piece handle=+DG_FRA/PRD/AUTOBACKUP/2022_08_18/s_1113080906.270.1113080907 comment=NONE
Finished Control File and SPFILE Autobackup at 18-08-2022 21:08:27

RMAN>

RMAN> backup current controlfile format '/oracle/backup/bkp_controlfile.rman';

Starting backup at 18-08-2022 21:09:18


using channel ORA_DISK_1
channel ORA_DISK_1: starting full datafile backup set
channel ORA_DISK_1: specifying datafile(s) in backup set
including current control file in backup set
channel ORA_DISK_1: starting piece 1 at 18-08-2022 21:09:19
channel ORA_DISK_1: finished piece 1 at 18-08-2022 21:09:20
piece handle=/oracle/backup/bkp_controlfile.rman tag=TAG20220818T210918 comment=NONE
channel ORA_DISK_1: backup set complete, elapsed time: 00:00:01
Finished backup at 18-08-2022 21:09:21

Starting Control File and SPFILE Autobackup at 18-08-2022 21:09:21


piece handle=+DG_FRA/PRD/AUTOBACKUP/2022_08_18/s_1113080961.271.1113080961 comment=NONE
Finished Control File and SPFILE Autobackup at 18-08-2022 21:09:22

RMAN>

SQL> create pfile='/oracle/backup/initPRD.ora' from spfile;

File created.

SQL>
[oracle@oraprd01 backup]$ cd $ORACLE_HOME/dbs
[oracle@oraprd01 dbs]$ ls -lrht
total 11M
-rw-r--r-- 1 oracle oinstall 3.1K May 14 2015 init.ora
-rw-r----- 1 oracle asmadmin 24 Nov 4 2021 lkPRD
-rw-r----- 1 oracle oinstall 2.0K Nov 4 2021 orapwPRD
-rw-r----- 1 oracle asmadmin 24 Nov 4 2021 lkQAS
-rw-r----- 1 oracle oinstall 2.0K Nov 4 2021 orapwQAS
-rw-rw---- 1 oracle asmadmin 1.6K Aug 18 19:55 hc_QAS.dat
-rw-rw---- 1 oracle asmadmin 1.6K Aug 18 21:04 hc_PRD.dat
-rw-r----- 1 oracle asmadmin 11M Aug 18 21:09 snapcf_PRD.f
[oracle@oraprd01 dbs]$ cp orapwPRD /oracle/backup/
[oracle@oraprd01 dbs]$

[oracle@oraprd01 dbs]$ cd /oracle/backup/


[oracle@oraprd01 backup]$ ls -lrht
total 1.2G
-rw-r----- 1 oracle asmadmin 1.2G Aug 18 21:06 bkp_db_0115ggv5_1_1.rman
-rw-r----- 1 oracle asmadmin 112K Aug 18 21:07 bkp_spfile.rman
-rw-r----- 1 oracle asmadmin 14M Aug 18 21:08 bkp_archivelog_0515gh28_1_1.rman
-rw-r----- 1 oracle asmadmin 11M Aug 18 21:09 bkp_controlfile.rman
-rw-r--r-- 1 oracle asmadmin 1.1K Aug 18 21:10 initPRD.ora
-rw-r----- 1 oracle oinstall 2.0K Aug 18 21:10 orapwPRD
[oracle@oraprd01 backup]$ scp * 172.168.1.201:/oracle/backup/
The authenticity of host '172.168.1.201 (172.168.1.201)' can't be established.
ECDSA key fingerprint is SHA256:+PQAYfsdQKsK/g9/T1m1KT/Rly4zVYmTjrFRs9MaWfI.
Are you sure you want to continue connecting (yes/no/[fingerprint])? yes
Warning: Permanently added '172.168.1.201' (ECDSA) to the list of known hosts.
[email protected]'s password:
bkp_archivelog_0515gh28_1_1.rman 100% 14MB 28.0MB/s 00:00
bkp_controlfile.rman 100% 10MB 28.9MB/s 00:00
bkp_db_0115ggv5_1_1.rman 100% 1185MB 78.8MB/s 00:15
bkp_spfile.rman 100% 112KB 31.6MB/s 00:00
initPRD.ora 100% 1107 1.1MB/s 00:00
orapwPRD 100% 2048 1.5MB/s 00:00
[oracle@oraprd01 backup]$
[oracle@oractg01 backup]$ cp initPRD.ora orapwPRD $ORACLE_HOME/dbs

[oracle@oractg01 backup]$ cd $ORACLE_HOME/dbs


[oracle@oractg01 dbs]$ vi initPRD.ora
remover LISTENER_PRD

[oracle@oractg01 dbs]$ ls -lrht


total 12K
-rw-r--r-- 1 oracle oinstall 3.1K May 14 2015 init.ora
-rw-r----- 1 oracle oinstall 2.0K Aug 18 21:14 orapwPRD
-rw-r--r-- 1 oracle oinstall 1.1K Aug 18 21:15 initPRD.ora
[oracle@oractg01 dbs]$ sqlplus / as sysdba

SQL*Plus: Release 19.0.0.0.0 - Production on Thu Aug 18 21:15:55 2022


Version 19.3.0.0.0

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

Connected to an idle instance.

SQL> create spfile from pfile;

File created.

SQL> startup nomount

ORA-09925: Unable to create audit trail file


Linux-x86_64 Error: 2: No such file or directory
Additional information: 9925
SQL> exit
Disconnected
[oracle@oractg01 dbs]$ vi initPRD.ora
[oracle@oractg01 dbs]$ mkdir -p /oracle/admin/PRD/adump
[oracle@oractg01 dbs]$ sqlplus / as sysdba

SQL*Plus: Release 19.0.0.0.0 - Production on Thu Aug 18 21:17:00 2022


Version 19.3.0.0.0

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

Connected to an idle instance.

SQL> startup nomount

ORACLE instance started.

Total System Global Area 1073737800 bytes


Fixed Size 8904776 bytes
Variable Size 276824064 bytes
Database Buffers 780140544 bytes
Redo Buffers 7868416 bytes
SQL>

RMAN> restore controlfile from '/oracle/backup/bkp_controlfile.rman';

Starting restore at 18-08-2022 21:18:52


using target database control file instead of recovery catalog
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=259 device type=DISK

channel ORA_DISK_1: restoring control file


channel ORA_DISK_1: restore complete, elapsed time: 00:00:03
output file name=+DG_DATA_PRD/PRD/CONTROLFILE/current.256.1113081535
output file name=+DG_FRA/PRD/CONTROLFILE/current.256.1113081535
Finished restore at 18-08-2022 21:18:57

RMAN>

RMAN> alter database mount;

released channel: ORA_DISK_1


Statement processed

RMAN> restore database;

Starting restore at 18-08-2022 21:19:19


Starting implicit crosscheck backup at 18-08-2022 21:19:20
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=263 device type=DISK
Crosschecked 6 objects
Finished implicit crosscheck backup at 18-08-2022 21:19:21

Starting implicit crosscheck copy at 18-08-2022 21:19:21


using channel ORA_DISK_1
Finished implicit crosscheck copy at 18-08-2022 21:19:21

searching for all files in the recovery area


cataloging files...
no files cataloged
using channel ORA_DISK_1

channel ORA_DISK_1: starting datafile backup set restore


channel ORA_DISK_1: specifying datafile(s) to restore from backup set
channel ORA_DISK_1: restoring datafile 00001 to +DG_DATA_PRD/PRD/DATAFILE/system.256.1087767667
channel ORA_DISK_1: restoring datafile 00003 to +DG_DATA_PRD/PRD/DATAFILE/sysaux.257.1087767701
channel ORA_DISK_1: restoring datafile 00004 to +DG_DATA_PRD/PRD/DATAFILE/undotbs1.258.1087767727
channel ORA_DISK_1: restoring datafile 00007 to +DG_DATA_PRD/PRD/DATAFILE/users.259.1087767729
channel ORA_DISK_1: reading from backup piece /oracle/backup/bkp_db_0115ggv5_1_1.rman
channel ORA_DISK_1: piece handle=/oracle/backup/bkp_db_0115ggv5_1_1.rman tag=TAG20220818T210644
channel ORA_DISK_1: restored backup piece 1
channel ORA_DISK_1: restore complete, elapsed time: 00:00:16
Finished restore at 18-08-2022 21:19:38

RMAN> recover database preview;

Starting recover at 18-08-2022 21:20:05


using channel ORA_DISK_1
using channel ORA_DISK_1

List of Backup Sets


===================

BS Key Size Device Type Elapsed Time Completion Time


------- ---------- ----------- ------------ -------------------
5 13.83M DISK 00:00:00 18-08-2022 21:08:24
BP Key: 5 Status: AVAILABLE Compressed: NO Tag: TAG20220818T210824
Piece Name: /oracle/backup/bkp_archivelog_0515gh28_1_1.rman
List of Archived Logs in backup set 5
Thrd Seq Low SCN Low Time Next SCN Next Time
---- ------- ---------- ------------------- ---------- ---------
1 7 2195248 18-08-2022 19:55:30 2202112 18-08-2022 21:07:57
1 8 2202112 18-08-2022 21:07:57 2202124 18-08-2022 21:08:00
1 9 2202124 18-08-2022 21:08:00 2202136 18-08-2022 21:08:01
1 10 2202136 18-08-2022 21:08:01 2202156 18-08-2022 21:08:24
recovery will be done up to SCN 2202025
Media recovery start SCN is 2202025
Recovery must be done beyond SCN 2202025 to clear datafile fuzziness
Finished recover at 18-08-2022 21:20:06

RMAN> recover database until scn 2202025;

Starting recover at 18-08-2022 21:20:25


using channel ORA_DISK_1

starting media recovery


media recovery complete, elapsed time: 00:00:00

Finished recover at 18-08-2022 21:20:26

RMAN> alter database open resetlogs;


En ambos servidores:

SQL> select SUPPLEMENTAL_LOG_DATA_MIN, FORCE_LOGGING from v$database;

SUPPLEME FORCE_LOGGING
-------- ---------------------------------------
NO NO

SQL>

SQL> alter database force logging;

Database altered.

SQL> alter database add supplemental log data;

Database altered.

SQL>

SQL> select SUPPLEMENTAL_LOG_DATA_MIN, FORCE_LOGGING from v$database;

SUPPLEME FORCE_LOGGING
-------- ---------------------------------------
YES YES

SQL>

SQL> show parameter golden

NAME TYPE VALUE


------------------------------------ ----------- ------------------------------
enable_goldengate_replication boolean FALSE
resource_manage_goldengate boolean FALSE
SQL> alter system set enable_goldengate_replication=TRUE;

System altered.

SQL> show parameter golden

NAME TYPE VALUE


------------------------------------ ----------- ------------------------------
enable_goldengate_replication boolean TRUE
resource_manage_goldengate boolean FALSE
SQL>

SQL> create tablespace golden_gate_data;

Tablespace created.

SQL> create user ggate_user identified by oracle default tablespace golden_gate_data;

User created.

SQL> grant dba,create session to ggate_user;

Grant succeeded.

SQL> execute dbms_goldengate_auth.grant_admin_privilege('ggate_user');

PL/SQL procedure successfully completed.


[oracle@oraprd01 GoldenGate19c]$ cd
[oracle@oraprd01 ~]$ vi .ogg19c.env
export ORACLE_HOSTNAME=oraprd01.edutronic.pe
export ORACLE_BASE=/oracle
export ORACLE_HOME=/oracle/product/19c
export GOLDENGATE_HOME=/oracle/product/GoldenGate19c
export ORACLE_SID=PRD
export PATH=$ORACLE_HOME/bin:$ORACLE_HOME/OPatch:$GOLDENGATE_HOME:$PATH
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib
export CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib
export NLS_DATE_FORMAT='DD-MM-YYYY HH24:MI:SS'
export TMP=/tmp
export TMPDIR=$TMP
export CV_ASSUME_DISTID=OEL7.8
alias ggsci='cd $GOLDENGATE_HOME; ./ggsci'

[oracle@oraprd01 ~]$
[oracle@oractg01 ~]$ vi .ogg19c.env
export ORACLE_HOSTNAME=oractg01.edutronic.pe
export ORACLE_BASE=/oracle
export ORACLE_HOME=/oracle/product/19c
export GOLDENGATE_HOME=/oracle/product/GoldenGate19c
export ORACLE_SID=PRD
export PATH=$ORACLE_HOME/bin:$ORACLE_HOME/OPatch:$GOLDENGATE_HOME:$PATH
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib
export CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib
export NLS_DATE_FORMAT='DD-MM-YYYY HH24:MI:SS'
export TMP=/tmp
export TMPDIR=$TMP
export CV_ASSUME_DISTID=OEL7.8
alias ggsci='cd $GOLDENGATE_HOME; ./ggsci'

[oracle@oractg01 ~]$

[oracle@oractg01 ~]$ . .ogg19c.env


[oracle@oractg01 ~]$ ggsci

GGSCI (oractg01.edutronic.pe) 1> versions

2022-08-18 21:44:25 ERROR OGG-15312 Cannot obtain database version information because verification
of database login failed with next error: Not logged into database, use DBLOGIN.

Operating System:
Linux
Version #2 SMP Mon Apr 20 22:10:46 PDT 2020, Release 5.4.17-2011.1.2.el8uek.x86_64
Node: oractg01.edutronic.pe
Machine: Linux
GGSCI (oractg01.edutronic.pe) 3> dblogin userid ggate_user, password oracle
Successfully logged into database.

GGSCI (oractg01.edutronic.pe as ggate_user@PRD) 4> versions

Operating System:
Linux
Version #2 SMP Mon Apr 20 22:10:46 PDT 2020, Release 5.4.17-2011.1.2.el8uek.x86_64
Node: oractg01.edutronic.pe
Machine: Linux

Database:
Oracle Database 19c Enterprise Edition Release 19.0.0.0.0 - Production
GGSCI (oractg01.edutronic.pe as ggate_user@PRD) 5>
[oracle@oraprd01 ~]$ ggsci

Oracle GoldenGate Command Interpreter for Oracle


Version 19.1.0.0.4 OGGCORE_19.1.0.0.0_PLATFORMS_191017.1054_FBO
Linux, x64, 64bit (optimized), Oracle 19c on Oct 17 2019 21:16:29
Operating system character set identified as UTF-8.

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

GGSCI (oraprd01.edutronic.pe) 1> dblogin userid ggate_user, password oracle


Successfully logged into database.

GGSCI (oraprd01.edutronic.pe as ggate_user@PRD) 2> versions

Operating System:
Linux
Version #2 SMP Mon Apr 20 22:10:46 PDT 2020, Release 5.4.17-2011.1.2.el8uek.x86_64
Node: oraprd01.edutronic.pe
Machine: Linux

Database:
Oracle Database 19c Enterprise Edition Release 19.0.0.0.0 - Production
GGSCI (oraprd01.edutronic.pe as ggate_user@PRD) 3>
GGSCI (oraprd01.edutronic.pe as ggate_user@PRD) 3> info mgr

Manager is running (IP port TCP:oraprd01.edutronic.pe.7809, Process ID 13933).

GGSCI (oraprd01.edutronic.pe as ggate_user@PRD) 4> 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 (oraprd01.edutronic.pe as ggate_user@PRD) 5> edit params mgr

GGSCI (oraprd01.edutronic.pe as ggate_user@PRD) 6> view params mgr

PORT 1976

GGSCI (oraprd01.edutronic.pe as ggate_user@PRD) 7> start mgr


Manager started.

GGSCI (oraprd01.edutronic.pe as ggate_user@PRD) 8> info mgr

Manager is running (IP port TCP:oraprd01.edutronic.pe.1976, Process ID 29085).


GGSCI (oractg01.edutronic.pe as ggate_user@PRD) 5> info mgr

Manager is running (IP port TCP:oractg01.edutronic.pe.7809, Process ID 12757).

GGSCI (oractg01.edutronic.pe as ggate_user@PRD) 6> edit params mgr

GGSCI (oractg01.edutronic.pe as ggate_user@PRD) 7> 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 (oractg01.edutronic.pe as ggate_user@PRD) 8> start mgr


Manager started.

GGSCI (oractg01.edutronic.pe as ggate_user@PRD) 9> info mgr

Manager is running (IP port TCP:oractg01.edutronic.pe.1976, Process ID 26056).

GGSCI (oractg01.edutronic.pe as ggate_user@PRD) 10>


[oracle@oraprd01 GoldenGate19c]$ sqlplus / as sysdba

SQL*Plus: Release 19.0.0.0.0 - Production on Thu Aug 18 21:54:50 2022


Version 19.3.0.0.0

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

Connected to:
Oracle Database 19c Enterprise Edition Release 19.0.0.0.0 - Production
Version 19.3.0.0.0

SQL> select * from hr.regions;

REGION_ID REGION_NAME
---------- -------------------------
1 Europe
2 Americas
3 Asia
4 Middle East and Africa

SQL>

SQL> create table hr.alummos (id number, name varchar2(20));

Table created.

SQL> create user hr_dev identified by hr quota unlimited on users;

User created.
SQL> create table hr_dev.alummos (id number, name varchar2(20));

Table created.

SQL> select * from hr.alummos;

no rows selected

SQL> select * from hr_dev.alummos;

no rows selected

SQL>
GGSCI (oraprd01.edutronic.pe as ggate_user@PRD) 2> add trandata hr.alummos

2022-08-18 21:58:50 WARNING OGG-06439 No unique key is defined for table ALUMMOS. All viable columns
will be used to represent the key, but may not guarantee uniqueness. KEYCOLS may be used to define the
key.

2022-08-18 21:58:50 INFO OGG-15130 No key found for table HR.ALUMMOS. All viable columns will be
logged.

2022-08-18 21:58:50 INFO OGG-15132 Logging of supplemental redo data enabled for table HR.ALUMMOS.

2022-08-18 21:58:51 INFO OGG-15133 TRANDATA for scheduling columns has been added on table
HR.ALUMMOS.

2022-08-18 21:58:51 INFO OGG-15135 TRANDATA for instantiation CSN has been added on table
HR.ALUMMOS.

2022-08-18 21:58:52 INFO OGG-10471 ***** Oracle Goldengate support information on table HR.ALUMMOS
*****
Oracle Goldengate support native capture on table HR.ALUMMOS.
Oracle Goldengate marked following column as key columns on table HR.ALUMMOS: ID, NAME
No unique key is defined for table HR.ALUMMOS.

GGSCI (oraprd01.edutronic.pe as ggate_user@PRD) 3>


GGSCI (oraprd01.edutronic.pe as ggate_user@PRD) 4> edit params PRDEXT

EXTRACT PRDEXT
EXTTRAIL ./dirdat/px
TRANLOGOPTIONS DBLOGREADER
USERID ggate_user, PASSWORD oracle
TABLE HR.alumnos;

GGSCI (oraprd01.edutronic.pe as ggate_user@PRD) 5> view params PRDEXT

EXTRACT PRDEXT
EXTTRAIL ./dirdat/px
TRANLOGOPTIONS DBLOGREADER
USERID ggate_user, PASSWORD oracle
TABLE HR.alumnos;

GGSCI (oraprd01.edutronic.pe as ggate_user@PRD) 6>

GGSCI (oraprd01.edutronic.pe as ggate_user@PRD) 6> add extract PRDEXT, tranlog, begin now
EXTRACT added.

GGSCI (oraprd01.edutronic.pe as ggate_user@PRD) 7> info all

Program Status Group Lag at Chkpt Time Since Chkpt

MANAGER RUNNING
EXTRACT STOPPED PRDEXT 00:00:00 00:00:03
GGSCI (oraprd01.edutronic.pe as ggate_user@PRD) 8> add EXTTRAIL ./dirdat/px, EXTRACT PRDEXT
EXTTRAIL added.

GGSCI (oraprd01.edutronic.pe as ggate_user@PRD) 9> info all

Program Status Group Lag at Chkpt Time Since Chkpt

MANAGER RUNNING
EXTRACT STOPPED PRDEXT 00:00:00 00:01:33

GGSCI (oraprd01.edutronic.pe as ggate_user@PRD) 10> start EXTRACT PRDEXT

Sending START request to MANAGER ...


EXTRACT PRDEXT starting

GGSCI (oraprd01.edutronic.pe as ggate_user@PRD) 11> info all

Program Status Group Lag at Chkpt Time Since Chkpt

MANAGER RUNNING
EXTRACT RUNNING PRDEXT 00:01:44 00:00:01

GGSCI (oraprd01.edutronic.pe as ggate_user@PRD) 12> info all

Program Status Group Lag at Chkpt Time Since Chkpt

MANAGER RUNNING
EXTRACT RUNNING PRDEXT 00:01:44 00:00:06
GGSCI (oraprd01.edutronic.pe as ggate_user@PRD) 15> info PRDEXT

EXTRACT PRDEXT Last Started 2022-08-18 22:05 Status RUNNING


Checkpoint Lag 00:00:00 (updated 00:00:04 ago)
Process ID 31094
Log Read Checkpoint Oracle Redo Logs
2022-08-18 22:07:02 Seqno 11, RBA 50777088
SCN 0.2227957 (2227957)

GGSCI (oraprd01.edutronic.pe as ggate_user@PRD) 16>

GGSCI (oraprd01.edutronic.pe as ggate_user@PRD) 16> stats PRDEXT

Sending STATS request to EXTRACT PRDEXT ...

No active extraction maps.

GGSCI (oraprd01.edutronic.pe as ggate_user@PRD) 17> info all

Program Status Group Lag at Chkpt Time Since Chkpt

MANAGER RUNNING
EXTRACT RUNNING PRDEXT 00:00:00 00:00:04

GGSCI (oraprd01.edutronic.pe as ggate_user@PRD) 18>

GGSCI (oraprd01.edutronic.pe as ggate_user@PRD) 18> edit params PRDREP


REPLICAT PRDREP
USERID ggate_user, PASSWORD oracle
ASSUMETARGETDEFS
MAP HR.ALUMNOS, HR_DEV.ALUMNOS;

GGSCI (oraprd01.edutronic.pe as ggate_user@PRD) 19> view params PRDREP

REPLICAT PRDREP
USERID ggate_user, PASSWORD oracle
ASSUMETARGETDEFS
MAP HR.alummos, TARGET HR_DEV.alummos;

GGSCI (oraprd01.edutronic.pe as ggate_user@PRD) 20>


GGSCI (oraprd01.edutronic.pe as ggate_user@PRD) 20> add replicat PRDREP, EXTTRAIL ./dirdat/px
NODBCHECKPOINT
REPLICAT added.

GGSCI (oraprd01.edutronic.pe as ggate_user@PRD) 21> info all

Program Status Group Lag at Chkpt Time Since Chkpt

MANAGER RUNNING
EXTRACT RUNNING PRDEXT 00:00:00 00:00:03
REPLICAT STOPPED PRDREP 00:00:00 00:00:05

GGSCI (oraprd01.edutronic.pe as ggate_user@PRD) 22> start REPLICAT PRDREP

Sending START request to MANAGER ...


REPLICAT PRDREP starting

GGSCI (oraprd01.edutronic.pe as ggate_user@PRD) 23> info all

Program Status Group Lag at Chkpt Time Since Chkpt

MANAGER RUNNING
EXTRACT RUNNING PRDEXT 00:00:00 00:00:08
REPLICAT RUNNING PRDREP 00:00:00 00:00:02

GGSCI (oraprd01.edutronic.pe as ggate_user@PRD) 24>


GGSCI (oraprd01.edutronic.pe as ggate_user@PRD) 27> info mgr

Manager is running (IP port TCP:oraprd01.edutronic.pe.1976, Process ID 29085).

GGSCI (oraprd01.edutronic.pe as ggate_user@PRD) 28> info all

Program Status Group Lag at Chkpt Time Since Chkpt

MANAGER RUNNING
EXTRACT RUNNING PRDEXT 00:00:00 00:00:05
REPLICAT RUNNING PRDREP 00:00:00 00:00:02

GGSCI (oraprd01.edutronic.pe as ggate_user@PRD) 29> stop EXTRACT PRDEXT

Sending STOP request to EXTRACT PRDEXT ...


Request processed.

GGSCI (oraprd01.edutronic.pe as ggate_user@PRD) 30> edit params PRDEXT

GGSCI (oraprd01.edutronic.pe as ggate_user@PRD) 31> info all

Program Status Group Lag at Chkpt Time Since Chkpt

MANAGER RUNNING
EXTRACT STOPPED PRDEXT 00:00:00 00:00:35
REPLICAT RUNNING PRDREP 00:00:00 00:00:07
GGSCI (oraprd01.edutronic.pe as ggate_user@PRD) 32> edit params PRDREP

GGSCI (oraprd01.edutronic.pe as ggate_user@PRD) 33>

GGSCI (oraprd01.edutronic.pe as ggate_user@PRD) 33> stop REPLICAT PRDREP

Sending STOP request to REPLICAT PRDREP ...


Request processed.

GGSCI (oraprd01.edutronic.pe as ggate_user@PRD) 34> stop *


EXTRACT PRDEXT is already stopped.
REPLICAT PRDREP is already stopped.

GGSCI (oraprd01.edutronic.pe as ggate_user@PRD) 35> info all

Program Status Group Lag at Chkpt Time Since Chkpt

MANAGER RUNNING
EXTRACT STOPPED PRDEXT 00:00:00 00:01:28
REPLICAT STOPPED PRDREP 00:00:00 00:00:09

GGSCI (oraprd01.edutronic.pe as ggate_user@PRD) 36> start *

Sending START request to MANAGER ...


EXTRACT PRDEXT starting

Sending START request to MANAGER ...


REPLICAT PRDREP starting

GGSCI (oraprd01.edutronic.pe as ggate_user@PRD) 37> info all

Program Status Group Lag at Chkpt Time Since Chkpt

MANAGER RUNNING
EXTRACT RUNNING PRDEXT 00:00:00 00:00:02
REPLICAT RUNNING PRDREP 00:00:00 00:00:02

GGSCI (oraprd01.edutronic.pe as ggate_user@PRD) 38>


[oracle@oraprd01 ~]$ . .ogg19c.env
[oracle@oraprd01 ~]$ ggsci

Oracle GoldenGate Command Interpreter for Oracle


Version 19.1.0.0.4 OGGCORE_19.1.0.0.0_PLATFORMS_191017.1054_FBO
Linux, x64, 64bit (optimized), Oracle 19c on Oct 17 2019 21:16:29
Operating system character set identified as UTF-8.

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

GGSCI (oraprd01.edutronic.pe) 1> info all

Program Status Group Lag at Chkpt Time Since Chkpt

MANAGER STOPPED
EXTRACT STOPPED PRDEXT 00:00:00 118:44:05
REPLICAT STOPPED PRDREP 00:00:00 118:44:04

GGSCI (oraprd01.edutronic.pe) 2> info mgr

Manager is DOWN!

GGSCI (oraprd01.edutronic.pe) 3> start mgr


Manager started.

GGSCI (oraprd01.edutronic.pe) 4> info mgr


Manager is running (IP port TCP:oraprd01.edutronic.pe.1976, Process ID 10247).

GGSCI (oraprd01.edutronic.pe) 5>


[oracle@oractg01 ~]$ . .ogg19c.env
[oracle@oractg01 ~]$ ggsci

Oracle GoldenGate Command Interpreter for Oracle


Version 19.1.0.0.4 OGGCORE_19.1.0.0.0_PLATFORMS_191017.1054_FBO
Linux, x64, 64bit (optimized), Oracle 19c on Oct 17 2019 21:16:29
Operating system character set identified as UTF-8.

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

GGSCI (oractg01.edutronic.pe) 1> info all

Program Status Group Lag at Chkpt Time Since Chkpt

MANAGER STOPPED

GGSCI (oractg01.edutronic.pe) 2> start mgr


Manager started.

GGSCI (oractg01.edutronic.pe) 3> info all

Program Status Group Lag at Chkpt Time Since Chkpt

MANAGER RUNNING

GGSCI (oractg01.edutronic.pe) 4>


[oracle@oraprd01 GoldenGate19c]$ cd dirprm
[oracle@oraprd01 dirprm]$ ls -lrht
total 12K
-rw-r--r-- 1 oracle oinstall 11 Aug 18 21:50 mgr.prm
-rw-r----- 1 oracle oinstall 116 Aug 18 22:17 prdext.prm
-rw-r----- 1 oracle oinstall 107 Aug 18 22:23 prdrep.prm
[oracle@oraprd01 dirprm]$
Em ambos servers

PRD =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = oraprd01.edutronic.pe)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = PRD.edutronic.pe)
)
)

CTG =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = oractg01.edutronic.pe)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = PRD.edutronic.pe)
)
)

vi /etc/hosts
172.168.1.201 oractg01.edutronic.pe oractg01
172.168.1.101 oraprd01.edutronic.pe oraprd01
[oracle@oraprd01 admin]$ tnsping PRD

TNS Ping Utility for Linux: Version 19.0.0.0.0 - Production on 23-AUG-2022 21:52:00

Copyright (c) 1997, 2019, Oracle. All rights reserved.

Used parameter files:

Used TNSNAMES adapter to resolve the alias


Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = oraprd01.edutronic.pe)(PORT =
1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = PRD.edutronic.pe)))
OK (0 msec)
[oracle@oraprd01 admin]$ tnsping CTG

TNS Ping Utility for Linux: Version 19.0.0.0.0 - Production on 23-AUG-2022 21:52:02

Copyright (c) 1997, 2019, Oracle. All rights reserved.

Used parameter files:

Used TNSNAMES adapter to resolve the alias


Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = oractg01.edutronic.pe)(PORT =
1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = PRD.edutronic.pe)))
OK (10 msec)
[oracle@oraprd01 admin]$
[oracle@oractg01 admin]$ tnsping CTG

TNS Ping Utility for Linux: Version 19.0.0.0.0 - Production on 23-AUG-2022 21:52:17

Copyright (c) 1997, 2019, Oracle. All rights reserved.

Used parameter files:

Used TNSNAMES adapter to resolve the alias


Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = oractg01.edutronic.pe)(PORT =
1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = PRD.edutronic.pe)))
OK (0 msec)
[oracle@oractg01 admin]$ tnsping PRD

TNS Ping Utility for Linux: Version 19.0.0.0.0 - Production on 23-AUG-2022 21:52:21

Copyright (c) 1997, 2019, Oracle. All rights reserved.

Used parameter files:

Used TNSNAMES adapter to resolve the alias


Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = oraprd01.edutronic.pe)(PORT =
1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = PRD.edutronic.pe)))
OK (0 msec)
[oracle@oractg01 admin]$
GGSCI (oraprd01.edutronic.pe) 2> edit params PRDEXT2

EXTRACT PRDEXT2
EXTTRAIL ./dirdat/py
TRANLOGOPTIONS DBLOGREADER
USERID GGATE_USER@PRD, PASSWORD oracle
TABLE HR.REGIONS;

GGSCI (oraprd01.edutronic.pe) 3> add extract PRDEXT2, TRANLOG, BEGIN NOW


EXTRACT added.

GGSCI (oraprd01.edutronic.pe) 4> add exttrail ./dirdat/py, EXTRACT PRDEXT2, MEGABYTES 10


EXTTRAIL added.

GGSCI (oraprd01.edutronic.pe) 5> info all

Program Status Group Lag at Chkpt Time Since Chkpt

MANAGER RUNNING
EXTRACT STOPPED PRDEXT 00:00:00 119:30:42
EXTRACT STOPPED PRDEXT2 00:00:00 00:00:59
REPLICAT STOPPED PRDREP 00:00:00 119:30:42

GGSCI (oraprd01.edutronic.pe) 6> start EXTRACT PRDEXT2

Sending START request to MANAGER ...


EXTRACT PRDEXT2 starting
GGSCI (oraprd01.edutronic.pe) 12> edit params PRDPUMP2

GGSCI (oraprd01.edutronic.pe) 12> edit params PRDPUMP2

GGSCI (oraprd01.edutronic.pe) 13> view params PRDPUMP2

EXTRACT PRDPUMP2
RMTHOST oractg01, MGRPORT 1976
RMTTRAIL ./dirdat/pr
PASSTHRU
TABLE HR.REGIONS;

GGSCI (oraprd01.edutronic.pe) 14>

GGSCI (oraprd01.edutronic.pe) 14> add extract PRDPUMP2 EXTTRAILSOURCE ./dirdat/py


EXTRACT added.

GGSCI (oraprd01.edutronic.pe) 15> add rmttrail ./dirdat/pr, extract PRDPUMP2


RMTTRAIL added.

GGSCI (oraprd01.edutronic.pe) 16> info all

Program Status Group Lag at Chkpt Time Since Chkpt

MANAGER RUNNING
EXTRACT STOPPED PRDEXT 00:00:00 119:43:37
EXTRACT RUNNING PRDEXT2 00:00:00 00:00:03
EXTRACT STOPPED PRDPUMP2 00:00:00 00:00:55
REPLICAT STOPPED PRDREP 00:00:00 119:43:36

GGSCI (oraprd01.edutronic.pe) 17> start EXTRACT PRDPUMP2

Sending START request to MANAGER ...


EXTRACT PRDPUMP2 starting

GGSCI (oraprd01.edutronic.pe) 18>

GGSCI (oraprd01.edutronic.pe) 22> info EXTRACT PRDPUMP2

EXTRACT PRDPUMP2 Last Started 2022-08-23 22:11 Status RUNNING


Checkpoint Lag 00:00:00 (updated 00:00:08 ago)
Process ID 23659
Log Read Checkpoint File /oracle/product/GoldenGate19c/dirdat/py000000000
First Record RBA 1311

GGSCI (oraprd01.edutronic.pe) 23>


GGSCI (oractg01.edutronic.pe) 2> edit params PRDREP2
REPLICAT PRDREP2
USERID GGATE_USER@CTG, PASSWORD oracle
ASSUMETARGETDEFS
MAP HR.REGIONS, TARGET HR.REGIONS;

GGSCI (oractg01.edutronic.pe) 4> add REPLICAT PRDREP2, exttrail ./dirdat/pr nodbcheckpoint


REPLICAT added.

GGSCI (oractg01.edutronic.pe) 5> info all

Program Status Group Lag at Chkpt Time Since Chkpt

MANAGER RUNNING
REPLICAT STOPPED PRDREP2 00:00:00 00:00:14

GGSCI (oractg01.edutronic.pe) 6> start REPLICAT PRDREP2

Sending START request to MANAGER ...


REPLICAT PRDREP2 starting

GGSCI (oractg01.edutronic.pe) 7>


[oracle@oraprd01 GoldenGate19c]$ sqlplus / as sysdba

SQL*Plus: Release 19.0.0.0.0 - Production on Tue Aug 23 22:31:51 2022


Version 19.3.0.0.0

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

Connected to:
Oracle Database 19c Enterprise Edition Release 19.0.0.0.0 - Production
Version 19.3.0.0.0

SQL> select * from hr.regions;

REGION_ID REGION_NAME
---------- -------------------------
1 Europe
2 Americas
3 Asia
4 Middle East and Africa

SQL> insert into hr.regions values (5,'Lima');

1 row created.

SQL> commit;

Commit complete.

SQL> insert into hr.regions values (6,'Huancayo');


1 row created.

SQL> commit;

Commit complete.

SQL>
[oracle@oractg01 GoldenGate19c]$ sqlplus / as sysdba

SQL*Plus: Release 19.0.0.0.0 - Production on Tue Aug 23 22:32:33 2022


Version 19.3.0.0.0

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

Connected to:
Oracle Database 19c Enterprise Edition Release 19.0.0.0.0 - Production
Version 19.3.0.0.0

SQL> select * from hr.regions;

REGION_ID REGION_NAME
---------- -------------------------
1 Europe
2 Americas
3 Asia
4 Middle East and Africa
5 Lima

SQL> select * from hr.regions;

REGION_ID REGION_NAME
---------- -------------------------
1 Europe
2 Americas
3 Asia
4 Middle East and Africa
5 Lima
SQL> select * from hr.regions;

REGION_ID REGION_NAME
---------- -------------------------
1 Europe
2 Americas
3 Asia
4 Middle East and Africa
5 Lima
6 Huancayo

6 rows selected.

SQL> SQL> select * from hr.regions;

REGION_ID REGION_NAME
---------- -------------------------
1 Europe
2 Americas
3 Asia
4 Middle East and Africa
5 Lima
6 Huancayo

6 rows selected.

SQL> exit
Disconnected from Oracle Database 19c Enterprise Edition Release 19.0.0.0.0 - Production
Version 19.3.0.0.0
[oracle@oractg01 GoldenGate19c]$ ggsci

Oracle GoldenGate Command Interpreter for Oracle


Version 19.1.0.0.4 OGGCORE_19.1.0.0.0_PLATFORMS_191017.1054_FBO
Linux, x64, 64bit (optimized), Oracle 19c on Oct 17 2019 21:16:29
Operating system character set identified as UTF-8.

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

GGSCI (oractg01.edutronic.pe) 1> info all

Program Status Group Lag at Chkpt Time Since Chkpt

MANAGER RUNNING
REPLICAT RUNNING PRDREP2 00:00:00 00:00:05

GGSCI (oractg01.edutronic.pe) 2> stats REPLICAT PRDREP2

Sending STATS request to REPLICAT PRDREP2 ...

Start of Statistics at 2022-08-23 22:34:18.

Replicating from HR.REGIONS to HR.REGIONS:

*** Total statistics since 2022-08-23 22:32:29 ***


Total inserts 2.00
Total updates 0.00
Total deletes 0.00
Total upserts 0.00
Total discards 0.00
Total operations 2.00

*** Daily statistics since 2022-08-23 22:32:29 ***


Total inserts 2.00
Total updates 0.00
Total deletes 0.00
Total upserts 0.00
Total discards 0.00
Total operations 2.00

*** Hourly statistics since 2022-08-23 22:32:29 ***


Total inserts 2.00
Total updates 0.00
Total deletes 0.00
Total upserts 0.00
Total discards 0.00
Total operations 2.00

*** Latest statistics since 2022-08-23 22:32:29 ***


Total inserts 2.00
Total updates 0.00
Total deletes 0.00
Total upserts 0.00
Total discards 0.00
Total operations 2.00

End of Statistics.
GGSCI (oraprd01.edutronic.pe) 1> info all

Program Status Group Lag at Chkpt Time Since Chkpt

MANAGER RUNNING
EXTRACT STOPPED PRDEXT 00:00:00 120:11:33
EXTRACT RUNNING PRDEXT2 00:00:01 00:00:02
EXTRACT RUNNING PRDPUMP2 00:00:00 00:00:06
REPLICAT STOPPED PRDREP 00:00:00 120:11:32

GGSCI (oraprd01.edutronic.pe) 2> stop EXTRACT *2

Sending STOP request to EXTRACT PRDEXT2 ...


Request processed.

Sending STOP request to EXTRACT PRDPUMP2 ...


Request processed.

GGSCI (oraprd01.edutronic.pe) 3> start EXTRACT *2

Sending START request to MANAGER ...


EXTRACT PRDEXT2 starting

Sending START request to MANAGER ...


EXTRACT PRDPUMP2 starting

GGSCI (oraprd01.edutronic.pe) 4> stop ER *2


Sending STOP request to EXTRACT PRDEXT2 ...
Request processed.

Sending STOP request to EXTRACT PRDPUMP2 ...


Request processed.

GGSCI (oraprd01.edutronic.pe) 5>

GGSCI (oraprd01.edutronic.pe) 7> info *

EXTRACT PRDEXT Last Started 2022-08-18 22:18 Status STOPPED


Checkpoint Lag 00:00:00 (updated 120:13:28 ago)
Log Read Checkpoint Oracle Redo Logs
2022-08-18 22:27:26 Seqno 11, RBA 52069376
SCN 0.2232156 (2232156)

EXTRACT PRDEXT2 Last Started 2022-08-23 22:39 Status STOPPED


Checkpoint Lag 00:00:00 (updated 00:00:56 ago)
Log Read Checkpoint Oracle Redo Logs
2022-08-23 22:39:59 Seqno 12, RBA 49595904
SCN 0.2361354 (2361354)

EXTRACT PRDPUMP2 Last Started 2022-08-23 22:39 Status STOPPED


Checkpoint Lag 00:00:00 (updated 00:00:55 ago)
Log Read Checkpoint File /oracle/product/GoldenGate19c/dirdat/py000000001
2022-08-23 22:39:41.667182 RBA 1373

REPLICAT PRDREP Last Started 2022-08-18 22:24 Status STOPPED


Checkpoint Lag 00:00:00 (updated 120:13:27 ago)
Log Read Checkpoint File /oracle/product/GoldenGate19c/dirdat/px000000001
2022-08-18 22:26:37.000000 RBA 2325

GGSCI (oraprd01.edutronic.pe) 8> info all

Program Status Group Lag at Chkpt Time Since Chkpt

MANAGER STOPPED
EXTRACT STOPPED PRDEXT 00:00:00 120:13:35
EXTRACT STOPPED PRDEXT2 00:00:00 00:01:03
EXTRACT STOPPED PRDPUMP2 00:00:00 00:01:02
REPLICAT STOPPED PRDREP 00:00:00 120:13:34

GGSCI (oraprd01.edutronic.pe) 9>


GGSCI (oractg01.edutronic.pe) 3> view report PRDREP2

***********************************************************************
Oracle GoldenGate Delivery for Oracle
Version 19.1.0.0.4 OGGCORE_19.1.0.0.0_PLATFORMS_191017.1054_FBO
Linux, x64, 64bit (optimized), Oracle 19c on Oct 17 2019 21:17:25

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

Starting at 2022-08-23 22:29:32


***********************************************************************

Operating System Version:


Linux
Version #2 SMP Mon Apr 20 22:10:46 PDT 2020, Release 5.4.17-2011.1.2.el8uek.x86_64
Node: oractg01.edutronic.pe
Machine: x86_64
soft limit hard limit
Address Space Size : unlimited unlimited
Heap Size : unlimited unlimited
File Size : unlimited unlimited
CPU Time : unlimited unlimited

Process id: 23759

Description:

***********************************************************************
** Running with the following parameters **
***********************************************************************
2022-08-23 22:29:32 INFO OGG-03059 Operating system character set identified as UTF-8.

2022-08-23 22:29:32 INFO OGG-02695 ANSI SQL parameter syntax is used for parameter parsing.
REPLICAT PRDREP2
USERID GGATE_USER@CTG, PASSWORD ***
ASSUMETARGETDEFS
MAP HR.REGIONS, TARGET HR.REGIONS;

2022-08-23 22:29:34 INFO OGG-06451 Triggers will be suppressed by default.

2022-08-23 22:29:34 INFO OGG-01815 Virtual Memory Facilities for: COM


anon alloc: mmap(MAP_ANON) anon free: munmap
file alloc: mmap(MAP_SHARED) file free: munmap
target directories:
/oracle/product/GoldenGate19c/dirtmp.

2022-08-23 22:29:34 INFO OGG-25340


Database Version:
Oracle Database 19c Enterprise Edition Release 19.0.0.0.0 - Production.

2022-08-23 22:29:34 INFO OGG-25341


Database Language and Character Set:
NLS_LANGUAGE = "AMERICAN"
NLS_TERRITORY = "AMERICA"
NLS_CHARACTERSET = "AL32UTF8".

2022-08-23 22:29:34 INFO OGG-06604 Database PRD.EDUTRONIC.PE CPU info: CPU Count 2, CPU Core Count
2, CPU Socket Count 1.
2022-08-23 22:29:34 WARNING OGG-05673 CSN-based duplicate suppression is disabled because there is no
checkpoint table for this
Replicat.

***********************************************************************
** Run Time Messages **
***********************************************************************

2022-08-23 22:29:34 INFO OGG-02243 Opened trail file


/oracle/product/GoldenGate19c/dirdat/pr000000000 at 2022-08-23 22:29:34
.464701.

2022-08-23 22:32:23 WARNING OGG-02760 ASSUMETARGETDEFS is ignored because trail file


/oracle/product/GoldenGate19c/dirdat/pr000
000000 contains table definitions.

2022-08-23 22:32:25 INFO OGG-03506 The source database character set, as determined from the trail
file, is UTF-8.

2022-08-23 22:32:25 INFO OGG-06505 MAP resolved (entry HR.REGIONS): MAP "HR"."REGIONS", TARGET
HR.REGIONS.

2022-08-23 22:32:29 INFO OGG-02756 The definition for table HR.REGIONS is obtained from the trail
file.

2022-08-23 22:32:29 INFO OGG-06511 Using following columns in default map by name: REGION_ID,
REGION_NAME.

2022-08-23 22:32:29 INFO OGG-06510 Using the following key columns for target table HR.REGIONS:
REGION_ID.
2022-08-23 22:34:18 INFO OGG-01021 Command received from GGSCI: STATS.

2022-08-23 22:39:47 INFO OGG-02232 Switching to next trail file


/oracle/product/GoldenGate19c/dirdat/pr000000001 at 2022-08-
23 22:39:47.592094 due to EOF. with current RBA 2,378.

2022-08-23 22:39:47 INFO OGG-01971 The previous message, 'INFO OGG-01021', repeated 1 times.

2022-08-23 22:39:47 INFO OGG-04048 Processed graceful restart record at seq 1 rba 1,386.

2022-08-23 22:39:49 INFO OGG-04048 Processed graceful restart record at seq 1 rba 1,449.

GGSCI (oractg01.edutronic.pe) 4>

GGSCI (oractg01.edutronic.pe) 4>

GGSCI (oractg01.edutronic.pe) 4>

GGSCI (oractg01.edutronic.pe) 4>

GGSCI (oractg01.edutronic.pe) 4>


GGSCI (oractg01.edutronic.pe) 4> view ggsevt

2022-08-18T20:18:24.965-0500 INFO OGG-00987 Oracle GoldenGate Command Interpreter for Oracle,


oby.oby: GGSCI command (oracl
e): CREATE SUBDIRS.
2022-08-18T20:18:26.189-0500 INFO OGG-00987 Oracle GoldenGate Command Interpreter for Oracle,
oby.oby: GGSCI command (oracl
e): START MGR.
2022-08-18T20:18:26.555-0500 WARNING OGG-01877 Oracle GoldenGate Manager for Oracle, mgr.prm: Missing
explicit accessrule for
server collector.
2022-08-18T20:18:26.555-0500 INFO OGG-00983 Oracle GoldenGate Manager for Oracle, mgr.prm: Manager
started (port 7809).
2022-08-18T20:18:27.224-0500 INFO OGG-00987 Oracle GoldenGate Command Interpreter for Oracle,
oby.oby: GGSCI command (oracl
e): CREATE DATASTORE.
2022-08-18T20:19:03.808-0500 INFO OGG-00987 Oracle GoldenGate Command Interpreter for Oracle: GGSCI
command (oracle): info
all.
2022-08-18T20:19:08.828-0500 INFO OGG-00987 Oracle GoldenGate Command Interpreter for Oracle: GGSCI
command (oracle): info
mgr.
2022-08-18T20:19:53.534-0500 INFO OGG-00987 Oracle GoldenGate Command Interpreter for Oracle: GGSCI
command (oracle): creat
e subdirs.
2022-08-18T20:32:55.425-0500 INFO OGG-00987 Oracle GoldenGate Command Interpreter for Oracle: GGSCI
command (oracle): info
all.
2022-08-18T20:32:56.435-0500 INFO OGG-00987 Oracle GoldenGate Command Interpreter for Oracle: GGSCI
command (oracle): info
mgr.
2022-08-18T21:44:25.738-0500 ERROR OGG-15312 Oracle GoldenGate Command Interpreter for Oracle:
Cannot obtain database versio
n information because verification of database login failed with next error: Not logged into database,
use DBLOGIN.
2022-08-18T21:46:38.841-0500 INFO OGG-00987 Oracle GoldenGate Command Interpreter for Oracle: GGSCI
command (oracle): dblog
in userid ggate_user passwprd oracle.
--More--(10%)
drwxr-x--- 2 oracle oinstall 44 Aug 23 22:39 dirdat
-rw-r----- 1 oracle oinstall 17K Aug 23 22:42 ggserr.log
[oracle@oractg01 GoldenGate19c]$ tail -f ggserr.log
2022-08-23T22:39:46.834-0500 INFO OGG-01670 Oracle GoldenGate Collector for Oracle: Closing
/oracle/product/GoldenGate19c/./dirdat/pr000000000.
2022-08-23T22:39:46.835-0500 INFO OGG-01669 Oracle GoldenGate Collector for Oracle: Opening
/oracle/product/GoldenGate19c/./dirdat/pr000000001 (byte -1, current EOF 0).
2022-08-23T22:39:47.592-0500 INFO OGG-02232 Oracle GoldenGate Delivery for Oracle, prdrep2.prm:
Switching to next trail file /oracle/product/GoldenGate19c/dirdat/pr000000001 at 2022-08-23
22:39:47.592094 due to EOF. with current RBA 2,378.
2022-08-23T22:39:47.593-0500 INFO OGG-01971 Oracle GoldenGate Delivery for Oracle, prdrep2.prm: The
previous message, 'INFO OGG-01021', repeated 1 times.
2022-08-23T22:39:47.593-0500 INFO OGG-04048 Oracle GoldenGate Delivery for Oracle, prdrep2.prm:
Processed graceful restart record at seq 1 rba 1,386.
2022-08-23T22:39:49.596-0500 INFO OGG-04048 Oracle GoldenGate Delivery for Oracle, prdrep2.prm:
Processed graceful restart record at seq 1 rba 1,449.
2022-08-23T22:40:02.886-0500 INFO OGG-01735 Oracle GoldenGate Collector for Oracle:
Synchronizing /oracle/product/GoldenGate19c/./dirdat/pr000000001 to disk.
2022-08-23T22:40:02.887-0500 INFO OGG-01670 Oracle GoldenGate Collector for Oracle: Closing
/oracle/product/GoldenGate19c/./dirdat/pr000000001.
2022-08-23T22:40:02.888-0500 INFO OGG-01675 Oracle GoldenGate Collector for Oracle: Terminating
because extract is stopped.
2022-08-23T22:42:14.801-0500 INFO OGG-00987 Oracle GoldenGate Command Interpreter for Oracle: GGSCI
command (oracle): info all.
PARAMETRIZACION

login as: oracle


[email protected]'s password:
Activate the web console with: systemctl enable --now cockpit.socket

Last login: Tue Aug 23 21:11:16 2022 from 172.168.1.1


[oracle@oraprd01 ~]$ ps -ef | grep pmon
grid 9994 1 0 20:15 ? 00:00:00 asm_pmon_+ASM
oracle 10216 1 0 20:16 ? 00:00:00 ora_pmon_QAS
oracle 10230 1 0 20:16 ? 00:00:00 ora_pmon_PRD
oracle 11099 10644 0 20:16 pts/0 00:00:00 grep --color=auto pmon
[oracle@oraprd01 ~]$ . .ogg19c.env
[oracle@oraprd01 ~]$ ggsci

Oracle GoldenGate Command Interpreter for Oracle


Version 19.1.0.0.4 OGGCORE_19.1.0.0.0_PLATFORMS_191017.1054_FBO
Linux, x64, 64bit (optimized), Oracle 19c on Oct 17 2019 21:16:29
Operating system character set identified as UTF-8.

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

GGSCI (oraprd01.edutronic.pe) 1> info all

Program Status Group Lag at Chkpt Time Since Chkpt

MANAGER STOPPED
EXTRACT STOPPED PRDEXT 00:00:00 333:49:37
EXTRACT STOPPED PRDEXT2 00:00:00 213:37:05
EXTRACT STOPPED PRDPUMP2 00:00:00 213:37:04
REPLICAT STOPPED PRDREP 00:00:00 333:49:36

GGSCI (oraprd01.edutronic.pe) 2> info mgr

Manager is DOWN!

GGSCI (oraprd01.edutronic.pe) 3> start mgr


Manager started.

GGSCI (oraprd01.edutronic.pe) 4> info mgr

Manager is running (IP port TCP:oraprd01.edutronic.pe.1976, Process ID 11374).

GGSCI (oraprd01.edutronic.pe) 5> edit params mgr

GGSCI (oraprd01.edutronic.pe) 6> view params mgr

PORT 1976

GGSCI (oraprd01.edutronic.pe) 7> view params ./GLOBALS


ERROR: PARAMS file ./GLOBALS does not exist.
GGSCI (oraprd01.edutronic.pe) 8> EXIT
[oracle@oraprd01 GoldenGate19c]$ vi GLOBALS
[oracle@oraprd01 GoldenGate19c]$ ggsci

Oracle GoldenGate Command Interpreter for Oracle


Version 19.1.0.0.4 OGGCORE_19.1.0.0.0_PLATFORMS_191017.1054_FBO
Linux, x64, 64bit (optimized), Oracle 19c on Oct 17 2019 21:16:29
Operating system character set identified as UTF-8.

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

GGSCI (oraprd01.edutronic.pe) 1> view params ./GLOBALS

GGSCHEMA GGATE_USER
CHECKPOINTTABLE GGATE_USER.GGS_CHECKPOINT

GGSCI (oraprd01.edutronic.pe) 2> add checkpointtable


ERROR: Not logged into database, use DBLOGIN.

GGSCI (oraprd01.edutronic.pe) 3>

GGSCI (oraprd01.edutronic.pe) 3> dblogin userid ggate_user


Password:
Successfully logged into database.

GGSCI (oraprd01.edutronic.pe as ggate_user@PRD) 4>


GGSCI (oraprd01.edutronic.pe as ggate_user@PRD) 4> add checkpointtable

No checkpoint table specified. Using GLOBALS specification GGATE_USER.GGS_CHECKPOINT...

Successfully created checkpoint table GGATE_USER.GGS_CHECKPOINT.

GGSCI (oraprd01.edutronic.pe as ggate_user@PRD) 5>

GGSCI (oractg01.edutronic.pe) 5> exit


[oracle@oractg01 GoldenGate19c]$ vi GLOBALS

GGSCHEMA GGATE_USER
CHECKPOINTTABLE GGATE_USER.GGS_CHECKPOINT

[oracle@oractg01 GoldenGate19c]$ ggsci

Oracle GoldenGate Command Interpreter for Oracle


Version 19.1.0.0.4 OGGCORE_19.1.0.0.0_PLATFORMS_191017.1054_FBO
Linux, x64, 64bit (optimized), Oracle 19c on Oct 17 2019 21:16:29
Operating system character set identified as UTF-8.

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

GGSCI (oractg01.edutronic.pe) 1> dblog userid ggate_user


ERROR: Invalid command.
GGSCI (oractg01.edutronic.pe) 2> dblogin userid ggate_user
Password:
Successfully logged into database.

GGSCI (oractg01.edutronic.pe as ggate_user@PRD) 3>

GGSCI (oractg01.edutronic.pe as ggate_user@PRD) 3> info checkpointtable

No checkpoint table specified. Using GLOBALS specification GGATE_USER.GGS_CHECKPOINT...

Checkpoint table GGATE_USER.GGS_CHECKPOINT does not exist.

GGSCI (oractg01.edutronic.pe as ggate_user@PRD) 4> add checkpointtable

No checkpoint table specified. Using GLOBALS specification GGATE_USER.GGS_CHECKPOINT...

Successfully created checkpoint table GGATE_USER.GGS_CHECKPOINT.

GGSCI (oractg01.edutronic.pe as ggate_user@PRD) 5>


REPLICA BIDRECCIONAL
—-------------------

[oracle@oraprd01 dirprm]$ ggsci

Oracle GoldenGate Command Interpreter for Oracle


Version 19.1.0.0.4 OGGCORE_19.1.0.0.0_PLATFORMS_191017.1054_FBO
Linux, x64, 64bit (optimized), Oracle 19c on Oct 17 2019 21:16:29
Operating system character set identified as UTF-8.

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

GGSCI (oraprd01.edutronic.pe) 1> info all

Program Status Group Lag at Chkpt Time Since Chkpt

MANAGER RUNNING
EXTRACT STOPPED PRDEXT 00:00:00 334:19:34
EXTRACT STOPPED PRDEXT2 00:00:00 214:07:02
EXTRACT STOPPED PRDPUMP2 00:00:00 214:07:01
REPLICAT STOPPED PRDREP 00:00:00 334:19:33

GGSCI (oraprd01.edutronic.pe) 2> stop ER *


EXTRACT PRDEXT is already stopped.
EXTRACT PRDEXT2 is already stopped.
EXTRACT PRDPUMP2 is already stopped.
REPLICAT PRDREP is already stopped.
GGSCI (oractg01.edutronic.pe as ggate_user@PRD) 5> INFO ALL

Program Status Group Lag at Chkpt Time Since Chkpt

MANAGER RUNNING
REPLICAT ABENDED PRDREP2 00:00:00 212:16:37

GGSCI (oractg01.edutronic.pe as ggate_user@PRD) 6> stop ER *


REPLICAT PRDREP2 is already stopped.

GGSCI (oractg01.edutronic.pe as ggate_user@PRD) 7>


En produccion

SQL> connect west/west


Connected.
SQL> @/tmp/source_database.sql

Table dropped.

Table created.

Table dropped.

Table created.

Table dropped.

Table created.

Table dropped.

Table created.

Table dropped.
Table created.

Table dropped.

Table created.

Disconnected from Oracle Database 19c Enterprise Edition Release 19.0.0.0.0 - Production
Version 19.3.0.0.0
[oracle@oraprd01 GoldenGate19c]$

SQL> connect west/west


Connected.
SQL> show recyclebin
ORIGINAL NAME RECYCLEBIN NAME OBJECT TYPE DROP TIME
---------------- ------------------------------ ------------ -------------------
ACCOUNT BIN$56kA/1MAVTvgU2UBqKzOnA==$0 TABLE 2022-09-01:20:54:00
ACCOUNT_TRANS BIN$56kA/1MDVTvgU2UBqKzOnA==$0 TABLE 2022-09-01:20:54:01
BRANCH BIN$56kA/1MGVTvgU2UBqKzOnA==$0 TABLE 2022-09-01:20:54:01
BRANCH_ATM BIN$56kA/1MPVTvgU2UBqKzOnA==$0 TABLE 2022-09-01:20:54:01
TELLER BIN$56kA/1MJVTvgU2UBqKzOnA==$0 TABLE 2022-09-01:20:54:01
TELLER_TRANS BIN$56kA/1MMVTvgU2UBqKzOnA==$0 TABLE 2022-09-01:20:54:01
SQL> purge recyclebin;

Recyclebin purged.

SQL>
[oracle@oractg01 GoldenGate19c]$ sqlplus / as sysdba

SQL*Plus: Release 19.0.0.0.0 - Production on Thu Sep 1 20:55:56 2022


Version 19.3.0.0.0

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

Connected to:
Oracle Database 19c Enterprise Edition Release 19.0.0.0.0 - Production
Version 19.3.0.0.0

SQL> connect east/east


Connected.
SQL> @/tmp/target_database.sql

Table dropped.

Table created.

Table dropped.

Table created.

Table dropped.
Table created.

Table dropped.

Table created.

Table dropped.

Table created.

Table dropped.

Table created.

Disconnected from Oracle Database 19c Enterprise Edition Release 19.0.0.0.0 - Production
Version 19.3.0.0.0
[oracle@oractg01 GoldenGate19c]$
SQL> connect east/east
Connected.
SQL>
SQL> show recyeclebin
SP2-0735: unknown SHOW option beginning "recyeclebi..."
SQL> show recyclebin
ORIGINAL NAME RECYCLEBIN NAME OBJECT TYPE DROP TIME
---------------- ------------------------------ ------------ -------------------
ACCOUNT BIN$56kId5C/Uw7gU8kBqKzKaQ==$0 TABLE 2022-09-01:20:56:06
ACCOUNT_TRANS BIN$56kId5DCUw7gU8kBqKzKaQ==$0 TABLE 2022-09-01:20:56:06
BRANCH BIN$56kId5DFUw7gU8kBqKzKaQ==$0 TABLE 2022-09-01:20:56:06
BRANCH_ATM BIN$56kId5DOUw7gU8kBqKzKaQ==$0 TABLE 2022-09-01:20:56:06
TELLER BIN$56kId5DIUw7gU8kBqKzKaQ==$0 TABLE 2022-09-01:20:56:06
TELLER_TRANS BIN$56kId5DLUw7gU8kBqKzKaQ==$0 TABLE 2022-09-01:20:56:06
SQL> purge recyclebin
2 ;

Recyclebin purged.

SQL>
[oracle@oraprd01 GoldenGate19c]$ ggsci

Oracle GoldenGate Command Interpreter for Oracle


Version 19.1.0.0.4 OGGCORE_19.1.0.0.0_PLATFORMS_191017.1054_FBO
Linux, x64, 64bit (optimized), Oracle 19c on Oct 17 2019 21:16:29
Operating system character set identified as UTF-8.

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

GGSCI (oraprd01.edutronic.pe) 1> info checkpointtable


ERROR: Not logged into database, use DBLOGIN.

GGSCI (oraprd01.edutronic.pe) 2> dblogin userid ggate_user


Password:
Successfully logged into database.

GGSCI (oraprd01.edutronic.pe as ggate_user@PRD) 3>


GGSCI (oraprd01.edutronic.pe as ggate_user@PRD) 4> add trandata west.*

2022-09-01 21:00:15 INFO OGG-15132 Logging of supplemental redo data enabled for table WEST.ACCOUNT.

2022-09-01 21:00:15 INFO OGG-15133 TRANDATA for scheduling columns has been added on table
WEST.ACCOUNT.

2022-09-01 21:00:15 INFO OGG-15135 TRANDATA for instantiation CSN has been added on table
WEST.ACCOUNT.

2022-09-01 21:00:15 INFO OGG-15132 Logging of supplemental redo data enabled for table
WEST.ACCOUNT_TRANS.

2022-09-01 21:00:15 INFO OGG-15133 TRANDATA for scheduling columns has been added on table
WEST.ACCOUNT_TRANS.

2022-09-01 21:00:15 INFO OGG-15135 TRANDATA for instantiation CSN has been added on table
WEST.ACCOUNT_TRANS.

2022-09-01 21:00:15 INFO OGG-15132 Logging of supplemental redo data enabled for table WEST.BRANCH.

2022-09-01 21:00:15 INFO OGG-15133 TRANDATA for scheduling columns has been added on table
WEST.BRANCH.

2022-09-01 21:00:15 INFO OGG-15135 TRANDATA for instantiation CSN has been added on table
WEST.BRANCH.

2022-09-01 21:00:15 INFO OGG-15132 Logging of supplemental redo data enabled for table
WEST.BRANCH_ATM.
2022-09-01 21:00:15 INFO OGG-15133 TRANDATA for scheduling columns has been added on table
WEST.BRANCH_ATM.

2022-09-01 21:00:15 INFO OGG-15135 TRANDATA for instantiation CSN has been added on table
WEST.BRANCH_ATM.

2022-09-01 21:00:15 INFO OGG-15132 Logging of supplemental redo data enabled for table WEST.TELLER.

2022-09-01 21:00:15 INFO OGG-15133 TRANDATA for scheduling columns has been added on table
WEST.TELLER.

2022-09-01 21:00:15 INFO OGG-15135 TRANDATA for instantiation CSN has been added on table
WEST.TELLER.

2022-09-01 21:00:15 INFO OGG-15132 Logging of supplemental redo data enabled for table
WEST.TELLER_TRANS.

2022-09-01 21:00:15 INFO OGG-15133 TRANDATA for scheduling columns has been added on table
WEST.TELLER_TRANS.

2022-09-01 21:00:15 INFO OGG-15135 TRANDATA for instantiation CSN has been added on table
WEST.TELLER_TRANS.

2022-09-01 21:00:17 INFO OGG-10471 ***** Oracle Goldengate support information on table WEST.ACCOUNT
*****
Oracle Goldengate support native capture on table WEST.ACCOUNT.
Oracle Goldengate marked following column as key columns on table WEST.ACCOUNT: ACCOUNT_NUMBER.

2022-09-01 21:00:17 INFO OGG-10471 ***** Oracle Goldengate support information on table
WEST.ACCOUNT_TRANS *****
Oracle Goldengate support native capture on table WEST.ACCOUNT_TRANS.
Oracle Goldengate marked following column as key columns on table WEST.ACCOUNT_TRANS: ACCOUNT_NUMBER,
TRANS_NUMBER, ACCOUNT_TRANS_TS.

2022-09-01 21:00:17 INFO OGG-10471 ***** Oracle Goldengate support information on table WEST.BRANCH
*****
Oracle Goldengate support native capture on table WEST.BRANCH.
Oracle Goldengate marked following column as key columns on table WEST.BRANCH: BRANCH_NUMBER.

2022-09-01 21:00:17 INFO OGG-10471 ***** Oracle Goldengate support information on table
WEST.BRANCH_ATM *****
Oracle Goldengate support native capture on table WEST.BRANCH_ATM.
Oracle Goldengate marked following column as key columns on table WEST.BRANCH_ATM: BRANCH_NUMBER,
ATM_NUMBER, TRANS_NUMBER, ATM_TRANS_TS.

2022-09-01 21:00:17 INFO OGG-10471 ***** Oracle Goldengate support information on table WEST.TELLER
*****
Oracle Goldengate support native capture on table WEST.TELLER.
Oracle Goldengate marked following column as key columns on table WEST.TELLER: TELLER_NUMBER.

2022-09-01 21:00:17 INFO OGG-10471 ***** Oracle Goldengate support information on table
WEST.TELLER_TRANS *****
Oracle Goldengate support native capture on table WEST.TELLER_TRANS.
Oracle Goldengate marked following column as key columns on table WEST.TELLER_TRANS: TELLER_NUMBER,
TRANS_NUMBER, TELLER_TRANS_TS.

GGSCI (oraprd01.edutronic.pe as ggate_user@PRD) 5>


[oracle@oractg01 GoldenGate19c]$ ggsci

Oracle GoldenGate Command Interpreter for Oracle


Version 19.1.0.0.4 OGGCORE_19.1.0.0.0_PLATFORMS_191017.1054_FBO
Linux, x64, 64bit (optimized), Oracle 19c on Oct 17 2019 21:16:29
Operating system character set identified as UTF-8.

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

GGSCI (oractg01.edutronic.pe) 1> dblogin userid ggate_user


Password:
Successfully logged into database.

GGSCI (oractg01.edutronic.pe as ggate_user@PRD) 2> info checkpointtable

No checkpoint table specified. Using GLOBALS specification GGATE_USER.GGS_CHECKPOINT...

Checkpoint table GGATE_USER.GGS_CHECKPOINT created 2022-09-01 20:29:41.

GGSCI (oractg01.edutronic.pe as ggate_user@PRD) 3> add trandata east.*

2022-09-01 21:01:35 INFO OGG-15132 Logging of supplemental redo data enabled for table EAST.ACCOUNT.

2022-09-01 21:01:35 INFO OGG-15133 TRANDATA for scheduling columns has been added on table
EAST.ACCOUNT.

2022-09-01 21:01:35 INFO OGG-15135 TRANDATA for instantiation CSN has been added on table
EAST.ACCOUNT.
2022-09-01 21:01:35 INFO OGG-15132 Logging of supplemental redo data enabled for table
EAST.ACCOUNT_TRANS.

2022-09-01 21:01:35 INFO OGG-15133 TRANDATA for scheduling columns has been added on table
EAST.ACCOUNT_TRANS.

2022-09-01 21:01:35 INFO OGG-15135 TRANDATA for instantiation CSN has been added on table
EAST.ACCOUNT_TRANS.

2022-09-01 21:01:35 INFO OGG-15132 Logging of supplemental redo data enabled for table EAST.BRANCH.

2022-09-01 21:01:35 INFO OGG-15133 TRANDATA for scheduling columns has been added on table
EAST.BRANCH.

2022-09-01 21:01:35 INFO OGG-15135 TRANDATA for instantiation CSN has been added on table
EAST.BRANCH.

2022-09-01 21:01:35 INFO OGG-15132 Logging of supplemental redo data enabled for table
EAST.BRANCH_ATM.

2022-09-01 21:01:35 INFO OGG-15133 TRANDATA for scheduling columns has been added on table
EAST.BRANCH_ATM.

2022-09-01 21:01:35 INFO OGG-15135 TRANDATA for instantiation CSN has been added on table
EAST.BRANCH_ATM.

2022-09-01 21:01:35 INFO OGG-15132 Logging of supplemental redo data enabled for table EAST.TELLER.

2022-09-01 21:01:35 INFO OGG-15133 TRANDATA for scheduling columns has been added on table
EAST.TELLER.
2022-09-01 21:01:35 INFO OGG-15135 TRANDATA for instantiation CSN has been added on table
EAST.TELLER.

2022-09-01 21:01:35 INFO OGG-15132 Logging of supplemental redo data enabled for table
EAST.TELLER_TRANS.

2022-09-01 21:01:35 INFO OGG-15133 TRANDATA for scheduling columns has been added on table
EAST.TELLER_TRANS.

2022-09-01 21:01:35 INFO OGG-15135 TRANDATA for instantiation CSN has been added on table
EAST.TELLER_TRANS.

2022-09-01 21:01:36 INFO OGG-10471 ***** Oracle Goldengate support information on table EAST.ACCOUNT
*****
Oracle Goldengate support native capture on table EAST.ACCOUNT.
Oracle Goldengate marked following column as key columns on table EAST.ACCOUNT: ACCOUNT_NUMBER.

2022-09-01 21:01:36 INFO OGG-10471 ***** Oracle Goldengate support information on table
EAST.ACCOUNT_TRANS *****
Oracle Goldengate support native capture on table EAST.ACCOUNT_TRANS.
Oracle Goldengate marked following column as key columns on table EAST.ACCOUNT_TRANS: ACCOUNT_NUMBER,
TRANS_NUMBER, ACCOUNT_TRANS_TS.

2022-09-01 21:01:36 INFO OGG-10471 ***** Oracle Goldengate support information on table EAST.BRANCH
*****
Oracle Goldengate support native capture on table EAST.BRANCH.
Oracle Goldengate marked following column as key columns on table EAST.BRANCH: BRANCH_NUMBER.
GGSCI (oraprd01.edutronic.pe as ggate_user@PRD) 6> edit params extwest3

extract extwest3
exttrail ./dirdat/ew
TRANLOGOPTIONS DBLOGREADER
userid ggate_user, password oracle
table WEST.*;

GGSCI (oraprd01.edutronic.pe as ggate_user@PRD) 7> view params extwest3

extract extwest3
exttrail ./dirdat/ew
TRANLOGOPTIONS DBLOGREADER
userid ggate_user, password oracle
table WEST.*;

GGSCI (oraprd01.edutronic.pe as ggate_user@PRD) 8> info all

Program Status Group Lag at Chkpt Time Since Chkpt

MANAGER RUNNING
EXTRACT STOPPED PRDEXT 00:00:00 334:38:26
EXTRACT STOPPED PRDEXT2 00:00:00 214:25:54
EXTRACT STOPPED PRDPUMP2 00:00:00 214:25:53
REPLICAT STOPPED PRDREP 00:00:00 334:38:26

GGSCI (oraprd01.edutronic.pe as ggate_user@PRD) 9> add extract extwest3, tranlog, begin now
EXTRACT added.
GGSCI (oraprd01.edutronic.pe as ggate_user@PRD) 10> add exttrail ./dirdat/ew, extract extwest3, megabytes
50
EXTTRAIL added.

GGSCI (oraprd01.edutronic.pe as ggate_user@PRD) 11> info all

Program Status Group Lag at Chkpt Time Since Chkpt

MANAGER RUNNING
EXTRACT STOPPED EXTWEST3 00:00:00 00:00:52
EXTRACT STOPPED PRDEXT 00:00:00 334:39:43
EXTRACT STOPPED PRDEXT2 00:00:00 214:27:11
EXTRACT STOPPED PRDPUMP2 00:00:00 214:27:10
REPLICAT STOPPED PRDREP 00:00:00 334:39:42

GGSCI (oraprd01.edutronic.pe as ggate_user@PRD) 12>

GGSCI (oraprd01.edutronic.pe as ggate_user@PRD) 12> edit params pwest3

GGSCI (oraprd01.edutronic.pe as ggate_user@PRD) 13> view params pwest3

extract pwest3
rmthost oractg01.edutronic.pe, mgrport 1976, compress
rmttrail ./dirdat/pe
Passthru
table WEST.*;
GGSCI (oractg01.edutronic.pe as ggate_user@PRD) 4> edit params reast3

GGSCI (oractg01.edutronic.pe as ggate_user@PRD) 5> view params reast3

replicat reast3
AssumeTargetDefs
DiscardFile ./dirdat/reast3.dsc, Purge
userid ggate_user, password oracle
Map WEST.*, Target EAST.*;

GGSCI (oractg01.edutronic.pe as ggate_user@PRD) 6>

GGSCI (oractg01.edutronic.pe as ggate_user@PRD) 6> info all

Program Status Group Lag at Chkpt Time Since Chkpt

MANAGER RUNNING
REPLICAT ABENDED PRDREP2 00:00:00 212:45:42

GGSCI (oractg01.edutronic.pe as ggate_user@PRD) 7> add replicat reast3, exttrail ./dirdat/pe


REPLICAT added.

GGSCI (oractg01.edutronic.pe as ggate_user@PRD) 8> info all


Program Status Group Lag at Chkpt Time Since Chkpt

MANAGER RUNNING
REPLICAT ABENDED PRDREP2 00:00:00 212:46:54
REPLICAT STOPPED REAST3 00:00:00 00:00:03

GGSCI (oractg01.edutronic.pe as ggate_user@PRD) 9> start REPLICAT REAST3

Sending START request to MANAGER ...


REPLICAT REAST3 starting

GGSCI (oractg01.edutronic.pe as ggate_user@PRD) 10> info all

Program Status Group Lag at Chkpt Time Since Chkpt

MANAGER RUNNING
REPLICAT ABENDED PRDREP2 00:00:00 212:47:18
REPLICAT RUNNING REAST3 00:00:00 00:00:27

GGSCI (oractg01.edutronic.pe as ggate_user@PRD) 11>


SQL> desc ACCOUNT
Name Null? Type
----------------------------------------- -------- ----------------------------
ACCOUNT_NUMBER NOT NULL NUMBER(10)
ACCOUNT_BALANCE NUMBER(38,2)

SQL> insert into ACCOUNT values (1,2022);

1 row created.

SQL> commit;

Commit complete.

SQL> insert into ACCOUNT values (2,2023);

1 row created.

SQL> commit;

Commit complete.

SQL> delete from ACCOUNT where ACCOUNT_NUMBER=1;

1 row deleted.

SQL> commit;

Commit complete.

SQL> delete from ACCOUNT where ACCOUNT_NUMBER=2;


1 row deleted.

SQL> commit;

Commit complete.

SQL>
SQL> connect east/east
Connected.
SQL> select * from ACCOUNT;

ACCOUNT_NUMBER ACCOUNT_BALANCE
-------------- ---------------
1 2022

SQL> select * from ACCOUNT;

ACCOUNT_NUMBER ACCOUNT_BALANCE
-------------- ---------------
1 2022
2 2023

SQL> select * from ACCOUNT;

no rows selected

SQL>
GGSCI (oraprd01.edutronic.pe as ggate_user@PRD) 23> stop ER *3

Sending STOP request to EXTRACT EXTWEST3 ...


Request processed.

Sending STOP request to EXTRACT PWEST3 ...


Request processed.

GGSCI (oraprd01.edutronic.pe as ggate_user@PRD) 24>

GGSCI (oraprd01.edutronic.pe as ggate_user@PRD) 24> INFO ALL

Program Status Group Lag at Chkpt Time Since Chkpt

MANAGER RUNNING
EXTRACT STOPPED EXTWEST3 00:00:00 00:00:19
EXTRACT STOPPED PRDEXT 00:00:00 335:12:49
EXTRACT STOPPED PRDEXT2 00:00:00 215:00:17
EXTRACT STOPPED PRDPUMP2 00:00:00 215:00:16
EXTRACT STOPPED PWEST3 00:00:00 00:00:18
REPLICAT STOPPED PRDREP 00:00:00 335:12:48

GGSCI (oraprd01.edutronic.pe as ggate_user@PRD) 25>


GGSCI (oraprd01.edutronic.pe as ggate_user@PRD) 27> EDIT PARAMS EXTWEST3

GGSCI (oraprd01.edutronic.pe as ggate_user@PRD) 28> view PARAMS EXTWEST3

extract extwest3
exttrail ./dirdat/ew
TRANLOGOPTIONS DBLOGREADER EXCLUDEUSER GGATE_USER
userid ggate_user, password oracle
table WEST.*;

GGSCI (oraprd01.edutronic.pe as ggate_user@PRD) 29>


GGSCI (oraprd01.edutronic.pe as ggate_user@PRD) 30> delete extract EXTWEST3
Deleted EXTRACT EXTWEST3.

GGSCI (oraprd01.edutronic.pe as ggate_user@PRD) 31> exit


[oracle@oraprd01 GoldenGate19c]$ cd dirdat/
[oracle@oraprd01 dirdat]$ ls
ew000000000 px000000000 px000000001 py000000000 py000000001
[oracle@oraprd01 dirdat]$ rm ew*
[oracle@oraprd01 dirdat]$ ggsci

GGSCI (oraprd01.edutronic.pe) 1> view PARAMS EXTWEST3

extract extwest3
exttrail ./dirdat/ew
TRANLOGOPTIONS DBLOGREADER EXCLUDEUSER GGATE_USER
userid ggate_user, password oracle
table WEST.*;

GGSCI (oraprd01.edutronic.pe) 2> add extract EXTWEST3, tranlog, begin now


EXTRACT added.

GGSCI (oraprd01.edutronic.pe) 3> add exttrail ./dirdat/ew, extract extwest3, megabytes 50


EXTTRAIL added.

GGSCI (oraprd01.edutronic.pe) 4>


GGSCI (oractg01.edutronic.pe as ggate_user@PRD) 14> exit
[oracle@oractg01 GoldenGate19c]$ cd dirdat/
[oracle@oractg01 dirdat]$ ls
pe000000000 pr000000000 pr000000001 reast3.dsc
[oracle@oractg01 dirdat]$ rm pe*
[oracle@oractg01 dirdat]$
GGSCI (oraprd01.edutronic.pe) 6> delete extract PWEST3
Deleted EXTRACT PWEST3.

GGSCI (oraprd01.edutronic.pe) 7> view params PWEST3

extract pwest3
rmthost oractg01.edutronic.pe, mgrport 1976, compress
rmttrail ./dirdat/pe
Passthru
table WEST.*;

GGSCI (oraprd01.edutronic.pe) 8> view params PWEST3

extract pwest3
rmthost oractg01.edutronic.pe, mgrport 1976, compress
rmttrail ./dirdat/pe
Passthru
table WEST.*;

GGSCI (oraprd01.edutronic.pe) 9> info all

Program Status Group Lag at Chkpt Time Since Chkpt

MANAGER RUNNING
EXTRACT STOPPED EXTWEST3 00:00:00 00:04:43
EXTRACT STOPPED PRDEXT 00:00:00 335:23:14
EXTRACT STOPPED PRDEXT2 00:00:00 215:10:41
EXTRACT STOPPED PRDPUMP2 00:00:00 215:10:41
REPLICAT STOPPED PRDREP 00:00:00 335:23:13

GGSCI (oraprd01.edutronic.pe) 10> add extract PWEST3, exttrailsource ./dirdat/ew


EXTRACT added.

GGSCI (oraprd01.edutronic.pe) 11> add rmttrail ./dirdat/pe, extract PWEST3, megabytes 50


RMTTRAIL added.

GGSCI (oraprd01.edutronic.pe) 12>


GGSCI (oractg01.edutronic.pe) 2> edit param eeast3

GGSCI (oractg01.edutronic.pe) 3> view params eeast3

extract eeast3
exttrail ./dirdat/ee
TRANLOGOPTIONS DBLOGREADER EXCLUDEUSER ggate_user
userid ggate_user, password oracle
table EAST.*;

GGSCI (oractg01.edutronic.pe) 4>


GGSCI (oractg01.edutronic.pe) 8> edit params peast3

GGSCI (oractg01.edutronic.pe) 9> view params peast3

extract peast3
rmthost oraprd01.edutronic.pe, mgrport 1976, compress
rmttrail ./dirdat/pw
Passthru
table east.*;

GGSCI (oractg01.edutronic.pe) 10>


GGSCI (oraprd01.edutronic.pe) 14> edit params rwest3

GGSCI (oraprd01.edutronic.pe) 15> view params rwest3

replicat rwest3
AssumeTargetDefs
DiscardFile ./dirdat/rwest3.dsc, Purge
userid ggate_user, password oracle
DDL INCLUDE ALL
DDLERROR DEFAULT IGNORE
MAP EAST.*, Target WEST.*;

GGSCI (oraprd01.edutronic.pe) 16>


GGSCI (oraprd01.edutronic.pe) 14> edit params rwest3

GGSCI (oraprd01.edutronic.pe) 15> view params rwest3

replicat rwest3
AssumeTargetDefs
DiscardFile ./dirdat/rwest3.dsc, Purge
userid ggate_user, password oracle
DDL INCLUDE ALL
DDLERROR DEFAULT IGNORE
MAP EAST.*, Target WEST.*;

GGSCI (oraprd01.edutronic.pe) 16> add replicat rwest3, exttrail ./dirdat/pw


REPLICAT added.

GGSCI (oraprd01.edutronic.pe) 17> info all

Program Status Group Lag at Chkpt Time Since Chkpt

MANAGER RUNNING
EXTRACT STOPPED EXTWEST3 00:00:00 00:21:06
EXTRACT STOPPED PRDEXT 00:00:00 335:39:37
EXTRACT STOPPED PRDEXT2 00:00:00 215:27:05
EXTRACT STOPPED PRDPUMP2 00:00:00 215:27:04
EXTRACT STOPPED PWEST3 00:00:00 00:15:06
REPLICAT STOPPED PRDREP 00:00:00 335:39:37
REPLICAT STOPPED RWEST3 00:00:00 00:00:02
GGSCI (oraprd01.edutronic.pe) 18> info *3

EXTRACT EXTWEST3 Initialized 2022-09-01 21:46 Status STOPPED


Checkpoint Lag 00:00:00 (updated 00:21:23 ago)
Log Read Checkpoint Oracle Redo Logs
2022-09-01 21:46:00 Seqno 0, RBA 0
SCN 0.0 (0)

EXTRACT PWEST3 Initialized 2022-09-01 21:51 Status STOPPED


Checkpoint Lag 00:00:00 (updated 00:15:23 ago)
Log Read Checkpoint File ./dirdat/ew000000000
First Record RBA 0

REPLICAT RWEST3 Initialized 2022-09-01 22:07 Status STOPPED


Checkpoint Lag 00:00:00 (updated 00:00:19 ago)
Log Read Checkpoint File ./dirdat/pw000000000
First Record RBA 0

GGSCI (oraprd01.edutronic.pe) 19>


GGSCI (oraprd01.edutronic.pe) 19> edit params RWEST3

GGSCI (oraprd01.edutronic.pe) 20> view params RWEST3

replicat rwest3
AssumeTargetDefs
DiscardFile ./dirdat/rwest3.dsc, Purge
userid ggate_user, password oracle
DDL INCLUDE ALL
DDLERROR DEFAULT IGNORE
REPERROR (-1, IGNORE)
MAP EAST.*, Target WEST.*;

GGSCI (oraprd01.edutronic.pe) 21>


GGSCI (oraprd01.edutronic.pe) 22> start ER *3

Sending START request to MANAGER ...


EXTRACT EXTWEST3 starting

Sending START request to MANAGER ...


EXTRACT PWEST3 starting

Sending START request to MANAGER ...


REPLICAT RWEST3 starting

GGSCI (oraprd01.edutronic.pe) 23> info all

Program Status Group Lag at Chkpt Time Since Chkpt

MANAGER RUNNING
EXTRACT RUNNING EXTWEST3 00:27:52 00:00:01
EXTRACT STOPPED PRDEXT 00:00:00 335:46:25
EXTRACT STOPPED PRDEXT2 00:00:00 215:33:53
EXTRACT STOPPED PRDPUMP2 00:00:00 215:33:52
EXTRACT RUNNING PWEST3 00:00:00 00:21:54
REPLICAT STOPPED PRDREP 00:00:00 335:46:25
REPLICAT RUNNING RWEST3 00:00:00 00:00:01
GGSCI (oractg01.edutronic.pe) 16> start ER *3

Sending START request to MANAGER ...


EXTRACT EEAST3 starting

Sending START request to MANAGER ...


EXTRACT PEAST3 starting

Sending START request to MANAGER ...


REPLICAT REAST3 starting

GGSCI (oractg01.edutronic.pe) 17> info all

Program Status Group Lag at Chkpt Time Since Chkpt

MANAGER RUNNING
EXTRACT RUNNING EEAST3 00:18:16 00:00:01
EXTRACT RUNNING PEAST3 00:00:00 00:13:04
REPLICAT ABENDED PRDREP2 00:00:00 213:43:21
REPLICAT RUNNING REAST3 00:00:00 00:00:01

GGSCI (oractg01.edutronic.pe) 18>


REPLICA HETEROGENEA
—---------------------
login as: oracle
[email protected]'s password:
Activate the web console with: systemctl enable --now cockpit.socket

Last login: Tue Aug 23 21:13:07 2022 from 172.168.1.1


[oracle@oractg01 ~]$ ps -ef | grep pmon
oracle 10181 10047 0 08:21 pts/0 00:00:00 grep --color=auto pmon
[oracle@oractg01 ~]$

Oracle Linux 8 BaseOS Latest (x86_64)


7.1 kB/s | 3.6 kB 00:00
Oracle Linux 8 BaseOS Latest (x86_64)
15 MB/s | 49 MB 00:03
Oracle Linux 8 Application Stream (x86_64)
11 kB/s | 3.9 kB 00:00
Oracle Linux 8 Application Stream (x86_64)
16 MB/s | 37 MB 00:02
Latest Unbreakable Enterprise Kernel Release 6 for Oracle Linux 8 (x86_64)
567 B/s | 3.0 kB 00:05
Latest Unbreakable Enterprise Kernel Release 6 for Oracle Linux 8 (x86_64)
16 MB/s | 54 MB 00:03
Last metadata expiration check: 0:00:38 ago on Sat 03 Sep 2022 08:26:15 AM -05.
Dependencies resolved.
=========================================================================================================
================================
Package Architecture Version
Repository Size
=========================================================================================================
================================
Installing:
mysql-server x86_64 8.0.26-1.module+el8.4.0+20311+30d12931
ol8_appstream 25 M
Installing dependencies:
mecab x86_64 0.996-1.module+el8.0.0+5253+1dce7bb2.9
ol8_appstream 397 k
mysql x86_64 8.0.26-1.module+el8.4.0+20311+30d12931
ol8_appstream 12 M
mysql-common x86_64 8.0.26-1.module+el8.4.0+20311+30d12931
ol8_appstream 134 k
mysql-errmsg x86_64 8.0.26-1.module+el8.4.0+20311+30d12931
ol8_appstream 598 k
protobuf-lite x86_64 3.5.0-13.el8
ol8_appstream 149 k
Enabling module streams:
mysql 8.0

Transaction Summary
=========================================================================================================
================================
Install 6 Packages

Total download size: 38 M


Installed size: 195 M
Is this ok [y/N]: y
Downloading Packages:
(1/6): mysql-common-8.0.26-1.module+el8.4.0+20311+30d12931.x86_64.rpm
229 kB/s | 134 kB 00:00
(2/6): mecab-0.996-1.module+el8.0.0+5253+1dce7bb2.9.x86_64.rpm
506 kB/s | 397 kB 00:00
(3/6): mysql-errmsg-8.0.26-1.module+el8.4.0+20311+30d12931.x86_64.rpm
2.1 MB/s | 598 kB 00:00
(4/6): protobuf-lite-3.5.0-13.el8.x86_64.rpm
1.8 MB/s | 149 kB 00:00
(5/6): mysql-8.0.26-1.module+el8.4.0+20311+30d12931.x86_64.rpm
7.9 MB/s | 12 MB 00:01
(6/6): mysql-server-8.0.26-1.module+el8.4.0+20311+30d12931.x86_64.rpm
14 MB/s | 25 MB 00:01
---------------------------------------------------------------------------------------------------------
--------------------------------
Total
15 MB/s | 38 MB 00:02
warning: /var/cache/dnf/ol8_appstream-d4d5cd0a0a095846/packages/mecab-0.996-
1.module+el8.0.0+5253+1dce7bb2.9.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID ad986da3: NOKEY
Oracle Linux 8 Application Stream (x86_64)
3.0 MB/s | 3.1 kB 00:00
Importing GPG key 0xAD986DA3:
Userid : "Oracle OSS group (Open Source Software group) <[email protected]>"
Fingerprint: 76FD 3DB1 3AB6 7410 B89D B10E 8256 2EA9 AD98 6DA3
From : /etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
Is this ok [y/N]: y
Key imported successfully
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
Preparing :
1/1
Installing : mysql-common-8.0.26-1.module+el8.4.0+20311+30d12931.x86_64
1/6
Installing : mysql-8.0.26-1.module+el8.4.0+20311+30d12931.x86_64
2/6
Installing : mysql-errmsg-8.0.26-1.module+el8.4.0+20311+30d12931.x86_64
3/6
Installing : protobuf-lite-3.5.0-13.el8.x86_64
4/6
Installing : mecab-0.996-1.module+el8.0.0+5253+1dce7bb2.9.x86_64
5/6
Running scriptlet: mecab-0.996-1.module+el8.0.0+5253+1dce7bb2.9.x86_64
5/6
Running scriptlet: mysql-server-8.0.26-1.module+el8.4.0+20311+30d12931.x86_64
6/6
Installing : mysql-server-8.0.26-1.module+el8.4.0+20311+30d12931.x86_64
6/6
Running scriptlet: mysql-server-8.0.26-1.module+el8.4.0+20311+30d12931.x86_64
6/6
ValueError: File context for /var/log/mysql(/.*)? already defined

Verifying : mecab-0.996-1.module+el8.0.0+5253+1dce7bb2.9.x86_64
1/6
Verifying : mysql-8.0.26-1.module+el8.4.0+20311+30d12931.x86_64
2/6
Verifying : mysql-common-8.0.26-1.module+el8.4.0+20311+30d12931.x86_64
3/6
Verifying : mysql-errmsg-8.0.26-1.module+el8.4.0+20311+30d12931.x86_64
4/6
Verifying : mysql-server-8.0.26-1.module+el8.4.0+20311+30d12931.x86_64
5/6
Verifying : protobuf-lite-3.5.0-13.el8.x86_64
6/6
Installed:
mecab-0.996-1.module+el8.0.0+5253+1dce7bb2.9.x86_64 mysql-8.0.26-
1.module+el8.4.0+20311+30d12931.x86_64
mysql-common-8.0.26-1.module+el8.4.0+20311+30d12931.x86_64 mysql-errmsg-8.0.26-
1.module+el8.4.0+20311+30d12931.x86_64
mysql-server-8.0.26-1.module+el8.4.0+20311+30d12931.x86_64 protobuf-lite-3.5.0-13.el8.x86_64

Complete!
[root@oractg01 ~]#
[root@oractg01 ~]#
[root@oractg01 ~]# systemctl status mysqld.service
● mysqld.service - MySQL 8.0 database server
Loaded: loaded (/usr/lib/systemd/system/mysqld.service; disabled; vendor preset: disabled)
Active: inactive (dead)

[root@oractg01 ~]# systemctl enable mysqld.service


Created symlink /etc/systemd/system/multi-user.target.wants/mysqld.service →
/usr/lib/systemd/system/mysqld.service.
[root@oractg01 ~]#
[root@oractg01 ~]# mysql -u root
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 9
Server version: 8.0.26 Source distribution

Copyright (c) 2000, 2021, Oracle and/or its affiliates.

Oracle is a registered trademark of Oracle Corporation and/or its


affiliates. Other names may be trademarks of their respective
owners.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql> show databases;


+--------------------+
| Database |
+--------------------+
| information_schema |
| mysql |
| performance_schema |
| sys |
+--------------------+
4 rows in set (0.00 sec)

mysql>

mysql> create database edutronic;


Query OK, 1 row affected (0.02 sec)
mysql> show databases;
+--------------------+
| Database |
+--------------------+
| edutronic |
| information_schema |
| mysql |
| performance_schema |
| sys |
+--------------------+
5 rows in set (0.00 sec)

mysql>
[root@oractg01 ~]# su - oracle
[oracle@oractg01 ~]$ mkdir -p /oracle/product/GoldenGateMySQL
[oracle@oractg01 ~]$
[oracle@oractg01 ~]$ cd /oracle/product/GoldenGateMySQL
[oracle@oractg01 GoldenGateMySQL]$ ls
191003_ggs_Linux_x64_MySQL_64bit.zip
[oracle@oractg01 GoldenGateMySQL]$ unzip 191003_ggs_Linux_x64_MySQL_64bit.zip

[oracle@oractg01 GoldenGateMySQL]$ tar -xvf ggs_Linux_x64_MySQL_64bit.tar

[oracle@oractg01 ~]$ cp .ogg19c.env .oggmysql.env


[oracle@oractg01 ~]$ vi .oggmysql.env
export ORACLE_HOSTNAME=oractg01.edutronic.pe
export ORACLE_BASE=/oracle
export ORACLE_HOME=/oracle/product/19c
export GOLDENGATE_HOME=/oracle/product/GoldenGateMySQL
export ORACLE_SID=PRD
export PATH=$ORACLE_HOME/bin:$ORACLE_HOME/OPatch:$GOLDENGATE_HOME:$PATH
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib
export CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib
export NLS_DATE_FORMAT='DD-MM-YYYY HH24:MI:SS'
export TMP=/tmp
export TMPDIR=$TMP
export CV_ASSUME_DISTID=OEL7.8
alias ggsci='cd $GOLDENGATE_HOME; ./ggsci'

~
~
~
~
~
~
~
~
[root@oractg01 ~]# cd /
[root@oractg01 /]# find . -name libssl.so.10
./oragrid/product/19c/lib/stubs/libssl.so.10
./oracle/product/19c/lib/stubs/libssl.so.10
[root@oractg01 /]# cp ./oracle/product/19c/lib/stubs/libssl.so.10 /usr/lib
[root@oractg01 /]#
[root@oractg01 /]#
[root@oractg01 /]# su - oracle
[oracle@oractg01 ~]$ . .oggmysql.env

[oracle@oractg01 ~]$ ggsci


./ggsci: error while loading shared libraries: libcrypto.so.10: cannot open shared object file: No such
file or directory
[oracle@oractg01 GoldenGateMySQL]$

[oracle@oractg01 GoldenGateMySQL]$ exit


logout
[root@oractg01 /]# cd /
[root@oractg01 /]# find . -name libcrypto.so.10
./oragrid/product/19c/lib/stubs/libcrypto.so.10
./oracle/product/19c/lib/stubs/libcrypto.so.10
[root@oractg01 /]# cp ./oracle/product/19c/lib/stubs/libcrypto.so.10 /usr/lib
[root@oractg01 /]#
[root@oractg01 /]# su - oracle
[oracle@oractg01 ~]$
[oracle@oractg01 ~]$
[oracle@oractg01 ~]$ . .oggmysql.env
[oracle@oractg01 ~]$ ggsci

Oracle GoldenGate Command Interpreter for MySQL


Version 19.1.0.0.3 OGGCORE_19.1.0.0.0_PLATFORMS_190907.0144
Linux, x64, 64bit (optimized), MySQL Enterprise on Sep 7 2019 08:41:32
Operating system character set identified as UTF-8.

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

GGSCI (oractg01.edutronic.pe) 1> create subdirs

Creating subdirectories under current directory /oracle/product/GoldenGateMySQL

Parameter file /oracle/product/GoldenGateMySQL/dirprm: created.


Report file /oracle/product/GoldenGateMySQL/dirrpt: created.
Checkpoint file /oracle/product/GoldenGateMySQL/dirchk: created.
Process status files /oracle/product/GoldenGateMySQL/dirpcs: created.
SQL script files /oracle/product/GoldenGateMySQL/dirsql: created.
Database definitions files /oracle/product/GoldenGateMySQL/dirdef: created.
Extract data files /oracle/product/GoldenGateMySQL/dirdat: created.
Temporary files /oracle/product/GoldenGateMySQL/dirtmp: created.
Credential store files /oracle/product/GoldenGateMySQL/dircrd: created.
Masterkey wallet files /oracle/product/GoldenGateMySQL/dirwlt: created.
Dump files /oracle/product/GoldenGateMySQL/dirdmp: created.
GGSCI (oractg01.edutronic.pe) 2> info all

Program Status Group Lag at Chkpt Time Since Chkpt

MANAGER STOPPED

GGSCI (oractg01.edutronic.pe) 3> edit params mgr

GGSCI (oractg01.edutronic.pe) 4> start mgr


Manager started.

GGSCI (oractg01.edutronic.pe) 5> info all

Program Status Group Lag at Chkpt Time Since Chkpt

MANAGER RUNNING

GGSCI (oractg01.edutronic.pe) 6> info mgr

Manager is running (IP port TCP:oractg01.edutronic.pe.2021, Process ID 57479).

GGSCI (oractg01.edutronic.pe) 7>


[oracle@oraprd01 ~]$ sqlplus / as sysdba

SQL*Plus: Release 19.0.0.0.0 - Production on Sat Sep 3 08:44:16 2022


Version 19.3.0.0.0

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

Connected to:
Oracle Database 19c Enterprise Edition Release 19.0.0.0.0 - Production
Version 19.3.0.0.0

SQL> create user edutronic identified by edutronic quota unlimited on users;

User created.

SQL> grant create session, resource to edutronic;

Grant succeeded.

SQL>
SQL> connect edutronic/edutronic
Connected.
SQL> create table alumnos (id number, name varchar2(20));

Table created.

SQL> alter table alumnos add primary key (id);

Table altered.

SQL> desc alumnos


Name Null? Type
----------------------------------------- -------- ----------------------------
ID NOT NULL NUMBER
NAME VARCHAR2(20)

SQL> select * from alumnos;

no rows selected

SQL>
mysql> create user 'oggate_user'@'localhost' identified by 'MySQLoggateuser1';
Query OK, 0 rows affected (0.02 sec)

mysql> grant all privileges on *.* 'oggate_user'@'localhost';


ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL
server version for the right syntax to use near ''oggate_user'@'localhost'' at line 1
mysql> grant all privileges on *.* to 'oggate_user'@'localhost';
Query OK, 0 rows affected (0.02 sec)

mysql>

[oracle@oractg01 GoldenGateMySQL]$ mysql -u oggate_user -p


Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 12
Server version: 8.0.26 Source distribution

Copyright (c) 2000, 2021, Oracle and/or its affiliates.

Oracle is a registered trademark of Oracle Corporation and/or its


affiliates. Other names may be trademarks of their respective
owners.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql>

mysql> show databases;


+--------------------+
| Database |
+--------------------+
| edutronic |
| information_schema |
| mysql |
| performance_schema |
| sys |
+--------------------+
5 rows in set (0.00 sec)

mysql> use edutronic;


Database changed
mysql> create table students (id int, name varchar(20));
Query OK, 0 rows affected (0.05 sec)

mysql>

mysql> alter table students add primary key (id);


Query OK, 0 rows affected (0.07 sec)
Records: 0 Duplicates: 0 Warnings: 0

mysql>
[oracle@oraprd01 ~]$ . .ogg19c.env
[oracle@oraprd01 ~]$ ggsci

Oracle GoldenGate Command Interpreter for Oracle


Version 19.1.0.0.4 OGGCORE_19.1.0.0.0_PLATFORMS_191017.1054_FBO
Linux, x64, 64bit (optimized), Oracle 19c on Oct 17 2019 21:16:29
Operating system character set identified as UTF-8.

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

GGSCI (oraprd01.edutronic.pe) 1> info all

Program Status Group Lag at Chkpt Time Since Chkpt

MANAGER STOPPED
EXTRACT STOPPED PRDEXT 00:00:00 370:26:44
EXTRACT STOPPED PRDEXT2 00:00:00 250:14:11
EXTRACT STOPPED PRDPUMP2 00:00:00 250:14:11
REPLICAT STOPPED PRDREP 00:00:00 370:26:43

GGSCI (oraprd01.edutronic.pe) 2>

GGSCI (oraprd01.edutronic.pe) 4> edit params eedutron


extract eedutron
exttrail ./dirdat/ee
TRANLOGOPTIONS DBLOGREADER EXCLUDEUSER ggate_user
userid ggate_user, password oracle
table EDUTRONIC.*;
GGSCI (oraprd01.edutronic.pe) 5> view params eedutron

extract eedutron
exttrail ./dirdat/ee
TRANLOGOPTIONS DBLOGREADER EXCLUDEUSER ggate_user
userid ggate_user, password oracle
table EDUTRONIC.*;

GGSCI (oraprd01.edutronic.pe) 6>

GGSCI (oraprd01.edutronic.pe) 5> view params eedutron

extract eedutron
exttrail ./dirdat/ee
TRANLOGOPTIONS DBLOGREADER EXCLUDEUSER ggate_user
userid ggate_user, password oracle
table EDUTRONIC.*;

GGSCI (oraprd01.edutronic.pe) 6> dblogin userid ggate_user


Password:
Successfully logged into database.

GGSCI (oraprd01.edutronic.pe as ggate_user@PRD) 7> add trandata edutronic.*

2022-09-03 08:58:20 INFO OGG-15132 Logging of supplemental redo data enabled for table
EDUTRONIC.ALUMNOS.

2022-09-03 08:58:20 INFO OGG-15133 TRANDATA for scheduling columns has been added on table
EDUTRONIC.ALUMNOS.
2022-09-03 08:58:20 INFO OGG-15135 TRANDATA for instantiation CSN has been added on table
EDUTRONIC.ALUMNOS.

2022-09-03 08:58:21 INFO OGG-10471 ***** Oracle Goldengate support information on table
EDUTRONIC.ALUMNOS *****
Oracle Goldengate support native capture on table EDUTRONIC.ALUMNOS.
Oracle Goldengate marked following column as key columns on table EDUTRONIC.ALUMNOS: ID.

GGSCI (oraprd01.edutronic.pe as ggate_user@PRD) 8>

GGSCI (oraprd01.edutronic.pe as ggate_user@PRD) 8> info all

Program Status Group Lag at Chkpt Time Since Chkpt

MANAGER RUNNING
EXTRACT STOPPED PRDEXT 00:00:00 370:31:24
EXTRACT STOPPED PRDEXT2 00:00:00 250:18:52
EXTRACT STOPPED PRDPUMP2 00:00:00 250:18:51
REPLICAT STOPPED PRDREP 00:00:00 370:31:24

GGSCI (oraprd01.edutronic.pe as ggate_user@PRD) 9> add extract eedutron, tranlog, begin now
EXTRACT added.

GGSCI (oraprd01.edutronic.pe as ggate_user@PRD) 10> add exttrail ./dirdat/ee, extract eedutron, megabytes
50
EXTTRAIL added.
GGSCI (oraprd01.edutronic.pe as ggate_user@PRD) 11> info all

Program Status Group Lag at Chkpt Time Since Chkpt

MANAGER RUNNING
EXTRACT STOPPED EEDUTRON 00:00:00 00:00:40
EXTRACT STOPPED PRDEXT 00:00:00 370:32:34
EXTRACT STOPPED PRDEXT2 00:00:00 250:20:02
EXTRACT STOPPED PRDPUMP2 00:00:00 250:20:01
REPLICAT STOPPED PRDREP 00:00:00 370:32:34

GGSCI (oraprd01.edutronic.pe as ggate_user@PRD) 12>


GGSCI (oraprd01.edutronic.pe as ggate_user@PRD) 16> edit params pedutron
extract pedutron
rmhost oractg01.edutronic.pe, mgrport 2021
rmttrail ./dirdat/pe
passthru
table EDUTRONIC.*;
~
~

GGSCI (oraprd01.edutronic.pe as ggate_user@PRD) 17> view params pedutron

extract pedutron
rmthost oractg01.edutronic.pe, mgrport 2021
rmttrail ./dirdat/pe
passthru
table EDUTRONIC.*;

GGSCI (oraprd01.edutronic.pe as ggate_user@PRD) 19> add extract pedutron, exttrailsource ./dirdat/ee


EXTRACT added.

GGSCI (oraprd01.edutronic.pe as ggate_user@PRD) 20> add rmttrail ./dirdat/pe, extract pedutron, megabytes
50
RMTTRAIL added.

GGSCI (oraprd01.edutronic.pe as ggate_user@PRD) 21> info all

Program Status Group Lag at Chkpt Time Since Chkpt

MANAGER RUNNING
EXTRACT RUNNING EEDUTRON 00:00:00 00:00:00
EXTRACT STOPPED PEDUTRON 00:00:00 00:00:46
EXTRACT STOPPED PRDEXT 00:00:00 370:38:37
EXTRACT STOPPED PRDEXT2 00:00:00 250:26:04
EXTRACT STOPPED PRDPUMP2 00:00:00 250:26:04
REPLICAT STOPPED PRDREP 00:00:00 370:38:36

GGSCI (oraprd01.edutronic.pe as ggate_user@PRD) 22> start EXTRACT PEDUTRON

Sending START request to MANAGER ...


EXTRACT PEDUTRON starting

GGSCI (oraprd01.edutronic.pe as ggate_user@PRD) 23> info all

Program Status Group Lag at Chkpt Time Since Chkpt

MANAGER RUNNING
EXTRACT RUNNING EEDUTRON 00:00:00 00:00:07
EXTRACT STOPPED PEDUTRON 00:00:00 00:01:03
EXTRACT STOPPED PRDEXT 00:00:00 370:38:54
EXTRACT STOPPED PRDEXT2 00:00:00 250:26:22
EXTRACT STOPPED PRDPUMP2 00:00:00 250:26:21
REPLICAT STOPPED PRDREP 00:00:00 370:38:53
GGSCI (oractg01.edutronic.pe) 4> view params redutron

replicat redutron
AssumeTargetDefs
DiscardFile ./dirrpt/redutron.dsc, Purge
targetdb edutronic@localhost:3306, userid oggate_user, password MySQLoggateuser1
map EDUTRONIC.ALUMNOS, target edutronic.alumnos

GGSCI (oractg01.edutronic.pe) 5>

GGSCI (oractg01.edutronic.pe) 5> add checkpointtable


ERROR: Not logged into database, use DBLOGIN.

GGSCI (oractg01.edutronic.pe) 6>


GGSCI (oractg01.edutronic.pe) 7> dblogin SOURCEDB edutronic@localhost:3306, userid oggate_user, password
MySQLoggateuser1

!!! WARNING !!! --> libssl-2.17.0-stub.so

This is a stub library which can be used for linking only. It must *not*
be used as a runtime library. Please make sure this library is not found
in LD_LIBRARY_PATH.

[oracle@oractg01 GoldenGateMySQL]$

[oracle@oractg01 GoldenGateMySQL]$ exit


logout
[root@oractg01 /]#
[root@oractg01 /]# yum install openssl.x86_64 openssl-devel.x86_64

[root@oractg01 /]# yum install libssl.so.10

[root@oractg01 /]# su - oracle


[oracle@oractg01 ~]$ . .oggmysql.env
[oracle@oractg01 ~]$ ggsci

Oracle GoldenGate Command Interpreter for MySQL


Version 19.1.0.0.3 OGGCORE_19.1.0.0.0_PLATFORMS_190907.0144
Linux, x64, 64bit (optimized), MySQL Enterprise on Sep 7 2019 08:41:32
Operating system character set identified as UTF-8.

Copyright (C) 1995, 2019, Oracle and/or its affiliates. All rights reserved.
GGSCI (oractg01.edutronic.pe) 1> dblogin SOURCEDB edutronic@localhost:3306, userid oggate_user, password
MySQLoggateuser1
Successfully logged into database.

GGSCI (oractg01.edutronic.pe DBLOGIN as oggate_user) 2>

GGSCI (oractg01.edutronic.pe DBLOGIN as oggate_user) 2> add checkpointtable


ERROR: Missing checkpoint table specification.

GGSCI (oractg01.edutronic.pe DBLOGIN as oggate_user) 3> add checkpointtable edutronic.tbl_checkpoint

Successfully created checkpoint table edutronic.tbl_checkpoint.

GGSCI (oractg01.edutronic.pe DBLOGIN as oggate_user) 4>

GGSCI (oractg01.edutronic.pe DBLOGIN as oggate_user) 7> add replicat redutron, exttrail ./dirdat/pe
checkpointtable edutronic.tbl_checkpoint
REPLICAT added.

GGSCI (oractg01.edutronic.pe DBLOGIN as oggate_user) 8> info all

Program Status Group Lag at Chkpt Time Since Chkpt

MANAGER RUNNING
REPLICAT STOPPED REDUTRON 00:00:00 00:00:04

GGSCI (oractg01.edutronic.pe DBLOGIN as oggate_user) 9>


[oracle@oraprd01 ~]$ sqlplus edutronic/edutronic

SQL*Plus: Release 19.0.0.0.0 - Production on Sat Sep 3 09:34:52 2022


Version 19.3.0.0.0

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

Last Successful login time: Sat Sep 03 2022 08:45:21 -05:00

Connected to:
Oracle Database 19c Enterprise Edition Release 19.0.0.0.0 - Production
Version 19.3.0.0.0

SQL> select * from alumnos;

no rows selected

SQL> insert into alumnos values (1,'Gerardo');

1 row created.

SQL> insert into alumnos values (2,'Peter');

1 row created.

SQL> commit;

Commit complete.
SQL> insert into alumnos values (3,'Deydith');

1 row created.

SQL> commit;

Commit complete.

SQL>
[oracle@oractg01 ~]$ mysql -u oggate_user -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 16
Server version: 8.0.26 Source distribution

Copyright (c) 2000, 2021, Oracle and/or its affiliates.

Oracle is a registered trademark of Oracle Corporation and/or its


affiliates. Other names may be trademarks of their respective
owners.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql> use edutronic;


Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A

Database changed
mysql> select * from students;
+----+---------+
| id | name |
+----+---------+
| 1 | Gerardo |
| 2 | Peter |
+----+---------+
2 rows in set (0.00 sec)

mysql> mysql> select * from students;


+----+---------+
| id | name |
+----+---------+
| 1 | Gerardo |
| 2 | Peter |
+----+---------+
2 rows in set (0.00 sec)

mysql> select * from students;


+----+---------+
| id | name |
+----+---------+
| 1 | Gerardo |
| 2 | Peter |
| 3 | Deydith |
+----+---------+
3 rows in set (0.00 sec)

mysql>

You might also like