log_shipping_monitor_secondary (Transact-SQL)
適用於:SQL Server
將每個次要資料庫的一個監視器記錄儲存在記錄傳送組態中。 此資料表會儲存在 msdb 資料庫中。
與記錄和監視相關的資料表也會用於主伺服器和次要伺服器。
資料行名稱 | 資料類型 | 描述 |
---|---|---|
secondary_server | sysname | 記錄傳送組態中 Microsoft SQL Server Database Engine 次要實例的名稱。 |
secondary_database | sysname | 記錄傳送組態中的次要資料庫名稱。 |
secondary_id | uniqueidentifier | 記錄傳送組態中次要伺服器的識別碼。 |
primary_server | sysname | 記錄傳送組態中 SQL Server Database Engine 的主要實例名稱。 |
primary_database | sysname | 記錄傳送組態中主資料庫的名稱。 |
restore_threshold | int | 在產生警示之前,允許在還原作業之間經過的分鐘數。 |
threshold_alert | int | 超過還原閾值時要引發的警示。 |
threshold_alert_enabled | bit | 判斷是否啟用還原閾值警示。 1 = 已啟用。 0 = 已停用。 |
last_copied_file | Nvarchar(500) | 複製到次要伺服器之最後一個備份檔案的檔案名。 |
last_copied_date | datetime | 上次複製到次要伺服器之複製作業的時間和日期。 |
last_copied_date_utc | datetime | 最後一個複製作業到次要伺服器的時間和日期,以國際標準時程表示。 |
last_restored_file | Nvarchar(500) | 還原至次要資料庫之最後一個備份檔案的檔案名。 |
last_restored_date | datetime | 次要資料庫上最後一次還原作業的時間和日期。 |
last_restored_date_utc | datetime | 次要資料庫上最後一次還原作業的時間和日期,以國際標準時程表示。 |
last_restored_latency | int | 在主要複本上建立記錄備份,以及在次要複本上還原記錄備份時所經過的時間,以分鐘為單位。 初始值為 Null。 |
history_retention_period | int | 記錄傳送記錄記錄在刪除之前,會保留給定次要資料庫的時間量,以分鐘為單位。 |
備註
除了儲存在遠端監視器伺服器上,而且與次要伺服器相關的資訊也會儲存在其log_shipping_monitor_secondary 資料表的 次要伺服器上。
另請參閱
關於記錄傳送 (SQL Server)
sp_refresh_log_shipping_monitor (Transact-SQL)
sp_add_log_shipping_secondary_database (Transact-SQL)
sp_change_log_shipping_secondary_database (Transact-SQL)
sp_delete_log_shipping_secondary_database (Transact-SQL)
sp_help_log_shipping_secondary_database (Transact-SQL)
sp_help_log_shipping_monitor_secondary (Transact-SQL)
sp_refresh_log_shipping_monitor (Transact-SQL)
系統資料表 (Transact-SQL)
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應