maven oracle jdbc jar
2016-03-17 16:44
337 查看
1.problem describe:
when your dependency jar about oracle use code like this:
<!-- oracle-connector -->
<dependency>
<groupId>com.oracle</groupId>
<artifactId>ojdbc14</artifactId>
<version>${oracle.connector.version}</version>
</dependency>
you will not really get jar through maven, because you don't have permission to get the jar.
2. sulution:
you can get the jar from some web site, and then install it to you local maven repository.
now i put my jar to D:ojdbc14.jar
3. Follow up
may be you will meet the problem(not support oracle driver 1.0), it says that your oracle jdbc version not support your environment.
ojdbc6 support JDK6, JDBC4.0.
import the jar to your local maven repository
you can set the dependency like this:
<!-- oracle-connector -->
<dependency>
<groupId>com.oracle</groupId>
<artifactId>ojdbc6</artifactId>
<version>11.2.0.1.0</version>
</dependency>
ok, the problem fixed.
when your dependency jar about oracle use code like this:
<!-- oracle-connector -->
<dependency>
<groupId>com.oracle</groupId>
<artifactId>ojdbc14</artifactId>
<version>${oracle.connector.version}</version>
</dependency>
you will not really get jar through maven, because you don't have permission to get the jar.
2. sulution:
you can get the jar from some web site, and then install it to you local maven repository.
now i put my jar to D:ojdbc14.jar
3. Follow up
may be you will meet the problem(not support oracle driver 1.0), it says that your oracle jdbc version not support your environment.
ojdbc6 support JDK6, JDBC4.0.
import the jar to your local maven repository
you can set the dependency like this:
<!-- oracle-connector -->
<dependency>
<groupId>com.oracle</groupId>
<artifactId>ojdbc6</artifactId>
<version>11.2.0.1.0</version>
</dependency>
ok, the problem fixed.
相关文章推荐
- ORACLE IMP STATISTICS参数
- oracle exp空表
- 解决Oracle 11g在用EXP导出时,空表不能导出
- Weblogic、Tomcat、Oracle与Clob
- mysql相似于oracle的to_char() to_date()方法
- oracle数据库-修改表空间表数据文件
- oracle存储过程的基本语法
- Oracle高级查询之OVER (PARTITION BY ..)
- oracle中如何更改order by的默认排序?
- 安装oracle10g并导入dmp文件的过程(遇到的问题总结记录)
- Oracle表空间、段、区和块简述
- oracle DBLink的使用
- oracle user_users,dba_users,all_users
- oracle 11g 分区
- oracle用户创建及权限设置
- Oracle数据库开发和设计规范
- oracle中exp,imp的使用详解
- oracle表分区详解
- windows下 Oracle11完全卸载方法
- shell脚本,操作oracle数据库