PowerExchange for Db2 Warehouse User Guide for PowerCenter

PowerExchange for Db2 Warehouse User Guide for PowerCenter

Configure Db2 Warehouse Target Session Properties

Configure Db2 Warehouse Target Session Properties

You can configure the session properties for Db2 Warehouse targets in the Transformations view on the Mapping tab. Define the properties for each target instance in the session.
The following table describes the session properties that you can configure for a Db2 Warehouse target session:
Property
Description
Insert
Inserts all rows to the Db2 Warehouse target.
Default is true.
Delete
Deletes rows from the Db2 Warehouse target.
If you select DELETE, you need to select
Delete
for the
Treat source rows as
session property in the
Properties
page.
Update
Updates rows in the Db2 Warehouse target.
If you select UPDATE, you need to select
Update
for the
Treat source rows as
session property in the
Properties
page.
You can select one of the following modes:
  • Update as Update. PowerExchange for Db2 Warehouse updates all rows flagged for update if the entries exist.
  • Update else Insert. PowerExchange for Db2 Warehouse first updates all rows flagged for update if the entries exist in the target. If the entries do not exist, PowerExchange for Db2 Warehouse inserts the entries.
  • Update as Insert. PowerExchange for Db2 Warehouse inserts all rows flagged for update if the entries do not exist in the target.
Truncate Target Table Option
The PowerCenter Integration Service truncates the target before loading. Run the truncate table command. Default is disabled.
If you specify an SQL statement in the Pre-SQL property, the PowerCenter Integration Service runs the SQL statement before the table is truncated.
Delimiter
Delimiter separates successive input fields in the Db2 Warehouse external table. You can enter any value supported by Db2 Warehouse.
The value must not be a part of the input data. Default is the pipe (|) character.
Null Value
NullValue parameter of the Db2 Warehouse external table. The PowerCenter Integration Service uses the NullValue internally.
Maximum value is one character. Default is NULL.
Escape Character
Escape character of the external table. If the data contains NULL, CR, and LF characters in the Char or Varchar field, you need to add an escape character for these fields before loading.
Enter a backslash (\) as the escape character. Default is blank.
Quoted Value
QUOTEDVALUE parameter of the external table. Select SINGLE or DOUBLE to enclose the field in single or double quotes.
Select NO to omit quotes. Default is NO.
The quoted value is not a part of the data.
Socket Buffer Size
Set the socket buffer size to 25 to 50 % of the DTM buffer size to increase session performance. You might need to test different settings for optimal performance.
Enter a value between 4096 and 2147483648 bytes.
Default is 8388608 bytes.
Db2 Warehouse Pre SQL
SQL statement that the PowerCenter Integration Service executes before loading data into the target.
Db2 Warehouse Post SQL
SQL statement that the PowerCenter Integration Service executes after loading data into the target.
Pipe Directory Path
Path for the PowerCenter Integration Service to create the pipe for the external table. If you do not specify the path, the PowerCenter Integration Service uses the
$PMTempDir
directory to create the pipe for the external table.
Error Log Directory Name
Error log directory can reside on the machine where the PowerCenter Integration Service runs. For example, you can use the following directory:
$PMBadFileDir
The PowerCenter Integration Service creates a bad file in the error log directory if the data is not valid.

0 COMMENTS

We’d like to hear from you!