Connecting to a Logical Server

Use the LogicalServer and NodeType connection parameters to establish the logical server context for a new user connection.

In a configuration file or at the Interactive SQL command line:
  1. To specify the target logical server, add the LogicalServer=<target-logical-server> clause to a connect statement.
  2. To specify the target logical server role, add the NodeType={READER|WRITER|ANY} clause to a connect statement.
    For example, to connect an application that specifically needs to execute user-defined functions on member nodes with the READER role, use:
    dbisql -c "uid=DBA;pwd=sql;eng=host4_iqdemo;LS=LogSvr1;NODETYPE=READER;
    Note: When you connect using the SERVER logical server context, SAP Sybase IQ ignores the NodeType connection parameter.
Connections fail if:

For new and upgraded databases, the default_logical_server login policy is AUTO. User-defined login policies use the value from the root login policy, which defaults to AUTO. When the default logical server policy is AUTO, login redirection never occurs, even if the LOGIN REDIRECTION logical server policy option. is set ON.

Under the AUTO setting, if the connection string fails to specify LogicalServer, SAP Sybase IQ automatically determines logical server context as follows:
Current Physical Node Status Result
Node belongs to multiple logical servers assigned to a single login policy. A user belonging to that login policy logs in to the common node, but SAP Sybase IQ cannot determine which logical server to use. Connection refused and error raised due to overlapping server scenario.
Node belongs to a single logical server. Connection succeeds and context is that logical server.
Related concepts
Logical Servers Overview
Use Built-in Logical Servers
Configure Logical Server Policies
Manage Logical Server Membership
Login Policies
Related tasks
Creating a Logical Server
Altering a Logical Server
Dropping a Logical Server
Redirecting Logins
Disabling Login Redirection
Related reference
ALTER LS POLICY Statement
CREATE LS POLICY Statement
Server Startup Utility (start_iq)