Use the attribute definition list syntax in the Teradata PT DEFINE OPERATOR statement to declare the required and optional attribute values for the Load operator.
where:
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. |
BufferSize = KBytes | Optional attribute that specifies the output buffer size, in kilobytes, that is used for sending Load parcels to the database. The output buffer size and the size of the rows in the Load table determine the maximum number of rows that can be included in each parcels to the database. A larger buffer size reduces processing overhead by including more data in each parcels. Allowable values are 1 through 16384, but if you specify a value of 16384, the actual buffer size gets set to 16775552 bytes, which is less than the full 16MB. If the value less than 1, an error message results and job terminates. The default buffer size is 1024K bytes when the operator is talking to a Teradata Database 16.00 or later. The default buffer size is 64K bytes when the operator is talking to a pre-16.00 Teradata Database version. The maximum allowed buffer size is usually 16384 Kbytes. Values are evaluated when the connection to the database is made. If the supplied buffer size is too large, the operator scales it back to the maximum allowed buffer size. |
CheckpointRowCount - ‘option’ | Optional attribute that tells the Load operator to enable or disable outputting the rows sent at checkpoints. Valid values are:
This attribute is only available in the TPT script mode. |
ConnectString = 'connectionString' | Optional attribute that specifies the connection string. The connection string will be passed to CLI. CLI will validate the connection string. For information on connection string, see Teradata® Call-Level Interface Version 2 Reference for Workstation-Attached Systems, B035-2418. The TPT Connection String feature is available on all platforms, except z/OS.
|
DataEncryption = ‘option’ | Optional attribute that enables full security encryption of SQL requests, responses, and data. Valid values are:
|
DateForm = 'option' | Optional attribute that specifies
the DATE data type for the Load operator job. Valid values are:
|
DropErrorTable = ‘option’ | Optional attribute that specifies whether or not error tables are dropped upon successful completion of the load job, even if the error tables are empty. Valid values are:
|
DropLogTable = ‘option’ | Optional attribute that specifies whether or not restart log table is dropped upon successful complete of the load job. Valid values are:
|
ErrorLimit = errorLimit | Optional attribute that specifies
the approximate number of records that can be stored in one of the
error tables before the Load operator job is terminated. The ErrorLimit specification must be greater than 0. Specifying an invalid value will cause the Load operator to terminate. By default, ErrorLimit value is unlimited. The ErrorLimit specification applies to each instance of the Load operator. |
ErrorTable1 = 'errorTable1Name' | Optional attribute that specifies
the name of the first error table. ErrorTable1 contains records
rejected because of:
These types of errors always occur during the acquisition phase of the Load operator job. ErrorTable1 must be a new table name. Do not use a name that duplicates the name of an existing table unless you are restarting a paused Load operator job. The default name for ErrorTable1 is ttname_ET. For more information, see ErrorTable1 and Auto-Generation of Error Tables. |
ErrorTable2 = 'errorTable2Name' | Optional attribute that specifies
the name of the second error table. ErrorTable2 contains records
that violated the unique primary index constraint. This type of
error always occurs during the application phase of the Load
operator job. ErrorTable2 must be a new table name. Do not use a name that duplicates the name of an existing table unless you are restarting a Load operator job. The default name for ErrorTable2 is ttname_UV. For more information, see ErrorTable2 and Auto-Generation of Error Tables. |
LogonMech = ‘string’ | Optional attribute that specifies which logon mechanism to use. 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, see “Logon Security” in Teradata® Parallel Transporter User Guide, B035-2445. |
LogonMechData = ‘data’ | Optional attribute that passes along additional logon data. Specification of this attribute is required for some external authentication methods.
For information on specification requirements for LogonMechData, see “Logon Security” in Teradata® Parallel Transporter User Guide, B035-2445. |
LogSQL = 'option' | Optional attribute that controls how much of the job’s SQL to enter into the log. Valid options are:
|
LogTable = 'logTableName' | Optional attribute that specifies the name of the restart log table that stores checkpoint information for restarting a job. If running a new job, specify a new table name that is different from the name of any existing table). The Load operator then creates a new restart log table. If restarting a paused job, then the restart log table must exist, and the Load operator restarts the job from the last checkpoint. The restarted job will continue using the existing restart log table. When a job successfully completes, the operator drops the restart log table. Failure to specify a restart log table will cause the job to terminate. The following privileges are required on the restart log table:
Users must also have DROP and CREATE privileges on the database that contains the restart log table. The Load operator automatically maintains the restart log table. Manipulating the restart log table in any way invalidates the restart capability. If the restart log table name is not fully qualified, it is created under the user's default (logon) database. If the WorkingDatabase attribute is used, you MUST fully qualify the restart log table name, even if the restart log table is going to reside in the default (logon) database. |
MaxSessions = maxSessions | Optional attribute that specifies
the maximum number of 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 Load operator job to
continue. The MinSessions value must be greater than 0 and less than or equal to the maximum number of Load operator sessions. Specifying a value less than 1 (the default) terminates the job. |
NotifyExit = 'inmodName' | Optional attribute that specifies
the name of the user-defined notify exit routine with an entry point
named _dynamn. If no value is supplied, the
following default name is used:
See Deprecated Syntax for information about providing your own notify exit routine. |
NotifyExitIsDLL = 'option' | Optional attribute (for z/OS
systems only) that specifies whether the notify exit routine is
built as a DLL (shared library) or not. Valid values are:
Any other value terminates the job. |
NotifyLevel = 'notifyLevel' | Optional attribute that specifies
the level at which certain events are reported. Valid values are:
|
NotifyMethod = 'notifyMethod' | Optional attribute that specifies
the method for reporting events. The methods are:
|
NotifyString = 'notifyString' | Optional attribute that specifies 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:
|
PauseAcq = 'option' | Optional attribute that specifies whether to pause the Load operator job after the acquisition phase or enter the application phase. Values are:
Specifying any other value terminates the job. The absence of any value for the PauseAcq attribute means that the Load operator job will execute both the acquisition phase and the application phase without pausing. This will distribute all of the rows that were sent to the database during the acquisition phase to their final destination on the AMPs. |
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 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 operator’s PrivateLogName attribute: tlogview -j jobid -f privatelogname If the private log is not specified, all output is stored in the public log. By default, no diagnostic trace messages are produced. Diagnostic trace messages are produced only when the user sets a valid value for the TraceLevel attribute. For more information about the tlogview command, see Teradata PT Utility Commands. |
QueryBandSessInfo = ‘queryBandExpression’ | Optional attribute that specifies the Query Band for the duration of the job sessions. The 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, see Teradata Vantage™ - SQL Data Definition Language Syntax and Examples, B035-1144 and Teradata Vantage™ - SQL Data Definition Language Detailed Topics, B035-1184. The value of the QueryBandSessInfo attribute is displayed in the Load operator private log. Use of the QueryBandSessInfo attribute is subject to the following rules:
|
RoleName = 'role name' | Optional attribute that implements security in a database environment. The operator will prepend the value with "SET ROLE ". The syntax will be sent to the database as follows: SET ROLE <role name>; For example: SET ROLE All; For details of "SET ROLE" command use, see Teradata Vantage™ - SQL Data Definition Language Syntax and Examples, B035-1144. The VARCHAR ARRAY can specify more than one value, for example: VARCHAR ARRAY RoleName = ['role name1', 'role name2'], The operator will send the request to the database on the main control session and the auxiliary SQL session after the sessions are connected. The operator does not send the request on the FastLoad protocol sessions, because the database does not allow the request to be send on the FastLoad protocol sessions.
|
TargetTable = 'targetTableName' | Required attribute that specifies the name of the Load target table to receive the data from the client system. A target table must already exist on a database and be empty, with no defined secondary or join indexes, before a Load job is run. You cannot use a name that duplicates the name of an existing table unless you are restarting a paused Load operator job. For target tables defined as NoPI, the restriction that the target table must be empty does not apply. |
VARCHAR TASMFASTFAIL = 'value' | Optional attribute that enables FASTFAIL feature. Valid values are:
|
TenacityHours = hours | Optional attribute that specifies the number of hours that the Load operator continues trying to log on when the maximum number of load/unload operations are already running on the database. The default value is 4 hours. To enable the tenacity feature, hours must be greater than 0. Specifying a value of 0 disables the tenacity feature. Specifying a value of less than 0 terminates the Load job. |
TenacitySleep = minutes | Optional attribute that specifies the number of minutes that the Load operator pauses before retrying to log on when the maximum number of load/export operations are already running on the database. The minutes value must be greater than 0. If you specify a value less than 1, the Load operator responds with an error message and terminates the job. The default is 6 minutes. |
TdpId = 'dbcName' | Optional attribute that specifies the name of the database machine (non-mainframe platforms) or TDP (mainframe platforms) for the Load operator job. The dbcName can be up to 256 characters and can be a domain server name. 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. 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.
|
TimeZoneSessInfo = 'timeZoneValue' | Optional attribute that allows you to change the default time zone displacement for the duration of the operator's job session. When you provide a value for this attribute, the operator will build the SET TIME ZONE <timeZoneValue>; SQL request. The operator will send the request to the database on the main control and auxiliary SQL sessions after the sessions are connected. The operator does not send the request on the FastLoad protocol sessions, because the database does not allow the request to be send on the FastLoad protocol sessions. Here are some examples:
For more information on SET TIME ZONE SQL, see Teradata Vantage™ - SQL Data Definition Language Syntax and Examples, B035-1144. |
TraceLevel = 'level' | Optional attribute that specifies
the types of diagnostic messages that are written by each instance
of the operator 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:
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' ] The TraceLevel attribute is provided as
a diagnostic aid only. The amount and type of additional information
provided by this attribute changes to meet evolving needs from
release to release.
|
TransformGroup = 'transformgroupname' | Optional attribute that supports changing the active transform for Teradata Complex Data Types (CDTs). The value is the <udt name> <transform group name>, and the operator will prepend the hard-coded string "SET TRANSFORM GROUP FOR TYPE ". The syntax sent to RDBMS is as follows: SET TRANSFORM GROUP FOR TYPE <udt name> <transform group name>; For example:
"SET TRANSFORM GROUP FOR TYPE JSON CHARACTER SET LATIN TD_JSON_VARCHAR;" The VARCHAR ARRAY can specify more than one value, for example:
VARCHAR ARRAY TransformGroup = ['JSON CHARACTER SET LATIN TD_JSON_VARCHAR', 'ST_GEOMETRY TD_GEO_VARCHAR'], The operator will send the request to the database on the main control session after the session is connected. The operator does not send the request on the auxiliary SQL session, because the database does not require it. The operator does not send the request on the FastLoad protocol sessions, because the database does not allow the request to be send on the FastLoad protocol sessions.
|
TreatDBSRestartAsFatal= 'option' | Optional attribute that tells the operator whether or not to terminate the job when a database restart occurs. The TreatDBSRestartAsFatal values are:
|
UnicodePassThrough = 'value' | Optional attribute that tells the operator to enable or disable the Unicode Pass Through feature. Valid values:
When a TPT job is using the UTF8 or UTF16 session character set, the UnicodePassThrough attribute can be set to 'On' to allow the operator to load data with Unicode pass through characters.
|
UserName = 'userId' | Attribute that specifies the database user name. Use of this attribute is not compatible with some external authentication logon methods. For more information on UserName specification requirements, see “Logon Security” in Teradata® Parallel Transporter User Guide, B035-2445.
|
UserPassword = 'password' | Attribute that specifies the password associated with the user name. Use of this attribute is not compatible with some external authentication logon methods. For more information on password specification requirements, see “Logon Security” in Teradata® Parallel Transporter User Guide, B035-2445.
|
WildcardInsert= ‘option’ | Optional attribute that builds an INSERT statement from the table definition. Use this attribute to load all of the columns in a table when the columns contain user-defined types (UDTs). Valid values are:
If you set this attribute to Yes when a valid, fully supported INSERT statement already exists, an error results. A valid tableName matches the name of the table used in the TargetTable attribute and the semicolon is in the last non-whitespace character in the supplied DML statement as follows: INS[ERT] [INTO] <tablename> ; |
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 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. |