Функции PHP »»» Функции Oracle(PHP 3, PHP 4, PHP 5)
Ora_Error - получает сообщение об ошибке Oracle.
Описание
string Ora_Error (int cursor_or_connection)
Возвращает сообщение об ошибке в форме
XXX-NNNNN, где XXX это место ошибки, а NNNNN идентифицирует сообщение об ошибке.
Примечание: поддержка id соединения была введена в 3.0.4.
В UNIX-версиях Oracle вы можете получить детали о сообщении об ошибке
примерно так:
$ 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