1Z0-144 · Question #81
/temp/my_files is an existing folder in the server, facultylist.txt is an existing text file in this folder Examine the following commands that are executed by the DBA: SQL>CREATE DIRECTION my_dir…
The correct answer is D. It executes successfully and displays the list of faculty names followed by a "no data found" error. See the full explanation below for the reasoning.
Question
/temp/my_files is an existing folder in the server, facultylist.txt is an existing text file in this folder Examine the following commands that are executed by the DBA:
SQL>CREATE DIRECTION my_dir AS ` /temp/my_files':
SQL>GRANT READ ON DIRECTORY my_dir To pubiic:
View the Exhibit and examine the procedure created by user SCOTT to read the list of faculty names from the text file. SCOTT executes the procedure as follows:
SQL>SET SERVEROUTPUT ON SQL>EXEC read_file (`MY_DIR', FACULTYLIST.TXT') What is the outcome?
Exhibit
Options
- AIt goes into an infinite loop.
- BIt executes successfully and displays only the list of faculty names.
- CIt does not execute and displays an error message because the end-of-file condition is not taken
- DIt executes successfully and displays the list of faculty names followed by a "no data found" error
How the community answered
(55 responses)- A9% (5)
- B15% (8)
- C4% (2)
- D73% (40)
Community Discussion
No community discussion yet for this question.
