Loading data with files to the database utility method
In this recipe we will look into the detailed steps of instantiating a target database from a source database using the GoldenGate extract file to the database utility method. Although this method can be used to load the data into a variety of databases, for example, Microsoft SQL Server and Oracle DB2, we will focus on loading the data into the target Oracle database using the SQL * Loader. For this, we will instantiate the EMP
table with 1 million rows to the target database while it gets updated with various transactions. We will also verify at the end of the initial load that all of these changes have been applied to the target as well.
Getting ready
For this recipe we will use the following setup:
Create a modified version of the
EMP
table that is delivered in theSCOTT
demo schema with Oracle binaries in the source and target databases. You can use the following DDL statement to create theEMP
table:CREATE TABLE EMP ( EMPNO NUMBER...