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 > Sybase > how to rollback database in Sybase

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 05-20-11, 03:26
shreedhar_tase shreedhar_tase is offline
Registered User
 
Join Date: Feb 2004
Location: india
Posts: 45
how to rollforward database in Sybase

Hi
I am half hour log backups scheduled. My problem is as following
Suppose I take a backup in following sequence
6:00 Full backup
6:30 log backup
7:00 log backup
7:30 log backup
8:00 log backup
8:30 log backup

Now I do recovery using until time up to 7:45.
My question is, is it possible in Sybase to do recovery from 7:45 to 8:15 only? In db2 we can do it.

Last edited by shreedhar_tase; 05-20-11 at 07:04.
Reply With Quote
  #2 (permalink)  
Old 05-23-11, 02:30
shreedhar_tase shreedhar_tase is offline
Registered User
 
Join Date: Feb 2004
Location: india
Posts: 45
39 views and not a single reply ?? Does it possible at all in Sybase?
Reply With Quote
  #3 (permalink)  
Old 05-23-11, 03:24
Martijnvs Martijnvs is offline
Registered User
 
Join Date: Jan 2004
Location: The Hague/Utrecht, NL
Posts: 415
It is possible, but I'd have to look up the details of this Point In Time Recovery in the documentation.
__________________
I'm not crazy, I'm an aeroplane!
Reply With Quote
  #4 (permalink)  
Old 05-23-11, 05:19
shreedhar_tase shreedhar_tase is offline
Registered User
 
Join Date: Feb 2004
Location: india
Posts: 45
thanks for replying. Please let me know once you find it. Or if you can point me to any links/pdfs/docs which you think can solve my issue, then that will be great.
Reply With Quote
  #5 (permalink)  
Old 05-23-11, 06:48
Martijnvs Martijnvs is offline
Registered User
 
Join Date: Jan 2004
Location: The Hague/Utrecht, NL
Posts: 415
Sybase has an extensive collection of documentation. I'm sure there's somethign in it you can use.
Sybase.com >> Support >> Product Documentation >> ASE >> search for appropiate version, and look for the chapters on recovery/point in time recovery.
__________________
I'm not crazy, I'm an aeroplane!
Reply With Quote
  #6 (permalink)  
Old 05-30-11, 08:59
ishu.cs ishu.cs is offline
Registered User
 
Join Date: Mar 2008
Posts: 59
YOu question is a bit unclear. If your requirement is to recover the data upto 8:15
then you can load the full dump and the apply the tran dumps till 8:00 and then you can apply the tran last tran dump taken on 8:30 using until time option

Syntax is load tran <db_name> from <tran dump file name> with until_time=<the time till when youi need the database to be loaded>

Please follow the below link for more information

SyBooks Online
Reply With Quote
  #7 (permalink)  
Old 06-06-11, 09:22
shreedhar_tase shreedhar_tase is offline
Registered User
 
Join Date: Feb 2004
Location: india
Posts: 45
Quote:
Originally Posted by ishu.cs View Post
YOu question is a bit unclear. If your requirement is to recover the data upto 8:15
then you can load the full dump and the apply the tran dumps till 8:00 and then you can apply the tran last tran dump taken on 8:30 using until time option

Syntax is load tran <db_name> from <tran dump file name> with until_time=<the time till when youi need the database to be loaded>

Please follow the below link for more information

SyBooks Online
What you have mentioned is correct my question is as follows
Lets say I did recovery up to 8:15 using 'until time ' clause. Now Suppose I want to do recovery from 8:15 to 8:25 with out following whole procedure (full +log recovery). Is there any way in Sybase for doing that?
Reply With Quote
  #8 (permalink)  
Old 08-19-11, 01:35
prakashbuz prakashbuz is offline
Registered User
 
Join Date: Sep 2008
Posts: 40
I dont thik u can do so..
once u have made the db online then u canot apply tha transaction dump, u just have to load the full dump and then the consecutive dumps..
hope i am not wrong...
Reply With Quote
  #9 (permalink)  
Old 08-19-11, 01:42
prakashbuz prakashbuz is offline
Registered User
 
Join Date: Sep 2008
Posts: 40
Hope fully u wil not be allowed to load the same transaction dump twice...
Here in your scanario u will have to load the transaction dump genrated by 8.30 AM twice,which will not be allowed, so you have to go with whole procedure (full +log recovery)
Reply With Quote
  #10 (permalink)  
Old 08-19-11, 06:05
ishu.cs ishu.cs is offline
Registered User
 
Join Date: Mar 2008
Posts: 59
Its not possible in sybase, what I understand is that you had recovered the database till 7:45 using until time option, now you want to move forward from this point and want to recover the database till 8:15, that's not possible in sybase.
You have to start from full backup load at 6 PM, load the tran dumps till 8:00, then load 8:30 transaction using untill time option.

Quote:
Originally Posted by shreedhar_tase View Post
Hi
I am half hour log backups scheduled. My problem is as following
Suppose I take a backup in following sequence
6:00 Full backup
6:30 log backup
7:00 log backup
7:30 log backup
8:00 log backup
8:30 log backup

Now I do recovery using until time up to 7:45.
My question is, is it possible in Sybase to do recovery from 7:45 to 8:15 only? In db2 we can do it.
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