Forum und email

Ora_Error

(PHP 4, PHP 5 <= 5.0.5)

Ora_Error — Returnează un mesaj de eroare Oracle

Descriere

string Ora_Error ( int $cursor_or_connection )

Returnează un mesaj de eroare în formatul XXX-NNNNN unde XXX reprezintă sursa mesajului de eroare iar NNNNN identifică mesajul de eroare.

Notă: Identificatorii de conexiuni sunt acceptaţi începând cu versiunea PHP 3.0.4.

În versiunile UNIX pentru Oracle, detaliile despre o eroare apar sub forma următoare: $ 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