Select Statement Gives Error "Connection is Busy With Results For Another Hstmt" Using Dg4odbc and SQL*Server 2000 When Configured For MARS

(Doc ID 763882.1)

Last updated on AUGUST 16, 2012

Applies to:

Oracle Server - Enterprise Edition - Version 11.1.0.6 to 11.2.0.2 [Release 11.1 to 11.2]
Linux x86-64

Symptoms

-- Problem Statement:
The following select statement -

SELECT b.recname,count(b.recname)
FROM pspnlgroup@DEV83S a, pspnlfield@DEV83S b
WHERE (a.pnlname = b.pnlname OR a.pnlname = b.subpnlname)
AND a.pnlgrpname = 'USERMAINT'
AND b.RECNAME not like '%VW'
AND b.RECNAME not like 'WRK%'
AND b.RECNAME not like 'DERIVED%'
GROUP BY b.recname;

 

gives the error -

hgopoer, line 159: got native error 0 and sqlstate HY000; message follows...
[DataDirect][ODBC SQL Server Driver]Connection is busy with results for
another hstmt

 

TheSQL works without an error if the statement includes just 2 'like' statements in the 'where' clause.
The error only happens after a third 'like' statement is added.
For example the following statement works fine -

SELECT b.recname,count(b.recname)
FROM pspnlgroup@DEV83S a, pspnlfield@DEV83S b
WHERE (a.pnlname = b.pnlname OR a.pnlname = b.subpnlname)
AND a.pnlgrpname = 'USERMAINT'
AND b.RECNAME not like '%VW'
AND b.RECNAME not like 'WRK%'
--AND b.RECNAME not like 'DERIVED%'
GROUP BY b.recname;

 

The problem seems to occur only in Linux using DG4ODBC and a combination of table joins 
and 'group by' in the select statements.


Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms