SWP-0054 Creating a SQL Maintenance Plan. Revision: 1. Effective Date: 4/26/2011

Similar documents
SWP-0014 Moving an Organization Between AFHCAN tconsult Servers. Revision: 1. Effective Date: 8/19/2010

SWP-0021 Upgrading SQL Server 2000 to SQL Server 2005 on a tconsult Server. Revision: 1. Effective Date: 10/13/2010

SWP-0003 tconsult Server Active Directory Integration. Revision: 3. Effective Date: 7/28/2010

SQL Server 2005 Advanced settings

SWP-0064 tconsult Server v6.x - Upgrade. Revision: 3. Effective Date: 12/20/2011

1 of 10 1/31/2014 4:08 PM

How To Upgrade Your Microsoft SQL Server for Accounting CS Version

owncloud Configuration and Usage Guide

DEPLOYING A VISUAL BASIC.NET APPLICATION

Wilkes University Mail Storage & Housekeeping for Students using Outlook 2003

ProSystem fx Document

Optional Lab: Schedule Task Using GUI and at Command in Windows 7

Protecting SQL Server Databases Software Pursuits, Inc.

SonicWALL CDP Local Archiving

Maintenance Plans for MS SQL Database Servers in a ZENworks Environment

KEYWORDS InteractX, database, SQL Server, SQL Server Express, backup, maintenance.

About database backups

5.6.3 Lab: Registry Backup and Recovery in Windows XP

SWP-0005 How to Establish an Authoritative Time Source for tconsult Servers. Revision: 3. Effective Date: 7/28/2010

Installation Manual Version 8.5 (w/sql Server 2005)

If you have questions or need assistance, contact PCS Technical Services using the contact information on page 10.

Note: Make sure the.pst file is stored in your U: drive, this drive is protected by backups.

Juris Installation / Upgrade Guide

BACKUP UTILITY FOR TIMEFORCE

Database Maintenance Guide

Quick Reference Guide Outlook 2010 for Windows: Outside the Mailbox Outlook Data Management

Outlook Managing Your Items

Installation Guide for Workstations

Contents. Copyright 2011 FilesAnywhere.com All Rights Reserved

MS Word Microsoft Outlook 2010 Mailbox Maintenance

How to schedule SQL Maintenance Plan

ImageNow for Microsoft SQL Server

Introduction. There are several bits of information that must be moved:

Lab: Data Backup and Recovery in Windows XP

Working with SQL Server Integration Services

TM Online Storage: StorageSync

Moving the TRITON Reporting Databases

Using a USB Flash Drive to Back Up Your Data Files on a Mac Computer

User s Manual. Management Software for ATS

Using SQL Server 2008 Automated Backup

Dream Report Version 4.5

PCLaw Administration Guide. Version 13.0

QUANTIFY INSTALLATION GUIDE

BSDI Advanced Fitness & Wellness Software

Table of Contents SQL Server Option

CONTENTS. Introduction Outlook at a glance Configure Outlook 2010 on-campus Creating Folders Sorting s...

Lab - Data Backup and Recovery in Windows XP

Microsoft SQL Server Guide. Best Practices and Backup Procedures

VERITAS Backup Exec 9.1 for Windows Servers Quick Installation Guide

Configuring Outlook 2013 For IMAP Connections

Installation Instruction STATISTICA Enterprise Small Business

Quick Reference Guide Outlook 2013 for Windows Outlook Data Management

Operating System Installation Guide

Auto Archiving Folders in Outlook XP

Installing LearningBay Enterprise Part 2

STATISTICA VERSION 12 STATISTICA ENTERPRISE SMALL BUSINESS INSTALLATION INSTRUCTIONS

QUICK START GUIDE EDI Claims Link for Windows version 3.1

Stellar Phoenix. Access Database Repair 5.0 Installation Guide

Archiving Your Mail in Outlook 2010

Does the GC have an online document management solution?

Microsoft Outlook 2010 Managing Disk Quotas

Built-In Backup. For best results: Set up Backup after hours. Carefully apply the recommended settings

Introduction. Application Versions. Assumptions. Delete $$ExportTempFolders. Tech Note 930 Wonderware System Platform Clean-up Guide

