You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@seatunnel.apache.org by "CR7Zhang (via GitHub)" <gi...@apache.org> on 2025/09/19 07:48:49 UTC

[I] [Bug] [oracle cdc] 库名只能是大写吗? [seatunnel]

CR7Zhang opened a new issue, #9878:
URL: https://github.com/apache/seatunnel/issues/9878

   ### 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
   
   oracle库名是小写,执行任务的时候,会把库名自动转成大写
   
   ### SeaTunnel Version
   
   2.3.11
   
   ### SeaTunnel Config
   
   ```conf
   "source": [{
   		"plugin_name": "ORACLE-CDC",
   		"base-url": "jdbc:oracle:thin:@//172.22.156.187:8415/stdrundb",
   		"username": "******",
   		"password": "******",
   		"database-names": ["stdrundb"],
   		"schema-names": ["BSPRUN"],
   		"table-names": ["stdrundb.BSPRUN.AN004"],
   		"result_table_name": "source"
   	}]
   ```
   
   ### Running Command
   
   ```shell
   /hazelcast/rest/maps/submit-job
   ```
   
   ### Error Exception
   
   ```log
   [] 2025-09-19 09:14:42,370 WARN  [Log4j2HttpPostCommandProcessor] [hz.main.cached.thread-4] - [10.204.16.243]:15801 [seatunnel] [5.1] An error occurred while handling request HttpCommand [HTTP_POST]{uri='/hazelcast/rest/maps/submit-job'}AbstractTextCommand[HTTP_POST]{requestId=0}
   org.apache.seatunnel.api.table.factory.FactoryException: ErrorCode:[API-06], ErrorDescription:[Factory initialize failed] - Unable to create a source for identifier 'ORACLE-CDC'.
           at org.apache.seatunnel.api.table.factory.FactoryUtil.restoreAndPrepareSource(FactoryUtil.java:168) ~[seatunnel-starter.jar:2.3.11]
           at org.apache.seatunnel.api.table.factory.FactoryUtil.createAndPrepareSource(FactoryUtil.java:86) ~[seatunnel-starter.jar:2.3.11]
           at org.apache.seatunnel.engine.core.parse.MultipleTableJobConfigParser.parseSource(MultipleTableJobConfigParser.java:376) ~[seatunnel-starter.jar:2.3.11]
           at org.apache.seatunnel.engine.core.parse.MultipleTableJobConfigParser.parse(MultipleTableJobConfigParser.java:227) ~[seatunnel-starter.jar:2.3.11]
           at org.apache.seatunnel.engine.server.rest.RestJobExecutionEnvironment.getLogicalDag(RestJobExecutionEnvironment.java:86) ~[seatunnel-starter.jar:2.3.11]
           at org.apache.seatunnel.engine.server.rest.RestJobExecutionEnvironment.build(RestJobExecutionEnvironment.java:123) ~[seatunnel-starter.jar:2.3.11]
           at org.apache.seatunnel.engine.server.rest.service.BaseService.submitJobInternal(BaseService.java:500) ~[seatunnel-starter.jar:2.3.11]
           at org.apache.seatunnel.engine.server.rest.service.JobInfoService.submitJob(JobInfoService.java:173) ~[seatunnel-starter.jar:2.3.11]
           at org.apache.seatunnel.engine.server.rest.RestHttpPostCommandProcessor.handleSubmitJob(RestHttpPostCommandProcessor.java:114) ~[seatunnel-starter.jar:2.3.11]
           at org.apache.seatunnel.engine.server.rest.RestHttpPostCommandProcessor.handle(RestHttpPostCommandProcessor.java:82) ~[seatunnel-starter.jar:2.3.11]
           at org.apache.seatunnel.engine.server.rest.RestHttpPostCommandProcessor.handle(RestHttpPostCommandProcessor.java:44) ~[seatunnel-starter.jar:2.3.11]
           at com.hazelcast.internal.ascii.TextCommandServiceImpl$CommandExecutor.run(TextCommandServiceImpl.java:402) ~[seatunnel-starter.jar:2.3.11]
           at com.hazelcast.internal.util.executor.CachedExecutorServiceDelegate$Worker.run(CachedExecutorServiceDelegate.java:217) ~[seatunnel-starter.jar:2.3.11]
           at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) ~[?:1.8.0_301]
           at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) ~[?:1.8.0_301]
           at java.lang.Thread.run(Thread.java:748) [?:1.8.0_301]
           at com.hazelcast.internal.util.executor.HazelcastManagedThread.executeRun(HazelcastManagedThread.java:76) ~[seatunnel-starter.jar:2.3.11]
           at com.hazelcast.internal.util.executor.HazelcastManagedThread.run(HazelcastManagedThread.java:102) ~[seatunnel-starter.jar:2.3.11]
   Caused by: org.apache.seatunnel.common.utils.SeaTunnelException: org.apache.seatunnel.common.utils.SeaTunnelException: Can't obtain schema for table "STDRUNDB".BSPRUN.AN004
           at org.apache.seatunnel.connectors.seatunnel.cdc.oracle.source.OracleIncrementalSource.tableChanges(OracleIncrementalSource.java:151) ~[?:?]
           at org.apache.seatunnel.connectors.seatunnel.cdc.oracle.source.OracleIncrementalSource.createDebeziumDeserializationSchema(OracleIncrementalSource.java:99) ~[?:?]
           at org.apache.seatunnel.connectors.cdc.base.source.IncrementalSource.<init>(IncrementalSource.java:105) ~[?:?]
           at org.apache.seatunnel.connectors.seatunnel.cdc.oracle.source.OracleIncrementalSource.<init>(OracleIncrementalSource.java:64) ~[?:?]
           at org.apache.seatunnel.connectors.seatunnel.cdc.oracle.source.OracleIncrementalSourceFactory.lambda$restoreSource$2(OracleIncrementalSourceFactory.java:143) ~[?:?]
           at org.apache.seatunnel.api.table.factory.FactoryUtil.createAndPrepareSource(FactoryUtil.java:180) ~[seatunnel-starter.jar:2.3.11]
           at org.apache.seatunnel.api.table.factory.FactoryUtil.restoreAndPrepareSource(FactoryUtil.java:136) ~[seatunnel-starter.jar:2.3.11]
           ... 17 more
   Caused by: org.apache.seatunnel.common.utils.SeaTunnelException: Can't obtain schema for table "STDRUNDB".BSPRUN.AN004
           at org.apache.seatunnel.connectors.seatunnel.cdc.oracle.utils.OracleSchema.readTableSchema(OracleSchema.java:94) ~[?:?]
           at org.apache.seatunnel.connectors.seatunnel.cdc.oracle.utils.OracleSchema.getTableSchema(OracleSchema.java:59) ~[?:?]
           at org.apache.seatunnel.connectors.seatunnel.cdc.oracle.source.OracleDialect.queryTableSchema(OracleDialect.java:110) ~[?:?]
           at org.apache.seatunnel.connectors.seatunnel.cdc.oracle.source.OracleIncrementalSource.lambda$tableChanges$0(OracleIncrementalSource.java:144) ~[?:?]
           at java.util.stream.Collectors.lambda$toMap$58(Collectors.java:1321) ~[?:1.8.0_301]
           at java.util.stream.ReduceOps$3ReducingSink.accept(ReduceOps.java:169) ~[?:1.8.0_301]
           at java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1384) ~[?:1.8.0_301]
           at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:482) ~[?:1.8.0_301]
           at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:472) ~[?:1.8.0_301]
           at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:708) ~[?:1.8.0_301]
           at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) ~[?:1.8.0_301]
           at java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:499) ~[?:1.8.0_301]
           at org.apache.seatunnel.connectors.seatunnel.cdc.oracle.source.OracleIncrementalSource.tableChanges(OracleIncrementalSource.java:138) ~[?:?]
           at org.apache.seatunnel.connectors.seatunnel.cdc.oracle.source.OracleIncrementalSource.createDebeziumDeserializationSchema(OracleIncrementalSource.java:99) ~[?:?]
           at org.apache.seatunnel.connectors.cdc.base.source.IncrementalSource.<init>(IncrementalSource.java:105) ~[?:?]
           at org.apache.seatunnel.connectors.seatunnel.cdc.oracle.source.OracleIncrementalSource.<init>(OracleIncrementalSource.java:64) ~[?:?]
           at org.apache.seatunnel.connectors.seatunnel.cdc.oracle.source.OracleIncrementalSourceFactory.lambda$restoreSource$2(OracleIncrementalSourceFactory.java:143) ~[?:?]
           at org.apache.seatunnel.api.table.factory.FactoryUtil.createAndPrepareSource(FactoryUtil.java:180) ~[seatunnel-starter.jar:2.3.11]
           at org.apache.seatunnel.api.table.factory.FactoryUtil.restoreAndPrepareSource(FactoryUtil.java:136) ~[seatunnel-starter.jar:2.3.11]
           ... 17 more
   ```
   
   ### Zeta or Flink or Spark Version
   
   zeta
   
   ### Java or Scala Version
   
   jdk8
   
   ### Screenshots
   
   _No response_
   
   ### Are you willing to submit PR?
   
   - [x] 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] [oracle cdc] Can Database names only be in uppercase? [seatunnel]

