This section identifies and explains the use of network-configuration files on TCP/IP and IPX/SPX networks.
When you configure the database server to use the TCP/IP network protocol, you use information from the hosts and services network-configuration files to prepare the sqlhosts information.
The network administrator maintains these files. When you add a host or a software service such as a database server, you need to inform the network administrator so that person can make sure the information in these files is accurate.
The hosts file needs a single entry for each network-controller card that connects a computer running an Informix client/server product on the network. Each line in the file contains the following information:
Although the length of the host name is not limited in the hosts file, Informix limits the host name to 256 bytes. Table 9 includes a sample hosts file.
The services file contains an entry for each service available through TCP/IP. Each entry is a single line that contains the following information:
IBM Informix products use this name to determine the port number and protocol for making client/server connections. The service name can have up to 128 bytes.
The port number is the computer port, and the protocol for TCP/IP is tcp.
The operating system imposes restrictions on the port number. User informix must use a port number equal to or greater than 1024. Only root users are allowed to use a port number less than 1024.
The service name and port number are arbitrary. However, they must be unique within the context of the file and must be identical on all computers that are running IBM Informix client/server products. The aliases field is optional. For example, a services file might include the following entry for a database server:
server2 1526/tcp
This entry makes server2 known as the service name for TCP port 1526. A database server can then use this port to service connection requests. Figure 6 includes a sample services file.
For information about the hosts and services files, see your operating system documentation.
On UNIX, the hosts and services files are in the /etc directory. The files must be present on each computer that runs an IBM Informix client/server product, or on the NIS server if your network uses Network Information Service (NIS).
ypcat hosts ypcat services
You use information from the hosts and services network-configuration files to prepare the SQLHOSTS registry key for the TCP/IP network protocol. These files are in the following locations:
Alternately, you can configure TCP/IP to use the Domain Name Service (DNS) for host name resolutions. For information about these files, see your operating-system documentation.
The Dynamic Host Configuration Product (DHCP) dynamically assigns IP addresses from a pool of addresses instead of using IP addresses that are explicitly assigned to each workstation. If your system uses DHCP, you must also have installed Windows Internet Name Service (WINS). DCHP is transparent to the database server.
When a TCP/IP connection is opened, the following information is read on the client side:
The following information is read on the server side:
For more information about the NETTYPE configuration parameter, see NETTYPE Configuration Parameter and the IBM Informix Dynamic Server Administrator's Reference.
To take advantage of multiple ethernet cards, take the following actions:
soc1 21/tcp soc2 22/tcp
Each port of a single IP address must be unique. Separate ethernet cards can use unique or shared port numbers. You might want to use the same port number on ethernet cards connecting to the same database server. (In this scenario, the service name is the same.)
192.147.104.19 svc8 192.147.104.20 svc81
DBSERVERNAME chicago1 DBSERVERALIASES chicago2
chicago1 onsoctcp svc8 soc1 chicago2 onsoctcp svc81 soc2
After this configuration is in place, the application communicates through the ethernet card assigned to the dbservername that the INFORMIXSERVER environment variable provides.
To configure the database server to use the IPX/SPX protocol on a UNIX network, you must purchase IPX/SPX software and install it on the database server computer. Your choice of IPX/SPX software depends on the operating system that you are using. For some operating systems, the IPX/SPX software is bundled with software products based on NetWare for UNIX or Portable NetWare. In addition, for each of the UNIX vendors that distributes IPX/SPX software, you might find a different set of configuration files.
For advice on how to set configuration files for these software products, consult the manuals that accompany your IPX/SPX software.
Home | [ Top of Page | Previous Page | Next Page | Contents | Index ]