By PenchalaRaju.Yanamala
Before using the Workflow Manager to create workflows and sessions, you must
configure connections in the Workflow Manager.
You can configure the following connection information in the Workflow Manager:
You can create, edit, and delete connection objects. You can also assign
permissions to connection objects. For relational database connections, you
can also copy and replace connection objects.
Code pages must be compatible for accurate data movement. You must select
a code page for most types of connection objects. The code page of a
database connection must be compatible with the database client code page. If
the code pages are not compatible, sessions may hang, data may become
inconsistent, or you might receive a database error, such as:
The Workflow Manager filters the list of code pages for connections to ensure
that the code page for the connection is a subset of the code page for the
repository. It lists the five code pages you have most recently selected. Then it
lists all remaining code pages in alphabetical order.
If you configure the Integration Service for data code page validation, the
Integration Service enforces code page compatibility at session runtime. The
Integration Service ensures that the target database code page is a superset of
the source database code page.
When you change the code page in a connection object, you must choose one
that is compatible with the previous code page. If the code pages are
incompatible, the Workflow Manager invalidates all sessions using that
connection.
If you configure the PowerCenter Client and Integration Service for relaxed
code page validation, you can select any supported code page for source and
target connections. If you are familiar with the data and are confident that it will
convert safely from one code page to another, you can run sessions with
incompatible source and target data code pages. It is your responsibility to
ensure your data will convert properly.
You use the Connection Browser to create connection objects. Open the
Connection Browser dialog box for the connection object. For example, click
Connections > Relational to open the Connection Browser dialog box for a
relational database connection.
In the Workflow Manager, click Connections and select the type of connection
1.you want to create.
Select one of the following connection types:
Relational. For information about creating relational database connections,
see Relational Database Connections or PowerExchange Interfaces for
PowerCenter.
FTP. For information about creating FTP connections, see FTP Connections.
Loader. For information about creating loader connections, see External
Loader Connections.
Queue. For information about creating queue connections, see
PowerExchange for WebSphere MQ Connections and PowerExchange for
MSMQ Connections.
Application. For information about creating application connections, see the
appropriate PowerExchange application section in this chapter or
PowerExchange Interfaces for PowerCenter.
The Connection Browser dialog box appears, listing all the source and target
connections available for the selected connection type.
2.Click New.
If you selected FTP as the connection type, the Connection Object dialog box
appears. Go to step 5.
If you selected Relational, Queue, Application, or Loader connection type, the
Select Subtype dialog box appears.
3.In the Select Subtype dialog box, select the type of database connection you
want to create.
4.Click OK.
5.Enter the properties for the type of connection object you want to create.
The Connection Object Definition dialog box displays different properties
depending on the type of connection object you create. For more information
about connection object properties, see the section for each specific connection
type in this chapter.
6.Click OK.
The new database connection appears in the Connection Browser list.
7.To add more database connections, repeat steps 3 to 6.
8.Click OK to save all changes.
You can change connection information at any time. If you edit a connection
object used by a workflow, the Integration Service uses the updated connection
information the next time the workflow runs. You might use this functionality
when moving from test to production.
Open the Connection Browser dialog box for the connection object. For
example, click Connections > Relational to open the Connection Browser
1.dialog box for a relational database connection.
2.Click Edit.
The Connection Object Definition dialog box appears.
3.Enter the values for the properties you want to modify.
The connection properties vary depending on the type of connection you select.
For more information about connection properties, see the section for each
specific connection type in this chapter.
4.Click OK.
When you delete a connection object, the Workflow Manager invalidates all
sessions that use these connections. To make the sessions valid, you must edit
them and replace the missing connections.
Tip: Hold the shift key to select more than one connection to delete.
When you configure a mapping, you can choose the connection type and select
a connection to you. You can also override the connection attributes for the
session or create a connection.
You can set the connection type from the Mapping tab for each object.
Connection types include application, queue, external loader, and FTP.
Note: A relational connection type appears as the connection type for all
relational sources, targets, and transformations such as Lookup and Stored
Procedure transformations. You cannot change the relational connection type.
Application
Queue
External Loader
Select this connection type to use the External Loader to load output files to
Teradata, Oracle, DB2, or Sybase IQ databases. If you select this option, select
a configured loader connection in the Value column.
To use this option, you must use a mapping with a relational target definition
and choose File as the writer type on the Writers tab for the relational target
instance. As the Integration Service completes the session, it uses an external
loader to load target files to the Oracle, Sybase IQ, IBM DB2, or Teradata
database. You cannot choose external loader for flat file or XML target
definitions in the mapping.
Related Topics:
External Loading
FTP
Select this connection type to use FTP to access the source or target directory
for flat file and XML sources or targets. If you want to extract or load data from
or to a flat file or XML source or target using FTP, you must specify an FTP
connection when you configure source or target options. If you select this
option, select a configured FTP connection in the Value column. FTP
connections must be defined in the Workflow Manager prior to configuring
sessions.
Related Topics:
Using FTP
None
Select None when you want to read or write from a local flat file or XML file, or if
you use an associated source for a WebSphere MQ session.
Enter the database connection you want the Integration Service to use for the
$Source and $Target connection variables. You can select a connection object,
or you can use the $DBConnectionName or $AppConnectionName session
parameter if you want to define the connection value in a parameter file.
The following list describes how the Integration Service determines the value of
$Source or $Target when you do not specify the $Source Connection Value or
$Target Connection Value in the session properties:
When you use $Source and the pipeline contains one source, the Integration
Service uses the database connection you specify for the source.
When you use $Source and the pipeline contains multiple sources joined by a
Joiner transformation, the Integration Service determines the database
connections based on the location of the Lookup or Stored Procedure
transformation in the pipeline:
-When the transformation is after the Joiner transformation, the Integration
Service uses the database connection for the detail table.
When the transformation is before the Joiner transformation, the Integration
-Service uses the database connection for the source connected to the
transformation.
When you use $Target and the pipeline contains one target, the Integration
Service uses the database connection you specify for the target.
When you use $Target and the pipeline contains multiple relational targets, the
session fails.
When you use $Source or $Target in an unconnected Lookup or Stored
Procedure transformation, the session fails.
You can enter values for the $Source and $Target connection variables on the
Properties tab of the session properties, or on the Mapping tab, Connections
node.
To enter the database connection for the $Source and $Target connection
variables:
In the session properties, select the Properties tab or the Mapping tab,
1.Connections node.
Click the Open button in $Source Connection Value or $Target Connection
2.Value field.
The Connection Browser dialog box appears.
Select a connection object or
3. variable:
Use Connection Object. Select a relational or application
connection object. You can also create a connection object and
select it.
Use Connection Variable. Use a connection variable or session parameter.
You can enter either the $Source or $Target connection variable, or the
$DBConnectionName or $AppConnectionName session parameter. If you
enter a session parameter, define the parameter in the parameter file. If you
do not define a value for the session parameter, the Integration Service
determines which database connection to use when it runs the session.
4.Click OK.
see PowerExchange Interfaces for PowerCenter or one of the following
PowerExchange sections in this chapter:
- PowerExchange for JMS Connections
-
PowerExchange for MSMQ Connections
-
PowerExchange for PeopleSoft Connections
-
PowerExchange for Salesforce Connections
-
PowerExchange for SAP NetWeaver BI Connections
-
PowerExchange for SAP NetWeaver Connections
-
PowerExchange for Siebel Connections
-
PowerExchange for TIBCO Connections
-
PowerExchange for Web Services Connections
-
PowerExchange for webMethods Connections
-
PowerExchange for WebSphere MQ Connections
Before you can configure a session to use a connection, you must create a
connection object in the Workflow Manager and configure the connection
attributes. For example, to configure a session to use FTP, create an FTP
connection object and configure the connection attributes.
After you create a connection object, you configure source and target instances
in a session to use the object. When you configure the source and target
instances, you can override connection attributes and define some attributes that
are not in the connection object. You can override connection attributes based on
how you configure the source or target instances.
You can override connection attributes when you configure the source or target
session properties in the following ways:
You use an FTP, queue, external loader, or application connection for a non-
relational source or target instance.
You use an FTP, queue, or external loader connection for a relational target
instance.
You use an application connection for a relational source instance.
For example, for an FTP target connection, you can override the remote file
name, whether the target file is staged, and the transfer mode. For a Teradata
FastExport source connection, you can override attributes such as TDPID,
tenacity, and block size.
When you configure a session, you can override connection attributes for a
connection object or you can use a session parameter and override the attributes
in the parameter file.
Working with Connection Objects
Overriding Connection Attributes in the Session
Overriding Connection Attributes in the Parameter File
You can override the source and target connection attributes in the session
properties.
On the Mapping tab, select the source or target instance in the Connections
1.node.
2.Select the connection type.
3.Click the Open button in the value field to select a connection object.
4.Choose the connection object.
5.Click Override.
7.Click OK.
If you use a session parameter to define a connection for a source or target, you
can override the connection attributes in the parameter file. Use the
$FTPConnectionName, $QueueConnectionName, $LoaderConnectionName, or
$AppConnectionName session parameter.
When you define a connection in the parameter file, the Integration Service
searches for specific, user-defined session parameters that define the connection
attributes. For example, you create a Message Queue connection parameter
called $QueueConnectionMyMQ and define it in the “[s_MySession]” section in
the parameter file. The Integration Service searches this section of the parameter
file for the “rows per message” parameter,
$Param_QueueConnectionMyMQ_Rows_Per_Message.
When you install PowerCenter, the installation program creates a template file
named ConnectionParam.prm that lists the connection attributes you can
override for FTP, queue, loader, and application connections. The
ConnectionParam.prm file is located in the following directory:
When you define a connection in the parameter file, copy the template for the
appropriate connection type and paste it into the parameter file. Then supply the
parameter values.
...
Template
====================
$FTPConnection<VariableName>=
$Param_FTPConnection<VariableName>_Remote_Filename=
$Param_FTPConnection<VariableName>_Is_Staged=
$Param_FTPConnection<VariableName>_Is_Transfer_Mode_ASCII=
Copy the template text for the connection attributes you want to override. For
example, to override the “Remote File Name” and “Is Staged” attributes, copy
5.the following lines:
$FTPConnection<VariableName>=
$Param_FTPConnection<VariableName>_Remote_Filename=
$Param_FTPConnection<VariableName>_Is_Staged=
Paste the text into the parameter file. Replace <VariableName> with the
6.connection name, and supply the parameter values. For example:
[MyFolder.WF:wf_MyWorkflow.ST:s_MySession]
$FTPConnectionMyFTPConn=FTP_Conn1
$Param_FTPConnectionMyFTPConn_Remote_Filename=ftp_src.txt
$Param_FTPConnectionMyFTPConn_Is_Staged=YES
If you do not define a value for an attribute, the Integration Service uses the
value defined for the connection object.
FTP Connections
Before you can configure a session to use FTP or SFTP, you must create and
configure the FTP connection properties in the Workflow Manager. The
Integration Service uses the FTP connection properties to create an SFTP or
FTP connection.
If you enter a mainframe file name in the default directory for a source or target,
enter the closing quote. For example, if the file is located in the following default
remote directory:
‘staging.
To access the file data from the default mainframe directory, enter the following
in the Remote file name field:
data’
When the Integration Service begins or ends the session, it connects to the
mainframe host and looks for the following directory and file name:
‘staging.data’
If you want to use a file in a different directory, enter the directory and file name
in the Remote file name field. For example, you might enter the following file
name and directory:
‘overridedir.filename’
When you configure external loader settings, you might need to consult the
database documentation for more information.