Triggers Sequence

DBA Geral (instalação, configuração do banco, scripts do Sql*Plus, shell scripts, batch scripts, etc...)
Post Reply
Trevisolli
Moderador
Moderador
Posts: 2016
Joined: Wed, 12 Jan 2005 3:25 pm
Location: Araraquara - SP
Abraço,

Trevisolli
OCA Oracle PL/SQL Developer Certified Associate
OCP Oracle Forms Developer Certified Professional
Araraquara-SP

Environment information:
* Oracle version: 10.2.0.3.0
* Operating system: Windows Server

Personal, good afternoon.

with a cruel doubt, but, I never came across the situation and, as I was asked, I decided to pass on to the experts here:

:
I have 07 triggers on a table.

Doubt:
What are the sight of these triggers, assuming two of them (or more), are Before Insert?

Is the creation order of the trigger? How does the bank interpret this situation?

Thank you very much.
gilbertoca
Rank: DBA Sênior
Rank: DBA Sênior
Posts: 372
Joined: Tue, 24 Jan 2006 3:33 pm
Location: Palmas - TO
Contact:

Boy, Good Question! rs rs
So far I have not had this need, to know the sequence of triggers.
But the documentation is very good:
Running of triggers: http://download.oracle.com/docs/cd/B193 ... m#CNCPT418
Order: http://download.oracle.com/docs/cd/B193 ... sthref1179
Update:
Not to be without a complete response:

Oracle Fires Multiple Triggers in An Unspecified, Random Order, IF More Than One Trigger Of The Same Type Exists Given Statement; That is, Triggers of the Same Type for the Same Statement ARE NOT LEARANTED TO FIRE IN ANY SPECIFIC ORDER .
Gilberto
Last edited by gilbertoca on Thu, 24 Jul 2008 11:31 am, edited 1 time in total.
Trevisolli
Moderador
Moderador
Posts: 2016
Joined: Wed, 12 Jan 2005 3:25 pm
Location: Araraquara - SP
Abraço,

Trevisolli
OCA Oracle PL/SQL Developer Certified Associate
OCP Oracle Forms Developer Certified Professional
Araraquara-SP

Thanks again Gilberto.
Ball show the link.
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

From Oracle 11g it has to define the order of execution of the triggers: http://glufke.net/2009/05/14/execucao-o ... oracle11g/
: -O
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

If you are using the order in the execution of the triggers, you can consult through this query:

Select all

select 
  trigger_owner, 
  trigger_name, 
  referenced_trigger_owner, 
  referenced_trigger_name, 
  ordering_type 
from 
  dba_trigger_ordering;
Post Reply
  • Information
  • Who is online

    Users browsing this forum: Bing [Bot] and 1 guest