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)
 log shipping job failing

Author  Topic 

raaj
Posting Yak Master

129 Posts

Posted - 2014-07-31 : 02:01:42
HI guys,

I am having a LSAlert_Serv job and this job runs the system stored procedure sys.sp_check_log_shipping_monitor_alert. when this job is run I am getting the following error message:

Here is the error message I am getting :
The log shipping primary database SHARP has backup threshold of 60 minutes and has not performed a backup log operation for 7368 minutes. Check agent log and logshipping monitor information. [SQLSTATE 42000] (Error 14420). The step failed.

The database named SHARP that is mentioned in the above error message is now moved to another server.
When I looked into the stored procedure and when i ran the below query from the Stored procedure :

select primary_server
,primary_database
,isnull(threshold_alert, 14420)
,backup_threshold
,cast(0 as int)
from msdb.dbo.log_shipping_monitor_primary
where threshold_alert_enabled = 1

I can still see the database SHARP in the table msdb.dbo.log_shipping_monitor_primary. So, is it the reason for failure? If so, what to do to update the table msdb.dbo.log_shipping_monitor_primary and to fix the issue.

Thanks,
raaj.


tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2014-07-31 : 12:18:00
You can manually delete the rows from the log shipping* tables for that database.

Tara Kizer
SQL Server MVP since 2007
http://weblogs.sqlteam.com/tarad/
Go to Top of Page

raaj
Posting Yak Master

129 Posts

Posted - 2014-07-31 : 19:48:16
Thanks tkizer.

That's fixed now (just deleted that row from the table).
Go to Top of Page
   

- Advertisement -