DSS Task Setup

Informatica Cloud Platform – Building Connectors
with the Toolkit Student Lab 2:
DSS Task
Version Connectors Toolkit Training 2015-01
Informatica Cloud Platform – Building Connectors with the Toolkit Lab Guide
Informatica Cloud Platform – Building Connectors with the Toolkit Lab Guide
Building Connectors with the Toolkit Version 01-2015
Copyright (c) 1998-2015 Informatica Corporation. All rights reserved. Printed in the USA.
This software and documentation contain proprietary information of Informatica Corporation and are provided under a license agreement containing
restrictions on use and disclosure and are also protected by copyright law. Reverse engineering of the software is prohibited. No part of this document
may be reproduced or transmitted in any form, by any means (electronic, photocopying, recording or otherwise) without prior consent of Informatica
Corporation.
Use, duplication, or disclosure of the Software by the U.S. Government is subject to the restrictions set forth in the applicable software license agreement
and as provided in DFARS 227.7202-1(a) and 227.7702-3(a) (1995), DFARS 252.227-7013(c)(1)(ii) (OCT 1988), FAR 12.212(a) (1995), FAR 52.227-19,
or FAR 52.227-14 (ALT III), as applicable..
The information in this document is subject to change without notice. If you find any problems in the documentation, please report them to us in writing.
Informatica Corporation does not warrant that this documentation is error free. Informatica, PowerMart, PowerCenter, PowerChannel, PowerCenter
Connect, MX, and SuperGlue are trademarks or registered trademarks of Informatica Corporation in the United States and in jurisdictions throughout the
world. All other company and product names may be trade names or trademarks of their respective owners.
DISCLAIMER: Informatica Corporation provides this documentation “as is” without warranty of any kind, either express or implied, including, but not limited
to, the implied warranties of non-infringement, merchantability, or use for a particular purpose. The information provided in this documentation may include
technical inaccuracies or typographical errors. Informatica could make improvements and/or changes in the products described in this documentation at
any time without notice.
2
Informatica Cloud Platform – Building Connectors with the Toolkit Lab Guide
Creating DSS Task
Lab 2 | DSS Task | 10 Minutes
Scenario
Sample Informatica Cloud Connector helps in understanding how to use the connector in DSS tasks and how to change it
through cloud SDK (JDBC Connector). In this lab you will learn how configure a DSS task connecting to MySQL Server instance
using JDBC Driver jar for MySQL.
Goals
In this lab, you will:
 Create a new JDBC Connection
 Create a MySQL Connection
 Create a DSS task following a 6 step wizard
Instructions
1.
Create a new connection with type as JDBC with enterning
appropriate values
• Configure  Connections
• Select ‘New’
3
Informatica Cloud Platform – Building Connectors with the Toolkit Lab Guide
• Follow the screen and fill in the values as indicated in the
following table:
Connection Property
Description
Connection Name
Name of the connection
Description
Give appropriate description for the connection. (example : is this a sandbox or production
connection)
Type
Type of connection. Select JDBC (Informatica Cloud Labs)
Secure Agent
Secure Agent - Informatica Cloud.
Username
The username to use for connecting to the database
Password
The Password to use for connecting to the database
This is the jdbc url for connecting to the database. It will be different for different drivers for
example MySQL it is:
jdbc:mysql://[host][:port]/[database]
Connection URL
e.g. MySQL
jdbc:mysql://127.0.0.1:3306/test
NOTE: If the URL contains special character like '&' then you must URL Encode the special
character. for example instead of & I will write %26
(http://www.w3schools.com/tags/ref_urlenco
de.asp)
4
Informatica Cloud Platform – Building Connectors with the Toolkit Lab Guide
Schema
Jdbc Driver
The database schema in which the tables exist (optional)
The JDBC driver class name. See below for driver classes for different databases
e.g. com.mysql.jdbc.Driver
The directory that contains the jdbc driver jar files.
Jdbc Driver Folder
Identifier Quote
NOTE: The connector will not pick up jars from sub folder; you must specify the exact folder
which contains the driver jars.
Often the sql needs to quoted because the table name or column names contains spaces or
special characters. The connector will use the default string to quote the table/column name.
But this can be overridden.
for MySQL: DEFAULT
Max Column size
2.
Default value is 32768. For large columns (BLOB,CLOB,RAW,NVARCHAR(MAX),IMAGE,
etc.). As a best practice leave this as default and create a separate connection for handling
your large column data and specify a larger value just for that connection. Just be aware that
large values will require that you increase the JVM memory settings (see below)
Create DSS Task for Reading from MySQL Database (Using
JDBC Connector) to write to a flat file
• Create a DSS task: Apps  Data Synchronization
• Select New
5
Informatica Cloud Platform – Building Connectors with the Toolkit Lab Guide
• Label the task
• Select the JDBC Connection you previously created in the
source and in source object select the table from which user
wants to read the data
• In the Target Select a flat file connection (Create a new
connection in case required) and click on create target button
and create a new .csv file using the wizard.
6
Informatica Cloud Platform – Building Connectors with the Toolkit Lab Guide
• Under Data filters click on new button and select the object from
dropdown and then click on fields dropdown and select a field
then choose an operator and appropriate value that needs to be
filtered.
• Under the field mapping section map the required fields.
•
o If required, a lookup can be set up for any particular fields
using the lookup wizard.
Save the task
7