You are on page 1of 8

Working With Flat File As Data Source : I

Creating a Flat File Source Module


In this topic, you learn how to create a flat file module in which you later add metadata describing your flat file sources. The source module that you create now eventually holds the metadata specific to flat files; therefore, this module is located in the Files node of the Warehouse Builder Project Explorer. 1. You are logged in to the Design Center as rep_owner/rep_owner. In the Project Explorer panel, expand the project. Right-click the Files node and select New.

The Create Module Wizard: Welcome page appears. Click Next.

Devang D Shah http://OracleWarehouseBuilder.wordpress.com http://LiveHappyLife.wordpress.com

Working With Flat File As Data Source : I

The Create Module Wizard: Name and Description page appears.

2. On the Create Module Wizard: Name and Description page, enter SOURCE as the name for the module. Click Next.

Devang D Shah http://OracleWarehouseBuilder.wordpress.com http://LiveHappyLife.wordpress.com

Working With Flat File As Data Source : I

The Create Module Wizard: Connection Information page appears. In a flat file source module, Location is the path or the directory in the file system where the flat files reside.

3. On the Create Module Wizard: Connection Information page, OWB creates a default location, SOURCE_LOCATION1. Click Edit.

Devang D Shah http://OracleWarehouseBuilder.wordpress.com http://LiveHappyLife.wordpress.com

Working With Flat File As Data Source : I

The Edit File System Location: SOURCE_LOCATION1 window appears.

4. In the Edit File System Location: SOURCE_LOCATION1 window, rename the default name SOURCE_LOCATION1 to SOURCE_LOCATION. Click Browse.

Devang D Shah http://OracleWarehouseBuilder.wordpress.com http://LiveHappyLife.wordpress.com

Working With Flat File As Data Source : I

In the Browse Directory window, select D:\newowbdemo\sourcefiles or the drive and directory (which contains the source folders) where you saved the setup scripts.

5. In the Edit File System Location: SOURCE_LOCATION window, examine the path and click OK.

Devang D Shah http://OracleWarehouseBuilder.wordpress.com http://LiveHappyLife.wordpress.com

Working With Flat File As Data Source : I

6. In the Connection Information window, ensure that Import after finish is selected. Selecting this option launches the Import Metadata Wizard. Click Next. Tip: If the check box is not selected, the Import Metadata Wizard does not launch automatically. To launch the Import Metadata Wizard manually, in Project Explorer, expand Files, right-click the SOURCE module, and select Import.

Devang D Shah http://OracleWarehouseBuilder.wordpress.com http://LiveHappyLife.wordpress.com

Working With Flat File As Data Source : I

The Create Module: Summary page appears.

7. On the Summary page, review the module settings. Click Finish.

Devang D Shah http://OracleWarehouseBuilder.wordpress.com http://LiveHappyLife.wordpress.com

Working With Flat File As Data Source : I

The flat file module definition is complete. In the Design Center, notice the source module created in the Files node of the Project Explorer. The Import Metadata Wizard is launched automatically.

Devang D Shah http://OracleWarehouseBuilder.wordpress.com http://LiveHappyLife.wordpress.com

You might also like