Delete comment from: Javarevisited
If anyone has any trouble finding ojdbc6.jar e.g. not able to download from internet or internet is not available. Always remember that one copy of this JAR is available when you install Oracle Client or Server in your machine. You can find this JAR in following location :
$ORACLE_HOME/jdbc/lib/ojdbc6.jar
Also JDBC Connection URL for Oracle can take variety of format e.g. it can include Service name or SID. following are some valid combination of Oracle JDBC URL :
jdbc:oracle:thin:user/xxxx@server:port:SID
jdbc:oracle:thin:user/xxxx@:SID
jdbc:oracle:thin:user/xxxx@//server:port/XE
Cheers
Feb 3, 2015, 11:33:07 PM
Posted to Java Program to connect Oracle Database with Example - JDBC Tutorial Sample Code