MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Recover Tablespace issue

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Database
View previous topic :: View next topic  
Author Message
LEO
Beginner


Joined: 26 Jan 2006
Posts: 11
Topics: 4
Location: Minneapollis

PostPosted: Sun Jan 21, 2007 3:39 pm    Post subject: Recover Tablespace issue Reply with quote

Hi,

I have taken Imagecopy of the tablespace , it went thru fine. After that I did some deletions on the underlying tables in tablespace and commited the changes. But I want to restore the tables to initial state.

so I ran the recover utility to recover tablespace, it also ran fine. But the deleted rows does not appear after the recovery .

I have used simple statement : RECOVER DB.TS USING IBM ULTILITY.

PLEASE ADVISE on why I am not able to recover the deleted rows ?

Thanks
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12377
Topics: 75
Location: San Jose

PostPosted: Sun Jan 21, 2007 11:19 pm    Post subject: Reply with quote

LEO,

On your Recover statement you forgot to mention the option TOLASTCOPY /TOLASTFULLCOPY. You need to specify that to recover to the last image copy taken.

Check this link for a detailed explanation of the RECOVER utitlity with detailed explanation.

http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/DSNUGH13/2.19?DT=20020826194002

Hope this helps...

Cheers

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
LEO
Beginner


Joined: 26 Jan 2006
Posts: 11
Topics: 4
Location: Minneapollis

PostPosted: Mon Jan 22, 2007 11:14 am    Post subject: Reply with quote

Thanks Kolusu, it worked with TOLASTFULLCOPY.

But I have another doubt related to this - the above link also mentions the below example :

Example 1: Recovering a table space. The following control statement specifies that the RECOVER utility is to recover table space DSN8D81A.DSN8S81D to the current point in time.

RECOVER TABLESPACE DSN8D81A.DSN8S81D

so I was using the similar statement as mentioned above, then why is it not recoveing to the current point in time ?? - does the current point in time means it recovers using the last full image copy and applies the cganges in log also ??

Thanks
leo
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12377
Topics: 75
Location: San Jose

PostPosted: Mon Jan 22, 2007 11:36 am    Post subject: Reply with quote

Quote:

Example 1: Recovering a table space. The following control statement specifies that the RECOVER utility is to recover table space DSN8D81A.DSN8S81D to the current point in time.

RECOVER TABLESPACE DSN8D81A.DSN8S81D

so I was using the similar statement as mentioned above, then why is it not recoveing to the current point in time ?? - does the current point in time means it recovers using the last full image copy and applies the cganges in log also ??

LEO,

The current point of time is the last QUIESCE point. So you need to look up how your system is set to take QUIESCE.

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
LEO
Beginner


Joined: 26 Jan 2006
Posts: 11
Topics: 4
Location: Minneapollis

PostPosted: Mon Jan 22, 2007 3:09 pm    Post subject: Reply with quote

Kolusu,

The last QUIESCE point is taken during the last full Image copy as shown below

DSNUGUTC - QUIESCE TABLESPACE Z013225.PLANTBLH
-DMTA DSNUQUIA - QUIESCE SUCCESSFUL FOR TABLESPACE Z013225.PLANTBLH
-DMTA DSNUQUIA - QUIESCE AT RBA 0907ECB00BCA AND AT LRSN C007ABF44680

then the RECOVER TABLESPACE DB.TS should be recovered to last quiesce point .. right ? but the deleted rows after taking imagecopy are not recovered here. It is recovered only when we use TOLASTFULLCOPY. Please advise me on why is that happening ?

Thanks
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12377
Topics: 75
Location: San Jose

PostPosted: Mon Jan 22, 2007 3:15 pm    Post subject: Reply with quote

LEO,

Your DB2 system might have taken another QUIESCE after the image copy is taken. Compare the Image copy QUIESCE RBA with the RBA record from the catalog table SYSIBM.SYSCOPY. I bet they are off

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
LEO
Beginner


Joined: 26 Jan 2006
Posts: 11
Topics: 4
Location: Minneapollis

PostPosted: Mon Jan 22, 2007 3:53 pm    Post subject: Reply with quote

Both are the same as shown below. I am wondering why this is happening ?

-DMTE DSNUCASA - RECOVER OF TABLESPACE Z013225.PLANTBLH WILL PROCEED TO LOG POINT X'C007ABF44680'


== Table: SYSIBM.SYSCOPY(T1) ==============
== LineCmd ==> ___ Row Status:

START_RBA : {..4..
: C0AF48
: 07B460

Please advise

Thanks,
Leo
Back to top
View user's profile Send private message
CZerfas
Intermediate


Joined: 31 Jan 2003
Posts: 211
Topics: 8

PostPosted: Tue Jan 23, 2007 3:55 am    Post subject: Reply with quote

Well, to my eyes, CURRENT POINT OF TIME means:
Load the last full imagecopy and apply all log records created for that space after the imagecopy is taken.

Therefore your first RECOVER attempt just repeats, what you have done: Delete some of it's records.

This flavour of a RECOVERY is intended for media failure (i.e., the dasd volume is gone of the VSAM file is corrupted). Alternatives for that are POINT-IN-TIME recoveries, where the "point" is an offset in the stream of logs produced by DB2, normaly indentified by a QUIESCE point. The other alternative is a RECOVER-TO COPY, where the recover process stops after just loading the mentioned imagecopy.

regards
Christian
Back to top
View user's profile Send private message
LEO
Beginner


Joined: 26 Jan 2006
Posts: 11
Topics: 4
Location: Minneapollis

PostPosted: Tue Jan 23, 2007 9:50 am    Post subject: Reply with quote

Excellent CZerfas !!!! I got the answer. That's a wonderful explanation
Thanks Kolusu for your prompt reply!!
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Database All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group