This blog has moved to
http://blog.matthias-reining.com

Die bestehenden Artikel bleiben vorerst alle bei blogspot. Neue Artikel veröffentliche ich allerdings nur noch auf http://blog.matthias-reining.com

Dienstag, 1. Juni 2010

PL/SQL Developer - Initialization error | Windws 7 - 64bit

Auf meinem neuen Windows 7 – 64bit System habe ich ein tolles Oracle 11g – 64bit installiert – Funzt perfekt!

Anschließend noch den PL/SQL Developer von  allroundautomations installiert und schon gingen die Probleme los…

Vorab: das Problem liegt daran, dass der PL/SQL Developer ein 32bit Programm ist und Probleme bei der Verwendung des 64bit Oracle Treibers (Client) hat.

Zuerst kam bei der Anmeldung folgender Fehler:

Initialization error
SQL*Net not properly installed

OracleHomeKey:
OracleHomeDir:

Nach etwas googlen bin ich auf Hinweis gekommen, bei denen man spezielle Registryeinträge ändern muss oder innerhalb vom PL/SQL Developer unter Tools/Preferences direkt Einstellungen vornehmen usw... Hat alles nichts geholfen L

Auf der Console habe ich dann mal manuell mein ORACLE_HOME Verzeichnis gesetzt. Das Ergebnis war nun folgende Fehlermeldung:

E:\PLSQL Developer>set ORACLE_HOME=E:\oracle\app\mre\product\11.2.0\dbhome_1
E:\PLSQL Developer>plsqldev.exe

Initialization error
Could not load „E:\oracle\app\mre\product\11.2.0\dbhome_1\bin\oci.dll“

OracleHomeyKey:
E:\oracle\app\mre\product\11.2.0\dbhome_1
Found: oci.dll
Using: E:\oracle\app\mre\product\11.2.0\dbhome_1\bin\oci.dll
LoadLibrary(E:\oracle\app\mre\product\11.2.0\dbhome_1\bin\oci.dll) returned 0

Geht also auch nicht L

Google hat bei eingeschränktere Suche irgendwie nur noch Seiten auf Chinesisch angezeigt (das Übersetzungstool von google funzt hier sehr cool!). Also bin ich so auf einer chinesischen Seite auf die 64bit / 32bit Oracle Client Problematik gestoßen. Anschließend habe ich dann gezeilt auf der Page von allroundautomations nach 64 bit gesucht und habe folgenden Treffer gefunden:


Ein passender Oracle Client muss also her!

Als erstes also einen Windows 32bit Oracle Client herunterladen – Ich habe mich hier für den Instant Client Version 11.2.0.1.0 entschieden.


Diesen kann man einfach entpacken und braucht keine extra Installation.

Anschließend müssen diese Parameter noch  im PL/SQL Developer bekannt gemacht werden.

Oracle/Preferences/Oracle/Connection
Oracle Home:  [leer lassen, dies wird durch das setzen der Environment Variable automatisch gezogen]
OCI library: E:\instantclient_11_2\oci.dll

Anschließend den PL/SQL Developer neu starten.

Jetzt kann der PL/SQL Developer wieder sauber seine Dienste mir zur Verfügung stellen J

2 Kommentare:

  1. Thanks. My Name is Jorge Marchesini:
    I reuse your recomendation but now I've new error message:
    Initialization error:
    Could not load "C:\oracle\11.2.0\client_1\bin\oci.dll" (this is a correct path)
    OracleHomeKey:
    OracleHomeDir: C:\oracle\11.2.0\client_1
    Found: oci.dll
    Using: C:\oracle\11.2.0\client_1\bin\oci.dll
    LoadLibrary(C:\oracle\11.2.0\client_1\bin\oci.dll) returned 0
    I'v Windows7. Oracle 32 client installed. SQLplus works OK! also sql/develope but PL/SQL does not work.
    (Sorry, I do not speak german)

    AntwortenLöschen
  2. Hello Jorge,
    the problem in this blog entry descripes the problem with Windows 7 64bit, Oracle 64bit and PL/SQL Developer.

    PL/SQL Develper is a 32bit application and need an 32bit oracle client.

    I have installed following 32bit Oracle client:

    http://www.oracle.com/technology/software/tech/oci/instantclient/htdocs/winsoft.html

    After install PL/SQL Deceloper need some information about this driver:
    PL/SQL Developer->Tools->Preferences

    Oracle->Connection

    It is important to set the OCI library to the path of your new 32bit client installation.

    It looks like that your path "C:\oracle\11.2.0\client_1\bin\oci.dll" is not this one.
    After client installation on my machine I have the directory instantclient_11_2 with oci.dll.

    good luck!

    AntwortenLöschen