Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>The alternate way, that doesn't require RPMs. You need to be <code>root</code>.</p> <ol> <li><p><strong>Dependencies</strong></p> <p>Install the following packages:</p> <pre><code>apt-get install python-dev build-essential libaio1 </code></pre></li> <li><p><strong>Download <em>Instant Client for Linux x86-64</em></strong></p> <p>Download the following files from Oracle's <a href="http://www.oracle.com/technetwork/database/features/instant-client/index-097480.html" rel="noreferrer">download site</a>:</p> <p><a href="https://i.stack.imgur.com/b4K8q.png" rel="noreferrer"><img src="https://i.stack.imgur.com/b4K8q.png" alt="files preview"></a></p></li> <li><p><strong>Extract the zip files</strong></p> <p>Unzip the downloaded zip files to some directory, I'm using: </p> <pre><code>/opt/ora/ </code></pre></li> <li><p><strong>Add environment variables</strong></p> <p>Create a file in <code>/etc/profile.d/oracle.sh</code> that includes</p> <pre><code>export ORACLE_HOME=/opt/ora/instantclient_11_2 export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ORACLE_HOME </code></pre> <p>Create a file in <code>/etc/ld.so.conf.d/oracle.conf</code> that includes</p> <pre><code>/opt/ora/instantclient_11_2 </code></pre> <p>Execute the following command</p> <pre><code>sudo ldconfig </code></pre> <p><em>Note: you may need to reboot to apply settings</em></p></li> <li><p><strong>Create a symlink</strong></p> <pre><code>cd $ORACLE_HOME ln -s libclntsh.so.11.1 libclntsh.so </code></pre></li> <li><p><strong>Install <code>cx_Oracle</code> python package</strong></p> <ul> <li><p>You may install using <code>pip</code> </p> <pre><code>pip install cx_Oracle </code></pre></li> <li><p>Or install manually</p> <p>Download the <a href="http://cx-oracle.sourceforge.net/" rel="noreferrer">cx_Oracle source zip</a> that corresponds with your Python and Oracle version. Then expand the archive, and run from the extracted directory:</p> <pre><code>python setup.py build python setup.py install </code></pre></li> </ul></li> </ol>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload