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, you can specify the port number within the logical server definition in the
ttconnect.inifile.
See TCP_Port for more details.
You can specify a logical server name for the
TTC_Server attribute with TimesTen that contains the network
address and port number pair in the ttconnect.ini file. Once the
logical server name is defined in the ttconnect.ini file, you can
use that name as the value for the TTC_Server attribute 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 the
TTC_Server attribute 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.
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. |