MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

how to resolve -904

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Database
View previous topic :: View next topic  
Author Message
issac1029
Intermediate


Joined: 10 Dec 2005
Posts: 159
Topics: 75

PostPosted: Wed Mar 15, 2006 11:53 pm    Post subject: how to resolve -904 Reply with quote

Quote:
DSNT408I SQLCODE = -904, ERROR: UNSUCCESSFUL EXECUTION CAUSED BY AN
UNAVAILABLE RESOURCE. REASON 00C90096, TYPE OF RESOURCE 00000304, AND
RESOURCE NAME OZRBD051.TSRBT001.X'00085E' '.X'0D'
DSNT418I SQLSTATE = 57011 SQLSTATE RETURN CODE
DSNT415I SQLERRP = DSNXRRC SQL PROCEDURE DETECTING ERROR
DSNT416I SQLERRD = 101 13172746 0 13813475 -640086009 0 SQL DIAGNOSTIC
INFORMATION
DSNT416I SQLERRD = X'00000065' X'00C9000A' X'00000000' X'00D2C6E3'
X'D9D91007' X'00000000' SQL DIAGNOSTIC INFORMATION


I modify the sql statement reduce the rows that my sql(select) resolve,then it run well.

From
Quote:
REASON 00C90096
,It seems that something define in tablespace are not enough.Which filed should be alter?
Back to top
View user's profile Send private message Send e-mail MSN Messenger
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12378
Topics: 75
Location: San Jose

PostPosted: Thu Mar 16, 2006 6:15 am    Post subject: Reply with quote

issac1029,

Check this link for a detailed explanation of the reason code

http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/DSNMCH11/4.8.26?SHELF=&DT=20010718150520&CASE=

Hope this helps...

Cheers

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Jaya
Beginner


Joined: 02 Sep 2005
Posts: 77
Topics: 10
Location: Cincinnati

PostPosted: Thu Mar 16, 2006 6:31 am    Post subject: Reply with quote

Issac,

Please check this link for the IBM documentation of reason code 00C90096 and look for programmer response.

http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/dsnmch11/4.8.26

Also check this link to find the resource type.

http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/dsnmch11/APPENDIX1.2.2

Quote:
00000304 Table space RID DB.SP.RID


The problem is because of row locking in tablespace OZRBD051.TSRBT001 exceeding the installation limit MAXROWS. I guess tablespace can be altered to increase the MAXROWS value.

Experts please confirm..

Thanks,
Jaya.
_________________
"Great spirits have always encountered violent opposition from mediocre minds."
-Albert Einstein
Back to top
View user's profile Send private message
issac1029
Intermediate


Joined: 10 Dec 2005
Posts: 159
Topics: 75

PostPosted: Thu Mar 16, 2006 9:31 am    Post subject: Reply with quote

Thanks,

I have know those infomation before I post ,I've try to alter maxrows of ablespace,it can't be used before stop tablespace.It returns -626,how can I deal with this?I would try to alter locksize
Back to top
View user's profile Send private message Send e-mail MSN Messenger
Manas Biswal
Intermediate


Joined: 29 Nov 2002
Posts: 382
Topics: 27
Location: Chennai, India

PostPosted: Thu Mar 16, 2006 10:24 am    Post subject: Reply with quote

Jaya and issac1029,

MAXROWS tablespace parameter has got nothing to with locking. It is the maximum number of rows that DB2 can place on a single page.

The tablespace parameter that you are looking for is LOCKSIZE. Check the LOCKSIZE value for the tablespace. If it is "ANY" or "ROW" for your tablespace, consider making it "PAGE" or "TABLESPACE". Or otherwise, explicitly lock the table using the LOCK TABLE statement before running your application.
Remember that these directions are not as black and white as they seem. Before doing any of these, look for other impacts.

Also look for the NUMLKTS(Max locks per tablespace) and NUMLKUS (Max locks per user) parameters. They are DSNZPARM parameters and determine the maximum locks before a lock escalation occurs.

HTH...Regards,
Manas
_________________
There is no path to peace. Peace is the path.
- Mahatma Gandhi (1869-1948)
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Database All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group