public void abrirConexion(){
    try	{
        //Especificar Driver
        Class.forName("oracle.jdbc.OracleDriver");
        //Obtener conexión 1521
        conx = DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:xe","proyecto","linux");

       // conx = DriverManager.getConnection("jdbc:oracle:@localhost:1521:xe","system","system");

   }
   catch(ClassNotFoundException ex){
        System.out.println("DRIVER NO ENCONTRADO");
    }
    catch(SQLException ex){
        System.out.println("CONEXION NO ESTABLECIDA");
    }
    catch(Exception ex) {
            System.out.println("ERROR");
        }
    }