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

Using a Shared-Memory Connection (UNIX)

Figure 10 shows a shared-memory connection on the computer named river.

Figure 10. A Shared-Memory Connection
begin figure description - In this figure, a client application and a database server named river_shm communicate with each other through shared memory. - end figure description

The ONCONFIG configuration file for this installation includes the following line:

DBSERVERNAME river_shm 

The table below shows a sample entry in the sqlhosts file or SQLHOSTS registry key for the connection shown above in Figure 10.

Table 11. sqlhosts entry
dbservername nettype hostname servicename
river_shm onipcshm river rivershm

The client application connects to this database server using the following statement:

CONNECT TO '@river_shm'

Because this is a shared-memory connection, no entries in network configuration files are required. For a shared-memory connection, you can choose arbitrary values for the hostname and servicename fields of the sqlhosts file or SQLHOSTS registry key.

For more information about shared-memory connections, see How a Client Attaches to the Communications Portion (UNIX).

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