I am trying to execute ETL pipeline through Azure function that fetches data from an Oracle DB and puts into a MySQL db.
I put cx_oracle in requirements.txt but got below error:
cx_Oracle.DatabaseError: DPI-1047: Cannot locate a 64-bit Oracle Client library: "libclntsh.so: cannot open shared object file: No such file or directory".
For python oracle library cx_oracle, it requires installation of oracle clients. How do i install those dependencies, put their path on environment variable and then start execute my code on every function trigger? Is it even possible?
By default, Functions are running in a sandbox and you can't install 3rd party tools like the Oracle client. One solution is to package your app + dependencies in a Docker container and configure your Function to run the container.
Documentation