Create a File Model

3-6 Oracle® Fusion Middleware Connectivity and Knowledge Modules Guide for Oracle Data Integrator

1. In the Models accordion, right click your File Model and select New Datastore.

The Datastore Editor opens. 2. In the Definition Tab, enter the following fields: ■ Name : Name of this datastore ■ Resource Name : Sub-directory if needed and name of the file. You can browse for the file using the ... button 3. Go to the Files tab to describe the type of file. Set the fields as follows: ■ File Format : Delimited ■ Header Number of Lines : Enter the number of lines of the header. Note that if there is a header, the first line of the header will be used by Oracle Data Integrator to name the columns in the file. ■ Select a Record Separator. ■ Select or enter the character used as a Field Separator. ■ Enter a Text Delimiter if your file uses one. ■ Enter a Decimal Separator if your file contains decimals. 4. From the File main menu, select Save. 5. In the Datastore Editor, go to the Columns tab.

6. In the editor toolbar, click Reverse-Engineer.

7. Verify the datatype and length for the reverse engineered columns. Oracle Data Integrator infers the fields datatypes and lengths from the file content, but may set default values for example 50 for the strings field length or incorrect data types in this process.

8. From the File main menu, select Save.

3.5.2.2 Fixed Files Reverse-engineering using the Wizard

Oracle Data Integrator provides a wizard to graphically define the columns of a fixed file. To reverse-engineer a fixed file using the wizard:

1. In the Models accordion, right click your File Model and select New Datastore.

The Datastore Editor opens. 2. In the Definition Tab, enter the following fields: ■ Name : Name of this datastore ■ Resource Name : Sub-directory if needed and name of the file. You can browse for the file using the ... button 3. Go to the Files tab to describe the type of file. Set the fields as follows: ■ File Format : Fixed ■ Header Number of Lines : Enter the number of lines of the header. ■ Select a Record Separator. 4. From the File main menu, select Save. 5. In the Datastore Editor, go to the Columns tab.