I try to connect to the local oracle database, but I get this cryptic error message: Invalid Oracle URL specified: OracleDataSource.makeURL .
I am sure that this is due to an error with the database connection parameters that I am transmitting, but actually this error message does not help me in any way. Any hints that I'm doing wrong will be greatly appreciated.
FYI: The code used to connect below, with the exception of hard-coded strings, is what is used in our production environment and works there.
OracleDataSource dataSource = new OracleDataSource(); dataSource.setServerName("localhost"); dataSource.setUser(userName); dataSource.setPassword(password); dataSource.setDatabaseName("orcl"); return dataSource.getConnection();
source share