public void init(ServletConfig config) throws ServletException {
        super.init(config);
        try {
            Class.forName("oracle.jdbc.driver.OracleDriver");
            Properties sysProps = new Properties();
            sysProps.put("user", "jbuser1");
            sysProps.put("password", "abc");
            con = DriverManager.getConnection(
                    "jdbc:oracle:thin:@127.0.0.1:1521:chenbo1", sysProps);
        } catch (ClassNotFoundException ex) {
            ex.printStackTrace();
        } catch (SQLException ex) {
            ex.printStackTrace();
        }给你一个连接Oracle的数据库方法代码  驱动地址*:\oracle\ora92\jdbc\lib\classes12.jar