Which three statements are true regarding the SQL* Load…

Examine the contents of SQL loader control file:

Which three statements are true regarding the SQL* Loader operation performed using the control file?

Examine the contents of SQL loader control file:

Which three statements are true regarding the SQL* Loader operation performed using the control file?

A.
An EMP table is created if a table does not exist. Otherwise, if the EMP table is appended with the loaded
data.

B.
The SQL* Loader data file myfile1.dat has the column names for the EMP table.

C.
The SQL* Loader operation fails because no record terminators are specified.

D.
Field names should be the first line in the both the SQL* Loader data files.

E.
The SQL* Loader operation assumes that the file must be a stream record format file with the normal
carriage return string as the record terminator.

Explanation:
A: The APPEND keyword tells SQL*Loader to preserve any preexisting data in the table. Other options allow
you to delete preexisting data, or to fail with an error if the table is not empty to begin with.
B (not D):
Note:
* SQL*Loader-00210: first data file is empty, cannot process the FIELD NAMES record
Cause: The data file listed in the next message was empty. Therefore, the FIELD NAMES FIRST FILE directive
could not be processed.
Action: Check the listed data file and fix it. Then retry the operation
E:
* A comma-separated values (CSV) (also sometimes called character-separated values, because the separator
character does not have to be a comma) file stores tabular data (numbers and text) in plain-text form. Plain text
means that the file is a sequence of characters, with no data that has to be interpreted instead, as binary
numbers. A CSV file consists of any number of records, separated by line breaks of some kind; each record
consists of fields, separated by some other character or string, most commonly a literal comma or tab. Usually,
all records have an identical sequence of fields.
* Fields with embedded commas must be quoted.
Example:
1997,Ford,E350,”Super, luxurious truck”
Note:
* SQL*Loader is a bulk loader utility used for moving data from external files into the Oracle database.



Leave a Reply 1

Your email address will not be published. Required fields are marked *


Richard

Richard

A is wrong – The table must already exist.
https://docs.oracle.com/database/121/SUTIL/GUID-AE99BBF7-ED2E-4628-844E-703EEF8A5A5C.htm#SUTIL1104

B is correct – https://docs.oracle.com/database/121/SUTIL/GUID-2FAAD351-7526-4A44-93FE-C43444DB83D8.htm#SUTIL4216

C is wrong – contradicted with E

D is wrong – contradicted with B

E is correct – https://docs.oracle.com/database/121/SUTIL/GUID-817B408D-57AA-49F0-A2AA-1DEE8C1A2D8F.htm#SUTIL981

I suggest there are only 2 correct answers.