Php script ORA-24374 hatası

2 Cevap php

Ben komut dosyası çalıştırmak çalıştığınızda

      PutEnv("TNS_ADMIN='C:\\Programy\\OracleDeveloper10g\\NETWORK\\ADMIN\\'");
      $conn = oci_connect(user, pass, dbstring);
      if (!$conn)
      {
        $e = oci_error();
        print htmlentities($e['message']);
        exit;
      }
      else
      {
        $stmt = OCIParse($conn, "SELECT * FROM USERS WHERE username = 'szymon'");
        OCIExecute($stmt, OCI_DEFAULT);
  while ($row = oci_fetch_array($stmt, OCI_ASSOC+OCI_RETURN_NULLS)) {
  foreach ($row as $item) {
   $password = $item;
  }
        if ($password != $_POST['password']){
          $stmt = OCIParse($conn, "EXECUTE clr_dtbs");
          $message = 'Tabele zostały usunięte';
        }
        else {
          $message = 'Podane hasło jest niepoprawne';
        }
      }
   }

ORA-24374 hatası alıyorum.

2 Cevap

oci_parse yerine OCIParse kullanmayı deneyin. Ve oci_execute yerine OCIExecute.

Ayrıca, oci_parse ve oci_execute tarafından döndürülen hata kodları için kontrol edebilirim.

Ben, yok bu forum mesajı size yardımcı Oracle API dışarı kullanarak (ve değil) için kullanılan değilim rağmen?

http://codeigniter.com/forums/viewthread/103309/#521988