Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Download
Standard view
Full view
of .
Look up keyword
Like this
3Activity
0 of .
Results for:
No results containing your search query
P. 1
Using FTP Overview

Using FTP Overview

Ratings: (0)|Views: 86|Likes:
Published by ypraju

More info:

Published by: ypraju on Dec 22, 2009
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as DOC, PDF, TXT or read online from Scribd
See more
See less

08/24/2010

pdf

text

original

 
Using FTP Overview 
By penchalaraju.yanamala
You can configure a session to use File Transfer Protocol (FTP) to read from flatfile or XML sources or write to flat file or XML targets. The Integration Servicecan use FTP to access any machine it can connect to, including mainframes.With both source and target files, use FTP to transfer the files directly or stagethem in a local directory. Access source files directly or use a file list to accessindirect source files in a session.To use FTP file sources and targets in a session, complete the following tasks:1.Create an FTP connection object in the Workflow Manager and configure theconnection attributes. For more information about creating FTP connections,seeFTP Connections.2.Configure the session to use the FTP connection object in the sessionproperties. For more information, seeConfiguring FTP in a Session.Configure an FTP connection to use SSH File Transfer Protocol (SFTP) if youare connecting to an SFTP server. SFTP enables file transfer over a secure datastream. The Integration Service creates an SSH2 transport layer that enables asecure connection and access to the files on an SFTP server.
Rules and Guidelines
Use the following guidelines when using FTP with flat file or XML sources andtargets:Specify the source or target output directory in the session properties. If you donot specify a directory, the Integration Service stages the file in the directorywhere the Integration Service runs on UNIX or in the Windows system directory.You cannot run sessions concurrently if the sessions use the same FTP sourcefile or target file located on a mainframe.If you abort a workflow containing a session that stages an FTP source or targetfrom a mainframe, you may need to wait for the connection to timeout beforeyou can run the workflow again.To run a session using an FTP connection for an SFTP server that requirespublic key authentication, the public key and private key files must be accessibleon nodes where the session will run.
Integration Service Behavior 
The behavior of the Integration Service using FTP depends on the way youconfigure the FTP connection and the session. The Integration Service can useFTP to access source and target files in the following ways:
Source files
. Stage source files on the machine hosting the Integration Serviceor access the source files directly from the FTP host. Use a single source file or a file list that contains indirect source files for a single source instance.
Target files.
Stage target files on the machine hosting the Integration Service or write to the target files on the FTP host.
 
Select staging options for the session when you select the FTP connection objectin the session properties. You can also stage files by creating a pre- or post-session shell command to copy the files to or from the FTP host. You generallyget better performance when you access source files directly with FTP. However,you may want to stage FTP files to keep a local archive.
Using FTP with Source Files
Use FTP in a session that reads flat file or XML file sources. You can stage thesource files for a session on the machine hosting the Integration Service. Use asingle source file or a file list for each source instance.When you stage source files, the Integration Service copies the source file fromthe FTP host to the machine hosting the Integration Service. The IntegrationService uses the local file as the source file for the session. If the local source fileexists, the Integration Service replaces the file.The following table describes the behavior of the Integration Service using FTPwith source files:SourceTypeIsStagedIntegration Service Behavior DirectYesIntegration Service copies the file from the FTP host to themachine hosting the Integration Service after the sessionbegins.DirectNoIntegration Service uses FTP to access the source file directly.IndirectYesIntegration Service reads the file list and copies the file list andthe source files to the machine hosting the Integration Serviceafter the session begins.IndirectNoIntegration Service copies the file list to the machine hostingthe Integration Service after the session begins. TheIntegration Service uses FTP to access the source filesdirectly.
Using FTP with Target Files
Use FTP in a session that writes to flat file or XML file targets. You can stage thetarget files on the machine hosting the Integration Service before copying them tothe FTP host.When you stage target files, the Integration Service creates a target file locallyand transfers it to the FTP host after the session completes. If you do not stagethe target file, the Integration Service writes directly to the target file on the FTPhost. If the target file exists, the Integration Service truncates the file.If you have the Partitioning option, use FTP for multiple target partition instances.You can write to multiple target files or a merge file on the Integration Service or the FTP host.
Configuring FTP in a Session
 
Before you can configure a session to use FTP, you must create an FTPconnection object in the Workflow Manager. The Integration Service uses theFTP connection attributes to connect to the FTP server.After you create an FTP connection in the Workflow Manager, you can configurea session to use FTP. To use a secure connection, select an FTP connectionobject configured for SFTP. Use any session with flat file or XML sources or targets. To configure the session, complete the following tasks for each sourceand target that requires an FTP connection:Select an FTP connection.Configure source file properties.Configure target file properties.To stage the source or target file on the Integration Service machine, edit theFTP connection in the session properties to configure the directory and file namefor the staged file.
Configuring SFTP in a Session
To run a session using an FTP connection for an SFTP server that requirespublic key authentication, the public key and private key files must be accessibleon nodes where the session will run.If the Integration Service is configured to run on primary and backup nodes,make the key files accessible on each node configured to run the IntegrationService process.If the Integration Service is configured to run on a grid, make the key filesaccessible on each node configured to run on the grid. If you cannot put the fileson each node in the grid, create a resource in the domain and assign it to eachnode where you put the files. When you create a session, configure it to use theresource.For example, create a custom resource called SFTP. When you create asession, you can require the session to use the SFTP resource. The LoadBalancer will only dispatch the session to nodes where the key files areaccessible.
Selecting an FTP Connection
To configure a session to use FTP, select the connection type and theconnection object. Select an FTP connection object for each source and targetthat will use the FTP connection. To use SFTP, select an FTP connection objectthat is configured for SFTP. You configure connection options in the Connectionssettings on the Mapping tab.To select an FTP connection for a source or target instance:
1.
On the Mapping tab, select the source or target instance in the Transformationview.
2.
Select the FTP connection type.
3.
Click the Open button in the Value field.

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->