Oracle Discussion Forums
Welcome, Guest. Please login or register.
September 07, 2010
Home Help Search Login Register
News:


+  WebForums - OraclePassport
|-+  IT progamming - Oracle, Java, Unix, MySQL, Toad
| |-+  Oracle PL/SQL Questions
| | |-+  can you tell me the sequence of execution of trigger
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Go Down Send this topic Print
Author Topic: can you tell me the sequence of execution of trigger  (Read 894 times)
vivekmcm
Scout
****

Appreciate? +0/-0
Offline Offline

Posts: 119

Welcome!

« on: July 26, 2009 »

Hi
I have one table say test
there are 4 trigger
Before statement trigger
Before rowlevel trigger
After statement trigger
After rowlevel trigger

can you tell me the sequence of execution


iam getting following answer I though this is not right tell me right answer
Before rowlevel trigger
Before statement trigger
After rowlevel trigger
After statement trigger
Report to moderator   Logged
SalemH
Trainee
*

Appreciate? +0/-0
Offline Offline

Posts: 2

Welcome!

« Reply #1 on: September 10, 2009 »

Hi,

You cannot specify an execution order of triggers of the same type prior to oracle11G.

But, if you are using oracle11g, you can use the new feature which consists of the FOLLOWS-clause.

For more information, I had published a PL/SQL article  (in French) about the sequence of execution on this type of triggers.
Here is the link : http://salem-houali.developpez.com/tutoriels/oracle/declencheurs-lmd-dans-oracledatabase11g/

 :)
Report to moderator   Logged
SalemH
Trainee
*

Appreciate? +0/-0
Offline Offline

Posts: 2

Welcome!

« Reply #2 on: September 10, 2009 »

Hi,
If you want only the right order of the execution :

Before statement trigger
Before rowlevel trigger
After rowlevel trigger
After statement trigger

Report to moderator   Logged
Pages: [1] Go Up Send this topic Print 
« previous next »
 
Share this topic...
In a forum
(BBCode)
In a site/blog
(HTML)



Login with username, password and session length

Powered by MySQL Powered by PHP Powered by SMF 2.0 RC1.2 | SMF © 2006–2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
Page created in 0.137 seconds with 17 queries.