Unix Technical Forum

Help!!! Backup pending state after delete from table

This is a discussion on Help!!! Backup pending state after delete from table within the DB2 forums, part of the Database Server Software category; --> Hi there! I am using DB2 6.1 in Solaris. I have tried to delete several rows from one table. ...


Go Back   Unix Technical Forum > Database Server Software > DB2

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-26-2008, 09:59 AM
Tomas Calvo
 
Posts: n/a
Default Help!!! Backup pending state after delete from table

Hi there!

I am using DB2 6.1 in Solaris. I have tried to delete several rows
from one table. Unfortunately, the number of rows to be deleted was
big enough to cause the DB not to be able to save the rollback info,
so the query (DELETE FROM...) threw one error. After that, any query
trying to delete/update/insert in that table brings back the following
error:

DB21034E The command was processed as an SQL statement because it was
not a valid Command Line Processor command. During SQL processing it
returned:
SQL0290N Table space access is not allowed. SQLSTATE=55039


So, if I type "list tablespaces" I can see that the tablespace that
table belongs to is in "backup pending" state.

I have tried to restore it back to its "normal" state using the
command:

QUIESCE TABLESPACES FOR....

with no success at all. Right now, I've got no idea of what to do. Can
anyone help me???

Thank you very much...

Cheers,

Tomas Calvo
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-26-2008, 09:59 AM
Powell
 
Posts: n/a
Default Re: Help!!! Backup pending state after delete from table

Sounds like the table is needing an integrity check. Read up on the
"Set Integrity" command.

Also, what do you mean by "...DB not to be able to save the rollback
info..." ? Rollback info are always written to logs. Did you hit a
log-full? And if so, did you terminate the application? Rollback is
not automatically unless you have an non-recoverable db.

--Powell


tomascalvo@hotmail.com (Tomas Calvo) wrote in message news:<e2fa73da.0307170632.443d8301@posting.google. com>...
> Hi there!
>
> I am using DB2 6.1 in Solaris. I have tried to delete several rows
> from one table. Unfortunately, the number of rows to be deleted was
> big enough to cause the DB not to be able to save the rollback info,
> so the query (DELETE FROM...) threw one error. After that, any query
> trying to delete/update/insert in that table brings back the following
> error:
>
> DB21034E The command was processed as an SQL statement because it was
> not a valid Command Line Processor command. During SQL processing it
> returned:
> SQL0290N Table space access is not allowed. SQLSTATE=55039
>
>
> So, if I type "list tablespaces" I can see that the tablespace that
> table belongs to is in "backup pending" state.
>
> I have tried to restore it back to its "normal" state using the
> command:
>
> QUIESCE TABLESPACES FOR....
>
> with no success at all. Right now, I've got no idea of what to do. Can
> anyone help me???
>
> Thank you very much...
>
> Cheers,
>
> Tomas Calvo

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-26-2008, 10:00 AM
Fan Ruo Xin
 
Posts: n/a
Default Re: Help!!! Backup pending state after delete from table

See Michael Bhola's response, which gave you exact information you need.

You said the tablespace (delete) pending is because " the number of rows
to be deleted was
big enough to cause the DB not to be able to save the rollback info ..."
As far as I know this is bug, and is fixed in FP1 or FP2 for DB2 UDB V6.
Regards,
FRX

Tomas Calvo wrote:

> Hi there!
>
> I am using DB2 6.1 in Solaris. I have tried to delete several rows
> from one table. Unfortunately, the number of rows to be deleted was
> big enough to cause the DB not to be able to save the rollback info,
> so the query (DELETE FROM...) threw one error. After that, any query
> trying to delete/update/insert in that table brings back the following
> error:
>
> DB21034E The command was processed as an SQL statement because it was
> not a valid Command Line Processor command. During SQL processing it
> returned:
> SQL0290N Table space access is not allowed. SQLSTATE=55039
>
> So, if I type "list tablespaces" I can see that the tablespace that
> table belongs to is in "backup pending" state.
>
> I have tried to restore it back to its "normal" state using the
> command:
>
> QUIESCE TABLESPACES FOR....
>
> with no success at all. Right now, I've got no idea of what to do. Can
> anyone help me???
>
> Thank you very much...
>
> Cheers,
>
> Tomas Calvo


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 08:04 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com