Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>I addition to @froZieglers answer. When I came along the <code>cx_Oracle</code> page there was no "...Unicode..."-Variant to download anymore. Luckily compiling it myself from source was not a big a hassle then I expected.</p> <p>Here a summary about what I did (Ubuntu 12.04 LTS, 64bit):</p> <ul> <li>install the proper <strong>Oracle XE client rpm</strong> with alien (11g, 64bit, etc...) <ul> <li>it installs th <code>/u01/...</code>, I had to adjust <code>.profile</code> too, of course.</li> </ul></li> <li><a href="http://cx-oracle.sourceforge.net/" rel="nofollow">download</a> <strong>cx_Oracle source-tar</strong>, untar, cd into <ul> <li>I did the <code>ln -s</code> command on the so-lib on Oracle, as said in <code>BUILD</code> text file</li> </ul></li> <li>Install <strong>Python headers</strong> with <code>sudo aptitude install python-dev</code></li> <li><strong>Compile</strong> with <code>python setup.py build</code></li> <li><strong>Install</strong> with <code>sudo python setup.by install</code> <ul> <li>First try <em>failed</em> with <code>distutils.errors.DistutilsSetupError: cannot locate an Oracle software installation</code></li> <li>patched <code>setup.py</code> with setting <code>userOracleHome = "/u01/app/oracle/product/11.2.0/xe"</code> after <code>os.getenv("ORACLE_HOME")</code></li> <li><code>sudo python setup.by install</code> then worked</li> </ul></li> <li><strong>Check</strong> with <code>python -c 'import cx_Oracle'</code> succeeded.</li> </ul>
 

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