Hello!
I’m getting below error while trying to configure a JDBC Oracle connection.
Any help is appreciated.
Thanks.
Error encountered
[ART.118.5042] Adapter Runtime (Connection): Unable to enable connection resource acme.adapters:acmeJDBC.
[ART.118.5036] Adapter Runtime (Connection): Unable to configure connection manager.
[ADA.1.204] Cannot connect to the database with DataSource class “oracle.jdbc.pool.OracleDataSource”.
Invalid Oracle URL specified: OracleDataSource.makeURL
Here is my set up:
Windows 10 PRO.
webMethods IS 10.15 x64 trial version.
Oracle DB 18c XE(before 21c)
JDK 19.0.2
Here is the list of troubleshoot attempted so far:
1 Other properties as: thin, oci and blank(upper and lower cases).
2 Server name as : localhost, 127.0.0.1, 192.168.0.8(real local ip) and real machine hostname.
3 Downgrading from Oracle XE 21C to Oracle XE 18c, decide it to try after seen in webMethods Adapters System Requirements documentation, that my version of webMethods Adapter 10.3 for JDBC, did not listed Oracle DB 21c.So i thought of giving a shot, despite understanding that a later version shouldn’t be an issue.
4 Different versions of JDBC Oracle driver: ojdbc11.jar, ojdbc10.jar and ojdbc8.jar .
5 Generate ‘tnsnames.ora’ using NETCA and placing in the oracle DB folder …\product\18.0.0\dbhomeXE\network\admin
6 As per @Holger_von_Thomsen inputs:
did you reload the WmJDBCAdapter package after exchanging the ojdbcx.jar (or stop and restart the IS)?
Remove all other occurences of ojdbcx.jar from IS classpath to avoid class loading conflicts.
Did you change the “Other Properties” field as requested?
Eventually provide an updated screenshot of the connection config.
Sorry for my misunderstanding. On second thought, it makes sense to indicate what type of property is being configured under “Other Properties”. After changing this to “driverType=thin” instead of just “thin”, the previous error stopped appearing, but unfortunately the new error below appeared.
Error encountered
[ART.118.5042] Adapter Runtime (Connection): Unable to enable connection resource acme.adapters:acmeJDBC.
[ART.118.5036] Adapter Runtime (Connection): Unable to configure connection manager.
[ADA.1.204] Cannot connect to the database with DataSource class “oracle.jdbc.pool.OracleDataSource”.
Listener refused the connection with the following error:
ORA-12505, TNS:listener does not currently know of SID given in connect descriptor
(CONNECTION_ID=dJuSzI+WSRegC/VLURag2A==)
This is how i connected to the same database using Oracle SQL Developer. Considering is configured with a “Service Name”, should the “Database Name” in JDBC Adapter Connection be set differently?
can you check you Oracle installation for the files tnsnames.ora and listeners.ora?
In one of these files you will have to configure a SID additionally to the service name.
Or instead of specifying the databaseName, add a property to the other properties field with “;serviceName=XEPDB1”.
Alternatively you can use the bundled DataDirect-Driver instead of the native Oracle-Driver.
Check the Pool config in IS admin for the required Data.