Add the Primary Extract
The primary Extract writes to a trail. These steps add the primary Extract that captures change data.
- If using downstream capture, set the RMAN archive log deletion policy to the following value in the source database:
CONFIGURE ARCHIVELOG DELETION POLICY TO APPLIED ON ALL STANDBYThis must be done before you add the primary Extract.
- Run GGSCI.
- If using integrated capture, issue the
DBLOGINcommand.DBLOGIN USERIDALIASaliasWhere:
aliasspecifies the alias of the database login credential that is assigned to Extract. This credential must exist in the Oracle GoldenGate credential store. - Issue the
ADD EXTRACTcommand to add the primary Extract group.ADD EXTRACT
group name{, TRANLOG | , INTEGRATED TRANLOG} {, BEGIN {NOW |yyyy-mm-dd[hh:mi:[ss[.cccccc]]]} | SCNvalue} [, THREADSn]Where:
-
group nameis the name of the Extract group. -
INTEGRATED TRANLOGspecifies that Extract receives logical change records through a database logmining server; for integrated capture only. See Example 6-1. Before issuingADD EXTRACTwith this option, make certain you logged in to the database with theDBLOGINcommand and that you registered this Extract with the database. See Registering Extract with the Mining Database for more information. -
BEGINspecifies to begin capturing data as of a specific time:-
NOWstarts at the first record that is time stamped at the same time thatADD EXTRACTis issued. -
yyyy-mm-dd[hh:mi:[ss[.cccccc]]]starts at an explicit timestamp. Logs from this timestamp must be available. For Extract in integrated mode, the timestamp value must be greater than the timestamp at which the Extract was registered with the database. -
SCNvaluestarts Extract at the transaction in the redo log that has the specified Oracle system change number (SCN). For Extract in integrated mode, the SCN value must be greater than the SCN at which the Extract was registered with the database. See Registering Extract with the Mining Database for more information.
-
-
THREADSnis required in classic capture mode for Oracle Real Application Cluster (RAC), to specify the number of redo log threads being used by the cluster. Extract reads and coordinates each thread to maintain transactional consistency. Not required for integrated capture.
Note:
Additional options are available. See Parameters and Functions Reference for Oracle GoldenGate.
-
Example 6-1 Integrated capture with timestamp start point
DBLOGIN USERIDALIAS myalias ADD EXTRACT finance, INTEGRATED TRANLOG, BEGIN NOW