YourSQLDba的翻译(十一)

第一个问题是需要问的是我需要定制吗?在一个双核cpu 12G内存 200G硬盘的机器中,维护任务执行得很好
这花了大概2个小时去完成所有的事情

然而定制是必须的对于一个工具的默认配置.总是有特别的案例或者数据库需要特别的照顾.YourSQLDba_DoMaint 存储过程有一些有趣的参数去包含了或者排除了数据库根据他们名字多个通配符的选择条件.这些通配符都是根据SQL"like"操作符.也有默认的操作需要被管理.默认日志备份会在所有的完整恢复模式的数据库上执行.如果
一个数据库在简单恢复模式遇到了意外怎麽办?日志备份会派上用场.YourSQLDba的存储过程能够提供检测和标记这种状况的解决方案吗?是的,只要声明一个包含的数据库通配符列表.如果一个数据库被还原.而没有新的完整备份执行过,并且这不在测试环境呢?尝试去做日志备份去引发SQLSERVER错误信息。在一个受保护环境这是很好的,你想要有日志备份,在测试环境这是很烦人的。YourSQLDba提供一个特别的参数去避免这些消息

定制YourSQLDba是很容易的,因为
你能够做维护任务选项定制
因为YourSQLDba是一个基于主要存储过程,和参数允许去
选项哪个维护任务去执行
执行数据库选择会使用通配符
选择数据库备份文件保留路径
执行统计信息更新

TSQL 支持默认参数,所以存储过程能使用默认值以避免破坏了实际定制的改变

你能够把维护作业细分为多个子步骤通过不同的参数选项
作业会使用SQLSERVER代理来运行
SQLSERVER代理允许添加步骤到默认的维护步骤。一个简单的实践是细分默认维护步骤为两个或多个连续的步骤
然后对于每个步骤调整维护任务的参数。使用多步骤避免维护任务并行运行,因为他们是一个紧挨一个运行的
你能根据环境定制维护任务
YourSQLDba使用SQLSERVER 数据库邮件去通知DBA 或者应用程序管理者。这很容易去改变profile的邮件配置
和邮件帐户
YourSQLDba使用SQLSERVER代理操作员去存储邮件接受者去维护消息
YourSQLDba默认有一个操作员参数已经设置好了,你可以改变这个操作员

How to customize YourSQLDba maintenance

Updated : 2009-02-25

The first question to ask is do I need them ?  On a double dual-core machine with 12Gb of ram and around 200Gb of data the default maintenance perform well.  It takes around 2 hours to complete everything.

Customization is however a must for a tool which by default does almost anything.  There is always special cases or database than have special needs or can't be managed as the other.  YourSQLDba_DoMaint stored procedure have interesting parameters to dynamically include or exclude databases based on their name with multiple wildcard selection criteria.  These wildcards are based on SQL "like" operator.  There is also default behavior that need to be managed.  By default log backups are done for all databases in full recovery mode.  What if, a database is put accidently in simple recovery mode ?  Log backups can be taken.  Is YourSQLDba procedure provide means to detect and signal this unwanted situation ? Yes. Just specify an include database wildcard list.   What if a database is restored, and no new full backup is performed, as it arrives often in a test environment ?  Trying to do log backup raise an SQL Server error message.  In a production environment it is great, you want to have log backups, in test environment it is annoying.  YourSQLDba provides a special parameter to avoid these messages (the default is for production environment).

Customization is easy with YourSQLDba.  It is possible because:

You can do maintenance option customizations
Because YourSQLDba is based on a main stored procedure, parameters allow to:
Chose which maintenance tasks to process
Perform database selection using multiple include/exclude wildcard of type "like" selection.
Choose database backup file retention (one for full backup, the other for log backups)
Spread update statistics load over a specified number of day
Etc. Etc
T-SQL support default parameters, so the procedure can and will be enhanced using default value for them to avoid breaking changes to actual customizations.
 
You can subdivide maintenance job is substeps with different parameter option
It uses SQL Server Agent to be run.
SQL Server Agent allows to add step to the default maintenance step.  A easy practice is to divide the default maintenance in two or more consecutive steps, and tailor maintenance parameters for the each step (like database selection parameters, operator, database backup retention, maintenance options).  Using steps avoids concurrent maintenance processes, because they run one after another.
You can do environment maintenance customization
YourSQLDba uses SQL Server DatabaseMail to communicate with DBA Admin, or application admin.  It is easy to modify email configuration of the profile and account used by YourSQLDba.
It uses SQL Server Agent Operator definition to stored email recipients to maintenance messages
YourSQLDba have an operator parameter which is set by default to YourSQLDba_operator.  This can be changed

