PL/SQL Section 13 Quiz

1. Which command would you use to see if your triggers are enabled or disabled?

(1) Point

2. After the following SQL statement is executed, all the triggers on the DEPARTMENTS table will no longer fire, but will remain in the database. True or False?

ALTER TABLE departments DISABLE ALL TRIGGERS;


(1) Point

3. A user creates the following trigger:

CREATE OR REPLACE TRIGGER emp_trigg
AFTER DELETE ON employees
BEGIN
    ...
END;

The user now tries to drop the EMPLOYEES table. What happens?


(1) Point

4. The following objects have been created in a user's schema:
- A function FUNC1
- A package PACK1 which contains a public procedure PACKPROC and a private function PACKFUNC
- A trigger TRIGG1.
The procedure and functions each accept a single IN parameter of type NUMBER, and the functions return BOOLEANs. Which of the following calls to these objects (from an anonymous block) are correct? (Choose two.)

(1) Point

5. Which of the following best describes a database trigger?

(1) Point

 1. Which of the following could NOT be done by a database trigger?


(1) Point

2. Which of the following are good guidelines to follow when creating a database trigger? (Choose two.)

(1) Point

3. What type of database object would you create to write an auditing record automatically every time a user connects to the database?

(1) Point

4. Examine this code:

CREATE TRIGGER de_trigg
    -- Line A
BEGIN ...

Which of the following are NOT valid at Line A ? (Choose two.)


(1) Point

5. What is wrong with the following code?

CREATE TRIGGER call_trigg
AFTER LOGOFF ON SCHEMA
BEGIN
    CALL drop_proc;
END;


(1) Point

Komentar

Postingan populer dari blog ini

PL/SQL Section 5 Quiz

PL/SQL Section 14 Quiz