Collection Contents Index Connection parameters CHAPTER 4.  Database Administration Utilities pdf/chap3.pdf

Reference Manual
   CHAPTER 3. Connection and Communication Parameters     

Network communications parameters


If you experience problems with client/server network communications, there are a number of command line parameters for both the client and the server. These parameters enable you to work around peculiarities of different network protocol implementations.

You can supply the network communication parameters on the server command line as in the following example:

dbsrv6 -x tcpip(PARM1=value1;PARM2=value2;. . .),IPX

From the client side, the communications parameters are entered as the CommLinks communication parameter:

CommLinks=tcpip(PARM1=value1;PARM2=value2;. . .),IPX

If there are spaces in a parameter, the network communication parameters must be enclosed in quotation marks to be parsed properly by the system command interpreter:

dbsrv6 -x "tcpip(PARM1=value 1;PARM2=value 2;...),IPX"
CommLinks="tcpip(PARM1=value 1;PARM2=value 2;...),IPX"

The quotation marks are required under UNIX if more than one parameter is given, because UNIX interprets the semicolon as a command separator.

Boolean parameters are turned on with YES, ON, or 1, and are turned off with any of NO, OFF, and 0. The parameters are case-insensitive.

The examples provided should all be entered on a single line; you can also include them in a configuration file and use the @ server or client command-line switch to invoke the configuration file.

The parameters currently available are as follows.

Top of page  BROADCAST parameter [BCAST]

Usage 

TCP/IP

Description 

BROADCAST specifies the special IP address used by your TCP/IP protocol implementation to identify a broadcast message. The most common broadcast IP address is 255.255.255.255, the default setting.

Some TCP/IP implementations instead use a broadcast address consisting of the network IP address portion, with 255 as the remaining integers. For example, if the network portion of your IP address is 197, some TCP/IP implementations use 197.255.255.255 as the broadcast IP address. If your network portion is 192.023, the broadcast IP address would be 197.023.255.255.

Default 

255.255.255.255

Top of page  DOBROADCAST parameter

Usage 

TCP/IP (all platforms), IPX (Windows 95 and NT only)

Description 

With DOBROADCAST=YES, a broadcast is performed to search for a server if the server is not found in the bindery.

With DOBROADCAST=NO, 0, or OFF, no broadcast is performed to search for a database server. In this case, you must specify the server host with the HOST option.

For IPX only, you can also supply an address for the DOBROADCAST argument. The address serves as a mask for the HOST parameter, and allows you to specify a non-zero network number. This is intended for use when broadcasting over a router. The network number is assigned by the network administrator.

In IPX, a node address consists of six numbers (up to 255 each) and the network address consists of four digits, separated by colons.

Default 

Yes

Example 

Top of page  DLL parameter

Usage 

TCP/IP (Windows 95, Windows NT, OS/2)

Description 

To support untested TCP/IP protocol stacks where the required networking interface functions are in DLLs that differ from the default protocol stack. The client or server looks for its required functionality in the named DLLs.

Default 

Example 

Top of page  EXTENDEDNAME parameter

Usage 

IPX (platforms other than Windows 95 or NT)

Description 

According to the Novell standard for legal SAP names, the following characters are not allowed:

\ / : ; , * ? + - 

If you start a server named "asademo-1", the default behavior is to strip out the - and try to start a server asademo1. By turning on ExtendedName, the name is left untouched.

Caution     Users should be wary of using this option as it is contrary to the SAP standard.

Default 

No.

Example 

Top of page  HOST parameter [IP]

Usage 

TCP/IP (all platforms)

Description 

HOST specifies additional machines outside the immediate network to be searched by the client library. On the server, the search is carried out to avoid starting a server with a duplicate name.

For TCP/IP, the hostname or a dot-separated IP address may be used. For IPX, an address of the form a:b:c:d:e:f/g:h:i:j is used, where a:b:c:d:e:f is the node number (Ethernet card address) of the server, and g:h:i:j is the network number. The server prints this addressing information during startup if the -Z switch is used.

You can use a semicolon-separated list of addresses to search for more than one machine. Also, you can append a port number to an IP address, using a colon as separator.

IP is a synonym for HOST.

Default 

No additional machines.

Example 

Top of page  MAXLANA parameter

