dbTalk Databases Forums  

MAX CONN

sybase.public.sqlanywhere.general sybase.public.sqlanywhere.general


Discuss MAX CONN in the sybase.public.sqlanywhere.general forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
RISI
 
Posts: n/a

Default MAX CONN - 11-03-2009 , 07:32 AM






I understand the default connections in SQL ANYWHERE 9 is 5
, how do I set the MAX CONN to 0 which means unlimited
connections.

Recently the DB in our office crashes so we reinstalled Sql
Anywhere but realized now the 6th user is being kicked out.

Please help.Thankyou in advance.

Reply With Quote
  #2  
Old   
Josh Savill [Sybase]
 
Posts: n/a

Default Re: MAX CONN - 11-03-2009 , 08:54 AM






The MAXCONN option only applies to HTTP and HTTPS protocol. If you are using the personal database
server (dbeng9), then the default limit is 5. If you are using the database server for multiple
application connections, you really should be using the network server (dbsrv9) as it is limited
based on you licensing. Are you sure your database server is properly licensed?

To set MAXCONN:

dbeng9 -x http(MAXCONN=10) ...

To check licensing information run:

dblic %ASANY9%\win32\dbeng9
OR
dblic %ASANY9%\win32\dbsrv9

--
Joshua Savill
Sybase Inc. - Product Manager


RISI wrote:
Quote:
I understand the default connections in SQL ANYWHERE 9 is 5
, how do I set the MAX CONN to 0 which means unlimited
connections.

Recently the DB in our office crashes so we reinstalled Sql
Anywhere but realized now the 6th user is being kicked out.

Please help.Thankyou in advance.

Reply With Quote
  #3  
Old   
RISI
 
Posts: n/a

Default Re: MAX CONN - 11-03-2009 , 10:14 AM



DO I set under the configuration tab in the properties

-c 256M
-x (MAXCONN=10)
tcpip{MYIP=192.168.51.13;DOBROADCAST=No;ServerPort =1498}
-n cornerst d:\data\9_0_2\Cornerst.db








Quote:
The MAXCONN option only applies to HTTP and HTTPS
protocol. If you are using the personal database server
(dbeng9), then the default limit is 5. If you are using
the database server for multiple application connections,
you really should be using the network server (dbsrv9) as
it is limited based on you licensing. Are you sure your
database server is properly licensed?

To set MAXCONN:

dbeng9 -x http(MAXCONN=10) ...

To check licensing information run:

dblic %ASANY9%\win32\dbeng9
OR
dblic %ASANY9%\win32\dbsrv9

--
Joshua Savill
Sybase Inc. - Product Manager


RISI wrote:
I understand the default connections in SQL ANYWHERE 9
is 5 , how do I set the MAX CONN to 0 which means
unlimited connections.

Recently the DB in our office crashes so we reinstalled
Sql Anywhere but realized now the 6th user is being
kicked out.
Please help.Thankyou in advance.

Reply With Quote
  #4  
Old   
Josh Savill [Sybase]
 
Posts: n/a

Default Re: MAX CONN - 11-03-2009 , 03:19 PM



RISI,

The MAXCONN option is only for HTTP and HTTPS protocols. You are using TCPIP according to your
database server command line below.

I suspect your database server is only licensed for 5 users.

Run dblic %ASANY9%\win32\dbeng9 OR dblic %ASANY9%\win32\dbsrv9 to determine how the database server
is licensed. If the database server is licensed incorrectly, use dblic to set the license to the
proper number of users:
http://www.ianywhere.com/developer/p...9/00000594.htm

The proper usage for HTTP:

-c 256M
-x http{MYIP=192.168.51.13;DOBROADCAST=No;ServerPort= 1498;MAXCONN=10}
-n cornerst d:\data\9_0_2\Cornerst.db

--
Joshua Savill
Sybase Inc. - Product Manager


RISI wrote:
Quote:
DO I set under the configuration tab in the properties

-c 256M
-x (MAXCONN=10)
tcpip{MYIP=192.168.51.13;DOBROADCAST=No;ServerPort =1498}
-n cornerst d:\data\9_0_2\Cornerst.db








