YourSQLDba介绍 YourSQLDba是一个法国人写的程序,它是由一系列T-SQL存储过程构成的脚本文件。可以理解成一个组件或安装包,从而简化了在Mircorsoft SQL Server 2005/2008 数据库的安装,部署。它可以提供自动、复杂,非常容易定制的数据库维护管理,从而可
YourSQLDba介绍
YourSQLDba是一个法国人写的程序,它是由一系列T-SQL存储过程构成的脚本文件。可以理解成一个组件或安装包,从而简化了在Mircorsoft SQL Server 2005/2008 数据库的安装,部署。它可以提供自动、复杂,非常容易定制的数据库维护管理,从而可以极大的让DBA从繁杂的维护工作中释放出来。这是一个优秀的工具,可以减轻你的工作。也是每个DBA应该努力的方向,可以编写自己的数据库管理维护工具,让你从繁杂的工作中解脱出来。
YourSQLDba的官方网站:
主要设计目标
1. 实现SQL服务器维护的最佳实践
2. 易于部署(从后面的介绍可以看出)
3. 没有依赖其他工作的SQL代理和工作SQL Management Studio等
4. 大量日志记录和报告,虚拟主机,非常便于诊断问题
5. 确保维护问题可以自动产生报告
6. 确保严重的情况也不容忽视很长时间。
功能介绍
完整备份和日志备份的自动化
执行更新统计信息(通常每隔一个指定的周期执行一次,默认是一周)
选择性reorganize或重建那些超过阀值的索引。
检查数据库的完整性。
保持MSDB的最新备份,并记录备份历史(每个完整或日志备份周期)
清理历史记录(备份、Sql Agent、 Sql Maintenance)
清空(回收)SQL Server错误日志每天(30条以上归档)
提供简单的存储过程工具做手工备份、复制数据库、恢复数据库
数据库维护任务的Schedule
配置数据库邮件维护报告
发送电子邮件,定期通知维护活动。
发送异常邮件通知数据库维护中的一些问题
Disable immediately databases with integrity problem
当备份失败超过3次时,禁用数据库备份(手工备份可以重置失败次数)
Connect network drives visible to database engine for backup purposes, and make them auto-reconnect at startup.
对应英文文档如下:
Automate full backups and recurrent log backups.
Perform update statistics (spread all of them over a specified period of time, by default a week)
Selectively reorganize or rebuild index that show a fragmentation thresold
Check database integrity
Keep an up-to-date backup of MSDB which record all backup history (at the end of each full or log backup cycle)
Clean-up history log (backup, Sql Agent, Sql maintenance)
Recycle SQL Server error log every day (keep up to 30 archives)
Provides simplified sp utilities to do manual backup, duplicate database, and restore database.
Schedule agent task for maintenance
Configure database mail for maintenance reporting
Send e-mail that regular notify maintenance activity
Send exceptional e-mail for notifying problematic maintenance issues
Disable immediately databases with integrity problem
Disable databases which failed to be backup more than 3 consecutives times (manual backup can reset the failure count)
Connect network drives visible to database engine for backup purposes, and make them auto-reconnect at startup.
版本跟新情况
YouSQLDba的最新版本是2012-06-12年发布的Version 5.0.2版本。
12-003 2012-06-12
12-002 2012-03-20
12-001 2012-03-02
11-006 2011-10-06
11-005 2011-09-21
帮助文档
你从官网下载的YourSQLDba_ENU.chm帮助时,要注意不要下载了法文的文档。基本上关于YouSQLDba的资料都可以从帮助文档获取。
安装过程
YourSQLDba的安装步骤很简单,首先安装前,你先看一下帮助文档的Deployment & Update文档部分。对整体安装部署有个了解先。
1:打开SQL Server Management studio. 新建一个查询界面。
2:然后通过帮助文件中的“Click here to open the script”连接,进去复制拷贝脚本YourSQLDba_InstallOrUpdateScript.sql。
3:执行脚本成功后,会在数据库实例上创建一个YourSQLDba 数据库和相关的维护程序。
4:解决方案成功部署之前,香港虚拟主机,需要初始化设置。初始化设置是一个存储过程,是这一解决方案的一部分。
文档中例子如下:
Exec YourSQLDba.Install.InitialSetupOfYourSQLDba @FullBackupPath = 'c:\iSql2005Backups' -- full backup path destination 完全备份目录地址 , @LogBackupPath = 'c:\iSql2005Backups' -- log backup path destination 日志备份目录地址 , @email = 'myAdmin@myDomain.com' -- Email recipients (or distribution list) Email账号 , @SmtpMailServer = 'myMailServer' -- Mail server that accept SMTP mail 邮箱服务器 , @ConsecutiveFailedbackupsDaysToPutDbOffline = 0000 -- Maximum number of consecutive days of failed full backups allowed -- for a database before putting that database (Offline). -- You must choose a value between 4 and 9999. -- Important: Your can read the explanations in the InitialSetupOfYourSQLDba page -- for using the @ConsecutiveFailedbackupsDaysToPutDbOffline parameter.

