Now that you have created the source tables with sample data, you are ready to create the source definitions in the repository. The repository contains a description of source tables, not the actual data contained in them. After you add these source definitions to the repository, you use them in a mapping.
In the Designer, click
Tools
Source Analyzer
to open the Source Analyzer.
Double-click the tutorial folder to view its contents.
Every folder contains nodes for sources, targets, schemas, mappings, mapplets, cubes, dimensions, user-defined functions, and transformations.
Click
Sources
Import from Database
.
From the
ODBC data source
button, select the ODBC data source that you created to access source tables.
Enter the user name and password to connect to this database. Also, enter the name of the source table owner, if necessary.
In Oracle, the owner name is the same as the user name. Make sure that the owner name is in all caps. For example, JDOE.
Click
Connect
.
In the Select tables list, expand the database owner and the TABLES heading.
A list of all the tables you created by running the SQL script appears in addition to any tables already in the database.
Select the following tables:
CUSTOMERS
DEPARTMENT
DISTRIBUTORS
EMPLOYEES
ITEMS
ITEMS_IN_PROMOTIONS
JOBS
MANUFACTURERS
ORDERS
ORDER_ITEMS
PROMOTIONS
STORES
Hold down the CTRL key to select multiple tables. Or, hold down the SHIFT key to select a block of tables. You may need to scroll down the list of tables to select all tables.
Database objects created in Informix databases have shorter names than those created in other types of databases. For example, the name of the table ITEMS_IN_PROMOTIONS is shortened to ITEMS_IN_PROMO.
Click
OK
to import the source definitions into the repository.
The Designer displays the newly imported sources in the workspace. You can click
Layout
Scale To Fit
to arrange all definitions in the workplace.
The following image shows the Designer with the newly imported sources in the workspace:
A database definition (DBD) node appears under the Sources node in the tutorial folder. This entry has the same name as the ODBC data source that you used to import sources. If you double-click the DBD node, the list of all the imported sources appears.