Você está na página 1de 4

Name of Solution:

Mapping : Read data from Excel using ODBC

Business Requirement:
Sample PowerCenter mapping that demonstrates how to read data from
with multiple worksheets using ODBC.

Microsoft Excel

Solution URL:
https://community.informatica.com/solutions/3053

Supported Versions:
Informatica PowerCenter 9.1 and above.

Description:
Overview
This solution describes the scenario to use the Excel ODBC functionality in PowerCenter.
Informatica can read the Microsoft Excel source as a relational database. We can use ODBC
connection to the Excel file to import each worksheet as a table. You do not need a
username and password to import Microsoft Excel sources. This solution demonstrates the
steps to establish a connection to Excel ODBC and read data using the PowerCenter
mapping.
The following tasks need to be completed before you import an Excel source definition.
Install the Microsoft Excel ODBC driver on the PowerCenter client and server.
Launch ODBC Administrator
If you are using a 32 - bit version of the PowerCenter client and server.
o

Go to C:\Windows\SysWOW64 and click on odbc32.exe application.

If you are using a 64 - bit version of the PowerCenter client and server.
o

Go to Control Panel\All Control Panel Items\Administrative Tools and click on


Data Sources (ODBC).

Under System DSN, click on Add and select Microsoft Excel Driver (*. xls, *.xlsm, *.xlsb,
*.xlsx ).
Click finish and provide Data source name for the ODBC Microsoft Excel setup.
Click Select Workbook and browse for the Microsoft Excel file, which is considered a
relational database.
Click OK.
Steps to create and import Excel ODBC source definitions in PowerCenter Designer.
Go to source tab and select import from database from the drop down list.
Select the Excel ODBC data source name.

Dont provide the username and password.


Click on connect.
Then use the ODBC connection, to import the worksheets in the Excel source files.

Download file contents:


1. Mapping
2. Source File

Steps to implement the solution:


1. First step is to create a Data Source Name under Data Sources (ODBC)

If you are using a 32 - bit version of the Inforamtica PowerCenter server and
client.
o Go to C:\Windows\SysWOW64 and click on odbc32.exe application.
If you are using a 64 - bit version of the Inforamtica PowerCenter server and
client
o Go to Control Panel\All Control Panel Items\Administrative Tools and click
on Data Sources (ODBC)

2. Under System DSN, click on Add and select Microsoft Excel Driver (*. xls, *.xlsm,
*.xlsb, *.xlsx )
3. Click finish and provide Data source name for the ODBC Microsoft Excel setup.
4. Click Select Workbook and browse for the Microsoft Excel file, which is considered a
relational database.
5. Click OK.

6. Go to source tab and select import from database from the drop down list.
7. Select the Excel ODBC data source name.
8. Dont provide the username and password.
9. Click on connect.
10. Then use the ODBC connection, to import the worksheets in the Excel source files.

11. Place source file in $PMSourceFileDir folder.


12. Import workflow using the Repository Manager. Select the appropriate folder from
the repository and resolve the conflicts by choosing suitable option.

13. In the PowerCenter Designer, observe the sample mapping that demonstrates the
how to read data from Microsoft Excel using ODBC.
14. Open the workflow in Workflow Manager. Assign the integration service in
Workflow -> Edit -> Integration Service
15. Edit session and assign valid connection object for the source. Provide username
as pmnulluser and password as pmnullpasswd and connection string same as
data source name.

16. Execute the workflow and observe the target file.

Other Useful links:


Mapping Bundles
Workflow Bundles
Informatica Tools Bundles
Informatica for Social Media Bundles
Debugging Tools Bundles
Visio Templates Bundles
B2B Templates and Projects Bundles
Data Quality Packs and Plans Bundles
Script Bundles

Você também pode gostar