IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Regarding SQL error code -904


IBM Mainframe Forums -> DB2
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
narasridhar

New User


Joined: 12 Oct 2006
Posts: 32
Location: India

PostPosted: Tue Oct 24, 2006 2:50 pm
Reply with quote

Usually manual says -904 is resources not available?
Exactly what sre the resources mean? When we get this abend ? Ho to overcome this problem
?
Back to top
View user's profile Send private message
twissi

Active User


Joined: 01 Aug 2005
Posts: 105
Location: Somerset, NJ

PostPosted: Tue Oct 24, 2006 4:44 pm
Reply with quote

Nara Sridhar,

RESOURCES mean everything (on DB2) that your program is trying to access, e.g. TABLES etc.

There're many reasons for this SQLCODE, the most common being the VSAM datasets that hold the DB2 data migrating on to tape thus making the resource unavailable for the program at that moment or an other program holding the resource that you want, in exclusive mode.

To get rid of this, maybe you can try and execute the program sometime later or do something to make that resource available for your program, say, recalling all datasets onto the disk for the problem I stated above.

Hope this helps!
Cheers, Twissi.
Back to top
View user's profile Send private message
kitajim

New User


Joined: 17 Aug 2006
Posts: 3

PostPosted: Wed Oct 25, 2006 10:05 am
Reply with quote

Hi, Check the volume usage(ISPF 3.4 with "V" option) relted with your DB Storage Group.
If the usage is full, create a new Volue and assing to your Storage Group using the DB2 command "ALTER STOGROUP".
Back to top
View user's profile Send private message
barobaybay

New User


Joined: 22 Jul 2005
Posts: 12
Location: Philippines

PostPosted: Wed Oct 25, 2006 4:21 pm
Reply with quote

Hi,
I usually encounter this error when there was a previous job abend or a bad SQL statement and when I check in BMCADM or other tools that can take DB2 commands, I DISPLAY the database and the tablespace and their status.. after seeing that the status of the database or tablespace, I start the database or tablespace then use the START command with the ACCESS(FORCE) command.. I hope this is (somehow) useful...
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DB2

 


Similar Topics
Topic Forum Replies
No new posts Error to read log with rexx CLIST & REXX 11
No new posts Error when install DB2 DB2 2
No new posts run rexx code with jcl CLIST & REXX 15
No new posts Compile rexx code with jcl CLIST & REXX 6
No new posts CLIST - Virtual storage allocation error CLIST & REXX 5
Search our Forums:

Back to Top