Welcome to the dBforums forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions, articles and access our other FREE features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload your own photos and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact support.

If you prefer not to see double-underlined words and corresponding ads, place your cursor
here for ContentLink opt out.

Go Back  dBforums > Database Server Software > Informix > SQL Error -1811 & -27000 for multithreaded application

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-27-07, 10:57
narenderpreddy narenderpreddy is offline
Registered User
 
Join Date: Dec 2007
Posts: 2
SQL Error -1811 & -27000 for multithreaded application

Hi,

We have a single threaded application having interface with Informix database. I made it as mutithreaded and while running my application I am facing below issues. Can any one help please?

Here is the architecture of my application:

1. A main thread will aquire a database connection and execute some SQL statements also.

2. The above main thread will also create few threads while it is initialzing.

3. Each new thread will start running continuosly and execute few SQL statements. In this these child threads I am not opening any new database connection. I thought these child threads will make use of the same database connection only.

But getting below error:
$ finderr 1811

-1811 Implicit connection not allowed after an explicit connection.

Once you have used the CONNECT TO statement to establish an explicit
connection to a database server, you cannot use one of the DATABASE
statements to connect implicitly to another database server. After an
explicit connection, you must use the CONNECT TO statement to connect
to other database servers.


Then I opned a separate connection in each thread again. Here also no luck.
Getting below error:

$ finderr -27000
-27000 Cannot support multiple connections over shared memory.

An application cannot use the CONNECT statement to make more than one
connection that uses shared-memory communication (IPC).

Ensure that the application makes only one shared-memory connection at
a time. If the application must use concurrent connections, the
database server administrator might need to change the connection type
(as specified in the nettype field of the sqlhosts file) from a shared
-memory connection to a network connection.

Waiting for your reply.


Thanks,
Narender
Reply With Quote
  #2 (permalink)  
Old 01-04-08, 16:04
gurey gurey is offline
Registered User
 
Join Date: Aug 2003
Location: Argentina
Posts: 777
Hi,

Please change variable INFORMIXSERVER to connect via TCP/IP

Gustavo.
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On