By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,660 Members | 1,105 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,660 IT Pros & Developers. It's quick & easy.

FreeBSD + Python + Oracle

P: n/a
Hello python-list,
is anybody has any success in taking this components live together? I
need to access remote Oracle 9i from freebsd 6.2 machine using python
2.4.4. Thanks in advance for answer.
Nov 21 '06 #1
Share this Question
Share on Google+
1 Reply


P: n/a
On 2006-11-21, Vyacheslav Sotnikov <bs********@rambler.ruwrote:
is anybody has any success in taking this components live together? I
need to access remote Oracle 9i from freebsd 6.2 machine using python
2.4.4. Thanks in advance for answer.
Yes, I've done this before. You'll have to run Python on FreeBSD but
using the Linux ABI ("Linuxulator" or "Linux emulation"). It's a bit
of a pain to set up, but it works well after that.

The basic procedure is:

- Load the linux module and install the linux-base and -devtools ports

- Install the Linux Oracle client and get it working enough that you
can run sqlplus

- Compile Python for the Linux ABI (you'll have to install all the
appropriate linux libraries if you need extension modules like
gzip, readline, etc.)

- Compile the Oracle extension modules. I've successfully used
DCOracle2 and cx_Oracle in this scenario.

That should be it, but it's been a while since I had to do it and I
might've missed some steps.

All of the above is okay if you want to run FreeBSD because you like
FreeBSD; it doesn't help if you want to do it because you need to use
some library that's only available for FreeBSD. In that case, you can
probably manage some kind of IPC between Linux-Python-on-FreeBSD and
FreeBSD-Python-on-FreeBSD.
Nov 21 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.