log shipping job failing

  • 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.

  • I'd probably just delete and set up log-shipping again, to be honest.

  • grkanth81 (7/31/2014)


    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.

    There will be a log shipping agent backup job on the primary instance that's trying to take log backups of the primary database. Do you have any failed sql agent jobs with the format LS_..........

    -----------------------------------------------------------------------------------------------------------

    "Ya can't make an omelette without breaking just a few eggs" 😉

Viewing 3 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic. Login to reply