ora_error

(PHP 3, PHP 4, PHP 5 <= 5.1.0RC1)

ora_error -- Oracleエラーメッセージの取得

説明

string ora_error ( [resource 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