Geotools The table name is underlined when importing SHP files to an Oracle database

Source: Internet
Author: User

Problem:

Recently in making use of Geotools to import SHP files into an Oracle table, a problem was found when an Oracle table name was underlined when the import failed, the question code line: Dsoracle.getfeaturewriterappend (oracletable, Transaction.auto_commit); Dsoracle for Org.geotools.data.DataStore type Object

Solution:

Online access to Data discovery is ORACLE11 Java package OJDBC version of the problem, maven search Ojdbc found the latest version as

POM Configuration:

<!--HTTPS://MVNREPOSITORY.COM/ARTIFACT/OJDBC/OJDBC--
<dependency>
<groupId>ojdbc</groupId>
<artifactId>ojdbc</artifactId>
<version>14</version>
</dependency>

However, thelatest 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 package to the Oracle-ojdbc6-11.2.0.3.0.jar version, OK.

Geotools The table name is underlined when importing SHP files to an Oracle database

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.