Triggers - stopped working

DBA Geral (instalação, configuração do banco, scripts do Sql*Plus, shell scripts, batch scripts, etc...)
Post Reply
fbarros300472
Rank: Analista Júnior
Rank: Analista Júnior
Posts: 73
Joined: Thu, 21 Sep 2006 10:13 am
Location: sp

Environment Information:
* Oracle version: 10 g
* Operating system: Linux


Good morning everyone!

The triggers I have on a database simply stopped working .... very strange. Would anyone have an idea of ??what it can be?
User avatar
dr_gori
Moderador
Moderador
Posts: 5026
Joined: Mon, 03 May 2004 3:08 pm
Location: Portland, OR USA
Contact:
Thomas F. G

Você já respondeu a dúvida de alguém hoje?
https://glufke.net/oracle/search.php?search_id=unanswered

Are triggers disabled?

Select all

SQL> select status, count(*) 
  2  from all_triggers 
  3  group by status 
  4  / 
 
STATUS     COUNT(*) 
-------- ---------- 
DISABLED         61 
ENABLED        3196 
 
SQL> 
fbarros300472
Rank: Analista Júnior
Rank: Analista Júnior
Posts: 73
Joined: Thu, 21 Sep 2006 10:13 am
Location: sp

They are all enabled. This is strange.
fbarros300472
Rank: Analista Júnior
Rank: Analista Júnior
Posts: 73
Joined: Thu, 21 Sep 2006 10:13 am
Location: sp

And there guys, no one has a tip .... please.
luptak
Rank: Estagiário Pleno
Rank: Estagiário Pleno
Posts: 5
Joined: Thu, 25 Sep 2008 8:54 am
Location: Esteio - RS
Contact:
DBA Oracle

Dude ... It may seem half a beast, but checks if all today tables exist or if the Owners are right ...
Was there any change in these triggers?
elidias7
Rank: Analista Sênior
Rank: Analista Sênior
Posts: 153
Joined: Thu, 01 Nov 2007 2:53 pm
Location: Osasco
Eli Dias
Oracle Certified Professional

Good afternoon.

Another guess, are not invalid, refer to DBA_Objects

Hugs,
luptak
Rank: Estagiário Pleno
Rank: Estagiário Pleno
Posts: 5
Joined: Thu, 25 Sep 2008 8:54 am
Location: Esteio - RS
Contact:
DBA Oracle

Exactly ... I just came across the same situation.

Select all

select * from dba_objects where object_type = 'TRIGGER';
fbarros300472
Rank: Analista Júnior
Rank: Analista Júnior
Posts: 73
Joined: Thu, 21 Sep 2006 10:13 am
Location: sp

Because it's personal, I did the Select, but it's all ok ..... I'll do a drop of them and generate them again ..... anyway thank you very much the availability of you in helping me .... so to finish, I give back ... Thanks.
fbarros300472
Rank: Analista Júnior
Rank: Analista Júnior
Posts: 73
Joined: Thu, 21 Sep 2006 10:13 am
Location: sp

Good Morning !
Deleted and I created again ..... They do not work ... Someone please would have any suggestions to that?

Thanks.
User avatar
dr_gori
Moderador
Moderador
Posts: 5026
Joined: Mon, 03 May 2004 3:08 pm
Location: Portland, OR USA
Contact:
Thomas F. G

Você já respondeu a dúvida de alguém hoje?
https://glufke.net/oracle/search.php?search_id=unanswered

There goes an idea:
* has already happened to have more than one trigger of the same type in the same table. Hence he gave some kind of "conflict" that he did not perform the others. The solution was to join the triggers of the same type in a single trigger ... (I do not know if this is happening there)

face ... sincerely, I never heard of it before, from trigger Stop working. :-(

Have you tried to make a zero trigger for testing? Type:
* Creates a table any
* Creates a trigger in this table with some code Easy to track ...

Then see if in a common table, it's working ... because you said that on the bench all triggers stopped working ... Take the test with one!

Something like this:

Select all

SQL> create table thomas (campo varchar2(100)); 
 
Table created. 
 
SQL> create trigger trg_thomas after insert on thomas FOR EACH ROW 
  2  begin 
  3    dbms_output.put_line('***chegou aqui***'); 
  4  end; 
  5  / 
 
Trigger created. 
 
SQL> set serveroutput on 
SQL> insert into thomas values ('teste'); 
***chegou aqui*** 
 
1 row created. 
 
SQL> 
Then shows us what happens in the same situation!
:?
luptak
Rank: Estagiário Pleno
Rank: Estagiário Pleno
Posts: 5
Joined: Thu, 25 Sep 2008 8:54 am
Location: Esteio - RS
Contact:
DBA Oracle

or will recreando one to one and testing individually
fbarros300472
Rank: Analista Júnior
Rank: Analista Júnior
Posts: 73
Joined: Thu, 21 Sep 2006 10:13 am
Location: sp

Good afternoon people !

I was able to solve the problem ..... I had a condition that was not being taken care of and because of that she was going straight. I did not quite understand why, but I'm working on it. I wanted to thank you very much for the help that gave me ......

Valeu even personal !!!!!!!!!!!
Post Reply
  • Information
  • Who is online

    Users browsing this forum: No registered users and 1 guest