Hp Neoview Release 2.4 Software Manual do Utilizador

Consulte online ou descarregue Manual do Utilizador para Software Hp Neoview Release 2.4 Software. HP Neoview Release 2.4 Software User Manual Manual do Utilizador

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir

Resumo do Conteúdo

Página 1 - Edition: Release 2.4

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

Página 2

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

Página 3 - Table of Contents

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

Página 4 - 4 Table of Contents

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

Página 5 - Table of Contents 5

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

Página 6 - 6 Table of Contents

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

Página 7 - List of Tables

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

Página 8 - List of Examples

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

Página 9 - About This Document

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

Página 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

Página 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

Página 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

Página 13 - Publishing History

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

Página 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

Página 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

Página 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

Página 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

Página 19

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

Página 20 - The Transporter API

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

Página 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

Página 23 - 4 Security

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

Página 24

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

Página 26

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

Página 27

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

Página 28

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

Página 30

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

Página 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

Página 33

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

Página 34 - “%H:%M:%D:%S”

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

Página 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

Página 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

Página 37

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

Página 38 - WHERE T1.A = T2.A

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

Página 39

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

Página 40

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

Página 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

Página 42

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

Página 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

Página 44

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

Página 45

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

Página 46

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

Página 47 - Comments

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

Página 48 - Supported Data Types

Table of ContentsAbout This Document...9Intended

Página 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

Página 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

Página 51

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

Página 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

Página 53

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

Página 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

Página 55

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

Página 56 - 56 Control File Options

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

Página 57

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

Página 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

Página 59

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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 65 - Requirements

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

Página 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

Página 67

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

Página 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

Página 69 - 8 Data Processing

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

Página 70 - Delimited Data

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

Página 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

Página 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

Página 73 - 9 Troubleshooting

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

Página 74 - Job Recovery

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

Página 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

Página 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

Página 77

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

Página 78

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

Página 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

Página 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

Página 81

Restrictions...107Pa

Página 82

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

Página 83

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

Página 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

Página 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

Página 86

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

Página 87

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

Página 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

Página 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

Página 91

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

Página 92 - 92 Control File Examples

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

Página 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

Página 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

Página 95

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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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_

Página 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

Página 103

List of Examples5-1 Supported Scalar Expressions ...

Página 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

Página 105

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

Página 106

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

Página 107 - Control File Editor

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

Página 108 - Validating a Control File

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

Página 109 - Control File Generator

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

Página 110 - Optional Arguments

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

Página 111 - Packaging

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

Página 112

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

Página 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

Página 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

Página 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)

Página 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

Página 117 - E Transporter Exit Codes

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

Página 118

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

Página 119 - Glossary

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

Página 120

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

Página 121

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

Página 122 - 122 Index

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

Página 123

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

Página 124

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

Comentários a estes Manuais

Sem comentários