Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Tablespace & Table Recovery

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
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    Post subject: Tablespace & Table Recovery
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: 1013
Location: India

PostPosted: Mon Mar 02, 2009 12:34 pm    Post subject:
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    Post subject:
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: 1013
Location: India

PostPosted: Thu Mar 05, 2009 10:14 am    Post subject:
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    IBMMAINFRAMES.com Support Forums -> DB2 All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts SQL query to run through list of valu... Ni3-db2 DB2 14 Wed Dec 14, 2016 9:52 am
No new posts Need Rexx Program to Load in to DB2 T... Hareesh Verma CLIST & REXX 22 Tue Sep 20, 2016 2:59 pm
No new posts Command UNIQUE CONSTRAINT on any tabl... rohanthengal DB2 2 Thu Aug 18, 2016 3:48 pm
No new posts Updating online Db2 table kishpra DB2 3 Fri Aug 12, 2016 2:44 pm
No new posts Image Copy of a tablespace that conta... Robin Sulsona DB2 4 Thu Jun 02, 2016 1:47 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us