Which two clauses should be used to fill in the blanks and complete the above code?

You want to maintain an audit of the date and time when each user of the database logs off.
Examine the following code:

Which two clauses should be used to fill in the blanks and complete the above code?
(Choose two.)

You want to maintain an audit of the date and time when each user of the database logs off.
Examine the following code:

Which two clauses should be used to fill in the blanks and complete the above code?
(Choose two.)

A.
ON SCHEMA

B.
ON QRXABASE

C.
AFTER LOGOFF

D.
BEFORE LOGOFF



Leave a Reply 15

Your email address will not be published. Required fields are marked *


Tr

Tr

create or replace trigger tr_logoff
before logoff on database
begin
insert into log_trail values (user, sysdate, ‘LOGOFF’);
commit;
end tr_logon;

vladimir

vladimir

A, D

sanjit

sanjit

correct ans B,D

Tr

Tr

B D, because A on schema logs only this schema logoffs

Uladzimir

Uladzimir

Tricky question i can say, i asked the same question on forum, and they said me ‘do not try to understand this exam, just pass it…’

You can create trigger for each schema and then you can log every user (but also can create one on database level that is more convenient)

andres salazar lopez

andres salazar lopez

I have a question, the answers are the same simulator that appear on the test ?, well they are incorrect ?

Uladzimir

Uladzimir

B, D

Agree with you

Jen

Jen

each user of the database logs off ==> on database

juzz4fun

juzz4fun

To my understanding, users logs on/logs off from their schema, not database. So this should be a schema trigger.
Database triggers can report startup/shutdown of database.
Ans: A, D