nerdexam
Oracle

1Z0-146 · Question #54

DATA_FILES is a directory object that contains the DETAILS.TXT text file. You have the required permissions to access the directory object. You create a table using the following command: CREATE…

The correct answer is D. The clause RETURNING col2 INTO a_clob should be added to the INSERT statement to correctly. See the full explanation below for the reasoning.

Question

DATA_FILES is a directory object that contains the DETAILS.TXT text file. You have the required permissions to access the directory object. You create a table using the following command:

CREATE TABLE clob_tab(col2 CLOB); View the Exhibit and examine the PL/SQL block that you execute for loading the external text file into the table that currently has no rows. The PL/SQL block results in an error. What correction must be done to ensure the PL/SQL block executes successfully?

Exhibit

1Z0-146 question #54 exhibit

Options

  • AThe L_OUT variable must be initialized to an empty locator.
  • BThe L_OUT variable has to be declared as a temporary LOB.
  • CThe A_CLOB variable has to be declared as a temporary LOB.
  • DThe clause RETURNING col2 INTO a_clob should be added to the INSERT statement to correctly

How the community answered

(65 responses)
  • A
    3% (2)
  • B
    6% (4)
  • C
    11% (7)
  • D
    80% (52)

Community Discussion

No community discussion yet for this question.

Full 1Z0-146 Practice