LD_LIBRARY_PATH=/dbi/netezza/7.0.4/lib64:${LD_LIBRARY_PATH} export LD_LIBRARY_PATH=${LD_LIBRARY_PATH%:} export ODBCINI=/env/netezza/odbc.ini export NZ_ODBC_INI_PATH=/env/netezza
driver=sql;conopts=(driver=netezza;uid=myid2; pwd=mypwd2;server=mysrvr;database=mydb; catalog=(bcat={TEST}))
Option
|
Description
|
---|---|
CATALOG
|
CATALOG=catalog-identifier; Specifies an arbitrary
identifier for an SQL catalog, which groups logically related schemas.
Any identifier is valid.
Note: Table services automatically
quotes SQL identifiers that do not meet the regular naming convention
as defined in SAS FedSQL Reference Guide.
|
DATABASE
|
DATABASE=database—name; Identifies the database
to which you want to connect, which resides on the server previously
specified through the SERVER option.
|
DRIVER
|
DRIVER=NETEZZA ;
Specifies the data service
for the Netezza database to which you want to connect.
Note: You must specify the driver.
|
CONOPTS
|
CONOPTS=(ODBC—compliant
database connection string); Specifies an ODBC-compliant
database connection string using ODBC-style syntax. These options,
combined with the ODBC_DSN option, must specify a complete connection
string to the data source. If you include a DSN= or FILEDSN= specification
within the CONOPTS= option, do not use the ODBC_DSN= connection option.
However, you can specify the ODBC database-specific connection options
by using CONOPTS=. Then you can specify an ODBC DSN that contains
other connection information by using the ODBC_DSN= connection option.
|
DSN
|
DSN=data_source_identifer; Identifies the data
source name to which you want to connect.
|
SERVER
|
SERVER=server_name; Identifies the name
of the server where the Netezza database resides.
|
PORT
|
PORT=port_number Identifies the listen
port of the server where the Netezza database resides.
|
Option
|
Description
|
||||||
---|---|---|---|---|---|---|---|
CLIENT_ENCODING
|
CLIENT_ENCODING=cei Used to specify encoding
for the client.
|
||||||
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 that are 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 database 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.
|
||||||
USER
|
USER=“user-id”; Specifies a Netezza
user ID. If the ID contains blanks or national characters, enclose
it in quotation marks. Alias: UID.
Note: You must specify the USER
option.
|
||||||
PASSWORD
|
PASSWORD=password; Specifies a password
for the ID passed through the USER= option. Alias: PWD.
Note: You must specify the PASSWORD
option with USER.
|
||||||
STRIP_BLANKS
|
STRIP_BLANKS=YES|NO; Specifies whether to
strip blanks from character fields.
|
||||||
READONLY
|
READONLY=YES|NO; Specifies whether to
connect to the Netezza database in Read-Only mode. The default is
NO. Alias: READ_ONLY
|
||||||
SHOWSYSTEMTABLES
|
SHOWSYSTEMTABLES=YES|NO; Specifies whether tables
are included in the available table list. If set to YES or TRUE, system
tables are included in the available table list. The default setting
is NO. Alias: SST
|
||||||
NUMBERBYTESPERCHARACTER
|
NUMBYTESPERCHAR=value; Specifies the default
number of bytes per character.
|