Sunday 10 June 2018

Trigger Details

A trigger is a PL/SQL block or a PL/SQL procedure associated with a table, view, schema, or the database. The triggers executes implicitly whenever a particular event takes place.

Type OF Trigger:

1. Application Trigger:
 Application triggers execute implicitly whenever a particular data manipulation language (DML) event occurs within an application (ex. Oracle Forms, Oracle Reports)

2. Database trigger: 
These triggers are fired whenever a data event (such as DML,DDL) or system event (such as logon or shutdown) occurs on a schema or database.

Advantages Of Database Trigger:

Improve Data Security:
  • Provide enhanced and complex security checks
  • Provide enhanced and complex auditing
Improve Data integrity:
  • Enforce dynamic data integrity constraints
  • Enforce complex referential integrity constraints
  • Ensure that related operations are performed together implicitly
Trigger Data Dictionary:
SELECT * FROM ALL_TRIGGERS;

No comments:

Post a Comment