Link to home
Start Free TrialLog in
Avatar of anishtv
anishtv

asked on

trigger

what is the use of trigger in oracle database. where exactly it is used which occassions.
Avatar of slightwv (䄆 Netminder)
slightwv (䄆 Netminder)

What type of trigger?

There are system level and table level.  There are also "instead of" triggers for DML on views.

The online documentation is the best place to start:
http://docs.oracle.com/database/121/LNPLS/triggers.htm#LNPLS020
Too many uses to enumerate. It's used wherever the occasion calls for it. Frequently it is used in conjunction with a sequence to generate an identity.
ASKER CERTIFIED SOLUTION
Avatar of Sean Stuber
Sean Stuber

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Another important thing about trigger is that it slows down DML because for every DML Oracle has to invoke and execute Trigger code.
Avatar of anishtv

ASKER

Thanks