ora_error
(PHP 4, PHP 5 <= 5.0.5)
ora_error — restituisce il messaggio di errore di Oracle
Descrizione
string ora_error
( int $cursor_or_connection
)
Restituisce un messaggio d'errore nella forma XXX-NNNNN dove XXX è la sorgente dell'errore e NNNNN identifica il messaggio d'errore.
Nota: Il supporto per gli id di connessione è stato aggiunto nella versione 3.0.4.
Nelle versioni UNIX di Oracle, è possibile ottenere i dettagli dell'errore
in questo modo:
$ oerr ora
00001
00001, 00000,
"unique constraint (%s.%s) violated" // *Cause: An update or insert
statement attempted to insert a duplicate key // For Trusted
ORACLE configured in DBMS MAC mode, you may see // this message
if a duplicate entry exists at a different level. // *Action: Either
remove the unique restriction or do not insert the key