-
Notifications
You must be signed in to change notification settings - Fork 200
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
Consider adding Oracle support #45
Comments
May be easier after appveyor/ci#31 |
Would love to see someday 😀 |
@odin568 what has held me back in the past is not having a good way to install an Oracle db on my windows machine for doing development. Do you know if this is now supported or do you have another recommended workflow for this? |
What should Work is Bildung a docker Container and Run it locally, as described here: |
Ok I think I have a basic local setup working: Container start command:
C# snippet:
|
I am Happy to Support you with Testing, Just Ping me |
Thanks @odin568 that would be great. It will take me a bit to actually code up the implementation but I'll let you know when a prerelease is available. In the meantime, if you happen to know how to query for idle sessions (connections that are open but not doing running any commands) in Oracle that would be super helpful; I'll need it for my testing. |
There are two main global tables which should have the information: gv$session s, v$process |
Thanks @odin568! Another Oracle question for you: do you typically call |
No, you don't need it, does not have any effect, see https://docs.oracle.com/html/E10927_01/OracleCommandClass.htm |
Running into issues getting command cancellation to work properly, see oracle/dotnet-db-samples#211 |
Hmm... Is the answer there a Blocker? |
@odin568 sorry thought I had replied here earlier. No it is not a blocker and I'm continuing to progress with the implementation. However, this will limit the functionality somewhat. The main thing we lose is the ability to cancel lock requests which is pretty valuable. As a workaround for that, I'm thinking of implementing longer lock requests using a loop with chances to check the cancellation token in between. |
Update on this: While I did get oracle working on my machine through docker, I've found the docker-based oracle to be incredibly unreliable. I have to restart the database frequently and constantly encounter issues like connection timeouts. Perhaps there is a fix for this (e. g. some configuration I'm missing). I'd be happy to try things The other avenue I'm exploring is using oracle cloud's free tier. For future reference, work done is here: https://github.com/madelson/DistributedLock/compare/oracle?expand=1 |
@odin568 I've published a beta release of the Oracle package here: https://www.nuget.org/packages/DistributedLock.Oracle/1.0.0-beta001 . Can you try it out in your environment? Thanks! |
Will do this week! Thank you! |
So first the good thing: On one schema I have on one of our oracles, it works great. On the same database, different schema, I get
I think i would need to grant something like connect as sys
grant execute on SYS.DBMS_LOCK to someuser; The schema where it works is our historic "god" schema. Newer stuff we build more modular and have dedicated schemas with only the rights needed. So probably that is something to resolve on my end, but perhaps a topic for documentation. So far thanks a lot - will make some more tests but it looks promising!! |
Thanks for testing @odin568 ! From some quick googling I found https://stackoverflow.com/questions/10870787/oracle-pl-sql-dbms-lock-error which suggests that your solution to the permissions issue is the correct one. I've added this section to the Oracle docs: https://github.com/madelson/DistributedLock/blob/oracle/docs/DistributedLock.Oracle.md#setup I'll aim to publish a stable version of the package tomorrow! |
Released in DistributedLock.Oracle 1.0.0 / DistributedLock 2.3.0 |
Requested by user via nuget.org
Some promising stuff here: https://stackoverflow.com/questions/2627609/is-there-an-equivalent-to-sp-getapplock-sp-releaseapplock-in-oracle
Oracle has a free version for testing here: https://www.oracle.com/database/technologies/appdev/xe.html
The text was updated successfully, but these errors were encountered: