Announcement

Collapse
No announcement yet.

Felermeldung bei OCIlogon mit Oracle

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Felermeldung bei OCIlogon mit Oracle

    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!

    PHP Code:
    Warningocilogon() [function.ocilogon]: OCIEnvNlsCreate() failedThere 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 resourceboolean given in D:\xampp\xampp\htdocs\neu\web\inc\Database.inc.php on line 7

    Warning
    ociexecute() expects parameter 1 to be resourcenull given in D:\xampp\xampp\htdocs\neu\web\inc\Database.inc.php on line 8

    Warning
    ocifetch() expects parameter 1 to be resourcenull given in D:\xampp\xampp\htdocs\neu\web\login.php on line 33

    Warning
    ociresult() expects parameter 1 to be resourcenull given in D:\xampp\xampp\htdocs\neu\web\login.php on line 37 
    In der php.ini habe ich den oci8 aktiviert - das seh ich auch in der phpinfo

    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
    Der Datenbankzugriff erfolgt über:
    PHP Code:
    <?php
        $conn
    ;
        
        function 
    GetData($SqlQuery)
        {
            
    $conn OCILogon("dienst""PW""dienst");
            
    $st OCIParse($conn$SqlQuery);
            
    OCIExecute($st);    
                
            return 
    $st ;
        }
    ?>
    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.
    Vertipper könnt Ihr gerne behalten....
    Gruß löhni (www.loehni.de)

  • #2
    Hallo,
    vermutlich fehlen durch das Update im Webserver\Apache\Bin-Verzeichnis die DLLs des OCI Clients.
    kind regards

    Comment


    • #3
      Hier noch eine Info PHP 5.3 Upgrade notes
      - The PDO_OCI php_pdo_oci8.dll library (for use with Oracle version 8 client
      - libraries) is no longer being built. Instead, use php_pdo_oci.dll (note no '8')
      - with Oracle 10 or 11 client libraries. Connection to other database versions
      - is supported.

      Comment

      Working...
      X