Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |
Tags
- copy-dependencies
- bash
- VirtualBox
- 공통표준용어
- Eclipse
- lsof
- port
- Quartz
- find
- resource
- profile
- context
- grep
- maVen
- DB 도메인
- import
- 단축키
- xargs
- ssh
- tomcat
- netsh
- IntelliJ
- Windows
- 네트워크
- Mac
- Source
- JavaScript
- Windows 10
- GIT
- web.xml
Archives
- Today
- Total
develog
JDBC Driver 버전 확인 본문
private static void jdbcTest() {
try {
Class.forName("oracle.jdbc.driver.OracleDriver");
Connection conn = DriverManager.getConnection("jdbc:oracle:thin:@127.0.0.1:1521:SID", username, password);
DatabaseMetaData metaData = conn.getMetaData();
System.out.println(metaData.getDatabaseProductVersion());
System.out.println(metaData.getDriverName());
System.out.println(metaData.getDriverVersion());
} catch (ClassNotFoundException e) {
e.printStackTrace();
} catch (SQLException e) {
e.printStackTrace();
}
}
'Dev > Java' 카테고리의 다른 글
XSSF write (0) | 2012.04.29 |
---|---|
XSSF iterate (0) | 2012.04.28 |
try catch finally - Flow (0) | 2012.04.26 |
MyBatis 프로시저 호출, result parameterMap (0) | 2012.04.24 |
MyBatis 프로시저 호출, result Vo (0) | 2012.04.24 |
Comments