You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Desktop (please complete the following information):
OS: Windows 10, but should apply to all OS
Browser: N/A
Version: DataHub CLI version: 0.15.0.5
Additional context
At first, I thought I might be able to enable thick mode, using the "options" setting in the recipe. However, enabling thick mode in this way only appears to be an option with sqlalchemy 2.0. Since the current version of datahub is using sqlalchemy 1.4, I believe an additional option is required in the recipe to enable thick_mode by making a call to oracledb.init_oracle_client(lib_dir="\path\to\oracle\client") before the connection is established.
This doesn't appear to be documented in the sqlalchemy 1.4, but I have tested it on my local machine and found that this works. I found the code for this in a blog article, and see similar code to use oracledb in sqlalchemy 1.4 within the datahub source here.
The text was updated successfully, but these errors were encountered:
I am willing to work on a pull request for this, but will probably need some help figuring out the best approach.
I was thinking of another pydantic field in the oracle source recipe, like thick_mode that defaults to False but can be set to True. A second field for lib_dir may also be required, that must exist when thick_mode: True.
I can probably figure that out in the Oracle source file. However, I'm not sure what file the engine is created in, so could use advice on that.
Describe the bug
When connecting to Oracle database, an exception is thrown:
The page referencing the error says this is common if the database has Native Network Encryption (NNE) enabled.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
There should be an option to enable thick mode as described in python-oracledb documentation
Screenshots
N/A
Desktop (please complete the following information):
Additional context
At first, I thought I might be able to enable thick mode, using the "options" setting in the recipe. However, enabling thick mode in this way only appears to be an option with sqlalchemy 2.0. Since the current version of datahub is using sqlalchemy 1.4, I believe an additional option is required in the recipe to enable thick_mode by making a call to
oracledb.init_oracle_client(lib_dir="\path\to\oracle\client")
before the connection is established.This doesn't appear to be documented in the sqlalchemy 1.4, but I have tested it on my local machine and found that this works. I found the code for this in a blog article, and see similar code to use oracledb in sqlalchemy 1.4 within the datahub source here.
The text was updated successfully, but these errors were encountered: