<output id="qn6qe"></output>

    1. <output id="qn6qe"><tt id="qn6qe"></tt></output>
    2. <strike id="qn6qe"></strike>

      亚洲 日本 欧洲 欧美 视频,日韩中文字幕有码av,一本一道av中文字幕无码,国产线播放免费人成视频播放,人妻少妇偷人无码视频,日夜啪啪一区二区三区,国产尤物精品自在拍视频首页,久热这里只有精品12

      SQL SERVER 2005 Master備份與還原

       
      一、備份Master 及相關的系統數據庫
      由于系統數據庫對Sql Server來說尤其重要,為了確保SQL SERVER系統的正常運行,除了日常備份用戶的數據庫之外,我們還需要備份系統數據庫,如對MasterModelMsdbTempDB不需備份)進行完整備份
      二、還原Master數據庫
      如果系統配置丟失或Master出現問題,可以進入單用戶模式進行還原;如果出現下列情況,必須重新生成損壞的 master 數據庫:
      A.       master 數據庫的當前備份不可用。
      B.        存在 master 數據庫備份,但由于 Microsoft SQL Server 實例無法啟動,因此無法還原該備份。
      1、重新生成 master 數據庫:
      注意: 
      在 SQL Server 2005 中已廢止 Rebuildm.exe 程序。若要重新生成 master 數據庫,請使用 setup.exe。
      1、  Start /wait setup.exe /qn INSTANCENAME=<InstanceName> REINSTALL=SQL_Engine REBUILDDATABASE=1 SAPWD=<NewStrongPassword>
      例:start /wait e:/setup.exe /qn INSTANCENAME=mssqlserver REINSTALL=SQL_Engine REBUILDDATABASE=1 SAPWD=abc123@!@
      注:INSTANCENAME:指定實例名,默認實例則用mssqlserver表示
      REINSTALL:指定引擎
      SAPWD:強密碼
      Setup.exe:指定光盤1中的根目錄下的文件
      /qn 開關用于取消所有安裝程序對話框和錯誤消息。如果指定 /qn 開關,則所有安裝程序消息(包括錯誤消息)都將寫入安裝程序日志文件。有關日志文件的詳細信息,請參閱如何查看 SQL Server 2005 安裝日志文件。
       指定 /qb 開關將顯示基本的安裝程序對話框。還會顯示錯誤消息。
           
      2、 還原Master備份
      先進入單用戶模式,系統默認沒有設置PATH,先進入CMD,進入“C:/Program Files/Microsoft SQL Server/MSSQL.1/MSSQL/Binn”,執行SQLSERVR.EXE –M
      打開SSMS工具,先斷開連接,再新建查詢,執行以下命名還原
      USE master
      GO
      RESTORE DATABASE master
       FROM disk='c:/master.bak'
      GO
       
      開始實驗了~~~
      MASTER重新生成
      為了模擬MASTER數據庫壞了,我們就刪除MASTER數據庫(要停止SQL SERVER服務才能刪除)在我的電腦,C:/ PROGRAM FILES/MICROSOFT SQL SERVER/MSSQL.1/MSSQL/DATE 中刪除MASTER.MDF
      重新生成MASTER
      1.首先在CMD中輸入
      start /wait setup.exe /qn INSTANCENAME=<InstanceName> REINSTALL=SQL_Engine REBUILDDATABASE=1 SAPWD=<NewStrongPassword>
       
      其中的 SETUP.EXE為啟動光盤的路徑,我這里的是 E:/SETUP.EXE /QN
       
      我這里的為默認實例所以其中的<INSTANCENAME> MSSQLSERVER代替
       
      最后的<NewStrongPassword>為密碼我設密碼為abc123@!@,所以就用abc123@!@代替<NewStrongPassword>
       
      若沒有返回錯誤,我們就可以到我的電腦中C:/ PROGRAM FILES/MICROSOFT SQL SERVER/MSSQL.1/DATE上面又有MASTER.MDF
       
       
      接下來進入目錄
      單用戶模式
      啟動SSMS工具,新建查詢
      輸入命令
      啟動服務(MSSQL SERVER)
      打開SSMS
      連接到數據庫后就可以發現數據庫中的數據又回來了
       
      以下是我在命令行下搞的命令,我用記事本的方式全部復制下來了,為了不傳附件,我就直接粘貼到下面了
        Microsoft Windows [版本 5.2.3790]
      (C) 版權所有 1985-2003 Microsoft Corp.
      C:/Documents and Settings/Administrator>start /wait e:/setup.exe /qn INSTANCENAME=mssqlserver REINSTALL=SQL_Engine REBUILDDATABASE=1 SAPWD=abc123@!@
      C:/Documents and Settings/Administrator>cd C:/Program Files/Microsoft SQL Server/MSSQL.1/MSSQL/Binn
      C:/Program Files/Microsoft SQL Server/MSSQL.1/MSSQL/Binn>sqlservr.exe -m
      2008-04-18 15:47:46.56 Server      Authentication mode is MIXED.
      2008-04-18 15:47:46.59 Server      Microsoft SQL Server 2005 - 9.00.1399.06 (Intel X86)
              Oct 14 2005 00:33:37
              Copyright (c) 1988-2005 Microsoft Corporation
              Enterprise Edition on Windows NT 5.2 (Build 3790: Service Pack 1)
      2008-04-18 15:47:46.59 Server      (c) 2005 Microsoft Corporation.
      2008-04-18 15:47:46.59 Server      All rights reserved.
      2008-04-18 15:47:46.59 Server      Server process ID is 3984.
      2008-04-18 15:47:46.59 Server      Logging SQL Server messages in file 'C:/Program Files/Microsoft SQL Server/MSSQL.1/MSSQL/LOG/ERRORLOG'.
      2008-04-18 15:47:46.59 Server      This instance of SQL Server last reported using a process ID of 764 at 2008-4-18 15:46:40 (local) 2008-4-18 7:46:40 (UTC). This is an informational message only; no user action is required.
      2008-04-18 15:47:46.60 Server      Registry startup parameters:
      2008-04-18 15:47:46.60 Server            -d C:/Program Files/Microsoft SQL Server/MSSQL.1/MSSQL/DATA/master.mdf
      2008-04-18 15:47:46.60 Server            -e C:/Program Files/Microsoft SQL Server/MSSQL.1/MSSQL/LOG/ERRORLOG
      2008-04-18 15:47:46.60 Server            -l C:/Program Files/Microsoft SQL Server/MSSQL.1/MSSQL/DATA/mastlog.ldf
      2008-04-18 15:47:46.62 Server      Command Line Startup Parameters:
      2008-04-18 15:47:46.62 Server            -m
      2008-04-18 15:47:46.64 服務器         SQL Server is starting at normal priority base (=7). This is an informational message only. No user action is required.
      2008-04-18 15:47:46.67 服務器         Detected 1 CPUs. This is an informational message; no user action is required.
      2008-04-18 15:47:46.78 服務器         Using dynamic lock allocation.  Initial allocation of 2500 Lock blocks and 5000 Lock Owner blocks per node.  This is an informational message only.  No user action is required.
      2008-04-18 15:47:46.84 服務器         Attempting to initialize Microsoft Distributed Transaction Coordinator (MS DTC). This is an informational message only. No  user action is required.
      2008-04-18 15:47:47.95 服務器         Attempting to recover in-doubt distributed  transactions involving Microsoft Distributed Transaction oordinator (MS DTC).
      This is an informational message only. No user action is required.
      2008-04-18 15:47:47.96 服務器         Database Mirroring Transport is disabled in the endpoint configuration.
      2008-04-18 15:47:47.96 spid5s      Warning ******************
      2008-04-18 15:47:47.96 spid5s      SQL Server started in single-user mode. This an informational message only. No user action is required.
      2008-04-18 15:47:47.99 spid5s      Starting up database 'master'.
      2008-04-18 15:47:48.17 spid5s      Recovery is writing a checkpoint in database 'master' (1). This is an informational message only. No user action is required.
      2008-04-18 15:47:48.28 spid5s      SQL Trace ID 1 was started by login "sa".
      2008-04-18 15:47:48.32 spid5s      Starting up database ssqlsystemresource'.
      2008-04-18 15:47:48.76 spid5s      Server name is 'VM01'. This is an informational message only. No user action is required.
      2008-04-18 15:47:48.78 spid8s      Starting up database 'model'.
      2008-04-18 15:47:49.20 服務器         A self-generated certificate was successfully loaded for encryption.
      2008-04-18 15:47:49.23 服務器         Server is listening on [ 'any' <ipv4> 1433].
      2008-04-18 15:47:49.24 服務器         Server local connection provider is ready to accept connection on [
      //./pipe/SQLLocal/MSSQLSERVER ].
      2008-04-18 15:47:49.24 服務器         Server local connection provider is ready to accept connection on [
      //./pipe/sql/query ].
      2008-04-18 15:47:49.28 服務器         Server is listening on [ 127.0.0.1 <ipv4>1434].
      2008-04-18 15:47:49.28 服務器         Dedicated admin connection support was established for listening locally on port 1434.
      2008-04-18 15:47:49.29 服務器         The SQL Network Interface library could not register the Service Principal Name (SPN) for the SQL Server service. Error: 0x54b. Failure to register an SPN may cause integrated authentication to fall back to NTLM instead of Kerberos. This is an informational message. Further action is only required if Kerberos authentication is required by authentication policies.
      2008-04-18 15:47:49.31 服務器         SQL Server is now ready for client connections. This is an informational message; no user action is required.
      2008-04-18 15:47:49.40 spid5s      Starting up database 'msdb'.
      2008-04-18 15:47:49.68 spid8s      Clearing tempdb database.
      2008-04-18 15:47:49.93 spid5s      Recovery of any in-doubt distributed transactions involving Microsoft Distributed Transaction Coordinator (MS DTC) has completed. This is an informational message only. No user action is required.
      2008-04-18 15:47:50.57 spid8s      Starting up database 'tempdb'.
      2008-04-18 15:47:50.76 spid5s      Recovery is complete. This is an informational message only. No user action is required.
      2008-04-18 15:56:22.34 spid51      SQL Trace was stopped due to server shutdown. Trace ID = '1'. This is an informational message only; no user action is required.
      2008-04-18 15:56:22.40 服務器         The SQL Network Interface library could not deregister the Service Principal Name (SPN) for the SQL Server service. Error: 0x54b. Administrator should deregister this SPN manually to avoid client authentication errors.
      C:/Program Files/Microsoft SQL Server/MSSQL.1/MSSQL/Binn>
       
       打開SSMS工具,先斷開連接,再新建查詢,執行以下命名還原
       USE master
        GO
        RESTORE DATABASE master
        FROM disk='C:/Program Files/Microsoft SQL Server/MSSQL.1 /MSSQL/Backup/master.bak'
      GO
       
      數據庫中的顯示的消息應為:
      已為數據庫 'master',文件 'master' (位于文件 1 上)處理了 376 頁。
      已為數據庫 'master',文件 'mastlog' (位于文件 1 上)處理了 6 頁。
      已成功地還原了 master 數據庫。正在關閉 SQL Server。
      SQL Server 正在終止此進程。
         則表示master數據庫還原成功,啟動服務后進入SSMS即可看到master數據庫了 ^ ^
      posted @ 2008-12-18 18:21  .NET快速開發框架  閱讀(590)  評論(0)    收藏  舉報
      主站蜘蛛池模板: 无码人妻一区二区三区精品视频| jizz国产免费观看| 国产成人高清精品亚洲| 福利网午夜视频一区二区| 免费一区二三区三区蜜桃| 午夜精品久久久久久久久| 国产成人午夜福利院| 亚洲成人av一区免费看| 男女性高爱潮免费网站| 国产精品福利自产拍在线观看| 色综合 图片区 小说区| 国产专区精品三级免费看| jizz国产免费观看| 欧美激欧美啪啪片| 日韩精品一区二区三免费| 疯狂做受xxxx高潮欧美日本| 成人特黄特色毛片免费看| 日韩视频一区二区三区视频| 曰韩无码二三区中文字幕| 亚洲精品久久麻豆蜜桃| 九九热在线精品视频99| 国产无遮挡又黄又爽不要vip软件 国产成人精品一区二区秒拍1o | 亚洲一本二区偷拍精品| 波多野结衣一区二区三区高清| 久久久精品人妻一区二区三区| 视频一区二区三区自拍偷拍| 精品无码人妻| 国产av一区二区三区综合| 久久99热只有频精品8| 久久天天躁夜夜躁狠狠| 日本道高清一区二区三区| 99久久激情国产精品| 白嫩少妇bbw撒尿视频| 91密桃精品国产91久久| 四虎永久免费高清视频| 庄河市| 亚洲狠狠婷婷综合久久久| 日韩不卡1卡2卡三卡网站| 无码日韩精品一区二区三区免费| 熟女精品视频一区二区三区| 操操操综合网|