Setting the Federation server options
Adjust the Federation server options to improve your Data Virtualization querying experience.
Prerequisites
- To adjust the Federation server options, you must have DBADM authority. For more information, see Database administration authority (DBADM).
- You must have Db2 CLI access.
Setting a Federation server option
Alter server qplex options(add/set <CID>@<server_option> <value>)
- Replace <CID> with your Data Virtualization connection ID.
- Replace <server_option> with the Federation server option as listed in the following table.
- Replace <value> with the value as of the server option as listed in the following table.
Alter server qplex options(add DB21001@COLLATING_SEQUENCE ‘Y’)
Federation server options
Server option | Purpose | Applicable data source | Values |
---|---|---|---|
COLLATING_SEQUENCE |
This server option indicates whether the remote data source sorts characters the same way as
the local Data
Virtualization server. This impacts whether predicates with string comparisons
and operations like |
All Data Virtualization relational data sources. | Consider the following values to configure this server option:
|
DB2_CHAR_BLANKPADDED_COMPARISON |
This option is used to indicate whether a remote data source treats trailing blanks (spaces)
in fixed-length character strings as insignificant during comparison. This is done by adding
trailing blanks (spaces) to the common length and then comparing the string. For example, ‘ABC’=‘ABC ‘ since ‘ABC’ is padded to ‘ABC ‘. This option impacts whether the fixed-length string comparison, including predicates and other string sorting operations, can be pushed down. |
MySQL and MariaDB. | Consider the following values to configure this server option:
|
DB2_SAME_CODESET |
This option indicates whether the remote data source has the same code page as the local Data Virtualization server. Data Virtualization has functions that take character positions as input or output, and if that position is determined by byte, then it might point to another position of the string when the string is represented in a different code page. This option impacts whether some string functions can be pushed down. |
All Data Virtualization relational data sources. | Consider the following values to configure this server option:
|
DB2_VARCHAR_BLANKPADDED_COMPARISON |
This option is used to indicate whether a remote data source treats trailing blanks (spaces)
in variable-length character strings as insignificant during comparison. This is done by adding
trailing blanks (spaces) to the common length and then comparing the string. For example, ‘ABC’=‘ABC ‘ since ‘ABC’ is padded to ‘ABC ‘. This option impacts whether the variable length string comparison, including predicates and other string sorting operations, can be pushed down. |
MySQL and MariaDB. | Consider the following values to configure this server option:
|
SAME_DECFLT_ROUNDING |
This option indicates whether the remote data source uses the same rounding mode for decimal
floating-point numbers (DECFLOAT) as the localData
Virtualization server. This option impacts whether the functions calculating DECLOAT can be pushed down. |
Db2 and Oracle. | Consider the following values to configure this server option:
|
SAME_STR_COMP_SEMANTICS |
This option checks whether the remote data source handles string comparisons in the same way
as the local Data
Virtualization server, particularly whether trailing blanks (spaces) are
considered significant to different CHAR and VARCHAR string types. This option impacts whether it’s necessary to further check CHAR and VARCHAR type string comparison semantics during string comparison pushdown analysis. |
All Data Virtualization relational data sources. | Consider the following values to configure this server option:
|
SERVER_VERSION |
This option indicates the version of the remote data source. For some data sources, different
versions might have different capabilities, and pushdown levels for a particular SQL. This option impacts the whole pushdown analysis for the data sources. |
Hive and Db2 for z/OS. |
For Hive, set the Hive version as one of the following:
For Db2 for z/OS data sources, set this option by using the prefix 'DSN'. For example,
|
STRING_UNITS |
This option indicates the string unit of the remote data source. A string unit is a way that
the system counts of measures the length of a string or the position of characters within a string.
If the data source uses the same string unit, then the functions can be pushed down. This option impacts whether the functions that are related to a string unit can be pushed down. |
Db2 | Check the remote Db2 database
configuration parameter STRING_UNITS by running the following command:
Consider the
following values:
|
VARCHAR2_COMPAT |
This option indicates whether remote data sources have character types that are compatible
with Oracle
varchar2 . Empty strings in Oracle are treated as 'NULL'. Oracle is also sensitive to trailing blanks (spaces) in string comparisons, meaning that 'ABC' is not equal to 'ABC '. This option impacts whether the string comparisons can be pushed down. |
Db2 | Consider the following values to configure this server option:
|
VARCHAR_NO_TRAILING_BLANKS |
This option indicates whether the remote data source has trailing blanks (spaces) in any of
the data that is stored in VARCHAR columns. If the data in the VARCHAR columns does not contain trailing blanks (spaces), then the results are consistent with the local Data Virtualization server, which is sensitive to trailing blank (spaces). This option impacts whether the variable length string comparison including predicates and other operations that are involved in string sorting, can be pushed down when the remote data source is not sensitive to trailing blanks (spaces). |
All Data Virtualization relational data sources. | Consider the following values to configure this server option:
|