Which system events can be used to create triggers that fire both at database and schema levels?

Which system events can be used to create triggers that fire both at database and schema levels?
(Choose all that apply)

Which system events can be used to create triggers that fire both at database and schema levels?
(Choose all that apply)

A.
AFTER LOGON

B.
AFTER STARTUP

C.
BEFORE SHUTDOWN

D.
AFTER SERVERERROR

Explanation:
http://docs.oracle.com/cd/E11882_01/appdev.112/e25519/create_trigger.htm#LNPLS2064



Leave a Reply 12

Your email address will not be published. Required fields are marked *


Uladzimir

Uladzimir

A, D

AFTER STATRUP, BEFORE SHUTDOWN can be created only on DATABASE LEVEL.
it seems to be a logical question…

Fabio

Fabio

this means that a after logon trigger fires two times?

Alisa

Alisa

STARTUP and SHUTDOWN are valid system events only with DATABASE, not SCHEMA

Jen

Jen

System Event Trigger Types
AFTER LOGON
BEFORE LOGOFF
AFTER LOGON

AFTER SERVERERROR
AFTER SERVERERROR triggers fire after an Oracle error is raised

AFTER SERVERERROR

Causes the database to fire the trigger whenever both of these conditions are true:
A server error message is logged.
Oracle relational database management system (RDBMS) determines that it is safe to fire error triggers.
Examples of when it is unsafe to fire error triggers include:
RDBMS is starting up.
A critical error has occurred.

Leo Yu

Leo Yu

help: can servererror can have one WHEN clause like “WHEN is_servererror(012345)”?