oracle / oci-cli

Command Line Interface for Oracle Cloud Infrastructure
https://cloud.oracle.com/cloud-infrastructure
Other
434 stars 183 forks source link

Update optional DB dependency from obsolete 'cx_Oracle' to 'oracledb' #782

Open cjbj opened 4 months ago

cjbj commented 4 months ago

The python-oracledb driver is the upgrade from cx_Oracle, see the release announcement. This was first released several years ago and it's past time for oci-cli to update, e.g. to update setup.py and change:

extras = {
    'db': ['cx_Oracle==8.3']
}

to:

extras = {
    'db': ['oracledb']
}

This new version of the driver for Oracle Database connectivity has various advantages, notably it doesn't require Oracle Client libraries to be installed.