IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

how to recover table which i already drop?


IBM Mainframe Forums -> DB2
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
amitcvrce

New User


Joined: 04 Jul 2007
Posts: 3
Location: bangalore

PostPosted: Wed Dec 03, 2008 12:34 am
Reply with quote

How to recover table or tablespace which i accidentaaly dropped.plz ans,thanks in advance
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Wed Dec 03, 2008 12:41 am
Reply with quote

Hello and welcome to the forum,

You recreate and reload the table from a backup. Both the source to create the table, any permissions granted to that table, and the data that was in the table should have a backup.

If there is no backup, it will have to be re-entered.
Back to top
View user's profile Send private message
anil.csk

New User


Joined: 22 Oct 2007
Posts: 16
Location: Noida

PostPosted: Wed Dec 03, 2008 4:23 pm
Reply with quote

you can not recover the data if you have not backup of data.
Back to top
View user's profile Send private message
amitcvrce

New User


Joined: 04 Jul 2007
Posts: 3
Location: bangalore

PostPosted: Wed Dec 03, 2008 8:16 pm
Reply with quote

thanks for repling...but i dont have the structure of the table,,i have deleted it,
from back up how can i reload,
Back to top
View user's profile Send private message
Arun Raj

Moderator


Joined: 17 Oct 2006
Posts: 2481
Location: @my desk

PostPosted: Wed Dec 03, 2008 9:12 pm
Reply with quote

amitcvrce

Dont you have the DCLGEN of the table in some library?
Back to top
View user's profile Send private message
amitcvrce

New User


Joined: 04 Jul 2007
Posts: 3
Location: bangalore

PostPosted: Thu Dec 04, 2008 4:15 pm
Reply with quote

Ya dclgen is there..but what about the index?3 indexes were there for the table.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Thu Dec 04, 2008 8:31 pm
Reply with quote

Hello,

You will need to re-create them (and anything else that was dropped - like permissions).

Is the sql source for administration not kept in some pds or other library? If not, it should be - now icon_exclaim.gif

All of your administrative sql should be stored outside the database. This not only provides a backup but also provides an easier way to clone entities as the majority of the source is already available and is (should be) known to work.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DB2

 


Similar Topics
Topic Forum Replies
No new posts Load new table with Old unload - DB2 DB2 6
No new posts Pulling a fixed number of records fro... DB2 2
No new posts Multiple table unload using INZUTILB DB2 2
No new posts Check data with Exception Table DB2 0
No new posts DROP & ALTER PARTITION-PBR DB2 0
Search our Forums:

Back to Top