java.sql.SQLException: Invalid Oracle URL specified
Dear All,
I am writing a simple java class to access hr schema tables data but constantly i am getting the same error:
java.sql.SQLException: Invalid Oracle URL specified
the below are the parameters used by me:
DriverManager.getConnection("jdbc:oracle:thin@localhost:1521/XE","hr","hr")
the driver being used is oracle.jdbc.driver.OracleDriver
the jar being used is ojdbc14.jar
Any help on this would be highly appreciated.
thanks in advance