I am trying to connect to Oracle, but all I receive back is “Unable to connect to source” there are not details to underlying JDBC driver error details to identify whats wrong. I checked the log but that is also not giving anything
Is there any way to find underlying JDBC error, I tried multiple combinations of JDBC url, but nothing is working
2018-01-12 15:17:50,024 [qtp242385885-164] INFO c.d.e.s.StoragePluginRegistryImpl - User Error Occurred [ErrorId: 0dbf5760-9ecb-4947-a6af-05182147ea81]
com.dremio.common.exceptions.UserException: Unable to connect to source xxx
at com.dremio.common.exceptions.UserException$Builder.build(UserException.java:648) ~[dremio-common-1.3.1-201712020438070881-a7af5c8.jar:1.3.1-201712020438070881-a7af5c8]
at com.dremio.exec.store.StoragePluginRegistryImpl.create(StoragePluginRegistryImpl.java:439) [dremio-sabot-kernel-1.3.1-201712020438070881-a7af5c8.jar:1.3.1-201712020438070881-a7af5c8]
at com.dremio.exec.store.StoragePluginRegistryImpl.createOrUpdate(StoragePluginRegistryImpl.java:288) [dremio-sabot-kernel-1.3.1-201712020438070881-a7af5c8.jar:1.3.1-201712020438070881-a7af5c8]
at com.dremio.dac.service.source.SourceService.registerSourceWithRuntime(SourceService.java:124) [dremio-dac-backend-1.3.1-201712020438070881-a7af5c8.jar:1.3.1-201712020438070881-a7af5c8]
at com.dremio.dac.service.source.SourceService.registerSourceWithRuntime(SourceService.java:116) [dremio-dac-backend-1.3.1-201712020438070881-a7af5c8.jar:1.3.1-201712020438070881-a7af5c8]
at com.dremio.dac.resource.PutSourceResource.putSource(PutSourceResource.java:81) [dremio-dac-backend-1.3.1-201712020438070881-a7af5c8.jar:1.3.1-201712020438070881-a7af5c8]
Are you using thick driver? I dont have Oracle installed on my pc. and from log i assumed you use oracle thin
and following settings work from SQL Developer.
i enabled debug logging from logback.xml and this the connection object
sorry dont have telnet installed on my pc. However as I said Oracle SQL Developer, which uses JDBC to connect to Oracle is able to connect to the specified server with provided details. Its the Dremio which isnt able to. If somehow I can see underlying driver exception it would be easier to debug.
com.dremio.common.exceptions.UserException: Unable to connect to source xxx
Let us do one thing, let us see if this connection even tried to hit the Oracle sever
on your Oracle host (If RAC might need to see on nodes of RAC)
su - oracle
cd $ORACLE_HOME/network/log
grep <dremio-co-ordinator-ip-or-host-name> listener.log
Also can you please see output of “lsnrctl services” and make sure the sid you are specifying is created as a SERVICE_NAME?
also can you ping the host given in the data source from the Dremio co-ordinator, if not try IP address in the data source settings
Balaji, I am in corporate env, where I dont have access to Oracle server. I have been using same server through JDBC for last 6 years without any issue.
Let me try to ask again, is there any settings in Dremio which I can enable to see underlying Oracle JDBC Driver error. It can tell exactly what is the problem. Your UserException class is hiding the underlying error.
Would you be able to show a screenshot of a configured connection from SQL Developer? Similar to this one below. I’d like to see if there are any differences we’ve missed:
How did you manage to connect? I am trying to connect to an oracle XE instance. What do you mean by fully qualified SID with which you were able to connect?