Which two statements art true about the instead of triggers’ (choose two.)

Which two statements art true about the instead of triggers’ (choose two.)

Which two statements art true about the instead of triggers’ (choose two.)

A.
Delete operations cannot be performed using the instead of triggers.

B.
The instead or triggers must be created to add or modify data through any view.

C.
The instead of triggers can be written only for views, and the before and after timing options are not valid.

D.
The check option for views Is not enforced when Insertions or updates to the view are performed by using the instead of trigger.



Leave a Reply 22

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


bala

bala

answer is B and C

RM

RM

are you sure about B and C because before your message it was C and D

Ricardo Patrocínio

Ricardo Patrocínio

You can add or modify data in a view without using instead of triggers. B is not a correct option.

bala

bala

for this question answer is B and C

qaisarimtiaz

qaisarimtiaz

C & D are right answers.

Kidus

Kidus

C and D

The INSTEAD OF option can be used only for triggers defined on views.

The BEFORE and AFTER options cannot be used for triggers defined on views.

The CHECK option for views is not enforced when inserts or updates to the view are done using INSTEAD OF triggers. The INSTEAD OF trigger body must enforce the check.

Frederick Johnson

Frederick Johnson

D isn’t correct? Good grief. Yeah, like a VIEW will automatically enforce its CHECK constraints when the table gets modified at the table itself instead of through the VIEW, NOT !

Sergio

Sergio

About C, this is valid:

CREATE OR REPLACE TRIGGER instead_of_ddl
INSTEAD OF CREATE ON SCHEMA
BEGIN
NULL;
END;

The CREATE DDL event is the only DDL event that works with INSTEAD OF.
This violates: “The instead of triggers can be written only for views”

Regards

Leo Yu

Leo Yu

? some clarification

davor

davor

B is not correct. Tables behind simple views can be modified by DML statements.

dj

dj

c and d are correct

Michael

Michael

C D

Instead-of-triggers do NOT consider the “with check option”-clause of the view:

create or replace view emps_in_dept_10 as
select * from emp where deptno=10
WITH CHECK OPTION;

select empno from emps_in_dept_10;
7934
7782

update emps_in_dept_10 set deptno=20 where empno=7934;
… ORA-01402: … “view WITH CHECK OPTION where-clause violation” …

create or replace trigger tr_emps_in_dept_10
instead of update on emps_in_dept_10
begin
update emp set deptno=:new.deptno where empno=:new.empno;
end;

update emps_in_dept_10 set deptno=20 where empno=7934;
1 row affected

select empno from emps_in_dept_10;
7782

Leo Yu

Leo Yu

thanks Michael, nice explaination

Jay

Jay

Instead of triggers in oracle database are defined on views only

Uladzimir

Uladzimir

C D

http://docs.oracle.com/cd/B28359_01/appdev.111/b28370/triggers.htm#LNPLS20041

– The INSTEAD OF option can be used only for triggers defined on views.
– The BEFORE and AFTER options cannot be used for triggers defined on views.
– The CHECK option for views is not enforced when inserts or updates to the view are done using INSTEAD OF triggers. The INSTEAD OF trigger body must enforce the check.

alhambra braccialetto oro bianco buon

alhambra braccialetto oro bianco buon

cartierlovejesduas You dont know shit, and even worse, you dont understand shit. Go hide.
alhambra braccialetto oro bianco buon http://www.notiziedimarca.net/