Database Administration Guide

Moving the Web Security Log Database

Upgrading from MSDE to SQL Server 2005 Express Edition with Advanced Services SP2

Clean Up Rules Quick Steps Search Tools Change Views Export Data Convert to tasks Contact Groups. Outlook Functions

Installation Windows Next Linux Mac Navigator Navigator Help Show Navigator at Startup PR Wizard New PR Campaign PR Manager

4 Backing Up and Restoring System Software

REDUCING YOUR MICROSOFT OUTLOOK MAILBOX SIZE

Guide to Setting up Docs2Manage using Cloud Services

INSTALLING MICROSOFT SQL SERVER AND CONFIGURING REPORTING SERVICES

Fairfield University Using Xythos for File Sharing

Exercise Safe Commands and Audit Trail

Windows Me Disk Management

STATISTICA VERSION 9 STATISTICA ENTERPRISE INSTALLATION INSTRUCTIONS FOR USE WITH TERMINAL SERVER

4cast Server Specification and Installation

You may have been given a download link on your trial software . Use this link to download the software.

CONFIGURING MICROSOFT SQL SERVER REPORTING SERVICES

SmartSync Monitor Help

SonicWALL CDP 5.0 Microsoft Exchange InfoStore Backup and Restore

Built-In Backup. For best results: Set up Backup after hours. Carefully apply the recommended settings

4cast Client Specification and Installation

SQL Server 2008 R2 Express Edition Installation Guide

Reduce the number of years of general ledger transactions and balances to save

Crystal Reports Installation Guide

ProjectWise Explorer V8i User Manual for Subconsultants & Team Members

Pro Bundle Evaluator s Guide Software Pursuits, Inc.

Optional Lab: Data Backup and Recovery in Windows 7

Introduction to the use of the environment of Microsoft Visual Studio 2008

Working with SQL Server Agent Jobs

Stellar Phoenix Windows Data Recovery. Stellar Phoenix Windows Data Recovery 5.0 User Guide

Database Backup and Restore Instructions. Version 6.5. Instructions

Backup Notification in Client Profiles for Windows

Organizing and Managing

Managing Mailbox Space and Personal Folders

Archiving. Follow these steps to archive your

3 Setting up Databases on a Microsoft SQL 7.0 Server

Table of Contents. CHAPTER 1 About This Guide CHAPTER 2 Introduction CHAPTER 3 Database Backup and Restoration... 15

Archiving - Outlook 2003

Transcription:

Software Procedure SWP-0054 Creating a SQL Maintenance Plan Revision: 1 Effective Date: 4/26/2011 Alaska Native Tribal Health Consortium Division of Health Information & Technology 4000 Ambassador Drive Anchorage, AK 99508 Tel: (907) 729-2260 Fax: (907) 729-2269 Copyright 2012 Alaska Native Tribal Health Consortium. All rights reserved.

Contents Purpose... 2 Audience... 2 Scope... 2 Creating a SQL Maintenance Plan Using SQL 2005... 2 Page 1 of 22

Purpose The purpose of this document is to detail the steps necessary to create a SQL Maintenance Plan using SQL Server Management Studio (2005). Audience This document is written for IT technicians and system administrators who are responsible for building, configuring or maintaining a tconsult Server. It is assumed readers are familiar with intermediate-level computer terms and concepts. Scope As part of an effective business continuity plan, organizations should have a disaster recovery plan in place in the event of a partial or full loss of computer services. A good maintenance plan not only includes a backup, but should also check database integrity, reorganize and rebuild indexes, and perform a cleanup on backup and transaction log files. By following the steps in this document, SQL Server 2005 should provide for disaster recovery as well as increase efficiency and performance. Creating a SQL Maintenance Plan Using SQL 2005 This section details how to set up a SQL Maintenance Plan on a SQL 2005 server to back up a tconsult database (or databases if a multi-org server), check database integrity, shrink a database, cleanup old backups and transaction logs, and reorganize and rebuild database indexes. 1. With the Local Administrator account, log into the tconsult server that has SQL Server 2005 installed. In some cases, SQL Server 2005 may be located on a backend server separate from the front end tconsult Telehealth Server. In either scenario, the steps listed here are identical. 2. Open SQL Server Management Studio connecting to the Database Engine. 3. Expanding Object Explorer in the left pane, expand Management. Do a right mouse click on Management Plans and select Maintenance Plan Wizard as shown in Figure 1. Page 2 of 22

Figure 1 - Selecting Maintenance Plan Wizard 4. Click Next at the Startup Screen Figure 2 Startup Page for SQL Server Maintenance Plan Wizard 5. Enter an appropriate name for the Maintenance Plan. A short description may be entered if desired. Page 3 of 22

Figure 3 Entering a Maintenance Plan Name and Description 6. Select the Following Maintenance Tasks as shown in Figure 4: a. Check Database Integrity b. Shrink Database c. Reorganize Index d. Rebuild Index e. Back Up Database (Full) f. Back Up Database (Transaction Log) g. Maintenance Cleanup Task Figure 4 Selecting Maintenance Tasks Page 4 of 22

7. The default task order that is displayed in Figure 5 is acceptable. Click on Next. Figure 5 Maintenance Task Order Screen 8. Select the Databases that Integrity Task will check by clicking on the drop-down arrow to the right of Databases. If there are multiple tconsult databases on the server, select all of them. Click on OK to return to the Define Database Check Integrity Task dialog screen. Figure 6 Selecting Databases Page 5 of 22

9. Click on the Change button by Schedule to set the time the Integrity Task should be completed. This is generally a task that needs to only run once a week. Click OK to return to the dialog screen, and then click on Next. Figure 7 Setting the Check Integrity Task Schedule 10. The next task is to Shrink the Database. As in Step 8, select the tconsult database(s), then click OK to return to the Define Shrink Database Task dialog screen. Figure 8 Selecting Databases to Shrink Page 6 of 22

11. Being organization dependent, only the administrator of an organization can determine a safe size for their database. Some organizations are intensive users of the tconsult software and create hundreds of cases; they will have a large database size. In this guide, 1000 Mb is selected (1 GB) which is ideal for most small medium organizations. This value may be increased if the organization is large and the database is normally larger than 1 GB. Figure 8 Selecting Databases to Shrink 12. The Shrink Database Task does not need to be run daily or weekly. It is recommended to run this task monthly. Set the Schedule by clicking on Change and setting the schedule to occur monthly. Click OK to return to the dialog screen, and then click on Next. Figure 9 Setting the Schedule to Shrink a Database Page 7 of 22

13. The next task that will display is to Reorganize the Index. Again, select the tconsult database(s). Once selected, click on OK to return to the Reorganize Index Task dialog screen. Figure 10 Selecting Database(s) to Reorganize Index 14. Schedule this task to run once a week. Click on OK to return to the dialog screen, and then click on Next. Figure 11 Scheduling Database(s) to Reorganize Index Page 8 of 22

15. Once the Index has been reorganized, it should be rebuilt. Select the tconsult database(s) to rebuild the index, and then click OK to return to the dialog screen. Figure 12 Selecting Database(s) to Rebuild Index Task 16. Leave the default settings and set the Schedule to rebuild the index once a week. Click on OK to return to the dialog screen, and then click on Next. Figure 13 Scheduling Database(s) to Rebuild Index Page 9 of 22

17. Though it is highly recommended to backup each and every tconsult database prior to any upgrades, a daily backup should be part of the overall disaster recovery management plan. Many organizations use VERITAS Backup Exec with SQL Agent or other third party vendor software to capture a backup of the various databases. Setting a daily backup within this maintenance plan will provide a redundant layer and stores the database to the D:\MSSQL\Backup folder. Select the tconsult database(s) to be backed up. Click on OK to return to the Backup dialog screen. Figure 14 Selecting the Database(s) to be Backed Up 18. Set the options by placing a checkmark in the checkbox or clicking on the Radio button in front of the following parameters: Page 10 of 22

a. Backup set should expire after 7 days. b. Backup to Disk c. Create a backup file for every database d. Create a sub-directory for each database e. Backup file extensions: Enter bak Do NOT enter a (.) period before bak f. Verify backup integrity Figure 15 Setting the Backup Options 19. Schedule the backups of the database(s) on a daily schedule. Once the schedule is set, click on OK to return to the dialog screen, and then click on Next. Page 11 of 22

Figure 16 Scheduling the Database(s) Back Ups 20. Similar to the Full Database backup, the Transaction Log backup task is almost identical. Begin by selecting the database(s), then click OK to return to the dialog screen. Figure 17 Selecting the Database(s) for Transaction Log Backups Page 12 of 22

21. Set the options by placing a checkmark in the checkbox or clicking on the Radio button in front of the following parameters: a. Backup set should expire after 7 days. b. Backup to Disk c. Create a backup file for every database d. Create a sub-directory for each database e. Backup file extensions: Enter trn Do NOT enter a (.) period before trn f. Verify backup integrity Figure 18 Setting the Transaction Log Backup Options 22. Schedule the backups of the transaction logs on a daily schedule. Once the schedule is set, click on OK to return to the dialog screen, and then click on Next. Page 13 of 22

Figure 19 Scheduling the Transaction Log Back Ups 23. The last task within this maintenance plan is to Cleanup old backup files. Set this task to Search folder and delete files based on an extension. Click on the elliptical button next to Folder. Figure 20 Setting the Cleanup of Old Backups 24. Select D:\MSSQL\Backup, and then click on OK. Page 14 of 22

Figure 21 Selecting the Folder 25. Enter bak (no periods) in the File extension, and place a checkmark in front of Include first-level subfolders as shown in Figure 22. Change the File age to one (1) week. Figure 22 Setting the Parameters Page 15 of 22

26. Click on Change to set the Schedule. This should be done once per week. Then click on OK to return to the dialog screen, then Next. Figure 23 Scheduling the Cleanup of Back Ups 27. Remove the checkmark from in front of Write a report to a text file. Figure 24 Setting the Report Options 28. Click on Finish at the Complete the Wizard screen. Page 16 of 22

Figure 25 Completing the Maintenance Wizard 29. The Maintenance Plan Wizard will now setup the plan. When it is finished click on Close. Figure 26 Maintenance Plan Wizard Progress Window 30. The Maintenance Plan Wizard does not allow an individual to set more than one cleanup task. It is necessary to clean up the transaction logs files in addition to the backup files. To accomplish this, do a right mouse click on Maintenance Plans and select New Maintenance Plan. Page 17 of 22

Figure 27 Setting up a Maintenance Plan Manually 31. Enter an appropriate name then click on OK. Figure 28 Naming the New Maintenance Plan 32. Under the Toolbox, in the left pane, drag Maintenance Cleanup Task to the cream colored area as shown in Figure 29. Page 18 of 22

Figure 29 Dragging the Maintenance Cleanup Task 33. Do a right mouse click on the task and choose Edit. When the Maintenance Cleanup Task dialog window opens set this task to Search folder and delete files based on an extension. Click on the elliptical button next to Folder. Figure 30 Setting the Folder to Search 34. Select D:\MSSQL\Backup, and then click on OK. Page 19 of 22

Figure 31 Selecting the Folder 35. Enter trn (no periods) in the File extension, and place a checkmark in front of Include first-level subfolders as shown in Figure 22. Change the File age to one (1) week, and then click on OK. Figure 32 Setting the Parameters Page 20 of 22

36. Double-click on Subplan_1. It will open the Subplan properties box. Figure 33 Displaying Subplan Properties 37. Enter an appropriate name for this Subplan, then click on the calendar to Schedule a time for this task to occur. Once the schedule has been set, click on OK. Figure 34 Scheduling the Deletion of Transaction Log Files 38. The Maintenance Plan needs to be saved. Click on the Floppy Disk Icon in the menu bar as shown in Figure 35. Page 21 of 22

Figure 35 Saving the New Maintenance Plan 39. Verify that SQL Server Agent is running. A quick check under Jobs will display all of the maintenance tasks that have been set up and scheduled. Figure 36 Verifying Jobs 40. To test the maintenance tasks, select one of the jobs, do a right mouse and select Start job. 41. Exit SQL Server Management Studio. End of procedure. Page 22 of 22