-
Book Overview & Buying
-
Table Of Contents
Oracle Goldengate 12c Implementers Guide
By :
Another key decision in any GoldenGate implementation is what data to replicate. There is little point replicating data that doesn't need to be replicated, as this will cause unnecessary additional overhead. Furthermore, if you decide that you need to replicate everything, GoldenGate may not necessarily provide the best solution. Other products such as Oracle Active Data Guard may be more appropriate. The forthcoming paragraphs talk not only about what to replicate, but also how to replicate along with important functional and design considerations.
The power of GoldenGate comes into its own when you select what data you wish to replicate by using its inbuilt tools and functions. You may even wish to transform the data before it is applied to the target. There are numerous options at your disposal, but choosing the right combination is paramount.
The configuration of GoldenGate includes the mapping of source objects to target objects. Given the enormity of the parameters and functions available, it is easy to over complicate your GoldenGate Extract or Replicat process configuration through redundant operations. Try to keep your configuration as simple as possible, choosing the right parameter, option, or function for the job. Although it is possible to string these together to achieve a powerful solution, this may cause significant additional processing and the performance will suffer as a result.
GoldenGate provides the ability to select or filter out data based on a variety of levels and conditions. Typical data mapping and selection parameters are:
TABLE/MAP: Specifies the source and target objects to replicate. TABLE is used in Extract and MAP in Replicat parameter files.WHERE: Similar to the SQL WHERE clause, the WHERE option included with a TABLE or MAP parameter enables basic data filtering.FILTER: Provides complex data filtering. The FILTER option can be used with a TABLE or MAP parameter.COLS/COLSEXCEPT: The COLS and COLSEXCEPT option allows columns to be mapped or excluded when included with a TABLE or MAP parameter.Before GoldenGate can extract data from the database's transaction logs, the relevant data needs to be included in its redo log files. For the Oracle source database, a number of prerequisites exist to ensure that the changed data can be replicated.
FORCE LOGGING feature at database level to override any NOLOGGING operation, which ensures all changed data is written to the redo logs.UPDATE transaction, which are written to the database's transaction logs.
WARNING OGG-00869 No unique key is defined for table 'TARGET_TABLE_NAME'. All viable columns will be used to represent the key, but may not guarantee uniqueness. KEYCOLS may be used to define the key.
UPDATE and DELETE operations.The initial load is the process of instantiating the objects on the source database, synchronizing the target database objects with the source and providing the starting point for data replication. The process enables change synchronization, which keeps track of the ongoing transactional changes while the load is being applied. This allows users to continue to change data on the source during the initial load process.
The initial load can be successfully conducted using:
If change synchronization is not required during the initial load, then the following best practices should be adopted:
An Oracle database uses the System Change Number (SCN) to keep track of transactions. For every commit, a new SCN is assigned. The data changes, including primary key and SCN, are written to the database's online redo logs. Oracle requires these logs for crash recovery, which allows the committed transactions to be recovered (uncommitted transactions are rolled back). GoldenGate leverages this mechanism by reading the online redo logs, extracting the data, and storing the SCN as a series of bytes. The Replicat process replays the data in SCN order while applying data changes to the target database. The Oracle GoldenGate manuals refer to the SCN as a CSN (Commit Sequence Number).
As a prerequisite to enable GoldenGate in your environment, the Oracle source database must be in the Archivelog mode to allow the mining of its archived redo logs, following a fallback or outage in replication.
Oracle GoldenGate's trail files are in a canonical format. Backed by checkpoint files for persistence, they store the changed data in a hierarchical form, including metadata definitions. The GoldenGate software includes a comprehensive utility named Logdump that has a number of commands to search and view the internal file format.
Oracle database redo log and GoldenGate trail file formats differ between versions. A trail or Extract file must have a version that is equal to, or lower than, that of the process that reads it.
Change the font size
Change margin width
Change background colour