Posted by "LeonYoah (via GitHub)" <gi...@apache.org>.
LeonYoah commented on issue #9878:
URL: https://github.com/apache/seatunnel/issues/9878#issuecomment-3333214910

   But I don't think it's necessarily because the library is in lowercase. You can try using uppercase throughout the library or check the case of table names


-- 
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] [oracle cdc] 库名只能是大写吗? [seatunnel]

Posted by "davidzollo (via GitHub)" <gi...@apache.org>.
davidzollo commented on issue #9878:
URL: https://github.com/apache/seatunnel/issues/9878#issuecomment-3314861671

   Yes, Use UpperCase is the default by Oracle, by the way, you can submit a PR to solve it 


-- 
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] [oracle cdc] Can Database names only be in uppercase? [seatunnel]

Posted by "LeonYoah (via GitHub)" <gi...@apache.org>.
LeonYoah commented on issue #9878:
URL: https://github.com/apache/seatunnel/issues/9878#issuecomment-3333125380

   The native processing method of debezium will be converted to uppercase:
   @Override
   protected String resolveCatalogName(String catalogName) {
   final String pdbName = config().getString("pdb.name");
   return (! Strings.isNullOrEmpty(pdbName) ?  pdbName : config().getString("dbname")).toUpperCase();
   }


-- 
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] [oracle cdc] Can Database names only be in uppercase? [seatunnel]

Posted by "nielifeng (via GitHub)" <gi...@apache.org>.
nielifeng closed issue #9878: [Bug] [oracle cdc] Can Database names only be in uppercase?
URL: https://github.com/apache/seatunnel/issues/9878


-- 
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