Triggers in Oracle

In this course, we will explore, in-depth, the DML and System triggers available with Oracle. We will discuss the use cases and guidance for trigger usage.
Course info
Rating
(20)
Level
Intermediate
Updated
Oct 16, 2015
Duration
2h 45m
Table of contents
Overview
Understanding Triggers
Trigger Order & Compound Triggers
Handling Trigger Exceptions & Avoiding Mutating Table Error
Understanding Trigger Scope
Trigger Applications
Description
Course info
Rating
(20)
Level
Intermediate
Updated
Oct 16, 2015
Duration
2h 45m
Description

In this course, we will talk extensively about Triggers. Triggers help us centralize table validations at the lowest level along with providing support for auditing and logging. We will take an in-depth look at how to define triggers, trigger types, row level and statement level triggers, and mutating triggers. We will take an in-depth look at both DML triggers as well as System triggers. We will talk about Compound Triggers and look at various scenarios where triggers can be useful.

Course FAQ
Course FAQ
What are Oracle triggers?

Oracle triggers let you create procedures that are automatically executed when a specific action or event occurs. So if an INSERT, UPDATE, or DELETE statement is issued against a specific table, it will trigger a certain other procedure to be executed.

What types of triggers are available in Oracle?

There are 5 different types of Oracle triggers:

  1. Statement triggers: DML statements on a specific table/view
  2. Row triggers: executes for each row affected by a DML statement
  3. INSTEAD OF triggers: executes on views run rather than the issuing statement
  4. User event triggers: DDL statements like CREATE and ALTER, user LOGON, etc.
  5. System event triggers: database startup, shutdown, server erros, etc.
What will I learn in this course?

You will learn:

  • What Oracle triggers are and why use them
  • Row and Statement triggers
  • How to create triggers
  • Trigger dependencies
  • Trigger order and compound triggers
  • Trigger exceptions
  • Trigger scope
  • Trigger applications
  • Much more
What are the prerequisites to this course?

The only prerequisite for this course is to have some basic Oracle PL/SQL knowledge. Check out this course if you want a refresher, or if you still need to learn Oracle PL/SQL Fundamentals.

Who is this course for?

This course is for anyone who wants to learn how to set up triggers in Oracle; both DML triggers and system triggers. If you are an Oracle programmer, you will definitely find this course beneficial.

About the author
About the author

Experienced technologist, with expertise in various aspects of software development lifecycle, architecting software solutions and software development.

More from the author
Oracle REST Data Services
Beginner
5h 32m
Feb 13, 2018
Getting Productive with SQL Developer
Beginner
3h 54m
Apr 20, 2017
More courses by Pankaj Jain