FA 4 Flashcards
The package specification should contain the subprogram ________ and associated parameters terminated by a semicolon.
NAME
The OR REPLACE options _______ and re-creates the package specification.
DROPS
The implementation (i.e., the detailed code) of a procedure or function that is declared in a ________ is done in the package body.
PACKAGE SPECIFICATION
(T OR F) A package is considered as a database Object.
TRUE
(T OR F) All constructs declared in the package specification are automatically private constructs.
TRUE
(T OR F) Since triggers are never explicitly invoked, they cannot receive parameters.
To create triggers in other user’s schemas, you need the CREATE TRIGGER privilege.
FALSE (CREATE ANY TRIGGER)
A _____ trigger execute automatically whenever a data event or a system event occurs.
DATABASE
The_________ allow specified actions to be performed automatically within the database, without having to write extra application code.
TRIGGER
The ____ trigger timing executes the trigger body after the triggering DML event on a table.
AFTER
The conditional predicates are: _______, DELETING, UPDATING.
INSERTING
The ________trigger is the default type of DML trigger.
STATEMENT TRIGGER
Event determines which DML operation causes the trigger to fire. Values are DELETE, UPDATE [OF column], and ______.
INSERT
The ________ keywords are automatically declared Boolean variables which are set to TRUE or FALSE by the Oracle server. These keywords maybe used in the trigger body instead of UPDATE, INSERT, DELETE.
TRIGGER
(T OR F) A statement-level trigger fires once for each row affected by the triggering DML statement, either just BEFORE the row is processed or just AFTER.
FALSE (ROW TRIGGER)
(T OR F) A DML trigger is a database trigger.
TRUE
(T OR F) A DML trigger may have more than one triggering event.
TRUE
(T OR F) TCL statement is allowed in triggers.
FALSE
(T OR F) The following determines when a DML trigger will execute: BEFORE, AFTER, INSTEAD.
TRUE
(T OR F) DDL Triggers can either be ON DATABASE or ON SCHEMA
TRUE
(T OR F) The EXECUTE is a statement is used to invoke procedure in a trigger.
FALSE
(T OR F) The use INSTEAD OF with Database Event triggers is possible.
TRUE
(T OR F) A ON SCHEMA fires the trigger for DDL on all schemas in the database.
FALSE (ON DATABASE)
(T OR F) You cannot create a DDL trigger that refers to a specific database object.
TRUE
The ______ triggers can either be ON DATABASE or ON SCHEMA.
DML