- Install Oracle XE from Oracle's own repository of .deb files
sudo apt-get install python-dev python-setuptools
sudo -E easy_install cx_Oracle
The -E flag carries your environment variables into your sudo session; if you omit it, you may get a
cannot locate an Oracle software installationerror.
>>> import cx_Oracle
>>> cnxn = cx_Oracle.connect('system/mysystempassword@xe')
>>> crsr = cnxn.cursor()
>>> crsr.execute('SELECT * FROM dual')
Thursday, June 12, 2008
cx_Oracle and Oracle XE on Ubuntu
Simplifying options have appeared since the last time I posted about installing cx_Oracle against Oracle XE on Ubuntu, so I thought I'd produce an updated, simplified summary.