• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • VCS
  • Interview Questions
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

Oracle GoldenGate: Extract Sample Parameter File

by admin

This post provides sample example of Oracle GoldenGate parameter files that can be used to configure Oracle GoldenGate replication setup inline with recommended best practices. The example is generic and can serve as a starting point for a more customized Oracle GoldenGate implementation.

Extract Process

The extract process of Oracle GoldenGate is used to perform change data capture from the source database. The extract is used to synchronize data that is read from the online transaction log (in Oracle the online redo logs) or the associated archive logs. The data that is extracted, when configured for change synchronization, from the source database is then stored until it receives either a commit or rollback. On a commit, the extract persists the transaction to disk where it is stored in a series of files known as a trail file. Committed transactions will be stored in a trail file in sequentially organized transaction units. Once transactions are persisted to disk in a trail file, the transaction can be shipped using standard TCP/IP protocols.

Process name: Extract
Description: The Extract process captures either full data records or transactional data changes, depending on configuration parameters, and then sends the data to a target system to be applied to target tables or processed further by another process, such as a load utility.

Extract parameter file (Sample)

-- ###################################################################
-- Runcmd: ADD EXTRACT [extract name], TRANLOG, BEGIN NOW
-- Runcmd: ADD EXTTRAIL [extract trail path/two character trail id] ,
-- EXTRACT [extract name], Megabytes [n]
-- Name of the extract process. Limited to 8 charecters.

EXTRACT [Extract name]

-- DB environment settings
SETENV (ORACLE_HOME = "[Oracle home path]" )
SETENV (ORACLE_SID="[Oracle sid]")

-- OGG database user login
USERID [username] password [encrypted password], encryptkey default

-- Local trail info
EXTTRAIL [extract trail path/two character trail id]

-- Prevent data looping. This is generally used in bi-directional
-- configuration
TRANLOGOPTIONS EXCLUDEUSER [Replicat username]

-- ASM login info  (Oracle only. If db is using ASM)
TRANLOGOPTIONS ASMUSER sys@[connect string], ASMPASSWORD [encrypted password], encryptkey default

--DBLOGREADER enables Extract to use a read buffer size of up to 4 MB 
--- in size. A larger buffer may improve the performance of Extract when 
-- redo rate is high. The db has to be 10.2.0.5 or higher to use
-- this feature. If DBLOGREADER parameter is in place then the above
-- ASMUSER parameter should not be used.

TRANLOGOPTIONS DBLOGREADER, DBLOGREADER BUFSIZE [x], BUFSIZE [y]

--DDL replication parameters
DDL INCLUDE ALL, EXCLUDE OBJNAME "[schema name].[object name] "
DDLOPTIONS ADDTRANDATA

--Discard file location.
DISCARDFILE [diacard file path/[discard file name.dsc], APPEND Megabytes [n]

-- Use the DISCARDROLLOVER parameter to set a schedule for aging discard --files.
DISCARDROLLOVER AT [hh:mi] on [day of the week]

-- Use the REPORTROLLOVER parameter to force report files to age on a
-- regular schedule, instead of when a process starts
REPORTROLLOVER AT [hh:mi] on [day of the week]

-- Use the REPORTCOUNT parameter to report a count of transaction
-- records that Extract or Replicat processed since startup
REPORTCOUNT EVERY [n] HOURS, RATE

-- Use the FETCHOPTIONS parameter to control certain aspects of the way -- that GoldenGate fetches data
FETCHOPTIONS, USESNAPSHOT, NOUSELATESTVERSION, MISSINGROW REPORT
STATOPTIONS REPORTFETCH

-- Warn for long running txns
WARNLONGTRANS [n]H, CHECKINTERVAL [n]m

-- List of tables
Table [source schema name].[table name];
..
Oracle GoldenGate: GLOBALS Sample Parameter File
Oracle GoldenGate: Manager Sample Parameter File
Oracle GoldenGate: Extract Sample Parameter File
Oracle GoldenGate: Pump (Extract) Sample Parameter File
Oracle GoldenGate: Replicat Sample Parameter File

Filed Under: GoldenGate, oracle

Some more articles you might also be interested in …

  1. How to Find the SQL_ID for a SQL statement or PL/SQL block
  2. How to Configure client connectivity in Oracle Data Guard configuration (Implement failover procedures)
  3. RMAN-06059 During RMAN Backup of archivelogs ( How to backup archivelogs moved to a different location)
  4. Oracle 12c: Unplug/Plug PDB to new CDB using RMAN Active Database Duplication
  5. Oracle 12c New Feature: LREG Background Process
  6. RMAN backup Concepts for Oracle RAC
  7. Oracle ASM 11gR2 instance is unable to start due to missing ASM spfile
  8. How to Restore a Dropped Pluggable Database (PDB) in Multitenant Environment
  9. Recommendation for the Oracle Real Application Cluster Interconnect and Jumbo Frames
  10. Oracle RMAN 12c – New Features

You May Also Like

Primary Sidebar

Recent Posts

  • qm Command Examples in Linux
  • qm wait Command Examples in Linux
  • qm start Command Examples in Linux
  • qm snapshot Command Examples in Linux

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright