Hp Neoview Release 2.4 Software Manuel d'utilisateur

Naviguer en ligne ou télécharger Manuel d'utilisateur pour Logiciel Hp Neoview Release 2.4 Software. HP Neoview Release 2.4 Software User Manual Manuel d'utilisatio

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 124
  • Table des matières
  • DEPANNAGE
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs

Résumé du contenu

Page 1 - Edition: Release 2.4

HP Neoview Transporter User GuideHP Part Number: 514030-001Published: April 2009Edition: Release 2.4

Page 2

Neoview Customer LibraryThe manuals in the Neoview customer library are listed here for your convenience.• AdministrationInformation for database admi

Page 3 - Table of Contents

Example A-13 Control File: NOAUDIT mode/*---------------------------------------------------------------------------------------*//* A Single Load Job

Page 4 - 4 Table of Contents

Example A-14 Control File: Forcestaging Load with Multiple Job Entries in a Single Job/*--------------------------------------------------------------

Page 5 - Table of Contents 5

source src2 target tgt1 map map1 source src3 target tgt1 map map1 )}102 Control File Examples

Page 6 - 6 Table of Contents

Example A-15 Control File: Load From File to Table Using Subset of Source Columns*--------------------------------------------------------------------

Page 7 - List of Tables

ADR_tgt = ADDRESS_src, ZP_tgt = ZIP_src, PH_tgt = PHONE_src, SOCIAL_tgt

Page 8 - List of Examples

Example A-16 Control File: Load File to Table Without 1 to 1 Mapping/*-----------------------------------------------------*//* Simple Load From File

Page 9 - About This Document

password = "dbt", datasource = "Admin_Load_DataSource", url

Page 10 - Neoview Customer Library

B Control File Editor and Control File GeneratorThis chapter addresses the following topics:• The “Control File Editor ” (page 107)• The “Control File

Page 11 - General Syntax Notation

If a control file is not syntactically correct, it opens in text mode only. Fix all syntax errors beforeviewing the file in GUI mode. See “Checking th

Page 12

Switching Views in the Control File EditorYou can work in two views in the Control File Editor:• GUI view (default view)The GUI view assists you in cr

Page 13 - Publishing History

Information about using Neoview Workload Management Services (WMS) tomanage workload and resources on a Neoview data warehousing platform.Neoview Work

Page 14

—tablespecifies the table name or names to be used in generating a control file. If specified withouteither –schema or –cat, fully-qualify the table n

Page 15 - 1 Overview

Restrictions for Delimited Table Names• For a list of tables, a delimited table name cannot end with a comma (,).• The schema part of a fully-qualifie

Page 17 - Installing Transporter

C Global Options TableGlobal Transporter options that are specified in the Options section of the control file can beoverridden at other levels or sec

Page 18

Table C-1 Global Options Table (continued)Can be overridden at these levelsThis OptionXX“url” (page 60)XX“user” (page 60)114 Global Options Table

Page 19

D Reserved KeywordsTransporter Reserved KeywordsAll control file options and section identifiers are reserved in a control file.All keywords are case-

Page 20 - The Transporter API

Table D-1 Reserved Keywords List (continued)Reserved Keywordsurlparallelstreamsexpressionusenullstringpasswordextractusernamepipefaileddatafileversion

Page 21 - 3 Functions and Features

E Transporter Exit CodesTable E-1 Transporter Exit CodesErrorCode NumberSuccess0General failure.1NVTHOME environment variable is not defined or is inv

Page 23 - 4 Security

Glossarycontrol file Input to Transporter. The control file specifies how you want to move data from source totarget.Control FileGeneratorA standalone

Page 24

Italic LettersItalic letters, regardless of font, indicate variable items that you supply. Items not enclosedin brackets are required. For example:fil

Page 26

IndexAautotran, description of, 49Bbaddatafile, description of, 49byteintegral data type, 48byteintintegral data type, 48Cchar[acter]character data ty

Page 27

delimited format, 35fixed field definitions , 36fixed length format, 36SQL table format, 37dataformats control file section, 35datasource, description

Page 28

Ssaving control filepackaging, 108security, 23of passwords, 23smallintintegral data type, 48sorted, description of, 58sources control file section, 43

Page 30

ATTRIBUTE[S] attribute [, attribute]...{, sql-expression}...An ellipsis immediately following a single syntax item indicates that you can repeat thats

Page 32 - — backslash (\\)

1 OverviewThe HP Neoview Transporter client provides a high-speed load and extract facility to move datato (load) and from (extract) the HP Neoview pl

Page 33

• “Control File Generator” (page 109)• “Control File Editor ” (page 107)For detailed information see:“Control File Organization and Syntax” (page 25)“

Page 34 - “%H:%M:%D:%S”

2 Installation and ConfigurationThis chapter addresses the following topics:• “Installation Requirements” (page 17)• “Installing Transporter” (page 17

Page 35 - Dataformats

• export JAVA_HOME=/usr/java/jdk1.5.0_09• export PATH=/usr/java/jdk1.5.0_09/bin:$PATH• export JREHOME=/usr/java/jdk1.5.0_09/jreInstalling the Client U

Page 36

Installing the Client Using CONSOLE ModeIf you do not have a GUI environment, or if you prefer a console-like installation, you can installTransporter

Page 37

© Copyright 2009 Hewlett-Packard Development Company, L.P.Legal NoticeConfidential computer software. Valid license from HP required for possession, u

Page 38 - WHERE T1.A = T2.A

These subdirectories are created in the NVTHOME directory:ContentsDirectoryLicense file, Transporter executable scripts, and Readme/Libraries, static

Page 39

3 Functions and FeaturesIn addition to standard load and extract, Transporter provides support for these additionalfeatures and functions:• “Staging T

Page 40

PrehashingTransporter streamlines the process for load operations with hash-partitioned tables by performinga pre-hashing operation on the client. For

Page 41 - INFO = NULL

4 SecurityBecause load and extract jobs connect to databases and access password-protected resources, itis necessary for Transporter to keep track of

Page 42

%NVTHOME%\utils\nvtencsrv -o installThe Encryption Utility — nvtencrsrvnvtencrsrv is a utility that installs the security directory and related files,

Page 43

5 Control File Organization and SyntaxThe control file is a text file that tells Transporter how you want your data moved from sourceto target for eit

Page 44

Table 5-1 Control File OrganizationOptionsControl File SectionN.A.“Version” (page 27)Global options for all Transporter jobs controlled by this file.•

Page 45

Table 5-1 Control File Organization (continued)OptionsControl File SectionLocation of sources and targets for data.These global options can be overrid

Page 46

versionnumberis the major version, followed by optional minor and patch versions. All version numbercomponents are separated by a period (.). Only the

Page 47 - Comments

• “noaudit” (page 56)• “nullstring” (page 56)• “operation” (page 57)• “parallel” (page 57)• “parallelstreams” (page 57)• “password” (page 57)• “retrie

Page 48 - Supported Data Types

Table of ContentsAbout This Document...9Intended

Page 49 - 6 Control File Options

formatstringDefines the pattern for this field. For a load operation, formatstring tells Transporter howto interpret source file values. For an extrac

Page 50 - 50 Control File Options

• Date/Time data typesUse a combination of the following patterns to a specify date or time format:— %bThe abbreviation for the month name in the curr

Page 51

— backslash (\\)Period (.) is the only supported separator between integral and fractional seconds.32 Control File Organization and Syntax

Page 52 - Encoding For An Extract Job

The following are defaults and examples:— Date values◦ Default: %C%y-%m-%d◦ Example: The input characters “2007–10–05” can be processed without a form

Page 53

• Interval data typesInterval data types require a formatstring.There is no default for interval fields.These field specifiers are allowed:— For year-

Page 54 - 54 Control File Options

Table 5-2 Typeformats: format_definition Date/Time Format String Examples (continued)ExampleDescription"%m/%d/%y %H:%M"Specify a formatstrin

Page 55

optionally qualified by {' | "}Specifies a quoting character for each data field.For information, see “Quote Processing For Load Operations”

Page 56 - 56 Control File Options

Dataformats: Neoview SQL Table Formatformatname sql fieldsfields-definitionformatnameThe name you create for this delimited dataformat. The name must

Page 57

a matching name is found. Subsequent columns with the matching name are notaccessible within this dataformat.There are two workarounds for this proble

Page 58 - 58 Control File Options

MapsThe maps section describes how one data format is mapped to another when data is moved fromsource to target.maps{map-definition [, map-definition

Page 59

5 Control File Organization and Syntax...25Creating a Control File...

Page 60 - 60 Control File Options

fieldname_target, fieldname_sourcefieldname_target and fieldname_source must refer to names defined in the sourcedataformat and target dataformat, res

Page 61 - 7 Load and Extract Operations

Table 5-3 Datatype Mappings (continued)Can be Mapped to a Target Field of Type...Source Field of Type...any character typedatetimetimestamptimestampin

Page 62 - Stopping the Client

Example:EMP_ID = identity loaderAsks the loader to generate a key for target field EMP_ID.scalar-expressionA simple expression composed of a fieldname

Page 63 - Parallel Streams

The condition and update options are ignored for insert operations.The condition and update options cannot both be “true” for a field mapping unless i

Page 64

sourcename pipe pipename [options source-options]Specifies a named pipe as the data source/target. pipename is the name of the pipe.sourcename { jdbc

Page 65 - Requirements

table1 jdbc table "SQL"."MyTable"• Specify a source names “query1” to access an SQL join query:query1 jdbc sql "select * fro

Page 66

JobsThe jobs section specifies a list of Transporter jobs. A job is a collection of job entries. Jobs areprocessed serially, one at a time. This secti

Page 67

• “operation” (page 57)• “parallel” (page 57)• “rowsetsize” (page 58)• “truncate” (page 60)job-entry-listone or more occurrences of job-entry, separat

Page 68

/*Your comment line 1Your Comment line 2...*/IncludeYou can include one or more control file fragments from other control files. A control file fragme

Page 69 - 8 Data Processing

6 Control File Optionsautotranautotran = "true" | "false"The default is “false”.For a load operation: when this option is set to “

Page 70 - Delimited Data

7 Load and Extract Operations ...61Steps for Performing Load and Extr

Page 71 - Delimited Data 71

Applies only to date values in source records for a load operation. This option is ignored forextract operations.When a date value is to be interprete

Page 72 - 72 Data Processing

NOTE: These values are advisory only. While this number can be considered a trigger forshutting down a job, Transporter continues to process data alre

Page 73 - 9 Troubleshooting

TIP: The Transporter NVTHOME/utils directory contains these programs that you can compileand execute to display character set encodings:• CharsetsSupp

Page 74 - Job Recovery

◦ ' (apostrophe)◦ ( (open parenthesis)◦ ) (close parenthesis)◦ * (asterisk)◦ + (plus sign)◦ , (comma)◦ - (hyphen)◦ . (period)◦ / (slash mark)◦ Th

Page 75

NOTE: These values are advisory only. While this number can be considered a trigger forshutting down a job, Transporter continues to process data alre

Page 76 - Control File Metadata Tables

• Each target table has its own staging table.• The names of staging tables are generated by Transporter and written to the Transporterlog.• Source ro

Page 77

noauditnoaudit = "true" | "false"The default is false.For a load operation, this option specifies whether Transporter should use n

Page 78

operationoperation = "insert" | "update" | "upsert" | "delete"The default is “insert”.For a load operation, th

Page 79 - A Control File Examples

password specifies the password to use when connecting to a JDBC, ODBC, or JMS data source.• password specifies a plain-text password.• ${referencenam

Page 80

For a load operation when a pipe is read, Transporter discards any records read until thestartseq record is seen. Transporter stops reading records on

Page 81

Restrictions...107Pa

Page 82

number_of_seconds can be zero or a positive integer.truncatetruncate = "true" | "false"The default is “false” (do not delete data

Page 83

7 Load and Extract OperationsThe Transporter Client performs load and extract operations based on the content of a controlfile. This chapter addresses

Page 84 - 84 Control File Examples

resubmitting it, and you want Transporter to perform recovery on the job. For more informationabout -recover, refer to “ The -recover Command Line Opt

Page 85

The Transporter JobThe units that make up a control file are called jobs. A job is a load or extract operation consistingof several job entries.A job

Page 86

• Set “parallelstreams” (page 57) = n• Set “multipart” (page 55) = trueCAUTION: If multipart = false, and parallelstreams is enabled, Transporter st

Page 87

RequirementsThese are the requirements to use the Trickle Feed feature:• ActiveMQ (JMS provider), which is included with the Java client package• A se

Page 88

• The set of targets (that you have set in the “Sources” (page 43) section) must be the samefor all sources in the job.• If multiple job entries speci

Page 89

• Updates to primary key fields are not supported.• The condition map entry option defaults to true for all primary key columns.• The update map entry

Page 91

8 Data ProcessingThis chapter addresses these topics:“Data For Load Operations” (page 69)“Processing Data for Load Operations” (page 69)“Delimited Dat

Page 92 - 92 Control File Examples

List of Tables1-1 Transporter Client Software Components...162-1 GUI

Page 93

Fixed—Width Data for Load OperationsTransporter addresses and processes a fixed—width input field as follows, in this order:1. If “nullstring” (page 5

Page 94 - 94 Control File Examples

For Windows platforms: CR/LF (carriage return/line-feed)—— For Unix-like systems: LF (line feed)— For the Macintosh family: CR (carriage return)If mul

Page 95

— To qualify by double-quotes (""):optionally qualified by "— To qualify by single-quotes (""):optionally qualified by '

Page 96 - 96 Control File Examples

9 TroubleshootingThis section covers job recovery and solutions to problems you might encounter.• “Logs” (page 73)• “Job Recovery” (page 74)• “Job Sta

Page 97

Example 9-1 Examples of Custom Log File Locationsto send log output hereUse this command/test/log/java/DBTransporter.log—DNVT.instance-log-dir=test/ho

Page 98 - 98 Control File Examples

CAUTION:• You must use the original control file to recover load jobs. If the control file has changed,Transporter reports an error and exits.• The or

Page 99

— Time for next retry operation if applicable— End time of the job entryControl File Metadata TablesYou can retrieve control file related data from th

Page 100 - 100 Control File Examples

Example 9-5 Identify All Job Entries that Successfully Completed Within the Last Seven DaysSELECT B.FILE_HOST, B.FILE_ABS_PATH, B.FILE_MOD

Page 101

Example 9-7 Identify All Jobs Executed From Host abc Using the Latest Version of Control File/home/control files/ControlFile.txtSELECT DISTINCT A.JOB_

Page 102 - 102 Control File Examples

A Control File ExamplesControl File ExamplesFollowing are control file examples for:• Data types Example A-1 (page 80)• Extract from a Neoview SQL sou

Page 103

List of Examples5-1 Supported Scalar Expressions ...

Page 104 - 104 Control File Examples

Example A-1 Control File: Datatypes/* All Data Types */version 1;options { errors = 1000, discards = 500, rowsetsize = 1000}typeformats {# c

Page 105

intv10 interval format intv_frmt_10, intv11 interval format intv_frmt_11, intv12 interval format intv_frmt_12, flot1 fl

Page 106

tims1 = tims1, tims2 = tims2, intv00 = intv00, intv02 = intv02, intv03 = intv03, intv05 = intv05,

Page 107 - Control File Editor

Example A-2 Control File: Extract From Neoview SQL Source/*----------------------------------------*//* Simple Extract From Neoview SQL Source To File

Page 108 - Validating a Control File

LAST_NAME = LAST_NAME, ADDRESS = ADDRESS, ZIP = ZIP, PHONE = PHONE, INFO1 = INFO1, INFO2

Page 109 - Control File Generator

Example A-3 Control File: Extract From Table Source to Named Pipe/*------------------------------------------------*//* Simple Extract From Table Sour

Page 110 - Optional Arguments

{ extract1 extract options ( parallel = "false" ) ( source src1 target tgt1 map map1 )}86 Control File Examples

Page 111 - Packaging

Example A-4 Control File: Load Fixed Width Data/* Load Fixed Width Data */version 1;options { errors = 1000, discards = 100, rowsetsize

Page 112

LAST_NAME = LAST_NAME, ADDRESS = ADDRESS, ZIP = ZIP, PHONE = PHONE, SSN = SSN, INFO1

Page 113 - C Global Options Table

Example A-5 Control File: Include Defining DataformatsYou can use an Include file such as this to define data formats for many control files. SeeExamp

Page 114 - 114 Global Options Table

About This DocumentThis manual describes how to install and manage HP Neoview Transporter. This product providesprocesses and commands for loading dat

Page 115 - D Reserved Keywords

Example A-6 Control File: Include — Load From File to Table/* Simple Load From File To Table Using INCLUDE To Include Control File Fragment (File 1/2)

Page 116

Example A-7 Control File: Load and Extract/* Simple Load From File To Table & Extract From Neoview SQL Source To File */version 1.0;options{ er

Page 117 - E Transporter Exit Codes

PHONE = PHONE, SSN = SSN, INFO1 = INFO1, INFO2 = INFO2 )map2 from dataformat2 to dataformat3 (

Page 118

Example A-8 Control File: Multiple Dataformats and Maps/*-----------------------------*//* Multiple Dataformats & Maps *//*-----------------------

Page 119 - Glossary

( system = "asl0101", user = "user", password = "transport", url

Page 120

Example A-9 Control File: Reflexive Update/*-------------------------*//* Simple Reflexive Update *//*-------------------------*/version 1.0;options {

Page 121

Example A-10 Control File: Update with Constant, NULL, or Expression/*--------------------------------*//* Constants, NULLs & Expressions *//*----

Page 122 - 122 Index

load1 load options ( parallel= "false" ) ( source src1 target tgt1 map map1 )}97

Page 123

Example A-11 Control File: Identity columnThis example of defines an IDENTITY column. CUSTOMER_NUMBER can be any numeric datatype (SMALLINT, INTEGER,

Page 124

Example A-12 Control File: Usage of NULLSTRING/*--------------------------------*//* Usage of NULLSTRING */ /*-----------------------------

Commentaires sur ces manuels

Pas de commentaire