YourSQLDba的翻译(十一)相关推荐

  1. 戈革:独一无二的学者

    戈革:独一无二的学者         戈革在中国是绝无仅有的,也是独一无二的. 大凡对民族和国家有用的学者,基本上都是独一无二的,例如,李白,杜甫,曹雪芹,蒲松龄,等等. 现在是"工业化.模 ...

  2. fastapi官方文档翻译 -目录

    fastapi官方文档翻译 warmsirius 最新发布 最新评论 目录 fastapi教程翻译(前言):安装和运行 fastapi教程翻译(一):了解FastAPI结构 fastapi教程翻译(二 ...

  3. Google浏览器搜索技巧(提高效率)

    一.按文件类型搜索 - filetype 例如想要搜索<c primer plus>的pdf版本,只需要搜索输入: c primer plus中文版 filetype:pdf 二.过滤关键 ...

  4. [翻译]WP7 QuickStart-第十一篇-在后台运行程序(墓碑效应)

    [译者注:这篇文章是翻译自微软官方的WP7 QuickStart的第十一篇,讲述WP下的程序的墓碑效应.部分内容加入了自己的理解和表达习惯.而翻译此系列的主要目的一是为了练习英语,二是让自己作为一个 ...

  5. Gradle 2.0 用户指南翻译——第五十一章. 发布工件

    本文禁止w3cschool转载! 翻译项目请关注Github上的地址:https://github.com/msdx/gradledoc . 本文翻译所在分支:https://github.com/m ...

  6. [翻译]Joomla 1.5架构(十一) model 包

    这个包包含了跟数据表交互的所有相关类 JModel This abstract class is the base class for all Joomla! data access objects. ...

  7. GNU make manual 翻译( 一百二十一)

    继续翻译 4.13 Double-Colon Rules =======================Double-colon rules are explicit rules written wi ...

  8. GNU make manual 翻译(五十一)

    继续翻译 复制代码 When you use the `-t' or `--touch' option (*note Instead of  Executing Recipes: Instead of ...

  9. 【翻译】WF从入门到精通(第十一章):并行活动

    上一篇:[翻译]WF从入门到精通(第十章):事件活动 学习完本章,你将掌握:     1.理解在工作流环境中Parallel活动是怎样执行的,并且懂得如何使用它们     2.并行执行路径中的同步数据 ...

最新文章

  1. VGG16之特征提取和网络参数的查看(偏置和权重)(这里只做简单介绍)
  2. 你可能不知道的Shell
  3. listen()与accept()函数的区别
  4. 队列实现栈 | 栈实现队列
  5. jquery lazy load
  6. SQL SERVER 参考:游标(Cursor)的讲解与实例
  7. 计算机视觉的一些测试数据集和源码站点
  8. 定点运算之补码一位乘法(Booth算法)
  9. 《漫游》之《绝代双骄3》
  10. 计算机专业英语谐音大全,英语单词谐音记忆法汇总整理
  11. python-漫天星星turtle and random
  12. 从Antd 源码到自我实现之 Form表单
  13. 关于Oracle数据库如何查询非当前用户名命名空间下的表不需要写ower直接from 表名
  14. 小程序(十六)小程序仿微信聊天页面及功能
  15. 流量都去哪儿了——三板斧搞定Android网络流量测试
  16. 手动实现表格分页功能
  17. mybatis报“Invalid value for getInt()“错误
  18. api-project使用帮助文档
  19. 在 Excel 中创建强大图表的三个技巧
  20. ftp服务器上传文件不行,ftp服务器上传文件不行

热门文章

  1. 洛谷P1832 A+B Problem(再升级)
  2. Arch Linux 指南——安装基本系统
  3. 继承与多态——动手又动脑
  4. setcookie无效
  5. JS获取元素高度宽度的问题
  6. oracle创建函数和调用存储过程和调用函数的例子(区别)
  7. JDK动态代理小例子
  8. (6) 查看汉字转换成字节数组后的字节值
  9. (五)我的JavaScript系列:JavaScript的糟粕
  10. 【Vue】组件复用导致的路由切换时页面不刷新问题