If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > recover tablespace

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-22-04, 10:58
chas_dba chas_dba is offline
Registered User
 
Join Date: Sep 2003
Posts: 33
recover tablespace

Accidentally i have deleted some data . Now when i wanted to recover the table space with option torba but the last image copy on the tablespace requested by the job is not available. (tape got scratched for some reason).
Is there a way i can recover the tablespace.
Is there a way to undo what i have today(i mean delete).
Any help is appreciated. ....
hurry please,
__________________
bs

Last edited by chas_dba; 07-22-04 at 11:04.
Reply With Quote
  #2 (permalink)  
Old 07-22-04, 11:14
J Petruk J Petruk is offline
Registered User
 
Join Date: Mar 2004
Location: Toronto, ON, Canada
Posts: 513
Quote:
Originally Posted by chas_dba
Accidentally i have deleted some data . Now when i wanted to recover the table space with option torba but the last image copy on the tablespace requested by the job is not available. (tape got scratched for some reason).
Is there a way i can recover the tablespace.
Is there a way to undo what i have today(i mean delete).
Any help is appreciated. ....
hurry please,
Do you have an older backup that's ok + all the logs since? You could restore from that, although it may take a while to roll forward through them.
__________________
--
Jonathan Petruk
DB2 Database Consultant
Reply With Quote
  #3 (permalink)  
Old 07-22-04, 11:29
chas_dba chas_dba is offline
Registered User
 
Join Date: Sep 2003
Posts: 33
No, thats the only image copy on this table. But i have all the log tapes
will that be okay...can u be more specific
__________________
bs
Reply With Quote
  #4 (permalink)  
Old 07-22-04, 11:40
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,196
Can you find the scratched tape and try to recatalog it (assuming the tape has not been reused)?

If not, I don't know of anyway to recover without an image copy.
__________________
M. A. Feldman
IBM Certified DBA on DB2 for Linux, UNIX, and Windows
IBM Certified DBA on DB2 for z/OS and OS/390
Reply With Quote
  #5 (permalink)  
Old 07-22-04, 11:41
J Petruk J Petruk is offline
Registered User
 
Join Date: Mar 2004
Location: Toronto, ON, Canada
Posts: 513
Quote:
Originally Posted by chas_dba
No, thats the only image copy on this table. But i have all the log tapes
will that be okay...can u be more specific
You really don't have a lot of options here without a backup. If you have an old backup and logs you can restore from that and RF to just before your delete, otherwise you may be out of luck. There's no way to roll back committed transactions.
__________________
--
Jonathan Petruk
DB2 Database Consultant
Reply With Quote
  #6 (permalink)  
Old 07-22-04, 12:05
famudba famudba is offline
Registered User
 
Join Date: Jan 2004
Location: Tallahassee, FL, USA
Posts: 96
if it is OS/390 , you any 3rd party tool , like BMC change manager or Platinum( now CA tools log analyser ) , if yes , you restore it by using above tools


Hope it may help


Thank You

Lekharaju Ennam
Reply With Quote
  #7 (permalink)  
Old 07-22-04, 14:04
chas_dba chas_dba is offline
Registered User
 
Join Date: Sep 2003
Posts: 33
we are not having any tools for the matter of fact. But, definetly this is a good time to look for one. guys, do you know where can i get some info about tools availble. we are os/390 r2v10 and db2 v7.1.
Regarding the data, application shall take care of it...
thanks a lot to u all for the responding.
__________________
bs
Reply With Quote
  #8 (permalink)  
Old 07-26-04, 11:10
xamar xamar is offline
Registered User
 
Join Date: Apr 2004
Posts: 39
Re

If I remember correctly, BMC has a facility using which you can give the "FROM" and "TO" time(No RBA etc needed) and it will generate UNDO DDL/DML/DCL etc . Then you can run that to undo. It uses the LOG to generate the SQL. It is mostly valid for very recent changes like what you did accidental delete.

But since you don't have BMC, I don't know any other way.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On