Ascential DataStage. Oracle OCI Load Stage Guide. Version 1.0



Similar documents
Advanced Planning PDP Client for Microsoft Excel 1.3 Install PeopleBook

4.0. Offline Folder Wizard. User Guide

etrust Audit Using the Recorder for Check Point FireWall-1 1.5

TIBCO ActiveMatrix BusinessWorks SmartMapper Plug-in Release Notes

PN Connect:Enterprise Secure FTP Client Release Notes Version

CA Workload Automation Agent for Databases

8.7. Resource Kit User Guide

CA Workload Automation Agent for Microsoft SQL Server

TIBCO Fulfillment Provisioning Session Layer for FTP Installation

TIBCO Runtime Agent Authentication API User s Guide. Software Release November 2012

CA Nimsoft Monitor. Probe Guide for NT Event Log Monitor. ntevl v3.8 series

Symantec Data Center Security: Server Advanced v6.0. Agent Guide

Universal Management Service 2015

BrightStor ARCserve Backup for UNIX

Quest ChangeAuditor 4.8

Symantec ESM agent for IBM AS/400

Automated Database Backup. Procedure to create an automated database backup using SQL management tools

Defender Delegated Administration. User Guide

TIBCO Hawk SNMP Adapter Installation

Quest Privilege Manager Console Installation and Configuration Guide

VERITAS Backup Exec 9.1 for Windows Servers Quick Installation Guide

Dell Statistica Statistica Enterprise Installation Instructions

Interworks. Interworks Cloud Platform Installation Guide

CA ARCserve Backup for Windows

Symantec Critical System Protection Agent Guide

Staff User s Guide Task Manager. Version 20

CA Spectrum and CA Service Desk

How to Configure Access Control for Exchange using PowerShell Cmdlets A Step-by-Step guide

Dell Recovery Manager for Active Directory 8.6. Quick Start Guide

TIBCO ActiveMatrix BusinessWorks Plug-in for Big Data User s Guide

EMC RepliStor for Microsoft Windows ERROR MESSAGE AND CODE GUIDE P/N REV A02

Quick Connect Express for Active Directory

CA Workload Automation Agent for Remote Execution

"SQL Database Professional " module PRINTED MANUAL

Thoroughbred Basic TM ODBC Client Capability Customization Supplement

Oracle WebLogic Server

Business Portal for Microsoft Dynamics GP. Project Time and Expense Administrator s Guide Release 10.0

Qlik REST Connector Installation and User Guide

LogLogic General Database Collector for Microsoft SQL Server Log Configuration Guide

TIBCO Spotfire Metrics Prerequisites and Installation

Active Directory Change Notifier Quick Start Guide

hp OpenView TeMIP Event Logging User s Guide Edition: for the UNIX Operating System March 2003

HP OpenView Network Node Manager

Microsoft Dynamics GP. SmartList Builder User s Guide With Excel Report Builder

Digipass Plug-In for IAS. IAS Plug-In IAS. Microsoft's Internet Authentication Service. Installation Guide

TIBCO Spotfire Automation Services 6.5. User s Manual

NetIQ AppManager for NetBackup UNIX

Symantec Endpoint Encryption Full Disk

Enterprise Reporting Server v3.5

Unicenter NSM Integration for BMC Remedy. User Guide

EMC SourceOne for Microsoft SharePoint Storage Management Version 7.1

Backup & Restore with SAP BPC (MS SQL 2005)

QACenter Installation and Configuration Guide. Release 4.4.2

CA Unified Infrastructure Management Server

Unicenter Patch Management

Novell Identity Manager

Adobe Acrobat 9 Deployment on Microsoft Systems Management

Business Intelligence Tutorial

CA Nimsoft Monitor. Probe Guide for CPU, Disk and Memory. cdm v4.7 series

TIBCO ActiveMatrix BPM Integration with Content Management Systems Software Release September 2013

