Oracle GoldenGate Initial Load

Goldengate version 12.1.2.1.0

At source:

within your gg home directory

./ggsci


GGSCI> dblogin userid <username>, password <password>

GGSCI> add extract exsource, SOURCEISTABLE

GGSCI> edit param exsource

inside vi editor

EXTRACT exsource

SETENV (ORACLE_SID=orclSrc)
SETENV (ORACLE_HOME="/u01/app/oracle/product/11.2.0.3")
userid <gg username>, password <password>
RMTHOST <remote hostname>, MGRPORT 7809
RMTFILE <Remote GG HOME>/dirdat/dp, MEGABYTES 1024, format level 4 PURGE

--Reduce the system I/O overhead of redolog reads, <n> in second
EOFDELAY 5

TABLE <schema>.<table name>;


<ESC> then :wq to save and quit the editor


GGSCI> start exsource




At target:

within your gg home directory

./ggsci

GGSCI> add checkpointtable chk

GGSCI> add replicat rtarget, exttrail <Remote GG HOME>/dirdat/dp, checkpointtable chk

GGSCI> edit param rtarget

inside vi editor

REPLICAT RTARGET

SETENV (ORACLE_SID=orclTrgt)
SETENV (ORACLE_HOME="/u01/app/oracle/product/11.2.0.3")
userid <gg username>, password <password>
REPERROR (1403, IGNORE)
WILDCARDRESOLVE DYNAMIC
HANDLECOLLISIONS
ASSUMETARGETDEFS
SOURCECHARSET PASSTHRU
MAP  <schema>.<table name>, TARGET  <schema>.<table name>;

<ESC> then :wq to save and quit the editor

GGSCI> start rtarget


Comments

Popular posts from this blog

MongoDB tip: 4 ways to modify replica set configuration

MongoDB Quick Note: BI Connector Issue

MongoDB Tips: Kill long running processes