Maven management Oracle11gJDBC Driver (manual installation of oracle11g) Details

Source: Internet
Author: User

Maven management Oracle11gJDBC Driver (manual installation of oracle11g) Details
First, you know what version of Oracle you have installed?
You can enter select * from v $ instance in the SQL window to obtain the following results:


I found that my oracle version is:11.2.0.1.0
The OracleJDBC driver package must be officially authorized by Oracle to be downloaded. Therefore, only one ojdbc14.jar of Oracle10.2 or ojdbc6.jar of Oracle11.2 is selected here (if you are 1og, select the first 10.2 GB). Run the following command,Note thatFirst, you must copy the two jar packages to the C: \ Documentsand Settings \ $ {user} directory. At first, I did not copy the package. I just found a directory and found it always failed, correct.
:



Put the Maven command in the local database:


Maven code
Mvn install: install-file-DgroupId = com. oracle-DartifactId = ojdbc14-Dversion = 10.2.0.1.0-Dpackaging = jar-Dfile = ojdbc14.jar


Mvn install: install-file-DgroupId = com. oracle-DartifactId = ojdbc6-Dversion = 11.2.0.1.0-Dpackaging = jar-Dfile = ojdbc6.jar

 

 

The following information is displayed after successful execution:

 

You can also use maven commands to put them in private servers.

 

[Html]View plaincopyprint?
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 repository is configured with: D: \ mysystem \ Repositories \, which is not the default repository): Put
Maven code
<dependency><groupId>com.oracle</groupId><artifactId>ojdbc6</artifactId><version>11.2.0.1.0</version></dependency><dependency><groupId>com.oracle</groupId><artifactId>ojdbc14</artifactId><version>10.2.0.1.0</version></dependency>

The JDBC driver is added to the project.

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.