---
title: "How to Resolve SQL-904 Error Quickly"
description: "Resolution to fix DB2 SQL error -904 in mainframe projects."
url: https://srinimf.com/2014/12/11/db2-load-error-904-and-resolution/
date: 2014-12-11
modified: 2026-10-10
author: "Srini"
image: https://i0.wp.com/srinimf.com/wp-content/uploads/2014/12/pexels-photo-323503.jpeg?fit=1880%2C1255&ssl=1
categories: ["DB2"]
tags: ["DB2 SQL Error Codes", "Db2 Tips", "How to resolve 904 error in DB2"]
type: post
lang: en
---

# How to Resolve SQL-904 Error Quickly

SQL error -904 in DB2 is a little tricky. Here you will find the resolution on [how to](https://srinimf.com/2015/12/05/sql-error-500-cursor-was-closed-when-the-connection-destroyed/) fix it. You know right, many times during the execution of your SQL in your project you will [get this error](https://srinimf.com/2012/07/11/sql-code-904/).

Related[SQL -204 error resolution to resolve quickly](https://srinimf.com/2015/02/05/db2-sql-error-204-and-resolution/)

## What is SQL error -904 SQLSTATE 42000

UNSUCCESSFUL EXECUTION CAUSED BY AN UNAVAILABLE RESOURCE. REASON reason-code, TYPE OF RESOURCE resource-type, AND RESOURCE NAME resource-name.

Two reasons in DB2 SQL error is possible. One is a resource not available and the other one is Space not available. The point is resources can be anything.

### Resolution

904 is usually caused because a database utility job has started the desired DB2 object in utility mode. Check DB2 Master Log for more details on the resource name contact DBA.

***References***

- [Visit the IBM web page for code: -904](http://publib.boulder.ibm.com/infocenter/dzichelp/v2r2/topic/com.ibm.db2z10.doc.codes/src/tpc/n904.htm)

Related

- [SQL -904 Top Reasons to Get This Error](https://srinimf.com/2012/07/11/sql-code-904/)DateJuly 11, 2012
- [These DB2 SQL Errors Asked in Many Mainframe Interviews](https://srinimf.com/2015/07/08/these-db2-sql-errors-asked-in-many-mainframe-interviews/)DateJuly 8, 2015
- [DB2 SQL Error Codes You Always Need](https://srinimf.com/2010/10/23/sql_error_codes/)DateOctober 23, 2010

### Share this:

-
- [Tweet](https://twitter.com/share)
- [![](https://i0.wp.com/assets.pinterest.com/images/pidgets/pinit_fg_en_rect_gray_20.png)](https://www.pinterest.com/pin/create/link/?url=https%3A%2F%2Fsrinimf.com%2F2014%2F12%2F11%2Fdb2-load-error-904-and-resolution%2F&media=https%3A%2F%2Fi0.wp.com%2Fsrinimf.com%2Fwp-content%2Fuploads%2F2014%2F12%2Fpexels-photo-323503.jpeg%3Ffit%3D1200%252C801%26ssl%3D1&description=How%20to%20Resolve%20SQL-904%20Error%20Quickly)
-
- [Share on Tumblr](https://www.tumblr.com/share)
- [Share on WhatsApp (Opens in new window) WhatsApp](https://srinimf.com/2014/12/11/db2-load-error-904-and-resolution/?share=jetpack-whatsapp)
- [More](#)
-

- [Print (Opens in new window) Print](https://srinimf.com/2014/12/11/db2-load-error-904-and-resolution/?share=print)
- [Share on Reddit (Opens in new window) Reddit](https://srinimf.com/2014/12/11/db2-load-error-904-and-resolution/?share=reddit)
- [Share on Telegram (Opens in new window) Telegram](https://srinimf.com/2014/12/11/db2-load-error-904-and-resolution/?share=telegram)
- [Email a link to a friend (Opens in new window) Email](mailto:?subject=%5BShared%20Post%5D%20How%20to%20Resolve%20SQL-904%20Error%20Quickly&body=https%3A%2F%2Fsrinimf.com%2F2014%2F12%2F11%2Fdb2-load-error-904-and-resolution%2F&share=email)
-

### Like this:

Like Loading…
