Google

NAME="GENERATOR" CONTENT="Modular DocBook HTML Stylesheet Version 1.7">

Ora_Error

(PHP 3, PHP 4 )

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