can't open more than 128 connections

hello,

I'm trying to open 300 connections to a database using Microsoft odbc
..NET and psqlodbc. At the 129th connection attempt i get an
exception:

{"ERROR [IM005] [Microsoft][ODBC Driver Manager] Driver's
SQLAllocHandle on SQL_HANDLE_DBC failed" }
State: "IM005"

I know that my db can take over 300 connections without using the odbc
driver because i open 300 connections with psql with no problem. Is
there some config param i need to set on the connection string so that
i can take more connections? what am i doing wrong?

thank you, amir

---------------------------(end of broadcast)---------------------------
TIP 2: you can get off all lists at once with the unregister command
(send "unregister YourEmailAddressHere" to majordomo [at] postgresql.org)
Amir Zicherman [ Mo, 20 Juni 2005 07:39 ] [ ID #845170 ]

Re: can't open more than 128 connections




hello,

I'm trying to open 300 connections to a database using Microsoft odbc
..NET and psqlodbc. At the 129th connection attempt i get an
exception:

{"ERROR [IM005] [Microsoft][ODBC Driver Manager] Driver's
SQLAllocHandle on SQL_HANDLE_DBC failed" }
State: "IM005"

I know that my db can take over 300 connections without using the odbc
driver because i open 300 connections with psql with no problem. Is
there some config param i need to set on the connection string so that
i can take more connections? what am i doing wrong?
thank you

This email may contain material that is confidential, privileged, and/or at=
torney work product for the sole use of the intended recipient. Any review=
, reliance, or distribution by others or forwarding without express permiss=
ion is strictly prohibited. If you are not the intended recipient, please =
contact the sender and delete all copies.

---------------------------(end of broadcast)---------------------------
TIP 2: Don't 'kill -9' the postmaster
l7nguyen [ Di, 05 Februar 2008 15:42 ] [ ID #1922643 ]

Can't open more than 128 connections

hello,

I'm trying to open 300 connections to a database using Microsoft odbc
..NET and psqlodbc. At the 129th connection attempt i get an
exception:

{"ERROR [IM005] [Microsoft][ODBC Driver Manager] Driver's
SQLAllocHandle on SQL_HANDLE_DBC failed" }
State: "IM005"

.. Is there some config param i need to set on the connection string so that
i can take more connections? what am i doing wrong?
thank you

This email may contain material that is confidential, privileged, and/or at=
torney work product for the sole use of the intended recipient. Any review=
, reliance, or distribution by others or forwarding without express permiss=
ion is strictly prohibited. If you are not the intended recipient, please =
contact the sender and delete all copies.

---------------------------(end of broadcast)---------------------------
TIP 1: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to majordomo [at] postgresql.org so that your
message can get through to the mailing list cleanly
l7nguyen [ Di, 05 Februar 2008 17:24 ] [ ID #1922644 ]

Re: Can't open more than 128 connections

Nguyen, Lam Thuy wrote:
> hello,
>
> I'm trying to open 300 connections to a database using Microsoft odbc
> .NET and psqlodbc. At the 129th connection attempt i get an
> exception:
>
> {"ERROR [IM005] [Microsoft][ODBC Driver Manager] Driver's
> SQLAllocHandle on SQL_HANDLE_DBC failed" }
> State: "IM005"

Which version of psqlodbc driver are you using ?

regards,
Hiroshi Inoue

---------------------------(end of broadcast)---------------------------
TIP 5: don't forget to increase your free space map settings
Hiroshi Inoue [ Di, 05 Februar 2008 18:42 ] [ ID #1922646 ]

Re: Can't open more than 128 connections


Hello,

I did not use psqlodbc driver, i used OdbcConnection of Net 2.0.

and if i user psqlodbc driver, At the 20th connection attempt, i got an er=
ror : Timeout while getting a connection from pool.
i use postgres verion 8.2.4.1

Thanks for your help.


________________________________

From: Hiroshi Inoue [mailto:inoue [at] tpf.co.jp]
Sent: Tue 2/5/2008 12:42 PM
To: Nguyen, Lam Thuy
Cc: pgsql-odbc [at] postgresql.org
Subject: Re: [ODBC] Can't open more than 128 connections



Nguyen, Lam Thuy wrote:
> hello,
>
> I'm trying to open 300 connections to a database using Microsoft odbc
> .NET and psqlodbc. At the 129th connection attempt i get an
> exception:
>
> {"ERROR [IM005] [Microsoft][ODBC Driver Manager] Driver's
> SQLAllocHandle on SQL_HANDLE_DBC failed" }
> State: "IM005"

Which version of psqlodbc driver are you using ?

regards,
Hiroshi Inoue



This email may contain material that is confidential, privileged, and/or at=
torney work product for the sole use of the intended recipient. Any review=
, reliance, or distribution by others or forwarding without express permiss=
ion is strictly prohibited. If you are not the intended recipient, please =
contact the sender and delete all copies.

---------------------------(end of broadcast)---------------------------
TIP 4: Have you searched our list archives?

http://archives.postgresql.org
l7nguyen [ Di, 05 Februar 2008 19:29 ] [ ID #1922647 ]

Re: Can't open more than 128 connections

and here is more info :

I set max_connecion =3D300, but it only allows upto 128 connections.

I tried to change some para in postgresql.conf file (shared_buffer...), but=
it was not efficient.

I read some document in postgres site said that i should change some para o=
f System V IPC, but how do i change them ?

I am using WinXP, SP2, 4GB of GAM

Could you help me as soon as you can.

I am look forward hearing you.

Lam

________________________________

From: Hiroshi Inoue [mailto:inoue [at] tpf.co.jp]
Sent: Tue 2/5/2008 12:42 PM
To: Nguyen, Lam Thuy
Cc: pgsql-odbc [at] postgresql.org
Subject: Re: [ODBC] Can't open more than 128 connections



Nguyen, Lam Thuy wrote:
> hello,
>
> I'm trying to open 300 connections to a database using Microsoft odbc
> .NET and psqlodbc. At the 129th connection attempt i get an
> exception:
>
> {"ERROR [IM005] [Microsoft][ODBC Driver Manager] Driver's
> SQLAllocHandle on SQL_HANDLE_DBC failed" }
> State: "IM005"

Which version of psqlodbc driver are you using ?

regards,
Hiroshi Inoue



This email may contain material that is confidential, privileged, and/or at=
torney work product for the sole use of the intended recipient. Any review=
, reliance, or distribution by others or forwarding without express permiss=
ion is strictly prohibited. If you are not the intended recipient, please =
contact the sender and delete all copies.

---------------------------(end of broadcast)---------------------------
TIP 5: don't forget to increase your free space map settings
l7nguyen [ Di, 05 Februar 2008 19:34 ] [ ID #1922648 ]

Re: Can't open more than 128 connections

Nguyen, Lam Thuy wrote:
>
> Hello,
>
> I did not use psqlodbc driver, i used OdbcConnection of Net 2.0.

Aren't you specifying a DataSource or a Driver in your connection
string when you use odbc.net ? Please upgrade the psqlodbc driver
to 8.2.0500 or later.

regards,
Hiroshi Inoue


---------------------------(end of broadcast)---------------------------
TIP 3: Have you checked our extensive FAQ?

http://www.postgresql.org/docs/faq
Hiroshi Inoue [ Mi, 06 Februar 2008 00:56 ] [ ID #1922818 ]

Re: Can't open more than 128 connections


I am using psqlodbc 8.2.03, is it the cause ?
if i upgrade , can i open more than 128 connections ?


________________________________

From: Hiroshi Inoue [mailto:inoue [at] tpf.co.jp]
Sent: Tue 2/5/2008 6:56 PM
To: Nguyen, Lam Thuy
Cc: pgsql-odbc [at] postgresql.org
Subject: Re: [ODBC] Can't open more than 128 connections



Nguyen, Lam Thuy wrote:
>
> Hello,
>
> I did not use psqlodbc driver, i used OdbcConnection of Net 2.0.

Aren't you specifying a DataSource or a Driver in your connection
string when you use odbc.net ? Please upgrade the psqlodbc driver
to 8.2.0500 or later.

regards,
Hiroshi Inoue




This email may contain material that is confidential, privileged, and/or at=
torney work product for the sole use of the intended recipient. Any review=
, reliance, or distribution by others or forwarding without express permiss=
ion is strictly prohibited. If you are not the intended recipient, please =
contact the sender and delete all copies.

---------------------------(end of broadcast)---------------------------
TIP 1: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to majordomo [at] postgresql.org so that your
message can get through to the mailing list cleanly
l7nguyen [ Mi, 06 Februar 2008 01:15 ] [ ID #1922819 ]

Re: Can't open more than 128 connections

Nguyen, Lam Thuy wrote:
>
> I am using psqlodbc 8.2.03, is it the cause ?
> if i upgrade , can i open more than 128 connections ?

Maybe yes.
8.3.0100 was released three days ago.

regards,
Hiroshi Inoue



---------------------------(end of broadcast)---------------------------
TIP 1: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to majordomo [at] postgresql.org so that your
message can get through to the mailing list cleanly
Hiroshi Inoue [ Mi, 06 Februar 2008 05:12 ] [ ID #1922820 ]
Datenbanken » gmane.comp.db.postgresql.odbc » can't open more than 128 connections

Vorheriges Thema: How to open more than 300 connections to postgres database.
Nächstes Thema: packaging issue / upgrading with psql-odbc msi packages 8.03.01.00