• LOGIN
  • No products in the cart.

Oracle Golden Gate Interview Questions

What are the main components of the Goldengate replication?

The replication configuration consists of the following processes.

  • Manager
  • Extract
  • Pump
  • Replicate

What are the supplemental logging pre-requisites?

The following supplemental logging is required.

  • Database supplemental logging
  • Object level logging

Is there a separate background process for writing flashback logs?

Yes. RVWR (Recovery Writer, Flashback Writer) was introduced in Oracle 10g to write flashback data from the Flashback Buffer in the SGA to the flashback database logs on disk.

Oracle Golden Gate

What command can be used to switch writing the trail data to a new trail file?

You can use the following command to write the trail data to a new trail file.

SEND EXTRACT ext_name, ROLLOVER

What happens if RVWR cannot write to disk?

It depends on the context where the write error occurs:

If there’s a Guaranteed Restore Point, the database crashes to ensure the restore point guarantee is not voided.

If there isn’t a Guaranteed Restore Point and it’s a primary database, the Flashback Mode will be automatically turned off for the database, which will continued to operate normally.

If there isn’t a Guaranteed Restore Point and it’s a standby database, the database will hang until the cause of the write failure is fixed.

What type of Topology does Goldengate support?

GoldenGate supports the following topologies;

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

How is the RESTARTCOLLISION parameter different from HANDLECOLLISIONS?

The RESTARTCOLLISION parameter is used to skip ONE transaction 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 transaction and AUTOMATICALLY continue to the next operation in the trail file.

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

Do I need to shutdown and mount the database to turn flashback on?

ALTER DATABASE FLASHBACK ON is an online operation in 11g Release 2. In 10g Release 2 the database must be mounted, but not open.

Once flashback is turned on Oracle starts to save the before-images of the database blocks before they are changed. This guarantees that the database can be flashbacked to the exact point-in-time when the flashback mode was turned on.

What are the basic resources required to configure Oracle GoldenGate high availability solution with Oracle Clusterware?

There are 3 basic resources required:

  • Virtual IP
  • Shared storage
  • Action script

What transaction types does Goldengate support for Replication?

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

Is there a way to check the syntax of the commands in the parameter file without actually running the GoldenGate process

Yes, you can place the SHOWSYNTAX parameter in the parameter file and try starting. If there is any error you will see it.

How can you increase the maximum size of the read operation into the buffer that holds the results of the reads from the transaction log?

If you are using the Classical Extract you may use the TRANSLOGOPTION ASMBUFSIZE parameter to control the read size for ASM Databases.

What information can you expect when there us data in the discard file?

When data is discarded, the discard file can contain:

  1. Discard row details
  2. Database Errors
  3. Trail file number

How to list restore points in RMAN?

In RMAN you can use the LIST RESTORE POINT [ALL|restore_point_name] command. If you use a recovery catalog you can use the view RC_RESTORE_POINT in the recovery catalog repository, or the command the V$RESTORE_POINT in the target database.

What database does GoldenGate support for replication?

  • Oracle Database
  • TimesTen
  • MySQL
  • IBM DB2
  • Microsoft SQL Server
  • Informix
  • Teradata
  • Sybase
  • Enscribe
  • SQL/MX

What are the different encryption levels in AES?

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

  1. a) 128 bit
    b) 192 bit and
    c) 256 bit

How can you determine if the parameters for a process was recently changed

Whenever a process is started, the parameters in the .prm file for the process is written to the process REPORT. You can look at the older process reports to view the parameters which were used to start up the process. By comparing the older and the current reports you can identify the changes in the parameters.

What is the Future of the Oracle GoldeanGate

How should I set the database to improve Flashback performance?

Oracle’s recommendations are:

Use a fast file system for your flash recovery area, preferably without operating system file caching. It is recommended to use a file system that avoids operating system file caching, such as ASM.

Configure enough disk spindles for the file system that will hold the flash recovery area. For large production databases, multiple disk spindles may be needed to support the required disk throughput for the database to write the flashback logs effectively.

If the storage system used to hold the flash recovery area does not have non-volatile RAM, try to configure the file system on top of striped storage volumes, with a relatively small stripe size such as 128K. This will allow each write to the flashback logs to be spread across multiple spindles, improving performance

For large, production databases, set the init.ora parameter LOG_BUFFER to be at least 8MB. This makes sure the database allocates maximum memory (typically 16MB) for writing flashback database logs.

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

How would you comment out a line in the parameter file?

You can use the “–” character to comment out a line.

January 25, 2020
GoLogica Technologies Private Limited. All rights reserved 2024.