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 2000 Forums
 SQL Server Administration (2000)
 log shipping jobs

Author  Topic 

mgole
Starting Member

9 Posts

Posted - 2005-03-14 : 18:57:44
Hi

For the restore jobs in log shipping,i have added 2 more steps,These are

1.put DB in single user mode
2.restore logs
3.put DB in multi user mode

When i check the job history,it shows me the duration of each of these steps together with the total time taken(which is mentioned as Job Outcome).

But the Job Outcome Duration is not equal to the sum of all the three steps.What is this additional time which it shows.?

Thanks

Madhukar

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2005-03-14 : 19:22:50
Why have you done this? You don't need to do this for log shipping to work. In the log shipping setup, you should have selected the option to kick users out of the database before the restore is happening. Due to this, you don't need to add these steps to your jobs.

Tara
Go to Top of Page

mgole
Starting Member

9 Posts

Posted - 2005-03-14 : 21:13:40
I am using my standby server to run reports.
So i need to add the additional steps.

Also i had the teraminate users checkbox enabled..but still when i used to open query analyser..(i.e one more connection) my restore job used to fail.

Madhukar
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2005-03-15 : 11:57:20
Using the standby server to run reports is not a good idea as the user will lose its connection each time the restore job occurs. For long running reports, this is not good.

To see what is occurring with your jobs, run SQL Profiler. You won't see everything as sqlmaint.exe does go outside of SQL Server to perform some tasks though.

Tara
Go to Top of Page
   

- Advertisement -