Hi, I fixed the connector like this, and it worked:
{
"name": "wpms-source-connector-avro-snapshot-incrementa",
"config": {
"connector.class": "io.debezium.connector.oracle.OracleConnector",
"tasks.max": "1",
"database.hostname": "{{sourceDatabaseHost}}",
"database.port": "{{sourceDatabasePort}}",
"database.user": "{{sourceDatabaseUser}}",
"database.password": "{{sourceDatabasePassword}}",
"database.dbname": "{{sourceDatabaseName}}",
"table.include.list": "SCHEMA1.DEBEZIUM_SIGNAL,
SCHEMA2.DIVISION",
"column.include.list": "
SCHEMA1\\.DEBEZIUM_SIGNAL\\.(ID|TYPE|DATA),
SCHEMA2\\.DIVISION\\.(ID_DIV|NAME)",
"schema.history.internal.kafka.topic": "dbz_oracle_wpms_history_incremental_snapshot3",
"schema.history.internal.kafka.bootstrap.servers": "{{kafkaBootstrapServers}}",
"log.mining.strategy": "hybrid",
"log.mining.query.filter.mode": "in",
"message.key.columns": "SCHEMA1.DIBEZIUM_SIGNAL:ID;SCHEMA2.DIVISION:ID_DIV;",
"key.converter": "io.apicurio.registry.utils.converter.AvroConverter",
"key.converter.apicurio.registry.url": "{{apicurioRegistryUrl}}",
"key.converter.apicurio.registry.auto-register": "true",
"key.converter.apicurio.registry.find-latest": "true",
"value.converter": "io.apicurio.registry.utils.converter.AvroConverter",
"value.converter.apicurio.registry.url":"{{apicurioRegistryUrl}}",
"value.converter.apicurio.registry.auto-register": "true",
"value.converter.apicurio.registry.find-latest": "true",
"schema.name.adjustment.mode": "avro",
"snapshot.mode": "no_data",
"signal.enable.channels": "source",
"signal.data.collection": "{{sourceDatabaseName}}.SCHEMA1.DEBEZIUM_SIGNAL",
"incremental.snapshot.chunk.size": 50000,
"incremental.snapshot.allow.schema.changes": "true",
"topic.creation.enable": "true",
"topic.creation.default.replication.factor": 1,
"topic.creation.default.partitions": 1,
"topic.creation.default.cleanup.policy": "delete",
}
}
And sent such a signal:
INSERT INTO SCHEMA1.DEBEZIUM_SIGNAL (id, type, data)
values(
'ad-hoc-1',
'execute-snapshot',
'{"data-collections": ["{{sourceDatabaseName}}.SCHEMA2.DIVISION"], "type": "INCREMENTAL"}'
);
четверг, 30 октября 2025 г. в 20:50:00 UTC+4, Chris Cranford: