ORA-20547 - 无法找到有关 Oracle 错误的信息 - 有任何参考资料吗?
ORA-20547 - can't find info on Oracle error - any references?
今天在 Oracle 19 服务器上有一个 PL/SQL 应用程序失败,错误代码为 ORA-20547。不幸的是,有问题的代码只转储 ORA 代码,它不提供 SQLERRM 值。 (开发人员所做的邪恶在他们之后生活...... :-)。我在网上搜索过,但没有找到有关此错误的任何信息。感谢任何信息、提示或参考。
从 20000 到 20999 的错误编号是 user-generated 个错误。
您将找不到它们的任何文档,因为您需要检查应用程序的源代码。
Defining Your Own Error Messages: Procedure RAISE_APPLICATION_ERROR
The procedure RAISE_APPLICATION_ERROR
lets you issue user-defined ORA- error messages from stored subprograms. That way, you can report errors to your application and avoid returning unhandled exceptions.
To call RAISE_APPLICATION_ERROR
, use the syntax
raise_application_error(
error_number, message[, {TRUE | FALSE}]);
where error_number
is a negative integer in the range -20000 .. -20999 and message is a character string up to 2048 bytes long. If the optional third parameter is TRUE, the error is placed on the stack of previous errors. If the parameter is FALSE
(the default), the error replaces all previous errors. RAISE_APPLICATION_ERROR
is part of package DBMS_STANDARD
, and as with package STANDARD
, you do not need to qualify references to it.
今天在 Oracle 19 服务器上有一个 PL/SQL 应用程序失败,错误代码为 ORA-20547。不幸的是,有问题的代码只转储 ORA 代码,它不提供 SQLERRM 值。 (开发人员所做的邪恶在他们之后生活...... :-)。我在网上搜索过,但没有找到有关此错误的任何信息。感谢任何信息、提示或参考。
从 20000 到 20999 的错误编号是 user-generated 个错误。
您将找不到它们的任何文档,因为您需要检查应用程序的源代码。
Defining Your Own Error Messages: Procedure
RAISE_APPLICATION_ERROR
The procedure
RAISE_APPLICATION_ERROR
lets you issue user-defined ORA- error messages from stored subprograms. That way, you can report errors to your application and avoid returning unhandled exceptions.To call
RAISE_APPLICATION_ERROR
, use the syntaxraise_application_error( error_number, message[, {TRUE | FALSE}]);
where
error_number
is a negative integer in the range -20000 .. -20999 and message is a character string up to 2048 bytes long. If the optional third parameter is TRUE, the error is placed on the stack of previous errors. If the parameter isFALSE
(the default), the error replaces all previous errors.RAISE_APPLICATION_ERROR
is part of packageDBMS_STANDARD
, and as with packageSTANDARD
, you do not need to qualify references to it.