To me 4 or 5 are correct : )
A. They cannot include the WHEN clause.
-False Unless it's a part of Exception block
B. They must be created in an enabled state.
- False
C. They can be fired when a table is truncated.
- True
CREATE OR REPLACE TRIGGER truncate_trigger_after
AFTER TRUNCATE ON USER1.SCHEMA
BEGIN
RAISE_APPLICATION_ERROR (
num => -20000,
msg => 'Truncated');
END;
/
D. They fire only when a DDL statement is executed by the owner of the trigger.
- True per documentation
E. They can be fired either before or after a DDL statement executes.
- True see point C
F. They can be fired when a privilege is granted to a user.
- True GRANT is listed among DDL Events of System Trigger
CREATE OR REPLACE TRIGGER grant_trigger_after
AFTER GRANT ON USER1.SCHEMA
BEGIN
RAISE_APPLICATION_ERROR (
num => -20000,
msg => 'Granted');
END;
/
G. They must be created in a disabled state.
- False
A. They cannot include the WHEN clause.
DDL triggers cannot include the WHEN clause, as this clause is used for row-level triggers to define a condition that must be met before the trigger fires.
C. They can be fired when a table is truncated.
DDL triggers can be fired by a TRUNCATE statement, as this is a Data Definition Language (DDL) operation.
E. They can be fired either before or after a DDL statement executes.
DDL triggers can be created to fire either before or after a DDL statement is executed. This allows for various actions to be taken, such as logging or validating changes, depending on the specific DDL operation.
According to this documentation they can have a WHEN clause.
https://docs.oracle.com/en/database/oracle/oracle-database/19/lnpls/plsql-triggers.html#GUID-F6473AD0-75D2-4E36-8B15-F93F0B5A8B79
upvoted 2 times
...
...
Log in to ExamTopics
Sign in:
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
egznrd
Highly Voted 4 months, 3 weeks agoGoto10
Most Recent 7 months, 2 weeks agoTheOracleWasTaken
4 months, 3 weeks agoDiplomiraniZnalac
8 months, 3 weeks agoTheOracleWasTaken
4 months, 3 weeks ago