ORA-01000: maximum open cursors exceeded
✔ Solution
최대 열린 커서를 초과했습니다.라고 한다
DB작업후
PreparedStatement를 close() 해준다
PreparedStatement pstmt = null;
try{
/*
* PreparedStatement를 사용한 DB작업
*/
}catch( Exception e ){
e.printStackTrace();
}finally{
// finally문을 이용해 항상 pstmt를 닫아주도록 한다
try {
if ( pstmt != null) pstmt.close();
} catch (SQLException se) {
se.printStackTrace();
}
}
728x90
반응형
'Dev_Log' 카테고리의 다른 글
[Maven] Missing artifact oracle:ojdbc6:jar:11.2.0.3 (0) | 2021.06.17 |
---|---|
[Java] javax.mail.AuthenticationFailedException: 535-5.7.8 Username and Password not accepted. Learn more at535 5.7.8 (0) | 2021.05.25 |
[Oracle] ORA-00911: invalid character (0) | 2021.05.24 |
[Oracle] ORA-00947: not enough values (0) | 2021.05.24 |
[MySQL] Your password does not satisfy the current policy requirements (0) | 2021.05.07 |