Presentation is loading. Please wait.

Presentation is loading. Please wait.

IT 456 Seminar 5 Dr Jeffrey A Robinson. Overview of Course Week 1 – Introduction Week 2 – Installation of SQL and management Tools Week 3 - Creating and.

Similar presentations


Presentation on theme: "IT 456 Seminar 5 Dr Jeffrey A Robinson. Overview of Course Week 1 – Introduction Week 2 – Installation of SQL and management Tools Week 3 - Creating and."— Presentation transcript:

1 IT 456 Seminar 5 Dr Jeffrey A Robinson

2 Overview of Course Week 1 – Introduction Week 2 – Installation of SQL and management Tools Week 3 - Creating and Using a Database Week 4 - Using the SQL Server Agent Service Week 5 - Disaster Recovery Week 6 - SQL Server Security Week 7 - Performance Monitoring Week 8 - Performance Optimization Week 9 - High Availability

3 Unit 4 - Using the SQL Server Agent Service We did not have a seminar for Unit 4 due to the 4 th of July Holiday… But we can recap some of the material that would have been covered then

4 Data Transfer and Task Automation The SQL Server Agent The SQL Server Agent service runs the components of task automation and data transfer. Jobs, maintenance plans, and alerts may be configured to ensure that repetitive tasks and responses to problems execute automatically. Jobs can have multiple job steps, with flow from one job step to another based on the success or failure of a step. A job step for a Database Engine job may be a transact-SQL script, a Windows executable, or an ActiveX script.

5 Data Transfer and Task Automation Maintenance Maintenance Maintenance plan tasks that can be configured include full, differential, and transaction log backups, database integrity checks, and the rebuilding or reorganizing of indexes

6 Data Transfer and Task Automation Alerts Alerts An alert may be configured to respond to and possibly correct a problem that occurs. When a SQL Server event is written to the Windows Event Application Log, the SQL Agent service is notified. The SQL Agent retrieves the event from the Application Log, and compares the event to configured alerts. If the event matches an alert, the alert fires. An alert may be configured to respond to and possibly correct a problem that occurs. When a SQL Server event is written to the Windows Event Application Log, the SQL Agent service is notified. The SQL Agent retrieves the event from the Application Log, and compares the event to configured alerts. If the event matches an alert, the alert fires. Events can be generated by SQL queries or batched jobs which experience problems or errors. SQL queries can be batched to look at and assess specific parameters.

7 Data Transfer and Task Automation SSIS SSIS SQL Server Integration Services (SSIS) is SQL Server 2008's world-class extraction, transformation, and loading (ETL) tool. Simple data transfer can be accomplished with the Import / Export Wizard that is accessible in SQL Server Management Studio. The Business Intelligence Development Studio (BIDS) is available for transfer of objects or complex data transformations. The BIDS is a Visual-Studio-like interface named that lets you build complex objects that can be cached or stored. You launch it and select File, New, Project you'll find that you can create an Integration Services Project using a template http://www.developer.com/db/article.php/3635316 http://www.developer.com/db/article.php/3635316http://www.developer.com/db/article.php/3635316

8 Data Transfer and Task Automation BIDS BIDS The basic organizational concept of SSIS is the package. A package is a collection of SSIS objects including: Connections to data sources. Connections to data sources. Data flows, which include the sources and destinations that extract and load data, the transformations that modify and extend data, and the paths that link sources, transformations, and destinations. Data flows, which include the sources and destinations that extract and load data, the transformations that modify and extend data, and the paths that link sources, transformations, and destinations. Control flows, which include tasks and containers that execute when the package runs. You can organize tasks in sequences and in loops. Control flows, which include tasks and containers that execute when the package runs. You can organize tasks in sequences and in loops. Event handlers, which are workflows that runs in response to the events raised by a package, task, or container. Event handlers, which are workflows that runs in response to the events raised by a package, task, or container.

9 Week 5 - Disaster Recovery Disaster recovery can be simple or complex Disaster recovery might involve correcting an unintended delete or update, or it might involve bringing operations online at a remote facility with all servers rebuilt from scratch. Disaster recovery planning means having a plan for every problem in the spectrum. Internal to SQL Server, disaster recovery planning requires understanding the backup and restore options and procedures for user and system databases

10 Disaster Recovery DR often gets people to focus on MAJOR disasters. However, the DBA must attend to failures at all levels –From a single interrupted transactions –To the recovery of a lost or corrupted database Several tools support these types of “database” recoveries

11 Database Recovery Chapter 9 of the text focuses on different strategies to recovery data and emphasizes the importance of planning and the Transaction Log –Types of backups –Point in Time recovery –File restoration –Rollbacks

12 Types of Backups Full backup Differential backups Transaction Log backups Partial backups (Scheduling backups) Disk backups are faster than tape Optical disks are faster to read than to write

13 Other issues Shadowing (transaction shipping) RAIDMirroring Performance and Optimization CachingCompressions

14 Unit 5 Assignment and Project Assignment –Three questions – 10 pts each Project - In this project, you will –perform a backup of the NWTraders database, –add rows to the Sales.Orders and Sales.[Order Details] tables, and then –restore the NWTraders database to an alternative location. – As part of the project, you will show the steps for performing backups and the restores, describe the individual steps, as well as execute SQL commands to show changes in activity.

15 Next two weeks Week 6 - SQL Server Security Week 7 - Performance Monitoring There will be a substitute for the next two weeks since I will be travelling in China


Download ppt "IT 456 Seminar 5 Dr Jeffrey A Robinson. Overview of Course Week 1 – Introduction Week 2 – Installation of SQL and management Tools Week 3 - Creating and."

Similar presentations


Ads by Google