External Loading Overview
You can configure a session to use IBM DB2, Oracle, Sybase IQ, and Teradataexternal loaders to load session target files into their respective databases.External loaders can increase session performance by loading informationdirectly from a file or pipe rather than running the SQL commands to insert thesame data into the database.Use multiple external loaders within one session. For example, if a mappingcontains two targets, you can create a session that uses an Oracle externalloader connection and a Sybase IQ external loader connection.For information about creating external loader connections, seeExternal Loader Connections.
Before You Begin
Before you run external loaders, complete the following tasks:
You disable constraints built into the tables receiving thedata before performing the load. For information about disabling constraints, seethe database documentation.
Turn off or disable database logging.
To preserve high performance, you canincrease commit intervals and turn off database logging. However, to performdatabase recovery on failed sessions, you must have database logging turnedon.
Configure code pages.
IBM DB2, Oracle, Sybase IQ, and Teradata databaseservers must use the same code page as the target flat file code page. TheIntegration Service creates the control files and target flat files using the targetflat file code page. If you use a code page other than 7-bit ASCII for the targetflat file, run the Integration Service in Unicode data movement mode.
Configure the external loader connection as a resource.
If the IntegrationService is configured to run on a grid, configure the external loader connectionas a resource on the node where the external loader is available. For moreinformation, see the PowerCenter Administrator Guide.
External Loader Behavior
When you run a session that uses an external loader, the Integration Servicecreates a control file and a target flat file. The control file contains informationsuch as data format and loading instructions for the external loader. The controlfile has an extension of .ctl. You can view the control file and the target flat file inthe target file directory.When you run a session, the Integration Service deletes and recreates the targetfile. The external loader uses the control file to load session output to thedatabase. The Integration Service processes datetime data before loading to thedatabase in the following ways:If the session is configured to trim subseconds, the Integration Serviceprocesses datetime data with a precision of 19.