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

   ### 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
   
   I have 2 oracle database: primary and ADG read-only. I need to get CDC from 
read-only db. Oracle-CDC seatunnel connector start mining session which will 
cause `ORA-01300: writable database required for specified LogMiner options`.
   
   ### SeaTunnel Version
   
   2.3.12
   
   ### SeaTunnel Config
   
   ```conf
   env {
     parallelism = 2
     job.mode = "STREAMING"
     checkpoint.interval = 10000
   }
   
   source {
     Oracle-CDC {
       plugin_output = "customers"
       source.reader.close.timeout = 120000
   
       skip_analyze = true
       debezium.log.mining.transaction.snapshot.boundary.mode = 
"transaction_view_only"
       # debezium.log.mining.strategy = "redo_log_catalog"
     }
   }
   
   sink {
     Doris {
   
       doris.config = {
         format = "json"
         read_json_by_line = "true"
       }
     }
   }
   ```
   
   ### Running Command
   
   ```shell
   docker exec -it seatunnel /opt/seatunnel/bin/seatunnel.sh --config 
/opt/seatunnel/jobs/oracle2doris.conf --name oracle2doris
   ```
   
   ### Error Exception
   
   ```log
   Caused by: java.sql.SQLException: ORA-01300: writable database required for 
specified LogMiner options
   ORA-06512: at "SYS.DBMS_LOGMNR", line 58
   ORA-06512: at line 1
   
        at oracle.jdbc.driver.T4CTTIoer11.processError(T4CTTIoer11.java:494)
        at oracle.jdbc.driver.T4CTTIoer11.processError(T4CTTIoer11.java:446)
        at oracle.jdbc.driver.T4C8Oall.processError(T4C8Oall.java:1054)
        at oracle.jdbc.driver.T4CTTIfun.receive(T4CTTIfun.java:623)
        at oracle.jdbc.driver.T4CTTIfun.doRPC(T4CTTIfun.java:252)
        at oracle.jdbc.driver.T4C8Oall.doOALL(T4C8Oall.java:612)
        at oracle.jdbc.driver.T4CStatement.doOall8(T4CStatement.java:213)
        at oracle.jdbc.driver.T4CStatement.doOall8(T4CStatement.java:37)
        at oracle.jdbc.driver.T4CStatement.executeForRows(T4CStatement.java:896)
        at 
oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1119)
        at 
oracle.jdbc.driver.OracleStatement.executeInternal(OracleStatement.java:1737)
        at oracle.jdbc.driver.OracleStatement.execute(OracleStatement.java:1692)
        at 
oracle.jdbc.driver.OracleStatementWrapper.execute(OracleStatementWrapper.java:300)
        at 
io.debezium.jdbc.JdbcConnection.executeWithoutCommitting(JdbcConnection.java:1446)
        at 
io.debezium.connector.oracle.logminer.LogMinerStreamingChangeEventSource.startMiningSession(LogMinerStreamingChangeEventSource.java:682)
        at 
io.debezium.connector.oracle.logminer.LogMinerStreamingChangeEventSource.execute(LogMinerStreamingChangeEventSource.java:250)
        ... 8 more
   Caused by: Error : 1300, Position : 0, Sql = BEGIN 
sys.dbms_logmnr.start_logmnr(startScn => '171613417951', endScn => 
'171613437950', OPTIONS => DBMS_LOGMNR.DICT_FROM_ONLINE_CATALOG  + 
DBMS_LOGMNR.NO_ROWID_IN_STMT);END;, OriginalSql = BEGIN 
sys.dbms_logmnr.start_logmnr(startScn => '171613417951', endScn => 
'171613437950', OPTIONS => DBMS_LOGMNR.DICT_FROM_ONLINE_CATALOG  + 
DBMS_LOGMNR.NO_ROWID_IN_STMT);END;, Error Msg = ORA-01300: writable database 
required for specified LogMiner options
   ORA-06512: at "SYS.DBMS_LOGMNR", line 58
   ORA-06512: at line 1
   
        at oracle.jdbc.driver.T4CTTIoer11.processError(T4CTTIoer11.java:498)
        ... 23 more
   ```
   
   ### Zeta or Flink or Spark Version
   
   _No response_
   
   ### Java or Scala Version
   
   _No response_
   
   ### 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: [email protected]

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

Reply via email to