2 Replies Latest reply: Oct 10, 2012 7:30 AM by Gaurav984 RSS

    java.sql.SQLException: Invalid Oracle URL specified

    Gaurav984
      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