Проверьте эту ссылку на php.net
Функция, которая возвращает ошибку - oci_error ()
, чтобы цитировать с php.net
<code><?php
$stid = oci_parse($conn, "SELECT does_not_exist FROM dual");
$r = oci_execute($stid);
if (!$r) {
$e = oci_error($stid); // For oci_execute errors pass the statement handle
print htmlentities($e['message']);
print "\n<pre>\n";
print htmlentities($e['sqltext']);
printf("\n%".($e['offset']+1)."s", "^");
print "\n
\ n ";}?>