dbTalk Databases Forums  

How to make an online database standby?

comp.databases.sybase comp.databases.sybase


Discuss How to make an online database standby? in the comp.databases.sybase forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
ranjit@sanovi.com
 
Posts: n/a

Default How to make an online database standby? - 04-13-2009 , 07:49 AM






I have a primary database that is online and a secondary database on a
different Syb server that is "online for standby_access". I am able to
dump logs from primary, copy to secondary and apply them on the
secondary db (using load transaction).

I would like to reverse the process. That is, make the primary as
standby and the secondary as online. Logs should be able to be dumped
at secondary, copied to primary and applied at primary using load
transaction.

For this, I need a way to make the primary DB which is online to
switch to standby AND also be apply to accept "load transaction". (To
make the secondary DB online from standby, is a simple "online
database" command).

Can you help? Thanks in advance.
Regards,
Ranjit

Reply With Quote
  #2  
Old   
Bret_Halford
 
Posts: n/a

Default Re: How to make an online database standby? - 04-13-2009 , 11:40 AM






On Apr 13, 6:49*am, ran... (AT) sanovi (DOT) com wrote:
Quote:
I have a primary database that is online and a secondary database on a
different Syb server that is "online for standby_access". I am able to
dump logs from primary, copy to secondary and apply them on the
secondary db (using load transaction).

I would like to reverse the process. That is, make the primary as
standby and the secondary as online. Logs should be able to be dumped
at secondary, copied to primary and applied at primary using load
transaction.

For this, I need a way to make the primary DB which is online to
switch to standby AND also be apply to accept "load transaction". (To
make the secondary DB online from standby, is a simple "online
database" command).

Can you help? Thanks in advance.
Regards,
Ranjit
Easy enough. What you would do is (ideally during down time, if there
is activity, you will lose whatever
transactions occur after the quiescent point found in step b)

a) dump primary
b) after some activity in primary (even fake activity, like creating a
table and inserting a few thousand rows),
dump tran on primary for standby access
c) load the dump of primary back into primary
d) load the tran dump of primary back into primary
e) online primary for standby_access
f) load the dump of primary into secondary
g) load the tran dump into secondary
h) online secondary
i) begin using secondary for the actual work.


Reply With Quote
  #3  
Old   
ranjit@sanovi.com
 
Posts: n/a

Default Re: How to make an online database standby? - 04-13-2009 , 11:58 PM



Bert,
Can I do this without the full database dump? That is, avoid the "dump
primary" (and also the "load" step)?

When a customer wants to do the above (as part of a weekend drill) on
a huge database (10-20GB) it is going to take a long time to do the
full database dump and full database restore.

I tested this a year ago very similar to your steps and it works.
However, I want to avoid the full dump/load.

(In MSSQL, one can simply do "restore logs from .... with standby ..."
to make the primary which is online to switch to standby mode.)

Regards,
Ranjit

Reply With Quote
  #4  
Old   
ranjit@sanovi.com
 
Posts: n/a

Default Re: How to make an online database standby? - 04-18-2009 , 04:57 AM




Quote:
(In MSSQL, one can simply do "restore logs from .... with standby ..."
to make the primary which is online to switch to standby mode.)

Regards,
Ranjit
Any possibility of doing this? In MSSQL you can dump a trans log at
primary, then LOAD the same trans log at same primary to make it the
standby. Possibly the same will work for Sybase?


Reply With Quote
Reply




Thread Tools
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.