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 > Error: DB2 SQL error: SQLCODE: -955, SQLSTATE:, SQLERRMC: 2

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-15-08, 19:52
askdba123 askdba123 is offline
Registered User
 
Join Date: Jun 2007
Posts: 21
Error: DB2 SQL error: SQLCODE: -955, SQLSTATE:, SQLERRMC: 2

Hi

I am getting following error while inserting/updating the DB2 tables.

Error: DB2 SQL error: SQLCODE: -955, SQLSTATE:, SQLERRMC: 2

We have a batch that does insert/update on multiple tables and we observed above errror and job abends..

We bumped the sortheap, sortheap threshold and sorthead shared memory but no luck..

We also observed same issue with online application/txns.

Any idea why it is causing issue..

Thanks
Reply With Quote
  #2 (permalink)  
Old 01-16-08, 07:33
azs0309 azs0309 is offline
Registered User
 
Join Date: Jan 2008
Posts: 88
Can you just put more light. What u getting in db2diag log. Is it always insert or delete . what is ur sortheap and sortheaptheresold parameter value
Reply With Quote
  #3 (permalink)  
Old 01-16-08, 12:16
askdba123 askdba123 is offline
Registered User
 
Join Date: Jun 2007
Posts: 21
I do not see any entry for -955 in db2diag.log. Here are the dbm/db paramerrs;

Sort heap threshold (4KB) (SHEAPTHRES) = 100000

Sort heap thres for shared sorts (4KB) (SHEAPTHRES_SHR) = (SHEAPTHRES)
Sort list heap (4KB) (SORTHEAP) = 16000
SQL statement heap (4KB) (STMTHEAP) = 40000
Default application heap (4KB) (APPLHEAPSZ) = 50000
Package cache size (4KB) (PCKCACHESZ) = 10240
Statistics heap size (4KB) (STAT_HEAP_SZ) = 22000

thanks
Reply With Quote
  #4 (permalink)  
Old 01-16-08, 12:18
askdba123 askdba123 is offline
Registered User
 
Join Date: Jun 2007
Posts: 21
initially we had SHEAPTHRES=35000 before memory upgrade. now we have 32GB RAM and8 CPUs.

system person changed=SORTHEAP=40K and we had same issue. Later we reduced SORTHEAP to 16000.
Reply With Quote
  #5 (permalink)  
Old 01-16-08, 13:43
azs0309 azs0309 is offline
Registered User
 
Join Date: Jan 2008
Posts: 88
Can you reduce a bit more and try. you can take advantage of Configuration advisor also. But i think u decrease both the parameter and try. Do u have space in temp table sapce . sometimes the sort overflows and goes into ur temporay tablespace .
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