AzaZPPL commented on issue #20371: URL: https://github.com/apache/superset/issues/20371#issuecomment-2412087487
For those using the Docker Compose setup and wanting to switch to the new `oracledb` instead of `cx_Oracle` with Instant Client, here are the steps: 1. Create `requirements_local.txt` in the `docker` folder. 2. Add `oracledb` to this file to download the latest `python-oracledb`. 3. Confirm the downloaded version or check [here](https://python-oracledb.readthedocs.io/en/latest/user_guide/appendix_c.html#python-frameworks-sql-generators-and-orms). For example, if it's 8.3.0, write: ```python import sys import oracledb oracledb.version = "8.3.0" sys.modules["cx_Oracle"] = oracledb ``` 4. Append this code to `docker/pythonpath_dev/superset_config.py`. 5. Run `docker-compose up -d` to start the setup. If your connection uses a service name, convert the connection string. For example, change: `oracle://user:[email protected]:1521/myservicename` to `oracle://user:[email protected]:1521/?service_name=myservicename`. With thanks to the write up of @cjbj. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
