Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 SQL Server Administration (2005)
 secondary server switch over

Author  Topic 

akarra
Starting Member

15 Posts

Posted - 2009-12-02 : 20:00:16
Hi,

could you please tell me the steps to be followed to activate/switchover to secondary server and make it primary. my architecture is as below
we have 2 servers and one is primary and another is secondary server
the secondary server has log shipping configured.
i know some of the steps but need a detail steps to make sure that it will be up and running as primary one.

An early response is much appreciated.
Thanks in advance.

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2009-12-02 : 20:50:24
When we used to use log shipping, to perform the switchover we'd simply disable the log shipping jobs, run a final tlog backup, copy it over to the secondary, and the restore it with recovery. The two databases are now in sync and you can now use the secondary.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog

"Let's begin with the premise that everything you've done up until this point is wrong."
Go to Top of Page

akarra
Starting Member

15 Posts

Posted - 2009-12-03 : 08:11:51
Thanks so much Tara. But if I want to check whether the users are in sync or now how can I do that. The below are the steps iam going to follows. Iam ok with all steps except the last step (9th) one how could I check and synchronize the db users.

1) stopping and disabling the transaction-log copy and restore jobs on ther secondary server
2) stopping the alerts related jobs to avoid the alerts
3) backup the active transaction log on the primary server with norecovery
5)restroing the secondary server's database with recovery
8)executing the resolve logins job
9)enabling synchronization of the logins and database user[/b]

Thanks very much in advance.
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2009-12-03 : 12:24:34
Here's what I use to sync users: http://www.sqlmag.com/article/articleid/16090/16090.html

If you have hundreds or thousands of users, I use this (custom script that I wrote): http://weblogs.sqlteam.com/tarad/archive/2008/06/24/How-to-transfer-SQL-logins-between-SQL-Server-2005-instances.aspx

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog

"Let's begin with the premise that everything you've done up until this point is wrong."
Go to Top of Page

akarra
Starting Member

15 Posts

Posted - 2009-12-03 : 12:48:23
Thanks tara.have a nice day.
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2009-12-03 : 13:50:15
You're welcome.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog

"Let's begin with the premise that everything you've done up until this point is wrong."
Go to Top of Page
   

- Advertisement -