Oracle
1Z0-147 · Question #38
Examine this code: CREATE OR REPLACE PROCEDURE load_bfile (p_file_loc IN VARCHAR2) IS V_file BFILE; V_filename VARCHAR2(16); CURSOR emp_cursor IS SELECT employee_id FROM employees WHERE…
The correct answer is C. C. It returns a BFILE locator that is associated with a physical LOB binary file on the server's file system. See the full explanation below for the reasoning.
Question
Examine this code:
CREATE OR REPLACE PROCEDURE load_bfile
(p_file_loc IN VARCHAR2)
IS
V_file BFILE;
V_filename VARCHAR2(16);
CURSOR emp_cursor IS
SELECT employee_id
FROM employees
WHERE job_id='IT_PROG'
FOR UPDATE;
BEGIN
FOR emp_record IN emp_cursor LOOP
V_filename := emp_record.employee_id || '.GIF';
V_file := BFILENAME(p_file_loc, V_filename);
END LOOP;
END;
/
What does the BFILENAME function do?
Options
- AA. It reads data from an external BFILE.
- BB. It checks for the existence of an external BFILE.
- CC. It returns a BFILE locator that is associated with a physical LOB binary file on the server's file system.
- DD. It creates a directory object for use with the external BFILEs.
How the community answered
(27 responses)- A4% (1)
- B4% (1)
- C81% (22)
- D11% (3)
Community Discussion
No community discussion yet for this question.