export ODBCHOME=/dbi/odbc/gpl94m3 export ODBCINI=/dbi/odbc/gpl94m3/odbc.ini export ODBCINST=/dbi/odbc/gpl94m3/odbcinst.ini export GPHOME_LOADERS=/dbi/greenplum/4.2.6/gpfdist export GPLOAD_HOST=mynode.abc.123.com export GPLOAD_HOME=/tmp LD_LIBRARY_PATH=/dbi/odbc/gpl94m3/lib:${LD_LIBRARY_PATH} LD_LIBRARY_PATH=${LD_LIBRARY_PATH%:} export LD_LIBRARY_PATH
driver=sql;conopts=(driver=greenplum;uid=myuid; pwd=MyPasswd;server=greenlight;port=5432; database=sample;catalog=acat)
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=gps_test ).
You must specify a catalog. For the Greenplum database, this is a
logical catalog name to use as an SQL catalog identifier.
Note: SAS Federation Server 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 that was
previously specified by the SERVER option.
|
DRIVER
|
DRIVER=GREENPLUM ;
Specifies the data service
for the Greenplum database to which you want to connect. You must
specify a driver.
|
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 Greenplum database resides.
|
Option
|
Description
|
||||||
---|---|---|---|---|---|---|---|
ALLOW_UNQUOTED_NAMES
|
ALLOW_UNQUOTED_NAMES=NO|YES ;
Specifies whether to
enclose table and column names in quotation marks. Tables and columns
are quoted when this option is set to NO (default). If the option
is set to YES, the driver will not automatically add quotation marks
to table and column names if they are not specified. This allows Greenplum
tables and columns to be created in the default lowercase.
|
||||||
CLIENT_ENCODING
|
CLIENT_ENCODING=cei ;
Specifies an encoding,
different from the default, to use on 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 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 SAS Federation Server 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.
|
||||||
MAX_BINARY_LEN
|
MAX_BINARY_LEN=value; Specifies a value to
limit the length of long binary fields (LONG VARBINARY). As opposed
to other databases, Greenplum does not have a size limit for long
binary fields.
|
||||||
MAX_CHAR_LEN
|
MAX_CHAR_LEN=value; Specifies a value to
limit the length of character fields (CHAR and VARCHAR). As opposed
to other databases, Greenplum does not have a size limit for character
fields.
|
||||||
MAX_TEXT_LEN
|
MAX_TEXT_LEN=value; Specifies a value to
limit the length of long character fields (LONG VARCHAR). As opposed
to other databases, Greenplum does not have a size limit for long
character fields.
|
||||||
NUM BYTES PER CHAR
|
NUMBYTESPERCHAR=value; Specifies the default
number of bytes per character.
|
||||||
PASSWORD
|
PASSWORD=password; Specifies a password
for the ID passed through the USER= option. The alias is PWD=.
Note: You must specify the PASSWORD=
option.
|
||||||
SCHEMA
|
SCHEMA=value; Specifies the default
schema for the connection. If the option is not specified, the schema
(or list of schemas) is determined based on the value of the schema
search path defined on the database server.
|
||||||
STRIP_BLANKS
|
STRIP_BLANKS=value; Specifies whether to
strip blanks from character fields.
|
||||||
USER
|
USER=user-id; Specifies a Greenplum
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.
|
Windows
|
The options are located
on the Advanced or Performance tabs
in the ODBC Administrator.
|
UNIX
|
The options are available
when configuring data sources using the ODBC Administrator tool. Values
can also be set by editing the
odbc.ini file
in which their data sources are defined.
|