Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > de.comp.lang.python > #4725

Re: [Python-de] Oracle ansprechend

From "Dr. Volker Jaenisch" <volker.jaenisch@inqbus.de>
Newsgroups de.comp.lang.python
Subject Re: [Python-de] Oracle ansprechend
Date 2017-03-28 14:50 +0200
Message-ID <mailman.102.1490705434.2634.python-de@python.org> (permalink)
References <d96551a8-7391-6417-6b48-9eac69c8bde5@thomas-guettler.de> <2b817542-217c-e6da-4b7e-770db667d2ec@inqbus.de>

Show all headers | View raw


Servus Thomas!


Am 28.03.2017 um 13:49 schrieb Thomas Güttler:
> Hallo,
>
> seit Jahren arbeite ich PostgreSQL und da bin ich nun etwas verwöhnt.
> Der psycopg2 Adapter ist überall verfügbar.
>
> Aber nun soll ich mich mit Oracle verbinden. Ich bekommt diese Meldung:
>
> (oracle-test)foo@host:~/tmp/oracle-test> pip install cx_Oracle
> Collecting cx-Oracle
>   Using cached cx_Oracle-5.3.tar.gz
>     Complete output from command python setup.py egg_info:
>     Traceback (most recent call last):
>       File "<string>", line 20, in <module>
>       File "/home/pypi/tmp/pip-build-aJfsPO/cx-Oracle/setup.py", line
> 174, in <module>
>         raise DistutilsSetupError("cannot locate an Oracle software " \
>     distutils.errors.DistutilsSetupError: cannot locate an Oracle
> software installation
Ja Oracle ist ein Krampf!

Ich habe Oracle den Instant-Client genommen:

http://www.oracle.com/technetwork/database/features/instant-client/index-097480.html

Dabei ist wichtig den Richtigen für die richtige DB-Version zu finden.
Die sind zwar abwärtskompatibel aber nur bedingt weit.

Dann müssen diese beiden Umgebungs-Variablen gesetzt werden:

export LD_LIBRARY_PATH=/opt/oracle/instantclient_10_2:$LD_LIBRARY_PATH
export PATH=/opt/oracle/instantclient_10_2:$PATH

Danach sollte cx-oracle über pip installierbar sein.

Beste Grüße

Volker

-- 
=========================================================
   inqbus Scientific Computing    Dr.  Volker Jaenisch
   Richard-Strauss-Straße 1       +49(08861) 690 474 0
   86956 Schongau-West            http://www.inqbus.de
=========================================================

Back to de.comp.lang.python | Previous | Next | Find similar


Thread

Re: [Python-de] Oracle ansprechend "Dr. Volker Jaenisch" <volker.jaenisch@inqbus.de> - 2017-03-28 14:50 +0200

csiph-web