By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,237 Members | 1,224 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,237 IT Pros & Developers. It's quick & easy.

Can't query or drop a table

P: n/a
I was doing a load into a table and it was taking way too long
(previous loads took 20 mins, this one was at 3+ hours with similar
number of rows) so I tried to cancel it. After clicking the cancel
button in control center, everything pretty much hung and I had to kill
control center. To get back to a workable state, I had to go into the
list of applications connected to my database and force them all
closed.

Now, I can't do anything with the table that I was trying to load stuff
into. Can't query it, and I can't even drop it. If I try to do a
sample contents on it from control center I get the following error:

SQL10007N Message "99999" could not be retrieved. Reason code: "4".
So, I'm assuming this table is in some sort of pending state from the
failed load. I would really like to be able to keep the data in this
table, or at least drop it if I can't, but I can't do either right now.
Any ideas how to unlock this table?

Oct 18 '06 #1
Share this Question
Share on Google+
3 Replies


P: n/a
Reboot your machine,
then run a load terminate

shawno wrote:
I was doing a load into a table and it was taking way too long
(previous loads took 20 mins, this one was at 3+ hours with similar
number of rows) so I tried to cancel it. After clicking the cancel
button in control center, everything pretty much hung and I had to kill
control center. To get back to a workable state, I had to go into the
list of applications connected to my database and force them all
closed.

Now, I can't do anything with the table that I was trying to load stuff
into. Can't query it, and I can't even drop it. If I try to do a
sample contents on it from control center I get the following error:

SQL10007N Message "99999" could not be retrieved. Reason code: "4".
So, I'm assuming this table is in some sort of pending state from the
failed load. I would really like to be able to keep the data in this
table, or at least drop it if I can't, but I can't do either right now.
Any ideas how to unlock this table?
Oct 18 '06 #2

P: n/a
sh*******@gmail.com wrote:
Reboot your machine,
then run a load terminate
Tried running the LOAD TERMINATE command from command center and it
does not accept it. We are using DB2 v 8.1.

Oct 18 '06 #3

P: n/a
can u do this from command line and paste the error code here ...

db2 "select * from <tablefetch first 1 row only"

cheers..
Shashi Mannepalli

shawno wrote:
sh*******@gmail.com wrote:
Reboot your machine,
then run a load terminate

Tried running the LOAD TERMINATE command from command center and it
does not accept it. We are using DB2 v 8.1.
Oct 18 '06 #4

This discussion thread is closed

Replies have been disabled for this discussion.