exam questions

Exam 1z0-148 All Questions

View all questions & answers for the 1z0-148 exam

Exam 1z0-148 topic 1 question 45 discussion

Actual exam question from Oracle's 1z0-148
Question #: 45
Topic #: 1
[All 1z0-148 Questions]

Examine this code:

The anonymous block fails with:
ERROR at line 1:

ORA-01403: no data found -

ORA-06512: at line 5 -
Which two are valid options to prevent this error from occurring?

  • A. Line 5 should be replaced with: DBMS_LOB.CREATETEMPORARY (pdatabuf (1), TRUE, DBMS_LOB.CALL);
  • B. Line 5 should be replaced with: DBMS_LOB.CREATETEMPORARY (pdatabuf (1), FALSE, DBMS_LOB.SESSION);
  • C. Rewrite the block as: DECLARE TYPE databuf_arr IS TABLE OF CLOB INDEX BY BINATY_INTEGER; pdatabuf databuf_arr; PROCEDURE mytemplob (x OUT CLOB) IS BEGIN DBMS_LOB.CREATETEMPORARY (x, TRUE, DBMS_LOB, SESSION); END; BEGIN mytemplob (pdatabuf (1)); END; /
  • D. pdatabuf (1) := NULL; should be added after line 4.
  • E. Line 5 should be replaced with:
Show Suggested Answer Hide Answer
Suggested Answer: CE 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
Wrath
Highly Voted 5 years, 5 months ago
C and D
upvoted 8 times
...
chrishillinger
Most Recent 2 years, 8 months ago
Selected Answer: CD
CD is correct
upvoted 1 times
...
CosminCof
4 years, 5 months ago
CD is right
upvoted 1 times
...
Adela_bg
4 years, 10 months ago
C and D. Checked
upvoted 1 times
...
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.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago