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

   ### 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
   
   要求两表实时同步,启动时总是报错: Unable to create a source for identifier 'Oracle-CDC'
   oracle version 19C
   connector-cdc-oracle-2.3.5.jar 在 connectors目录
   ojdbc8-19.3.0.0.jar 在lib 目录
   JDK 1.8
   
   source配置使用实例名和服务名都不行
   driver使用oracle.jdbc.driver.OracleDriver和oracle.jdbc.OracleDriver都试过还是报错
   没有指出具体错误在哪里
   使用该配置已经成功同步数据,目前是CDC有问题
   source {
           Jdbc {
                   url = "jdbc:oracle:thin:@192.168.19.161:1521/orcl"
                   driver = "oracle.jdbc.OracleDriver"
                   user = "TY_XBYC"
                   password = "TY_XBYC"
                   query = "select cs from cs"
                }
   }
   
   ### SeaTunnel Version
   
   apache-seatunnel-2.3.5
   
   ### SeaTunnel Config
   
   ```conf
   env {
     parallelism = 1
     job.mode = "STREAMING"
     checkpoint.interval = 5000
   }
   
   source {
     Oracle-CDC {
       driver = "oracle.jdbc.driver.OracleDriver"
       result_table_name = "om_meter_data_stream"
       username = "TY_XBYC"
       password = "TY_XBYC"
       database-names = ["orcl"]
       schema-names = ["TY_XBYC"]
       table-names = ["orcl.TY_XBYC.CS"]
       base-url = "jdbc:oracle:thin:@//192.168.19.161:1521/orcl"
       source.reader.close.timeout = 120000
       connection.pool.size = 1
       debezium.logging.level = "INFO" 
     }
   }
   
   transform {
     // 如需数据转换,可在此处添加
   }
   
   sink {
     Console {
       source_table_name = "om_meter_data_stream"
     }
   }
   ```
   
   ### Running Command
   
   ```shell
   /opt/apache-seatunnel-2.3.5/bin/seatunnel.sh --config 
/opt/apache-seatunnel-2.3.5/config/cs.config 
   
   /opt/apache-seatunnel-2.3.5/bin/seatunnel.sh -e local  --config 
/opt/apache-seatunnel-2.3.5/config/cs.config
   ```
   
   ### Error Exception
   
   ```log
   2025-04-06 05:14:28,359 ERROR [o.a.s.c.s.SeaTunnel           ] [main] -
   
   
===============================================================================
   
   
   2025-04-06 05:14:28,359 ERROR [o.a.s.c.s.SeaTunnel           ] [main] - 
Fatal Error,
   
   2025-04-06 05:14:28,359 ERROR [o.a.s.c.s.SeaTunnel           ] [main] - 
Please submit bug report in https://github.com/apache/seatunnel/issues
   
   2025-04-06 05:14:28,359 ERROR [o.a.s.c.s.SeaTunnel           ] [main] - 
Reason:SeaTunnel job executed failed
   
   2025-04-06 05:14:28,360 ERROR [o.a.s.c.s.SeaTunnel           ] [main] - 
Exception 
StackTrace:org.apache.seatunnel.core.starter.exception.CommandExecuteException: 
SeaTunnel job executed failed
           at 
org.apache.seatunnel.core.starter.seatunnel.command.ClientExecuteCommand.execute(ClientExecuteCommand.java:202)
           at org.apache.seatunnel.core.starter.SeaTunnel.run(SeaTunnel.java:40)
           at 
org.apache.seatunnel.core.starter.seatunnel.SeaTunnelClient.main(SeaTunnelClient.java:34)
   Caused by: 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.createAndPrepareSource(FactoryUtil.java:100)
           at 
org.apache.seatunnel.engine.core.parse.MultipleTableJobConfigParser.parseSource(MultipleTableJobConfigParser.java:332)
           at 
org.apache.seatunnel.engine.core.parse.MultipleTableJobConfigParser.parse(MultipleTableJobConfigParser.java:188)
           at 
org.apache.seatunnel.engine.client.job.ClientJobExecutionEnvironment.getLogicalDag(ClientJobExecutionEnvironment.java:88)
           at 
org.apache.seatunnel.engine.client.job.ClientJobExecutionEnvironment.execute(ClientJobExecutionEnvironment.java:156)
           at 
org.apache.seatunnel.core.starter.seatunnel.command.ClientExecuteCommand.execute(ClientExecuteCommand.java:149)
           ... 2 more
   Caused by: org.apache.seatunnel.common.utils.SeaTunnelException: Can not 
find catalog table with factoryId [Oracle]
           at 
org.apache.seatunnel.api.table.catalog.CatalogTableUtil.lambda$getCatalogTables$0(CatalogTableUtil.java:129)
           at java.util.Optional.map(Optional.java:215)
           at 
org.apache.seatunnel.api.table.catalog.CatalogTableUtil.getCatalogTables(CatalogTableUtil.java:116)
           at 
org.apache.seatunnel.api.table.catalog.CatalogTableUtil.getCatalogTables(CatalogTableUtil.java:96)
           at 
org.apache.seatunnel.connectors.seatunnel.cdc.oracle.source.OracleIncrementalSourceFactory.lambda$createSource$1(OracleIncrementalSourceFactory.java:106)
           at 
org.apache.seatunnel.api.table.factory.FactoryUtil.createAndPrepareSource(FactoryUtil.java:112)
           at 
org.apache.seatunnel.api.table.factory.FactoryUtil.createAndPrepareSource(FactoryUtil.java:73)
           ... 7 more
   
   2025-04-06 05:14:28,360 ERROR [o.a.s.c.s.SeaTunnel           ] [main] -
   
===============================================================================
   
   
   
   Exception in thread "main" 
org.apache.seatunnel.core.starter.exception.CommandExecuteException: SeaTunnel 
job executed failed
           at 
org.apache.seatunnel.core.starter.seatunnel.command.ClientExecuteCommand.execute(ClientExecuteCommand.java:202)
           at org.apache.seatunnel.core.starter.SeaTunnel.run(SeaTunnel.java:40)
           at 
org.apache.seatunnel.core.starter.seatunnel.SeaTunnelClient.main(SeaTunnelClient.java:34)
   Caused by: 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.createAndPrepareSource(FactoryUtil.java:100)
           at 
org.apache.seatunnel.engine.core.parse.MultipleTableJobConfigParser.parseSource(MultipleTableJobConfigParser.java:332)
           at 
org.apache.seatunnel.engine.core.parse.MultipleTableJobConfigParser.parse(MultipleTableJobConfigParser.java:188)
           at 
org.apache.seatunnel.engine.client.job.ClientJobExecutionEnvironment.getLogicalDag(ClientJobExecutionEnvironment.java:88)
           at 
org.apache.seatunnel.engine.client.job.ClientJobExecutionEnvironment.execute(ClientJobExecutionEnvironment.java:156)
           at 
org.apache.seatunnel.core.starter.seatunnel.command.ClientExecuteCommand.execute(ClientExecuteCommand.java:149)
           ... 2 more
   Caused by: org.apache.seatunnel.common.utils.SeaTunnelException: Can not 
find catalog table with factoryId [Oracle]
           at 
org.apache.seatunnel.api.table.catalog.CatalogTableUtil.lambda$getCatalogTables$0(CatalogTableUtil.java:129)
           at java.util.Optional.map(Optional.java:215)
           at 
org.apache.seatunnel.api.table.catalog.CatalogTableUtil.getCatalogTables(CatalogTableUtil.java:116)
           at 
org.apache.seatunnel.api.table.catalog.CatalogTableUtil.getCatalogTables(CatalogTableUtil.java:96)
           at 
org.apache.seatunnel.connectors.seatunnel.cdc.oracle.source.OracleIncrementalSourceFactory.lambda$createSource$1(OracleIncrementalSourceFactory.java:106)
           at 
org.apache.seatunnel.api.table.factory.FactoryUtil.createAndPrepareSource(FactoryUtil.java:112)
           at 
org.apache.seatunnel.api.table.factory.FactoryUtil.createAndPrepareSource(FactoryUtil.java:73)
           ... 7 more
   ```
   
   ### Zeta or Flink or Spark Version
   
   _No response_
   
   ### Java or Scala Version
   
   JDK1.8
   
   ### Screenshots
   
   
![Image](https://github.com/user-attachments/assets/3e639b3c-0373-4285-b466-9a4b562598d1)
   
   ### 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-unsubscr...@seatunnel.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to