Reverse-engineer a Microsoft Excel Model

Microsoft Excel 8-5 Standard Reverse-Engineering To perform a Standard Reverse-Engineering on Microsoft Excel use the usual procedure, as described in Reverse-engineering a Model of the Oracle Fusion Middleware Developers Guide for Oracle Data Integrator.

8.6 Designing an Interface

You can use a Microsoft Excel file as a source or a target of an integration interface, but NOT as the staging area The KM choice for an interface or a check determines the abilities and performances of this interface or check. The recommendations below help in the selection of the KM for different situations concerning a Microsoft Excel server.

8.6.1 Loading Data From and to Microsoft Excel

Microsoft Excel can be used as a source or a target of an interface. The LKM choice in the Interface Flow tab to load data between Microsoft Excel and another type of data server is essential for the performance of an interface.

8.6.1.1 Loading Data from Microsoft Excel

Oracle Data Integrator does not provide specific knowledge modules for Microsoft Excel. Use the Generic SQL KMs or the KMs specific to the technology used as the staging area. The following table lists some generic SQL KMs that can be used for loading data from Microsoft Excel to any staging area.

8.6.1.2 Loading Data to Microsoft Excel

Because Microsoft Excel cannot be used as staging area you cannot use a LKM to load data into Microsoft Excel. See Section 8.6.2, Integrating Data in Microsoft Excel for more information on how to integrate data into Microsoft Excel. Note: On the Reverse Engineer tab of your Model, select in the Types of objects to reverse-engineer section Table and System Table to reverse-engineer spreadsheets and named cell ranges. Table 8–1 KMs to Load from Microsoft Excel Target or Staging Area KM Notes Oracle LKM SQL to Oracle Loads data from any ISO-92 database to an Oracle target database. Uses statistics. SQL LKM SQL to SQL Loads data from any ISO-92 database to any ISO-92 compliant target database. Sybase LKM SQL to Sybase bcp Loads data from any ISO-92 compliant database to a Sybase ASE Server database. Uses Bulk Loading. Microsoft SQL Server LKM SQL to MSSQL bulk Loads data from any ISO-92 database to a Microsoft SQL Server target database. Uses Bulk Loading. 8-6 Oracle® Fusion Middleware Connectivity and Knowledge Modules Guide for Oracle Data Integrator

8.6.2 Integrating Data in Microsoft Excel

Oracle Data Integrator does not provide specific knowledge modules for Microsoft Excel. Use the Generic SQL KMs or the KMs specific to the technology used as the staging area. For integrating data from a staging area to Microsoft Excel, you can use, for example the IKM SQL to SQL Append.

8.7 Troubleshooting

This section provides information on how to troubleshoot problems that you might encounter when using the Microsoft Excel technology in Oracle Data Integrator. It contains the following topics: ■ Decoding Error Messages ■ Common Problems and Solutions

8.7.1 Decoding Error Messages

Errors appear often in Oracle Data Integrator in the following way: java.sql.SQLException: java.sql.SQLException: [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified RC=Oxb at ... ... the java.sql.SQLException code simply indicates that a query was made through the JDBC-ODBC bridge, which has returned an error. This error is frequently a database or driver error, and must be interpreted in this direction. Only the part of text in italic must first be taken in account. It must be searched in the ODBC driver or Excel documentation. If its contains a specific error code, like here in bold italic , the error can be immediately identified. If such an error is identified in the execution log, it is necessary to analyze the SQL code to find the source of the error. The code is displayed in the description tab of the task in error. The most common errors with Excel are detailed below, with their principal causes.

8.7.2 Common Problems and Solutions

This section describes common problems and solutions. ■ UnknownDriverException The JDBC driver is incorrect. Check the name of the driver. ■ [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified RC=0xb Datasource not found or driver name not specified The ODBC Datasource specified in the JDBC URL is incorrect. ■ The Microsoft Jet Database engine could not find the object object name The table you are trying to access does not exist or is not defined in the Excel spreadsheet. ■ Too few parameters. Expected 1. You are trying to access an nonexisting column in the Excel spreadsheet.