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
Thin mode connection to standby database failed with TypeError on _MAX_OPEN_CURSORS #294
Comments
I discussed this internally and thick mode uses the value 0, so I have adjusted thin mode to do the same. If you are able to build from source you can verify that it works for you, too. |
Great, I tested with the latest source and the issue is resolved. Thanks for your quick response! |
Hi, the same error is thrown when trying to connect to ASM instance, when using oracledb 2.0.1 installed through pip. |
A new release should be available "soon". We are doing internal testing right now so I can't say exactly when but it should be within the next week or so. Thank you for your patience! |
This patch was included in version 2.1.0 which was just released. |
After upgrading from oracledb 1.4.2 to 2.1.0b1, thin mode connections to a physical standby database opened MOUNTED fail with a TypeError.
Connections using thick mode work fine. Thin mode connections to a primary database opened READ WRITE are fine, but when opened MOUNTED the same issue.
Database version: 19.21.0.0.0
platform.platform: Linux-5.4.17-2136.327.2.el7uek.x86_64-x86_64-with-glibc2.17
sys.maxsize > 2**32: True
platform.python_version: 3.9.18
oracledb.version: 2.1.0b1
Error
When calling the
connect()
function to connect to a standby database:oracledb.connect(dsn=connect_string, user=username, password=password, mode=mode)
The following error occurs:
This refers to the line
For testing purposes I changed this as follows, and then connections are established without the TypeError:
No, the error occurs only in thin mode. In thick mode no errors.
The text was updated successfully, but these errors were encountered: