01.09.2016 Views

Beginning Oracle Database 11g Administration From Novice to Professional

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

CHAPTER 8 USER MANAGEMENT AND DATA LOADING 177<br />

SQL*Loader offers tremendous flexibility in dealing with data files. For example:<br />

<br />

supported.<br />

<br />

<br />

<br />

<br />

<br />

<br />

Listing 8-17 shows the contents of a simple SQL*Loader control file that describes<br />

how <strong>to</strong> load three columns of information from a comma delimited file in<strong>to</strong> a table. The<br />

clause indicates that there is no separate data file or infile; that is, the data is part<br />

of the control file itself.<br />

Listing 8-17. A Simple SQL*Loader Control File<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

This control file belongs <strong>to</strong> the first in a series of 11 case studies included with the <strong>Oracle</strong><br />

software; the control files () and data files () can be found in<br />

the direc<strong>to</strong>ry. SQL scripts for creating the necessary tables are also<br />

provided (). Complete instructions for testing the examples can be found in the<br />

comments section of each control file; they are also discussed in Chapter 6 of <strong>Oracle</strong> <strong>Database</strong><br />

<strong>11g</strong> Utilities, available at or <br />

. Listing 8-18 shows the results of performing the first case study.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!