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 > SQL0973N when get snapshot for locks

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 09-20-04, 04:49
jmychung jmychung is offline
Registered User
 
Join Date: Oct 2003
Location: Hong Kong
Posts: 41
Question SQL0973N when get snapshot for locks

Hi, when I issue snapshot for locks command, I get the following error:

Tue Sep 14 11:37:57 HKG 2004
SQL0973N Not enough storage is available in the "QUERY_HEAP" heap to process
the statement. SQLSTATE=57011

Then I tried to increase the value of QUERY_HEAP_SZ from 1000 to 5000, but still get this error.

What is the meaning of SQL0973N error? How can I know what value of QUERY_HEAP_SZ is large enough? Are there any adverse effect on setting this parameter too large?

Thanks a lot!
Reply With Quote
  #2 (permalink)  
Old 09-20-04, 13:14
rubystep rubystep is offline
Registered User
 
Join Date: Sep 2003
Posts: 85
Was the instance recycled to ensure that it took effect?
Check by issuing:
db2 attach to instancename
db2 get dbm cfg show detail | grep -i query

to see what the current and delayed values are for QUERY_HEAP_SZ .

HTH,
Ruby
Reply With Quote
  #3 (permalink)  
Old 09-20-04, 21:55
jmychung jmychung is offline
Registered User
 
Join Date: Oct 2003
Location: Hong Kong
Posts: 41
I am using AIX. I follow the step but get nothing after issuing: db2 get dbm cfg show detail | grep -i query

Also, if I use W2k, how can I get the current and delayed setting?
Reply With Quote
  #4 (permalink)  
Old 09-20-04, 22:38
rubystep rubystep is offline
Registered User
 
Join Date: Sep 2003
Posts: 85
Did you first issue:
db2 attach to instancename (whatever the instancename is) prior to issuing the db2 get dbm cfg ... ?
Reply With Quote
  #5 (permalink)  
Old 09-20-04, 22:42
jmychung jmychung is offline
Registered User
 
Join Date: Oct 2003
Location: Hong Kong
Posts: 41
yes, I issued. I get dbm cfg by issuing: db2 get dbm cfg
but get nothing by issuing: db2 get dbm cfg for detail | grep -i query

will the result dump to screen or to file? I am not familiar with unix commands

Thanks for your help.
Reply With Quote
  #6 (permalink)  
Old 09-20-04, 22:58
rubystep rubystep is offline
Registered User
 
Join Date: Sep 2003
Posts: 85
One must issue" after the db2 attach ..
db2 get dbm cfg show detail | grep -i query
(it's show detail and not for detail).
Before I responded to you I had issued the above commands which produced the correct and desired results.
So, my guess is that something is missing when you're doing it.
Reply With Quote
  #7 (permalink)  
Old 09-20-04, 23:10
jmychung jmychung is offline
Registered User
 
Join Date: Oct 2003
Location: Hong Kong
Posts: 41
Hi the following is what I get from a telnet session:



telnet (ibmp615)


























AIX Version 5
(C) Copyrights by IBM and by others 1982, 2000.
login: setdb2
setdb2's Password:
************************************************** *****************************
* *
* *
* Welcome to AIX Version 5.1! *
* *
* *
* Please see the README file in /usr/lpp/bos for information pertinent to *
* this release of the AIX Operating System. *
* *
* *
************************************************** *****************************
Last unsuccessful login: Fri Sep 10 10:29:24 TAIST 2004 on /dev/pts/3 from 192.168.33.82
Last login: Tue Sep 21 09:45:01 TAIST 2004 on

[YOU HAVE NEW MAIL]

Database Connection Information

Database server = DB2/6000 7.2.5
SQL authorization ID = SETDB2
Local database alias = SETDB

DB20000I The SQL command completed successfully.
setdb2@ibmp615:/home/setdb2 > db2 attach to db2inst1

Instance Attachment Information

Instance server = DB2/6000 7.2.5
Authorization ID = SETDB2
Local instance alias = DB2INST1

setdb2@ibmp615:/home/setdb2 > db2 get dbm cfg show detail | grep -i query
setdb2@ibmp615:/home/setdb2 >

the command return nothing.
Reply With Quote
  #8 (permalink)  
Old 09-21-04, 09:56
Metatron Metatron is offline
Registered User
 
Join Date: Feb 2004
Posts: 21
Quote:
Originally Posted by rubystep
Was the instance recycled to ensure that it took effect?
Check by issuing:
db2 attach to instancename
db2 get dbm cfg show detail | grep -i query

to see what the current and delayed values are for QUERY_HEAP_SZ .

HTH,
Ruby
Hi,
your db2 command is wrong,not "db2 get dbm cfg show detail"
the right is "db2 get dbm cfg|grep -i query"
Reply With Quote
  #9 (permalink)  
Old 09-21-04, 13:17
rubystep rubystep is offline
Registered User
 
Join Date: Sep 2003
Posts: 85
Gentlemen:
See below:
insgipdm@paehowup2641[/home/insgipdm/x127355]>db2 get dbm cfg show detail | grep -i query
Query heap size (4KB) (QUERY_HEAP_SZ) = 1000 1000
Maximum query degree of parallelism (MAX_QUERYDEGREE) = ANY ANY

The 1st value is the current value and the 2nd value is the delayed value.
By the way, I just noticed that you are running UDB 7.2.5 and I was giving you info for a UDB 8.1.5 instance.

HTH,
Ruby
Reply With Quote
  #10 (permalink)  
Old 09-22-04, 02:40
jmychung jmychung is offline
Registered User
 
Join Date: Oct 2003
Location: Hong Kong
Posts: 41
Thanks Metatron and rubystep.

I tried the command without 'show detail' and can get something.
I only see 1 value after the parameter name. Is it the current value?

[setinst@ssmsset01]/db2home/setinst>db2 get dbm cfg|grep -i query
Query heap size (4KB) (QUERY_HEAP_SZ) = 5000
Maximum query degree of parallelism (MAX_QUERYDEGREE) = ANY

How can I query the current value and the delayed value of regestry parameter db2_rr_to_rs?
Reply With Quote
  #11 (permalink)  
Old 09-22-04, 04:37
Metatron Metatron is offline
Registered User
 
Join Date: Feb 2004
Posts: 21
Smile

Quote:
Originally Posted by jmychung
Thanks Metatron and rubystep.

I tried the command without 'show detail' and can get something.
I only see 1 value after the parameter name. Is it the current value?

[setinst@ssmsset01]/db2home/setinst>db2 get dbm cfg|grep -i query
Query heap size (4KB) (QUERY_HEAP_SZ) = 5000
Maximum query degree of parallelism (MAX_QUERYDEGREE) = ANY

How can I query the current value and the delayed value of regestry parameter db2_rr_to_rs?
db2_rr_to_rs is one db2 registry parameter .
you can use command :"db2set",to see its value(if you have already set that parameter.)
Reply With Quote
  #12 (permalink)  
Old 09-22-04, 04:44
jmychung jmychung is offline
Registered User
 
Join Date: Oct 2003
Location: Hong Kong
Posts: 41
However, I know this parameter will take effect ONLY AFTER instance restart, but I am not sure if the instance is already restarted.
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