Required and Optional Attributes - Parallel Transporter

Teradata Parallel Transporter Reference

Product
Parallel Transporter
Release Number
15.10
Language
English (United States)
Last Update
2018-10-07
dita:id
B035-2436
lifecycle
previous
Product Category
Teradata Tools and Utilities

Required and Optional Attributes

Use the attribute definition list syntax in the Teradata PT DEFINE OPERATOR statement to declare the required and optional attribute values for the Export operator.

where:

 

Table 9: Export Operator Attribute Definitions 

Syntax Element

Description

AccountId = 'acctId'

Optional attribute that specifies the account associated with the specified user name.

If omitted, it defaults to the account identifier of the immediate owner database.

BlockSize = bytes

Optional attribute that specifies the block size to use when returning data to the client. The minimum is 256 bytes. The default and maximum are 64330 bytes.

Note: The BlockSize value cannot be larger than the row size supported by the Teradata Database.

DataEncryption = ‘option’

Optional attribute that enables full security encryption of SQL requests, responses, and data.

Valid values are:

  • ‘On’ = all SQL requests, responses, and data are encrypted.
  • ‘Off’ = no encryption occurs (default).
  • DateForm = 'option'

    Optional attribute that specifies the DATE data type for the Export operator job. Valid values are:

  • 'integerDate' = the integer DATE data type (default)
  • 'ansiDate' = the ANSI fixed-length CHAR(10) DATE data type
  • IgnoreMaxDecimalDigits = ‘option’

    Optional attribute to be used in conjunction with the MaxDecimalDigits option.

    IgnoreMaxDecimalDigits allows the same Teradata PT script to be run against a V2R6.2 and above Teradata Database, or a pre-V2R6.2 Teradata Database that doesn’t support the LARGE DECIMAL feature.

    The following values are permitted:

  • Yes or Y
  • No or N (default)
  • If both CLI and Teradata Database support the LARGE DECIMAL feature, leave the IgnoreMaxDecimalDigits attribute set to the default, No or N.

    If MaxDecimalDigits is set to a valid value and either CLI or Teradata Database do not support the LARGE DECIMAL feature, one of the following will occur depending on the setting for IgnoreMaxDecimalDigits:

  • If IgnoreMaxDecimalDigits is set to Yes or Y, the Export Operator will:
  • 1 Display a warning message that Teradata Database or Teradata CLIv2 does not support Large Decimal.

    2 Continue with the Teradata Parallel Transporter job.

    3 Exit with an exit code of 4, unless there is another error with a higher exit code:

  • If IgnoreMaxDecimalDigits is set to No or N, the Export Operator will:
  • 1 Display an error message that Teradata Database or Teradata CLIv2 does not support Large Decimal.

    2 Terminate the Teradata Parallel Transporter job.

    3 Exit with an exit code of 8.

    LogonMech = ‘string’

    Optional attribute that specifies which logon mechanism to use.

    Note: Specification of this attribute may be required for some authentication methods.

    The job terminates if the attribute exceeds 8 bytes.

    For information on specification requirements for LogonMech “Logon Security” in Teradata Parallel Transporter User Guide.

    LogonMechData = ‘data

    Optional attribute that passes along additional logon data.

    Note: Specification of this attribute is required for some external authentication methods.

    For information on specification requirements for LogonMechData “Logon Security” in Teradata Parallel Transporter User Guide.

    LogSQL = 'option'

    Optional attribute that controls how much of the job’s SQL to enter into the log.

    Valid options are:

  • 'Yes' = output the full SQL to the log. The maximum length is 1M.
  • 'No' = do not output SQL to the log.
  • No value or attribute omitted = accept the pre-defined limit, which displays up to 32K of SQL if all of the SQL is less than 32K. If the SQL to be logged exceeds 32K, truncate the display to the first 32K bytes.
  • MaxDecimalDigits = digits

    Optional attribute that restricts the number of digits in the DECIMAL data type that can be exported.

    Valid values are from 1 to 38.

    Default values are:

  • 18 on network-attached platforms
  • 15 on mainframe-attached platforms.
  • If the attribute has a value of q where 38>=q>=1, then any returned DECIMAL (n[,m]) data item with n>q is implicitly CAST to DECIMAL; overflows are handled the same as an explicit CAST.

    On mainframe-attached platforms, it is recommended that the MaxDecimalDigits attribute not exceed 31 to avoid representations that exceed the capacity of the native instruction set.

    MaxSessions = maxSessions

    Optional attribute specifying the maximum number of Export sessions to log on.

    The MaxSessions value must be greater than 0. Specifying a value less than 1 terminates the job.

    The default is one session per available AMP. The maximum value cannot exceed the number of available AMPs.

    MinSessions = minSessions

    Optional attribute that specifies the minimum number of sessions required for the Export operator job to continue.

    The MinSessions value must be greater than 0 and less than or equal to the maximum number of Export operator sessions. The default is one session.

    NotifyExit = 'inmodName'

    Optional attribute that specifies the name of the user-defined notify exit routine. If no value is supplied, the following default name is used:

  • libnotfyext.dll for Windows platform
  • libnotfyex.sl for HP-UX platform
  • libnotfyext.so for all other UNIX platforms
  • NOTFYEXT for z/OS platform
  • See Appendix B: “Deprecated Syntax” for information about providing your own notify exit routine.

    NotifyLevel = 'notifyLevel'

    Optional attribute that indicates the level at which certain events are reported. Valid values are:

  • 'Off' = no notification of events is provided (default)
  • 'Low' = 'Yes' in the Low Notification Level column
  • 'Med' = 'Yes' in the Medium Notification Level column
  • 'High' = 'Yes' in the High Notification Level column
  • NotifyMethod = 'notifyMethod'

    Optional attribute that indicates the method to be used for reporting events. The methods are:

  • 'None' = no event logging is done (default).
  • 'Msg' = sends the events to a log.
  • On Windows, the events are sent to the EventLog that can be viewed using the Event Viewer. The messages are sent to the Application log.
  • On Solaris, AIX, Linux, and HP-UX platforms, the destination of the events is dependent upon the setting specified in the /etc/syslog.conf file.
  • On SLES11, the destination of the events is dependent upon the setting specified in the /etc/syslog-ng.conf file.
  • On z/OS systems, events are sent to the job log.
  • 'Exit' = sends the events to a user-defined notify exit routine. Row count information is in 4-byte unsigned integer values.
  • ‘Exit64’ = sends the events to a user-defined notify exit routine. Row count information is in 8-byte unsigned integer values for the following events:
  • NXEventStmtFetchEnd64
  • NXEventReqFetchEnd64
  • NXEventExportEnd64
  • ’ExitEON’ = sends the events to a user-defined notify exit routine.
  • Complete Teradata object names are passed to the notify exit routine for the NXEventInitializeEON event. In addition, ExitEON sends row count information in 8-byte unsigned integer values.

    NotifyString = 'notifyString'

    Optional attribute that provides a user-defined string to precede all messages sent to the system log. This string is also sent to the user-defined notify exit routine. The maximum length of the string is:

  • 80 bytes, if the NotifyMethod is 'Exit'
  • 16 bytes, if NotifyMethod is 'Msg'
  • OutLimit= maxRecords

    Optional attribute that specifies the maximum number of records processed by each instance of the operator.

       INTEGER OutLimit = 1000
  • If specified, OutLimit value must be greater than 0.
  • If OutLimit is not specified, the number of records processed is not limited.
  • OutLimit specification applies to each instance of the Export operator and not to the total job.
  • PrivateLogName = 'logName'

    Optional attribute that specifies the name of a log that is maintained by the Teradata PT Logger inside the public log. The private log contains all of the output provided by the Export operator.

    The private log can be viewed using the tlogview command as follows, where jobid is the Teradata PT job name and privateLogName is the value for the Export operator PrivateLogName attribute:

    tlogview -j jobid -f privatelogname
     

    If the private log is not specified, all of the output is stored in the public log.

    For more information about the tlogview command, see Chapter 1: “Teradata PT Utility Commands.”

    QueryBandSessInfo = 'queryBand
    Expression
    '

    Optional attribute that specifies the Query Band for the duration of the job sessions.

    queryBandExpression is a set of name=value pairs, separated by a semicolon and ending with a semicolon. The user defines the Query Band expression, which will look similar to the following example:

    ‘org=Finance;load=daily;location=west;’

    QueryBandSessInfo may also be specified as an ARRAY attribute.

    For information on the rules for creating a Query Band expression SQL Data Definition Language Syntax and Examples and SQL Data Definition Language Detailed Topics.

    The value of the QueryBandSessInfo attribute is displayed in the Export operator private log.

    Use of the QueryBandSessInfo attribute is subject to the following rules:

  • By default, Query Band is off until a valid value appears for the QueryBandSessInfo attribute.
  • If the QueryBandSessInfo attribute contains a value, the Export operator constructs the necessary SET QUERY BAND SQL and issues it as part of the Load operator SQL sessions to communicate the request to the Teradata Database.
  • The Export operator does not check the Query Band expression, but passes the expression to Teradata Database as is.
  • If the version of Teradata Database against which the job is being run does not support the Query Band feature, no Query Banding will take place. However, the operator will ignore the error and run the rest of the job.
  • If there is a syntax error in the Query Band expression, Teradata Database will return an error. The Export operator will then terminate the job and report the error to the user.
  • SelectStmt = 'SELECT statement(s);

    Required attribute that specifies the Teradata SQL SELECT statement (or statements).

    Refer to the Teradata SQL reference for your operating system and enter one or more valid Teradata SQL SELECT statements for the SelectStmt attribute.

    The statement, or statements, must be enclosed in single quotes and each statement must be terminated with a semicolon.

    SpoolMode = 'option'

    Optional attribute that specifies which spooling mode to use for the answer set.

  • 'Spool' tells the Export operator to spool the answer set. This is the default.
  • 'NoSpool' tells the Export operator to try using the NoSpool method. If NoSpool is not supported, then use Spool.
  • 'NoSpoolOnly' tells the Export operator to use the NoSpool method only. If NoSpool is not supported, the job terminates with an error.
  • VARCHAR TASMFASTFAIL = ‘value’

    Optional attribute that enables FASTFAIL.

    Valid values are:

  • 'Yes' or ‘Y’ = Enable FastFail feature. The job will terminate gracefully when it is supposed to be held by DBS.
  • 'No' or ‘N’ = FastFail feature is not enabled (default). The job will appear to hang if the TASM rules dictate that a job should be held for any reason.
  • TdpId = 'dbcName'

    Optional attribute that specifies the name of the Teradata Database machine (non-mainframe platforms) or TDP (mainframe platforms) for the Export operator job.

    The dbcName can be up to 256 characters and can be a domain server name.

    The dbcName is the name of the host entered in the network hosts file.

    If you do not specify the value for the TdpId attribute, the operator uses the default TdpID established for the user by the system administrator.

    Note: On a mainframe, a single-character TdpId is supported. When only one character is specified, it is assumed to be an abbreviation for a four-character TdpId that begins with TDP.

    TenacityHours = hours

    Optional attribute that specifies the number of hours that the Export operator continues trying to log on when the maximum number of Update/Export/Load jobs are already running on the Teradata Database.

    The default value is 4 hours. To enable the tenacity feature, hours must be greater than 0. Specifying a value of 0 will disable the tenacity feature. Specifying a value of less than 0 terminates the job.

    TenacitySleep = minutes

    Optional attribute that specifies the number of minutes that the Export operator pauses before retrying a logon operation when the maximum number of Update/Export/Load operator jobs are already running on the Teradata Database.

    The minutes value must be greater than 0. If you specify a value less than 1, the Export operator responds with an error message and terminates the job. The default is 6 minutes.

    TraceLevel = 'level'

    Optional attribute that specifies the types of diagnostic messages that are written by each instance of the operator to the to the public log (or private log, if one is specified using the PrivateLogName attribute). The diagnostic trace function provides more detailed information in the log file to aid in problem tracking and diagnosis. The trace levels are:

  • 'None' = TraceLevel turned off (default).
  • 'CLI' = enables the tracing function for CLI-related activities (interaction with the Teradata Database)
  • 'PX' = enables the tracing function for activities related to the Teradata PT infrastructure
  • 'Oper' = enables the tracing function for operator-specific activities
  • 'Notify' = enables the tracing function for activities related to the Notify feature
  • 'All' = enables tracing for all of the above activities
  • The VARCHAR ARRAY can specify more than one value, for example:

    VARCHAR TraceLevel = 'CLI'
    VARCHAR TraceLevel = 'OPER'
    VARCHAR ARRAY TraceLevel = [ 'CLI' ]
    VARCHAR ARRAY TraceLevel = [ 'CLI', 'OPER' ]

    Note: The TraceLevel attribute is provided as a diagnostic aid only. The amount and type of additional information provided by this attribute will change to meet evolving needs from release to release.

    UserName = 'userId'

    Attribute that specifies the user name on the Teradata Database.

    Note: Use of this attribute is not compatible with some external authentication logon methods.

    For more information on username specification requirements, see “Logon Security” in theTeradata Parallel Transporter User Guide.

    UserPassword = 'password'

    Attribute that specifies the password associated with the user name.

    Note: Use of this attribute is not compatible with some external authentication logon methods.

    For more information on password specification requirements, see “Logon Security” in theTeradata Parallel Transporter User Guide.

    VARCHAR

    Keyword that specifies VARCHAR as the data type of the defined attribute.

    WorkingDatabase = 'databaseName'

    Optional attribute that specifies a database other than the logon database as the default database.

    The name of the database that is specified with this attribute is used in the Teradata SQL DATABASE statement that is sent by the operator immediately after connecting the two SQL sessions.

    If WorkingDatabase is not specified, the default database associated with the logged on user is assumed for all unqualified table names.