TIBCO ActiveMatrix BusinessWorks Plug-in for sftp Release Notes

CA ARCserve Backup for Windows

Nimsoft Monitor. ntevl Guide. v3.6 series

Retrieving Data Using the SQL SELECT Statement. Copyright 2006, Oracle. All rights reserved.

ODBC Driver User s Guide. Objectivity/SQL++ ODBC Driver User s Guide. Release 10.2

Chapter 1: How to Register a UNIX Host in a One-Way Trust Domain Environment 3

Application Interface Services Server for Mobile Enterprise Applications Configuration Guide Tools Release 9.2

IBM SmartCloud Analytics - Log Analysis. Anomaly App. Version 1.2

CA SiteMinder. Web Agent Installation Guide for IIS 12.51

Unified Infrastructure Management Compatibility Matrix April 4, 2016

OLH: Oracle Loader for Hadoop OSCH: Oracle SQL Connector for Hadoop Distributed File System (HDFS)

Remote Management System

StreamServe Persuasion SP4

Migrating Non-Oracle Databases and their Applications to Oracle Database 12c O R A C L E W H I T E P A P E R D E C E M B E R

Simba ODBC Driver with SQL Connector for Apache Cassandra

Dell NetVault Backup Plug-in for Advanced Encryption 2.2. User s Guide

How To Backup A Database In Navision

1.0 Getting Started Guide

VERITAS Storage Foundation 4.0

CA ARCserve Backup for Windows

ChangeAuditor. Migration Guide CA-MG

Reporting and Data Analysis with HP OpenView Network Node Manager

SAP HANA Client Installation and Update Guide

VERITAS NetBackup 6.0 for Oracle

DIGIPASS CertiID. Getting Started 3.1.0

QAD Enterprise Applications. Training Guide Demand Management 6.1 Technical Training

Veritas Cluster Server Database Agent for Microsoft SQL Configuration Guide

Dell NetVault Backup Plug-in for SharePoint 1.3. User s Guide

Plug-In for Informatica Guide

Self Help Guides. Create a New User in a Domain

Change Manager 5.0 Installation Guide

VERITAS NetBackup 6.0 Encryption

Configuring and Monitoring FTP Servers

How To Load Data Into An Org Database Cloud Service - Multitenant Edition

Quest ChangeAuditor 5.1 FOR ACTIVE DIRECTORY. User Guide

Upgrade Guide. CA Application Delivery Analysis 10.1

UNISYS. Business Information Server. MRI Administration and User s Guide. Printed in USA May

Nimsoft Monitor Compatibility Matrix October 17, 2013

BrightStor ARCserve Backup for Windows

Transcription:

Ascential DataStage Oracle OCI Load Stage Guide Version 1.0 Part No. 74-0141 December 2004

This document, and the software described or referenced in it, are confidential and proprietary to Ascential Software Corporation ("Ascential"). They are provided under, and are subject to, the terms and conditions of a license agreement between Ascential and the licensee, and may not be transferred, disclosed, or otherwise provided to third parties, unless otherwise permitted by that agreement. No portion of this publication may be reproduced, stored in a retrieval system, or transmitted, in any form or by any means, electronic, mechanical, photocopying, recording, or otherwise, without the prior written permission of Ascential. The specifications and other information contained in this document for some purposes may not be complete, current, or correct, and are subject to change without notice. NO REPRESENTATION OR OTHER AFFIRMATION OF FACT CONTAINED IN THIS DOCUMENT, INCLUDING WITHOUT LIMITATION STATEMENTS REGARDING CAPACITY, PERFORMANCE, OR SUITABILITY FOR USE OF PRODUCTS OR SOFTWARE DESCRIBED HEREIN, SHALL BE DEEMED TO BE A WARRANTY BY ASCENTIAL FOR ANY PURPOSE OR GIVE RISE TO ANY LIABILITY OF ASCENTIAL WHATSOEVER. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF THIRD PARTY RIGHTS. IN NO EVENT SHALL ASCENTIAL BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. If you are acquiring this software on behalf of the U.S. government, the Government shall have only "Restricted Rights" in the software and related documentation as defined in the Federal Acquisition Regulations (FARs) in Clause 52.227.19 (c) (2). If you are acquiring the software on behalf of the Department of Defense, the software shall be classified as "Commercial Computer Software" and the Government shall have only "Restricted Rights" as defined in Clause 252.227-7013 (c) (1) of DFARs. 2004, 1999-2003 Ascential Software Corporation. All rights reserved. DataStage, EasyLogic, EasyPath, Enterprise Data Quality Management, Iterations, Matchware, Mercator, MetaBroker, Application Integration, Simplified, Ascential, Ascential AuditStage, Ascential DataStage, Ascential ProfileStage, Ascential QualityStage, Ascential Enterprise Integration Suite, Ascential Real-time Integration Services, Ascential MetaStage, and Ascential RTI are trademarks of Ascential Software Corporation or its affiliates and may be registered in the United States or other jurisdictions. Adobe Acrobat is a trademark of Adobe Systems, Inc. Microsoft, Windows, Windows NT, and Windows Server are either registered trademarks or trademarks of Microsoft Corporation in the United States and/or other countries. Oracle, Oracle8i, and Oracle9i are either registered trademarks or trademarks of Oracle Corporation. UNIX is a registered trademark in the United States and other countries, licensed exclusively through X/Open Company, Ltd. Other marks mentioned are the property of the owners of those marks. The software delivered to Licensee may contain third-party software code. See Legal Notices (LegalNotices.pdf) for more information.

How to Use This Guide The Ascential DataStage Oracle OCI Load stage loads data into an Oracle database using Oracle direct path loading. Version 1.0 of Oracle OCI Load is compatible with Ascential DataStage Release 7.5.1. Audience This guide is intended for DataStage designers who create or modify jobs that use the Oracle OCI Load stage. How This Book is Organized The following table lists topics that may be of interest to you and it provides links to these topics. To learn about Read Functionality "Functionality" on page 1 Configuration requirements "Configuration Requirements" on page 2 Installation "Installing the Oracle OCI Load Plug-In" on page 2 Load modes "Load Modes" on page 4 Properties "Properties" on page 5 Related Documentation To learn more about documentation from other Ascential products and third-party documentation as they relate tooracle OCI Load, refer to the following sections/tables. DataStage Oracle OCI Load Stage Guide iii

Conventions How to Use This Guide Ascential Software Documentation Guide Ascential DataStage Server Job Developer s Guide Ascential DataStage Designer Guide Ascential MetaStage User s Guide Ascential DataStage NLS Guide Ascential DataStage Plug-In Installation and Configuration Guide Description Instructions for using a stage in a DataStage job General principles for designing jobs Information about Ascential MetaStage Information about NLS and techniques for character-set mapping Information required to configure your system and install this stage Teradata Documentation Guide Oracle Database Utilities Oracle SQL Reference Oracle Database Administrator s Guide Description Information about Oracle command syntax Information about Oracle command syntax Information about installing Oracle Conventions Convention bold user input code variable or <variable> Used for Field names, button names, menu items, and keystrokes. Also used to indicate filenames, and window and dialog box names. Information that you need to enter as is. Code examples Placeholders for information that you need to enter. Do not type the greater-/less-than brackets as part of the variable. iv DataStage Oracle OCI Load Stage Guide

