配置Oracle数据库连接
下载Oracle 客户端:https://pan.baidu.com/s/11iEY7BAOG9gjIgeGWdoZ5w
pip install cx_Oracle
mkdir -p /opt/oracle
cd /opt/oracle
unzip ../instantclient-basic-linux.x64-12.2.0.1.0.zip
yum install libaio
sh -c "echo /opt/oracle/instantclient_12_2 > /etc/ld.so.conf.d/oracle-instantclient.conf"
ldconfig
mkdir -p /opt/oracle/instantclient_12_2/network/admin
cd /opt/oracle/instantclient_12_2/network/admin
vi tnsnames.ora
#tnsnames.ora
orcl_dev =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 10.0.10.222)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = superset)
)
)