Unix Technical Forum

Running long statements with Java/C++/CLP

This is a discussion on Running long statements with Java/C++/CLP within the DB2 forums, part of the Database Server Software category; --> Hello DB2 LUW v8 FP15. My Database STMTHEAP parameter is 4096 * 4k pages, so there is plenty of ...


Go Back   Unix Technical Forum > Database Server Software > DB2

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-27-2008, 02:07 PM
Michel Esber
 
Posts: n/a
Default Running long statements with Java/C++/CLP

Hello

DB2 LUW v8 FP15. My Database STMTHEAP parameter is 4096 * 4k pages,
so there is plenty of space.

IF:

a) I use Java's and JCC, I am able to run long statements ( > 65K ).

b) I use CLP (for example, db2 -tvf long_file_with_statement.sql), I
get 'DB21006E The input command is too long. The maximum length is
65535'. The file is indeed around 70k.

c) I use C++ applications, the same statement returns 'SQL0101N The
statement is too long or too complex.'

Why am I able to send long statements using Java, but unable to do the
same with C++ ?
Java does not use db2's client driver. Is there a CLI configuration
that may allow me to run really long statements, not limited to 65k?

Thanks, Michel.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-27-2008, 02:07 PM
Serge Rielau
 
Posts: n/a
Default Re: Running long statements with Java/C++/CLP

Michel,

While DB2 V8.2 introduced > 64K statement text in the server not all
clients supported it in V8.2.
CLP was the major exception.
I'm not aware of embedded SQL being another one, but it may be possible.
It may also be possible that teh package creation for embedded consumes
some extra statement heap, which you can counteract by upping the heap.

IIRC in DB2 9 support fro 2MB statements has been completed.

Cheers
Serge

--
Serge Rielau
DB2 Solutions Development
IBM Toronto Lab
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-27-2008, 02:07 PM
Michel Esber
 
Posts: n/a
Default Re: Running long statements with Java/C++/CLP

On 22 out, 16:18, Serge Rielau <srie...@ca.ibm.com> wrote:
> Michel,
>
> While DB2 V8.2 introduced > 64K statement text in the server not all
> clients supported it in V8.2.
> CLP was the major exception.
> I'm not aware of embedded SQL being another one, but it may be possible.
> It may also be possible that teh package creation for embedded consumes
> some extra statement heap, which you can counteract by upping the heap.
>
> IIRC in DB2 9 support fro 2MB statements has been completed.
>
> Cheers
> Serge
>
> --
> Serge Rielau
> DB2 Solutions Development
> IBM Toronto Lab



Thanks Serge,

According to http://tinyurl.com/2twjvw, v8 and v9 are compatible.

Just wondering ... what if I install a V9 Client (that supports >64K
statements) connecting to a V8 server ?

Should that do the trick ?

-M

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
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
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 12:45 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com