The following advanced
options are supported for the Greenplum database.
|
|
|
|
|
ALLOW_UNQUOTED_NAMES=NO
| YES;
Specifies whether to
enclose table and column names with quotation marks. Tables and columns
are quoted when this option is set at NO (default). If 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 lower case.
|
|
|
Specifies an encoding
different from the default to use on the client side.
|
|
|
CT_PRESERVE = STRICT | SAFE | FORCE | FORCE_COL_SIZE
Allows users
to control how data types are mapped. Note that data type mapping
will be disabled when CT_PRESERVE is set to STRICT. If the requested
type does not exist on the target database, an error is returned.
The options are:
-
STRICT The requested type must exist
in the target database. No type promotion will occur. If the type
does not exist, an error is returned.
-
SAFE Target data types will be upscaled
only if they will not result in a loss of precision or scale. When
character encodings are changed, the new column size will be recalculated
to ensure all characters can be stored in the new encoding.
-
FORCE This is the default for all drivers.
The best corresponding target data type will be chosen, even if it
could potentially result in a loss of precision or scale. When character
encodings are changed, the new column size will be recalculated to
ensure all characters can be stored in the new encoding.
-
FORCE_COL_SIZE This option is the same as FORCE,
except that the column size for the new encoding will be the same
as the original encoding. This can be used to avoid <i>column
size creep</i> that has been seen in some cases, but it means
that the resulting column might be too large or too small for the
target data.
|
|
|
DEFAULT_ATTR=( attr=value;...)
DEFAULT_ATTR
is used to specify connection handle or statement handle attributes
supported for initial connect-time configuration. Where attr=value corresponds
to any of the options below:
-
CURSORS=n-
Connection handle option. This option controls the driver’s
use of client side result set cursors. The possible values are 0,
1 or 2.
| 0 |
Causes the driver to use client side static cursor
emulation if a scrollable cursor is requested but the database server
cannot provide one.
|
| 1 |
Causes the driver to always use client side static
cursor emulation if a scrollable cursor is requested. The database
server’s native cursor will never be used.
|
| 2 |
(Default) Causes the driver to never use client
side static cursor emulation if a scrollable cursor is requested.
The database server’s native cursor will be used if available
– otherwise the cursor will be forward only.
|
Example: DEFAULT_ATTR=(CURSORS=2)
-
USE_EVP=n—
Statement handle option. This option optimizes the driver for large
result sets. The possible values are 0 (OFF) or 1 (ON), which is the
default. Example: DEFAULT_ATTR=(USE_EVP=0)
-
XCODE_WARN=n -
Statement handle option. Used to warn on character transcoding errors
that occur during row input or output operations. Possible values
are 0 (returns an error), 1 (returns a warning), or 2 (ignore transaction
errors). Example: DEFAULT_ATTR=(XCODE_WARN=1)
|
|
|
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 database to the
trace log based on the specified tracing level, which determines the
type of tracing information. The tracing levels are:
-
ALL Activates all trace levels.
-
API Specifies that API method calls
be sent to the trace log. This option is most useful if you are having
a problem and need to send a trace log to Technical Support for troubleshooting.
-
DRIVER Specifies that driver-specific
information be sent to the trace log.
-
SQL Specifies that SQL statements
that are sent to the database management system (DBMS) be sent to
the trace log. Tracing information is DBMS specific, but most SAS
Federation Server drivers log SQL statements such as SELECT and COMMIT.
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=’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
will be 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=APPEND | THREADSTAMP | TIMESTAMP;
Specifies options
in order to control formatting and other properties for the trace
log:
-
APPEND Adds trace information to the end
of an existing trace log. The contents of the file are not overwritten.
-
THREADSTAMP Prepends each line of the trace
log with a thread identification.
-
TIMESTAMP Prepends each line of the trace
log with a time stamp.
Default: The
trace log is overwritten with no thread identification or time stamp.
|
|
|
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.
|
|
|
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.
|
|
|
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.
|
|
|
Specifies the default
number of bytes per character.
|
|
|
Specifies a password
for the ID passed through the USER= option. The alias is PWD=.
Note: You must specify the PASSWORD=
option.
|
|
|
Specifies the default
schema for the connection. If not specified, the schema (or list of
schemas) will be determined based on the value of the schema search
path defined on the database server.
|
|
|
Specifies whether to
strip blanks from character fields.
|
|
|
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.
|