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 > how to recover dropped table on DB2 z/OS

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-04-09, 12:50
db2zip db2zip is offline
Registered User
 
Join Date: Apr 2009
Posts: 42
how to recover dropped table on DB2 z/OS

Hello,

If I drop my table by mistake - how to recover on DB2 z/OS? Can I recover my table if I don't have backup?

Thank you.
Reply With Quote
  #2 (permalink)  
Old 08-04-09, 13:04
rdutton rdutton is offline
Registered User
 
Join Date: Dec 2008
Posts: 76
I haven't worked with the MF since v7, so I can't say for certain about newer versions, but I don't think the dropped table recovery has been enacted on the mainframe. Therefore; no, you can't.

The schema and data have to come from somewhere, and if you haven't got a backup you don't have anything once the table is dropped.
__________________
RD
Reply With Quote
  #3 (permalink)  
Old 08-04-09, 19:24
D.Utro D.Utro is offline
Registered User
 
Join Date: Feb 2009
Posts: 14
I think you couldnt recover your table without backup.
__________________
Best regrads,
Danny Utro.
Reply With Quote
  #4 (permalink)  
Old 08-04-09, 19:55
Stealth_DBA Stealth_DBA is offline
Registered User
 
Join Date: May 2009
Posts: 472
D.Utro is correct. If you don't have an Image copy of the table space, there is nothing to recover.

The only hope you might have is if you did NOT define you Table spaces with a STOGROUP. If you defined your own files, they are still on disk even though the table space is no longer defined to DB2.

In you didn't use a STOGROUP and the VSAM files still exist, I would look up the DSN1COPY command. It makes an 'image copy' outside of DB2 and the only difference between a real Image copy is it is not recorded in the SYSCOPY table.
Reply With Quote
  #5 (permalink)  
Old 08-05-09, 14:01
db2zip db2zip is offline
Registered User
 
Join Date: Apr 2009
Posts: 42
Thank you. I looked up the DSN1COPY command but still don't understand how to recover my table if I still have the VSAM file but no backup. Do you have any examples?
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