LHEAP parameter: Difference between revisions
mNo edit summary |
|||
(One intermediate revision by one other user not shown) | |||
Line 15: | Line 15: | ||
==Description== | ==Description== | ||
<p> | <p> | ||
<p>HEAP is a dynamic storage area included in the variable portion of the server area and required for the processing of SQL C routines. The size of HEAP is specified with the LHEAP parameter and is added to the variable size calculation of the server area. </p> | <var>LHEAP</var> specifies the size of the HEAP storage area. </p> | ||
<p>The initial value for SQL threads varies, based on your application requirements. Specify the initial value on the first <var>[[IODEV_parameter|IODEV]]</var> line for IODEV=19. Do not specify it with the User 0 parameters, because this wastes space. For non-SQL threads, which do not require HEAP space, LHEAP can default to zero. </p> | <p> | ||
<p>The LHEAP maximum is 2 million.</p> | HEAP is a dynamic storage area included in the variable portion of the server area and required for the processing of SQL C routines. The size of HEAP is specified with the <var>LHEAP</var> parameter, and it is added to the variable size calculation of the server area. </p> | ||
<p> | |||
The initial value for SQL threads varies, based on your application requirements. Specify the initial value on the first <var>[[IODEV_parameter|IODEV]]</var> line for IODEV=19. Do not specify it with the User 0 parameters, because this wastes space. For non-SQL threads, which do not require HEAP space, <var>LHEAP</var> can default to zero. </p> | |||
<p> | |||
The <var>LHEAP</var> maximum is 2 million.</p> | |||
====Handling SQL statements greater than 32k bytes==== | ====Handling SQL statements greater than 32k bytes==== | ||
<p>When handling an SQL statement that is greater than 32K, you must consider the LHEAP parameter. If its value is not large enough, the error message invoked includes the name of the relevant parameter. | <p> | ||
When handling an SQL statement that is greater than 32K bytes, you must consider the <var>LHEAP</var> parameter. If its value is not large enough, the error message invoked includes the name of the relevant parameter. Setting <code>LHEAP=200000</code> is recommended for handling larger SQL statements.</p> | |||
[[Category:Utable parameters]] | [[Category:Utable parameters]] | ||
[[Category:Parameters]] | [[Category:Parameters]] |
Latest revision as of 23:49, 2 December 2014
Length of heap
Summary
- Default value
- 0
- Parameter type
- Utable
- Where set
- On user's parameter line
- Related products
- All
- Introduced
- Model 204 V3.1
Description
LHEAP specifies the size of the HEAP storage area.
HEAP is a dynamic storage area included in the variable portion of the server area and required for the processing of SQL C routines. The size of HEAP is specified with the LHEAP parameter, and it is added to the variable size calculation of the server area.
The initial value for SQL threads varies, based on your application requirements. Specify the initial value on the first IODEV line for IODEV=19. Do not specify it with the User 0 parameters, because this wastes space. For non-SQL threads, which do not require HEAP space, LHEAP can default to zero.
The LHEAP maximum is 2 million.
Handling SQL statements greater than 32k bytes
When handling an SQL statement that is greater than 32K bytes, you must consider the LHEAP parameter. If its value is not large enough, the error message invoked includes the name of the relevant parameter. Setting LHEAP=200000
is recommended for handling larger SQL statements.