SQLERRM - 类似于其他错误类型的函数

时间:2012-08-09 23:03:41

标签: sql oracle function

这是this question的延续。

我的问题:我正在寻找像SQLERRM这样的函数,它会为我提供所有Oracle错误代码的说明。

this website,我找到了这个oracle错误类型列表:

AMD, AUD, CLS, DBV, DGM, DRG, EXP, IMG, IMP, KUP, LCD, LFI, LPX, LRM,
LSX, NCR, NID, NMP, NNC, NNF, NNL, NNO, NPL, NZE, O2F, O2I, O2U, OCI,
ORA-CODE, PCB, PCC, PLS, PLW, PRO, QSM, RMA, SQL, TNS, UDE, UDI, VID

我误解了某件事还是可能?

1 个答案:

答案 0 :(得分:1)

这样的东西
SQL> !oerr ora 04043
04043, 00000, “object %s does not exist”
// *Cause: An object name was specified that was not recognized by the system.
// There are several possible causes:
// – An invalid name for a table, view, sequence, procedure, function,
// package, or package body was entered. Since the system could not
// recognize the invalid name, it responded with the message that the
// named object does not exist.
// – An attempt was made to rename an index or a cluster, or some
// other object that cannot be renamed.
// *Action: Check the spelling of the named object and rerun the code. (Valid
// names of tables, views, functions, etc. can be listed by querying
// the data dictionary.)

这是Oracle中的错误查找实用程序。

Usage: oerr facility error

facility是任何错误类型,例如oraamd等,error是代码。但是您需要确保您具有所有已安装目录的访问权限。

This是您需要的PDF格式。