You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@seatunnel.apache.org by "CriysHot (via GitHub)" <gi...@apache.org> on 2026/04/28 07:36:53 UTC
[I] [Bug] [connector-cdc-oracle] oracle cdc multi tables cdb + pdb model table or view doesn't exist [seatunnel]
CriysHot opened a new issue, #10828:
URL: https://github.com/apache/seatunnel/issues/10828
### Search before asking
- [x] I had searched in the [issues](https://github.com/apache/seatunnel/issues?q=is%3Aissue+label%3A%22bug%22) and found no similar issues.
### What happened
In the Oracle CDC multi-table synchronization scenario with CDB + PDB mode, when performing snapshot split scanning, the connector incorrectly uses the CDB root container context to query tables in the PDB.
This causes the connector to fail finding the target table and throws table or view does not exist exceptions during the snapshot phase, making the Oracle CDC source unable to complete snapshot data reading in CDB + PDB mode.
The root cause is that the connector did not switch the database session to the specified PDB context before executing the snapshot query for tables in the PDB.
### SeaTunnel Version
2.3.12
### SeaTunnel Config
```conf
env {
job.retry.interval.seconds = "3"
job.mode = "STREAMING"
parallelism = "1"
checkpoint.timeout = "600000"
job.retry.times = "3"
job.name = "ORACLE_ORCLPDB_U1_21450749636832"
checkpoint.interval = "5000"
}
source {
Oracle-CDC {
url = "jdbc:oracle:thin:@//xxx:1521/ORCLPDB"
username = "C##CDC_READER_USER"
password = "xxx"
database-names = ["ORCLPDB"]
schema-names = ["U1"]
table-names = ["ORCLPDB.U1.WORKFLOW_CODESEQRECORD_002","ORCLPDB.U1.WORKFLOW_CODESEQRECORD_003","ORCLPDB.U1.WORKFLOW_CODESEQRECORD_004","ORCLPDB.U1.WORKFLOW_CODESEQRECORD_005","ORCLPDB.U1.WORKFLOW_CODESEQRECORD_006","ORCLPDB.U1.WORKFLOW_CODESEQRECORD_007","ORCLPDB.U1.WORKFLOW_CODESEQRECORD_008","ORCLPDB.U1.WORKFLOW_CODESEQRECORD_009","ORCLPDB.U1.WORKFLOW_CODESEQRECORD_010","ORCLPDB.U1.WORKFLOW_CODESEQRECORD_011","ORCLPDB.U1.WORKFLOW_CODESEQRECORD_012","ORCLPDB.U1.WORKFLOW_CODESEQRECORD_013","ORCLPDB.U1.WORKFLOW_CODESEQRECORD_014","ORCLPDB.U1.WORKFLOW_CODESEQRECORD_015","ORCLPDB.U1.WORKFLOW_CODESEQRECORD_016","ORCLPDB.U1.WORKFLOW_CODESEQRECORD_017","ORCLPDB.U1.WORKFLOW_CODESEQRECORD_018","ORCLPDB.U1.WORKFLOW_CODESEQRECORD_019","ORCLPDB.U1.WORKFLOW_CODESEQRECORD_020"]
#table-names = ["ORCLPDB.U1.WORKFLOW_CODESEQRECORD_011","ORCLPDB.U1.WORKFLOW_CODESEQRECORD_002"]
startup.mode = "initial"
snapshot.split.enabled = false
snapshot.max.threads = 1
service-time-zone = "UTC+8"
#schema-changes.enabled = true
password_decrypt = true
debezium = {"max.queue.size":"8192","log.mining.batch.size.max":"100000","log.mining.continuous.mine":"true","database.pdb.name":"ORCLPDB","log.mining.batch.size.min":"1000","poll.interval.ms":"1000","log.mining.batch.size.default":"20000","lob.enabled":"true","event.processing.failure.handling.mode":"warn","database.history.store.only.captured.tables.ddl":"true","max.batch.size":"2048","log.mining.strategy":"online_catalog"}
snapshot.split.enabled = true
snapshot.split.size = 100000
connect.timeout.ms = 30000
connect.max-retries = 3
}
}
sink {
console {}
}
```
### Running Command
```shell
what ever
```
### Error Exception
```log
table or view does not exist
```
### Zeta or Flink or Spark Version
zeta
### Java or Scala Version
_No response_
### Screenshots
_No response_
### Are you willing to submit PR?
- [ ] Yes I am willing to submit a PR!
### Code of Conduct
- [x] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Bug] [connector-cdc-oracle] oracle cdc multi tables cdb + pdb model table or view doesn't exist [seatunnel]
Posted by "chl-wxp (via GitHub)" <gi...@apache.org>.
chl-wxp closed issue #10828: [Bug] [connector-cdc-oracle] oracle cdc multi tables cdb + pdb model table or view doesn't exist
URL: https://github.com/apache/seatunnel/issues/10828
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Bug] [connector-cdc-oracle] oracle cdc multi tables cdb + pdb model table or view doesn't exist [seatunnel]
Posted by "DanielLeens (via GitHub)" <gi...@apache.org>.
DanielLeens commented on issue #10828:
URL: https://github.com/apache/seatunnel/issues/10828#issuecomment-4334815480
Thanks for the detailed report and config. I traced the Oracle CDC snapshot path against the current `dev` code, and this looks like a real bug rather than a config-only issue.
The problematic path appears to be the snapshot split reader used in the Oracle incremental snapshot flow. In the current code, the snapshot query path still relies on the current session container to resolve `schema.table`, but I do not see the snapshot reader switching the session into the configured PDB before it starts reading those tables. By contrast, the logminer/streaming path does explicitly switch to the PDB before table checks. That matches the symptom you described: in CDB + PDB mode, snapshot queries can still run against the root container and fail with `table or view does not exist`.
I also do not see an existing fix for this in the current `dev` branch yet, so this issue is worth keeping open.
If you would like to work on it, a PR would be very welcome. The first place I would check is the Oracle snapshot read path around `OracleSnapshotSplitReadTask` and the session handling before snapshot table queries are executed.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Bug] [connector-cdc-oracle] oracle cdc multi tables cdb + pdb model table or view doesn't exist [seatunnel]
Posted by "DanielLeens (via GitHub)" <gi...@apache.org>.
DanielLeens commented on issue #10828:
URL: https://github.com/apache/seatunnel/issues/10828#issuecomment-4376680973
Thanks for opening PR #10829. I rechecked the current change scope against this issue, and it matches the failing path identified earlier.
In the current snapshot read path, the query can still run before the session is switched into the configured PDB, which is why multi-table snapshot reads in CDB + PDB mode can fail with `table or view does not exist`. Your PR keeps the change focused on that snapshot-query path in `OracleSnapshotSplitReadTask`, which is the right scope for this bug.
Let's continue the detailed review in the PR thread and keep this issue open until the fix is merged into `dev`. Thanks again for helping move it forward.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@seatunnel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org