Top 50 Oracle Goldengate Interview Questions You Must Prepare 24.May.2024

Steps to configure Oracle Credential Store are as follows:

  • By Default Credential Store is is located under “dircrd” directory.

If you want to specify a different location use can specidy “CREDENTIALSTORELOCATION” parameter in GLOBALS file.

  • Goto OGG home and connect to GGSCI.


The RESTARTCOLLISION parameter is used to skip ONE traction only in a situation when the GoldenGate process crashed and performed an operation (INSERT, UPDATE & DELETE) in the database but could not checkpoint the process information to the checkpoint file/table. On recovery it will skip the traction and AUTOMATICALLY continue to the next operation in the trail file.

When using HANDLECOLLISION GoldenGate will continue to overwritten and process tractions until the parameter is removed from the parameter files and the processes restarted.

The lag and checkpoint latency of the Extract, pump and Replicat processes are normally monitored.

GoldenGate supports the following topologies:

  • Unidirectional
  • Bidirectional
  • Peer-to-peer
  • Broadcast
  • Consolidation
  • Cascasding

[PASSWORD password]
[ALIAS alias]
[DOMAIN domain]

Use the manager process to delete the extract files after they are consumed by the extract/replicat process


In pass-through mode, the Extract process does not look up the table definitions, either from the database or from a data definitions file. This increases the throughput of the data pump, as the object definition look-up is bypassed.

You can install Oracle GoldenGate 12c using in 2 ways:

  • Interactive Installation with OUI – Graphical interface
  • Silent Installation with OUI – Command Interface

Oracle is able to provide faster integration of the new database features by moving the GoldenGate Extraction processes into the database. Due to this, the GoldenGate Integrated Extract has a number of features like Compression which are not supported in the traditional Extract. You can read more about how to upgrade to Integrated Extract and more about Integrated Delivery. Going forward preference should be give to create new extracts as Integrated Extracts and also to upgrade existing traditional Extracts.

Oracle Integrated Delivery is only available for Oracle Databases.

The database services required to support Oracle GoldenGate capture and apply must be enabled explicitly for an Oracle database. This is required for all modes of Extract and Replicat.

To enable Oracle GoldenGate, set the following database initialization parameter. All instances in Oracle RAC must have the same setting.


OGG checkpoint provides the fault tolerance and make sure that the traction marked for committed is capture and captured only once. Even if the extract went down abnormally, when you start the process again it reads the checkpoint file to provide the read consistency and traction recovery.

When the source and the target schema objects are not the same (different DDL’s) the Replicat process needs to know the source definition of the objects. The output from the DEFGEN utility is used in conjunction with the trail data to determine which column value in the trail belongs to which column.

The following supplemental logging is required.

  • Database supplemental logging
  • Object level logging

You can create the COORDINATED REPLICATE with the following OGG Command:


Yes with 12c, performance statistics are collected in the AWR repository and the data is available via the normal AWR reports.

The following are the minimum required parameters which must be defined in the extract parameter file.


Goldengate supports both DML and DDL Replication from the source to target.

Starting with OGG 12c, if you don’t specify a DISCARDFILE OGG process now generates a dicard file with default values whenever a process is started with START command through GGSCI.

You will have to use the CSV Flat File Adaptor to create CSV files. The source would be the extract trail files which use the configuration of the adaptor settings to generate CSV files.

Oracle is the the minimum required database version which supports both Integrated extract and Integrated Reaplicat.

The logdump utility is used to open the trail files and look at the actual records that have been extracted from the redo or the archive log files.

In OGG you can configure replicat at the data at the schema level or at the table level using TABLE parameter of extract and MAP parameter of replicat.
For replicating the entire database you can list all the schemas in the database in the extract/replicat parameter file.
Depending the amount of redo generation you can split the tables in a schema in multiple extracts and replicats to improve the performance of data replication. Alternatively youcan also group a set of tables in the confiuration by the application functionality.
Alternatively you may need to remove tables which have long running tractions in a seperate extract process to eliminte lag on the other tables.
Let’s say that you have a schema named SCOTT and it has 100 hundred tables.
Out of these hundred tables, 50 tables are heavily utilized by application.

To improve the overall replication performance you create 3 extract and 3 replicats as follows:
Ext_1/Rep_1 –> 25 tables
Ext_2/Rep_2 –> 25 tables
Ext_3/Rep_3 –> 50 tables
Ext_1/Rep_1 and Ext_2/Rep_2 contains 25 table each which are heavily utilized or generate more redo.
Ext_3/Rep_3 contains all the other 50 tables which are least used.

The WARNLONGTRANS parameter can be specified with a threshold time that a traction can be open before Extract writes a warning message to the ggs error log.


The parameters below can be used to improve the replicat performance:


Only one Extract process can write to one exttrail at a time. So you can’t configure multiple extracts to write to the same exttrail.

You can encrypt the password/data using the AES in three different keys

  • 128 bit
  • 192 bit and
  • 256 bit

You can encrypt a password in OGG using

  • Blowfish algorithm and
  • Advance Encryption Standard (AES) algorithm

In OGG 12c you can encrypt data with the following 2 methods:

  • Encrypt Data with Master Key and Wallet
  • Encrypt Data with ENCKEYS

This occurs when the V$ARCHIVED_LOG.NEXT_CHANGE# is greater than the SCN required by the GoldenGate Capture process and RMAN is trying to delete the archived logs. The RMAN-08147 error is raised when RMAN tries to delete these files.

When the database is open it uses the DBA_CAPTURE values to determine the log files required for mining. However if the database is in the mount state the V$ARCHIVED_LOG. NEXT_CHANGE# value is used.

Use the following command to view the Extract checkpoint information.

GGSCI> info extract , showch

GGSCI> info extract ext_fin, showch

It is recommended that all instances of Oracle GoldenGate be the same version to take advantage of the new functionality, but this is not possible all the time and is not required. In this scenario, OGG provides a parameter called ‘FORMAT RELEASE’ which allows customers to use different versions of Oracle GoldenGate Extract, trail files, and Replicat together.

Example: RmtTrail /u01/app/oracle/dirdat, Format Release 11.1

Note: The input and output trails of a data pump must have the same trail file version.

Some of the possible reasons are:

  • Large amount of tractions on a particular table.
  • Blocking sessions on the destination database where non-Goldengate tractions are also taking place on the same table as the replicat processing.
  • If using DBFS, writing & reading of trail files may be slow if SGA parameters are not tuned.
  • For slow Replicat’s, latency may be due to missing indexes on target.
  • Replicat having to process Update, delete of rows in very large tables.

The steps to be executed would be the following:

  • Include the new table to the Extract & pump process.
  • Obtain starting database SCN and Copy the source table data to the target database
  • Start Replicat on target at the source SCN database point.

You must use the DECRYPT option before viewing data in the Trail data.
List few useful Logdump commands to view and search data stored in OGG trail files.
Below are few logdump commands used on a daily basis for displaying or analyzing data stored in a trail file.
$ ./logdump – to connect to the logdump prompt
logdump> open /u01/app/oracle/dirdat/et000001 – to open a trail file in logdump
logdump> fileheader on – to view the trail file header
logdump> ghdr on – to view the record header with data
logdump> detail on – to view column information
logdump> detail data – to display HEX and ASCII data values to the column list
logdump> reclen 200 – to control how much record data is displayed
logdump> pos 0 – To go to the first record
logdump> next (or simply n) – to move from one record to another in sequence
logdump> count – counting records in a trail

You must use OGG 11.2 and configure GoldenGate Integrated Capture process to extract data from compressed tables.

Note: Pre OGG 11.2 doesn’t support extracting data from compressed tables

In a Coordinated Mode Replicat operates as follows:

  • Reads the Oracle GoldenGate trail.
  • Performs data filtering, mapping, and conversion.
  • Constructs SQL statements that represent source database DML or DDL tractions (in committed order).
  • Applies the SQL to the target through the SQL interface that is supported for the given target database, such as ODBC or the native database interface.

The following are some of the more interesting features of Oracle GoldenGate 12c:

  • Support for Multitenant Database
  • Coordinated Replicat
  • Integrated Replicat Mode
  • Use of Credential store
  • Use of Wallet and master key
  • Trigger-less DDL replication
  • Automatically adjusts threads when RAC node failure/start
  • Supports RAC PDML Distributed traction
  • RMAN Support for mined archive logs


OGG has 2 functionalities, one it is used for Online data Replication and second for Initial Loading.

If you are replicating data between 2 homogeneous databases then the best method is to use database specific method (Exp/Imp, RMAN, Trportable tablespaces, Physical Standby and so on). Database specific methods are usually faster than the other methods.

—If you are replicating data between 2 heterogeneous databases or your replicat involves complex trformations, then the database specific method can’t be used. In those cases you can always use Oracle GoldenGate to perform initial load.

Within Oracle GoldenGate you have 4 different ways to perform initial load.

  • Direct Load – Faster but doesn’t support LOB data types (12c include support for LOB)
  • Direct Bulk Load – Uses SQL*LOAD API for Oracle and SSIS for MS SQL SERVER
  • File to replicat – Fast but the rmtfile limit is 2GB. If the table can’t be fit in 1 rmtfile you can use maxfiles but the replicat need to be registered on the target OGG home to read the rmtfiles from source.
  • File to Database utility – depending on the target database, use SQL*LOAD for Oracle and SSIS for MS SQL SERVER and so on.

Oracle GoldenGate initial loading reads data directly from the source database tables without locking them. So you don’t need downtime but it will use database resources and can cause performance issues. Take extra precaution to perform the initial load during the non-peak time so that you don’t run into resource contention.

It is equivalent of the Oracle database SCN traction number.

When operating in integrated capture mode, you must make sure that you have assigned sufficient memory to STREAMS_POOL_SIZE. An undersized STREAMS_POOL_SIZE or limiting the streams pool to use a specific amount of memory can cause troubles.

The best practice is to allocate STREAMS_POOL_SIZE at the instance level and allocate the MAX. SGA at GG process level as below:

SQL> alter system set STREAMS_POOL_SIZE=3G


Oracle Goldengate provides 3 types of Encryption.

  • Data Encryption using Blow fish.
  • Password Encryption.
  • Network Encryption.

The difference between classic mode and coordinated mode is that Replicat is multi-threaded in coordinated mode. Within a single Replicat instance, multiple threads read the trail independently and apply tractions in parallel. Each thread handles all of the filtering, mapping, conversion, SQL construction, and error handling for its assigned workload. A coordinator thread coordinates the tractions across threads to account for dependencies among the threads.

OGG Credential Store manages Encrypted Passwords and USERIDs that are used to interact with the local database and Associate them with an Alias. Instead of specifying actual USERID and Password in a command or a parameter file, you can use an alias. The Credential Store is implemented as an auto login wallet within the Oracle Credential Store Framework (CSF).

Some of the possible reasons are:

  • Long running batch tractions on a table.
  • Insufficient memory on the Extract side. Uncommitted, long running tractions can cause writing of a traction to a temporary area (dirtmp) on disk. Once the traction is committed it is read from the temporary location on the file system and converted to trail files.
  • Slow or overburdened Network.

The replication configuration consists of the following processes:

  • Manager
  • Extract
  • Pump
  • Replicate