Today I had to install TOra with Oracle support. That was interesting. TOra is on the Synaptic list, but if you install it from there you only get PostgreSQL support. For anything else you need to build TOra from source. Instructions are here, courtesy of Brad Hudson. Follow them. In particular, do not skip installing the prerequisite packages on his list. Use his code to get them all in one step.

You also need to download the Oracle Instant Client. Download all three rpm files -- basiclite, devel and sqlplus -- not just the first. You do need all three. Finally, the ./configure [...] line in debian/rules took some fiddling. I read this post by Arun Mallikarjunan and, emboldened, I tried a few variations of my own. This is what worked:


./configure --prefix=/usr --with-oracle=/usr/lib/oracle/11.2/client
--with-instantclient --without-rpath --disable-new-check --without-kde
--with-oracle-includes=/usr/include/oracle/11.2/client
--with-oracle-libraries=/usr/lib/oracle/11.2/client/lib --enable-libsuffix=


The above is all on one long line. Incidentally, Arun commented here that in addition to the prerequisites Brad listed, you need a few others. Brad disagreed here. He is right that the extra packages on Arun's list not are required. But if you install them, you also get MySQL and ODBC support enabled, so I did. One time last year I had to odbc load some data from a MySQL database into Stata (I found help for that here) and I figured the need might come up again. Finally, I cleaned up after myself with help from here.