Is there a way to test my connection to oracle database using Java? Here\'s my code.
public class OracleConnection { public static void main(String[] args)
You can catch SQLException from DriverManager.getConnection() and looks for ORA-12543. Read SQLException documentation about vendor code.
DriverManager.getConnection()