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
The __________ cannot be used with SHUTDOWN and STARTUP events.
ON SCHEMA
A ________trigger must not query or modify a mutating table.
STATEMENT-LEVEL
The ______ fires the trigger only for your own sessions.
ON SCHEMA
The _____ are containers that enable you to group together related PL/SQL subprograms, variables, cursors, and exceptions.
PL/SQL PACKAGES
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
What is missing in the given construct in order to remove an entire package?
DROP ________ PACKAGE_NAME;
PACKAGE
(T OR F) The OR REPLACE option deletes an existing package body.
FALSE
(T OR F) Variables declared in the package specification are initialized to NULL by default
TRUE
(T OR F) Triggers can either be row-level or statement-level.
TRUE
(T OR F) To create triggers in other users’ schemas, you need the CREATE ANY TRIGGER privilege
TRUE
To create triggers in other user’s schemas, you need to the __________ privilege.
CREATE ANY TRIGGER
Which will view the detailed code and status of the trigger in data dictionary?
USER_TRIGGERS
Which statement is used to enable a database trigger?
ALTER TRIGGER trigger_name enable
A ________ fires once for each row affected by the triggering DML statement, either just BEFORE the row is processed or just AFTER.
ROW TRIGGER
The following determines when a DML trigger will execute: BEFORE, AFTER, ________.
INSTEAD OF