Académique Documents
Professionnel Documents
Culture Documents
log shipping Backup jobs, Copy jobs and Restore jobs are running successfully. When checked the transaction log
status report is not getting updated and shows alert with worng information, checked the system tables are not
getting update.
Execute the following commands and check in primary server last_backup_file, last_backup_date and in the
secondary server check last_copied_file, last_copied_date, last_restored_file and last_restored_date are getting
updated, if its null then the reports will show the wrong status.
This issue can occur in the same net work and in same domain and if the server are behind the filewall.
use master
go
use master
go
On primary server
use master
go
execute sp_refresh_log_shipping_monitor
@agent_type = 0,
@mode = 1
If the query executed successfully the reports will get updated and check the fields in the system tables will be
updated.
or if the following error is displayed
There is issue with permissions to the monitor server to fetch the details and update the system tables.
In SQL Server 2005 and SQL Server 2008 when log shipping is configured, a linked server is created by SQL Server
and this linked server is used for updating the monitoring server status and system tables.
When the linked server is not able to connect to the monitor server from the primary server, where the system
tables are not getting updated.
or
Server > Server Objects > Linked Servers > linked server name will start with LOGSHIPLINK_<Monitor server
Name>_-<ID>
Right click > properties > Security > change the radio button on for login to > Be Made using this security
context > provide the monitor server SA Username and Password.
Step2:
Goto each primary databases where log shipping is configured > manually > Properties > Transaction log
shipping > Monitor server instance > Settings > change the radio button to > Using the following SQL Server
login: > provide details > Login: SA > Password: ****** > Confirm Password > ****** > click OK >
Click OK
Step3:
Execute the following script or allow the jobs to execute as per the schedule and check the status report
use master
go
execute sp_refresh_log_shipping_monitor
@agent_id = <get the primary_id from the table log_shipping_primary_databases>,
@agent_type = 0,
@mode = 1