dbTalk Databases Forums  

SQL0101N for a Select query

comp.databases.ibm-db2 comp.databases.ibm-db2


Discuss SQL0101N for a Select query in the comp.databases.ibm-db2 forum.



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

Default SQL0101N for a Select query - 02-24-2010 , 09:52 AM






Hi, I get this error SQL0101N error for the Select Query. I know that
I am selecting all the colums from 10 tables and passing like 200
values to the IN Clause for a column. But it does work in other
environments(different db2 versions though) but doesnt work in one
environment. I am on db2 v9.5 fix pack 0. I tried increasing the
STMTHEAP upto 100000 from 40000 but still doesnt work. Is there
anything else I can do.

Reply With Quote
  #2  
Old   
Serge Rielau
 
Posts: n/a

Default Re: SQL0101N for a Select query - 02-24-2010 , 02:08 PM






On 2/24/2010 10:52 AM, Kiram wrote:
Quote:
Hi, I get this error SQL0101N error for the Select Query. I know that
I am selecting all the colums from 10 tables and passing like 200
values to the IN Clause for a column. But it does work in other
environments(different db2 versions though) but doesnt work in one
environment. I am on db2 v9.5 fix pack 0. I tried increasing the
STMTHEAP upto 100000 from 40000 but still doesnt work. Is there
anything else I can do.
Starting with Db2 9.5 -101 should be a very, very rare thing thanks to
the multi-threaded engine.

can you run the query from the command line processor (CLP) using the -a
option.
That will dump the SQLCA.
When you post it here I can home in on the context (e.g. optimizer vs.
parser...)

Cheers
Serge


--
Serge Rielau
SQL Architect DB2 for LUW
IBM Toronto Lab

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

Default Re: SQL0101N for a Select query - 02-25-2010 , 04:45 PM



On Feb 24, 3:08*pm, Serge Rielau <srie... (AT) ca (DOT) ibm.com> wrote:
Quote:
On 2/24/2010 10:52 AM, Kiram wrote:> Hi, I get this error SQL0101N error for the Select Query. I know that
I am selecting all the colums from 10 tables and passing like 200
values to the IN Clause for a column. But it does work in other
environments(different db2 versions though) but doesnt work in one
environment. I am on db2 v9.5 fix pack 0. I tried increasing the
STMTHEAP upto 100000 from 40000 but still doesnt work. Is there
anything else I can do.

Starting with Db2 9.5 -101 should be a very, very rare thing thanks to
the multi-threaded engine.

can you run the query from the command line processor (CLP) using the -a
option.
That will dump the SQLCA.
When you post it here I can home in on the context (e.g. optimizer vs.
parser...)

Cheers
Serge

--
Serge Rielau
SQL Architect DB2 for LUW
IBM Toronto Lab
I solved. There wasn't enough APPL_MEMORY for the STMTHEAP to grow in
order to prepare the Query.

Thanks for responding.

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.