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

   ### 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
   
   when source is ORACLE-CDC  target is ORACLE, using is_exactly_once=true  
then will lock target table 
   no error , but data don't insert or update  target db
   target db will generate a lock。
   
   ### SeaTunnel Version
   
   2.3.4
   
   ### SeaTunnel Config
   
   ```conf
   env {
     execution.parallelism = 12
     job.mode = "STREAMING"
     checkpoint.interval = 120000
   }
   
   
   source {
     Oracle-CDC {
       #result_table_name = "customers"
       base-url = "jdbc:oracle:thin:@XXX.XX.XX.XX:1521:XXXX"
       #bsource.reader.close.timeout = 120000
       username = "XXXX"
       password = "XXXX"
       database-names = ["orcl"]
       schema-names = ["SCH"]
       table-names = ["ORCL.SCH.SCH_MODULE_LOG"]
       #connection.pool.size = 1
       startup.mode = latest
       table-names-config = [
         {
           table = "ORCL.SCH.SCH_MODULE_LOG"
           primaryKeys = ["LOAD_BATCH","MODULE_CODE"]
         }
       ]
       debezium {
         # log.mining.strategy = "online_catalog"
         # log.mining.continuous.mine = true
         database.oracle.jdbc.timezoneAsRegion = "false"
       }
     }
   }
   
   sink {
       jdbc {
           #source_table_name = "fake3"
           url = "jdbc:oracle:thin:@172.XX.XX.XX:1521:XX"
           driver = "oracle.jdbc.OracleDriver"
           user = "XXXXX"
           password = "XXXXX"
           database = "XXXX"
           table = "ODATA.SCH_MODULE_LOG"
           primary_keys = ["LOAD_BATCH","MODULE_CODE"]
   
   
                
           generate_sink_sql = "true"
        is_exactly_once = "true"
   
           xa_data_source_class_name = 
"oracle.jdbc.xa.client.OracleXADataSource"
           schema_save_mode = "CREATE_SCHEMA_WHEN_NOT_EXIST"
                    data_save_mode  = "APPEND_DATA"
       }
   }
   ```
   
   
   ### Running Command
   
   ```shell
   .seatunnel.sh -c xxx.conf
   ```
   
   
   ### Error Exception
   
   ```log
   no error , but data don't insert or update  target db
   target db will generate a lock, 
   lock type is TM, lmode is 3 , object is target table
   ```
   
   
   ### Zeta or Flink or Spark Version
   
   _No response_
   
   ### Java or Scala Version
   
   _No response_
   
   ### Screenshots
   
   
   
![图片](https://github.com/apache/seatunnel/assets/136140526/7bbb0159-ae06-4ced-9bf0-d352bab5914e)
   
   
   ### 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: [email protected]

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

Reply via email to