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

Tablespace & Table Recovery


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

New User


Joined: 12 Sep 2006
Posts: 12
Location: India

PostPosted: Mon Mar 02, 2009 12:48 am
Reply with quote

Hi,

This query is in DB2 for z/os.I created a Tablespace and created two tables - Table A & TableB. Inserted 5 rows each. Took Image copy of the tablespace and dropped TableA.

I ran the Recover job but did not get back the dropped table TableA.

Whereas If I just deleted few rows from the TableB and ran the Recover Tablespace utility then the rows are restored to TableB.

Tried re creating the TableA. Didnt insert any rows. Ran the recover tablespace job but still didnt get the data back to that TableA.

Does the mean that the Recover utility recovers data only for those tables for which the records are deleted and does not recover the whole table at all?

One of my friend tried it in his DB2 for z/os(different company) and he says he dropped the table and when he ran the Recover tablespace job he got back the dropped table too.
He also used the same DB2 Ver 8.1 as mine.

Please clarify.. Should I change some parameters in my environment.
Back to top
View user's profile Send private message
sushanth bobby

Senior Member


Joined: 29 Jul 2008
Posts: 1020
Location: India

PostPosted: Mon Mar 02, 2009 12:34 pm
Reply with quote

JontyJun,

There is a lot of difference between a recovering DATA & recovering an OBJECT. Lots of things happen when you drop an object or create one.

This is DATA RECOVERY
Quote:
Whereas If I just deleted few rows from the TableB and ran the Recover Tablespace utility then the rows are restored to TableB.


Quote:
One of my friend tried it in his DB2 for z/os(different company) and he says he dropped the table and when he ran the Recover tablespace job he got back the dropped table too.

Did you compare the RECOVERY JOB & PARAMETERS involved of your shop & friends shop.

Thank You,
Sushanth Bobby
Back to top
View user's profile Send private message
jontyjun

New User


Joined: 12 Sep 2006
Posts: 12
Location: India

PostPosted: Thu Mar 05, 2009 10:02 am
Reply with quote

Compared the jobs and parms.. both r same. But I feel as per the IBM manuals the dropped object cannot be recovered just by running the recover jobs.

Firstly the OBID should be translated to the old OBID then recovered.

Thx..
Back to top
View user's profile Send private message
sushanth bobby

Senior Member


Joined: 29 Jul 2008
Posts: 1020
Location: India

PostPosted: Thu Mar 05, 2009 10:14 am
Reply with quote

Jontyjun,

In your friends place, there might be some shop specific settings for RECOVERing DB2 objects.

Thank You,
Sushanth
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 Dynamically pass table name to a sele... DB2 2
Search our Forums:

Back to Top