InnoDBBufferPool reduces disk I/O by caching data and indexing pages, improving database performance. Its working principle includes: 1. Data reading: Read data from BufferPool; 2. Data writing: After modifying the data, write to BufferPool and refresh it to disk regularly; 3. Cache management: Use the LRU algorithm to manage cache pages; 4. Reading mechanism: Load adjacent data pages in advance. By sizing the BufferPool and using multiple instances, database performance can be optimized.

Compared with other programming languages, MySQL is mainly used to store and manage data, while other languages such as Python, Java, and C are used for logical processing and application development. MySQL is known for its high performance, scalability and cross-platform support, suitable for data management needs, while other languages have advantages in their respective fields such as data analytics, enterprise applications, and system programming.

MySQL is worth learning because it is a powerful open source database management system suitable for data storage, management and analysis. 1) MySQL is a relational database that uses SQL to operate data and is suitable for structured data management. 2) The SQL language is the key to interacting with MySQL and supports CRUD operations. 3) The working principle of MySQL includes client/server architecture, storage engine and query optimizer. 4) Basic usage includes creating databases and tables, and advanced usage involves joining tables using JOIN. 5) Common errors include syntax errors and permission issues, and debugging skills include checking syntax and using EXPLAIN commands. 6) Performance optimization involves the use of indexes, optimization of SQL statements and regular maintenance of databases.

MySQL is suitable for beginners to learn database skills. 1. Install MySQL server and client tools. 2. Understand basic SQL queries, such as SELECT. 3. Master data operations: create tables, insert, update, and delete data. 4. Learn advanced skills: subquery and window functions. 5. Debugging and optimization: Check syntax, use indexes, avoid SELECT*, and use LIMIT.

MySQL efficiently manages structured data through table structure and SQL query, and implements inter-table relationships through foreign keys. 1. Define the data format and type when creating a table. 2. Use foreign keys to establish relationships between tables. 3. Improve performance through indexing and query optimization. 4. Regularly backup and monitor databases to ensure data security and performance optimization.

MySQL is an open source relational database management system that is widely used in Web development. Its key features include: 1. Supports multiple storage engines, such as InnoDB and MyISAM, suitable for different scenarios; 2. Provides master-slave replication functions to facilitate load balancing and data backup; 3. Improve query efficiency through query optimization and index use.

SQL is used to interact with MySQL database to realize data addition, deletion, modification, inspection and database design. 1) SQL performs data operations through SELECT, INSERT, UPDATE, DELETE statements; 2) Use CREATE, ALTER, DROP statements for database design and management; 3) Complex queries and data analysis are implemented through SQL to improve business decision-making efficiency.

The basic operations of MySQL include creating databases, tables, and using SQL to perform CRUD operations on data. 1. Create a database: CREATEDATABASEmy_first_db; 2. Create a table: CREATETABLEbooks(idINTAUTO_INCREMENTPRIMARYKEY, titleVARCHAR(100)NOTNULL, authorVARCHAR(100)NOTNULL, published_yearINT); 3. Insert data: INSERTINTObooks(title, author, published_year)VA


Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

DVWA
Damn Vulnerable Web App (DVWA) is a PHP/MySQL web application that is very vulnerable. Its main goals are to be an aid for security professionals to test their skills and tools in a legal environment, to help web developers better understand the process of securing web applications, and to help teachers/students teach/learn in a classroom environment Web application security. The goal of DVWA is to practice some of the most common web vulnerabilities through a simple and straightforward interface, with varying degrees of difficulty. Please note that this software

Zend Studio 13.0.1
Powerful PHP integrated development environment

SublimeText3 Mac version
God-level code editing software (SublimeText3)

mPDF
mPDF is a PHP library that can generate PDF files from UTF-8 encoded HTML. The original author, Ian Back, wrote mPDF to output PDF files "on the fly" from his website and handle different languages. It is slower than original scripts like HTML2FPDF and produces larger files when using Unicode fonts, but supports CSS styles etc. and has a lot of enhancements. Supports almost all languages, including RTL (Arabic and Hebrew) and CJK (Chinese, Japanese and Korean). Supports nested block-level elements (such as P, DIV),

PhpStorm Mac version
The latest (2018.2.1) professional PHP integrated development tool