Go4Oracle

Member Login






Powered by CodeRevolts
You are here  :Home arrow Articles arrow PL/SQL arrow Whats Is Database Trigger
Whats Is Database Trigger E-mail
Written by Amal   

Whats is Database trigger

Database triggers is a consist os sql and plsq statement which is executed on an predefined event.Database triggers are stored as a database object in oracle.

Database triggers is an oracle objects which consist set of statement that is executed on a purticular event.The Statement is a PLSQL block or a combination of set of SQL command/statement and PLSQL Block.

The database triggers which are stored as an object is based on some base table(tables in oracle) where the events are predefined.The various events which are Predefined is all DMl (Data Manipulation Language) INSERT,DELETE UPDATE. The Trigger if created is invoked implicitly on the predefined event on which the database trigger is created.Several triggers will be executed simulataneouly if more than one triggers are defined for any TABLE for a purticular event.

Some developer on oracle do get confused with trigger in oracle forms and database triggers.Database triggers are like stored procedured but triggers in forms are statement which are executed.Eg When an operation clicks on a button in oracle forms 2 events can be executed for that purticular item(buttom) when_mouse_click and when_button_pressed. So the Plsql statement written for any of these trigger will be executes and this is not to be mixed up with database triggers.

 

Database triggers are created by using the using CREATE TRIGGER TRIGGERNAME DDL statement

Triggers are dropped by issuing Drop DDL statements.

Triggers created can be DISABLED by using ALTER TRIGGER COMMAND. A triggers which is disabled will not be executed but it exists as an object in the databases. a disabled trigger has to be Enabled again if the trigger is to be applied in operations.





Reddit!Del.icio.us!Google!Live!Facebook!Slashdot!Netscape!Technorati!StumbleUpon!Newsvine!Furl!Yahoo!Smarking!Ma.gnolia!Free social bookmarking plugins and extensions for Joomla! websites! title=
 
Next >
Register Now

Bookmark Us

 
 

Who's Online

No Users Online

Advertisement

Linux Indore - 2007

Hello, you either have JavaScript turned off or an old version of Macromedia's Flash Player. Get the latest flash player.

Most Commented Items

Files that control oracle inst
(1 comment)
Install Oacle 10G XE on linux
(1 comment)
ROWID OF A RECORD (PSUEDO COLU
(1 comment)
rownum a pseudocolumn
(1 comment)

Visitors Counter

mod_vvisit_countermod_vvisit_countermod_vvisit_countermod_vvisit_countermod_vvisit_countermod_vvisit_countermod_vvisit_counter
mod_vvisit_counterToday109
mod_vvisit_counterYesterday331
mod_vvisit_counterThis week1534
mod_vvisit_counterThis month2781
mod_vvisit_counterAll154652

Our Recommendations

Get Firefox browser!
Go to Google!Get a free mail account!Get The Gimp!Get Openoffice!Get Videolan!