错误:
python 使用cx_Oracle需要配置环境变量
For Linux
1.Go to the Oracle Instant Client Downloads page:
下载oracle client库文件
Oracle Instant Client Downloads
2.Download the desired Oracle Instant Client zip files. Select the correct platform, architecture, and packages of your choice. For example, if your application is 64-bit, then ensure that you select 64-bit Instant Client and download the Basic Package zip file.
All installations require a Basic or Basic Light package. All other packages are optional.
3.Unzip each zip file into a single directory such as /opt/oracle/instantclient_21_1
that is accessible to your application. For example, for Linux x86-64:
用vim打开.bashrc文件,把路径配置好,wq保存退出。