public Connection getConexao() throws ClassNotFoundException, SQLException { //EM CASA /*String driverName = "oracle.jdbc.driver.OracleDriver"; Class.forName(driverName); String serverName = "localhost"; String portNumber = "5000"; String sid = "dbdisc"; String url = "jdbc:oracle:thin:@" + serverName + ":" + portNumber + ":" + sid; String username = "g091if685cc_eq05"; String password = "gdi20091"; conexao = DriverManager.getConnection(url, username, password); return this.conexao;*/ // NO CIN String driverName = "oracle.jdbc.driver.OracleDriver"; Class.forName(driverName); String serverName = "itapissuma.cin.ufpe.br"; String portNumber = "1521"; String sid = "dbdisc"; String url = "jdbc:oracle:thin:@" + serverName + ":" + portNumber + ":" + sid; String username = "g091if685cc_eq05"; String password = "gdi20091"; conexao = DriverManager.getConnection(url, username, password); conexao.setAutoCommit(true); return this.conexao; }