vinlee19 opened a new pull request, #355:
URL: https://github.com/apache/doris-flink-connector/pull/355

   # Proposed changes
   If the Oracle table we synchronize contains "/", it will cause ORA-01424 
when retrieving column information through JDBC. This can be resolved by 
replacing "/" with "_".
   The error as following:
   ```
   Exception in thread "main" java.sql.SQLDataException: ORA-01424: 转义符之后字符缺失或非法
   
        at oracle.jdbc.driver.T4CTTIoer11.processError(T4CTTIoer11.java:509)
        at oracle.jdbc.driver.T4CTTIoer11.processError(T4CTTIoer11.java:461)
        at oracle.jdbc.driver.T4C8Oall.processError(T4C8Oall.java:1104)
        at oracle.jdbc.driver.T4CTTIfun.receive(T4CTTIfun.java:550)
        at oracle.jdbc.driver.T4CTTIfun.doRPC(T4CTTIfun.java:268)
        at oracle.jdbc.driver.T4C8Oall.doOALL(T4C8Oall.java:655)
        at oracle.jdbc.driver.T4CStatement.doOall8(T4CStatement.java:229)
        at oracle.jdbc.driver.T4CStatement.fetch(T4CStatement.java:1037)
        at 
oracle.jdbc.driver.OracleStatement.fetchMoreRows(OracleStatement.java:3456)
        at 
oracle.jdbc.driver.InsensitiveScrollableResultSet.fetchMoreRows(InsensitiveScrollableResultSet.java:742)
        at 
oracle.jdbc.driver.InsensitiveScrollableResultSet.absoluteInternal(InsensitiveScrollableResultSet.java:698)
        at 
oracle.jdbc.driver.InsensitiveScrollableResultSet.next(InsensitiveScrollableResultSet.java:412)
        at 
org.apache.doris.flink.tools.cdc.JdbcSourceSchema.<init>(JdbcSourceSchema.java:43)
        at 
org.apache.doris.flink.tools.cdc.oracle.OracleSchema.<init>(OracleSchema.java:33)
        at 
org.apache.doris.flink.tools.cdc.oracle.OracleDatabaseSync.getSchemaList(OracleDatabaseSync.java:126)
        at 
org.apache.doris.flink.tools.cdc.DatabaseSync.build(DatabaseSync.java:117)
        at 
org.apache.doris.flink.tools.cdc.CdcOraclelSyncDatabaseCase.main(CdcOraclelSyncDatabaseCase.java:96)
   Caused by: Error : 1424, Position : 2100, Sql = declare
     in_owner varchar2(256) := null;
     in_name varchar2(256) := null;
     in_column varchar2(256) := null;
     xyzzy SYS_REFCURSOR;
   ```
   
   However , MySQL, PostgreSQL, and SQL Server do not encounter such errors.
   Issue Number: close #xxx
   
   ## Problem Summary:
   
   Describe the overview of changes.
   
   ## Checklist(Required)
   
   1. Does it affect the original behavior: (Yes/No/I Don't know)
   2. Has unit tests been added: (Yes/No/No Need)
   3. Has document been added or modified: (Yes/No/No Need)
   4. Does it need to update dependencies: (Yes/No)
   5. Are there any changes that cannot be rolled back: (Yes/No)
   
   ## Further comments
   
   If this is a relatively large or complex change, kick off the discussion at 
[[email protected]](mailto:[email protected]) by explaining why you 
chose the solution you did and what alternatives you considered, etc...
   


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


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to