Maven Management oracle11g JDBC Driver (manual installation oracle11g) detailed version

Source: Internet
Author: User

First you know what version of Oracle you have installed?

You can enter in the SQL window: SELECT * from V$instance the following results:



Discover my Oracle version number is:11.2.0.1.0


The ORACLEJDBC driver package is required for official Oracle authorization to be downloaded. So here is only a choice of a Oracle10.2 Ojdbc14.jar or Oracle11.2 Ojdbc6.jar (if you are 1og please select the previous 10.2g), by following the command, but note that First of all, two jar packages must be copied to C:\Documentsand settings\${user} directory, at first I did not copy, just casually find a directory, found always failed, the correct


Put the MAVEN command into the local repository:


Maven Code
  1. MVN install:install-file -dgroupid=com.oracle -dartifactid=ojdbc14 -dversion= 10.2.0.1.0 -dpackaging=jar -dfile=ojdbc14.jar
  2. MVN install:install-file -dgroupid=com.oracle -dartifactid=ojdbc6 -dversion= 11.2.0.1.0 -dpackaging=jar -dfile=ojdbc6.jar



After the success of the following:




You can also use the MAVEN command to place the

[HTML]View Plaincopyprint?
  1. mvn deploy:deploy-file-dgroupid=com. Cloudhopper.proxool-dartifactid=Proxool -dversion=0. 9.1-dpackaging=Jar -dfile=Proxool-0.9.1.jar-durl=http://172.16.68.3



To the local repository: specific results (my local warehouse is configured, configured as: D:\mysystem\Repositories\, default warehouse not this): put



Then add the following configuration to the project:

Maven Code
  1. <dependency>
  2. <groupId>com.oracle</groupId>
  3. <artifactId>ojdbc6</artifactId>
  4. <version>11.2.0.1.0</version>
  5. </dependency>
  6.         
  7. <dependency>
  8. <groupId>com.oracle</groupId>
  9. <artifactId>ojdbc14</artifactId>
  10. <version>10.2.0.1.0</version>
  11. </dependency>
 

Finally, the JDBC driver is added to the project.


Maven Management oracle11g JDBC Driver (manual installation oracle11g) detailed version

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.