Datatype Mapping Reference - Informatica Documentation/2/IDR_951... · Informatica Data Re...

78
Informatica Data Replication (Version 9.5.1) Datatype Mapping Reference

Transcript of Datatype Mapping Reference - Informatica Documentation/2/IDR_951... · Informatica Data Re...

Informatica Data Replication (Version 9.5.1)

Datatype Mapping Reference

Informatica Data Replication Datatype Mapping Reference

Version 9.5.1August 2013

Copyright (c) 2013 Informatica Corporation. All rights reserved.

This software and documentation contain proprietary information of Informatica Corporation and are provided under a license agreement containing restrictions on use anddisclosure 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 anymeans (electronic, photocopying, recording or otherwise) without prior consent of Informatica Corporation. This Software may be protected by U.S. and/or international Patents andother Patents Pending.

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 DFARS227.7202-1(a) and 227.7702-3(a) (1995), DFARS 252.227-7013©(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 product or documentation is subject to change without notice. If you find any problems in this product or documentation, please report them to us inwriting.

Informatica, Informatica Platform, Informatica Data Services, PowerCenter, PowerCenterRT, PowerCenter Connect, PowerCenter Data Analyzer, PowerExchange, PowerMart,Metadata Manager, Informatica Data Quality, Informatica Data Explorer, Informatica B2B Data Transformation, Informatica B2B Data Exchange Informatica On Demand,Informatica Identity Resolution, Informatica Application Information Lifecycle Management, Informatica Complex Event Processing, Ultra Messaging and Informatica Master DataManagement are trademarks or registered trademarks of Informatica Corporation in the United States and in jurisdictions throughout the world. All other company and productnames may be trade names or trademarks of their respective owners.

Portions of this software and/or documentation are subject to copyright held by third parties, including without limitation: Copyright DataDirect Technologies. All rights reserved.Copyright © Sun Microsystems. All rights reserved. Copyright © RSA Security Inc. All Rights Reserved. Copyright © Ordinal Technology Corp. All rights reserved.Copyright ©Aandacht c.v. All rights reserved. Copyright Genivia, Inc. All rights reserved. Copyright Isomorphic Software. All rights reserved. Copyright © Meta Integration Technology, Inc. Allrights reserved. Copyright © Intalio. All rights reserved. Copyright © Oracle. All rights reserved. Copyright © Adobe Systems Incorporated. All rights reserved. Copyright © DataArt,Inc. All rights reserved. Copyright © ComponentSource. All rights reserved. Copyright © Microsoft Corporation. All rights reserved. Copyright © Rogue Wave Software, Inc. All rightsreserved. Copyright © Teradata Corporation. All rights reserved. Copyright © Yahoo! Inc. All rights reserved. Copyright © Glyph & Cog, LLC. All rights reserved. Copyright ©Thinkmap, Inc. All rights reserved. Copyright © Clearpace Software Limited. All rights reserved. Copyright © Information Builders, Inc. All rights reserved. Copyright © OSS Nokalva,Inc. All rights reserved. Copyright Edifecs, Inc. All rights reserved. Copyright Cleo Communications, Inc. All rights reserved. Copyright © International Organization forStandardization 1986. All rights reserved. Copyright © ej-technologies GmbH. All rights reserved. Copyright © Jaspersoft Corporation. All rights reserved. Copyright © isInternational Business Machines Corporation. All rights reserved. Copyright © yWorks GmbH. All rights reserved. Copyright © Lucent Technologies. All rights reserved. Copyright(c) University of Toronto. All rights reserved. Copyright © Daniel Veillard. All rights reserved. Copyright © Unicode, Inc. Copyright IBM Corp. All rights reserved. Copyright ©MicroQuill Software Publishing, Inc. All rights reserved. Copyright © PassMark Software Pty Ltd. All rights reserved. Copyright © LogiXML, Inc. All rights reserved. Copyright ©2003-2010 Lorenzi Davide, All rights reserved. Copyright © Red Hat, Inc. All rights reserved. Copyright © The Board of Trustees of the Leland Stanford Junior University. All rightsreserved. Copyright © EMC Corporation. All rights reserved. Copyright © Flexera Software. All rights reserved. Copyright © Jinfonet Software. All rights reserved. Copyright © AppleInc. All rights reserved. Copyright © Telerik Inc. All rights reserved. Copyright © BEA Systems. All rights reserved.

This product includes software developed by the Apache Software Foundation (http://www.apache.org/), and/or other software which is licensed under various versions of theApache License (the "License"). You may obtain a copy of these Licenses at http://www.apache.org/licenses/. Unless required by applicable law or agreed to in writing, softwaredistributed under these Licenses is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the Licenses forthe specific language governing permissions and limitations under the Licenses.

This product includes software which was developed by Mozilla (http://www.mozilla.org/), software copyright The JBoss Group, LLC, all rights reserved; software copyright ©1999-2006 by Bruno Lowagie and Paulo Soares and other software which is licensed under various versions of the GNU Lesser General Public License Agreement, which may befound at http://www.gnu.org/licenses/lgpl.html. The materials are provided free of charge by Informatica, "as-is", without warranty of any kind, either express or implied, includingbut not limited to the implied warranties of merchantability and fitness for a particular purpose.

The product includes ACE(TM) and TAO(TM) software copyrighted by Douglas C. Schmidt and his research group at Washington University, University of California, Irvine, andVanderbilt University, Copyright (©) 1993-2006, all rights reserved.

This product includes software developed by the OpenSSL Project for use in the OpenSSL Toolkit (copyright The OpenSSL Project. All Rights Reserved) and redistribution of thissoftware is subject to terms available at http://www.openssl.org and http://www.openssl.org/source/license.html.

This product includes Curl software which is Copyright 1996-2013, Daniel Stenberg, <[email protected]>. All Rights Reserved. Permissions and limitations regarding this softwareare subject to terms available at http://curl.haxx.se/docs/copyright.html. Permission to use, copy, modify, and distribute this software for any purpose with or without fee is herebygranted, provided that the above copyright notice and this permission notice appear in all copies.

The product includes software copyright 2001-2005 (©) MetaStuff, Ltd. All Rights Reserved. Permissions and limitations regarding this software are subject to terms available athttp://www.dom4j.org/license.html.

The product includes software copyright © 2004-2007, The Dojo Foundation. All Rights Reserved. Permissions and limitations regarding this software are subject to terms availableat http://dojotoolkit.org/license.

This product includes ICU software which is copyright International Business Machines Corporation and others. All rights reserved. Permissions and limitations regarding thissoftware are subject to terms available at http://source.icu-project.org/repos/icu/icu/trunk/license.html.

This product includes software copyright © 1996-2006 Per Bothner. All rights reserved. Your right to use such materials is set forth in the license which may be found at http://www.gnu.org/software/kawa/Software-License.html.

This product includes OSSP UUID software which is Copyright © 2002 Ralf S. Engelschall, Copyright © 2002 The OSSP Project Copyright © 2002 Cable & Wireless Deutschland.Permissions and limitations regarding this software are subject to terms available at http://www.opensource.org/licenses/mit-license.php.

This product includes software developed by Boost (http://www.boost.org/) or under the Boost software license. Permissions and limitations regarding this software are subject toterms available at http://www.boost.org/LICENSE_1_0.txt.

This product includes software copyright © 1997-2007 University of Cambridge. Permissions and limitations regarding this software are subject to terms available at http://www.pcre.org/license.txt.

This product includes software copyright © 2007 The Eclipse Foundation. All Rights Reserved. Permissions and limitations regarding this software are subject to terms available athttp://www.eclipse.org/org/documents/epl-v10.php and at http://www.eclipse.org/org/documents/edl-v10.php.

This product includes software licensed under the terms at http://www.tcl.tk/software/tcltk/license.html, http://www.bosrup.com/web/overlib/?License, http://www.stlport.org/doc/license.html, http://asm.ow2.org/license.html, http://www.cryptix.org/LICENSE.TXT, http://hsqldb.org/web/hsqlLicense.html, http://httpunit.sourceforge.net/doc/license.html,http://jung.sourceforge.net/license.txt , http://www.gzip.org/zlib/zlib_license.html, http://www.openldap.org/software/release/license.html, http://www.libssh2.org, http://slf4j.org/license.html, http://www.sente.ch/software/OpenSourceLicense.html, http://fusesource.com/downloads/license-agreements/fuse-message-broker-v-5-3- license-agreement;http://antlr.org/license.html; http://aopalliance.sourceforge.net/; http://www.bouncycastle.org/licence.html; http://www.jgraph.com/jgraphdownload.html; http://www.jcraft.com/jsch/LICENSE.txt; http://jotm.objectweb.org/bsd_license.html; http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231; http://www.slf4j.org/license.html; http://nanoxml.sourceforge.net/orig/copyright.html; http://www.json.org/license.html; http://forge.ow2.org/projects/javaservice/, http://www.postgresql.org/about/licence.html, http://

www.sqlite.org/copyright.html, http://www.tcl.tk/software/tcltk/license.html, http://www.jaxen.org/faq.html, http://www.jdom.org/docs/faq.html, http://www.slf4j.org/license.html;http://www.iodbc.org/dataspace/iodbc/wiki/iODBC/License; http://www.keplerproject.org/md5/license.html; http://www.toedter.com/en/jcalendar/license.html; http://www.edankert.com/bounce/index.html; http://www.net-snmp.org/about/license.html; http://www.openmdx.org/#FAQ; http://www.php.net/license/3_01.txt; http://srp.stanford.edu/license.txt; http://www.schneier.com/blowfish.html; http://www.jmock.org/license.html; http://xsom.java.net; and http://benalman.com/about/license/; https://github.com/CreateJS/EaselJS/blob/master/src/easeljs/display/Bitmap.js; http://www.h2database.com/html/license.html#summary; http://jsoncpp.sourceforge.net/LICENSE; http://freemarker.org/docs/app_license.html; http://www.dnsjava.org/; http://jline.sourceforge.net/license.html; http://www.xmlpull.org/v1/download/unpacked/LICENSE.txt; and http://jtidy.sourceforge.net/license.html.

This product includes software licensed under the Academic Free License (http://www.opensource.org/licenses/afl-3.0.php), the Common Development and Distribution License(http://www.opensource.org/licenses/cddl1.php) the Common Public License (http://www.opensource.org/licenses/cpl1.0.php), the Sun Binary Code License AgreementSupplemental License Terms, the BSD License (http://www.opensource.org/licenses/bsd-license.php) the MIT License (http://www.opensource.org/licenses/mit-license.php), theArtistic License (http://www.opensource.org/licenses/artistic-license-1.0) and the Initial Developer’s Public License Version 1.0 (http://www.firebirdsql.org/en/initial-developer-s-public-license-version-1-0/).

This product includes software copyright © 2003-2006 Joe WaInes, 2006-2007 XStream Committers. All rights reserved. Permissions and limitations regarding this software aresubject to terms available at http://xstream.codehaus.org/license.html. This product includes software developed by the Indiana University Extreme! Lab. For further informationplease visit http://www.extreme.indiana.edu/.

This Software is protected by U.S. Patent Numbers 5,794,246; 6,014,670; 6,016,501; 6,029,178; 6,032,158; 6,035,307; 6,044,374; 6,092,086; 6,208,990; 6,339,775; 6,640,226;6,789,096; 6,820,077; 6,823,373; 6,850,947; 6,895,471; 7,117,215; 7,162,643; 7,243,110, 7,254,590; 7,281,001; 7,421,458; 7,496,588; 7,523,121; 7,584,422; 7676516; 7,720,842; 7,721,270; and 7,774,791, international Patents and other Patents Pending.

DISCLAIMER: Informatica Corporation provides this documentation "as is" without warranty of any kind, either express or implied, including, but not limited to, the impliedwarranties of noninfringement, merchantability, or use for a particular purpose. Informatica Corporation does not warrant that this software or documentation is error free. Theinformation provided in this software or documentation may include technical inaccuracies or typographical errors. The information in this software and documentation is subject tochange at any time without notice.

NOTICES

This Informatica product (the "Software") includes certain drivers (the "DataDirect Drivers") from DataDirect Technologies, an operating company of Progress Software Corporation("DataDirect") which are subject to the following terms and conditions:

1.THE DATADIRECT DRIVERS ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITEDTO, THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.

2. IN NO EVENT WILL DATADIRECT OR ITS THIRD PARTY SUPPLIERS BE LIABLE TO THE END-USER CUSTOMER FOR ANY DIRECT, INDIRECT, INCIDENTAL,SPECIAL, CONSEQUENTIAL OR OTHER DAMAGES ARISING OUT OF THE USE OF THE ODBC DRIVERS, WHETHER OR NOT INFORMED OF THEPOSSIBILITIES OF DAMAGES IN ADVANCE. THESE LIMITATIONS APPLY TO ALL CAUSES OF ACTION, INCLUDING, WITHOUT LIMITATION, BREACH OFCONTRACT, BREACH OF WARRANTY, NEGLIGENCE, STRICT LIABILITY, MISREPRESENTATION AND OTHER TORTS.

Part Number: IDR-DMR-95100-0001

Table of Contents

Preface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . iiiInformatica Resources. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . iii

Informatica My Support Portal. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . iii

Informatica Documentation. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . iii

Informatica Web Site. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . iii

Informatica How-To Library. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . iii

Informatica Knowledge Base. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . iv

Informatica Support YouTube Channel. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . iv

Informatica Marketplace. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . iv

Informatica Velocity. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . iv

Informatica Global Customer Support. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . iv

Chapter 1: Overview. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1Mapping Reference Overview. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1

Chapter 2: Datatype Mappings for DB2 for Linux, UNIX, and Windows Sources. . . . . . 2DB2 for Linux, UNIX, and Windows Source and DB2 Target. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2

DB2 for Linux, Unix, and Windows Source and Greenplum Target. . . . . . . . . . . . . . . . . . . . . . . . . . 4

DB2 for Linux, UNIX, and Windows Source and Microsoft SQL Server Target. . . . . . . . . . . . . . . . . . . 5

DB2 for Linux, UNIX, and Windows Source and MySQL Target. . . . . . . . . . . . . . . . . . . . . . . . . . . . 6

DB2 for Linux, UNIX, and Windows Source and Netezza Target. . . . . . . . . . . . . . . . . . . . . . . . . . . . 8

DB2 for Linux, UNIX, and Windows Source and Oracle Target. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9

DB2 Source and PostgreSQL Target. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10

DB2 for Linux, UNIX, and Windows Source and Sybase ASE Target. . . . . . . . . . . . . . . . . . . . . . . . 12

DB2 for Linux, UNIX, and Windows Source and Teradata Target. . . . . . . . . . . . . . . . . . . . . . . . . . 13

DB2 for Linux, UNIX, and Windows Source and Vertica Target. . . . . . . . . . . . . . . . . . . . . . . . . . . . 15

Unsupported DB2 Datatypes. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16

Chapter 3: Datatype Mappings for Microsoft SQL Server Sources. . . . . . . . . . . . . . . . . . 17Microsoft SQL Server Source and DB2 for Linux, UNIX, and Windows Target. . . . . . . . . . . . . . . . . . 17

Microsoft SQL Server Source and Greenplum Target. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20

Microsoft SQL Server Source and Microsoft SQL Server Target. . . . . . . . . . . . . . . . . . . . . . . . . . . 21

Microsoft SQL Server Source and MySQL Target. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23

Microsoft SQL Server Source and Netezza Target. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24

Microsoft SQL Server Source and Oracle Target. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26

Microsoft SQL Server Source and PostgreSQL Target. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27

Microsoft SQL Server Source and Sybase ASE Target. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29

Microsoft SQL Server Source and Teradata Target. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30

Table of Contents i

Microsoft SQL Server Source and Vertica Target. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32

Unsupported Microsoft SQL Server Datatypes. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33

Chapter 4: Datatype Mappings for Oracle Sources. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35Oracle Source and DB2 for Linux, UNIX, and Windows Target. . . . . . . . . . . . . . . . . . . . . . . . . . . . 35

Oracle Source and Greenplum Target. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37

Oracle Source and Microsoft SQL Server Target. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38

Oracle Source and MySQL Target. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40

Oracle Source and Netezza Target. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41

Oracle Source and Oracle Target. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42

Oracle Source and PostgreSQL Target. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44

Oracle Source and Sybase ASE Target. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45

Oracle Source and Teradata Target. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47

Oracle Source and Vertica Target. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48

Unsupported Oracle Datatypes. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50

Chapter 5: Datatype Mappings for Sybase ASE Sources. . . . . . . . . . . . . . . . . . . . . . . . . . . 51Sybase ASE Source and DB2 for Linux, UNIX, and Windows Target. . . . . . . . . . . . . . . . . . . . . . . . 51

Sybase ASE Source and Greenplum Target. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54

Sybase ASE Source and Microsoft SQL Server Target. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56

Sybase ASE Source and MySQL Target. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57

Sybase ASE Source and Netezza Target. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59

Sybase ASE Source and Oracle Target. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 60

Sybase ASE Source and PostgreSQL Target. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62

Sybase ASE Source and Sybase ASE Target. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 63

Sybase ASE Source and Teradata Target. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 65

Sybase ASE Source and Vertica Target. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 66

Unsupported Sybase ASE Datatypes. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 67

Index. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 68

ii Table of Contents

PrefaceThis Informatica Data Replication Datatype Mapping Reference describes datatype mappings that Data Replicationsupports for different source and target database combinations.

This guide is intended for system administrators, DBAs, and those who are responsible for configuring andadministering data replication jobs.

Informatica Resources

Informatica My Support PortalAs an Informatica customer, you can access the Informatica My Support Portal at http://mysupport.informatica.com.

The site contains product information, user group information, newsletters, access to the Informatica customersupport case management system (ATLAS), the Informatica How-To Library, the Informatica Knowledge Base,Informatica Product Documentation, and access to the Informatica user community.

Informatica DocumentationThe Informatica Documentation team takes every effort to create accurate, usable documentation. If you havequestions, comments, or ideas about this documentation, contact the Informatica Documentation team through emailat [email protected]. We will use your feedback to improve our documentation. Let us know if wecan contact you regarding your comments.

The Documentation team updates documentation as needed. To get the latest documentation for your product,navigate to Product Documentation from http://mysupport.informatica.com.

Informatica Web SiteYou can access the Informatica corporate web site at http://www.informatica.com. The site contains information aboutInformatica, its background, upcoming events, and sales offices. You will also find product and partner information.The services area of the site includes important information about technical support, training and education, andimplementation services.

Informatica How-To LibraryAs an Informatica customer, you can access the Informatica How-To Library at http://mysupport.informatica.com. TheHow-To Library is a collection of resources to help you learn more about Informatica products and features. It includesarticles and interactive demonstrations that provide solutions to common problems, compare features and behaviors,and guide you through performing specific real-world tasks.

iii

Informatica Knowledge BaseAs an Informatica customer, you can access the Informatica Knowledge Base at http://mysupport.informatica.com.Use the Knowledge Base to search for documented solutions to known technical issues about Informatica products.You can also find answers to frequently asked questions, technical white papers, and technical tips. If you havequestions, comments, or ideas about the Knowledge Base, contact the Informatica Knowledge Base team throughemail at [email protected].

Informatica Support YouTube ChannelYou can access the Informatica Support YouTube channel at http://www.youtube.com/user/INFASupport. TheInformatica Support YouTube channel includes videos about solutions that guide you through performing specifictasks. If you have questions, comments, or ideas about the Informatica Support YouTube channel, contact theSupport YouTube team through email at [email protected] or send a tweet to @INFASupport.

Informatica MarketplaceThe Informatica Marketplace is a forum where developers and partners can share solutions that augment, extend, orenhance data integration implementations. By leveraging any of the hundreds of solutions available on theMarketplace, you can improve your productivity and speed up time to implementation on your projects. You canaccess Informatica Marketplace at http://www.informaticamarketplace.com.

Informatica VelocityYou can access Informatica Velocity at http://mysupport.informatica.com. Developed from the real-world experienceof hundreds of data management projects, Informatica Velocity represents the collective knowledge of ourconsultants who have worked with organizations from around the world to plan, develop, deploy, and maintainsuccessful data management solutions. If you have questions, comments, or ideas about Informatica Velocity,contact Informatica Professional Services at [email protected].

Informatica Global Customer SupportYou can contact a Customer Support Center by telephone or through the Online Support. Online Support requires auser name and password. You can request a user name and password at http://mysupport.informatica.com.

iv Preface

Use the following telephone numbers to contact Informatica Global Customer Support:

North America / South America Europe / Middle East / Africa Asia / Australia

Toll FreeBrazil 0800 891 0202Mexico 001 888 209 8853North America +1 877 463 2435

Toll FreeFrance 0805 804632Germany 0800 5891281Italy 800 915 985Netherlands 0800 2300001Portugal 800 208 360Spain 900 813 166Switzerland 0800 463 200United Kingdom 0800 023 4632

Standard RateBelgium +31 30 6022 797France +33 1 4138 9226Germany +49 1805 702702Netherlands +31 30 6022 797United Kingdom +44 1628 511445

Toll FreeAustralia 1 800 120 365Asia Pacific 00 080 00016360China 400 810 0900

Preface v

vi

C H A P T E R 1

OverviewThis chapter includes the following topic:

¨ Mapping Reference Overview, 1

Mapping Reference OverviewThe Data Replication Datatype Mapping Reference describes recommended datatype mappings for all combinationsof supported sources and targets.

Data Replication uses these datatype mappings to generate a target schema based on a source schema and toreplicate CREATE TABLE and ADD COLUMN DDL changes. Data Replication defines the datatype mappings in theDataReplication_installation\uiconf\DataTypes.xml file.

If you create target tables manually, Informatica recommends that you use the target datatypes that are documentedin this reference for your source datatypes to perform accurate change data replication.

If a source datatype is not listed, Data Replication either cannot extract data from the source columns with thisdatatype or cannot apply the extracted data to any appropriate target datatype.

1

C H A P T E R 2

Datatype Mappings for DB2 forLinux, UNIX, and Windows Sources

This chapter includes the following topics:

¨ DB2 for Linux, UNIX, and Windows Source and DB2 Target, 2

¨ DB2 for Linux, Unix, and Windows Source and Greenplum Target, 4

¨ DB2 for Linux, UNIX, and Windows Source and Microsoft SQL Server Target, 5

¨ DB2 for Linux, UNIX, and Windows Source and MySQL Target, 6

¨ DB2 for Linux, UNIX, and Windows Source and Netezza Target, 8

¨ DB2 for Linux, UNIX, and Windows Source and Oracle Target, 9

¨ DB2 Source and PostgreSQL Target, 10

¨ DB2 for Linux, UNIX, and Windows Source and Sybase ASE Target, 12

¨ DB2 for Linux, UNIX, and Windows Source and Teradata Target, 13

¨ DB2 for Linux, UNIX, and Windows Source and Vertica Target, 15

¨ Unsupported DB2 Datatypes, 16

DB2 for Linux, UNIX, and Windows Source and DB2Target

The following table identifies the recommended datatype mappings for Data Replication configurations with a DB2 forLinux, UNIX, and Windows source and a DB2 target:

DB2 Source Datatype DB2 Target Datatype Comments

BIGINT BIGINT -

BLOB BLOB Maximum supported size is 50 MB.Data Replication does not extract LOBdata from compressed rows.

CHAR CHAR -

2

DB2 Source Datatype DB2 Target Datatype Comments

CLOB CLOB Maximum supported size is 50 MB.Data Replication does not extract LOBdata from compressed rows.

DATE DATE -

DBCLOB DBCLOB Maximum supported size is 50 MB.Data Replication does not extract LOBdata from compressed rows.

DECFLOAT DECFLOAT -

DECIMAL DECIMAL -

DOUBLE DOUBLE -

GRAPHIC GRAPHIC -

INTEGER INTEGER -

LONG VARCHAR LONG VARCHAR Maximum supported size is 50 MB.Data Replication does not extractLONG VARCHAR data fromcompressed rows.

LONG VARGRAPHIC LONG VARGRAPHIC Maximum supported size is 50 MB.Data Replication does not extractLONG VARGRAPHIC data fromcompressed rows.

REAL REAL -

SMALLINT SMALLINT -

TIME TIME -

TIMESTAMP TIMESTAMP -

VARCHAR VARCHAR -

VARGRAPHIC VARGRAPHIC -

DB2 for Linux, UNIX, and Windows Source and DB2 Target 3

DB2 for Linux, Unix, and Windows Source andGreenplum Target

The following table identifies the recommended datatype mappings for Data Replication configurations with a DB2 forLinux, UNIX, and Windows source and a Greenplum target:

DB2 Source Datatype Greenplum Target Datatype1 Comments

BIGINT BIGINT -

BLOB BYTEA Maximum supported size is 50 MB.Data Replication does not extract LOBdata from compressed rows.

CHAR CHAR(n) -

CLOB VARCHAR(n) Maximum supported size is 50 MB.Data Replication does not extract LOBdata from compressed rows.

DATE DATE -

DBCLOB VARCHAR(n) Maximum supported size is 50 MB.Data Replication does not extract LOBdata from compressed rows.

DECFLOAT VARCHAR(45) -

DECIMAL NUMERIC(p,s) -

DOUBLE DOUBLE PRECISION -

GRAPHIC CHAR(n) -

INTEGER INTEGER -

LONG VARCHAR VARCHAR(n) Maximum supported size is 50 MB.Data Replication does not extractLONG VARCHAR data fromcompressed rows.

LONG VARGRAPHIC TEXT Maximum supported size is 50 MB.Data Replication does not extractLONG VARGRAPHIC data fromcompressed rows.

REAL REAL -

SMALLINT SMALLINT -

TIME TIME WITHOUT TIME ZONE -

TIMESTAMP TIMESTAMP WITHOUT TIME ZONE -

4 Chapter 2: Datatype Mappings for DB2 for Linux, UNIX, and Windows Sources

DB2 Source Datatype Greenplum Target Datatype1 Comments

VARCHAR VARCHAR(n) -

VARGRAPHIC VARCHAR(n) -

1. In this table, (p,s) represents precision and scale.

DB2 for Linux, UNIX, and Windows Source and MicrosoftSQL Server Target

The following table identifies the recommended datatype mappings for Data Replication configurations with a DB2 forLinux, UNIX, and Windows source and a Microsoft SQL Server target:

DB2 Source Datatype Microsoft SQL Server TargetDatatype

Comments

BIGINT bigint -

BLOB - varbinary if the source column size isgreater than 1 byte and less than 8000bytes

- varbinary(max) if the source columnsize is greater than 8000 bytes

Maximum supported size is 50 MB.Data Replication does not extract LOBdata from compressed rows.

CHAR char -

CLOB - varchar(n) if the source column lengthis greater than 1 and less than 8000characters

- varchar(max) if the source columnlength is greater than 8000 characters

Maximum supported size is 50 MB.Data Replication does not extract LOBdata from compressed rows.

DATE date -

DBCLOB - varchar(n) if the source column lengthis greater than 1 and less than 8000characters

- varchar(max) if the source columnlength is greater than 8000 characters

Maximum supported size is 50 MB.Data Replication does not extract LOBdata from compressed rows.

DECFLOAT varchar(45) -

DECIMAL numeric -

DOUBLE float(53) -

GRAPHIC nchar -

INTEGER int -

DB2 for Linux, UNIX, and Windows Source and Microsoft SQL Server Target 5

DB2 Source Datatype Microsoft SQL Server TargetDatatype

Comments

LONG VARCHAR varchar(max) Maximum supported size is 50 MB.Data Replication does not extractLONG VARCHAR data fromcompressed rows.

LONG VARGRAPHIC nvarchar(max) Maximum supported size is 50 MB.Data Replication does not extractLONG VARGRAPHIC data fromcompressed rows.

REAL real -

SMALLINT smallint -

TIME time -

TIMESTAMP datetime2 -

VARCHAR(n) - varchar(n)- varchar(max) if the source column

size is greater than 8000 bytes

-

VARGRAPHIC ntext -

DB2 for Linux, UNIX, and Windows Source and MySQLTarget

The following table identifies the recommended datatype mappings for Data Replication configurations with a DB2 forLinux, UNIX, and Windows source and a MySQL target:

DB2 Source Datatype MySQL Target Datatype Comments

BIGINT BIGINT -

BLOB BLOB Maximum supported size is 50 MB.Data Replication does not extract LOBdata from compressed rows.

CHAR CHAR -

CLOB TEXT Maximum supported size is 50 MB.Data Replication does not extract LOBdata from compressed rows.

DATE DATE -

6 Chapter 2: Datatype Mappings for DB2 for Linux, UNIX, and Windows Sources

DB2 Source Datatype MySQL Target Datatype Comments

DBCLOB TEXT Maximum supported size is 50 MB.Data Replication does not extract LOBdata from compressed rows.

DECFLOAT VARCHAR(45) -

DECIMAL DECIMAL -

DOUBLE DOUBLE PRECISION -

GRAPHIC CHAR -

INTEGER INT -

LONG VARCHAR TEXT Maximum supported size is 50 MB.Data Replication does not extractLONG VARCHAR data fromcompressed rows.

LONG VARGRAPHIC TEXT Maximum supported size is 50 MB.Data Replication does not extractLONG VARGRAPHIC data fromcompressed rows.

REAL REAL -

SMALLINT SMALLINT -

TIME TIME -

TIMESTAMP DATETIME -

VARCHAR - VARCHAR(n) if the source columnlength is less than or equal to 255characters

- TEXT if the source column length isgreater than 255 characters

-

VARGRAPHIC - VARCHAR if the source column lengthis less than 128 characters

- TEXT if the source column length isgreater than 127 characters

-

DB2 for Linux, UNIX, and Windows Source and MySQL Target 7

DB2 for Linux, UNIX, and Windows Source and NetezzaTarget

The following table identifies the recommended datatype mappings for Data Replication configurations with a DB2 forLinux, UNIX, and Windows source and a Netezza target:

DB2 Source Datatype Netezza Target Datatype Comments

BIGINT BIGINT -

CHAR CHAR -

CLOB - VARCHAR(n) if the source columnlength is less than or equal to 16000characters

- VARCHAR(16000) if the sourcecolumn length is greater than 16000characters

Maximum supported size is 50 MB.Data Replication does not extract LOBdata from compressed rows.

DATE DATE -

DBCLOB - NVARCHAR(n) if the source columnlength is less than or equal to 16000characters

- NVARCHAR(16000) if the sourcecolumn length is greater than 16000characters

Maximum supported size is 50 MB.Data Replication does not extract LOBdata from compressed rows.

DECFLOAT VARCHAR(45) -

DECIMAL NUMERIC -

DOUBLE DOUBLE PRECISION -

GRAPHIC NCHAR -

INTEGER INTEGER -

REAL FLOAT -

SMALLINT SMALLINT -

TIME TIME -

TIMESTAMP TIMESTAMP -

VARCHAR VARCHAR -

VARGRAPHIC NVARCHAR -

8 Chapter 2: Datatype Mappings for DB2 for Linux, UNIX, and Windows Sources

Notes:

¨ Because the maximum row size for Netezza is 65535 bytes, the Data Replication does not support replication ofDB2 LONG VARCHAR and LONG VARGRAPHIC datatypes to Netezza targets.

Workaround: If the source LONG VARCHAR and LONG VARGRAPHIC values are small, and the row size in theaudit log table that includes the corresponding before image and after image columns does not exceed themaximum Netezza row size, you can manually generate the target schema. Create a SQL script for generating thetarget schema based on the source schema from the Data Replication Console. In the script, edit the size of theVARCHAR and NVARCHAR columns that correspond to the source LONG VARCHAR and LONG VARGRAPHICcolumns. Then execute the edited script to generate the target schema.

¨ Because Netezza does not use binary dataypes, Data Replication does not support replication of DB2 BLOBdatatype to Netezza targets.

DB2 for Linux, UNIX, and Windows Source and OracleTarget

The following table identifies the recommended datatype mappings for Data Replication configurations with a DB2 forLinux, UNIX, and Windows source and an Oracle target:

DB2 Source Datatype1 Oracle Target Datatype1 Comments

BIGINT NUMBER(19,0) -

BLOB BLOB Maximum supported size is 50 MB.Data Replication does not extract LOBdata from compressed rows.

CHAR(n) CHAR(n) -

CLOB CLOB Maximum supported size is 50 MB.Data Replication does not extract LOBdata from compressed rows.

DATE DATE -

DBCLOB CLOB Maximum supported size is 50 MB.Data Replication does not extract LOBdata from compressed rows.

DECFLOAT VARCHAR(45) -

DECIMAL(p,s) NUMBER(p,s) -

DOUBLE FLOAT(53) -

GRAPHIC VARCHAR2 -

INTEGER NUMBER(10,0) -

DB2 for Linux, UNIX, and Windows Source and Oracle Target 9

DB2 Source Datatype1 Oracle Target Datatype1 Comments

LONG VARCHAR - VARCHAR2 if the source column sizeis less than or equal to 2000 bytes

- CLOB if the source column size isgreater than 2000 bytes

Maximum supported size is 50 MB.Data Replication does not extractLONG VARCHAR data fromcompressed rows.

LONG VARGRAPHIC CLOB Maximum supported size is 50 MB.Data Replication does not extractLONG VARGRAPHIC data fromcompressed rows.

REAL FLOAT(24) -

SMALLINT NUMBER(5,0) -

TIME TIMESTAMP(0) -

TIMESTAMP TIMESTAMP(6) -

VARCHAR - VARCHAR2 if the source column sizeis less than or equal to 2000 bytes

- CLOB if the source column size isgreater than 2000 bytes

-

VARGRAPHIC - VARCHAR2 if the source column sizeis less than or equal to 2000 bytes

- CLOB if the source column size isgreater than 2000 bytes

-

1. In this table, (p,s) represents precision and scale.

DB2 Source and PostgreSQL TargetThe following table identifies the recommended datatype mappings for Data Replication configurations with a DB2 forLinux, UNIX, and Windows source and a PostgreSQL target:

DB2 Source Datatype PostgreSQL Target Datatype Comments

BIGINT BIGINT -

BLOB BYTEA Maximum supported size is 50 MB.Data Replication does not extract LOBdata from compressed rows.

CHAR(n) CHAR -

CLOB TEXT Maximum supported size is 50 MB.Data Replication does not extract LOBdata from compressed rows.

10 Chapter 2: Datatype Mappings for DB2 for Linux, UNIX, and Windows Sources

DB2 Source Datatype PostgreSQL Target Datatype Comments

DATE DATE -

DBCLOB TEXT Maximum supported size is 50 MB.Data Replication does not extract LOBdata from compressed rows.

DECFLOAT VARCHAR(45) -

DECIMAL NUMERIC -

DOUBLE DOUBLE PRECISION -

GRAPHIC CHAR -

INTEGER INTEGER -

LONG VARCHAR VARCHAR Maximum supported size is 50 MB.Data Replication does not extractLONG VARCHAR data fromcompressed rows.

LONG VARGRAPHIC VARCHAR Maximum supported size is 50 MB.Data Replication does not extractLONG VARGRAPHIC data fromcompressed rows.

REAL REAL -

SMALLINT SMALLINT -

TIME TIME -

TIMESTAMP TIMESTAMP -

VARCHAR VARCHAR -

VARGRAPHIC VARCHAR -

DB2 Source and PostgreSQL Target 11

DB2 for Linux, UNIX, and Windows Source and SybaseASE Target

The following table identifies the recommended datatype mappings for Data Replication configurations with a DB2 forLinux, UNIX, and Windows source and a Sybase ASE target:

DB2 Source Datatype Sybase ASE Target Datatype Comments

BIGINT bigint -

BLOB image Maximum supported size is 50 MB.Data Replication does not extract LOBdata from compressed rows.

CHAR - char(n) if the source column size isless than or equal to 4000 bytes

- text if the source column size isgreater than 4000 bytes

-

CLOB text Maximum supported size is 50 MB.Data Replication does not extract LOBdata from compressed rows.

DATE date -

DBCLOB text Maximum supported size is 50 MB.Data Replication does not extract LOBdata from compressed rows.

DECFLOAT varchar(45) -

DECIMAL numeric -

DOUBLE float -

GRAPHIC text -

INTEGER int -

LONG VARCHAR - varchar(n) if the source column size isless than or equal to 4000 bytes

- text if the source column size isgreater than 4000 bytes

Maximum supported size is 50 MB.Data Replication does not extractLONG VARCHAR data fromcompressed rows.

LONG VARGRAPHIC text Maximum supported size is 50 MB.Data Replication does not extractLONG VARGRAPHIC data fromcompressed rows.

REAL real -

SMALLINT smallint -

TIME time -

12 Chapter 2: Datatype Mappings for DB2 for Linux, UNIX, and Windows Sources

DB2 Source Datatype Sybase ASE Target Datatype Comments

TIMESTAMP datetime -

VARCHAR - varchar(n) if the source column size isless than or equal to 4000 bytes

- text if the source column size isgreater than 4000 bytes

-

VARGRAPHIC text -

DB2 for Linux, UNIX, and Windows Source and TeradataTarget

The following table identifies the recommended datatype mappings for Data Replication configurations with a DB2 forLinux, UNIX, and Windows source and a Teradata target:

DB2 Source Datatype Teradata Target Datatype Comments

BIGINT BIGINT -

BLOB VARBYTE(16000) The target value is truncated to thesize that is specified in theapply.mpp_load_lob_truncation_sizeruntime parameter.

CHAR CHAR[(n)] -

CLOB VARCHAR(16000) The target value is truncated to thesize that is specified in theapply.mpp_load_lob_truncation_sizeruntime parameter.

DATE DATE -

DBCLOB CHAR[(n)] Maximum extracted size is 50 MB.Data Replication does not extract LOBdata from compressed rows.By default, the Data ReplicationConsole maps GRAPHIC columns toVARGRAPHIC columns in Teradatatargets and the Applier ends with anerror when processing these columns.Workaround: Map VARGRAPHICcolumns to CHAR CHARACTER SETUNICODE columns.

DECFLOAT VARCHAR(45) -

DECIMAL DECIMAL[(n[,m])] -

DB2 for Linux, UNIX, and Windows Source and Teradata Target 13

DB2 Source Datatype Teradata Target Datatype Comments

DOUBLE FLOAT -

GRAPHIC CHAR[(n)] By default, the Data ReplicationConsole maps GRAPHIC columns toVARGRAPHIC columns in Teradatatargets and the Applier ends with anerror when processing these columns.Workaround: Map VARGRAPHICcolumns to CHAR CHARACTER SETUNICODE columns.

INTEGER INTEGER -

LONG VARCHAR VARCHAR(n) Maximum supported size is 50 MB.Data Replication does not extractLONG VARCHAR data fromcompressed rows.

LONG VARGRAPHIC VARCHAR(n) Maximum supported size is 50 MB.Data Replication does not extractLONG VARGRAPHIC data fromcompressed rows.By default, the Data ReplicationConsole maps LONG VARGRAPHICcolumns to VARGRAPHIC columns inTeradata targets and the Applier endswith an error when processing thesecolumns.Workaround: Map VARGRAPHICcolumns to VARCHAR CHARACTERSET UNICODE columns.

REAL FLOAT -

SMALLINT SMALLINT -

TIME TIME[(n)] -

TIMESTAMP TIMESTAMP[(n)] -

VARCHAR VARCHAR(n) -

VARGRAPHIC VARCHAR(n) By default, the Data ReplicationConsole maps VARGRAPHICcolumns to VARGRAPHIC columns inTeradata targets and the Applier endswith an error when processing thesecolumns.Workaround: Map VARGRAPHICcolumns to VARCHAR CHARACTERSET UNICODE columns.

14 Chapter 2: Datatype Mappings for DB2 for Linux, UNIX, and Windows Sources

DB2 for Linux, UNIX, and Windows Source and VerticaTarget

The following table identifies the recommended datatype mappings for Data Replication configurations with a DB2 forLinux, UNIX, and Windows source and a Vertica target:

DB2 Source Datatype Vertica Target Datatype Comments

BIGINT INTEGER -

BLOB - VARBINARY(n) if the source columnsize is less than or equal to 65000bytes

- VARBINARY(65000) if the sourcecolumn size is greater than 65000bytes

Maximum supported size is 50 MB.Data Replication does not extract LOBdata from compressed rows.

CHAR CHAR -

CLOB - VARCHAR(n) if the source columnlength is less than or equal to 65000characters

- VARCHAR(65000) if the sourcecolumn length is greater than 65000characters

Maximum supported size is 50 MB.Data Replication does not extract LOBdata from compressed rows.

DATE DATE -

DBCLOB - VARCHAR(n) if the source columnlength is less than or equal to 65000characters

- VARCHAR(65000) if the sourcecolumn length is greater than 65000characters

Maximum supported size is 50 MB.Data Replication does not extract LOBdata from compressed rows.

DECFLOAT VARCHAR(45) -

DECIMAL NUMERIC -

DOUBLE FLOAT -

GRAPHIC CHAR -

INTEGER INTEGER -

LONG VARCHAR VARCHAR Maximum supported size is 50 MB.Data Replication does not extractLONG VARCHAR data fromcompressed rows.

LONG VARGRAPHIC VARCHAR Maximum supported size is 50 MB.Data Replication does not extractLONG VARGRAPHIC data fromcompressed rows.

REAL FLOAT -

DB2 for Linux, UNIX, and Windows Source and Vertica Target 15

DB2 Source Datatype Vertica Target Datatype Comments

SMALLINT INTEGER -

TIME TIME -

TIMESTAMP TIMESTAMP -

VARCHAR VARCHAR -

VARGRAPHIC VARCHAR -

Unsupported DB2 DatatypesData Replication does not support data extraction for the following DB2 source datatypes:

¨ CHAR FOR BIT DATA

¨ Spacial datatypes

¨ User-defined datatypes

¨ VARCHAR FOR BIT DATA

¨ XML

16 Chapter 2: Datatype Mappings for DB2 for Linux, UNIX, and Windows Sources

C H A P T E R 3

Datatype Mappings for MicrosoftSQL Server Sources

This chapter includes the following topics:

¨ Microsoft SQL Server Source and DB2 for Linux, UNIX, and Windows Target, 17

¨ Microsoft SQL Server Source and Greenplum Target, 20

¨ Microsoft SQL Server Source and Microsoft SQL Server Target, 21

¨ Microsoft SQL Server Source and MySQL Target, 23

¨ Microsoft SQL Server Source and Netezza Target, 24

¨ Microsoft SQL Server Source and Oracle Target, 26

¨ Microsoft SQL Server Source and PostgreSQL Target, 27

¨ Microsoft SQL Server Source and Sybase ASE Target, 29

¨ Microsoft SQL Server Source and Teradata Target, 30

¨ Microsoft SQL Server Source and Vertica Target, 32

¨ Unsupported Microsoft SQL Server Datatypes, 33

Microsoft SQL Server Source and DB2 for Linux, UNIX,and Windows Target

The following table identifies the recommended datatype mappings for Data Replication configurations with aMicrosoft SQL Server source and a DB2 for Linux, UNIX, and Windows target:

Microsoft SQL Server SourceDatatype1

DB2 Target Datatype Comments

bigint BIGINT -

bit SMALLINT -

17

Microsoft SQL Server SourceDatatype1

DB2 Target Datatype Comments

binary - CHAR FOR BIT DATA if the sourcecolumn size is less than or equal to124 bytes.

- BLOB(1G) if the the source columnsize is greater than 124 bytes and theapply.db2.create_lob_nologgingparameter is set to 0.

- BLOB(2G) NOT LOGGED if the thesource column size is greater than 124bytes and theapply.db2.create_lob_nologgingparameter is set to 1.

-

char - CHAR if the source column size is lessthan or equal to 254 bytes.

- VARCHAR if the source column size isgreater than 254 bytes.

-

date DATE -

datetime TIMESTAMP -

datetime2 TIMESTAMP -

datetimeoffset TIMESTAMP -

decimal(p,s) - DECIMAL if p is less than or equal to31.

- VARCHAR(42) if p is greater than 31.

-

float DOUBLE -

image - BLOB(1G) if theapply.db2.create_lob_nologgingparameter is set to 0.

- BLOB(2G) NOT LOGGED if theapply.db2.create_lob_nologgingparameter is set to 1.

Maximum supported size is 50 MB.

int INTEGER -

money DECIMAL(19,4) -

nchar - GRAPHIC if the source column size isless than or equal to 127 bytes.

- VARGRAPHIC if the source columnsize is greater than 127 bytes.

-

ntext - CLOB(1G) if theapply.db2.create_lob_nologgingparameter is set to 0.

- CLOB(2G) NOT LOGGED if theapply.db2.create_lob_nologgingparameter is set to 1.

Maximum supported size is 50 MB.

18 Chapter 3: Datatype Mappings for Microsoft SQL Server Sources

Microsoft SQL Server SourceDatatype1

DB2 Target Datatype Comments

numeric(p,s) - DECIMAL if p is less than or equal to31.

- VARCHAR(42) if p is greater than 31.

-

nvarchar - VARGRAPHIC if the source columnsize is less than or equal to 2023bytes.

- CLOB if the source column size isgreater than 2023 bytes.

-

nvarchar(max) - CLOB(1G) if theapply.db2.create_lob_nologgingparameter is set to 0.

- CLOB(2G) NOT LOGGED if theapply.db2.create_lob_nologgingparameter is set to 1.

Maximum supported size is 50 MB.

real REAL -

smalldatetime TIMESTAMP -

smallint SMALLINT -

smallmoney DECIMAL(10,4) -

text - CLOB(1G) if theapply.db2.create_lob_nologgingparameter is set to 0.

- CLOB(2G) NOT LOGGED if theapply.db2.create_lob_nologgingparameter is set to 1.

Maximum supported size is 50 MB.

time TIMESTAMP -

tinyint DECIMAL(3,0) -

uniqueidentifier CHAR(16) FOR BIT DATA -

varbinary BLOB -

varbinary(max) - BLOB(1G) if theapply.db2.create_lob_nologgingparameter is set to 0.

- BLOB(2G) NOT LOGGED if theapply.db2.create_lob_nologgingparameter is set to 1.

Maximum supported size is 50 MB.

varchar - VARCHAR if the source column size isless than or equal to 4046 bytes.

- CLOB if the source column size isgreater than 4046 bytes.

-

varchar(max) CLOB Maximum supported size is 50 MB.

Microsoft SQL Server Source and DB2 for Linux, UNIX, and Windows Target 19

Microsoft SQL Server SourceDatatype1

DB2 Target Datatype Comments

xml XML -

1. In this table, (p,s) represents precision and scale.

Microsoft SQL Server Source and Greenplum TargetThe following table identifies the recommended datatype mappings for Data Replication configurations with aMicrosoft SQL Server source and a Greenplum target:

Microsoft SQL Server SourceDatatype

Greenplum Target Datatype Comments

bigint bigint -

bit bit -

binary bytea -

char char -

date date -

datetime timestamp -

datetime2 timestamp -

datetimeoffset timestamp(6) with time zone -

decimal numeric -

float float -

image bytea Maximum supported size is 50 MB.

int integer -

money numeric(19,4) -

nchar char -

ntext text Maximum supported size is 50 MB.

numeric numeric -

nvarchar varchar -

nvarchar(max) text Maximum supported size is 50 MB.

20 Chapter 3: Datatype Mappings for Microsoft SQL Server Sources

Microsoft SQL Server SourceDatatype

Greenplum Target Datatype Comments

real real -

smalldatetime timestamp(0) -

smallint smallint -

smallmoney numeric(10,4) -

text text Maximum supported size is 50 MB.

time time -

tinyint numeric(3,0) -

uniqueidentifier bytea -

varbinary bytea -

varbinary(max) bytea Maximum supported size is 50 MB.

varchar varchar -

varchar(max) text Maximum supported size is 50 MB.

xml text -

Microsoft SQL Server Source and Microsoft SQL ServerTarget

The following table identifies the recommended datatype mappings for Data Replication configurations with aMicrosoft SQL Server source and a Microsoft SQL Server target:

Microsoft SQL Server SourceDatatype

Microsoft SQL Server TargetDatatype

Comments

bigint bigint -

bit bit -

binary binary -

char char -

date date -

datetime datetime -

Microsoft SQL Server Source and Microsoft SQL Server Target 21

Microsoft SQL Server SourceDatatype

Microsoft SQL Server TargetDatatype

Comments

datetime2 datetime2 -

datetimeoffset datetimeoffset -

decimal decimal -

float float -

image image Maximum supported size is 50 MB.

int int -

money money -

nchar nchar -

ntext ntext Maximum supported size is 50 MB.

numeric numeric -

nvarchar nvarchar -

nvarchar(max) nvarchar(max) Maximum supported size is 50 MB.

real real -

smalldatetime smalldatetime -

smallint smallint -

smallmoney smallmoney -

text text Maximum supported size is 50 MB.

time time -

tinyint tinyint -

uniqueidentifier uniqueidentifier -

varbinary varbinary -

varbinary(max) varbinary(max) Maximum supported size is 50 MB.

varchar varchar -

varchar(max) varchar(max) Maximum supported size is 50 MB.

xml xml -

22 Chapter 3: Datatype Mappings for Microsoft SQL Server Sources

Microsoft SQL Server Source and MySQL TargetThe following table identifies the recommended datatype mappings for Data Replication configurations with aMicrosoft SQL Server source and a MySQL target:

Microsoft SQL Server SourceDatatype

MySQL Target Datatype Comments

bigint BIGINT -

bit TINYINT -

binary - BINARY if the source column size isless than or equal to 256 bytes

- BLOB if the source column size isgreater than 256 bytes

-

char - CHAR(n) if the source column lengthis less than or equal to 255 characters

- TEXT if the source column length isgreater than 255 characters

-

date DATE -

datetime DATETIME -

datetime2 DATETIME -

datetimeoffset DATETIME -

decimal DECIMAL -

float FLOAT -

image BLOB Maximum supported size is 50 MB.

int INT -

money DECIMAL(19,4) -

nchar - CHAR(n) if the source column lengthis less than or equal to 255 characters

- TEXT if the source column length isgreater than 255 characters

-

ntext TEXT Maximum supported size is 50 MB.

numeric DECIMAL -

nvarchar - VARCHAR(n) if the source columnlength is less than or equal to 255characters

- TEXT if the source column length isgreater than 255 characters

-

nvarchar(max) TEXT Maximum supported size is 50 MB.

Microsoft SQL Server Source and MySQL Target 23

Microsoft SQL Server SourceDatatype

MySQL Target Datatype Comments

real DOUBLE -

smalldatetime DATETIME -

smallint SMALLINT -

smallmoney DECIMAL(10,4) -

text TEXT Maximum supported size is 50 MB.

time TIME -

tinyint TINYINT -

uniqueidentifier BINARY(16) -

varbinary - VARBINARY- BLOB

-

varbinary(max) BLOB Maximum supported size is 50 MB.

varchar - VARCHAR(n) if the source columnlength is less than or equal to 255characters

- TEXT if the source column length isgreater than 255 characters

-

varchar(max) TEXT Maximum supported size is 50 MB.

xml TEXT -

Microsoft SQL Server Source and Netezza TargetThe following table identifies the recommended datatype mappings for Data Replication configurations with aMicrosoft SQL Server source and a Netezza target:

Microsoft SQL Server SourceDatatype

Netezza Target Datatype Comments

bigint bigint -

bit byteint -

char char -

date date -

datetime timestamp -

24 Chapter 3: Datatype Mappings for Microsoft SQL Server Sources

Microsoft SQL Server SourceDatatype

Netezza Target Datatype Comments

datetime2 timestamp -

datetimeoffset timestamp -

decimal numeric -

float float -

image varchar(16000) Maximum supported size is 50 MB.

int integer -

money numeric(19,4) -

nchar nchar -

ntext nvarchar(16000) Maximum supported size is 50 MB.

numeric numeric -

nvarchar nvarchar -

nvarchar(max) nvarchar(16000) Maximum supported size is 50 MB.

real real -

smalldatetime timestamp -

smallint smallint -

smallmoney numeric(10,4) -

text varchar(16000) Maximum supported size is 50 MB.

time time -

tinyint smallint -

uniqueidentifier varchar(40) -

varchar varchar -

varchar(max) varchar(16000) Maximum supported size is 50 MB.

xml varchar(16000) -

Because Netezza does not use binary dataypes, Data Replication does not support replication of Microsoft SQLServer binary, varbinary, and varbinary(max) datatypes to Netezza targets.

Microsoft SQL Server Source and Netezza Target 25

Microsoft SQL Server Source and Oracle TargetThe following table identifies the recommended datatype mappings for Data Replication configurations with aMicrosoft SQL Server source and an Oracle target:

Microsoft SQL Server SourceDatatype

Oracle Target Datatype Comments

bigint NUMBER(19,0) -

bit NUMBER(1) -

binary BLOB -

char - CHAR if the source column size is lessthan or equal to 2000 bytes.

- VARCHAR2 if the source column sizeis less than or equal to 4000 bytes.

- CLOB if the source column size isgreater than 4000 bytes.

-

date DATE -

datetime TIMESTAMP(3) -

datetime2 TIMESTAMP -

datetimeoffset TIMESTAMP WITH TIME ZONE -

decimal NUMBER -

float FLOAT -

image BLOB Maximum supported size is 50 MB.

int NUMBER(10,0) -

money NUMBER(19,4) -

nchar - NCHAR if the source column size isless than or equal to 2000 bytes.

- NVARCHAR2 if the source columnsize is less than or equal to 4000bytes.

- NCLOB if the source column size isgreater than 4000 bytes.

-

ntext NCLOB Maximum supported size is 50 MB.

numeric NUMBER -

nvarchar - NVARCHAR2 if the source columnsize is less than or equal to 4000bytes.

- NCLOB if the source column size isgreater than 4000 bytes.

-

26 Chapter 3: Datatype Mappings for Microsoft SQL Server Sources

Microsoft SQL Server SourceDatatype

Oracle Target Datatype Comments

nvarchar(max) NCLOB Maximum supported size is 50 MB.

real FLOAT -

smalldatetime TIMESTAMP(0) -

smallint NUMBER(5,0) -

smallmoney NUMBER(10,4) -

text CLOB Maximum supported size is 50 MB.

time TIMESTAMP -

tinyint NUMBER(3,0) -

uniqueidentifier RAW(16) -

varbinary BLOB -

varbinary(max) BLOB Maximum supported size is 50 MB.

varchar - VARCHAR2 if the source column sizeis less than or equal to 4000 bytes.

- CLOB if the source column size isgreater than 4000 bytes.

-

varchar(max) CLOB Maximum supported size is 50 MB.

xml CLOB -

Microsoft SQL Server Source and PostgreSQL TargetThe following table identifies the recommended datatype mappings for Data Replication configurations with aMicrosoft SQL Server source and a PostgreSQL target:

Microsoft SQL Server SourceDatatype

PostgreSQL Target Datatype Comments

bigint BIGINT -

bit SMALLINT -

binary BYTEA -

char CHAR -

date DATE -

Microsoft SQL Server Source and PostgreSQL Target 27

Microsoft SQL Server SourceDatatype

PostgreSQL Target Datatype Comments

datetime TIMESTAMP(3) -

datetime2 TIMESTAMP(6) -

datetimeoffset TIMESTAMP(6) WITH TIME ZONE -

decimal NUMERIC -

float - FLOAT if the source column precisionis less than or equal to 7.

- DOUBLE PRECISION if the sourcecolumn precision is greater than 7.

-

image BYTEA Maximum supported size is 50 MB.

int INTEGER -

money MONEY -

nchar CHAR -

ntext TEXT Maximum supported size is 50 MB.

numeric NUMERIC -

nvarchar VARCHAR -

nvarchar(max) TEXT Maximum supported size is 50 MB.

real REAL -

smalldatetime TIMESTAMP(0) -

smallint SMALLINT -

smallmoney NUMERIC(10,4) -

text TEXT Maximum supported size is 50 MB.

time TIME -

tinyint SMALLINT -

uniqueidentifier BYTEA -

varbinary BYTEA -

varbinary(max) BYTEA Maximum supported size is 50 MB.

varchar VARCHAR -

28 Chapter 3: Datatype Mappings for Microsoft SQL Server Sources

Microsoft SQL Server SourceDatatype

PostgreSQL Target Datatype Comments

varchar(max) TEXT Maximum supported size is 50 MB.

xml TEXT -

Microsoft SQL Server Source and Sybase ASE TargetThe following table identifies the recommended datatype mappings for Data Replication configurations with aMicrosoft SQL Server source and a Sybase ASE target:

Microsoft SQL Server SourceDatatype

Sybase ASE Target Datatype Comments

bigint BIGINT -

bit BIT The source bit column must be definedwith the NOT NULL constraint becauseSybase ASE does not support nullableBIT columns.

binary - BINARY if the source data size is lessthan or equal to 4000 bytes.

- IMAGE if the source data size isgreater than 4000 bytes.

-

char CHAR -

date DATE -

datetime DATETIME -

datetime2 DATETIME -

datetimeoffset DATETIME -

decimal DECIMAL -

float FLOAT -

image IMAGE Maximum supported size is 50 MB.

int INT -

money MONEY -

nchar UNICHAR -

ntext UNITEXT Maximum supported size is 50 MB.

numeric NUMERIC -

Microsoft SQL Server Source and Sybase ASE Target 29

Microsoft SQL Server SourceDatatype

Sybase ASE Target Datatype Comments

nvarchar UNIVARCHAR -

nvarchar(max) TEXT Maximum supported size is 50 MB.

real REAL -

smalldatetime SMALLDATETIME -

smallint SMALLINT -

smallmoney SMALLMONEY -

text TEXT Maximum supported size is 50 MB.

time TIME -

tinyint TINYINT -

uniqueidentifier BINARY(16) -

varbinary - BINARY if the source data size is lessthan or equal to 4000 bytes.

- IMAGE if the source data size isgreater than 4000 bytes.

-

varbinary(max) IMAGE Maximum supported size is 50 MB.

varchar VARCHAR -

varchar(max) TEXT Maximum supported size is 50 MB.

xml TEXT -

Microsoft SQL Server Source and Teradata TargetThe following table identifies the recommended datatype mappings for Data Replication configurations with aMicrosoft SQL Server source and a Teradata target:

Microsoft SQL Server SourceDatatype

Teradata Target Datatype Comments

bigint BIGINT -

bit SMALLINT -

binary BYTE -

char CHAR -

30 Chapter 3: Datatype Mappings for Microsoft SQL Server Sources

Microsoft SQL Server SourceDatatype

Teradata Target Datatype Comments

date DATE -

datetime TIMESTAMP(3) -

datetime2 TIMESTAMP(6) -

datetimeoffset TIMESTAMP(6) WITH TIME ZONE -

decimal NUMERIC -

float FLOAT -

image VARBYTE(16000) The target value is truncated to thesize that is specified in theapply.mpp_load_lob_truncation_sizeruntime parameter.

int INTEGER -

money NUMERIC(19,4) -

nchar CHAR -

ntext VARCHAR(16000) The target value is truncated to thesize that is specified in theapply.mpp_load_lob_truncation_sizeruntime parameter.

numeric NUMERIC -

nvarchar VARCHAR -

nvarchar(max) VARCHAR(16000) The target value is truncated to thesize that is specified in theapply.mpp_load_lob_truncation_sizeruntime parameter.

real FLOAT -

smalldatetime TIMESTAMP(0) -

smallint SMALLINT -

smallmoney NUMERIC(10,4) -

text VARCHAR(16000)

time TIME -

tinyint SMALLINT -

uniqueidentifier BYTE(16) -

varbinary VARBYTE -

Microsoft SQL Server Source and Teradata Target 31

Microsoft SQL Server SourceDatatype

Teradata Target Datatype Comments

varbinary(max) VARBYTE(16000) The target value is truncated to thesize that is specified in theapply.mpp_load_lob_truncation_sizeruntime parameter.

varchar VARCHAR -

varchar(max) VARBYTE(16000) The target value is truncated to thesize that is specified in theapply.mpp_load_lob_truncation_sizeruntime parameter.

xml VARCHAR(16000) The target value is truncated to thesize that is specified in theapply.mpp_load_lob_truncation_sizeruntime parameter.

Microsoft SQL Server Source and Vertica TargetThe following table identifies the recommended datatype mappings for Data Replication configurations with aMicrosoft SQL Server source and a Vertica target:

Microsoft SQL Server SourceDatatype

Vertica Target Datatype Comments

bigint BIGINT -

bit TINYINT -

binary BINARY -

char CHAR -

date DATE -

datetime DATETIME -

datetime2 DATETIME -

datetimeoffset TIMESTAMP(6) WITH TIME ZONE -

decimal NUMERIC -

float FLOAT -

image VARBINARY(65000) Maximum supported size is 50 MB.

int INTEGER -

32 Chapter 3: Datatype Mappings for Microsoft SQL Server Sources

Microsoft SQL Server SourceDatatype

Vertica Target Datatype Comments

money NUMERIC(19,4) -

nchar CHAR -

ntext VARCHAR(65000) Maximum supported size is 50 MB.

numeric NUMERIC -

nvarchar VARCHAR -

nvarchar(max) VARCHAR(65000) Maximum supported size is 50 MB.

real REAL -

smalldatetime TIMESTAMP(0) -

smallint SMALLINT -

smallmoney NUMERIC(10,4) -

text VARCHAR(65000) Maximum supported size is 50 MB.

time TIME -

tinyint TINYINT -

uniqueidentifier BINARY(16) -

varbinary VARBINARY -

varbinary(max) VARBINARY(65000) Maximum supported size is 50 MB.

varchar VARCHAR -

varchar(max) VARCHAR(65000) Maximum supported size is 50 MB.

xml VARCHAR(65000) -

Unsupported Microsoft SQL Server DatatypesData Replication does not support data extraction for the following Microsoft SQL Server source datatypes:

¨ filestream

¨ geography

¨ geometry

¨ hierarchyid

¨ rowversion

¨ sql_variant

Unsupported Microsoft SQL Server Datatypes 33

¨ timestamp

¨ user-defined datatypes

34 Chapter 3: Datatype Mappings for Microsoft SQL Server Sources

C H A P T E R 4

Datatype Mappings for OracleSources

This chapter includes the following topics:

¨ Oracle Source and DB2 for Linux, UNIX, and Windows Target, 35

¨ Oracle Source and Greenplum Target, 37

¨ Oracle Source and Microsoft SQL Server Target, 38

¨ Oracle Source and MySQL Target, 40

¨ Oracle Source and Netezza Target, 41

¨ Oracle Source and Oracle Target, 42

¨ Oracle Source and PostgreSQL Target, 44

¨ Oracle Source and Sybase ASE Target, 45

¨ Oracle Source and Teradata Target, 47

¨ Oracle Source and Vertica Target, 48

¨ Unsupported Oracle Datatypes, 50

Oracle Source and DB2 for Linux, UNIX, and WindowsTarget

The following table identifies the recommended datatype mappings for Data Replication configurations with an Oraclesource and a DB2 for Linux, UNIX, and Windows target:

Oracle Source Datatype1 DB2 Target Datatype Comments

BINARY_DOUBLE DOUBLE -

BINARY_FLOAT DOUBLE -

BLOB - BLOB(1G) if theapply.db2.create_lob_nologgingparameter is set to 0.

- BLOB(2G) NOT LOGGED if theapply.db2.create_lob_nologgingparameter is set to 1.

Maximum supported size is 50 MB.Oracle piecewise operations are notsupported.Oracle SecureFiles storage of all LOBsis not supported.

35

Oracle Source Datatype1 DB2 Target Datatype Comments

CHAR - CHAR if the source data size is lessthan or equal to 254 bytes.

- CLOB if the source data size is greaterthan 254 bytes.

-

CLOB - CLOB(1G) if theapply.db2.create_lob_nologgingparameter is set to 0.

- CLOB(2G) NOT LOGGED if theapply.db2.create_lob_nologgingparameter is set to 1.

Maximum supported size is 50 MB.Oracle piecewise operations are notsupported.Oracle SecureFiles storage of all LOBsis not supported.

DATE TIMESTAMP -

FLOAT DOUBLE -

LONG - CLOB(1G) if theapply.db2.create_lob_nologgingparameter is set to 0.

- CLOB(2G) NOT LOGGED if theapply.db2.create_lob_nologgingparameter is set to 1.

Maximum supported size is 50 MB.Oracle piecewise operations are notsupported.

LONG RAW - BLOB(1G) if theapply.db2.create_lob_nologgingparameter is set to 0.

- BLOB(2G) NOT LOGGED if theapply.db2.create_lob_nologgingparameter is set to 1.

Maximum supported size is 50 MB.Oracle piecewise operations are notsupported.

NCHAR - GRAPHIC if the source data size isless than or equal to 254 bytes.

- CLOB if the source data size is greaterthan 254 bytes.

-

NCLOB - CLOB(1G) if theapply.db2.create_lob_nologgingparameter is set to 0.

- CLOB(2G) NOT LOGGED if theapply.db2.create_lob_nologgingparameter is set to 1.

Maximum supported size is 50 MB.Oracle piecewise operations are notsupported.Oracle SecureFiles storage of all LOBsis not supported.

NUMBER(p, s) - SMALLINT if p is less than or equal to5.

- INTEGER if p is less than or equal to10.

- BIGINT if p is less than or equal to19.

- DECIMAL(31, 0) if p is less than orequal to 31.

- DECIMAL(31, 10) if p is greater than31.

-

NVARCHAR2 VARGRAPHIC -

RAW BLOB Oracle piecewise operations are notsupported.

36 Chapter 4: Datatype Mappings for Oracle Sources

Oracle Source Datatype1 DB2 Target Datatype Comments

TIMESTAMP(n) TIMESTAMP -

VARCHAR2 VARCHAR Oracle piecewise operations are notsupported.

1. In this table, (p,s) represents precision and scale.

Oracle Source and Greenplum TargetThe following table identifies the recommended datatype mappings for Data Replication configurations with an Oraclesource and a Greenplum target:

Oracle Source Datatype1 Greenplum Target Datatype Comments

BINARY_DOUBLE numeric(37,15) -

BINARY_FLOAT numeric(37,15) -

BLOB bytea Maximum supported size is 50 MB.Oracle piecewise operations are notsupported.Oracle SecureFiles storage of all LOBsis not supported.

CHAR char -

CLOB text Maximum supported size is 50 MB.Oracle piecewise operations are notsupported.Oracle SecureFiles storage of all LOBsis not supported.

DATE timestamp(0) -

FLOAT - real if precision is less than or equal to6.

- numeric(37,15) if precision is greaterthan 6.

-

LONG text Maximum supported size is 50 MB.Oracle piecewise operations are notsupported.

LONG RAW bytea Maximum supported size is 50 MB.Oracle piecewise operations are notsupported.

NCHAR varchar -

Oracle Source and Greenplum Target 37

Oracle Source Datatype1 Greenplum Target Datatype Comments

NCLOB text Maximum supported size is 50 MB.Oracle piecewise operations are notsupported.Oracle SecureFiles storage of all LOBsis not supported.

NUMBER(p,s) - smallint if p is less than or equal to 4.- integer if p is less than or equal to 9.- bigint if p is less than or equal to 18.- numeric if p is greater than 18.

-

NVARCHAR2 varchar -

RAW bytea Oracle piecewise operations are notsupported.The target value is truncated to thesize that is specified in theapply.mpp_load_lob_truncation_sizeruntime parameter.

TIMESTAMP(n) - timestamp(n) if n is less than or equalto 6.

- timestamp(6) if n is greater than 6.

-

VARCHAR2 varchar Oracle piecewise operations are notsupported.

1. In this table, (p,s) represents precision and scale.

Oracle Source and Microsoft SQL Server TargetThe following table identifies the recommended datatype mappings for Data Replication configurations with an Oraclesource and a Microsoft SQL Server target:

Oracle Source Datatype1 Microsoft SQL Server TargetDatatype

Comments

BINARY_DOUBLE float -

BINARY_FLOAT float -

BLOB image Maximum supported size is 50 MB.Oracle piecewise operations are notsupported.Oracle SecureFiles storage of all LOBsis not supported.

CHAR char -

38 Chapter 4: Datatype Mappings for Oracle Sources

Oracle Source Datatype1 Microsoft SQL Server TargetDatatype

Comments

CLOB text Maximum supported size is 50 MB.Oracle piecewise operations are notsupported.Oracle SecureFiles storage of all LOBsis not supported.

DATE datetime -

FLOAT float -

LONG text Maximum supported size is 50 MB.Oracle piecewise operations are notsupported.

LONG RAW image Maximum supported size is 50 MB.Oracle piecewise operations are notsupported.

NCHAR nchar -

NCLOB ntext Maximum supported size is 50 MB.Oracle piecewise operations are notsupported.Oracle SecureFiles storage of all LOBsis not supported.

NUMBER(p,s) - smallint if p is less than or equal to 4.- int if p is less than or equal to 9.- bigint if p is less than or equal to 18.- numeric if p is greater than 18.

-

NVARCHAR2 nvarchar -

RAW varbinary Oracle piecewise operations are notsupported.

TIMESTAMP datetimeoffset -

VARCHAR2 varchar Oracle piecewise operations are notsupported.

1. In this table, (p,s) represents precision and scale.

Oracle Source and Microsoft SQL Server Target 39

Oracle Source and MySQL TargetThe following table identifies the recommended datatype mappings for Data Replication configurations with an Oraclesource and a MySQL target:

Oracle Source Datatype1 MySQL Target Datatype1 Comments

BINARY_DOUBLE DOUBLE -

BINARY_FLOAT DOUBLE -

BLOB BLOB Maximum supported size is 50 MB.Oracle piecewise operations are notsupported.Oracle SecureFiles storage of all LOBsis not supported.

CHAR(n) - CHAR(n) if the source column lengthis less than or equal to 255 characters

- TEXT if the source column length isgreater than 255 characters

-

CLOB LONGTEXT Maximum supported size is 50 MB.Oracle piecewise operations are notsupported.Oracle SecureFiles storage of all LOBsis not supported.

DATE DATETIME -

FLOAT DOUBLE -

LONG LONGTEXT Maximum supported size is 8 KB.Oracle piecewise operations are notsupported.

LONG RAW BLOB Maximum supported size is 50 MB.Oracle piecewise operations are notsupported.

NCHAR(n) - VARCHAR(n) if the source columnlength is less than or equal to 255characters

- TEXT if the source column length isgreater than 255 characters

-

NCLOB LONGTEXT Maximum supported size is 50 MB.Oracle piecewise operations are notsupported.Oracle SecureFiles storage of all LOBsis not supported.

NUMBER(p,s) DECIMAL(p,s) -

40 Chapter 4: Datatype Mappings for Oracle Sources

Oracle Source Datatype1 MySQL Target Datatype1 Comments

NVARCHAR2(n) - VARCHAR(n) if the source columnlength is less than or equal to 255characters

- TEXT if the source column length isgreater than 255 characters

-

RAW(n) VARBINARY(n) Oracle piecewise operations are notsupported.

TIMESTAMP(n) DATETIME -

TIMESTAMP(n) WITH TIME ZONE DATETIME Oracle TIMESTAMP WITH TIMEZONE in the time zone region (TZR)format is not supported.

VARCHAR2(n) - VARCHAR(n) if the source columnlength is less than or equal to 255characters

- TEXT if the source column length isgreater than 255 characters

Oracle piecewise operations are notsupported.

1. In this table, (p,s) represents precision and scale.

Oracle Source and Netezza TargetThe following table identifies the recommended datatype mappings for Data Replication configurations with an Oraclesource and a Netezza target:

Oracle Source Datatype1 Netezza Target Datatype Comments

BINARY_DOUBLE DOUBLE PRECISION -

BINARY_FLOAT DOUBLE PRECISION -

CHAR CHAR -

CLOB VARCHAR(32768) Maximum supported size is 50 MB.Oracle piecewise operations are notsupported.Oracle SecureFiles storage of all LOBsis not supported.

DATE TIMESTAMP -

FLOAT(p) - REAL if p is less than or equal to 6.- DOUBLE PRECISION if p is less than

or equal to 6.

-

Oracle Source and Netezza Target 41

Oracle Source Datatype1 Netezza Target Datatype Comments

LONG VARCHAR(32768) Maximum supported size is 50 MB.Oracle piecewise operations are notsupported.

NCHAR NCHAR -

NCLOB VARCHAR(32768) Maximum supported size is 50 MB.Oracle piecewise operations are notsupported.Oracle SecureFiles storage of all LOBsis not supported.

NUMBER(p,s) - SMALLINT if p is less than or equal to4.

- INTEGER if p is less than or equal to9.

- BIGINT if p is less than or equal to18.

- NUMBERIC if p is greater than 18.

-

NVARCHAR2 NVARCHAR Maximum length of NetezzaNVARCHAR datatype is 16000characters.

TIMESTAMP TIMESTAMP -

VARCHAR2 VARCHAR Maximum length of NetezzaVARCHAR datatype is 64000characters.Oracle piecewise operations are notsupported.

1. In this table, (p,s) represents precision and scale.

Because Netezza does not use binary dataypes, Data Replication does not support replication of Oracle BLOB, LONGRAW, and RAW datatypes to Netezza targets.

Oracle Source and Oracle TargetThe following table identifies the recommended datatype mappings for Data Replication configurations with an Oraclesource and an Oracle target:

Oracle Source Datatype1 Oracle Target Datatype1 Comments

BINARY_DOUBLE BINARY_DOUBLE -

BINARY_FLOAT BINARY_FLOAT -

42 Chapter 4: Datatype Mappings for Oracle Sources

Oracle Source Datatype1 Oracle Target Datatype1 Comments

BLOB BLOB Maximum supported size is 50 MB.BLOB columns are not supported forOracle to Oracle replication in MergeApply mode.Oracle piecewise operations are notsupported.Oracle SecureFiles storage of all LOBsis not supported.

CHAR CHAR -

CLOB CLOB Maximum supported size is 50 MB.CLOB columns are not supported forOracle to Oracle replication in MergeApply mode.Oracle piecewise operations are notsupported.Oracle SecureFiles storage of all LOBsis not supported.

DATE DATE -

FLOAT FLOAT -

INTERVAL DAY TO SECOND INTERVAL DAY TO SECOND -

INTERVAL YEAR TO MONTH INTERVAL YEAR TO MONTH -

LONG - LONG for regular tables- CLOB for audit log tables

Maximum supported size is 8 KB.Oracle piecewise operations are notsupported.LONG columns are not supported formaterializing Oracle targets withDBLinks.

LONG RAW - LONG RAW for regular tables- BLOB for audit log tables

Maximum supported size is 50 MB.Oracle piecewise operations are notsupported.LONG RAW columns are notsupported for materializing Oracletargets with DBLinks.

NCHAR NCHAR -

NCLOB NCLOB Maximum supported size is 50 MB.NCLOB columns are not supported forOracle to Oracle replication in MergeApply mode.Oracle piecewise operations are notsupported.Oracle SecureFiles storage of all LOBsis not supported.

Oracle Source and Oracle Target 43

Oracle Source Datatype1 Oracle Target Datatype1 Comments

NUMBER(p,s) NUMBER(p,s) -

NVARCHAR2 NVARCHAR2 -

RAW RAW Oracle piecewise operations are notsupported.

TIMESTAMP(n) TIMESTAMP(n) -

TIMESTAMP(n) WITH TIME ZONE TIMESTAMP(n) WITH TIME ZONE Oracle TIMESTAMP WITH TIMEZONE in the time zone region (TZR)format is not supported.

VARCHAR2 VARCHAR2 Oracle piecewise operations are notsupported.

1. In this table, (p,s) represents precision and scale.

Oracle Source and PostgreSQL TargetThe following table identifies the recommended datatype mappings for Data Replication configurations with an Oraclesource and a PostgreSQL target:

Oracle Source Datatype1 PostgreSQL Target Datatype Comments

BINARY_DOUBLE DOUBLE PRECISION -

BINARY_FLOAT REAL -

BLOB BYTEA Maximum supported size is 50 MB.Oracle piecewise operations are notsupported.Oracle SecureFiles storage of all LOBsis not supported.

CHAR CHAR -

CLOB TEXT Maximum supported size is 50 MB.Oracle piecewise operations are notsupported.Oracle SecureFiles storage of all LOBsis not supported.

DATE TIMESTAMP(0) -

FLOAT - REAL if the source column precision isless than or equal to 6.

- NUMERIC(37,15) if the source columnprecision is greater than 6.

-

44 Chapter 4: Datatype Mappings for Oracle Sources

Oracle Source Datatype1 PostgreSQL Target Datatype Comments

LONG TEXT Maximum supported size is 50 MB.Oracle piecewise operations are notsupported.

LONG RAW BYTEA Maximum supported size is 50 MB.Oracle piecewise operations are notsupported.

NCHAR VARCHAR -

NCLOB TEXT Maximum supported size is 50 MB.Oracle piecewise operations are notsupported.Oracle SecureFiles storage of all LOBsis not supported.

NUMBER(p, s) - SMALLINT if p is less than or equal to4.

- INTEGER if p is less than or equal to9.

- BIGINT if p is less than or equal to18.

- NUMERIC if p is greater than 18.

-

NVARCHAR2 VARCHAR -

RAW BYTEA Oracle piecewise operations are notsupported.

TIMESTAMP TIMESTAMP -

VARCHAR2 VARCHAR Oracle piecewise operations are notsupported.

1. In this table, (p,s) represents precision and scale.

Oracle Source and Sybase ASE TargetThe following table identifies the recommended datatype mappings for Data Replication configurations with an Oraclesource and a Sybase ASE target:

Oracle Source Datatype1 Sybase ASE Target Datatype Comments

BINARY_DOUBLE FLOAT -

BINARY_FLOAT FLOAT -

Oracle Source and Sybase ASE Target 45

Oracle Source Datatype1 Sybase ASE Target Datatype Comments

BLOB IMAGE Maximum supported size is 50 MB.Oracle piecewise operations are notsupported.Oracle SecureFiles storage of all LOBsis not supported.

CHAR CHAR -

CLOB TEXT Maximum supported size is 50 MB.Oracle piecewise operations are notsupported.Oracle SecureFiles storage of all LOBsis not supported.

DATE DATE -

FLOAT FLOAT -

LONG TEXT Maximum supported size is 50 MB.Oracle piecewise operations are notsupported.

LONG RAW IMAGE Maximum supported size is 50 MB.Oracle piecewise operations are notsupported.

NCHAR UNICHAR -

NCLOB UNITEXT Maximum supported size is 50 MB.Oracle piecewise operations are notsupported.Oracle SecureFiles storage of all LOBsis not supported.

NUMBER(p,s) - SMALLINT if p is less than or equal to4.

- INT if p is less than or equal to 9.- BIGINT if p is less than or equal to

18.- NUMERIC if p is greater than 18.

-

NVARCHAR2 UNIVARCHAR -

RAW VARBINARY Oracle piecewise operations are notsupported.

TIMESTAMP BIGDATETIME -

VARCHAR2 VARCHAR Oracle piecewise operations are notsupported.

1. In this table, (p,s) represents precision and scale.

46 Chapter 4: Datatype Mappings for Oracle Sources

Oracle Source and Teradata TargetThe following table identifies the recommended datatype mappings for Data Replication configurations with an Oraclesource and a Teradata target:

Oracle Source Datatype1 Teradata Target Datatype Comments

BINARY_DOUBLE DOUBLE PRECISION -

BINARY_FLOAT DOUBLE PRECISION -

BLOB VARBYTE(16000) Maximum supported size is 50 MB.Oracle piecewise operations are notsupported.Oracle SecureFiles storage of all LOBsis not supported.

CHAR CHAR -

CLOB VARCHAR(16000) Maximum supported size is 50 MB.Oracle piecewise operations are notsupported.Oracle SecureFiles storage of all LOBsis not supported.

DATE TIMESTAMP(0) Mappings to Teradata TIME and DATEdatatypes are not supported.

FLOAT FLOAT -

LONG VARCHAR(16000) Maximum supported size is 50 MB.Oracle piecewise operations are notsupported.

LONG RAW VARBYTE(16000) Maximum supported size is 50 MB.Oracle piecewise operations are notsupported.

NCHAR VARCHAR -

NCLOB VARCHAR(16000) Maximum supported size is 50 MB.Oracle piecewise operations are notsupported.Oracle SecureFiles storage of all LOBsis not supported.

NUMBER(p,s) - SMALLINT if p is less than or equal to4.

- INTEGER if p is less than or equal to9.

- DECIMAL if p is greater than 9.- NUMBER

-

NVARCHAR2 VARCHAR -

Oracle Source and Teradata Target 47

Oracle Source Datatype1 Teradata Target Datatype Comments

RAW VARBYTE -

TIMESTAMP(n) TIMESTAMP -

VARCHAR2 VARCHAR Oracle piecewise operations are notsupported.

1. In this table, (p,s) represents precision and scale.

Oracle Source and Vertica TargetThe following table identifies the recommended datatype mappings for Data Replication configurations with an Oraclesource and a Vertica target:

Oracle Source Datatype1 Vertica Target Datatype Comments

BINARY_DOUBLE NUMERIC(37,15) -

BINARY_FLOAT NUMERIC(37,15) -

BLOB VARBINARY(64000) Oracle piecewise operations are notsupported.Oracle SecureFiles storage of all LOBsis not supported.The Extractor truncates the replicatedvalue to 50 MB. The Applier truncatesthe replicated value to the size that isspecified in theapply.mpp_load_lob_truncation_sizeruntime parameter.

CHAR CHAR -

CLOB VARCHAR(64000) Maximum supported size is 50 MB.Oracle piecewise operations are notsupported.Oracle SecureFiles storage of all LOBsis not supported.The Extractor truncates the replicatedvalue to 50 MB. The Applier truncatesthe replicated value to the size that isspecified in theapply.mpp_load_lob_truncation_sizeruntime parameter.

DATE TIMESTAMP(0) -

FLOAT(n) - REAL if n is less than or equal to 6.- NUMERIC(37, 15) if n is greater than

6.

-

48 Chapter 4: Datatype Mappings for Oracle Sources

Oracle Source Datatype1 Vertica Target Datatype Comments

LONG VARCHAR(64000) Maximum supported size is 50 MB.Oracle piecewise operations are notsupported.The Extractor truncates the replicatedvalue to 50 MB. The Applier truncatesthe replicated value to the size that isspecified in theapply.mpp_load_lob_truncation_sizeruntime parameter.

LONG RAW VARBINARY(64000) Maximum supported size is 50 MB.Oracle piecewise operations are notsupported.The Extractor truncates the replicatedvalue to 50 MB. The Applier truncatesthe replicated value to the size that isspecified in theapply.mpp_load_lob_truncation_sizeruntime parameter.

NCHAR VARCHAR -

NCLOB VARCHAR(64000) Maximum supported size is 50 MB.Oracle piecewise operations are notsupported.Oracle SecureFiles storage of all LOBsis not supported.The Extractor truncates the replicatedvalue to 50 MB. The Applier truncatesthe replicated value to the size that isspecified in theapply.mpp_load_lob_truncation_sizeruntime parameter.

NUMBER(p,s) - SMALLINT if precision (p) is less thanor equal to 4.

- INTEGER if p is less than or equal to9.

- BIGINT if p is less than or equal to18.

- NUMERIC if p is greater than 18.

-

NVARCHAR2 VARCHAR -

RAW VARBINARY Maximum supported size is 50 MB.Oracle piecewise operations are notsupported.The target value is truncated to thesize that is specified in theapply.mpp_load_lob_truncation_sizeruntime parameter.

TIMESTAMP TIMESTAMP For Vertica targets, the maximumnumber of fractional digits in theseconds field is 6.

Oracle Source and Vertica Target 49

Oracle Source Datatype1 Vertica Target Datatype Comments

VARCHAR2 VARCHAR Oracle piecewise operations are notsupported.

1. In this table, (p,s) represents precision and scale.

Unsupported Oracle DatatypesData Replication does not support data extraction for the following Oracle source datatypes:

¨ ANY types

¨ BFILE

¨ Expression Filter Type

¨ Media types

¨ MLSLABEL

¨ REF

¨ ROWID

¨ Spatial types

¨ TIMESTAMP WITH LOCAL TIMEZONE

¨ URI types

¨ UROWID

¨ User-defined types

¨ XML types

Data Replication supports the following Oracle datatypes only for Oracle to Oracle replication:

¨ INTERVAL DAY TO SECOND

¨ INTERVAL YEAR TO MONTH

¨ TIMESTAMP WITH TIMEZONE

50 Chapter 4: Datatype Mappings for Oracle Sources

C H A P T E R 5

Datatype Mappings for Sybase ASESources

This chapter includes the following topics:

¨ Sybase ASE Source and DB2 for Linux, UNIX, and Windows Target, 51

¨ Sybase ASE Source and Greenplum Target, 54

¨ Sybase ASE Source and Microsoft SQL Server Target, 56

¨ Sybase ASE Source and MySQL Target, 57

¨ Sybase ASE Source and Netezza Target, 59

¨ Sybase ASE Source and Oracle Target, 60

¨ Sybase ASE Source and PostgreSQL Target, 62

¨ Sybase ASE Source and Sybase ASE Target, 63

¨ Sybase ASE Source and Teradata Target, 65

¨ Sybase ASE Source and Vertica Target, 66

¨ Unsupported Sybase ASE Datatypes, 67

Sybase ASE Source and DB2 for Linux, UNIX, andWindows Target

The following table identifies the recommended datatype mappings for Data Replication configurations with a SybaseASE source and a DB2 for Linux, UNIX, and Windows target:

Sybase ASE Source Datatype DB2 Target Datatype Comments

bigdatetime TIMESTAMP -

bigint BIGINT -

bigtime TIMESTAMP -

51

Sybase ASE Source Datatype DB2 Target Datatype Comments

binary(n) - BLOB if the source column size is lessthan or equal to 2147483647 bytes.

- BLOB(1G) if the source column size isgreater than 2147483647 bytes andthe apply.db2.create_lob_nologgingparameter is set to 0.

- BLOB(2G) NOT LOGGED if thesource column size is greater than2147483647 bytes and theapply.db2.create_lob_nologgingparameter is set to 1.

-

bit SMALLINT -

char(n) - CHAR(n) if the source column size isless than 254 bytes

- CLOB if the source column size isgreater than or equal to 254 bytes

-

date DATE -

datetime TIMESTAMP -

decimal(p,s) - DECIMAL(p,s) if the source columnprecision is less than or equal to 31

- VARCHAR(42) if the source columnprecision is greater than 31

-

double precision REAL -

float(p) REAL -

image - BLOB(1G) if theapply.db2.create_lob_nologgingparameter is set to 0.

- BLOB(2G) NOT LOGGED if theapply.db2.create_lob_nologgingparameter is set to 1.

Maximum extracted size is 50 MB.

int INTEGER -

money DECIMAL(19,4) -

nchar(n) - GRAPHIC(n) if the source columnlength is less than or equal to 127characters

- CLOB(n) if the source column length isgreater than 127 characters

-

numeric(p,s) - DECIMAL(p,s) if the source columnprecision is less than or equal to 31

- VARCHAR(42) if the source columnprecision is greater than 31

-

nvarchar(n) VARGRAPHIC(n) if the source columnlength is less than or equal to 2023characters

-

52 Chapter 5: Datatype Mappings for Sybase ASE Sources

Sybase ASE Source Datatype DB2 Target Datatype Comments

real REAL -

smalldatetime TIMESTAMP -

smallint SMALLINT -

smallmoney DECIMAL(10,4) -

text - CLOB(1G) if theapply.db2.create_lob_nologgingparameter is set to 0.

- CLOB(2G) NOT LOGGED if theapply.db2.create_lob_nologgingparameter is set to 1.

Maximum extracted size is 50 MB.

time TIME -

tinyint SMALLINT -

unichar(n) - CHAR(n) if the source column lengthis less than 254 characters

- CLOB if the source column length isgreater than or equal to 254characters

-

unitext - CLOB(1G) if theapply.db2.create_lob_nologgingparameter is set to 0.

- CLOB(2G) NOT LOGGED if theapply.db2.create_lob_nologgingparameter is set to 1.

Maximum extracted size is 50 MB.

univarchar(n) - VARCHAR(n) if the source columnlength is less than 4046 characters

- CLOB(n) if the source column length isequal to or greater than 4046characters

-

unsigned bigint BIGINT -

unsigned int INTEGER -

unsigned smallint - SMALLINT- INTEGER- DECIMAL

-

Sybase ASE Source and DB2 for Linux, UNIX, and Windows Target 53

Sybase ASE Source Datatype DB2 Target Datatype Comments

varbinary(n) - BLOB if the source column size is lessthan or equal to 2147483647 bytes.

- BLOB(1G) if the source column size isgreater than 2147483647 bytes andthe apply.db2.create_lob_nologgingparameter is set to 0.

- BLOB(2G) NOT LOGGED if thesource column size is greater than2147483647 bytes and theapply.db2.create_lob_nologgingparameter is set to 1.

-

varchar(n) - VARCHAR(n) if the source columnsize is less than 4046 bytes

- CLOB(n) if the source column size isequal to or greater than 4046 bytes

-

Sybase ASE Source and Greenplum TargetThe following table identifies the recommended datatype mappings for Data Replication configurations with a SybaseASE source and a Greenplum target:

Sybase ASE Source Datatype Greenplum Target Datatype Comments

bigdatetime TIMESTAMP -

bigint BIGINT -

bigtime - TIME- TIMESTAMP

-

binary(n) BYTEA -

bit BIT -

char(n) CHAR(n) -

date DATE -

datetime TIMESTAMP -

decimal(p,s) NUMERIC(p,s) -

double precision DOUBLE -

float(p) DOUBLE -

image BYTEA Maximum extracted size is 50 MB.

int INTEGER -

54 Chapter 5: Datatype Mappings for Sybase ASE Sources

Sybase ASE Source Datatype Greenplum Target Datatype Comments

money DECIMAL(19,4) -

nchar(n) CHAR(n) -

numeric(p,s) NUMERIC(p,s) -

nvarchar(n) VARCHAR(n) -

real REAL -

smalldatetime TIMESTAMP(0) -

smallint SMALLINT -

smallmoney DECIMAL(10,4) -

text VARCHAR(n) Maximum extracted size is 50 MB.

time TIME -

tinyint NUMERIC(3,0) -

unichar(n) VARCHAR(n) -

unitext VARCHAR(n) Maximum extracted size is 50 MB.

univarchar(n) VARCHAR(n) -

unsigned bigint BIGINT -

unsigned int BIGINT -

unsigned smallint SMALLINT -

varbinary(n) BYTEA -

varchar(n) VARCHAR(n) -

Sybase ASE Source and Greenplum Target 55

Sybase ASE Source and Microsoft SQL Server TargetThe following table identifies the recommended datatype mappings for Data Replication configurations with a SybaseASE source and a Microsoft SQL Server target:

Sybase ASE Source Datatype Microsoft SQL Server TargetDatatype

Comments

bigdatetime - datetime2(6)- datetimeoffset

-

bigint bigint -

bigtime time(6) -

binary(n) varbinary -

bit bit -

char(n) char(n) -

date date -

datetime datetime -

decimal(p,s) decimal(p,s) -

double precision float(15) -

float(p) - float(16) if the source column size isless than 4

- float(32) if the source column size isequal to or greater than 4

-

image image Maximum extracted size is 50 MB.

int int -

money money -

nchar(n) nchar -

numeric(p,s) numeric(p,s) -

nvarchar(n) nvarchar -

real real -

smalldatetime smalldatetime -

smallint smallint -

smallmoney smallmoney -

text text Maximum extracted size is 50 MB.

56 Chapter 5: Datatype Mappings for Sybase ASE Sources

Sybase ASE Source Datatype Microsoft SQL Server TargetDatatype

Comments

time time(3) -

tinyint tinyint -

unichar(n) nchar(n) -

unitext ntext Maximum extracted size is 50 MB.

univarchar(n) varchar(max) -

unsigned bigint bigint -

unsigned int int -

unsigned smallint smallint -

varbinary(n) varbinary(n) -

varchar(n) varchar(n) -

Sybase ASE Source and MySQL TargetThe following table identifies the recommended datatype mappings for Data Replication configurations with a SybaseASE source and a MySQL target:

Sybase ASE Source Datatype MySQL Target Datatype Comments

bigdatetime DATETIME -

bigint BIGINT -

bigtime DATETIME -

binary(n) BLOB -

bit DECIMAL(1,0) -

char(n) - CHAR(n) if the source column lengthis less than or equal to 255 characters

- TEXT if the source column length isgreater than 255 characters

-

date DATE -

datetime DATETIME -

decimal(p,s) DECIMAL(p,s) -

Sybase ASE Source and MySQL Target 57

Sybase ASE Source Datatype MySQL Target Datatype Comments

double precision FLOAT(15) -

float(p) - FLOAT(7) if the source columnprecision is less than or equal to 7

- FLOAT(15) if the source columnprecision is less than or equal to 15

-

image BLOB Maximum extracted size is 50 MB.

int INT -

money DECIMAL(19,4) -

nchar(n) - CHAR(n) if the source column lengthis less than or equal to 255 characters

- TEXT if the source column length isgreater than 255 characters

-

numeric(p,s) DECIMAL(p,s) -

nvarchar(n) - VARCHAR(n) if the source columnlength is less than or equal to 255characters

- TEXT if the source column length isgreater than 255 characters

-

real REAL -

smalldatetime DATETIME -

smallint SMALLINT -

smallmoney DECIMAL(10,4) -

text TEXT Maximum extracted size is 50 MB.

time TIME -

tinyint SMALLINT -

unichar(n) - VARCHAR(n) if the source columnlength is less than or equal to 255characters

- TEXT if the source column length isgreater than 255 characters

-

unitext TEXT Maximum extracted size is 50 MB.

univarchar(n) - VARCHAR(n) if the source columnlength is less than or equal to 255characters

- TEXT if the source column length isgreater than 255 characters

-

unsigned bigint BIGINT -

58 Chapter 5: Datatype Mappings for Sybase ASE Sources

Sybase ASE Source Datatype MySQL Target Datatype Comments

unsigned int BIGINT -

unsigned smallint SMALLINT -

varbinary(n) VARBINARY(n) -

varchar(n) - VARCHAR(n) if the source columnlength is less than or equal to 255characters

- TEXT if the source column length isgreater than 255 characters

-

Sybase ASE Source and Netezza TargetThe following table identifies the recommended datatype mappings for Data Replication configurations with a SybaseASE source and a Netezza target:

Sybase ASE Source Datatype Netezza Target Datatype Comments

bigdatetime TIMESTAMP -

bigint BIGINT -

bigtime TIME -

bit BOOLEAN -

char(n) CHAR(n) -

date DATE -

datetime TIMESTAMP -

decimal(p,s) NUMERIC(p,s) -

double precision DOUBLE PRECISION -

float(p) DOUBLE PRECISION -

image VARCHAR(16000) Maximum extracted size is 50 MB.

int INTEGER -

money NUMERIC(19,4) -

nchar(n) NCHAR(n) -

numeric(p,s) NUMERIC(p,s) -

Sybase ASE Source and Netezza Target 59

Sybase ASE Source Datatype Netezza Target Datatype Comments

nvarchar(n) NVARCHAR(n) -

real FLOAT -

smalldatetime TIMESTAMP -

smallint SMALLINT -

smallmoney NUMERIC(19,4) -

text VARCHAR(16000) Maximum extracted size is 50 MB.

time TIME -

tinyint SMALLINT -

unichar(n) VARCHAR(n) -

unitext VARCHAR(16000) Maximum extracted size is 50 MB.

univarchar(n) VARCHAR(n) -

unsigned bigint BIGINT -

unsigned int BIGINT -

unsigned smallint SMALLINT -

varchar(n) VARCHAR(n) -

Because Netezza does not use binary dataypes, Data Replication does not support replication of Sybase ASE binaryand varbinary datatypes to Netezza targets.

Sybase ASE Source and Oracle TargetThe following table identifies the recommended datatype mappings for Data Replication configurations with a SybaseASE source and an Oracle target:

Sybase ASE Source Datatype Oracle Target Datatype Comments

bigdatetime TIMESTAMP(6) -

bigint NUMBER(19,0) -

bigtime TIMESTAMP(6) -

binary(n) BLOB -

bit NUMBER(1) -

60 Chapter 5: Datatype Mappings for Sybase ASE Sources

Sybase ASE Source Datatype Oracle Target Datatype Comments

char(n) - CHAR(n) if the source column size isless than or equal to 2000 bytes

- CLOB if the source column size isgreater than 2000 bytes

-

date DATE -

datetime TIMESTAMP(6) -

decimal(p,s) NUMBER(p,s) -

double precision FLOAT(15) -

float(p) DOUBLE PRECISION -

image BLOB Maximum extracted size is 50 MB.

int NUMBER(10,0) -

money NUMBER(19,4) -

nchar(n) - NCHAR(n) if the source column lengthis less than or equal to 2000characters

- NCLOB if the source column length isgreater than 2000 characters

-

numeric(p,s) NUMBER(p,s) -

nvarchar(n) NVARCHAR2(n) -

real FLOAT -

smalldatetime TIMESTAMP(3) -

smallint NUMBER(5,0) -

smallmoney NUMBER(10,4) -

text CLOB Maximum extracted size is 50 MB.

time TIMESTAMP(6) -

tinyint NUMBER(3,0) -

unichar(n) NVARCHAR2(n) -

unitext NCLOB Maximum extracted size is 50 MB.

univarchar(n) NVARCHAR2(n) -

unsigned bigint NUMBER(19,0) -

unsigned int NUMBER(10,0) -

Sybase ASE Source and Oracle Target 61

Sybase ASE Source Datatype Oracle Target Datatype Comments

unsigned smallint NUMBER(5,0) -

varbinary(n) - RAW(n) if the source column size isless than or equal to 2000 bytes

- LONG RAW if the source column sizeis greater than 2000 bytes

-

varchar(n) VARCHAR2(n) -

Sybase ASE Source and PostgreSQL TargetThe following table identifies the recommended datatype mappings for Data Replication configurations with a SybaseASE source and a PostgreSQL target:

Sybase ASE Source Datatype PostgreSQL Target Datatype Comments

bigdatetime TIMESTAMP(6) -

bigint BIGINT -

bigtime TIME -

binary BYTEA -

bit DECIMAL(1,0) -

char CHAR -

date DATE -

datetime TIMESTAMP(3) -

decimal(p,s) NUMERIC -

double precision DOUBLE PRECISION -

float FLOAT -

image BYTEA Maximum extracted size is 50 MB.

int INTEGER -

money MONEY -

nchar CHAR -

numeric NUMERIC -

nvarchar VARCHAR -

62 Chapter 5: Datatype Mappings for Sybase ASE Sources

Sybase ASE Source Datatype PostgreSQL Target Datatype Comments

real REAL -

smalldatetime TIMESTAMP(0) -

smallint SMALLINT -

smallmoney NUMERIC(10,4) -

text TEXT Maximum extracted size is 50 MB.

time TIME -

tinyint DECIMAL(3,0) -

unichar VARCHAR -

unitext TEXT Maximum extracted size is 50 MB.

univarchar VARCHAR -

unsigned bigint BIGINT -

unsigned int BIGINT -

unsigned smallint SMALLINT -

varbinary BYTEA -

varchar(n) VARCHAR -

Sybase ASE Source and Sybase ASE TargetThe following table identifies the recommended datatype mappings for Data Replication configurations with a SybaseASE source and a Sybase ASE target:

Sybase ASE Source Datatype Sybase ASE Target Datatype Comments

bigdatetime bigdatetime -

bigint bigint -

bigtime bigtime -

binary(n) binary(n) -

bit bit -

char(n) char(n) -

Sybase ASE Source and Sybase ASE Target 63

Sybase ASE Source Datatype Sybase ASE Target Datatype Comments

date date -

datetime datetime -

decimal(p,s) decimal(p,s) -

double precision double precision -

float(p) float(p) -

image image Maximum extracted size is 50 MB.

int int -

money money -

nchar(n) nchar(n) -

numeric(p,s) numeric(p,s) -

nvarchar(n) nvarchar(n) -

real real -

smalldatetime smalldatetime -

smallint smallint -

smallmoney smallmoney -

text text Maximum extracted size is 50 MB.

time time -

tinyint tinyint -

unichar(n) unichar(n) -

unitext unitext Maximum extracted size is 50 MB.

univarchar(n) univarchar(n) -

unsigned bigint unsigned bigint -

unsigned int unsigned int -

unsigned smallint unsigned smallint -

varbinary(n) varbinary(n) -

varchar(n) varchar(n) -

64 Chapter 5: Datatype Mappings for Sybase ASE Sources

Sybase ASE Source and Teradata TargetThe following table identifies the recommended datatype mappings for Data Replication configurations with a SybaseASE source and a Microsoft SQL Server target:

Sybase ASE Source Datatype Teradata Target Datatype Comments

bigdatetime TIMESTAMP(6) -

bigint BIGINT -

bigtime TIMESTAMP(6) -

binary(n) BYTE(n) -

bit SMALLINT -

char(n) CHAR(n) -

date DATE -

datetime TIMESTAMP(3) -

decimal(p,s) DECIMAL(p,s) -

double precision FLOAT(15) -

float(p) - FLOAT(7) if the source columnprecision is less than or equal to 7

- FLOAT(15) if the source columnprecision is greater than or equal to15

-

image VARBYTE(16000) Maximum extracted size is 50 MB.

int INTEGER -

money DECIMAL(p,s) -

nchar(n) CHAR(n) -

numeric(p,s) DECIMAL(p,s) -

nvarchar(n) VARCHAR(n) -

real FLOAT(7) -

smalldatetime TIMESTAMP(0) -

smallint SMALLINT -

smallmoney DECIMAL(p,s) -

text VARCHAR(16000) Maximum extracted size is 50 MB.

time TIME -

Sybase ASE Source and Teradata Target 65

Sybase ASE Source Datatype Teradata Target Datatype Comments

tinyint SMALLINT -

unichar(n) VARCHAR(n) -

unitext VARCHAR(16000) Maximum extracted size is 50 MB.

univarchar(n) VARCHAR(n) -

unsigned bigint BIGINT -

unsigned int BIGINT -

unsigned smallint SMALLINT -

varbinary(n) VARBYTE(n) -

varchar(n) VARCHAR(n) -

Sybase ASE Source and Vertica TargetThe following table identifies the recommended datatype mappings for Data Replication configurations with a SybaseASE source and a Vertica target:

Sybase ASE Source Datatype Vertica Target Datatype Comments

bigdatetime TIMESTAMP -

bigint BIGINT -

bigtime TIME(6) -

binary(n) BINARY(n) -

bit BOOLEAN -

char(n) CHAR(n) -

date DATE -

datetime TIMESTAMP -

decimal(p,s) NUMERIC(p,s) -

double precision FLOAT -

float(p) FLOAT -

image VARBINARY(65000) Maximum extracted size is 50 MB.

66 Chapter 5: Datatype Mappings for Sybase ASE Sources

Sybase ASE Source Datatype Vertica Target Datatype Comments

int INTEGER -

money NUMERIC(19,4) -

nchar(n) CHAR(n) -

numeric(p,s) - NUMERIC(p,0)- NUMBER(p,s) if the source column

scale is greater than 0

-

nvarchar(n) VARCHAR(n) -

real FLOAT -

smalldatetime TIMESTAMP(0) -

smallint SMALLINT -

smallmoney NUMERIC(10,4) -

text VARCHAR(65000) Maximum extracted size is 50 MB.

time TIME -

tinyint TINYINT -

unichar(n) CHAR(n) -

unitext VARCHAR(65000) Maximum extracted size is 50 MB.

univarchar(n) VARCHAR(n) -

unsigned bigint BIGINT -

unsigned int BIGINT -

unsigned smallint SMALLINT -

varbinary(n) VARBINARY(n) -

varchar(n) VARCHAR(n) -

Unsupported Sybase ASE DatatypesData Replication does not support data extraction for Sybase ASE user-defined types.

Unsupported Sybase ASE Datatypes 67

I N D E X

DDB2 sources

mappings with DB2 targets 2mappings with Greenplum targets 4mappings with Microsoft SQL Server targets 5mappings with MySQL targets 6mappings with Netezza targets 8mappings with Oracle targets 9, 13mappings with PostgreSQL targets 10mappings with Sybase ASE targets 12mappings with Vertica targets 15unsupported datatypes 16

DB2 targetsmappings with DB2 sources 2mappings with Microsoft SQL Server sources 17mappings with Oracle sources 35mappings with Sybase ASE sources 51

GGreenplum targets

mappings with DB2 sources 4mappings with Microsoft SQL Server sources 20mappings with Oracle sources 37mappings with Sybase ASE sources 54

MMicrosoft SQL Server sources

mappings with DB2 targets 17mappings with Greenplum targets 20mappings with Microsoft SQL Server targets 21mappings with MySQL targets 23mappings with Netezza targets 24mappings with Oracle targets 26mappings with PostgreSQL targets 27mappings with Sybase ASE targets 29mappings with Teradata targets 30mappings with Vertica targets 32unsupported datatypes 33

Microsoft SQL Server targetsmappings with DB2 sources 5mappings with Microsoft SQL Server sources 21mappings with Oracle sources 38mappings with Sybase ASE sources 56

MySQL targetsmappings with DB2 sources 6mappings with Microsoft SQL Server sources 23mappings with Oracle sources 40mappings with Sybase ASE sources 57

NNetezza targets

mappings with DB2 sources 8mappings with Microsoft SQL Server sources 24mappings with Oracle sources 41mappings with Sybase ASE sources 59

OOracle sources

mappings with DB2 targets 35mappings with Greenplum targets 37mappings with Microsoft SQL Server targets 38mappings with MySQL targets 40mappings with Netezza targets 41mappings with Oracle targets 42mappings with PostgreSQLtargets 44mappings with Sybase ASE targets 45mappings with Teradata targets 47mappings with Vertica targets 48unsupported datatypes 50

Oracle targetsmappings with DB2 sources 9mappings with Microsoft SQL Server sources 26mappings with Oracle sources 42mappings with Sybase ASE sources 60

PPostgreSQL targets

mappings with DB2 sources 10mappings with Microsoft SQL Server sources 27mappings with Oracle sources 44mappings with Sybase ASE sources 62

SSybase ASE sources

mappings with DB2 targets 51mappings with Greenplum targets 54mappings with Microsoft SQL Server targets 56mappings with MySQL targets 57mappings with Netezza targets 59mappings with Oracle targets 60mappings with PostgreSQL targets 62mappings with Sybase ASE targets 63mappings with Teradata targets 65mappings with Vertica targets 66unsupported datatypes 67

Sybase ASE targetsmappings with DB2 sources 12mappings with Microsoft SQL Server sources 29

68

mappings with Oracle sources 45mappings with Sybase ASE sources 63

TTeradata targets

mappings with DB2 sources 13mappings with Microsoft SQL Server sources 30mappings with Oracle sources 47

mappings with Sybase ASE sources 65

VVertica targets

mappings with DB2 sources 15mappings with Microsoft SQL Server sources 32mappings with Oracle sources 48mappings with Sybase ASE sources 66

Index 69