Perl mit Oracle unter Windows

2006 Dezember 29

Für ein Webentwicklungsprojekt habe ich lokal den IIS und eine Oracle Datenbank (9i) laufen. Normalerweise ist diese Anwendung unter PHP entwickelt worden, einige Teile müssen jedoch in Perl programmiert werden.
Dazu installierte ich zunächst ActivePerl Paket von ActiveState und installierte danach über den Perl Packet Manager ppm das Paket Oracle.pm.
Von nun an funktionierte aber weder ein Datenbankzugriff über Perl, noch über PHP mehr reibungslos. Folgender Fehler trat auf:

Warning: ociplogon(): OCISessionBegin: ORA-12705: Cannot access NLS data files or invalid environment specified
in c:inetpubwwwrootutils.inc on line 13

Warning: ociplogon(): OCISessionBegin: ORA-12705: Cannot access NLS data files or invalid environment specified
in c:inetpubwwwrootutils.inc on line 13

Warning: Cannot modify header information – headers already sent by (output started at c:inetpubwwwrootutils.inc:13) in c:inetpubwwwrootstart.php on line 28

Warning: Cannot modify header information – headers already sent by (output started at c:inetpubwwwrootutils.inc:13) in c:inetpubwwwrootheader1.inc on line 22

Warning: Cannot modify header information – headers already sent by (output started at c:inetpubwwwrootutils.inc:13) in c:inetpubwwwrootheader1.inc on line 23

Warning: ociplogon(): OCISessionBegin: ORA-12705: Cannot access NLS data files or invalid environment specified
in c:inetpubwwwrootutils.inc on line 13

Die Lösung des Problems war dann das Setzen von zwei Systemvariablen:

NLS_LANG=AMERICAN_AMERICA.WE8MSWIN1252
ORA_HOME=C:oracleora92

Danach funktionierte der Oracle Datenbankzugriff aus Perl und PHP reibungslos.

One Response leave one →

Trackbacks & Pingbacks

  1. 12705 | www.goojagig.com

Leave a Reply

Note: You can use basic XHTML in your comments. Your email address will never be published.

Subscribe to this comment feed via RSS

This is a captcha-picture. It is used to prevent mass-access by robots. (see: www.captcha.net)

Du mußt die 5 Zeichen im Bild, (Zahlen von 0 - 9 und Buchstaben von A - F),
in das Feld eintragen und das Formular abschicken um den Download zu starten.

  

Ohje, das kann ich nicht lesen. Bitte, generiere mir eine