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 > Sqlcode -973

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-14-07, 12:00
igorgalperin igorgalperin is offline
Registered User
 
Join Date: Mar 2007
Posts: 5
Sqlcode -973

During the execution of a query "SELECT DISTINCT..." we got SQLCODE -973 with the messages in db2diag.log

2007-03-13-16.13.05.209046-420 E4190258A552 LEVEL: Severe (OS)
PID : 10364 TID : 1 PROC : db2agent (QUOTEVOL) 0
INSTANCE: scifudbv NODE : 000 DB : QUOTEVOL
APPHDL : 0-608 APPID: GA02135E.G20A.02FA03231543
FUNCTION: DB2 UDB, oper system services, getPrivateChunksFromOs, probe:100
CALLED : OS, -, malloc
OSERR : ENOMEM (12) "Not enough space"
MESSAGE : Private memory and/or virtual address space exhausted
DATA #1 : Requested size, PD_TYPE_MEM_REQUESTED_SIZE, 8 bytes
266240

What parameters in DB cfg should be revised?
Thanks,
Igor.
Reply With Quote
  #2 (permalink)  
Old 03-14-07, 12:36
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
When you got the sqlcode -973, did you get any other message? It should have reported on some heap name.

Andy
Reply With Quote
  #3 (permalink)  
Old 03-14-07, 12:43
igorgalperin igorgalperin is offline
Registered User
 
Join Date: Mar 2007
Posts: 5
Hi Andy,
Heap name in the -973 message is APP_CTL_HEAP_SZ
and its size is:
Max appl. control heap size (4KB) (APP_CTL_HEAP_SZ) = 2048
Thanks,
Igor.
Reply With Quote
  #4 (permalink)  
Old 03-14-07, 12:54
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
That is the one you need to increase. Do it is small increments.

Andy
Reply With Quote
  #5 (permalink)  
Old 03-14-07, 13:32
igorgalperin igorgalperin is offline
Registered User
 
Join Date: Mar 2007
Posts: 5
Andy,
I thought about it but it is currently much larger than IBM recommends. For non-partition DB with remote clients they recommend to take default 128. Our size is 2048.
Reply With Quote
  #6 (permalink)  
Old 03-14-07, 13:41
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
Fair enough. Maybe you can take the SQL query and simplify it somewhat. Also, what is your DB2 version and OS? How much Memory on server? What are the other dbm and db config parameters?

Andy
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