New Year Sale ! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Oracle Exam 1Z0-151 Topic 7 Question 11 Discussion

Actual exam question for Oracle's 1Z0-151 exam
Question #: 11
Topic #: 7
[All 1Z0-151 Questions]

You are using a PL/SQL program unit in the Orders form to display an image for the selected product in the Order Items block. The code is called from several different triggers in the form. The code (with line numbers added) is:

1. PROCEDURE get_image IS

2. Product_image_id ITEM := FIND_ITEM ('control.product_image');

3. Filename VARCHAR2(250);

4. BEGIN

5. Filename := TO_CHAR(:order_items.product_id) | | '.jpg';

6. READ_IMAGE_FILE (filename, 'jpeg', product_image_id);

7. END;

Management wants all codes to be in PL/SQL libraries to facilitate reuse. You create a PL/SQL library and drag the program unit from the orders form to the Program Units node of the library. You then delete the program unit from the Orders form.

What three things must you do to compile the PL/SQL library and to use the code in the Orders form?

Show Suggested Answer Hide Answer
Suggested Answer: E, G, H

E: Save and compile the library.

G: select the Attached Libraries node and click Create.

In the Attach Library dialog box, click Browse to navigate to the saved library and open it, then answer Yes to the alert that asks if you want to remove the path.

H: Modify the to simply call the procedure from the attached library:


Contribute your Thoughts:

Currently there are no comments in this discussion, be the first to comment!


Save Cancel
az-700  pass4success  az-104  200-301  200-201  cissp  350-401  350-201  350-501  350-601  350-801  350-901  az-720  az-305  pl-300  

Warning: Cannot modify header information - headers already sent by (output started at /pass.php:70) in /pass.php on line 77