을 실행할 때 . ojdbc 드라이버를 변경하려고했지만 아는 것이 없습니까?자바 블록 내가 데이터베이스 <strong>Oracle11g</strong>에 있지만 절차의 출시에 자바를 연결하는 <strong>ojdbc7</strong> 라이브러리를 사용하여 문제가 해결할 수있는 오라클 절차
private static HashMap<String, Connection> connessioni = new HashMap<>();
....
public static Connection getConnectionIstance(String connessione){
Connection connection=null;
try{
if((connection=connessioni.get(connessione))==null){
Class.forName("driver");
connection=DriverManager.getConnection("urlDb","userDb","pwdDb");
connection.setAutoCommit(false);
connessioni.put(connessione, connection);
}
}catch(SQLException e){
e.printStackTrace();
}catch(ClassNotFoundException e){
e.printStackTrace();
}catch(Exception e){
e.printStackTrace();
}
return connection;
}
주요 ....
CallableStatement callStatement=null;
callStatement = connection.prepareCall({call nomePkg.mainpkg(?)});
callStatement.registerOutParameter(1, Types.INTEGER);
System.out.println("START PROCEDURe");
callStatement.execute();
System.out.println("END PROCEDURe");
는 콘솔 'END 절차 "를 인쇄하지 마십시오 : 나는 코드를 부착하고있다.
P. 절차는 약 1 시간 30 분 정도 소요됩니다.
실행중인 절차에 대해 통찰력을 줄 수 있습니까? callStatement.execute()에 대한 예외 사항을 잡으시겠습니까? – mmmmmpie