Friday, March 30, 2012
Log Shipping with SQL Server 2000 STD Edition?
I just get into a sql server 2000 (std edition) environment, and they will
stay with the std edition for a while. Here are some questions about the Log
shipping:
1. Does SQL server 2000 STD version support Log Shipping?
(I know EE Edition and Developer Edition do.)
2. If tasks like the Transaction Log backup, transfering log from primary
server to secondary server, restore the log from the standby server were all
handled by scheduled scripts, and the syslogins was transfered by DTS, will
this approach work in a SQL server 2k std environment? Will the logins
resolving process work?
3. How can we setup the Log shipping monitor in SQL 2000 STD server?
Your expertise confirming information and any possible instruction documents
will be appreciated.
FD
Hi,
(a) Log-shipping is not supported in standard version of SQL server. However
I have read that basic log-shipping is supported in the standard version,
didn't get chance to get to know more about this.
(b) IMO, this approach should work, as long as the database is in the
NORECOVERY mode in the standby server.
HTH
Yogish
|||The Enterprise Edition (and dev) just have a wizard to set
it all up for you. It doesn't mean you can't write your own
version on any edition. You can find sample scripts in the
SQL Server Resource Kit - I think it's called Simple Log
Shipper. You can also find examples of implementations of
custom log shipping routines on various web sites.
You'll need to create your own method for monitoring log
shipping.
-Sue
On Wed, 16 Mar 2005 14:43:07 -0800, "Frank"
<Frank@.discussions.microsoft.com> wrote:
>Hi SQL Server MVPs,
>I just get into a sql server 2000 (std edition) environment, and they will
>stay with the std edition for a while. Here are some questions about the Log
>shipping:
>1. Does SQL server 2000 STD version support Log Shipping?
> (I know EE Edition and Developer Edition do.)
>2. If tasks like the Transaction Log backup, transfering log from primary
>server to secondary server, restore the log from the standby server were all
>handled by scheduled scripts, and the syslogins was transfered by DTS, will
>this approach work in a SQL server 2k std environment? Will the logins
>resolving process work?
>3. How can we setup the Log shipping monitor in SQL 2000 STD server?
>Your expertise confirming information and any possible instruction documents
>will be appreciated.
>FD
|||1) Yes. You have to set it up yourself, however.
2) Yes and Yes. By the way, you can move the logins using this method:
HOW TO: Transfer Logins and Passwords Between Instances of SQL Server
http://www.support.microsoft.com/?id=246133
3) To monitor the process you could use the jobs that perform the log
backups and restores. Have them email you if there is a failure. This is a
great way to email from SQL Server: XPSMTP --
http://sqldev.net/xp/xpsmtp.htm
You may find these KB articles helpful:
314515 INF: Frequently Asked Questions - SQL Server 2000 - Log Shipping
http://support.microsoft.com/?id=314515
323135 INF: Microsoft SQL Server 2000 - How to Set Up Log Shipping (White
Paper)
http://support.microsoft.com/?id=323135
325220 Support WebCast: Microsoft SQL Server 2000 Log Shipping
http://support.microsoft.com/?id=325220
821786 Support WebCast: Microsoft SQL Server 2000: Using Log Shipping
http://support.microsoft.com/?id=821786
321247 HOW TO: Configure Security for Log Shipping
http://support.microsoft.com/?id=321247
329133 INF: Troubleshooting SQL Server 2000 Log Shipping "Out of Sync"
Errors
http://support.microsoft.com/?id=329133
Keith
"Frank" <Frank@.discussions.microsoft.com> wrote in message
news:BBB0D86B-D4C9-4FFA-A496-C60FE8DEE0D3@.microsoft.com...
> Hi SQL Server MVPs,
> I just get into a sql server 2000 (std edition) environment, and they will
> stay with the std edition for a while. Here are some questions about the
Log
> shipping:
> 1. Does SQL server 2000 STD version support Log Shipping?
> (I know EE Edition and Developer Edition do.)
> 2. If tasks like the Transaction Log backup, transfering log from primary
> server to secondary server, restore the log from the standby server were
all
> handled by scheduled scripts, and the syslogins was transfered by DTS,
will
> this approach work in a SQL server 2k std environment? Will the logins
> resolving process work?
> 3. How can we setup the Log shipping monitor in SQL 2000 STD server?
> Your expertise confirming information and any possible instruction
documents
> will be appreciated.
> FD
|||All,
Thanks for the confirming information. I will start working in our testing
environment.
Frank
"Frank" wrote:
> Hi SQL Server MVPs,
> I just get into a sql server 2000 (std edition) environment, and they will
> stay with the std edition for a while. Here are some questions about the Log
> shipping:
> 1. Does SQL server 2000 STD version support Log Shipping?
> (I know EE Edition and Developer Edition do.)
> 2. If tasks like the Transaction Log backup, transfering log from primary
> server to secondary server, restore the log from the standby server were all
> handled by scheduled scripts, and the syslogins was transfered by DTS, will
> this approach work in a SQL server 2k std environment? Will the logins
> resolving process work?
> 3. How can we setup the Log shipping monitor in SQL 2000 STD server?
> Your expertise confirming information and any possible instruction documents
> will be appreciated.
> FD
sql
Log Shipping with SQL Server 2000 STD Edition?
I just get into a sql server 2000 (std edition) environment, and they will
stay with the std edition for a while. Here are some questions about the Log
shipping:
1. Does SQL server 2000 STD version support Log Shipping?
(I know EE Edition and Developer Edition do.)
2. If tasks like the Transaction Log backup, transfering log from primary
server to secondary server, restore the log from the standby server were all
handled by scheduled scripts, and the syslogins was transfered by DTS, will
this approach work in a SQL server 2k std environment? Will the logins
resolving process work?
3. How can we setup the Log shipping monitor in SQL 2000 STD server?
Your expertise confirming information and any possible instruction documents
will be appreciated.
FDHi,
(a) Log-shipping is not supported in standard version of SQL server. However
I have read that basic log-shipping is supported in the standard version,
didn't get chance to get to know more about this.
(b) IMO, this approach should work, as long as the database is in the
NORECOVERY mode in the standby server.
HTH
Yogish|||The Enterprise Edition (and dev) just have a wizard to set
it all up for you. It doesn't mean you can't write your own
version on any edition. You can find sample scripts in the
SQL Server Resource Kit - I think it's called Simple Log
Shipper. You can also find examples of implementations of
custom log shipping routines on various web sites.
You'll need to create your own method for monitoring log
shipping.
-Sue
On Wed, 16 Mar 2005 14:43:07 -0800, "Frank"
<Frank@.discussions.microsoft.com> wrote:
>Hi SQL Server MVPs,
>I just get into a sql server 2000 (std edition) environment, and they will
>stay with the std edition for a while. Here are some questions about the Lo
g
>shipping:
>1. Does SQL server 2000 STD version support Log Shipping?
> (I know EE Edition and Developer Edition do.)
>2. If tasks like the Transaction Log backup, transfering log from primary
>server to secondary server, restore the log from the standby server were al
l
>handled by scheduled scripts, and the syslogins was transfered by DTS, will
>this approach work in a SQL server 2k std environment? Will the logins
>resolving process work?
>3. How can we setup the Log shipping monitor in SQL 2000 STD server?
>Your expertise confirming information and any possible instruction document
s
>will be appreciated.
>FD|||1) Yes. You have to set it up yourself, however.
2) Yes and Yes. By the way, you can move the logins using this method:
HOW TO: Transfer Logins and Passwords Between Instances of SQL Server
http://www.support.microsoft.com/?id=246133
3) To monitor the process you could use the jobs that perform the log
backups and restores. Have them email you if there is a failure. This is a
great way to email from SQL Server: XPSMTP --
http://sqldev.net/xp/xpsmtp.htm
You may find these KB articles helpful:
314515 INF: Frequently Asked Questions - SQL Server 2000 - Log Shipping
http://support.microsoft.com/?id=314515
323135 INF: Microsoft SQL Server 2000 - How to Set Up Log Shipping (White
Paper)
http://support.microsoft.com/?id=323135
325220 Support WebCast: Microsoft SQL Server 2000 Log Shipping
http://support.microsoft.com/?id=325220
821786 Support WebCast: Microsoft SQL Server 2000: Using Log Shipping
http://support.microsoft.com/?id=821786
321247 HOW TO: Configure Security for Log Shipping
http://support.microsoft.com/?id=321247
329133 INF: Troubleshooting SQL Server 2000 Log Shipping "Out of Sync"
Errors
http://support.microsoft.com/?id=329133
Keith
"Frank" <Frank@.discussions.microsoft.com> wrote in message
news:BBB0D86B-D4C9-4FFA-A496-C60FE8DEE0D3@.microsoft.com...
> Hi SQL Server MVPs,
> I just get into a sql server 2000 (std edition) environment, and they will
> stay with the std edition for a while. Here are some questions about the
Log
> shipping:
> 1. Does SQL server 2000 STD version support Log Shipping?
> (I know EE Edition and Developer Edition do.)
> 2. If tasks like the Transaction Log backup, transfering log from primary
> server to secondary server, restore the log from the standby server were
all
> handled by scheduled scripts, and the syslogins was transfered by DTS,
will
> this approach work in a SQL server 2k std environment? Will the logins
> resolving process work?
> 3. How can we setup the Log shipping monitor in SQL 2000 STD server?
> Your expertise confirming information and any possible instruction
documents
> will be appreciated.
> FD|||All,
Thanks for the confirming information. I will start working in our testing
environment.
Frank
"Frank" wrote:
> Hi SQL Server MVPs,
> I just get into a sql server 2000 (std edition) environment, and they will
> stay with the std edition for a while. Here are some questions about the L
og
> shipping:
> 1. Does SQL server 2000 STD version support Log Shipping?
> (I know EE Edition and Developer Edition do.)
> 2. If tasks like the Transaction Log backup, transfering log from primary
> server to secondary server, restore the log from the standby server were a
ll
> handled by scheduled scripts, and the syslogins was transfered by DTS, wil
l
> this approach work in a SQL server 2k std environment? Will the logins
> resolving process work?
> 3. How can we setup the Log shipping monitor in SQL 2000 STD server?
> Your expertise confirming information and any possible instruction documen
ts
> will be appreciated.
> FD
Log Shipping with SQL Server 2000 STD Edition?
I just get into a sql server 2000 (std edition) environment, and they will
stay with the std edition for a while. Here are some questions about the Log
shipping:
1. Does SQL server 2000 STD version support Log Shipping?
(I know EE Edition and Developer Edition do.)
2. If tasks like the Transaction Log backup, transfering log from primary
server to secondary server, restore the log from the standby server were all
handled by scheduled scripts, and the syslogins was transfered by DTS, will
this approach work in a SQL server 2k std environment? Will the logins
resolving process work?
3. How can we setup the Log shipping monitor in SQL 2000 STD server?
Your expertise confirming information and any possible instruction documents
will be appreciated.
FDHi,
(a) Log-shipping is not supported in standard version of SQL server. However
I have read that basic log-shipping is supported in the standard version,
didn't get chance to get to know more about this.
(b) IMO, this approach should work, as long as the database is in the
NORECOVERY mode in the standby server.
HTH
Yogish|||The Enterprise Edition (and dev) just have a wizard to set
it all up for you. It doesn't mean you can't write your own
version on any edition. You can find sample scripts in the
SQL Server Resource Kit - I think it's called Simple Log
Shipper. You can also find examples of implementations of
custom log shipping routines on various web sites.
You'll need to create your own method for monitoring log
shipping.
-Sue
On Wed, 16 Mar 2005 14:43:07 -0800, "Frank"
<Frank@.discussions.microsoft.com> wrote:
>Hi SQL Server MVPs,
>I just get into a sql server 2000 (std edition) environment, and they will
>stay with the std edition for a while. Here are some questions about the Log
>shipping:
>1. Does SQL server 2000 STD version support Log Shipping?
> (I know EE Edition and Developer Edition do.)
>2. If tasks like the Transaction Log backup, transfering log from primary
>server to secondary server, restore the log from the standby server were all
>handled by scheduled scripts, and the syslogins was transfered by DTS, will
>this approach work in a SQL server 2k std environment? Will the logins
>resolving process work?
>3. How can we setup the Log shipping monitor in SQL 2000 STD server?
>Your expertise confirming information and any possible instruction documents
>will be appreciated.
>FD|||1) Yes. You have to set it up yourself, however.
2) Yes and Yes. By the way, you can move the logins using this method:
HOW TO: Transfer Logins and Passwords Between Instances of SQL Server
http://www.support.microsoft.com/?id=246133
3) To monitor the process you could use the jobs that perform the log
backups and restores. Have them email you if there is a failure. This is a
great way to email from SQL Server: XPSMTP --
http://sqldev.net/xp/xpsmtp.htm
You may find these KB articles helpful:
314515 INF: Frequently Asked Questions - SQL Server 2000 - Log Shipping
http://support.microsoft.com/?id=314515
323135 INF: Microsoft SQL Server 2000 - How to Set Up Log Shipping (White
Paper)
http://support.microsoft.com/?id=323135
325220 Support WebCast: Microsoft SQL Server 2000 Log Shipping
http://support.microsoft.com/?id=325220
821786 Support WebCast: Microsoft SQL Server 2000: Using Log Shipping
http://support.microsoft.com/?id=821786
321247 HOW TO: Configure Security for Log Shipping
http://support.microsoft.com/?id=321247
329133 INF: Troubleshooting SQL Server 2000 Log Shipping "Out of Sync"
Errors
http://support.microsoft.com/?id=329133
--
Keith
"Frank" <Frank@.discussions.microsoft.com> wrote in message
news:BBB0D86B-D4C9-4FFA-A496-C60FE8DEE0D3@.microsoft.com...
> Hi SQL Server MVPs,
> I just get into a sql server 2000 (std edition) environment, and they will
> stay with the std edition for a while. Here are some questions about the
Log
> shipping:
> 1. Does SQL server 2000 STD version support Log Shipping?
> (I know EE Edition and Developer Edition do.)
> 2. If tasks like the Transaction Log backup, transfering log from primary
> server to secondary server, restore the log from the standby server were
all
> handled by scheduled scripts, and the syslogins was transfered by DTS,
will
> this approach work in a SQL server 2k std environment? Will the logins
> resolving process work?
> 3. How can we setup the Log shipping monitor in SQL 2000 STD server?
> Your expertise confirming information and any possible instruction
documents
> will be appreciated.
> FD|||All,
Thanks for the confirming information. I will start working in our testing
environment.
Frank
"Frank" wrote:
> Hi SQL Server MVPs,
> I just get into a sql server 2000 (std edition) environment, and they will
> stay with the std edition for a while. Here are some questions about the Log
> shipping:
> 1. Does SQL server 2000 STD version support Log Shipping?
> (I know EE Edition and Developer Edition do.)
> 2. If tasks like the Transaction Log backup, transfering log from primary
> server to secondary server, restore the log from the standby server were all
> handled by scheduled scripts, and the syslogins was transfered by DTS, will
> this approach work in a SQL server 2k std environment? Will the logins
> resolving process work?
> 3. How can we setup the Log shipping monitor in SQL 2000 STD server?
> Your expertise confirming information and any possible instruction documents
> will be appreciated.
> FD
Log Shipping vs. Clustered Environment
Thanks,
MarcMarc,
I think it depends on what you want to achieve. Log Shipping is useful if you want use a copy of your primary database for read-only queries as it reduces the load on your primary database, although this is not possible if you run Log Shipping continuously as the log shipping restore job requires that there be no connections in the database being log shipped to.
Also, you are building in tolerance against data loss - assuming that the database you are log shipping to is on a different physical disk or server.
You have to have a database in Full or Bulk Logged recovery mode before you can log ship it.
If you have a lot of inserts, updates and deletes occuring on your log shipped database, the size of the log shipping backups and restores can be considerably - something to think about if your network bandwidth is low. In this case you may want to look at using 3rd party log shipping software such as Quest Litespeed which can compress the backups.
Clustering is more of a protection against O/S failures or server failures. When the SQL Server service on the active node fails, is terminated unexpectedly or is shutdown, that is detected by the cluster service and it fails SQL Server (and any other cluster-aware services) over to the inactive node which then becomes the active node.
In SQL 2005 you also have the option of Mirroring which can be combined with clustering...although Microsoft didn't initially support the use of mirroring in a Production environment (so why have it as a feature you may ask!). Not sure whether it is now supported since SP2.
Regards
Lempster|||Lempster -
Can you tell me more about using clustering with mirroring. I'm exploring all of the options (clustering, mirroring, log shipping and replication) and am seeing the benefits of each. I can image the benefit of using clustering with mirroring, but I can't get my head around the actual implementation.
The clusters have to be pointing to a shared storage device. How do you then set it up to mirror? If you have a cluster [Cluster] with [Box A] and [Box B]. Can you set the mirror up to point to the [Cluster] as the principal so that it's not really worried about the individual boxes?
During my research on mirroring, it looks like Microsoft started supporting mirroring with SP1.
Thanks,
Marc|||Marc,
I've not implemented 'clustered mirroring' (for want of a better term), but there's a fair bit about it in SQL 2005 BOL. Essentially, you'd have the principal and mirror on different clusters. The following is taken from BOL:
"The principal server and mirror server both reside on clusters, with the principal server running on the virtual server of one cluster and the mirror server running on the virtual server of a different cluster.
If a cluster failover makes a principal server temporarily unavailable, client connections are disconnected from the database. After the cluster failover completes, clients can reconnect to the principal server on the same cluster or on a different cluster (or on an unclustered computer), depending on the operating mode."
Regards
Lempster
Log Shipping Transaction Logs.
We currently have a couple a large Databases running on SQL 2000 SP3 Clustered Windows 2000 SP3 environment.
Log Shipping is enabled for both databases shipping to a Standalone SQL 2000 SP3 Windows 2000 SP3 box.
Log Shipping occurs every 15 mins with the Transaction Files on average being no more than 500KB in size. However, every now and then a Transaction Log comes through and it can be as big as 3.52GB.
Not sure why this is happening. Anyone got any ideas?
Regards
Paul TowlerIs this after substantial activity or reindexing?|||i think auto shrink or some other job is enabled
if iam right, the auto shrink or job gets activated and the step goes thru
which will obviously create transaction file with huge size.|||Thanks for your replies.
There is a Job to Optimise the Database which does re-index the database. I presume all the indexing changes count as changes and therefore shipped as one big Transacton file.
Hopefully there is a way to prevent these hugh Transaction Files without turning off the indexing job.
Regards
Paul Towlersql
Monday, March 19, 2012
Log shipping in workgroup environment
I have two SQL servers that I am trying to setup log shipping on. I am unable to get the restore of the initial database to work on the standby server. It gets a "unable to open file" error when trying to do the restore.
I have created a "syncaccount" user on both machines, and both have same password. I have used configuration manager to set the user/password for the agents on both servers.
I have given syncaccount admin access. I have added syncaccount to the shares on both servers.
Wy am I getting this error.
Does anyone else think it is VERY difficult to make this function work.
Just check the paths where your backup file exist ........and ensure there is modify privileges for sql agent service in the that path.the refer the below link for configuring log shipping in sql 2005,
http://dumthata.com/sqlchn/articles/lship.htm
this is surely a permission issue as it clearly states that "unable to open the file".........always ensure that theres modify privileges for the shared folder in the primary for sql agent account of secondary server......then only copy job will succeed.........also the folder(in secondary server) in which the backups from primary are copied ,the sql service account in secondary shud have modify privileges in this folder in secondary server........ensure it.......
thanxs
|||I have checked and recheked this over and over again. It doesn't work.
I see in the server error log that the secondary server is having trouble opening the backup file.
I have created a user account on both machines, with identical user name and passwords, and given full access on both sides. I setup the SQL Server agent on both sides to use this logon.
I can connect to the share (where the backup resides) on the primary from the secondary server using the account name I created. This works fine, which would indicate that the service account can indeed access the share in question.
Something else is wrong.
This is a workgroup network environment. There is no domain logon. I read about creating the user accounts while researching this online.
|||ok fine you try to restore the backup file manually using with standby option.........and then configure log shipping......if that is not possible check the integrity of the backup file by,
restore verifyonly from disk='Path of backup\backup.bak'
|||Why won't the product work the way it is documented? Why do I have to do something different?
Why is it so difficult to make a product that works?
|||Dave, we cant say 100% that there is a defect with the product......just ensure that everything from your end is perfect and restore it manually as i said earlier........|||I am trying to follow documentation supplied with the product, and also third party books that describe how to set this up and make it work. I appreciate the fact that you are giving me alternatives, but lets just say that your instructions are incomplete. I am not a sql server expert, nor should I have to be to set this up. I really want this to work the way it is supposed to. Is that asking too much?
I tried your suggestion. The restore worked. Log shipping does not appear to be. The database is in standby.
I have about 20-25 databases that I want to setup log shipping on between the servers. All I ask is that the product work. It doesn't! (Like so many other MicroSoft products).
|||Dave,pls let us know the exact error you are facing while configuring the log shipping...are you not able to apply the tran logs through the restore job ? ? ?.........Log shipping in workgroup environment
I have two SQL servers that I am trying to setup log shipping on. I am unable to get the restore of the initial database to work on the standby server. It gets a "unable to open file" error when trying to do the restore.
I have created a "syncaccount" user on both machines, and both have same password. I have used configuration manager to set the user/password for the agents on both servers.
I have given syncaccount admin access. I have added syncaccount to the shares on both servers.
Wy am I getting this error.
Does anyone else think it is VERY difficult to make this function work.
Just check the paths where your backup file exist ........and ensure there is modify privileges for sql agent service in the that path.the refer the below link for configuring log shipping in sql 2005,
http://dumthata.com/sqlchn/articles/lship.htm
this is surely a permission issue as it clearly states that "unable to open the file".........always ensure that theres modify privileges for the shared folder in the primary for sql agent account of secondary server......then only copy job will succeed.........also the folder(in secondary server) in which the backups from primary are copied ,the sql service account in secondary shud have modify privileges in this folder in secondary server........ensure it.......
thanxs
|||I have checked and recheked this over and over again. It doesn't work.
I see in the server error log that the secondary server is having trouble opening the backup file.
I have created a user account on both machines, with identical user name and passwords, and given full access on both sides. I setup the SQL Server agent on both sides to use this logon.
I can connect to the share (where the backup resides) on the primary from the secondary server using the account name I created. This works fine, which would indicate that the service account can indeed access the share in question.
Something else is wrong.
This is a workgroup network environment. There is no domain logon. I read about creating the user accounts while researching this online.
|||ok fine you try to restore the backup file manually using with standby option.........and then configure log shipping......if that is not possible check the integrity of the backup file by,
restore verifyonly from disk='Path of backup\backup.bak'
|||Why won't the product work the way it is documented? Why do I have to do something different?
Why is it so difficult to make a product that works?
|||Dave, we cant say 100% that there is a defect with the product......just ensure that everything from your end is perfect and restore it manually as i said earlier........|||I am trying to follow documentation supplied with the product, and also third party books that describe how to set this up and make it work. I appreciate the fact that you are giving me alternatives, but lets just say that your instructions are incomplete. I am not a sql server expert, nor should I have to be to set this up. I really want this to work the way it is supposed to. Is that asking too much?
I tried your suggestion. The restore worked. Log shipping does not appear to be. The database is in standby.
I have about 20-25 databases that I want to setup log shipping on between the servers. All I ask is that the product work. It doesn't! (Like so many other MicroSoft products).
|||Dave,pls let us know the exact error you are facing while configuring the log shipping...are you not able to apply the tran logs through the restore job ? ? ?.........Log shipping in SQL STD
2000 Standard environment.
ThanksHere's one example:
http://www.sqlservercentral.com/columnists/ckempster/customlogshipping.asp
--
HTH,
Vyas, MVP (SQL Server)
SQL Server Articles and Code Samples @. http://vyaskn.tripod.com/
"Peretz Stern" <peretzstern@.optonline.net> wrote in message
news:O58NIYWnFHA.1372@.TK2MSFTNGP10.phx.gbl...
> I'm looking for some docs to instruct me how to setup log shipping in a
> SQL 2000 Standard environment.
>
> Thanks
>
Friday, March 9, 2012
Log Shipping Failover / Failback Question
Hello all,
I'm about to setup Log Shipping in our SQL Server 2000 environment. I will have the primary server, one standby server, and the witness server in this setup. I understand the process of failover and the stored procedures needed to make this happen, but my main question is about failback. Once the standby server has assumed the primary role, will log shipping be automatically configured to start flowing from the new primary server to the old primary server, or will I have to go back and setup log shipping from the new primary server to the old primary server?
Thanks for any help or insight you can provide on this subject!
Eric
After some setup, you can swap roles fairly easily.
BooksOnline has a good section describing this setup:
ms-help://MS.SQLCC.v9/MS.SQLSVR.v9.en/udb9/html/2d7cc40a-47e8-4419-9b2b-7c69f700e806.htm
|||
Thanks for the link Kevin! Since this is for SQL Server 2005, does the same hold true for SQL Server 2000? That's the environment that I will be working in.
Eric
|||I'm sorry. Unfortunately, log shipping changed significantly between SQL 2000 & 2005.
I'm looking for someone who can walk me through the SQL 2000 scenario. There was a wizard that assisted with much of it in Enterprise Edition. Which edition are you running?
|||I'm also running Enterprise Edition .. specifically 8.00.2187
Eric
|||You can find a description of doing this in SQL 2000 in the SQL 2000 BooksOnline under
Log Shipping ->role changes
|||Thanks Kevin! That answers my question.
Eric
Wednesday, March 7, 2012
Log Shipping between SQL 2005 and SQL 2000
We have an environment where 3 SQL 2000 servers exist; one production servers and two standby servers that receive logs via log shipping. Everything works fine and it is stable. My client wants to get a new 64 bit server and run SQL 2005 64 bit version for the production box. Can we still do log shipping with the two remaining SQL 2000 boxes or do they all have to be on the same version and bit version?
Thanks
Bill
moving to HA forum.|||You can ship from 2000 to 2005 (uplevel) but not from 2005 to 2000 (downlevel) because the log format is slightly different in 2005.
Thanks
|||Hey Paul,
When applying a transaction log built from a SQL2000 (version 80) instance to SQL 2005 instance but the database is in a (version 80) configuration I still get the following error:
This backup cannot be restored using WITH STANDBY because a database upgrade is needed. Reissue the RESTORE without WITH STANDBY
Msg 3013, Level 16, State 1, Line 1
RESTORE LOG is terminating abnormally.
Though if I were to restore the FULL backup to the SQL 2005 instance in with RECOVEY option I can then create a backup of it then restore it in STANDBY mode ... issue here is now I can apply any transaction logs, I then get this error
This backup set cannot be applied because it is on a recovery path that is inconsistent with the database. The recovery path is the sequence of data and log backups that have brought the database to a particular recovery point. Find a compatible backup to restore, or restore the rest of the database to match a recovery point within this backup set, which will restore the database to a different point in time. For more information about recovery paths, see SQL Server Books Online.
Msg 3013, Level 16, State 1, Line 1
RESTORE LOG is terminating abnormally.
Any thoughts as to how to apply a 2000 transaction log to a 2005 instance and leave the database in STANDBY mode?
Thanks
Eric
Unfortunately, although you can maintain log shipping from SQL 2000 to a SQL 2005 instance as long as the target database is never recovered and converted to 90 format, you cannot have the target database in standby mode.
Putting a database in standby mode implies that you are recovering the database and writing the uncommitted changes out to the standby file. The last stage of recovery when a 80-format database is on a SQL 2005 instance is to upgrade the format to 90. It just doesn't logically make sense to have a 90-format database with a standby file of 80-format changes.
As soon as the database recovers, it will be in 90 (SQL 2005) format. A database in 90 format cannot have 80 format logs applied to it because as Paul points out, the physical format is different.
Log Shipping between SQL 2005 and SQL 2000
We have an environment where 3 SQL 2000 servers exist; one production servers and two standby servers that receive logs via log shipping. Everything works fine and it is stable. My client wants to get a new 64 bit server and run SQL 2005 64 bit version for the production box. Can we still do log shipping with the two remaining SQL 2000 boxes or do they all have to be on the same version and bit version?
Thanks
Bill
moving to HA forum.|||You can ship from 2000 to 2005 (uplevel) but not from 2005 to 2000 (downlevel) because the log format is slightly different in 2005.
Thanks
|||Hey Paul,
When applying a transaction log built from a SQL2000 (version 80) instance to SQL 2005 instance but the database is in a (version 80) configuration I still get the following error:
This backup cannot be restored using WITH STANDBY because a database upgrade is needed. Reissue the RESTORE without WITH STANDBY
Msg 3013, Level 16, State 1, Line 1
RESTORE LOG is terminating abnormally.
Though if I were to restore the FULL backup to the SQL 2005 instance in with RECOVEY option I can then create a backup of it then restore it in STANDBY mode ... issue here is now I can apply any transaction logs, I then get this error
This backup set cannot be applied because it is on a recovery path that is inconsistent with the database. The recovery path is the sequence of data and log backups that have brought the database to a particular recovery point. Find a compatible backup to restore, or restore the rest of the database to match a recovery point within this backup set, which will restore the database to a different point in time. For more information about recovery paths, see SQL Server Books Online.
Msg 3013, Level 16, State 1, Line 1
RESTORE LOG is terminating abnormally.
Any thoughts as to how to apply a 2000 transaction log to a 2005 instance and leave the database in STANDBY mode?
Thanks
Eric
Unfortunately, although you can maintain log shipping from SQL 2000 to a SQL 2005 instance as long as the target database is never recovered and converted to 90 format, you cannot have the target database in standby mode.
Putting a database in standby mode implies that you are recovering the database and writing the uncommitted changes out to the standby file. The last stage of recovery when a 80-format database is on a SQL 2005 instance is to upgrade the format to 90. It just doesn't logically make sense to have a 90-format database with a standby file of 80-format changes.
As soon as the database recovers, it will be in 90 (SQL 2005) format. A database in 90 format cannot have 80 format logs applied to it because as Paul points out, the physical format is different.
Monday, February 20, 2012
Log Shipping Across Domains
log shipping to ship data out to a reporting server. For various
reasons, this reporting server lives in another Win2k domain, outside
of the OLTP environment, and the two are separated by a firewall.
We don't want to set up any trusts between the domain, so what we're
trying to achieve is log shipping across two non-trusting domains.
Testing so far fails upon 'initializing destination', presumably
because the source server(s) can't write to the share on the
desintation server.
Does anyone know if what we're trying to achieve is possible, or if
there might be another solution (using something like ftp, for
example)?
Any thoughts or suggestions great appreciated,
GlenI would go for "rolling your own" version of Log Shipping (it would not be
that difficult) and perhaps using FTP to transfer the logs. Can you do
that?
Here's one article on the subject.
http://www.sql-server-performance.c...g_shipping.asp. I'd
google for more.
hth
Eric
<gsmithnospam@.cafonline.org> wrote in message
news:com8b011jv09mbomcb24fvtt3h918i730c@.
4ax.com...
> We have a secure environment containing a SQL cluster, and wish to use
> log shipping to ship data out to a reporting server. For various
> reasons, this reporting server lives in another Win2k domain, outside
> of the OLTP environment, and the two are separated by a firewall.
> We don't want to set up any trusts between the domain, so what we're
> trying to achieve is log shipping across two non-trusting domains.
> Testing so far fails upon 'initializing destination', presumably
> because the source server(s) can't write to the share on the
> desintation server.
> Does anyone know if what we're trying to achieve is possible, or if
> there might be another solution (using something like ftp, for
> example)?
> Any thoughts or suggestions great appreciated,
> Glen|||Thanks Eric - looks like that's our only option!
Glen
On Wed, 26 May 2004 09:14:45 -0400, "Eric Sabine"
<mopar41@.___ho_y_tmail.ScPoAmM> wrote:
>I would go for "rolling your own" version of Log Shipping (it would not be
>that difficult) and perhaps using FTP to transfer the logs. Can you do
>that?
>Here's one article on the subject.
>http://www.sql-server-performance.c...g_shipping.asp. I'd
>google for more.
>hth
>Eric
>
><gsmithnospam@.cafonline.org> wrote in message
> news:com8b011jv09mbomcb24fvtt3h918i730c@.
4ax.com...
>
Log Shipping Across Domains
log shipping to ship data out to a reporting server. For various
reasons, this reporting server lives in another Win2k domain, outside
of the OLTP environment, and the two are separated by a firewall.
We don't want to set up any trusts between the domain, so what we're
trying to achieve is log shipping across two non-trusting domains.
Testing so far fails upon 'initializing destination', presumably
because the source server(s) can't write to the share on the
desintation server.
Does anyone know if what we're trying to achieve is possible, or if
there might be another solution (using something like ftp, for
example)?
Any thoughts or suggestions great appreciated,
Glen
I would go for "rolling your own" version of Log Shipping (it would not be
that difficult) and perhaps using FTP to transfer the logs. Can you do
that?
Here's one article on the subject.
http://www.sql-server-performance.co..._shipping.asp. I'd
google for more.
hth
Eric
<gsmithnospam@.cafonline.org> wrote in message
news:com8b011jv09mbomcb24fvtt3h918i730c@.4ax.com...
> We have a secure environment containing a SQL cluster, and wish to use
> log shipping to ship data out to a reporting server. For various
> reasons, this reporting server lives in another Win2k domain, outside
> of the OLTP environment, and the two are separated by a firewall.
> We don't want to set up any trusts between the domain, so what we're
> trying to achieve is log shipping across two non-trusting domains.
> Testing so far fails upon 'initializing destination', presumably
> because the source server(s) can't write to the share on the
> desintation server.
> Does anyone know if what we're trying to achieve is possible, or if
> there might be another solution (using something like ftp, for
> example)?
> Any thoughts or suggestions great appreciated,
> Glen
|||Thanks Eric - looks like that's our only option!
Glen
On Wed, 26 May 2004 09:14:45 -0400, "Eric Sabine"
<mopar41@.___ho_y_tmail.ScPoAmM> wrote:
>I would go for "rolling your own" version of Log Shipping (it would not be
>that difficult) and perhaps using FTP to transfer the logs. Can you do
>that?
>Here's one article on the subject.
>http://www.sql-server-performance.co..._shipping.asp. I'd
>google for more.
>hth
>Eric
>
><gsmithnospam@.cafonline.org> wrote in message
>news:com8b011jv09mbomcb24fvtt3h918i730c@.4ax.com.. .
>
Log Shipping Across Domains
log shipping to ship data out to a reporting server. For various
reasons, this reporting server lives in another Win2k domain, outside
of the OLTP environment, and the two are separated by a firewall.
We don't want to set up any trusts between the domain, so what we're
trying to achieve is log shipping across two non-trusting domains.
Testing so far fails upon 'initializing destination', presumably
because the source server(s) can't write to the share on the
desintation server.
Does anyone know if what we're trying to achieve is possible, or if
there might be another solution (using something like ftp, for
example)?
Any thoughts or suggestions great appreciated,
GlenI would go for "rolling your own" version of Log Shipping (it would not be
that difficult) and perhaps using FTP to transfer the logs. Can you do
that?
Here's one article on the subject.
http://www.sql-server-performance.com/sql_server_log_shipping.asp. I'd
google for more.
hth
Eric
<gsmithnospam@.cafonline.org> wrote in message
news:com8b011jv09mbomcb24fvtt3h918i730c@.4ax.com...
> We have a secure environment containing a SQL cluster, and wish to use
> log shipping to ship data out to a reporting server. For various
> reasons, this reporting server lives in another Win2k domain, outside
> of the OLTP environment, and the two are separated by a firewall.
> We don't want to set up any trusts between the domain, so what we're
> trying to achieve is log shipping across two non-trusting domains.
> Testing so far fails upon 'initializing destination', presumably
> because the source server(s) can't write to the share on the
> desintation server.
> Does anyone know if what we're trying to achieve is possible, or if
> there might be another solution (using something like ftp, for
> example)?
> Any thoughts or suggestions great appreciated,
> Glen|||Thanks Eric - looks like that's our only option!
Glen
On Wed, 26 May 2004 09:14:45 -0400, "Eric Sabine"
<mopar41@.___ho_y_tmail.ScPoAmM> wrote:
>I would go for "rolling your own" version of Log Shipping (it would not be
>that difficult) and perhaps using FTP to transfer the logs. Can you do
>that?
>Here's one article on the subject.
>http://www.sql-server-performance.com/sql_server_log_shipping.asp. I'd
>google for more.
>hth
>Eric
>
><gsmithnospam@.cafonline.org> wrote in message
>news:com8b011jv09mbomcb24fvtt3h918i730c@.4ax.com...
>> We have a secure environment containing a SQL cluster, and wish to use
>> log shipping to ship data out to a reporting server. For various
>> reasons, this reporting server lives in another Win2k domain, outside
>> of the OLTP environment, and the two are separated by a firewall.
>> We don't want to set up any trusts between the domain, so what we're
>> trying to achieve is log shipping across two non-trusting domains.
>> Testing so far fails upon 'initializing destination', presumably
>> because the source server(s) can't write to the share on the
>> desintation server.
>> Does anyone know if what we're trying to achieve is possible, or if
>> there might be another solution (using something like ftp, for
>> example)?
>> Any thoughts or suggestions great appreciated,
>> Glen
>
Log Shipping (SQL 2000) btwn OS versions?
environment with Windows 2k to a SQL 2k Ent. Ed. with Windows 2003?
Thanks!yellowbug wrote:
> Has anyone noticed any problems logshipping in a SQL 2k Ent. Ed.
> environment with Windows 2k to a SQL 2k Ent. Ed. with Windows 2003?
> Thanks!
>
Care to be more specific? What sort of problems?
Tracy McKibben
MCDBA
http://www.realsqlguy.com|||We are doing a data center migration to a new location and I was hoping
to upgrade our disaster recovery servers to windows 2003 during this
migration. However the front end machines will be on Windows 2000 for
at least a few more months. So I thought I'd throw a feeler out there
and see if anyone has had any problems with this type of configuration.
Thanks
> We are doing a data center migration to a new location and I was hoping
> to upgrade our disaster recovery servers to windows 2003 during this
> migration. However the front end machines will be on Windows 2000 for
> at least a few more months. So I thought I'd throw a feeler out there
> and see if anyone has had any problems with this type of configuration.
> Thanks
>
SQL backups are just files to the OS, nor does the OS have anything to
do with the restore of those backups. Are you using a home-grown log
shipping method, or the wizard-driven stuff that SQL provides? Either
way, I don't foresee that you'd have any problems due to the different
OS versions.
Tracy McKibben
MCDBA
http://www.realsqlguy.com
Log Shipping (SQL 2000) btwn OS versions?
environment with Windows 2k to a SQL 2k Ent. Ed. with Windows 2003?
Thanks!yellowbug wrote:
> Has anyone noticed any problems logshipping in a SQL 2k Ent. Ed.
> environment with Windows 2k to a SQL 2k Ent. Ed. with Windows 2003?
> Thanks!
>
Care to be more specific? What sort of problems?
Tracy McKibben
MCDBA
http://www.realsqlguy.com|||We are doing a data center migration to a new location and I was hoping
to upgrade our disaster recovery servers to windows 2003 during this
migration. However the front end machines will be on windows 2000 for
at least a few more months. So I thought I'd throw a feeler out there
and see if anyone has had any problems with this type of configuration.
Thanks :)|||yellowbug wrote:
> We are doing a data center migration to a new location and I was hoping
> to upgrade our disaster recovery servers to windows 2003 during this
> migration. However the front end machines will be on windows 2000 for
> at least a few more months. So I thought I'd throw a feeler out there
> and see if anyone has had any problems with this type of configuration.
> Thanks :)
>
SQL backups are just files to the OS, nor does the OS have anything to
do with the restore of those backups. Are you using a home-grown log
shipping method, or the wizard-driven stuff that SQL provides? Either
way, I don't foresee that you'd have any problems due to the different
OS versions.
Tracy McKibben
MCDBA
http://www.realsqlguy.com
Log Shipping - SQL Clustering environment
I have configured two node SQL cluster with default instance and SAN as shared disk.
I have also configured log shipping on primary server which uses maintenance plan to
backup, copy and restore transaction logs to secondary server in remote location.
My questions are:
1) If failover happens, what would be the impact on log shipping?
2) How would i accomplish the log shipping automation without any interruption even if
the cluster failover occurs?
Dear Sentil,
Setting up Log Shipping involves using a share to backup the transaction
logs to. The share will be used by the copy job to pick up the transaction
log backup file and save it to the default backup directory on the restore
(or secondary) server. The files will then be used by the load job. The
file share has to be accessible at all times for the copy job to continue
copying the transaction log backup files.
In a Cluster environment, file shares are cluster resources and hence if
they are not setup as such, they will be not available when the cluster
resources failover to a different node causing log shipping copy job on the
secondary server to not copy any files.
Consider a situation where we have
Server1 -- Node 1
Server2 -- Node 2
VirtualServerName ServerV
If we create a share on a shared disk drive E owned by Server1 and called
"logshipping", the share can be accessed using the unc name
\\ServerV\logshipping. IF the shared disk is now failed over to Server2 for
any reason, the share \\ServerV\logshipping will not be available as a file
share because it was local to the Server1.
Hence, to get around this, please follow KB article "224967 How to Create
File Shares on a Cluster http://support.microsoft.com/?id=224967" to setup
file share resources and use it for log shipping.
Thanks,
Vikram
Vikram Jayaram
Microsoft, SQL Server
This posting is provided "AS IS" with no warranties, and confers no rights.
Subscribe to MSDN & use http://msdn.microsoft.com/newsgroups.
Log Shipping - SQL Clustering environment
I have configured two node SQL cluster with default instance and SAN as shared disk.
I have also configured log shipping on primary server which uses maintenance plan to
backup, copy and restore transaction logs to secondary server in remote location.
My questions are:
1) If failover happens, what would be the impact on log shipping?
2) How would i accomplish the log shipping automation without any interruption even if
the cluster failover occurs?Dear Sentil,
Setting up Log Shipping involves using a share to backup the transaction
logs to. The share will be used by the copy job to pick up the transaction
log backup file and save it to the default backup directory on the restore
(or secondary) server. The files will then be used by the load job. The
file share has to be accessible at all times for the copy job to continue
copying the transaction log backup files.
In a Cluster environment, file shares are cluster resources and hence if
they are not setup as such, they will be not available when the cluster
resources failover to a different node causing log shipping copy job on the
secondary server to not copy any files.
Consider a situation where we have
Server1 -- Node 1
Server2 -- Node 2
VirtualServerName ServerV
If we create a share on a shared disk drive E owned by Server1 and called
"logshipping", the share can be accessed using the unc name
\\ServerV\logshipping. IF the shared disk is now failed over to Server2 for
any reason, the share \\ServerV\logshipping will not be available as a file
share because it was local to the Server1.
Hence, to get around this, please follow KB article "224967 How to Create
File Shares on a Cluster http://support.microsoft.com/?id=224967" to setup
file share resources and use it for log shipping.
Thanks,
Vikram
Vikram Jayaram
Microsoft, SQL Server
This posting is provided "AS IS" with no warranties, and confers no rights.
Subscribe to MSDN & use http://msdn.microsoft.com/newsgroups.
Log Shipping - SQL Clustering environment
I have configured two node SQL cluster with default instance and SAN as shar
ed disk.
I have also configured log shipping on primary server which uses maintenance
plan to
backup, copy and restore transaction logs to secondary server in remote loca
tion.
My questions are:
1) If failover happens, what would be the impact on log shipping?
2) How would i accomplish the log shipping automation without any interrupti
on even if
the cluster failover occurs?Dear Sentil,
Setting up Log Shipping involves using a share to backup the transaction
logs to. The share will be used by the copy job to pick up the transaction
log backup file and save it to the default backup directory on the restore
(or secondary) server. The files will then be used by the load job. The
file share has to be accessible at all times for the copy job to continue
copying the transaction log backup files.
In a Cluster environment, file shares are cluster resources and hence if
they are not setup as such, they will be not available when the cluster
resources failover to a different node causing log shipping copy job on the
secondary server to not copy any files.
Consider a situation where we have
Server1 -- Node 1
Server2 -- Node 2
VirtualServerName ServerV
If we create a share on a shared disk drive E owned by Server1 and called
"logshipping", the share can be accessed using the unc name
\\ServerV\logshipping. IF the shared disk is now failed over to Server2 for
any reason, the share \\ServerV\logshipping will not be available as a file
share because it was local to the Server1.
Hence, to get around this, please follow KB article "224967 How to Create
File Shares on a Cluster http://support.microsoft.com/?id=224967" to setup
file share resources and use it for log shipping.
Thanks,
Vikram
Vikram Jayaram
Microsoft, SQL Server
This posting is provided "AS IS" with no warranties, and confers no rights.
Subscribe to MSDN & use http://msdn.microsoft.com/newsgroups.