What are triggers?Where are they used?

Answer Posted / vamsi krishna

triggers are the named pl/sql blocks which are executed
automatically at the specified events.the event at which
triggers are executed is called as the triggering
event.there are 3 types of triggers
(i) dml triggers:
these triggers are executed either before or after any dml
events(i.e insert or update or delete)
(ii) ddl triggers:
these triggers are executed either before or after any ddl
events(i.e create or alter or rename or truncate or drop)
(iii) database triggers
these trigger are executed either before or after any
database events(i.e logon or logoff or startup or shutdown)
database triggers can be created only by user having dba
privileges.
using triggers we can perform the following operations
(i) auto managing of data
(ii) auditing of data
(iii) auditing of events
(iv)defining of validations

Is This Answer Correct ?    4 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the use of grant option in imp command.

564


HI, Please let me know the syllabus for Oracle OCA and OCP Certification

1943


What happens if you set the sga too low in oracle?

544


What are the different types of partitions in oracle?

488


Can we convert a date to char in oracle and if so, what would be the syntax?

543






How to define an oracle sub procedure?

588


How to use regular expression in pattern match conditions in oracle?

566


What is oracle host variable?

530


State and explain about oracle instance?

534


State and explain the different types of data models?

525


How does Oracle guarantee data integrity of data changes?

1928


Compare and contrast between sql and sql server and explain its various functions?

519


How many data types are supported?

610


What is proxy method?

534


What is ASM (Automatic Storage Management) in Oracle?

703