Bài giảng Cơ sở dữ liệu nâng cao - Chapter 5: Automating administrative tasks

Bài giảng Cơ sở dữ liệu nâng cao - Chapter 5: Automating administrative tasks. Những nội dung chính được trình bày trong chương này gồm có: Automating administrative tasks in SQL server, SQL server agent, creating maintenance plans. | CHAPTER 5 Automating Administrative Tasks Agenda Automating Administrative Tasks in SQL Server SQL Server Agent Creating Maintenance Plans 1. Overview of Automating Admin Task One of the most important advantages of Database Engine is its capability to automate administrative tasks and hence to reduce costs. Examples of some important tasks that are performed frequently and therefore could be automated: Backing up the database and transaction log Transferring data Dropping and re-creating index Checking data integrity 2. SQL Server Agent Automation Components: There are four basic components of SQL Server Agent: Jobs: Define the work to be done. Schedules: Define hen the job will be executed. Alerts: Enables you to set up an automatic response or notification when an event occurs. Operators: The people who can be notified regarding job status and alerts. 2. SQL Server Agent Jobs: Jobs are the tasks you wish to execute on a schedule. Jobs consist of job steps, which define the individual task to run and what happens if the step fails. Steps are defined using Transact-SQL or wizards. When defining job steps, you can specify their order. Jobs are associated with flexible schedules. 2. SQL Server Agent Schedule: Each created job can be executed on demand (manually by the user) or by using one or more schedules. A scheduled job can occur at any of these times. When SQL Server Agent starts. Once, at a specified date and time. On a recurring basis. When the CPU utilization of your server is idle 3. SQL Server Agent Alert: Actions that SQL Server will perform when a particular event occurs. Alerts consist of conditions and actions. Conditions can be specific error codes, error severities or object states like databases files growing to a certain size. Actions performed by an alert are notifying a person, or running a job 3. SQL Server Agent Alert: SQL Server event. The SQL Server event alerts are based mainly on error messages. You might create an alert on error message . | CHAPTER 5 Automating Administrative Tasks Agenda Automating Administrative Tasks in SQL Server SQL Server Agent Creating Maintenance Plans 1. Overview of Automating Admin Task One of the most important advantages of Database Engine is its capability to automate administrative tasks and hence to reduce costs. Examples of some important tasks that are performed frequently and therefore could be automated: Backing up the database and transaction log Transferring data Dropping and re-creating index Checking data integrity 2. SQL Server Agent Automation Components: There are four basic components of SQL Server Agent: Jobs: Define the work to be done. Schedules: Define hen the job will be executed. Alerts: Enables you to set up an automatic response or notification when an event occurs. Operators: The people who can be notified regarding job status and alerts. 2. SQL Server Agent Jobs: Jobs are the tasks you wish to execute on a schedule. Jobs consist of job steps, which define the .

Không thể tạo bản xem trước, hãy bấm tải xuống
TỪ KHÓA LIÊN QUAN
TÀI LIỆU MỚI ĐĂNG
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.