oci_error
PHP 5, PHP 7, PHP 8, PECL OCI8 >= 1.1.0
oci_error - Returns the last error found
Example #1 Displaying the Oracle error message after a connection error
Example #2 Displaying the Oracle error message after a parsing error
Example #3 Displaying the Oracle error message, the problematic statement,
and the position of the problem of an execution error