Teradata Client ANSI TERADATA Modes

2
7/23/2019 Teradata Client ANSI TERADATA Modes http://slidepdf.com/reader/full/teradata-client-ansi-teradata-modes 1/2 Teradata Client Teradata Client Teradata BTEQ client software, the Teradata ODBC driver, and any other Teradata client software must be installed on the machine where the Integration Service rocess runs Mappings/Transformations Source ! "se ODBC# ODBC is a$native$ interface for Teradata% it is not a layer on to of C&I &oo'u ( Stored )rocedure ! "se ODBC Target ! "se ODBC, *+ST&O+D, &O+D, T)") -ou can use only fi.ed!width files when you load to Teradata through loaders# If you secify delimited files, the Informatica Server fails the session In the control file all columns are defined as C/+0# During runtime these loaders convert the inut data to C/+0 and then convert it bac' to original datatyes 1hen calling a re! or ost!load stored rocedure without any argument, use a dummy value for the argument in the call te.t roerties# If you do not configure the call te.t roerty, the maing is invalid# Setting by ODBC 23 Set the TE0+D+T+4/OE, ODBC/OE, and )+T/ environment variables# 53 Set the shared library environment variable 63 Edit the e.isting odbc#ini file or coy the odbc#ini file to the home directory and edit it To run the loader utilities, ma'e sure the local host file on the machine where the Teradata client is installed Teradata data source in the odbc#ini file7 DateTime*ormat8+++ 9oScan8-es Session Modes The default value of Sessionode is Teradata , which is case insensitive# Change the Sessionode arameter to :+9SI: in the ODBC DS9 in the #odbc#ini file# ;Sessionode 8 +9SI3 1hen you use +9SI session mode, Teradata does not roll bac' the transaction when it encounters a row error# If you choose Teradata session mode, Teradata rolls bac' the transaction when it encounters a row error# So if you have a session with a Teradata target as well as a loo'u you will want to create a searate #odbc#ini entry;DS93 for the target to avoid this issue# + Stored )rocedure that was comiled in one mode cannot be run in the other mode# -ou will get Invalid session mode for rocedure error#  ANSI mode: + transaction initiation is always imlicit# + transaction is oened by the first SQ& statement e.ecuted in a session or by the first statement e.ecuted following the close of a transaction#

Transcript of Teradata Client ANSI TERADATA Modes

Page 1: Teradata Client ANSI TERADATA Modes

7/23/2019 Teradata Client ANSI TERADATA Modes

http://slidepdf.com/reader/full/teradata-client-ansi-teradata-modes 1/2

Teradata Client

Teradata Client

Teradata BTEQ client software, the Teradata ODBC driver, and any other Teradata client software must be installed

on the machine where the Integration Service rocess runs

Mappings/Transformations

Source ! "se ODBC# ODBC is a$native$ interface for Teradata% it is not a layer on to of C&I

&oo'u ( Stored )rocedure ! "se ODBC

Target ! "se ODBC, *+ST&O+D, &O+D, T)")

-ou can use only fi.ed!width files when you load to Teradata through loaders#

If you secify delimited files, the Informatica Server fails the session

In the control file all columns are defined as C/+0#

During runtime these loaders convert the inut data to C/+0 and then convert it bac' to original datatyes

1hen calling a re! or ost!load stored rocedure without any argument, use a dummy value for the argument inthe call te.t roerties#

If you do not configure the call te.t roerty, the maing is invalid#

Setting by ODBC

23 Set the TE0+D+T+4/OE, ODBC/OE, and )+T/ environment variables#

53 Set the shared library environment variable

63 Edit the e.isting odbc#ini file or coy the odbc#ini file to the home directory and edit it

To run the loader utilities, ma'e sure the local host file on the machine where the Teradata client is installed

Teradata data source in the odbc#ini file7 DateTime*ormat8+++

9oScan8-es

Session Modes

The default value of Sessionode is Teradata , which is case insensitive#

Change the Sessionode arameter to :+9SI: in the ODBC DS9 in the #odbc#ini file# ;Sessionode 8 +9SI3

1hen you use +9SI session mode, Teradata does not roll bac' the transaction when it encounters a row error#

If you choose Teradata session mode, Teradata rolls bac' the transaction when it encounters a row error#

So if you have a session with a Teradata target as well as a loo'u you will want to create a searate #odbc#ini

entry;DS93 for the target to avoid this issue#

+ Stored )rocedure that was comiled in one mode cannot be run in the other mode# -ou will get Invalid session

mode for rocedure error#

 ANSI mode:

+ transaction initiation is always imlicit#

+ transaction is oened by the first SQ& statement e.ecuted in a session or by the first statement e.ecuted

following the close of a transaction#

Page 2: Teradata Client ANSI TERADATA Modes

7/23/2019 Teradata Client ANSI TERADATA Modes

http://slidepdf.com/reader/full/teradata-client-ansi-teradata-modes 2/2

+ transaction is initiated when no transaction is currently active, and a SQ& statement is e.ecuted#

The COIT <1O0=> or 0O&&B+C= <1O0=> statements close a transaction#

"&TISET is the default in the C0E+TE T+B&E statement in +9SI mode#

Teradata mode:

Transactions can be imlicit or e.licit#Statement failures roll bac' the entire transaction# +n error result rolls bac' the entire transaction#

Control of character truncation causes no error#

The default in character comarison is 9OT C+SES)ECI*IC#

SET is the default in the C0E+TE T+B&E statement

TIMESTAMP !

To laod timestam with fractional secs, write the column as varchar5 and in the format :----!!DD

//5?77SS#SSSSSS:

-ou may also encounter an error writing a )owerCenter date@time ort to a Teradata timestam ;A3 field, or a

Teradata timestam with no fractional seconds#

To resolve this issue ! change the column in Teradata to a Timestam;n3 wherenA

or edit the control file generated!change the length of the field that corresonds to the Timestam ;A3 field from

C/+0 ;53 to C/+0 ;23