五月综合激情婷婷六月,日韩欧美国产一区不卡,他扒开我内裤强吻我下面视频 ,无套内射无矿码免费看黄,天天躁,日日躁,狠狠躁

新聞動態(tài)

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

發(fā)布日期:2021-12-22 09:12 | 文章來源:源碼中國

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

2015-10-27 10:15:21.01 spid6s Starting up database 'master'.
2015-10-27 10:15:23.01 spid6s 錯誤: 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ù)庫版本是中文版,你會看到類似下面的錯誤信息:

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

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

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

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

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

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

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

找到SQL Server 2008的安裝介質(zhì)(插入光盤或拷貝介質(zhì)到對應(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ù)庫安裝后打過補(bǔ)丁,做過升級,可能需要重新應(yīng)用這些補(bǔ)丁。

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

版權(quán)聲明:本站文章來源標(biāo)注為YINGSOO的內(nèi)容版權(quán)均為本站所有,歡迎引用、轉(zhuǎn)載,請保持原文完整并注明來源及原文鏈接。禁止復(fù)制或仿造本網(wǎng)站,禁止在非maisonbaluchon.cn所屬的服務(wù)器上建立鏡像,否則將依法追究法律責(zé)任。本站部分內(nèi)容來源于網(wǎng)友推薦、互聯(lián)網(wǎng)收集整理而來,僅供學(xué)習(xí)參考,不代表本站立場,如有內(nèi)容涉嫌侵權(quán),請聯(lián)系alex-e#qq.com處理。

實(shí)時開通

自選配置、實(shí)時開通

免備案

全球線路精選!

全天候客戶服務(wù)

7x24全年不間斷在線

專屬顧問服務(wù)

1對1客戶咨詢顧問

在線
客服

在線客服:7*24小時在線

客服
熱線

400-630-3752
7*24小時客服服務(wù)熱線

關(guān)注
微信

關(guān)注官方微信
頂部