How to Use This Guide Contacting Support Convention Used for > Indicators used to separate menu options, such as: Start >Programs >Ascential DataStage [A] B A B Options in command syntax. Do not type the brackets as part of the option. Elements that can repeat. Indicator used to separate mutually-exclusive elements. { } Indicator used to identify sets of choices. Contacting Support To reach Customer Care, please refer to the information below: Call toll-free: 1-866-INFONOW (1-866-463-6669) Email: support@ascentialsoftware.com Ascential Developer Net: http://developernet.ascential.com Please consult your support agreement for the location and availability of customer support personnel. To find the location and telephone number of the nearest Ascential Software office outside of North America, please visit the Ascential Software Corporation website at http://www.ascentialsoftware.com. DataStage Oracle OCI Load Stage Guide v

Contacting Support How to Use This Guide vi DataStage Oracle OCI Load Stage Guide

Contents Audience......................................................... iii How This Book is Organized......................................... iii Related Documentation............................................. iii Ascential Software Documentation................................ iv Teradata Documentation......................................... iv Conventions....................................................... iv Contacting Support................................................. v Introduction....................................................... 1 Functionality....................................................... 1 Configuration Requirements.......................................... 2 Installing the Oracle OCI Load Plug-In.................................. 2 Building the Oracle Client Shared Library............................ 3 Load Modes....................................................... 4 Automatic...................................................... 5 Manual......................................................... 5 Properties......................................................... 5 DataStage Oracle OCI Stage Guide vii

Contents viii DataStage Oracle OCI Stage Guide

Introduction Oracle OCI Load is a passive stage that loads data from external files into an Oracle table. The Oracle database can reside locally or remotely. This stage has one stream input link and no output or output reference links. The input link provides a stream of data rows to load into the Oracle table using Oracle direct path loading. This input link corresponds to one bulk loading session in a DataStage job. Oracle Call Interface (OCI) supports direct path loading calls that access the direct block formatter of the Oracle server. These calls perform the functions of the Oracle SQL*Loader utility. This lets you load data immediately from an external file into an Oracle database object, which is a table or a partition of a partitioned table, in automatic mode. Ascential DataStage provides an Orabulk stage which generates control and data files for bulk loading into a single table in an Oracle target database. This stage then loads the files into the database by using the Oracle command sqlldr. However, the Orabulk stage cannot populate a table in different loading modes. Use Oracle OCI Load to do this. Functionality Oracle OCI Load has the following functionality: Bulk loading from a stream input link to provide rows of data into the target table residing locally or remotely. Immediate and delayed loading. Load actions to specify how data is loaded to the target table. Partition or table loading. NLS (National Language Support). For information, see Ascential DataStage NLS Guide. The following functionality is not supported: Output or output reference links. Importing of table definitions. Use of the TIMESTAMP data type with fractions of seconds, for example, hh:mm:ss:ff. Use the CHAR data type instead. DataStage Oracle OCI Load Stage Guide 1

Configuration Requirements Configuration Requirements See the online readme.txt file for your platform for the latest information about the DataStage release. Oracle OCI Load requires the following configuration for Ascential DataStage and Oracle Enterprise Edition: DataStage Oracle Client Platforms Oracle Enterprise Manager Version 7.0 or later on the DataStage client and server machines. For more information about Ascential DataStage configuration requirements, see Ascential DataStage Install and Upgrade Guide. A version of the Oracle Client on the DataStage server machine. See Ascential DataStage Plug-In Installation and Configuration Guide. Note Version 8.1.7 requires Installation Type: Programmer Your Oracle client and server machines must have the same operating system type, such as UNIX to UNIX or Windows 2000 to Windows 2000, in order to run successfully. If you mix UNIX and Windows platforms for your Oracle client and Oracle server machines, the DataStage job will fail, for example, if the Oracle client is on a UNIX machine and the Oracle server is on a Windows 2000 machine. If you install Oracle Enterprise Manager on the same machine as Oracle Client, the Oracle server home directory must precede the Oracle Enterprise Manager home directory. You must ensure that the PATH system environment variable has the correct setting, for example: d:\oraclehome\bin;d:\oraclemanager\bin oraclehome is the location where your Oracle software is installed. oraclemanager is the name of the Oracle Enterprise Manager home directory. Any changes to system environment variables may require a system reboot before the values of the variables take effect. The configuration of SQL*Net using a configuration program, for example, SQL*Net Easy Configuration, to set up and add database aliases is also required. Installing the Oracle OCI Load Plug-In For instructions and information supporting the installation, see Ascential DataStage Plug-In Installation and Configuration Guide. 2 DataStage Oracle OCI Load Stage Guide

