In the next step towards establishing a connection, Sybase IQ attempts to locate a server. If the connection parameter list includes a server name (EngineName (ENG) connection parameter), Sybase IQ searches first for a database server of that name, and then searches over a network. If no ENG parameter is supplied, Sybase IQ looks for a default server.
If Sybase IQ locates a server, it tries to locate or load the required database on that server. For information, see “Locating the database”.
For local connections, locating a server is simple. For connections over a network, you can use the CommLinks (LINKS) parameter to tune the search in many ways by supplying network communication parameters.
The network search involves a search over one or more of the protocols that Sybase IQ supports. For each protocol, the network library starts a single port. All connections over that protocol at any one time use a single port.
You can specify a set of network communication parameters for each network port in the argument to the CommLinks (LINKS) parameter. Since these parameters are used only when the port first starts, the interface library ignores any connection parameters specified in CommLinks (LINKS) for a port already started.
Each attempt to locate a server (the local attempt and the attempt for each network port) involves two steps. First, Sybase IQ looks in the server name cache to see if a server of that name is available. Second, it uses the available connection parameters to attempt a connection.
The default server is the first one started on a machine. This server gains use of the shared memory port.