Connecting to Oracle from Java
===

How can I connect to Oracle DB from Java without using any DSN, so the program can be executed on any system without any changes ?

_My Code_

    import java.sql.*;

    try
    {
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    cn=DriverManager.getConnection("jdbc:odbc:cn","scott","tiger");
    }
    catch(Exception e)
    {}

    PreparedStatemenet ps=cn.prepareStatemenet("insert into table values(?)");
    ps.setString("A");
    int m=ps.executeUpdate();