Connecting to Oracle 9i using Java
843854Mar 8 2004 — edited Mar 8 2004How do i connect to an Oracle database thru Java code.. ?
Class.forName("oracle.jdbc.driver.OracleDriver");
conn = DriverManager.getConnection("jdbc:oracle:thin:@127.0.0.1:1521:his", "scott", "tiger");
Statement s=conn.createStatement();
I think i'm doing something wrong in the parameters to the getConnection() method...how do i find my Oracle SID....Any help wud be appreciated. Thanks !