The MAXCONN option only applies to HTTP and HTTPS
protocol. If you are using the personal database server
(dbeng9), then the default limit is 5. If you are using
the database server for multiple application connections,
you really should be using the network server (dbsrv9) as
it is limited based on you licensing. Are you sure your
database server is properly licensed?

To set MAXCONN:

dbeng9 -x http(MAXCONN=10) ...

To check licensing information run:

dblic %ASANY9%\win32\dbeng9
OR
dblic %ASANY9%\win32\dbsrv9

--
Joshua Savill
Sybase Inc. - Product Manager


RISI wrote:
I understand the default connections in SQL ANYWHERE 9
is 5 , how do I set the MAX CONN to 0 which means
unlimited connections.

Recently the DB in our office crashes so we reinstalled
Sql Anywhere but realized now the 6th user is being
kicked out.
Please help.Thankyou in advance.

Reply With Quote
  #5  
Old   
Graeme Perrow [Sybase iAnywhere]
 
Posts: n/a

Default Re: MAX CONN - 11-03-2009 , 05:13 PM



Correction: Josh's example mixes up TCPIP and HTTP parameters. The -x
switch is only used for "standard" connections (i.e. dblib, odbc, etc.)
and supports shmem and tcpip. The -xs switch is for web connections and
supports http and https. The proper usage for HTTP would be:

-xs http(MyIP=192.168.51.13;ServerPort=80;MaxConn=10)

Graeme Perrow
Senior Software Developer
gperrow _at_ ianywhere _dot_ com
Sybase iAnywhere Engineering

SQL Anywhere Developer Community
http://www.sybase.com/developer/libr...ere-techcorner
SQL Anywhere Blog Center
http://www.sybase.com/sqlanyblogs


Josh Savill [Sybase] wrote:
Quote:
RISI,

The MAXCONN option is only for HTTP and HTTPS protocols. You are using
TCPIP according to your database server command line below.

I suspect your database server is only licensed for 5 users.

Run dblic %ASANY9%\win32\dbeng9 OR dblic %ASANY9%\win32\dbsrv9 to
determine how the database server is licensed. If the database server is
licensed incorrectly, use dblic to set the license to the proper number
of users:
http://www.ianywhere.com/developer/p...9/00000594.htm


The proper usage for HTTP:

-c 256M
-x http{MYIP=192.168.51.13;DOBROADCAST=No;ServerPort= 1498;MAXCONN=10}
-n cornerst d:\data\9_0_2\Cornerst.db

Reply With Quote
  #6  
Old   
Josh Savill [Sybase]
 
Posts: n/a

Default Re: MAX CONN - 11-04-2009 , 09:33 AM



Good catch Graeme. The s wandered away from my command line.

--
Joshua Savill
Sybase Inc. - Product Manager


Graeme Perrow [Sybase iAnywhere] wrote:
Quote:
Correction: Josh's example mixes up TCPIP and HTTP parameters. The -x
switch is only used for "standard" connections (i.e. dblib, odbc, etc.)
and supports shmem and tcpip. The -xs switch is for web connections and
supports http and https. The proper usage for HTTP would be:

-xs http(MyIP=192.168.51.13;ServerPort=80;MaxConn=10)

Graeme Perrow
Senior Software Developer
gperrow _at_ ianywhere _dot_ com
Sybase iAnywhere Engineering

SQL Anywhere Developer Community
http://www.sybase.com/developer/libr...ere-techcorner
SQL Anywhere Blog Center
http://www.sybase.com/sqlanyblogs


Josh Savill [Sybase] wrote:
RISI,

The MAXCONN option is only for HTTP and HTTPS protocols. You are using
TCPIP according to your database server command line below.

I suspect your database server is only licensed for 5 users.

Run dblic %ASANY9%\win32\dbeng9 OR dblic %ASANY9%\win32\dbsrv9 to
determine how the database server is licensed. If the database server
is licensed incorrectly, use dblic to set the license to the proper
number of users:
http://www.ianywhere.com/developer/p...9/00000594.htm


The proper usage for HTTP:

-c 256M
-x http{MYIP=192.168.51.13;DOBROADCAST=No;ServerPort= 1498;MAXCONN=10}
-n cornerst d:\data\9_0_2\Cornerst.db

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.