Problem:
Recently in the use of Geotools to import SHP files into an Oracle table, found an issue when an Oracle table name is underlined, the import fails, and the problem code line: Dsoracle.getfeaturewriterappend (oracletable, Transaction.auto_commit); Dsoracle as Org.geotools.data.DataStore type Object
Solution:
Online lookup is ORACLE11 Java package OJDBC version problem, maven search Ojdbc found the latest version of the following figure
POM Configuration:
<!--https://mvnrepository.com/artifact/ojdbc/ojdbc-->
<dependency>
<groupid>ojdbc </groupId>
<artifactId>ojdbc</artifactId>
<version>14</version>
< /dependency>
However, the latest version of ORACLE11G's OJDBC should be OJDBC6
POM Configuration:
<!--https://mvnrepository.com/artifact/cn.guoyukun.jdbc/oracle-ojdbc6-->
<dependency>
< groupid>cn.guoyukun.jdbc</groupid>
<artifactId>oracle-ojdbc6</artifactId>
< Version>11.2.0.3.0</version>
</dependency>
So I'm going to update the OJDBC Jar pack to the Oracle-ojdbc6-11.2.0.3.0.jar version of the OK