這篇文章將為大家詳細講解有關(guān)PlateSpin備份時SQL Server的信息是怎么樣的,小編覺得挺實用的,因此分享給大家做個參考,希望大家閱讀完這篇文章后可以有所收獲。
成都創(chuàng)新互聯(lián)為您提適合企業(yè)的網(wǎng)站設(shè)計?讓您的網(wǎng)站在搜索引擎具有高度排名,讓您的網(wǎng)站具備超強的網(wǎng)絡(luò)競爭力!結(jié)合企業(yè)自身,進行網(wǎng)站設(shè)計及把握,最后結(jié)合企業(yè)文化和具體宗旨等,才能創(chuàng)作出一份性化解決方案。從網(wǎng)站策劃到網(wǎng)站建設(shè)、做網(wǎng)站, 我們的網(wǎng)頁設(shè)計師為您提供的解決方案。
PlateSpin在服務(wù)器層面做DR備份時,SQL Server日志里面有"I/O is frozen on database xxxx"以及“I/O was resumed on database xxx"信息。
其實后面發(fā)現(xiàn),當(dāng)PlateSpin作業(yè)運行時,你會發(fā)現(xiàn)數(shù)據(jù)庫會msdb.dbo.backupset中會會記錄一條數(shù)據(jù)庫完整備份,備份到Virtual Device的記錄。這個也是側(cè)面一個佐證!當(dāng)然更細、更深入方面的原理、知識點,由于網(wǎng)上PlateSpine的資料不多,自己也沒有時間去深入了解。這里只是我在采集備份信息時,發(fā)現(xiàn)的一個細節(jié)而已,當(dāng)時很是納悶,那個時間點沒有做全備、也沒有備份到虛擬設(shè)備(Virtual Device)啊?后面查找原因,才發(fā)現(xiàn)這個跟PlateSpin有關(guān)系。特此記錄一下!
SELECT CONVERT(CHAR(100), SERVERPROPERTY('Servername')) AS servername , bs.database_name , bs.backup_start_date , bs.backup_finish_date , DATEDIFF(MINUTE,bs.backup_start_date, bs.backup_finish_date) AS backup_consume_time, bs.expiration_date , CASE bs.type WHEN 'D' THEN 'Full Backup' WHEN 'I' THEN 'Diff Backup' WHEN 'L' THEN 'Log Bacup' WHEN 'F' THEN 'File Backup' WHEN 'G' THEN 'File Diff' WHEN 'P' THEN 'Partial Backup' WHEN 'Q' THEN 'Partial Diff Backup' END AS backup_type , CASE bf.device_type WHEN 2 THEN 'Disk' WHEN 5 THEN 'Tape' WHEN 7 THEN 'Virtual Device' WHEN 105 THEN 'permanent backup device' END AS backup_media, bs.backup_size/1024/1024/1024 AS [backup_size(GB)] , bs.compressed_backup_size/1024/1024/1024 AS [compressed_backup_size(GB)], bf.logical_device_name , bf.physical_device_name , bs.name AS backupset_name , bs.first_lsn, bs.last_lsn, bs.checkpoint_lsn, bs.description FROM msdb.dbo.backupmediafamily bf INNER JOIN msdb.dbo.backupset bs ON bf.media_set_id = bs.media_set_id WHERE ( CONVERT(DATETIME, bs.backup_start_date, 102) >= CAST('2017-10-18 21:00' AS DATETIME)) AND ( CONVERT(DATETIME, bs.backup_start_date, 102) <= CAST('2017-10-18 23:59' AS DATETIME)) AND bs.type='D' AND bs.database_name='HistoryData' ORDER BY bs.database_name , bs.backup_finish_date;
關(guān)于“PlateSpin備份時SQL Server的信息是怎么樣的”這篇文章就分享到這里了,希望以上內(nèi)容可以對大家有一定的幫助,使各位可以學(xué)到更多知識,如果覺得文章不錯,請把它分享出去讓更多的人看到。