Control File

The control file tells SQL*Loader how to load the data. In constructing the control file, you place each control file parameter on its own line in the file. You can include comments in the control file by preceding the comment text with a double dash (—).

If you have to include a SQL*Loader reserved word in the control file, you must enclose it in double quotes. On Unix systems, you can include special characters by preceding them with the escape character (\).

The basic command that begins the control file is the LOAD command. The LOAD can have one or more INFILE clauses to specify input data files, as well as one or more INTO TABLE clauses to indicate the target tables.

A control file may also include the data to be loaded. If included, this data comes after the LOAD command and starts with the BEGINDATA keyword.

The following sections describe the basic control file keywords; the INFILE, INTO TABLE, and other clauses; and the concatenation rules that can be specified with the control file.

Get Oracle in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.