SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Initialize Secondary Database Tab Log Shipping


Initialize Secondary Database Tab Log Shipping

Author
Message
skyw
skyw
SSC-Enthusiastic
SSC-Enthusiastic (138 reputation)SSC-Enthusiastic (138 reputation)SSC-Enthusiastic (138 reputation)SSC-Enthusiastic (138 reputation)SSC-Enthusiastic (138 reputation)SSC-Enthusiastic (138 reputation)SSC-Enthusiastic (138 reputation)SSC-Enthusiastic (138 reputation)

Group: General Forum Members
Points: 138 Visits: 171
Hi,

I am trying to setup Log Shipping on SQL server 2005 with the secondary database initialized option. That is the third option in the Initialize Secondary Database Tab.

In this case, the backup job on the primary server is not being created.

Please suggest.

TIA
Steve Jones
Steve Jones
SSC Guru
SSC Guru (65K reputation)SSC Guru (65K reputation)SSC Guru (65K reputation)SSC Guru (65K reputation)SSC Guru (65K reputation)SSC Guru (65K reputation)SSC Guru (65K reputation)SSC Guru (65K reputation)

Group: Administrators
Points: 65517 Visits: 19118
Are you setting up log shipping on the primary server or secondary server when you do this?

Follow me on Twitter: @way0utwest
Forum Etiquette: How to post data/code on a forum to get the best help
My Blog: www.voiceofthedba.com
skyw
skyw
SSC-Enthusiastic
SSC-Enthusiastic (138 reputation)SSC-Enthusiastic (138 reputation)SSC-Enthusiastic (138 reputation)SSC-Enthusiastic (138 reputation)SSC-Enthusiastic (138 reputation)SSC-Enthusiastic (138 reputation)SSC-Enthusiastic (138 reputation)SSC-Enthusiastic (138 reputation)

Group: General Forum Members
Points: 138 Visits: 171
I am trying to setup log shipping on primary server.

Actually the backup job was created on a second atempt and it started taking transaction log backups (.trn files) after I first initially copied a Full Backup of the primary Database to the folder where the Backup_Job is supposed to take transactional backups to. I took the backup manually using script.

Please explain this option of having the secondary database already initialized.

TIA
george sibbald
george sibbald
SSChampion
SSChampion (10K reputation)SSChampion (10K reputation)SSChampion (10K reputation)SSChampion (10K reputation)SSChampion (10K reputation)SSChampion (10K reputation)SSChampion (10K reputation)SSChampion (10K reputation)

Group: General Forum Members
Points: 10734 Visits: 13687
what that means is the wizard expects you to have already restored the databse on the secondary in norecovery mode.

---------------------------------------------------------------------
skyw
skyw
SSC-Enthusiastic
SSC-Enthusiastic (138 reputation)SSC-Enthusiastic (138 reputation)SSC-Enthusiastic (138 reputation)SSC-Enthusiastic (138 reputation)SSC-Enthusiastic (138 reputation)SSC-Enthusiastic (138 reputation)SSC-Enthusiastic (138 reputation)SSC-Enthusiastic (138 reputation)

Group: General Forum Members
Points: 138 Visits: 171
Exactly.

Can you please tell me the queries that I should use to verify that the Transaction Log of the recent changes has been applied to the Secondary Server.

That is to bring the Secondary Database online assuming the Backup Folder on the Primary Server is still available, and we have access to the .trn files.

Thanks.
george sibbald
george sibbald
SSChampion
SSChampion (10K reputation)SSChampion (10K reputation)SSChampion (10K reputation)SSChampion (10K reputation)SSChampion (10K reputation)SSChampion (10K reputation)SSChampion (10K reputation)SSChampion (10K reputation)

Group: General Forum Members
Points: 10734 Visits: 13687
skyw (12/4/2008)
Exactly.

Can you please tell me the queries that I should use to verify that the Transaction Log of the recent changes has been applied to the Secondary Server.

check the history of the lsrestore job or check the SQL errorlog to see last tranlog applied

That is to bring the Secondary Database online assuming the Backup Folder on the Primary Server is still available, and we have access to the .trn files.

when all logs avaialble to you have been restored, run this command to bring database online

restore database dbname with recovery

Only do this if you are failing over though, once database bought online you cannot restore any more transaction log backups.

you may also need to synch your users at this point if they are orphaned (see sp_change_users_login)

Thanks.


---------------------------------------------------------------------
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search