Connect to a local Oracle database
843854Dec 10 2001 — edited Oct 3 2002I 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