Installing the Oracle OCI Load Plug-In Building the Oracle Client Shared Library The Oracle OCI Load stage requires the libclntsh.so shared library (for the Solaris and Tru64 platforms) and libclntsh.sl (for the HP-UX 11 platform), which is normally built during the installation of Oracle client software. The Oracle installation accomplishes this by running the script genclntsh located in the ORACLE_HOME/bin directory, where ORACLE_HOME is the environment variable set to the location in which your Oracle software is installed. The genclntsh script provided by Oracle creates a shared library that causes errors resulting from undefined symbols. Users running Oracle8i on specific platforms with certain versions of Oracle client software (as documented in "UNIX Platforms" in the next section) must therefore use the genclntsh8 script provided with Ascential DataStage to build a replacement libclntsh.so or libclntsh.sl. These scripts are placed in a tar archive at the root level of the installation media, and replaces the new libclntsh.so or libclntsh.sl in the lib directory underneath the DataStage server installation directory. This is the same directory where your Oracle OCI Load stage shared library is installed. It does not overwrite the original libclntsh.so or libclntsh.sl in the $ORACLE_HOME/lib directory. Note Users running Oracle9i or above are not required to build the Oracle client shared library. UNIX Platforms The following sections specify information about library requirements and running the bulk loader, depending on your platform. Solaris Before you build the Oracle client shared library, install Oracle, and set the environment variable ORACLE_HOME to the directory where you installed Oracle. To run the Oracle OCI Load stage with Ascential DataStage 7.0 or later, a one-time site linking is required to build a shared library. This is required to expose the necessary direct path loading API symbols. The library works with Oracle Call Interface and the Oracle OCI Load plug-in, but it is unnecessary for the Oracle Call Interface plug-in. To build the library for Version 8.1.7, use the following commands: # cp /cdrom/genclnt.tar # tar -xvf genclnt.tar # cd solaris #./genclntsh817 DataStage Oracle OCI Load Stage Guide 3

Load Modes Tru64 A one-time site linking to build a replacement Oracle client shared library is required for Oracle 8.1.7 on Tru64. This is required to expose the necessary direct path loading API symbols. Before you build the Oracle shared library, install Oracle and set the environment variable ORACLE_HOME to the directory where you installed Oracle. In order to build the library, you must copy the GENCLNT.TAR;1 file, which is located at the root level of the installation media, into a directory on the local hard disk and extract it before running the script. Use the following commands to build the shared library for version 8.1.7: # cp /cdrom/genclnt.tar;1./genclnt.tar # tar -xvf genclnt.tar # cd tru64 #./genclntsh817 HP-UX 11 A one-time site linking to build a replacement Oracle client shared library is required for Oracle Client 8.1.7 on HP-UX 11. This site linking binds your unique Oracle client configuration into the file that is used by the Oracle BL stage to access local and remote Oracle databases. Before you build the Oracle client shared library, install Oracle, and set the environment variable ORACLE_HOME to the directory where you installed Oracle. In order to build the library, you must copy the GENCLNT.TAR;1 file, which is located at the root level of the installation media, into a directory on the local hard disk and extract it before running the script. Oracle 8.1.7 requires a different script to link an adequate shared library on HP-UX 11. Use the following sequence of commands to build the shared library for version 8.1.7: # cp /cdrom/genclnt.tar;1./genclnt.tar # tar -xvf genclnt.tar # cd hpux #./genclntsh817 Load Modes Load mode specifies whether to load the data into the target file in automatic or manual mode. The Load Mode property specifies whether to populate the Oracle database immediately or generate a control file and a data file to populate the database later. 4 DataStage Oracle OCI Load Stage Guide

