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
Make Oracle SID connection param optional #4948
Conversation
Just tested, but there seems to be some validation that's throwing an exception:
Looks like it's still validating for an sid. |
That validation isn't coming from Metabase, that's coming from the Oracle JDBC driver itself. Are you sure you don't have an SID? I don't think the driver would require one if it wasn't something everyone had |
It sounds like maybe you can get your SID like this SELECT sys_context('USERENV', 'SID') FROM DUAL; |
It sounds like |
That's what our DBA is telling me. I've tried a few different methods of pulling the SID, including the one you have posted above, to no avail. He did send over what he thinks the full JDBC string, so I'm going to test that independently right now to make sure he knows what he's talking about. |
ok. Is the format like |
Yep, that first one is what should work. I'm going to check it out in python to see if I can successfully connect. |
Ok. Check out #4954. I pushed a branch that constructs the connection string that way instead of relying on params. Let me know if that works |
Wooho, it's connected! Nothing's showing up in the data model right now, but the logs show it working through the schema. Thanks @camsaul! |
@alee792 awesome! |
I don't know a lot about Oracle DBs but I have heard whispers in #4345 that specifying SID is not required, nor is it a BASIC NEED for all Oracle users. So let's make that param optional.
Includes tests