Upload
maggy-howe
View
33
Download
0
Tags:
Embed Size (px)
DESCRIPTION
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 Using a Database Week 4 - Using the SQL Server Agent Service Week 5 - Disaster Recovery Week 6 - SQL Server Security - PowerPoint PPT Presentation
Citation preview
IT 456IT 456Seminar 5Seminar 5
Dr Jeffrey A RobinsonDr Jeffrey A Robinson
Overview of CourseOverview of Course
Week 1 – IntroductionWeek 1 – IntroductionWeek 2 – Installation of SQL and management Tools Week 2 – Installation of SQL and management Tools Week 3 - Creating and Using a DatabaseWeek 3 - Creating and Using a DatabaseWeek 4 - Using the SQL Server Agent Service Week 4 - Using the SQL Server Agent Service Week 5 - Disaster RecoveryWeek 5 - Disaster RecoveryWeek 6 - SQL Server SecurityWeek 6 - SQL Server SecurityWeek 7 - Performance MonitoringWeek 7 - Performance MonitoringWeek 8 - Performance OptimizationWeek 8 - Performance OptimizationWeek 9 - High AvailabilityWeek 9 - High Availability
Unit 4 - Using the SQL Server Unit 4 - Using the SQL Server Agent Service Agent Service
We did not have a seminar for Unit 4 due We did not have a seminar for Unit 4 due to the 4to the 4thth of July Holiday… of July Holiday…
But we can recap some of the material But we can recap some of the material that would have been covered thenthat would have been covered then
Data Transfer and Task Data Transfer and Task AutomationAutomation
• The SQL Server Agent The SQL Server Agent service runs the components of task automation and data transfer. Jobs, service runs the components of task automation and data transfer. Jobs,
maintenance plans, and alerts may be configured to ensure that maintenance plans, and alerts may be configured to ensure that repetitive tasks and responses to problems execute automatically.repetitive tasks and responses to problems execute automatically.
Jobs can have multiple job steps, with flow from one job step to another 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 based on the success or failure of a step. A job step for a Database Engine job may be a Engine job may be a transact-SQL scripttransact-SQL script, a , a Windows executableWindows executable, or an , or an ActiveX scriptActiveX script..
Data Transfer and Task Data Transfer and Task AutomationAutomation
• Maintenance Maintenance Maintenance plan tasks that can be configured Maintenance plan tasks that can be configured
include full, differential, and transaction log include full, differential, and transaction log backups, database integrity checks, and the backups, database integrity checks, and the rebuilding or reorganizing of indexesrebuilding or reorganizing of indexes
Data Transfer and Task Data Transfer and Task AutomationAutomation
• AlertsAlertsAn alert may be configured to respond to and possibly correct a problem that 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 occurs. When a SQL Server event is written to the Windows Event Application Log, the SQL Agent service is notified. The SQL Agent retrieves Application Log, the SQL Agent service is notified. The SQL Agent retrieves the event from the Application Log, and compares the event to configured the event from the Application Log, and compares the event to configured alerts. If the event matches an alert, the alert fires. alerts. If the event matches an alert, the alert fires.
Events can be generated by SQL queries or batched jobs which experience 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 problems or errors. SQL queries can be batched to look at and assess specific parameters.specific parameters.
Data Transfer and Task Data Transfer and Task AutomationAutomation
• SSISSSISSQL Server Integration Services (SSIS) is SQL Server 2008's world-class extraction, transformation, and SQL Server Integration Services (SSIS) is SQL Server 2008's world-class extraction, transformation, and
loading loading (ETL) (ETL) tool. Simple data transfer can be accomplished with the Import / Export Wizard that is tool. Simple data transfer can be accomplished with the Import / Export Wizard that is accessible in SQL Server Management Studio.accessible in SQL Server Management Studio.
The The Business Intelligence Development Studio (BIDS) Business Intelligence Development Studio (BIDS) is available for transfer of objects or complex data 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 transformations. The BIDS is a Visual-Studio-like interface named that lets you build complex objects that can be cached or stored.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 You launch it and select File, New, Project you'll find that you can create an Integration Services Project using a templateusing a template
http://www.developer.com/db/article.php/3635316
Data Transfer and Task Data Transfer and Task AutomationAutomation
• BIDSBIDSThe basic organizational concept of SSIS is the The basic organizational concept of SSIS is the packagepackage. A package is a collection of SSIS objects . A package is a collection of SSIS objects
including:including:• Connections to data sources. Connections to data sources. • Data flows, which include the sources and destinations that extract and load data, the transformations 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. 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 Control flows, which include tasks and containers that execute when the package runs. You can
organize tasks in sequences and in loops. 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 Event handlers, which are workflows that runs in response to the events raised by a package, task, or
container. container.
Week 5 - Disaster RecoveryWeek 5 - Disaster Recovery
Disaster recovery can be simple or complexDisaster recovery can be simple or complex
Disaster recovery might involve correcting an Disaster recovery might involve correcting an unintended delete or update, or it might involve unintended delete or update, or it might involve bringing operations online at a remote facility with all bringing operations online at a remote facility with all servers rebuilt from scratch. Disaster recovery servers rebuilt from scratch. Disaster recovery planning means having a plan for every problem in planning means having a plan for every problem in the spectrum. the spectrum.
Internal to SQL Server, disaster recovery planning Internal to SQL Server, disaster recovery planning requires understanding the backup and restore requires understanding the backup and restore options and procedures for user and system options and procedures for user and system databasesdatabases
Disaster RecoveryDisaster Recovery
DR often gets people to focus on MAJOR DR often gets people to focus on MAJOR disasters. However, the DBA must attend disasters. However, the DBA must attend to failures at all levelsto failures at all levels– From a single interrupted transactionsFrom a single interrupted transactions– To the recovery of a lost or corrupted To the recovery of a lost or corrupted
databasedatabase
Several tools support these types of Several tools support these types of “database” recoveries“database” recoveries
Database RecoveryDatabase Recovery
Chapter 9 of the text focuses on different Chapter 9 of the text focuses on different strategies to recovery data and strategies to recovery data and emphasizes the importance of planning emphasizes the importance of planning and the Transaction Logand the Transaction Log
– Types of backupsTypes of backups– Point in Time recoveryPoint in Time recovery– File restorationFile restoration– RollbacksRollbacks
Types of BackupsTypes of Backups
Full backupFull backup
Differential backupsDifferential backups
Transaction Log backupsTransaction Log backups
Partial backupsPartial backups
(Scheduling backups)(Scheduling backups)
Disk backups are faster than tapeDisk backups are faster than tape
Optical disks are faster to read than to writeOptical disks are faster to read than to write
Other issuesOther issues
Shadowing (transaction shipping)Shadowing (transaction shipping)
RAIDRAID
MirroringMirroring
Performance and OptimizationPerformance and Optimization
CachingCaching
CompressionsCompressions
Unit 5 Assignment and ProjectUnit 5 Assignment and Project
AssignmentAssignment– Three questions – 10 pts eachThree questions – 10 pts each
Project - Project - In this project, you will In this project, you will
– perform a backup of the NWTraders database, perform a backup of the NWTraders database, – add rows to the Sales.Orders and Sales.[Order Details] tables, add rows to the Sales.Orders and Sales.[Order Details] tables,
and then and then – restore the NWTraders database to an alternative location.restore the NWTraders database to an alternative location.
– As part of the project, you will show the steps for performing As part of the project, you will show the steps for performing backups and the restores, describe the individual steps, as well backups and the restores, describe the individual steps, as well as execute SQL commands to show changes in activity. as execute SQL commands to show changes in activity.
Next two weeksNext two weeks
Week 6 - SQL Server SecurityWeek 6 - SQL Server SecurityWeek 7 - Performance MonitoringWeek 7 - Performance Monitoring
There will be a substitute for the next two weeks since I will be travelling in China