Question
click below
click below
Question
Normal Size Small Size show me how
Database
Question | Answer |
---|---|
Each ________ is consists of a WHEN clause, which specifies an exception name. | EXCEPTION HANDLER |
You can use the RAISE_APPLICATION_ERROR procedure to return user-defined error messages from stored subprograms. | True |
There are 2 parameters needed in the pragma declaration of an exception. | True |
The NO_DATA_FOUND is a _______ exception. | PREDEFINED |
The %ROWTYPE can be used to declare a record based on another record. | True |
What is missing in line 3? | Nothing is missing |
The block below will display the country name and the area of each country in a chosen region. The region_id should be passed to the cursor as a parameter. The block is tested using region 5 (South America). | 1 |
What is missing in the given construct in order to remove an entire package? DROP ________ PACKAGE_NAME; | PACKAGE |
The following determines when a DML trigger will execute: BEFORE, AFTER, ________. | INSTEAD OF |
The ____ trigger timing executes the trigger body before the triggering DML event on a table. | BEFORE |
The conditional predicates are: _______, DELETING, UPDATING. | INSERTING |
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 ________trigger is the default type of DML trigger. | STATEMENT |
A DML trigger may have more than one triggering event. | TRUE |
The PREDICATE 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. | TRUE |
Which DDL statements cause a DDL trigger to fire? | CREATE, ALTER, DROP |
The ________ declared in the package specification are initialized to null by default. | VARIABLES |
The package body contains the executable code of the _________ which were declared in the package specification. It may also contain its own variable declarations. | SUBPROGRAMS |
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 |
TCL statement is allowed in triggers. | FALSE |
A DML trigger is a trigger that is automatically fired (executed) whenever an SQL DML statement (INSERT, UPDATE, or DELETE) is executed. | TRUE |
The EXECUTE is a statement is used to invoke procedure in a trigger. | FALSE |
A MUTATE table is an object that is currently being modified by a DML statement. | FALSE |
A ON DATABASE fires the trigger for DDL on all schemas in the database. | TRUE |
The ON SCHEMA cannot be used with ____________ events. | Shutdown and startup |
The __________ cannot be used with SHUTDOWN and STARTUP events. | ON SCHEMA |
A ________ fires the trigger for DDL on all schemas in the database. | ON DATABASE |
Every subprogram declared in the package specification must also be included in the _____. | PACKAGE BODY |
Package body contains only subprograms that are declared in the package specification. | FALSE |
The trigger body is written similar to anonymous block. | TRUE |
A _____ trigger execute automatically whenever a data event or a system event occurs. | SYSTEM |
The ____ trigger timing executes the trigger body after the triggering DML event on a table. | AFTER |
The _______ trigger fires only once for each execution of the triggering statement (even if no rows are affected). | STATEMENT |
A DML trigger may have more than one triggering event. | TRUE |
A DML trigger is a trigger that is automatically fired (executed) whenever an SQL DML statement (INSERT, UPDATE, or DELETE) is executed. | TRUE |
The ON SCHEMA fires the trigger only for your own sessions. | TRUE |
A row-level trigger must not query or modify a mutating table. | TRUE |
The ON SCHEMA cannot be used with SHUTDOWN and STARTUP events. | TRUE |
A ________trigger must not query or modify a mutating table. | ROW-LEVEL |
A ________ table is an object that is currently being modified by a DML statement. | MUTATING TABLE |
The _________ are fired by non-SQL events in the database. | Database Event Trigger |
The _____ is the interface to your applications that declares the constructs (procedures, functions, variables, and so on) which are visible to the calling environment. | PACKAGE SPECIFICATION |
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 |
Triggers can either be column-level or statement-level. | FALSE |
A ________ are triggers that are not part of the database. | APPLICATION |
DBA shutting down the database is a ______ event. | SYSTEM |
In creating trigger you need to consider the timing and _______. | EVENT |
DML Trigger is classified in two ways: when they execute, how they execute. | FALSE |
In creating trigger you need to consider the timing and event. | TRUE |
You specify a row trigger using FOR EACH ROW clause. | TRUE |
The ______ triggers can either be ON DATABASE or ON SCHEMA. | DDL |
The _______ is a statement is used to invoke procedure in a trigger. | CALL |
The OR REPLACE options _______ and re-creates the package specification. | DROPS |
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 |
One of the reason for using packages is encapsulation wherein related programs and variables are grouped together. | FALSE |
DBA shutting down the database is a system event. | TRUE |
To create triggers in other user’s schemas, you need to the __________ privilege. | ANY TRIGGER |
Which will view the detailed code and status of the trigger in data dictionary? | USER_TRIGGERS |
The following determines when a DML trigger will execute: BEFORE, AFTER, INSTEAD. | FALSE |
Inheritance refers to a two-part structure in which the detailed package body code is invisible to the calling environment, which can only see the. If changes to the code are needed, the bod | FALSE |
Triggers can either be row-level or statement-level. | TRUE |
Which will not cause a trigger to fire? | Not in the options |
Trigger executes ________ whenever the associated action occurs. | Implicitly |
Event determines which DML operation causes the trigger to fire. Values are INSERT, UPDATE [OF column], and ______. | DELETE |
You specify a row trigger using FOR ROW clause. | TRUE |
Exception section is not allowed in triggers. | FALSE |
Event determines which DML operation causes the trigger to fire. Values are INSERT, UPDATE [OF column], and DELETE. | 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 |
DDL Triggers can either be ON DATABASE or ON SCHEMA. | TRUE |
You cannot create a DDL trigger that refers to a specific database object. | TRUE |
DML Triggers can either be ON DATABASE or ON SCHEMA.  | TRUE |
The Database Event Trigger are fired by non-SQL events in the database. | TRUE |
Which trigger is applicable in the following scenario: The DBA starts up, or shuts down, the database. | Database Event Trigger |
The ON SCHEMA fires the trigger only for _______ sessions. | own |
What is missing in the given package body construct? CREATE [OR REPLACE] PACKAGE package_name IS|AS private type and variable declarations subprogram bodies [BEGIN initialization statements] END [package_name]; | BODY |
A DATA trigger execute automatically whenever a data event or a system event occurs. | FALSE |
TCL are not allowed in triggers. | TRUE |
The_________ allow specified actions to be performed automatically within the database, without having to write extra application code. | TRIGGER |
Database triggers execute automatically whenever a data event such as _______ occurs. | DML, DDL |
A _______ triggers execute whenever a particular event occurs within an application. | APPLICATION |
You specify a row trigger using __________clause. | FOR EACH ROW |
A _______ trigger is a trigger that is automatically fired (executed) whenever an SQL DML statement (INSERT, UPDATE, or DELETE) is executed. | DML |
The row trigger is the default type of DML trigger. | FALSE |
A DML trigger is a database trigger. | TRUE |
The given trigger header below contains no error. CREATE OR REPLACE TRIGGER emp_del_trigg AFTER DELETE ON employees BEGIN <assume valid PL/SQL statements here> END; | TRUE |
The CALL is a statement is used to invoke procedure in a trigger. | TRUE |
The database triggers are fired by non-SQL events in the database. | FALSE |
A row trigger may SELECT from a mutating table. | FALSE |
A statement trigger cannot SELECT from a mutating table. | FALSE |
An ON DATABASE fires the trigger for ____ on all schemas in the database. | DDL |