Home | Previous Page | Next Page   The Database Server > Client/Server Communications > Examples of Client/Server Configurations >

Using a Network Connection

Figure 12 shows a configuration in which the client application resides on host river and the database server resides on host valley.

Figure 12. A Network Configuration
begin figure description - This figure shows sqlhosts information for the river client application and the valley host application. More information on this figure is described in the text below this figure. - end figure description

An entry for the valley_ds database server is in the sqlhosts files or registries on both computers. Each entry in the sqlhosts file or SQLHOSTS registry key on the computer where the database server resides has a corresponding entry on the computer where the client application resides.

UNIX Only

Both computers are on the same TCP/IP network, but the host river uses sockets for its network programming interface, while the host valley uses TLI for its network programming interface. The nettype field must reflect the type of network programming interface used by the computer on which sqlhosts resides. In this example, the nettype field for the valley_ds database server on host river is onsoctcp, and the nettype field for the valley_ds database server on host valley is ontlitcp.

End of UNIX Only

The sqlhosts File Entry for IPX/SPX (UNIX)

IPX/SPX software frequently provides TLI. Table 13 shows the entries in the sqlhosts file on both computers when the configuration in Figure 12 uses IPX/SPX instead of TCP/IP.

Table 13. sqlhosts entry
dbservername nettype hostname servicename
valley_us ontlispx valley_nw valley_us

In this case, the hostname field contains the name of the NetWare file server. The servicename field contains a name that is unique on the IPX/SPX network and is the same as the dbservername.

Home | [ Top of Page | Previous Page | Next Page | Contents | Index ]