FORMATIVE 4 Flashcards
The implementation (i.e., the detailed code) of a procedure or function that is declared in a (PACKAGE SPECIFICATION) is done in the package body.
True or False
True
The (PL/SQL PACKAGES) are containers that enable you to group together related PL/SQL subprograms, variables, cursors, and exceptions.
True or False
True
The OR REPLACE options (DROP) and re-creates the package specification.
True or False
True
The package specification can exist without the body, but the body cannot exist without the specification.
True or False
True
The package specification is the interface to your applications that declares the constructs (procedures, functions, variables, and so on) which are visible to the calling environment.
True or False
True
The USER_TRIGGERS is used to view the detailed code and status of the trigger in data dictionary.
True or False
True
Database triggers are created and stored in the database just like PL/SQL procedures, functions, and packages.
True or False
True
Which statement is used to enable a database trigger?
ALTER TABLE trigger_name enable
UPDATE TRIGGER trigger_name enable
ALTER TRIGGER trigger_name enable
ALTER TABLE TRIGGER trigger_name enable
ALTER TRIGGER trigger_name enable
To create triggers in other user’s schemas, you need to the __________ privilege.
CREATE ALTER TRIGGER
CREATE ANY TRIGGER
CREATE ALL TRIGGER
CREATE TRIGGER
CREATE ANY TRIGGER
Database triggers execute automatically whenever a data event such as _______ occurs.
DML
DDL, TCL
DML, TCL
DML, DDL
DML, DDL
You specify a row trigger using (FOR EACH ROW) clause.
True or False
True
A (ROW TRIGGER) fires once for each row affected by the triggering DML statement, either just BEFORE the row is processed or just AFTER.
True or False
True
Event determines which DML operation causes the trigger to fire. Values are DELETE, UPDATE [OF column], and (DELETE).
True or False
True
The conditional predicates are: (INSERTING), DELETING, UPDATING.
True or False
True
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.
True or False
False
The following determines when a DML trigger will execute: BEFORE, AFTER, INSTEAD.
True or False
False
TCL statement is allowed in triggers.
True or False
False
The ON DATABASE fires the trigger only for your own sessions.
True or False
False
The database event triggers are fired by non-SQL events in the database.
True or False
True
The _______ is a statement is used to invoke procedure in a trigger.
PERFORM
CALL
EXECUTE
DO
CALL
The EXECUTE is a statement is used to invoke procedure in a trigger.
True or False
False
A ON SCHEMA fires the trigger for DDL on all schemas in the database.
True or False
False
The ON SCHEMA fires the trigger only for _______ sessions.
All the options
OWN
OWN, OTHER
OTHER
OWN
Which DDL statements cause a DDL trigger to fire?
ALTER, DROP
CREATE, ALTER, DROP
CREATE, DROP
CREATE, ALTER
CREATE, ALTER