1. oracle.com 에서 ojdbc.jar를 다운 받는다.
http://www.oracle.com/technetwork/database/features/jdbc/default-2280470.html
Thank you for accepting the OTN License Agreement; you may now download this software. |
Oracle Database 12c Release 1 (12.1.0.2) JDBC Drivers & UCP Downloads | ||
Zipped JDBC Driver and Companion JARs | ||
ojdbc-full.tar.gz (9,348,239 bytes) - (SHA1 Checksum: 62ab3746ae6d6d5787fa2773ccc2c58f040f00a2) The TAR archive contains the latest 12.1.0.2 JDBC Thin driver (ojdbc7.jar and ojdbc6.jar), Universal Connection Pool (ucp.jar), other companion jars, and README that has more information about the contents of the tar file. | ||
OR | ||
Unzipped JDBC Driver and Companion JARs | ||
The JARs included in the ojdbc-full.tar.gz are also available as individual downloads in this section. | ||
ojdbc7.jar (3,698,857 bytes) - (SHA1 Checksum: 7c9b5984b2c1e32e7c8cf3331df77f31e89e24c2) Certified with JDK7 and JDK8; | ||
ojdbc6.jar (3,692,096 bytes) - (SHA1 Checksum: 76f2f84c383ef45832b3eea6b5fb3a6edb873b93) For use with JDK6; | ||
ucp.jar (733,729 bytes) - (SHA1 Checksum:384b4a763188849bfd68f313701ac11dafd1899b) (Refer MOS note DOC ID 2074693.1) - For use with JDK6 & JDK7 | ||
ojdbc.policy (10,542 bytes) - Sample security policy file for Oracle Database JDBC drivers | ||
orai18n.jar (1,659,574 bytes) - (SHA1 Checksum: 11969072d3de96bfd5b246071976e274d78598a7) - Classes for NLS support | ||
xdb6.jar (253,006 bytes) - (SHA1 Checksum: 6fbdaebf59cb33282548f4df14436cc179c64bee) Classes to support standard JDBC 4.x java.sql.SQLXML interface (Java SE 6 & Java SE 7). | ||
ons.jar (106,496 bytes) - (SHA1 Checksum: 1aee60b3f7aa581d90f2f18d5e334a1913da52c9) For use by the pure Java client-side Oracle Notification Services (ONS) daemon | ||
simplefan.jar (21,189 bytes) - (SHA1 Checksum: 80ca1246d5c9cad79985e9fff0acc9fb09ba1b2b) Java APIs for subscribing to RAC events via ONS; simplefan policy and javadoc |
ojdbc7.jar 파일을 다운 받는다.
2. 이클립스 환경설정에서 메이븐 설치 경로를 확인한다.
User Settings 에서 보듯
메이븐 설치 경로는
/usr/local/Cellar/maven/3.5.3/bin 이 된다.
local repository 경로는
/Users/ellord/.m2/repository
이다.
3. 메이븐이 설치된 경로로 가서 실행한다.
mvn install:install-file -Dfile="다운받은파일경로" -DgroupId=com.oracle -DartifactId=ojdbc7 -Dversion=12.1 -Dpackaging=jar
ELLORDNET-MPR:bin ellord$ mvn install:install-file -Dfile="/Users/ellord/Downloads/ojdbc7.jar" -DgroupId=com.oracle -DartifactId=ojdbc7 -Dversion=12.1 -Dpackaging=jar
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------< org.apache.maven:standalone-pom >-------------------
[INFO] Building Maven Stub Project (No POM) 1
[INFO] --------------------------------[ pom ]---------------------------------
[INFO]
[INFO] --- maven-install-plugin:2.4:install-file (default-cli) @ standalone-pom ---
[INFO] Installing /Users/ellord/Downloads/ojdbc7.jar to /Users/ellord/.m2/repository/com/oracle/ojdbc7/12.1/ojdbc7-12.1.jar
[INFO] Installing /var/folders/88/j2rmm2sx259_1nlkgr_8q_l40000gn/T/mvninstall7407903127386008808.pom to /Users/ellord/.m2/repository/com/oracle/ojdbc7/12.1/ojdbc7-12.1.pom
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.471 s
[INFO] Finished at: 2018-06-11T15:23:07+09:00
[INFO] ------------------------------------------------------------------------
ELLORDNET-MPR:bin ellord$
4. 설치확인
ELLORDNET-MPR:oracle ellord$ cd /Users/ellord/.m2/repository/com/oracle/
ELLORDNET-MPR:oracle ellord$ ls -l
total 0
drwxr-xr-x 3 ellord staff 96 Jun 11 14:59 ojdbc6
drwxr-xr-x 4 ellord staff 128 Jun 11 15:23 ojdbc7
ELLORDNET-MPR:oracle ellord$
ojdbc7 이 설치되어 있다.
5. 프로젝트의 pom.xml 에 추가
<dependency>
<groupId>com.oracle</groupId>
<artifactId>ojdbc7</artifactId>
<version>12.1</version>
</dependency>
6. 아래 그림처럼 추가되어 있다.
7. 끝.
'JAVA' 카테고리의 다른 글
전자정부프레임워크 ibatis 프로시저 실행 (0) | 2019.01.08 |
---|---|
[전자정부프레임워크] jave-2.0.jar ffmpeg 를 이용한 wav to mp3 변환 (0) | 2019.01.08 |
JUnit4.12A Exception for junit4.12 about org/hamcrest/SelfDescribing (0) | 2017.10.16 |
Spring 오라클 한글 깨짐 (0) | 2016.06.08 |
Spring WARN : org.springframework.web.servlet.PageNotFound - No mapping found for HTTP request with URI (0) | 2016.06.08 |