confirm. B is correct answer:
CREATE TABLE test_tbl(id NUMBER, object BLOB);
INSERT INTO test_tbl(id,object) values(1,'01');
INSERT INTO test_tbl(id,object) values(2,'11');
COMMIT;
SELECT * FROM test_tbl;
CREATE or replace TRIGGER trig_at AFTER UPDATE ON test_tbl
BEGIN
DBMS_OUTPUT.PUT_LINE('It was updated');
END;
/
SET SERVEROUTPUT ON;
DECLARE
dest_lob BLOB;
src_lob BLOB;
BEGIN
SELECT object INTO dest_lob FROM test_tbl WHERE id=2 FOR UPDATE;
SELECT object INTO src_lob FROM test_tbl WHERE id=1;
dbms_lob.append(dest_lob,src_lob);
END;
/
Table TEST_TBL created.
1 row inserted.
1 row inserted.
Commit complete.
ID OBJECT
---------- --------------------------------------------------------------------------------
1 01
2 11
Trigger TRIG_AT compiled
PL/SQL procedure successfully completed.
Also, per Oracle dosumentation:https://docs.oracle.com/cd/B19306_01/appdev.102/b14289/dcilobs.htm
"Using OCI functions or the DBMS_LOB package to update LOB values or LOB attributes of object columns will not fire triggers defined on the table containing the columns or the attributes."
This section is not available anymore. Please use the main Exam Page.1z0-148 Exam Questions
Log in to ExamTopics
Sign in:
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
orakell
Highly Voted 5 years, 6 months agoszefco
4 years, 11 months agoszefco
4 years, 11 months agochrishillinger
Most Recent 2 years, 9 months ago