TTC_Server or TTC_Server1
When connecting to a TimesTen database using the TimesTen client and server, the TimesTen client requires the specification of the network address and TCP port number of the computer running the TimesTen server. The network address provided can be a domain name server (DNS), host name or IP address.
Note:
If you are configuring for client failover, you may define more than one TimesTen server. See TTC_Server2, TTC_ServerN for more information.
If the TimesTen server is listening on a non-default port number, you must provide the port number in one of the following ways:
-
You can specify the port number within the
TTC_Serverconnection attribute using:TTC_SERVER=server_host_name/server_port;
-
You can specify the port number in the ODBC connection string.
"TTC_SERVER=server_host_name;TTC_SERVER_DSN=Server_DSN; TCP_PORT=server_port"
Or:
"DSN=Client_DSN;TCP_Port=server_port"
-
If using TimesTen Classic, you can specify the port number within the logical server definition in the
ttconnect.inifile.
See TCP_Port for more details.
Note that:
-
You can use either
TTC_ServerorTTC_Server1for TimesTen Scaleout. If you define theTTC_Serverconnection attribute, the value is used only for the initial connection. -
You can specify a logical server name for the
TTC_Serverattribute with TimesTen Classic that contains the network address and port number pair in thettconnect.inifile. Once the logical server name is defined in thettconnect.inifile, you can use that name as the value for theTTC_Serverattribute in a Client DSN definition. Multiple Client DSNs referencing the same computer that is running the TimesTen server can use the same logical server name for the value of theTTC_Serverattribute instead of having to specify repeatedly the same network address and port number within each of the Client DSNs. See Creating and Configuring a Logical Server Name on Linux and UNIX in the Oracle TimesTen In-Memory Database Operations Guide for more details.
Required Privilege
No privilege is required to change the value of this attribute.
Usage in TimesTen Scaleout and TimesTen Classic
This attribute is supported in both TimesTen Classic and TimesTen Scaleout.Setting
Set TTC_Server or TTC_Server1 as follows:
| Where to set the attribute | How the attribute is represented | Setting |
|---|---|---|
|
C or Java programs or UNIX and Linux systems |
|
Character string specifying the logical server. |
|
Windows ODBC Data Source Administrator |
Server Name or Network Address field on the Oracle TimesTen Client DSN Setup dialog. |
Character string specifying the logical server. |