Determine JDBC Driver Version used to connect to your Oracle Database

Prepare: loading jdbc jar into system or IDE

system:
 1). compile:  javac -cp /usr/jdbc/lib/ojdbc6.jar JDBCVersionInfo.java
 2). run : java -cp /usr/jdbc/lib/ojdbc6.jar JDBCVersionInfo

IDE:
 1) config build path to include ojdbc6.jar
 2) run main 

Download Source Code





No comments :

Post a Comment