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

How to resolve -904 DB2 error


IBM Mainframe Forums -> HomeWorks & Requests
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
sridevi2005

New User


Joined: 15 Sep 2005
Posts: 42

PostPosted: Wed Oct 24, 2007 10:14 am
Reply with quote

Hi All,

I'm stuggling with -904 DB2 error while I'm trying to open a table.

I saw in some manuals saying that resouce unavailable.

Is there any utility or jcl to overcome this problem.


Thanks in advance,
Sridevi
Back to top
View user's profile Send private message
nuthan

Active User


Joined: 26 Sep 2005
Posts: 146
Location: Bangalore

PostPosted: Wed Oct 24, 2007 10:34 am
Reply with quote

SQLCODE -904 SQLSTATE 57011
Unavailable resource. Someone is locking the data you need you may choose to terminate the program.

Solution
CAUSE: "DSNT408I SQLCODE = -904, ERROR: UNSUCCESSFUL EXECUTION" occurs due to the TABLESIZE being insufficient.
The reason 00C90096 in the DSNT408I message means " The page, row or LOB lock on the page or subpage identified by NAME in message DSNT500I or DSNT501I caused the total number of page, row or LOB locks concurrently held to reach the installation maximum number of page, row or LOB locks (NUMLKUS) allowed for a single agent in the system. ";

type resource 0000302 is a Table Space Page

SOLUTION: Lock Size = TABLE and Lock Max = 0 should solve this problem.

(Using Lock Size = ANY or PAGE brings SQLCODE = -904)
Back to top
View user's profile Send private message
sridevi2005

New User


Joined: 15 Sep 2005
Posts: 42

PostPosted: Wed Oct 24, 2007 11:17 am
Reply with quote

Hi Nuthan,

Where I need to give this

'Lock Size = TABLE and Lock Max = 0 '

Can u help me on this.

Thanks,
Sridevi
Back to top
View user's profile Send private message
sridevi2005

New User


Joined: 15 Sep 2005
Posts: 42

PostPosted: Wed Oct 24, 2007 12:23 pm
Reply with quote

Hi all,

Where I need to give this

'Lock Size = TABLE and Lock Max = 0 '

Please help out on this its very urgent to me.

Thanks,
Sridevi
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 -> HomeWorks & Requests

 


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 CLIST - Virtual storage allocation error CLIST & REXX 5
No new posts Error while running web tool kit REXX... CLIST & REXX 5
No new posts Need help to resolve a hard edit COBOL Programming 8
Search our Forums:

Back to Top