superset data source management (2)

Add Oracle data source to superset,

System: Centos 7

Database: Oracle 11G

SuperSet:0.23.2

Before using the Oracle data source, you need to install the Oracle client on the server, then configure the environment variables of the dynamic library, then install the Python Oracle plug-in, and finally configure the URI of the data source through the superset console.

Step 1: Create an Oracle installation directory and extract the installation files

         

mkdir -p /opt/oracle
cd /opt/oracle
unzip linux.x64_11gR2_client.zip

Step 2: Install the libaio package

sudo yum install libaio

Step 3: Create a Runtime Connection for the Oracle Client

sudo sh -c "echo /opt/oracle/app/oracle/product/11.2.0/client_1 > /etc/ld.so.conf.d/oracle-instantclient.conf"
sudo ldconfig

Step 4: Configure dynamic link library environment variables

export LD_LIBRARY_PATH=/opt/oracle/app/oracle/product/11.2.0/client_1:$LD_LIBRARY_PATH

Step 5: Install Oracle's python plugin

   

pip install cx_Oracle

 Step 6: Add a data source through the console interface of SuperSet, and display "Seems OK!" through the test. The data source addition is complete!

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326200152&siteId=291194637