Image prefix

Class Name

Specify a class name that is, com.datamirror.ts.target.publication.userexit.sample.kafka.KcopSingleRowAvroAuditIntegrated.

Append command to properties file

Your properties file is in CDC_kafka_installation_directory/conf/filename.properties.

Properties file content
[cdc@beauty1 conf]$ cat kcops_prop.properties
schema.registry.url=http://localhost:8081
audit.jcfs=ENTTYP,CCID,TIMSTAMP
before.image.prefix=Before_
after.image.prefix=After_
curl command
To check the schema, use the following curl command:
[root@beauty1 bin]# curl -X GET -i -H "Content-Type: application/vnd.schemaregistry.v1+json"
http://localhost:8081/subjects/cdc_kafka_testing.ksraai.sourcedb.oracle.tab3-value/versions/latest
Output:
{"type":"record","name":"AuditRecord","fields":[{"name":"beforeImage","type":["null",{"type":"record","name":"TAB3","namespace":"Before_value.SOURCEDB.ORACLE","fields":[{"name":"Before_PCKOL","type":[{"type":"string","logicalType":"DECIMAL","dbColumnName":"PCKOL","precision":38,"scale":0},"null"],"doc":"","default":"0"},{"name":"Before_PCKOLDATA","type":[{"type":"string","logicalType":"VARCHAR","dbColumnName":"PCKOLDATA","length":255},"null"],"doc":"","default":""}]}]},{"name":"afterImage","type":["null",{"type":"record","name":"TAB3","namespace":"After_value.SOURCEDB.ORACLE","fields":[{"name":"After_PCKOL","type":[{"type":"string","logicalType":"DECIMAL","dbColumnName":"PCKOL","precision":38,"scale":0},"null"],"doc":"","default":"0"},{"name":"After_PCKOLDATA","type":[{"type":"string","logicalType":"VARCHAR","dbColumnName":"PCKOLDATA","length":255},"null"],"doc":"","default":""}]}]},{"name":"A_ENTTYP","type":["null","string"]},{"name":"A_CCID","type":["null","string"]},{"name":"A_TIMSTAMP","type":["null","string"]}]}