Usage 

NetBIOS

Description 

Each path through a NetBIOS protocol stack is assigned a LAN adapter number. By default, the server looks through all possible numbers up to 255. To speed up server startup, you can truncate the search for valid LAN adapters at a specified value using the MAXLANA parameter.

Default 

255

Example 

Top of page  MYIP parameter

Usage 

TCP/IP

Description 

The MyIP parameter is provided for machines with more than one network adapter.

Each adapter has an IP address. By default, the database server uses the first network card it finds. If you wish your database server to use more than one network card, specify the address of each card in the MyIP parameter.

If the keyword NONE is supplied as the IP number, no attempt is made to determine the addressing information. This option is intended primarily for clients on operating systems where this operation is expensive.

Under Windows 95 or Windows NT, this option can be used multiple times for machines with multiple IP addresses.

You can optionally append a port number to the IP address, separated by a colon.

Example 

Top of page  REGISTERBINDERY parameter [ REGBIN]

Usage 

IPX (Windows 95 and NT only)

Description 

The database server attempts to register its name with any active binderies on the network when loading the IPX link. To disable this name registration, set RegisterBindery to NO, FALSE or 0. In this case, the client library must be able to locate the database server over IPX by broadcasting packets.

Default 

TRUE

Top of page  SEARCHBINDERY parameter [BINSEARCH]

Usage 

IPX (Windows 95 and NT only)

Description 

With SEARCHBINDERY=NO, 0, or OFF no NetWare bindery is searched for a database server.

Default 

Yes

Top of page  SERVERPORT parameter [ PORT]

Usage 

TCP/IP (all platforms)

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 parameter to find the server.

Default 

2638

Example 

  1. Start a network database server:

    dbsrv6 -x tcpip -n server1

    Port number 2638 is now taken.

  2. Attempt to start another database server:

    dbsrv6 -x tcpip -n server2

    This fails with an error Unable to Initialize Communication Links, because the port is currently allocated.

  3. Start another database server, assigning a different port number to it:

    dbsrv6 -x tcpip(ServerPort=2639) -n server2

    This should succeed as long as 2639 is not a reserved port, and no other application has allocated it.

Top of page  SESSIONS parameter

Usage 

NetBIOS

Description 

Sets the maximum number of clients that can communicate with the server at one time through a single LAN adapter. The default setting is operating-system specific. The value is an integer, with maximum value 254.

Default 

Operating system specific. On Windows NT, the default is 16.

Example 

Top of page  TDS parameter

Usage 

TCP/IP, NamedPipes

Description 

To disallow TDS connections to a database server, set TDS to NO. If you want to ensure that only encrypted connections are made to your server, these port options are the only way to disallow TDS connections.

Default 

YES

Example 

Top of page  THREADS parameter

Usage 

IPX (OS/2, Windows 95 and Windows NT)

Description 

THREADS specifies the number of threads that are used for reading network communications. Integers from one to ten are allowed. It has been found that two threads produces good performance, but the option is provided as a performance parameter that you can tune.

Default 

2

Example 

Top of page  TIMEOUT parameter [TO]

Usage 

TCP/IP, IPX (all platforms)

Description 

TIMEOUT specifies the length of time, in seconds, to wait for a response when establishing communications. You may wish to try longer times if you are having trouble establishing TCP/IP communications.

Default 

5 seconds.

Example 

Top of page  THREADSTATS parameter [STATS]

Usage 

IPX (Windows 95 and Windows NT only)

Description 

This option creates a file into which IPX thread statistics are written. Currently, the only statistic written to the file is the number of packets received by each executing IPX thread.

Default 

NULL

Example 

Top of page  WSAVERSION parameter [WSAVER]

Usage 

TCP/IP (Windows 3.x, 95, and NT), IPX (Windows 95 and NT only)

Description 

The database server for 95, and NT requires a version of the winsock dll of 1.1 or higher. This requirement can be relaxed to a lesser version of winsock if the same functionality as version 1.1 has been implemented by a vendor. The major version number appears in the high byte of the value, the minor version number appears in the low byte of the value.

Default 

0x101 (version 1.1)

Example 

Top of page  

Collection Contents Index Connection parameters CHAPTER 4.  Database Administration Utilities pdf/chap3.pdf