TCP_Port
When connecting to a TimesTen database using the TimesTen client and server, the TimesTen client requires the network address and the TCP port number of the computer running the TimesTen server.
The default TCP/IP port number is assumed for TCP_Port unless you
specify a value in the TTC_Server connection attribute, in the ODBC
connection string, or in the logical server definition.
If the TimesTen server is listening on a non-default port number, you must provide the port number in one of the following ways:
-
If using TimesTen Classic, you can specify the port number within the logical server definition, which contains the network address and port number pair. See Defining a Logical Server Name in Oracle TimesTen In-Memory Database Operations Guide for more information on defining a logical server.
-
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"
Required Privilege
No privilege is required to change the value of this attribute.
Setting
Set TCP_Port as follows:
| Where to set the attribute | How the attribute is represented | Setting |
|---|---|---|
|
C or Java programs |
|
Specify the port number where the server is listening. |
|
Windows ODBC Data Source Administrator and UNIX and Linux systems |
TCP_Port on the Oracle TimesTen Logical Server Name Setup dialog. |
Specify the port number where the server is listening. |