Connection
options are used to establish a connection to a data source. Specify
one or more connection options when defining a data service using
the
CREATE DATA
SERVICE DDL statement.
The following table
describes the data service connection options for SAP HANA. When configuring
a data service, you must include one of the following configurations
to establish connection to an SAP HANA system:
-
-
SAPHANA_DSN or a DSN in CONOPTS
-
-
SERVER with a full server name
and port
|
|
|
|
|
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.
|
|
|
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.
|
|
|
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’
|
|
|
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.
|
|
|
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. A warning is written to the
server log.
|
|
|
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.
|
|
|
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.
|
|
|
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.
|