How to use python-oracledb with AWS glue #327
Replies: 2 comments
-
|
Beta Was this translation helpful? Give feedback.
0 replies
-
i have tried this method kinda stuck here |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Summary:- we are pulling data from a oracledb performing a few operations and finally writing it back to oracledb in aws glue.
While writing back to the oracledb we had to use the update statements for few tables.
So Glue supports direct insert into the table but it doesn't support update statements directly. So we moved to pyhton-oracledb module so that we will be able to make changes to the dataframe and convert them and use simple conditional statements to update the table.
Isssue:- I tried using the normal thin mode but it was not supported so i had to go with thick mode
Made this glue script in which we have already placed the oracle-instant-client in an s3 bucket.I am pulling it into a tmp directory and unzipping all the contents
Still i get this error telling the file not exist but when i check it by manually unzipping i am able to see the file
Error Category: RESOURCE_NOT_FOUND_ERROR; DatabaseError: DPI-1047: Cannot locate a 64-bit Oracle Client library: "libnnz21.so: cannot open shared object file: No such file or directory". See https://python-oracledb.readthedocs.io/en/latest/user_guide/initialization.html for help
I got this link was a bit confusing Unable to connect oracle database using cx_oracle from AWS Glue
Any idea would really help Thank you in advance
Beta Was this translation helpful? Give feedback.
All reactions