You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by GitBox <gi...@apache.org> on 2020/05/02 09:01:47 UTC

[GitHub] [shardingsphere] lvye351 edited a comment on issue #5309: The junit test of transaction-2pc-xa-raw-jdbc-example module failed when a oracle database used

lvye351 edited a comment on issue #5309:
URL: https://github.com/apache/shardingsphere/issues/5309#issuecomment-622836732


    @cherrylzhao I used  latest   master brach  ,with oracle database 12c and ojbdc8.jar
   `  <groupId>com.oracle</groupId>
               <artifactId>ojdbc8</artifactId>
               <version>12.2.0.1.0</version>`
   
   sharding-databases-tables.yaml:
   
   dataSources:
     ds_0: !!com.zaxxer.hikari.HikariDataSource
       driverClassName: oracle.jdbc.OracleDriver
       jdbcUrl: jdbc:oracle:thin:@ip:1521:cc
       username: whl2
       password: whl2
     ds_1: !!com.zaxxer.hikari.HikariDataSource
       driverClassName: oracle.jdbc.OracleDriver
       jdbcUrl: jdbc:oracle:thin:@ip:1521:cc
       username: whl
       password: whl
   
   Caused by: oracle.jdbc.OracleDatabaseException: ORA-06550: 第 1 行, 第 14 列: 
   PLS-00201: identifier 'JAVA_XA.XA_START_NEW' must be declared
   ORA-06550: 第 1 行, 第 7 列: 
   PL/SQL: Statement ignored
   
   	at oracle.jdbc.driver.T4CTTIoer11.processError(T4CTTIoer11.java:498)
   	... 62 common frames omitted
   
   
   
   java.sql.SQLException: com.atomikos.icatch.jta.ExtendedSystemException: Unexpected error during enlist
   
   	at org.apache.shardingsphere.transaction.xa.XAShardingTransactionManager.getConnection(XAShardingTransactionManager.java:71)
   	at org.apache.shardingsphere.shardingjdbc.jdbc.core.connection.ShardingConnection.createConnection(ShardingConnection.java:64)
   	at org.apache.shardingsphere.shardingjdbc.jdbc.adapter.AbstractConnectionAdapter.createConnections(AbstractConnectionAdapter.java:126)
   	at org.apache.shardingsphere.shardingjdbc.jdbc.adapter.AbstractConnectionAdapter.getConnections(AbstractConnectionAdapter.java:115)
   	at org.apache.shardingsphere.underlying.executor.sql.group.ExecuteGroupEngine.generateSQLExecuteGroups(ExecuteGroupEngine.java:105)
   	at org.apache.shardingsphere.underlying.executor.sql.group.ExecuteGroupEngine.generate(ExecuteGroupEngine.java:75)
   	at org.apache.shardingsphere.shardingjdbc.jdbc.core.statement.ShardingPreparedStatement.executeUpdate(ShardingPreparedStatement.java:162)
   	at org.apache.shardingsphere.example.transaction.xa.raw.jdbc.XAOrderService.doInsert(XAOrderService.java:107)
   	at org.apache.shardingsphere.example.transaction.xa.raw.jdbc.XAOrderService.insert(XAOrderService.java:83)
   	at org.apache.shardingsphere.example.transaction.xa.raw.jdbc.XAOrderServiceTest.assertInsertSuccess(XAOrderServiceTest.java:47)
   
   
   is my oracle drvier version  or config wrong? 
   


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

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