Skip to Main Content

Oracle Database Express Edition (XE)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

java.sql.SQLException: Invalid Oracle URL specified

Gaurav984Jul 1 2010 — edited Oct 10 2012
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
This post has been answered by damorgan on Jul 1 2010
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 7 2012
Added on Jul 1 2010
2 comments
2,042 views