TCP_Port2, TCP_PortN
For TimesTen Classic, TimesTen uses this attribute to specify the port number to use
if an automatic failover occurs. See the description of TCP_Port for details on setting the value of
this attribute and associated attributes.
The default TCP/IP port number is assumed for TCP_Port2 and TCP_PortN unless you specify a value in the appropriate TTC_ServerN connection attribute, in the ODBC connection string, or in the logical server definition. See TTC_Server or TTC_Server1 for more details.
Unspecified values for TCP_PortN inherit the value of TCP_PORT (or TCP_PORT1). For example, if TTC_Server2 is specified but TTC_Server_DSN2 and TCP_Port2 are not, then TTC_Server_DSN2 is set to the TTC_Server_DSN value and TCP_Port2 is set to the TCP_Port value.
See Using Automatic Client Failover in Oracle TimesTen In-Memory Database Operations Guide for more information on automatic client failover.
Required Privilege
No privilege is required to change the value of this attribute.
Setting
Set TCP_Port2, TCP_PortN as follows:
| Where to set the attribute | How the attribute is represented | Setting |
|---|---|---|
|
C or Java programs |
|
Specify the failover port number where the server should listen. |
|
Windows ODBC Data Source Administrator and UNIX and Linux systems |
Specify TCP_Port2, TCP_PortN in a connection string when also specifying a TTC_Server2, TTC_ServerN. |
Specify the failover port number where the server should listen. |