ORACLE GoldenGate Initial Load

来源:这里教程网 时间:2026-03-03 17:31:40 作者:

16 Instantiating Oracle GoldenGate with an Initial Load

This chapter describes running an initial data load to instantiate the replication environment.

This chapter includes the following sections: Overview of the Initial-Load Procedure Loading Data with a Database Utility Loading Data with Oracle Data Pump Loading Data from File to Replicat Loading Data from File to Database Utility Loading Data with an Oracle GoldenGate Direct Load Loading Data with a Direct Bulk Load to SQL*Loader Loading Data with Teradata Load Utilities Overview of the Initial-Load Procedure Loading Data with a Database Utility Loading Data with Oracle Data Pump Loading Data from File to Replicat Loading Data from File to Database Utility Loading Data with an Oracle GoldenGate Direct Load Loading Data with a Direct Bulk Load to SQL*Loader Loading Data with Teradata Load Utilities

16.1 Overview of the Initial-Load Procedure

You can use Oracle GoldenGate to:

  • Perform a standalone batch load to populate database tables for migration or other purposes.

  • Load data into database tables as part of an initial synchronization run in preparation for change synchronization with Oracle GoldenGate.

  • Data: Make certain that the target tables are empty. Otherwise, there may be duplicate-row errors or conflicts between existing rows and rows that are being loaded.

  • Constraints: Disable foreign-key constraints and check constraints. Foreign-key constraints can cause errors, and check constraints can slow down the loading process. Constraints can be reactivated after the load concludes successfully.

  • Indexes: Remove indexes from the target tables. Indexes are not necessary for inserts. They will slow down the loading process significantly. For each row that is inserted into a table, the database will update every index on that table. You can add back the indexes after the load is finished.

    Note:

    A primary index is required for all applications that access DB2 for z/OS target tables. You can delete all other indexes from the target tables, except for the primary index.

  • Keys: For Oracle GoldenGate to reconcile the replicated incremental data changes with the results of the load, each target table must have a primary or unique key. If you cannot create a key through your application, use the  KEYCOLS option of the  TABLE and  MAP parameters to specify columns as a substitute key for Oracle GoldenGate's purposes. A key helps identify which row to process. If you cannot create keys, the source database must be quiesced for the load.

  • 相关推荐