Properties Automatic Automatic loading, which is the default, loads the data during the DataStage job. The stage populates the Oracle database immediately after loading the source data. Automatic data loading occurs when the DataStage server resides on the same system as the Oracle server or when the Oracle server is remote and has the same operating system as the DataStage server. Be sure the Oracle client shared library is built (see "Building the Oracle Client Shared Library" on page 1-3 ). Manual Use manual loading to modify and move the data file, the control file, or both, to a different system before the actual loading process. Use manual mode to delay loading the data, which causes the data and control files required to load the data to be written to an ASCII file. The data and control files are used to load the data later. Properties The following table includes these column heads: Prompt is the text that you see in the stage editor user interface. Type is the set of values that are valid for the property. Default is the text used if you do not supply any value. Description describes the properties. Each stage property is described in the order in which it appears. You can also access this information from the stage Properties page in the DataStage Designer. Prompt Type Default Description Service Name String The name of the Oracle service. It is the logical representation of the database, which is the way the database is presented to clients. The service name is a string that is the global database name, a name comprised of the database name and domain name, which is entered during installation or database creation. User Name String The user name for connecting to the service. DataStage Oracle OCI Load Stage Guide 5

Properties Prompt Type Default Description Password String The password for User Name. Table Name String The name of the target Oracle table to load the files into. Schema Name String The name of the schema where the table being loaded resides. If unspecified, the schema name is User Name. Partition Name String The name of the partition or subpartition that belongs to the table to be loaded. If not specified, the entire table is loaded. The name must be a valid partition or subpartition name. Date Format String List DD-MON-YYYY The date format to be used. Use one of the following values: DD.MM.YYYY YYYY-MM-DD DD-MON-YYYY MM/DD/YYYY Time Format String List hh24:mi:ss The time format to be used. Use one of the following values: hh24:mi:ss hh:mi:ss am Max Record Number Long 100 Specifies the maximum number of input records in a batch. This property is used only if Load Mode is set to Automatic. 6 DataStage Oracle OCI Load Stage Guide

Properties Prompt Type Default Description Load Mode String List Automatic The method used to load the data into the target file. This property specifies whether to populate the Oracle database or generate a control file and a data file to populate the database. Use one of the following values: Automatic (immediate mode). The stage populates an Oracle database immediately after loading the source data. Automatic data loading can occur only when the DataStage server resides on the same system as an Oracle server. Manual (delayed mode). The stage generates a control file and a data file that you can edit and execute on any Oracle host system. The stage does not establish a connection with the Oracle server. Directory Path String The pathname of the directory where the Oracle SQL*Loader files are generated. This property is used only when Load Mode is set to Manual. Control File Name String servicename_ tablename.ctl The name of the Oracle SQL*Loader control file generated when Load Mode is set to Manual. This text file contains the sequence of commands telling where to find the data, how to parse and interpret the data, and where to insert the data. You can modify and execute this file on any Oracle host system. This file has a.ctl extension. Data File Name String servicename_ tablename.dat The name of the Oracle SQL*Loader sequential data file created when Load Mode is set to Manual. This file has a.dat extension. Delimiter String, (comma) The character used to delimit fields in the loader input data. Preserve Blanks String List No The indicator specifying whether SQL*Loader should preserve blanks in the data file. If No, SQL*Loader treats blanks as nulls. DataStage Oracle OCI Load Stage Guide 7

Properties Prompt Type Default Description Column Name Case-sensitivity String List No The indicator specifying whether both uppercase and lowercase characters can be used in column names. If No, all column names are handled as uppercase. If Yes, a combination of uppercase and lowercase characters is acceptable. 8 DataStage Oracle OCI Load Stage Guide