最新国产好看的视频,伊人天堂AV在线,国产Aaaaaa视频,蜜臀视频在线观看一区,人妻av色图,密臀久久久精品影片,青青视频免费观看毛片,久草在线观看视,国产三级精品色情在线

master數(shù)據(jù)庫(kù)損壞的解決辦法有哪些

 更新時(shí)間:2015年10月28日 15:09:06   作者:瀟湘隱者  
由于sqlserver 2008 master數(shù)據(jù)庫(kù)損壞導(dǎo)致sqlserver服務(wù)啟動(dòng)失敗,本文給大家master數(shù)據(jù)庫(kù)損壞的解決辦法,感興趣的朋友一起參考下

SQL Server 2008 master數(shù)據(jù)庫(kù)損壞后,SQL SERVER服務(wù)啟動(dòng)失敗,查看錯(cuò)誤日志,你會(huì)看到下面錯(cuò)誤信息:

2015-10-27 10:15:21.01 spid6s      Starting up database 'master'.
2015-10-27 10:15:23.01 spid6s      錯(cuò)誤: 9003,嚴(yán)重性: 20,狀態(tài): 1。
2015-10-27 10:15:23.01 spid6s      The log scan number (227:418:1) passed to log scan in database 'master' is not valid. This error may indicate data corruption or that the log file (.ldf) does not match the data file (.mdf). If this error occurred during replication, re-create the publication. Otherwise, restore from backup if the problem results in a failure during startup.
2015-10-27 10:15:23.01 spid6s      Cannot recover the master database. SQL Server is unable to run. Restore master from a full backup, repair it, or rebuild it. For more information about how to rebuild the master database, see SQL Server Books Online.

如果是數(shù)據(jù)庫(kù)版本是中文版,你會(huì)看到類似下面的錯(cuò)誤信息:

傳遞給數(shù)據(jù)庫(kù) 'master' 中的日志掃描操作的日志掃描號(hào) (227:418:1) 無(wú)效。此錯(cuò)誤可能指示數(shù)據(jù)損壞,或者日志文件(.ldf)與數(shù)據(jù)文件(.mdf)不匹配。如果此錯(cuò)誤是在復(fù)制期間出現(xiàn)的,請(qǐng)重新創(chuàng)建發(fā)布。否則,如果該問(wèn)題導(dǎo)致啟動(dòng)期間出錯(cuò),請(qǐng)從備份還原。

此時(shí)解決master數(shù)據(jù)庫(kù)的損壞的方法大致有三種:

1: 從備份還原master數(shù)據(jù)庫(kù)

    還原master數(shù)據(jù)庫(kù)的前提是你的master有做備份。千萬(wàn)謹(jǐn)記,master也必須備份。很多時(shí)候,有些人備份時(shí)會(huì)忽略這些系統(tǒng)數(shù)據(jù)庫(kù)。 一般master、msdb備份是必須的。

2: 復(fù)制master數(shù)據(jù)庫(kù)模板

    如果你沒(méi)有master備份,那么退而求次,選擇從安裝目錄的Templates拷貝master數(shù)據(jù)庫(kù)文件到對(duì)應(yīng)的目錄。如果你SQL SERVER安裝在C盤,沒(méi)有修改過(guò)安裝路徑,那么可能就是C:\Program Files\Microsoft SQL Server\MSSQL10.MSSQLSERVER\MSSQL\Binn\Templates

3:重建master數(shù)據(jù)庫(kù)

    找到SQL Server 2008的安裝介質(zhì)(插入光盤或拷貝介質(zhì)到對(duì)應(yīng)目錄),在命令窗口將目錄更改為setup.exe文件所在目錄,然后運(yùn)行下面命令(具體結(jié)合實(shí)際情況修改相關(guān)參數(shù))

setup.exe
/QUIET
/ACTION=REBUILDDATABASE
/INSTANCENAME=instance_name
/SQLSYSADMINACCOUNTS= accounts
[/SAPWD=password]
[/SQLCOLLATION=collation_name]

   當(dāng)然有很多細(xì)節(jié),如果數(shù)據(jù)庫(kù)安裝后打過(guò)補(bǔ)丁,做過(guò)升級(jí),可能需要重新應(yīng)用這些補(bǔ)丁。

以上內(nèi)容是關(guān)于master數(shù)據(jù)庫(kù)損壞的解決辦法,希望對(duì)大家有所幫助。

相關(guān)文章

最新評(píng)論

霍林郭勒市| 三门峡市| 建始县| 罗江县| 湛江市| 平乡县| 九龙县| 灵山县| 当阳市| 贡觉县| 布拖县| 淄博市| 石台县| 西藏| 博罗县| 江源县| 天全县| 扬中市| 平利县| 嵊州市| 青神县| 腾冲县| 宜良县| 平山县| 诸暨市| 全椒县| 武冈市| 百色市| 宜丰县| 宜城市| 太仆寺旗| 瑞安市| 招远市| 额济纳旗| 融水| 岗巴县| 壤塘县| 丹东市| 紫云| 申扎县| 壶关县|