• 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: Replicat 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.

Replicat Process

The replicate process is the apply process within an Oracle GoldenGate environment. The replicate process is responsible for reading the trail files and applying the transactions found in chronological order. This ensures that the data is applied in the same order it was captured (SCN order). Until recently, there was only one version of the replicat process, the classic replicate. Starting in Oracle GoldenGate 12c (12.1.2.0), there are now three distinct versions of the replicate:

  • Classic
  • Coordinated
  • Integrated

Each of these modes provides some sort of benefit, depending on the database to which it is being applied. Oracle is pushing everyone to a more integrated approach; however, you have to be on database version 11.2.0.4 at a minimum.

Process name: Replicat
Description: The Replicat process reads data extracted by the Extract process and applies it to target tables or prepares it for use by another application, such as a load application.

Replicat parameter file (Sample)

-- ###################################################################
-- Runcmd: ADD REPLICAT [REPLICAT name], EXTTRAIL [trail file path/two -- character trail id]
-- Name of the replicat process. Limited to 8 charecters. 

REPLICAT [Replicat name]

-- Oracle environment settings
SETENV (ORACLE_HOME = "[Oracle home path]" )
SETENV (ORACLE_SID= "[Oracle sid]")
SETENV (NLS_LANG = ="[Target db charecterset]")

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

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

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

-- The following parameter speeds up replicat processing rate. The
-- parameter alters the replicat oracle session to not wait for commits -- to be persisted to the redo.
SQLEXEC "ALTER SESSION SET COMMIT_WRITE = NOWAIT"

-- Use the BATCHSQL parameter to increase the performance of Replicat. 
-- BATCHSQL causes Replicat to organize similar SQL statements into arrays and apply 
-- them at an accelerated rate.
BATCHSQL

-- 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

-- List of tables (MAP statements)
MAP [source schema name].[table name], TARGET [target schema name].[tablename];
...
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. Oracle GoldenGate: Pump (Extract) Sample Parameter File
  2. 12c ASM: PRCR-1001 : Resource ora.proxy_advm Does Not Exist (Flex ASM with Cardinality = ALL)
  3. How to Force ASM to Scan the Multipathed Device First using ASMLIB/oracleasm
  4. Oracle 11gR2 (11.2.0.1) Unable To Create ASM Spfile Standalone
  5. How To Find Creation Time of Oracle Pluggable Database (PDB)
  6. Interview Questions : Oracle 12c Multitenant Database Architecture
  7. Understanding SQL Joins – Inner, Left, Right & Full Joins
  8. How to Monitor Process Memory Usage on Oracle Pluggable Databases
  9. How to Use Startup, Shutdown, and Alter Database commands in Oracle 12c
  10. Shell Script to run DataPump Import Export

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