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:password@192.168.1.201:1521/myservicename` to `oracle://user:password@192.168.1.201: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: notifications-unsubscr...@superset.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: notifications-unsubscr...@superset.apache.org For additional commands, e-mail: notifications-h...@superset.apache.org