Java - Notes on using an Oracle DB

Submitted by code_admin on Fri, 07/20/2018 - 12:44

DBMS output in calls

  1.             Connection conn = DriverManager.getConnection("jdbc:oracle:thin:@//ictdbs36.ad.ic.ac.uk:1545/ICPRJ04", "APPS", "asdasdasd");
  2.                 conn.setAutoCommit (false);
  3.  
  4.                 Statement stmt = conn.createStatement();
  5.  
  6.                 DbmsOutput dbo = new DbmsOutput( conn );
  7.  
  8.                 dbo.enable( 1000000 );
  9.  
  10.                 stmt.execute( stmtSTR );
  11.                 stmt.close();
  12.  
  13.                 dbo.show();
  14.  
  15.                 dbo.close();
  16.                 conn.close();

Tags

RJM Article Type
Quick Reference