Skip to Main Content

Java Database Connectivity (JDBC)

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!

Connect to a local Oracle database

843854Dec 10 2001 — edited Oct 3 2002
I installed Oracle server to my laptop. When I am in my office and connected to the LAN, I can connect to the local Oracle server thru Oracle thin driver:

DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());

conn = DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:ORCL", "user", "passwd");

However, when I try to connect to the local Oracle without network connection (at home), it did not work. Any suggestions?

Brian
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 31 2002
Added on Dec 10 2001
11 comments
993 views