-
Notifications
You must be signed in to change notification settings - Fork 365
Cancel a cursor.execute() #173
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
Comments
Can you provide some more information on platform, Oracle versions (database and client), cx_Oracle version. It would also be helpful if you can include the code you used so we can see if your use of cancel() is being done correctly! Thanks. |
Here is the code:
I've also used cursor.close() on the signal process, declaring the cursor earlier, and nothing. The process stops but the query is still launched.
I'm using the latest version of cx_oracle, and I'm user docker to prepare the database with oracle-xe-11g. The connection with the database works good. The table is created, the problem is that I cannot cancel it. Thank you for helping |
I have a feeling this is a duplicate of https://stackoverflow.com/questions/50019989/cancel-interrupt-a-query-execute-on-cx-oracle |
Yes, actually It is my post too. |
Check the firewall or try DISABLE_OOB=on in a sqlnet.ora. And post platform and version details too, please! |
Where should I add the DISABLE_OOB=on (I'm some kind of new to Oracle) Thanks. And about platform I dont know if u mean my machine or what else. |
This has some applicable info https://oracle.github.io/node-oracledb/doc/api.html#tnsadmin (the network layer is common with cx_Oracle) Platform == whatever you are running on: operating system, virtual machines etc. |
I'm running the code on a Ubuntu Budgie and the data base running on a docker (oracle-xe-11g) |
Closing due to lack of activity. |
Hi, |
Take a look at the attribute call_timeout. This is for the replacement for cx_Oracle called python-oracledb but the same information applies to cx_Oracle. |
I dont think it will help me resolving the issue. |
Why do you think that? Open a new issue with details! |
Hi, I'm running a query which takes a long time to finish. I want to be able to kill the connection with CTRL+C or kill PID. I've tried to use the connection.cancel() o the terminate process but the query keeps on executing. I've also tried to make the query on a subprocess but even if i kill the process the query is still executed. Is there any way of cancelling it?
Thanks.
The text was updated successfully, but these errors were encountered: