Initializing the Transaction Logs

When you initialize a transaction log, you must ensure that all of the data is processed by Oracle GoldenGate first, and then you must delete and re-add the Extract group and its associated trail.

  1. Stop the application from accessing the database. This stops more transaction data from being logged.
  2. Connect the Admin Client command line using the CONNECT command.
  3. Issue the SEND EXTRACT command with the LOGEND option for the primary Extract group. This command queries Extract to determine whether or not Extract is finished processing the records that remain in the transaction log.
    SEND EXTRACT group LOGEND
  4. Continue issuing the command until it returns a YES status, indicating that there are no more records to process.
  5. On the target system, issue the SEND REPLICAT command with the STATUS option. This command queries Replicat to determine whether or not it is finished processing the data that remains in the trail.
    SEND REPLICAT group STATUS
  6. Continue issuing the command until it shows 0 records in the current transaction, for example:
    Sending STATUS request to REPLICAT REPSTAB...
    Current status:
      Seqno 0, Rba 9035
      0 records in current transaction.
    
  7. Stop the primary Extract group, and the Replicat group.
    STOP EXTRACT group
    STOP REPLICAT group
    
  8. Delete the Extract and Replicat groups.
    DELETE EXTRACT group
    DELETE REPLICAT group
    
  9. Using standard operating system commands, delete the trail files.
  10. Stop the database.
  11. Initialize and restart the database.
  12. Recreate the primary Extract group.
    ADD EXTRACT group TRANLOG, BEGIN NOW
  13. Recreate the local trail (if used).
    ADD EXTTRAIL trail, EXTRACT group
  14. Recreate the remote trail.
    ADD RMTTRAIL trail, EXTRACT group
  15. Recreate the Replicat group.
    ADD REPLICAT group, EXTTRAIL trail
  16. Start Extract and Replicat.
    START EXTRACT group 
    START REPLICAT group