Carl-Zhou-CN commented on PR #5196:
URL: https://github.com/apache/seatunnel/pull/5196#issuecomment-1854958777

   > thinks a lot , here is my config, I give user roma_logminer dba and any 
other right, please help me
   > 
   > env { execution.parallelism = 1 job.mode = "STREAMING" } source { 
Oracle-CDC { result_table_name = "stock_mysql" catalog = { factory = Oracle } 
username = "roma_logminer" password = "xxxxxx" database-names = ["DB220"] 
schema-names = ["ORACLE"] table-names = ["ORACLE.ACC_USER_BIND"] base-url = 
"jdbc:oracle:thin:roma_logminer/[email protected]:1521:db220" 
source.reader.close.timeout = 120000 connection.pool.size = 5 debezium { 
database.oracle.jdbc.timezoneAsRegion = "false" } }
   > 
   > }
   > 
   > sink { Console { } } report error 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:192)
 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:312)
 at 
org.apache.seatunnel.engine.core.parse.MultipleTableJobConfigParser.parse(MultipleTableJobConfigParser.java:180)
 at org.apache.seatunnel.engi
 
ne.client.job.ClientJobExecutionEnvironment.getLogicalDag(ClientJobExecutionEnvironment.java:88)
 at 
org.apache.seatunnel.engine.client.job.ClientJobExecutionEnvironment.execute(ClientJobExecutionEnvironment.java:161)
 at 
org.apache.seatunnel.core.starter.seatunnel.command.ClientExecuteCommand.execute(ClientExecuteCommand.java:144)
 ... 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$0(OracleIncrementalSourceFactory.java:103)
 at org.apache.seatu
 
nnel.api.table.factory.FactoryUtil.createAndPrepareSource(FactoryUtil.java:112) 
at 
org.apache.seatunnel.api.table.factory.FactoryUtil.createAndPrepareSource(FactoryUtil.java:73)
   
   env {
     # You can set engine configuration here
     execution.parallelism = 1
     job.mode = "STREAMING"
     checkpoint.interval = 5000
   }
   
   source {
     # This is a example source plugin **only for test and demonstrate the 
feature source plugin**
     Oracle-CDC {
       result_table_name = "customers"
       username = "system"
       password = "oracle"
       database-names = ["XE"]
       schema-names = ["DEBEZIUM"]
       table-names = ["XE.DEBEZIUM.FULL_TYPES"]
       base-url = "jdbc:oracle:thin:system/oracle@oracle-host:1521:xe"
       source.reader.close.timeout = 120000
       connection.pool.size = 5
       debezium {
          # log.mining.strategy = "online_catalog"
          # log.mining.continuous.mine = true
           database.oracle.jdbc.timezoneAsRegion = "false"
       }
     }
   }
   
   transform {
   }
   
   sink {
     console {
       source_table_name = "customers"
     }
   Jdbc {
     source_table_name = "customers"
     driver = "oracle.jdbc.driver.OracleDriver"
     url = "jdbc:oracle:thin:system/oracle@oracle-host:1521:xe"
     user = "system"
     password = "oracle"
     generate_sink_sql = true
     database = "XE"
     table = "DEBEZIUM.SINK_FULL_TYPES"
     batch_size = 1
     primary_keys = ["ID"]
   }
   }
   @yinshaohua77  Please refer to this configuration to update your config 


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to