Guest User

Untitled

a guest
Jun 9th, 2018
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.77 KB | None | 0 0
  1. try (Connection connection = DriverManager.getConnection(
  2. "jdbc:oracle:thin:@" + server + ":" + port, username, password);
  3. Statement statement = connection.createStatement();
  4. ResultSet resultSet = statement.executeQuery(sqlQuery)) {
  5. try {
  6. while (resultSet.next()) {
  7.  
  8. }
  9. } catch (final SQLException e) {
  10. LOGGER.error("Exception while processing resultSet ", e);
  11. }
  12.  
  13. }
  14.  
  15. Exception while creating/releasing Connection or Statement or ResultSet
  16. java.sql.SQLRecoverableException: ORA-01034: ORACLE not available
  17. ORA-27102: out of memory
  18. Linux-x86_64 Error: 12: Cannot allocate memory
  19. Additional information: 1
  20. Additional information: 32768
  21. Additional information: 8
Add Comment
Please, Sign In to add comment