Table of Contents

Search

  1. Preface
  2. PowerExchange CDC Publisher Overview
  3. Installing and Upgrading PowerExchange CDC Publisher
  4. PowerExchange CDC Publisher Key Concepts
  5. PowerExchange Change Capture Environment
  6. Target Messaging Systems
  7. Configuring PowerExchange CDC Publisher
  8. Streaming Change Data
  9. Monitoring PowerExchange CDC Publisher
  10. Administering PowerExchange CDC Publisher
  11. Appendix A: Command Reference for the Command-Line Utilities
  12. Appendix B: Avro Schema Formats
  13. Appendix C: Custom Pattern Formats
  14. Appendix D: Message Reference

User Guide

User Guide

Reporting the Avro Format Definitions for Source Tables

Reporting the Avro Format Definitions for Source Tables

Use the PwxCDCAdmin utility with the REPORT=FORMAT parameter to generate the Avro format definitions, or schemas, for all source tables or a specific source table in the \
instance
\reports subdirectory.
The generated format definitions are available in a legible format for viewing and can be used by consumer applications to read the messages that the PowerExchange CDC Publisher sent to the target messaging system. The generated schemas reflect the flat, nested, or generic format that you set in the Formatter.avroSchemaFormat parameter setting in the cdcPublisherAvro.cfg configuration file.
Before you issue the PwxCDCAdmin command, ensure that the PowerExchange CDC Publisher process is running in a separate command line window.
  1. At the command prompt, enter the PwxCDCAdmin command with the REPORT=FORMAT and TABLE parameters.
    You can issue the command from the
    pwxcdcpub_root_installation
    \bin
    subdirectory or from another location if you specified the PWXPUB_HOME environment variable.
    In the TABLE parameter, indicate whether to generate the schemas for all tables or a specific table. Also include the optional INSTANCE parameter if you are running the PwxCDCPublisher process using an instance other than the default "instanceA" at
    /
    pwxcdcpub_root installation
    /instanceA
    .
    Use the following syntax:
    PwxCDCAdmin REPORT=FORMAT TABLE={ALL|
    mapname_tablename
    } [INSTANCE=
    override_instance_directory
    ]
    In this syntax,
    mapname_tablename
    is the map name and table name portion of the extraction map name, where the extraction map name has the format
    xnninstance
    .
    mapname_
    tablename
    . For more information about the command syntax, see PwxCDCAdmin Utility - Command and Parameters.
  2. To verify that the Avro format definitions were generated for the source tables or table, check the reports subdirectory under the instance that you are using.

0 COMMENTS

We’d like to hear from you!