Hallo,
ich habe hier ein Problem, mit dem ich nicht klar kommen.
Ich habe eine Oracledatenbank die ich mit PHP abfrage.
Das hat bis jetzt prima funktioniert - bis ich die neue Version von XAMPP (jetzt 1.7.1 vorher 1.5) eingespielt habe (weil ich die neue PHP-Version gebraucht habe).
Jetzt das Problem: Ich komme nun nicht mehr auf die Oracledatenbank!
In der php.ini habe ich den oci8 aktiviert - das seh ich auch in der phpinfo
Der Datenbankzugriff erfolgt über:
Restart usw. habe ich auch schon hinter mir.
Die Datenbank selbst funktioniert - komme mit PLSQL problemlos drauf.
Die Sripte sind auch OK - haben ja vor zwei Stunden noch funktioniert.
ich habe hier ein Problem, mit dem ich nicht klar kommen.
Ich habe eine Oracledatenbank die ich mit PHP abfrage.
Das hat bis jetzt prima funktioniert - bis ich die neue Version von XAMPP (jetzt 1.7.1 vorher 1.5) eingespielt habe (weil ich die neue PHP-Version gebraucht habe).
Jetzt das Problem: Ich komme nun nicht mehr auf die Oracledatenbank!
PHP Code:
Warning: ocilogon() [function.ocilogon]: OCIEnvNlsCreate() failed. There is something wrong with your system - please check that PATH includes the directory with Oracle Instant Client libraries in D:\xampp\xampp\htdocs\neu\web\inc\Database.inc.php on line 6
Warning: ociparse() expects parameter 1 to be resource, boolean given in D:\xampp\xampp\htdocs\neu\web\inc\Database.inc.php on line 7
Warning: ociexecute() expects parameter 1 to be resource, null given in D:\xampp\xampp\htdocs\neu\web\inc\Database.inc.php on line 8
Warning: ocifetch() expects parameter 1 to be resource, null given in D:\xampp\xampp\htdocs\neu\web\login.php on line 33
Warning: ociresult() expects parameter 1 to be resource, null given in D:\xampp\xampp\htdocs\neu\web\login.php on line 37
Code:
OCI8 Support enabled Version 1.2.5 Revision $Revision: 1.269.2.16.2.44 $ Active Persistent Connections 0 Active Connections 0 Temporary Lob support enabled Collections support enabled
PHP Code:
<?php
$conn;
function GetData($SqlQuery)
{
$conn = OCILogon("dienst", "PW", "dienst");
$st = OCIParse($conn, $SqlQuery);
OCIExecute($st);
return $st ;
}
?>
Die Datenbank selbst funktioniert - komme mit PLSQL problemlos drauf.
Die Sripte sind auch OK - haben ja vor zwei Stunden noch funktioniert.
Comment