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


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

Re: [Python-de] Oracle ansprechend

From Thomas Güttler <guettliml@thomas-guettler.de>
Newsgroups de.comp.lang.python
Subject Re: [Python-de] Oracle ansprechend
Date 2017-03-29 11:34 +0200
Message-ID <mailman.117.1490780063.2634.python-de@python.org> (permalink)
References <d96551a8-7391-6417-6b48-9eac69c8bde5@thomas-guettler.de> <2b817542-217c-e6da-4b7e-770db667d2ec@inqbus.de> <ecfa98e0-eac7-1a77-dfdb-073ef866e212@thomas-guettler.de>

Show all headers | View raw



Am 28.03.2017 um 14:50 schrieb Dr. Volker Jaenisch:
> Servus Thomas!

Servus Volker,

danke für den Hinweis.

Ich hatte riesiges Glück: Ich habe gestern **nicht** damit angefangen.

Heute nochmal telefoniert ... Es wird bald von Oracle auf MS-SQL umgestiegen.

Dann wird es vermutlich eine http Schnittstelle geben.

Super. Manchmal hilft nichts-tun und heulen :-)

Gruß,
   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
>

-- 
Thomas Guettler http://www.thomas-guettler.de/

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


Thread

Re: [Python-de] Oracle ansprechend Thomas Güttler <guettliml@thomas-guettler.de> - 2017-03-29 11:34 +0200

csiph-web