Contents Index SendBufferSize communication parameter [SNDBUFSZ] TDS communication parameter

ASA Database Administration Guide
  Connection and Communication Parameters
    Network communications parameters

ServerPort communication parameter [PORT]


Usage 

TCP/IP (all platforms), HTTP, HTTPS

Values 

Integer

Default 

The default value for TCP/IP is 2638. The default value for HTTP is 80. The default value for HTTPS is 443.

Description 

The Internet Assigned Numbers Authority has assigned the Adaptive Server Anywhere database server port number 2638 to use for TCP/IP communications. However, applications are not disallowed from using this reserved port, and this may result in an addressing collision between the database server and another application.

In the case of the database server, the ServerPort option designates the port number on which to communicate using TCP/IP.

In a data source, the ServerPort option informs the client of the port or ports on which database servers are listening for TCP/IP communication. The client broadcasts to every port that is specified on the ServerPort (PORT) communication parameter to find the server.

The database server always listens on port 2638, even if you specify a different port using a network communication parameter. Hence, applications can connect to the database server without specifying a port number. An exception is the HP-UX operating system, on which the server does not listen on port 2638 if it is started on another port.

Connecting on HP/DEC Unix platforms 
In Adaptive Server Anywhere version 9.0.0 and higher, the default port behavior for HP/DEC Unix platforms is equivalent to the way database servers worked on all platforms in Adaptive Server Anywhere versions 6.x.

In version 9.0.0 and higher, on HP/DEC Unix platforms only, if no port number is specified, the TCP port starts up on the default port (2638). If port 2638 is already in use by another application (either TCP or UDP), TCP does not start at all - the server does NOT automatically choose a different port to use.

If -x tcpip is specified, and the default port number is in use, then the server does not start. If the -x option is omitted entirely, the server still starts up, but TCP is unavailable.

By default, the database server listens on the standard HTTP and HTTPS ports of 80 and 443, respectively.

Example 
  1. Start a network database server:

    dbsrv9 -x tcpip -n server1

    Port number 2638 is now taken.

  2. Attempt to start another database server:

    dbsrv9 -x tcpip -n server2

    The default port is currently allocated, and so the server starts on another port.

  3. If another web server on your machine is already using port 80 or you do not have permission to start a server on this low a port number, you may wish to start a server that listens on an alternate port, such as 8080:

    dbsrv9 -xs http(port=8080) -n server3 web.db

Contents Index SendBufferSize communication parameter [SNDBUFSZ] TDS communication parameter