Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Regarding ORA 21000

I am struggling with an ORA 21000 which says ORA-21000: error number argument to raise_application_error of 3739 is out of range.

This error is coming intermittently. I am not sure why this is occurring. This worked absolutely fine earlier, but after migrating to Linux from Solaris, this error has suddenly come up. Googling it didn't help. Please help.

Thanks in Advance.

like image 612
Sid Avatar asked May 27 '10 05:05

Sid


People also ask

How do I fix error ORA 06512?

You could correct this error by redefining the v_number variable as number(3). SQL> CREATE OR REPLACE PROCEDURE TestProc 2 AS 3 v_number number(3); 4 BEGIN 5 v_number := 100; 6 END; 7 / Procedure created. And now when we execute our TestProc procedure, the ORA-06512 error has been resolved.

How do you increase application error in PL SQL?

The RAISE_APPLICATION_ERROR procedure accepts user-defined error-number values from -20000 to -20999. The SQLCODE that is returned in the error message is SQL0438N. The SQLSTATE contains class 'UD' plus three characters that correspond to the last three digits of the error-number value.


1 Answers

RAISE_APPLICATION_ERROR is a method by which an application can raise a custom error in Oracle, which is why there will be no documentation about your error message.

This procedure accepts an error number argument, which must be in the range -20000 to -20999. Looks like your application is trying to raise 3739 which is not allowed.

This is a defect in your application.

like image 133
Jeffrey Kemp Avatar answered Oct 10 '22 00:10

Jeffrey Kemp