Solved

COM.ibm.db2.jdbc.DB2Exception: [IBM][CLI Driver][DB2] SQL0913N

Posted on 2004-09-15
5
2,555 Views
Last Modified: 2008-01-09
Hello Everybody,

I'm getting this error when i'm trying to drop table from Z/OS.

"COM.ibm.db2.jdbc.DB2Exception: [IBM][CLI Driver][DB2] SQL0913N  Unsuccessful execution caused by deadlock or timeout.  Reason code "00C9008E".  SQLSTATE=57033"

I can run " select * from testtable" successfully but only when I'm trying to drop table I'm getting this error. Does anybody know what could be the reason>

I'm using JDBC Universal driver for UDB.

Thanks,
P
0
Comment
Question by:paluindian
5 Comments
 
LVL 13

Expert Comment

by:ghp7000
ID: 12074964
it means some other user is using the same table concurrently as you and other user has locks on row or rows of table
0
 
LVL 4

Expert Comment

by:bondtrader
ID: 12075651
Did you mean to say you were trying to delete all of the rows from the table or are actually trying to drop the table?  As ghp7000 said, there is some contention.  The contention could even be with yourself  ;-)  Depending on how your application is coded, you might to do a commit or otherwise release your own locks.  Otherwise, you better find out who else is accessing the table before truncating it!
0
 

Accepted Solution

by:
kedlu earned 50 total points
ID: 12076888
If the previous statement is 'Select * from testtble" then I would suspect that, this process is making deadlock happen. I guess you have not closed that statement or resultset properly or you have forgotten it. It is my experience that process will  be in waiting state if you don't close the rs statements. Give a try.
0
 

Expert Comment

by:kedlu
ID: 12076908
Hello Everybody,

I'm trying to drop the table and the matter for the fact is nobody else is working on that table. Thats just my test-table. So I want to release locks on the database.

kedlu, I will try your suggestion.

Thanks
0
 

Author Comment

by:paluindian
ID: 12076921
hi Kedlu,

thanks for writing remarks on my behalf. I will try your suggestion.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Recursive SQL in UDB/LUW (you can use 'recursive' and 'SQL' in the same sentence) A growing number of database queries lend themselves to recursive solutions.  It's not always easy to spot when recursion is called for, especially for people una…
Recursive SQL in UDB/LUW (it really isn't that hard to do) Recursive SQL is most often used to convert columns to rows or rows to columns.  A previous article described the process of converting rows to columns.  This article will build off of th…
Internet Business Fax to Email Made Easy - With  eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, f…
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

895 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now