-
Bug
-
Resolution: Done
-
Major
-
EAP_EWP 5.1.1
-
None
-
Release Notes
-
-
-
Documented as Resolved Issue
-
NEW
The documentation for the oracle.jdbc.OracleConnection.pingDatabase method [1] is ambiguous. It says:
DATABASE_OK if the database server is up, and DATABASE_CLOSED if any error occurs.
However, it also lists SQLException as a checked exception, but doesn't indicate how to interpret it. The question one is forced to ask is, "If DATABASE_CLOSED is returned for any error then what does SQLException mean?" Obviously it indicates that an error occurred but does this kind of error mean that the same thing as DATABASE_CLOSED? To be conservative we should probably interpret the SQLException the same as DATABASE_CLOSED, but right now we don't.
Furthermore, oracle.jdbc.OracleConnection.pingDatabase(int) is deprecated so we shouldn't use it.
- is related to
-
JBJCA-899 OracleValidConnectionChecker uses deprecated method
-
- Closed
-