LD_LIBRARY_PATH=/opt/teradata/client/14.10/ lib64:/opt/teradata/client/14.10/tbuild/lib64:/ opt/teradata/client/14.10/tdicu/lib64:${LD_LIBRARY_PATH} export LD_LIBRARY_PATH=${LD_LIBRARY_PATH%:} export COPERR=/opt/teradata/client/14.10/lib export COPLIB=/opt/teradata/client/14.10/lib export NLSPATH=/opt/teradata/client/14.10/tbuild/msg64/%N
driver=sql;conopts=(driver=teradata;catalog=acat; uid=myuid;pwd='{sas002}C5DDFFF91B5D31DFFFCE9FFF'; server=terasoar;database=model)
Option
|
Description
|
---|---|
CATALOG
|
CATALOG=catalog-identifier; Specifies an arbitrary
identifier for an SQL catalog, which groups logically related schemas.
Any identifier is valid (for example, catalog=tera).
Note: You must specify a catalog.
|
DATABASE
|
DATABASE=database-name; Specifies the Teradata
database. If you do not specify DATABASE=, you connect to the default
Teradata database, which is often named the same as your user ID.
If the database value that you specify contains spaces or non-alphanumeric
characters, you must enclose it in quotation marks.
|
DRIVER
|
DRIVER=TERA; Identifies the data
service to which you want to connect, which is a Teradata database.
Note: You must specify the driver.
|
SERVER
|
SERVER=server-name; Specifies the Teradata
server identifier.
|
Option
|
Description
|
||||||
---|---|---|---|---|---|---|---|
ACCOUNT
|
ACCOUNT=account-ID; Specifies an optional
account number that you want to charge for the Teradata session.
|
||||||
CLIENT_ENCODING
|
CLIENT_ENCODING=encoding-value Used to specify the
character set for the session. UTF8 is the default if encoding is
not specified. These character sets are supported:
ASCII EBCDIC EBCDIC037_0E KATAKANAEBCDIC KANJIEUC_0U LATIN9_0A THAI874_4A0 LATIN1250_1A0 CYRILLIC1251_2A0 LATIN1254_7A0 HEBREW1255_5A0 ARABIC1256_6A0 LATIN1258_8A0 TCHBIG5_1R0 SCHINESE936_6R0 KANJI932_1S0 HANGUL949_7R0 TCHINESE950_8R0 LATIN1252_3A0 SCHEBCDIC935_2IJ TCHEBCDIC937_3IB HANGULEBCDIC933_1II EBCDIC273_0E EBCDIC277_0E KANJIEBCDIC5035_0I KANJIEBCDIC5026_0I UTF8 UTF16 |
||||||
CT_PRESERVE
|
CT_PRESERVE
= STRICT | SAFE | FORCE | FORCE_COL_SIZE Enables users to control
how data types are mapped. Note that data type mapping is disabled
when CT_PRESERVE is set to STRICT. If the requested type does not
exist on the target database, an error is returned. Here are the options:
|
||||||
DEFAULT_ATTR
|
DEFAULT_ATTR=(attr=value;...) Used to specify connection
handle or statement handle attributes supported for initial connect-time
configuration, where
attr=value corresponds
to any of the following options:
|
||||||
DRIVER_TRACE
|
DRIVER_TRACE='API
| SQL | ALL'; Requests tracing information,
which logs transaction records to an external file that can be used
for debugging purposes. The driver writes a record of each command
that is sent to the trace log based on the specified tracing level,
which determines the type of tracing information. Here are the tracing
levels:
Default: Tracing
is not activated.
Note: If you activate tracing,
you must also specify the location of the trace log with DRIVER_TRACEFILE=.
Note that DRIVER_TRACEFILE= is resolved against the TRACEFILEPATH
set in ALTER SERVER. TRACEFILEPATH is relative to the server's content
root location.
(Optional) You can control
trace log formatting with DRIVER_TRACEOPTIONS=.
Interaction: You
can specify one trace level, or you can concatenate more than one
by including the | (OR) symbol. For example,
driver_trace='api|sql' generates
tracing information for API calls and SQL statements.
|
||||||
DRIVER_TRACEFILE
|
DRIVER_TRACEFILE=‘filename'; Used to specify the
name of the text file for the trace log. Include the filename and
extension in single or double quotation marks (for example,
driver_tracefile='\mytrace.log' ).
Default: The
default TRACEFILE location applies to a relative filename, and it
is placed relative to TRACEFILEPATH.
Requirement: DRIVER_TRACEFILE
is required when activating tracing using DRIVER_TRACE.
Interaction: (Optional)
You can control trace log formatting with DRIVER_TRACEOPTIONS=.
|
||||||
DRIVER_TRACEOPTIONS
|
DRIVER_TRACEOPTIONS=APPEND
| THREADSTAMP | TIMESTAMP; Specifies options in
order to control formatting and other properties for the trace log:
Default: The
trace log is overwritten with no thread identification or time stamp.
|
||||||
PASSWORD
|
PASSWORD=password; Specifies a Teradata
password. The password must match your USER= value. The alias is PWD=.
Note: You must specify the PASSWORD=
option.
|
||||||
ROLE
|
ROLE=security-role; Specifies a security
role for the session.
|
||||||
USER
|
USER=user-id; Specifies a Teradata
user ID. If the ID contains blanks or national characters, enclose
it in quotation marks. The alias is UID=.
Note: You must specify the USER=
option.
|