If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > How can I set up DB2EXPLN_BUFFER?

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-16-04, 16:06
M_RAS M_RAS is offline
Registered User
 
Join Date: Sep 2003
Location: canada
Posts: 230
How can I set up DB2EXPLN_BUFFER?

I am using db2v8 fixpak 3 aix 5.2

I am trying to use db2expln I get error:

The result buffer was not large enough to hold the entire output.
Set the environment variable DB2EXPLN_BUFFER to at least 919739
and try the command again.

Please advise

Thanks
Reply With Quote
  #2 (permalink)  
Old 02-16-04, 17:51
dollar489 dollar489 is offline
Registered User
 
Join Date: Sep 2002
Posts: 456
Re: How can I set up DB2EXPLN_BUFFER?

I have not used this parameter myself but try this from the db2 command line:

db2set DB2EXPLN_BUFFER=919739

dollar

Quote:
Originally posted by M_RAS
I am using db2v8 fixpak 3 aix 5.2

I am trying to use db2expln I get error:

The result buffer was not large enough to hold the entire output.
Set the environment variable DB2EXPLN_BUFFER to at least 919739
and try the command again.

Please advise

Thanks
Reply With Quote
  #3 (permalink)  
Old 02-17-04, 09:17
M_RAS M_RAS is offline
Registered User
 
Join Date: Sep 2003
Location: canada
Posts: 230
Re: How can I set up DB2EXPLN_BUFFER?

Quote:
Originally posted by dollar489
I have not used this parameter myself but try this from the db2 command line:

db2set DB2EXPLN_BUFFER=919739

dollar
Thank you dollar for your answer,
I did your suggestion BUT it did not work, any new idea?

Thanks
Reply With Quote
  #4 (permalink)  
Old 02-17-04, 09:57
jsander jsander is offline
Registered User
 
Join Date: Apr 2003
Posts: 191
Re: How can I set up DB2EXPLN_BUFFER?

Hi M_RAS,

did you restart the instance? You can do it this way:

$ db2stop && db2start

Johann

Quote:
Originally posted by M_RAS
Thank you dollar for your answer,
I did your suggestion BUT it did not work, any new idea?

Thanks
Reply With Quote
  #5 (permalink)  
Old 02-17-04, 10:06
M_RAS M_RAS is offline
Registered User
 
Join Date: Sep 2003
Location: canada
Posts: 230
Re: How can I set up DB2EXPLN_BUFFER?

Quote:
Originally posted by jsander
Hi M_RAS,

did you restart the instance? You can do it this way:

$ db2stop && db2start

Johann
When I tried I got error
db2set DB2EXPLN_BUFFER=919739


DBI1302E Invalid parameter detected.

Explanation:

An invalid parameter was used.

User Response:

Use the -? option for the usage help messag
Reply With Quote
  #6 (permalink)  
Old 02-17-04, 10:16
sathyaram_s sathyaram_s is offline
Super Moderator
 
Join Date: Aug 2001
Location: UK
Posts: 4,534
Re: How can I set up DB2EXPLN_BUFFER?

do a
db2set -lr

and check if this parameter is listed and supported on your platform

Cheers
Sathyaram
__________________
Visit the new-look IDUG Website , register to gain access to the excellent content.
Reply With Quote
  #7 (permalink)  
Old 02-17-04, 10:28
M_RAS M_RAS is offline
Registered User
 
Join Date: Sep 2003
Location: canada
Posts: 230
Re: How can I set up DB2EXPLN_BUFFER?

Quote:
Originally posted by sathyaram_s
do a
db2set -lr

and check if this parameter is listed and supported on your platform

Cheers
Sathyaram
I did and I could not find , our platform is aix5.2 64 bit, it means I can not run db2expln in my platform ? it does not make sence
Reply With Quote
  #8 (permalink)  
Old 02-17-04, 12:20
n_i n_i is offline
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,449
Re: How can I set up DB2EXPLN_BUFFER?

Quote:
Originally posted by M_RAS
I did and I could not find , our platform is aix5.2 64 bit, it means I can not run db2expln in my platform ? it does not make sence
Since db2expln is an external application and not a CLP command I assume the DB2EXPLN_BUFFER refers to an OS environment variable, not to a db2 registry variable.

Try setting the variable in the OS (like "export DB2EXPLN_BUFFER=983838383") and see if it helps.
Reply With Quote
  #9 (permalink)  
Old 02-17-04, 14:43
quigleyd quigleyd is offline
Registered User
 
Join Date: Nov 2002
Location: Delaware
Posts: 186
Re: How can I set up DB2EXPLN_BUFFER?

You could also try recreating the explain table again, by running the db2-vtf $HOME/sqllib/misc/EXPLAIN.DDL maybe some of the tables are missing. I have had weird problem before when stuff was missing
__________________
David Quigley
Reply With Quote
  #10 (permalink)  
Old 02-17-04, 18:28
dollar489 dollar489 is offline
Registered User
 
Join Date: Sep 2002
Posts: 456
Re: How can I set up DB2EXPLN_BUFFER?

Put a space around = sign...and try

db2set DB2EXPLN_BUFFER = 919739
OR
db2set DB2EXPLN_BUFFER =919739
OR
db2set DB2EXPLN_BUFFER= 919739

dollar

Quote:
Originally posted by M_RAS
When I tried I got error
db2set DB2EXPLN_BUFFER=919739


DBI1302E Invalid parameter detected.

Explanation:

An invalid parameter was used.

User Response:

Use the -? option for the usage help messag
Reply With Quote
  #11 (permalink)  
Old 02-17-04, 19:21
sathyaram_s sathyaram_s is offline
Super Moderator
 
Join Date: Aug 2001
Location: UK
Posts: 4,534
Re: How can I set up DB2EXPLN_BUFFER?

Can you please post a link to a document explaining the DB2EXPLN_BUFFER variable

Thanks

sathyaram
__________________
Visit the new-look IDUG Website , register to gain access to the excellent content.
Reply With Quote
  #12 (permalink)  
Old 02-17-04, 19:31
M_RAS M_RAS is offline
Registered User
 
Join Date: Sep 2003
Location: canada
Posts: 230
Re: How can I set up DB2EXPLN_BUFFER?

Quote:
Originally posted by sathyaram_s
Can you please post a link to a document explaining the DB2EXPLN_BUFFER variable

Thanks

sathyaram
I searched a lot in www.google.com and www.ibm.com , I could not find any thing.

Thanks
Reply With Quote
  #13 (permalink)  
Old 02-18-04, 09:27
M_RAS M_RAS is offline
Registered User
 
Join Date: Sep 2003
Location: canada
Posts: 230
Re: How can I set up DB2EXPLN_BUFFER?

Quote:
Originally posted by M_RAS
I searched a lot in www.google.com and www.ibm.com , I could not find any thing.

Thanks
It seems export DB2EXPLN_BUFFERS=999999 worked

Thank you ALL for your support
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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On