K
K
Kvert0072014-04-14 09:38:13
Oracle
Kvert007, 2014-04-14 09:38:13

Why doesn't raise_application_error work correctly?

Hello, in the trigger I use a line raise_application_error(-20500,'Keep out!');to break the connection ... but after the trigger works, I get

Ora-00604: error occureed at recursive SQL Level 1
Ora-20500: Keep out!
Ora-06512: at line 63

What could be wrong?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
O
onehell, 2014-10-20
@onehell

The mistake is in the question. By itself, raise_application_error does not know how to break connections, this is done on the client side. Those. you need to execute Connection::close() or something like that when you get sqlerror -20500, depends on.

G
Geny, 2014-04-15
@Geny

Is there a trigger text?

B
bay73, 2014-06-06
@bay73

What is your trigger? What makes you think that raise_application_error should terminate the connection?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question