Page 1 of 1

-904, Error: Unsuccessful execution caused by an Unavailable resource

Posted: Sat Apr 27, 2024 7:46 pm
by Nitin Kumar
Hii,

Can anyone Tell me, I got -904, Error: Unsuccessful execution caused by an Unavailable resource 00000302, And Resource Name RCAD0100.RCAS9810.X '00002AB4'

Re: -904, Error: Unsuccessful execution caused by an Unavailable resource

Posted: Sun Apr 28, 2024 4:41 am
by zum13
Hello.

The -904 SQLCODE is documented here: https://www.ibm.com/docs/en/db2-for-zos ... ic=esc-904

The "00000302" bit is a resource type, in this case for a page in the named table space. A list of the resource types can be found here: https://www.ibm.com/docs/en/db2-for-zos ... urce-types

You should also have a reason code which will be an 8-digit hex number that may give more insight into what has gone wrong. These are documented here: https://www.ibm.com/docs/en/db2-for-zos ... db2-reason

However, the best course of action here is to contact your DBA or DB2 Sysprog and get them to take a look at it. The -904 SQLCODE tends to have causes that require their intervention.

Re: -904, Error: Unsuccessful execution caused by an Unavailable resource

Posted: Sat May 04, 2024 5:26 pm
by Nitin Kumar
From offshore we don't have that easy access to the DBA team, it's all on us to learn by our self! :(

Re: -904, Error: Unsuccessful execution caused by an Unavailable resource

Posted: Sat May 04, 2024 5:44 pm
by zum13
In which case, you'll need the reason code to determine why the resource has been made unavailable. That will be the 8 digit hex code that starts 00C, 00D, 00E, or 00F. Once you know the why you can determine how to fix it. If it is something like the table needs recovery or repair, then it's possible that you may not have the access to do that at which point it is definitely something the DBAs need to deal with.

Re: -904, Error: Unsuccessful execution caused by an Unavailable resource

Posted: Sat May 18, 2024 11:07 am
by Nitin Kumar
Thanks for the direction zum13. This was helpful and I could direct it to DBA team with meaningful information.