New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support Oracle Service Name connection option #4345
Comments
@klauern Did you happen to find a workaround? I'm currently scrounging around for SIDs, but if you discovered an alternative that would be very helpful. |
Yes, if it's like the Postgres page, I should be able to just toss "/[servicename]" on the end of the JDBC string to connect. Out of curiosity, is there any possibility of having a generic JDBC string field to attach databases? Love the platform by the way, you guys have done a great job! |
@klauern @alee792 I've opened PR #4923 that lets you supply additional JDBC connection string options. Please give it a try and let me know if it works for you. You'll want to put something like
in the input box ( If that works I'll merge this into our upcoming release. |
Also @alee792 allowing generic JDBC connection strings is an option we're considering. There are some issues with that approach, however:
We've added the "additional connection string options" for a few databases now and it seems to most if not all of the use cases for a raw JDBC connection string that I've seen so far. |
Thank you for all the help @camsaul. It seems to be working on my end. When is the next release slated for? |
@alee792 we're planning on shipping it in the next week or so |
Implemented by #4923 |
@camsaul, turns out I didn't test it adequately enough :(. When attempting to connect to an Oracle DB with only the service name provided and no SID, I receive the same exception:
I've never worked with clojure, but from the PR, it looks like sql/handle-additional-options appends the JDBC string options to the end as "host:port:sid/serviceName". Thus, when a an sid is not provided it ends up looking like host:port:/serviceName, resulting in the exception above. Not being super familiar with Oracle DBs, I'm not sure if every DB necessitates an SID (our DBAs can't seem to find them if we do...), but we are definitely using service names. Based on @klauren's post, this "service name only" config seems pretty common. Apologies for my oversight. Could it be changed to remove the final colon when an SID is not provided? I'm working on my end with DBAs to track down the SIDs to make sure that it actually is functional when an SID and/or service name is provided. I will get back when I get that figured out. Again, thanks for all the help! Edit: Can confirm that we only use service name and not SID. |
I won't have an opportunity to test this until at least June. I'm currently out of the state on leave for some other work, and my time is completely wrapped up in what I'm doing there. I'll make a note to check this out when I get back, though, as I would like to get this working on some databases that have a litany of tables that I could be gathering information out of. |
@alee792 it should be a simple fix to make it work without SIDs |
I am trying to use Metabase, and noticed that it started supporting Oracle drivers. I have been able to get it started with the
ojdbc7.jar
, and it doesn't appear to support Service Names, opting only to provide support for SID's:All of our databases are behind service names, and from what I have been able to figure out, the URL needs to be different: http://stackoverflow.com/questions/4832056/java-jdbc-how-to-connect-to-oracle-using-service-name-instead-of-sid#4832116
The text was updated successfully, but these errors were encountered: