Option
|
Description
|
---|---|
CATALOG
|
CATALOG=mysaphanacatalog Specifies an arbitrary identifier for an SQL catalog, which groups logically related
schemas. CATALOG is a required option.
Note: SAS Federation Server automatically
quotes SQL identifiers that do not meet the regular naming convention
as defined in the SAS FedSQL Reference Guide.
|
DRIVER
|
DRIVER=SAPHANA Identifies the type of data service to which you want to connect. The data service SAPHANA represents
the SAP HANA database.
|
SAPHANA_DSN, DB, DATABASE
|
Specifies the configured
SAP HANA ODBC datasource to which you want to connect. Use this option
if you have existing SAP HANA ODBC datasources that are configured
on your client. This method requires additional setup, either through
the ODBC Administrator control panel on Windows platforms or through
the odbc.ini file on UNIX platforms.
Here is an example of
an odbc.ini entry in UNIX:
[SAPHANADSN] SERVERNODE=107.20.242.225:30015 Connection options specified in CONOPTS= are appended to the connection string. Use CONOPTS or SAPHANA_DSN to specify the DSN. Do not use both of these options
to specify the DSN.
|
SERVER
|
Specifies the server
name or IP address of the SAP HANA server. The port can be included
in the specified value. The port number is 3[instance-number]15 (for
example, 30015 for instance number 00).
You can specify a list
of hostnames separated by a semicolon to support failover. If a host
is not available, the next host from the list is used.
alias: SERVERNODE, SERVER,
HOST
Here are some examples
using the SERVER= option:
SERVER=<’>server-name<’> SERVER=<’>server-name:port<’> SERVER=‘server-name:port;failover-server-name1:port;failover-server-name2:port’ |
PORT
|
PORT=30015 Specifies the port number
that is used to connect to the specified SAP HANA server. If you do
not specify the port, the instance number, or include the port number
in the server specification, the default 30015 is used.
Note: 3[instance]15 is the port
for the standard SQL communication for client access. This is the
only port required for client access.
|
INSTANCE
|
Specifies the instance
number of the SAP HANA database engine. The port number is 3[instance-number]15.
For example, 30015 is the port number for INSTANCE number
00. If the port number is explicitly specified in either the PORT=
or the SERVER= option, the INSTANCE= option is ignored, and a warning
is written to the server log.
|
CONOPTS
|
CONOPTS=(ODBC-compliant
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.
|
UID
|
UID=‘user-ID’ Specifies the SAP HANA
user name, or user ID that you use to connect to a database. If the
user name or ID contains spaces or nonalphanumeric characters, enclose
it in quotation marks.
|
PWD
|
PWD=’user
password’ Specifies the password
that is associated with your SAP HANA user name. If the password contains
spaces or non-alphanumeric characters, you must enclose it in quotation
marks. You can also specify PASSWORD= with the PWD=, PASS=, and PW=
aliases.
|
Option
|
Description
|
---|---|
ENCRYPT
|
ENCRYPT=0|1 Used to enable or disable SSL encryption. The default is 0 (NO).
|
SSLCRYPTOPROVIDER
|
SSLCRYPTOPROVIDER=SAPCRYPTO
| OPENSSL | MSCRYPTO Specifies the cryptographic
library provider for SSL connectivity.
Alias: SSLPROVIDER
|
SSLKEYSTORE
|
SSLKEYSTORE=’file_path’ Specifies the path to the keystore file that contains the server’s private key. If
a value is not specified, the ODBC driver uses the default
$HOME/.ssl/key.pem .
|
SSLTRUSTSTORE
|
SSLTRUSTSTORE=’file_path’ Specifies the path to the truststore file that contains the server’s certificate.
If a value is not specified, the ODBC driver uses the default
$HOME/.ssl/trust.pem .
Note: Leave this option empty if
you are using the mscrypto cryptographic
library.
|
SSLVALIDATECERTIFICATE
|
SSLVALIDATECERTIFICATE=NO|YES|0|1 Set this option to validate the server’s certificate. Setting to YES or 1 activates
validation. The default is NO or 0. If this option is not specified, the ODBC driver
uses the default and does not validate certificates.
|
SSLHOSTNAMEINCERTIFICATE
|
SSLHOSTNAMEINCERTIFICATE=’string’ Specifies the host name
to use for validation. Use this host name when validating a server’s
certificate using SSLVALIDATECERTIFICATE.
Alias: SSLHOSTNAMEINCERT
|
SSLCREATESELFSIGNEDCERIFICATE
|
SSLCREATESELFSIGNEDCERTIFICATE=NO|YES|0|1 Specifies if a self-signed certificate is created if the keystore cannot be found.
If set to YES, a self-signed certificate is created in the event that the keystore
is not found. If this option is not specified, the driver uses the default, which
is NO.
Alias: SSLCREATECERT
|
Option
|
Description
|
||||||
---|---|---|---|---|---|---|---|
CT_PRESERVE
|
CT_PRESERVE = STRICT | SAFE | FORCE | FORCE_COL_SIZE Allows 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. The options are as follows:
|
||||||
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:
|
||||||
DEFAULT CURSOR TYPE
|
DEFAULT_CURSOR_TYPE=FORWARD_ONLY
| KEYSET_DRIVEN | DYNAMIC | STATIC; Specifies a valid default cursor type for new statements. The valid options are as
follows:
Note: The application can override
this value, but if the application does not explicitly set a cursor
type, the value specified in
DEFAULT_CURSOR_TYPE is
in effect.
|
||||||
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 database to the trace log based
on the specified tracing level, which determines the type of tracing information.
The tracing levels are as follows:
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 TRACE FILE
|
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 TRACE OPTIONS
|
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.
|
||||||
TABLE TYPE
|
TABLE_TYPE=ROW|COLUMN|LOCAL|LOCAL
TEMPORARY|GLOBAL|GLOBAL TEMPORARY Specifies the default table type when creating tables using FedSQL (CREATE TABLE).
This option can be overridden by
the TABLE_TYPE table option. If the table store type is not specified in connection
options nor in the table options, then the default SAP HANA store type is used.
ROW
Creates a table using
ROW-based storage in SAP HANA.
COLUMN
Creates a table using
COLUMN-based storage in SAP HANA.
LOCAL | LOCAL TEMPORARY
Creates a local temporary
table in SAP HANA. The table definition and data are visible only
in the current session.
GLOBAL | GLOBAL TEMPORARY
Creates a global temporary
table in SAP HANA. The global temporary tables are globally available,
and the data is visible only in the current session.
|