iT邦幫忙

第 12 屆 iThome 鐵人賽

DAY 26
1
AI & Data

一名合格的DBA要從底層一步步爬起系列 第 26

《Day26》SQLServer維護計畫(Maintance plan)

SQLServer可以透過建立維護計畫來建立各種資料庫管理工作,包括備份、資料庫完整性檢查獲是統計資料更新,資料庫引擎會自動建立Integration Services封裝,可以讓SQLServer Agent排程執行。

若要建立或管理維護計畫,必須要是sysadmin身份

讓我們來建立維護計畫吧!

啟動維護計畫精靈

https://ithelp.ithome.com.tw/upload/images/20201005/20129969ZNzbeus3dS.png

設定維護計畫名稱
https://ithelp.ithome.com.tw/upload/images/20201005/20129969VcHAXhIR25.png

設定排程

https://ithelp.ithome.com.tw/upload/images/20201005/20129969ruR4XGLvyu.png

維護工作有檢查資料庫完整性、壓縮資料庫、重建組織所引、重建索引、更新統計資訊、清除紀錄、執行SQLServer Agent作業、完整、差異與交易紀錄備份、維護清除工作。
https://ithelp.ithome.com.tw/upload/images/20201005/20129969KcfhgHTF7F.png

我們選擇完整備份與交易紀錄備份
https://ithelp.ithome.com.tw/upload/images/20201005/20129969zbAAJlleGU.png

這邊可以排列工作順序
https://ithelp.ithome.com.tw/upload/images/20201005/20129969tqdhNWjjip.png

選擇要完整備份的資料庫

https://ithelp.ithome.com.tw/upload/images/20201005/20129969IeBZgy2zez.png
點選建立子目錄
https://ithelp.ithome.com.tw/upload/images/20201005/20129969l3IzS8L4t8.png

選擇要做交易紀錄備份的資料庫
https://ithelp.ithome.com.tw/upload/images/20201005/201299698IkO29OgHa.png

建立維護計畫完成


上一篇
《Day25》SQLServer Always on
下一篇
《Day27》Oracle Database 安裝
系列文
一名合格的DBA要從底層一步步爬起30
圖片
  直播研討會
圖片
{{ item.channelVendor }} {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中

尚未有邦友留言

立即登入留言