General discussion

Locked

connecting java with oracle 9i database

By sunrise_636 ·
hi
when trying to connect to oracle database using getConnection() I need to specify the url,username,pasword. How can i get the url?
Thanks.

Regards,

This conversation is currently closed to new comments.

3 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Collapse -

by dpotter In reply to connecting java with orac ...

The url will depend on the type of jdbc driver that you are using.
If you are using a 'thin' JDBC driver the url will be:

jdbc:oracle:thin:@<hostname>:1521:<db name>

See link for more information.
http://www.orafaq.com/faqjdbc.htm#THIN

Collapse -

by honey_us_male In reply to connecting java with orac ...

when trying to connect to oracle database using java. How can i het the url

Collapse -

by honey_us_male In reply to connecting java with orac ...

when I am trying to connect java with oracle 9i
exception occure with driver.

class.ForName("oracle.jdbc.driver.OracleDriver")

Back to Web Development Forum
3 total posts (Page 1 of 1)  

Related Discussions

Related Forums