© 2006 ITT Educational Services Inc. Course Name: IT390 Business Database Administration Unit 10 Slide 1 IT390 Business Database Administration Unit 10:

Slides:



Advertisements
Similar presentations
Performance Tuning Compiled from: Oracle Database Administration, Session 13, Performance, Harvard U Oracle Server Tuning Accelerator, David Scott, Intec.
Advertisements

15.1 © 2004 Pearson Education, Inc. Exam Managing and Maintaining a Microsoft® Windows® Server 2003 Environment Lesson 15: Configuring a Windows.
Module 20 Troubleshooting Common SQL Server 2008 R2 Administrative Issues.
©2006 ITT Educational Services Inc. Course Name: IT390 Business Database Administration Unit 5 Slide 1 IT390 Business Database Administration Unit 5 :
Troubleshooting Techniques Lesson 29. Skills Matrix.
Toolbox Mirror -Overview Effective Distributed Learning.
70-290: MCSE Guide to Managing a Microsoft Windows Server 2003 Environment Chapter 11: Monitoring Server Performance.
Chapter 14 Chapter 14: Server Monitoring and Optimization.
70-290: MCSE Guide to Managing a Microsoft Windows Server 2003 Environment Chapter 4: Implementing and Managing Group and Computer Accounts.
MCITP Guide to Microsoft Windows Server 2008 Server Administration (Exam #70-646) Chapter 14 Server and Network Monitoring.
70-290: MCSE Guide to Managing a Microsoft Windows Server 2003 Environment, Enhanced Chapter 10: Server Administration.
70-290: MCSE Guide to Managing a Microsoft Windows Server 2003 Environment Chapter 4: Implementing and Managing Group and Computer Accounts.
Maintaining and Updating Windows Server 2008
70-291: MCSE Guide to Managing a Microsoft Windows Server 2003 Network Chapter 14: Troubleshooting Windows Server 2003 Networks.
Hands-On Microsoft Windows Server Connecting Through Terminal Services Terminal server – Enables clients to run services and software applications.
Check Disk. Disk Defragmenter Using Disk Defragmenter Effectively Run Disk Defragmenter when the computer will receive the least usage. Educate users.
Chapter 9 Overview  Reasons to monitor SQL Server  Performance Monitoring and Tuning  Tools for Monitoring SQL Server  Common Monitoring and Tuning.
Module 8: Monitoring SQL Server for Performance. Overview Why to Monitor SQL Server Performance Monitoring and Tuning Tools for Monitoring SQL Server.
© 2010 VMware Inc. All rights reserved VMware ESX and ESXi Module 3.
Passage Three Introduction to Microsoft SQL Server 2000.
SQL Server Management Studio Introduction
1 Chapter Overview Creating User and Computer Objects Maintaining User Accounts Creating User Profiles.
Today’s Agenda Chapter 12 Admin Tasks Chapter 13 Automating Admin Tasks.
Module 15: Monitoring. Overview Formulate requirements and identify resources to monitor in a database environment Types of monitoring that can be carried.
Module 8: Server Management. Overview Server-level and instance-level resources such as memory and processes Database-level resources such as logical.
1 Chapter Overview Monitoring Server Performance Monitoring Shared Resources Microsoft Windows 2000 Auditing.
Hands-On Microsoft Windows Server 2008 Chapter 1 Introduction to Windows Server 2008.
Module 18 Monitoring SQL Server 2008 R2. Module Overview Monitoring Activity Capturing and Managing Performance Data Analyzing Collected Performance Data.
With Microsoft Windows 7© 2012 Pearson Education, Inc. Publishing as Prentice Hall1 PowerPoint Presentation to Accompany GO! with Microsoft ® Windows 7.
Administering Windows 7 Lesson 11. Objectives Troubleshoot Windows 7 Use remote access technologies Troubleshoot installation and startup issues Understand.
Maintaining a Microsoft SQL Server 2008 Database SQLServer-Training.com.
Module 3: Managing Database Files. Overview Introduction to Data Structures Creating Databases Managing Databases Placing Database Files and Logs Optimizing.
Copyright ®xSpring Pte Ltd, All rights reserved Versions DateVersionDescriptionAuthor May First version. Modified from Enterprise edition.NBL.
70-290: MCSE Guide to Managing a Microsoft Windows Server 2003 Environment, Enhanced Chapter 11: Monitoring Server Performance.
Ideas to Improve SharePoint Usage 4. What are these 4 Ideas? 1. 7 Steps to check SharePoint Health 2. Avoid common Deployment Mistakes 3. Analyze SharePoint.
Module 10: Monitoring ISA Server Overview Monitoring Overview Configuring Alerts Configuring Session Monitoring Configuring Logging Configuring.
Module 4: Planning, Optimizing, and Troubleshooting DHCP
Oracle9i Performance Tuning Chapter 1 Performance Tuning Overview.
Agenda for Today Do Chapter 14 Final Project Review for Final.
Learningcomputer.com SQL Server 2008 – Administration, Maintenance and Job Automation.
Oracle 10g Database Administrator: Implementation and Administration Chapter 2 Tools and Architecture.
Module 1: Exploring Replication. Overview Understanding SQL Server Replication Setting Up Replication Understanding Agents in Replication Securing Replication.
Learningcomputer.com SQL Server 2008 – Profiling and Monitoring Tools.
1 Chapter Overview Performing Configuration Tasks Setting Up Additional Features Performing Maintenance Tasks.
A Brief Documentation.  Provides basic information about connection, server, and client.
Module 14 Monitoring and Optimizing SharePoint Performance.
70-290: MCSE Guide to Managing a Microsoft Windows Server 2003 Environment, Enhanced Chapter 11: Monitoring Server Performance.
Week 7 : Chapter 7 Agenda SQL 710 Maintenance Plan:
1 Chapter Overview Defining Operators Creating Jobs Configuring Alerts Creating a Database Maintenance Plan Creating Multiserver Jobs.
SQL School is strongly committed to provide COMPLETE PRACTICAL REALTIME Trainings on SQL Server Technologies – Dev, SQL DBA, MSBI (SSIS, SSAS, SSRS) and.
1 Chapter Overview Managing Object and Container Permissions Locating and Moving Active Directory Objects Delegating Control Troubleshooting Active Directory.
1 Chapter Overview Developing a Performance Monitoring Methodology Choosing Among Monitoring Tools Performing Monitoring Tasks.
SQL Server 2005 Implementation and Maintenance Chapter 6: Security and SQL Server 2005.
SQL Query Analyzer. Graphical tool that allows you to:  Create queries and other SQL scripts and execute them against SQL Server databases. (Query window)
1 Chapter Overview Monitoring Access to Shared Folders Creating and Sharing Local and Remote Folders Monitoring Network Users Using Offline Folders and.
Troubleshooting Windows Vista Lesson 11. Skills Matrix Technology SkillObjective DomainObjective # Troubleshooting Installation and Startup Issues Troubleshoot.
Microsoft SQL is known as RDMS (Relational Database Management System) which is developed by Microsoft and is highly used at corporate and enterprise.
Maintaining and Updating Windows Server 2008 Lesson 8.
9 Copyright © 2004, Oracle. All rights reserved. Getting Started with Oracle Migration Workbench.
1 Copyright © 2005, Oracle. All rights reserved. Oracle Database Administration: Overview.
©NIIT BCP and DTS Implementing Stored Procedures Lesson 2A / Slide 1 of 23 Objectives In this lesson, you will learn to: Perform bulk copy using the BCP.
CSS Microsoft Korea. Data Collector Management Data Warehouse Performance and Configuration Reports Graphical Showplan Activity Monitor SQL Profiler Dynamic.
SQL Database Management
Monitoring Windows Server 2012
Troubleshooting Tools
SQL Server Monitoring Overview
Designing Database Solutions for SQL Server
Dynamics AX Performance
Inside the Database Engine
Inside the Database Engine
Presentation transcript:

© 2006 ITT Educational Services Inc. Course Name: IT390 Business Database Administration Unit 10 Slide 1 IT390 Business Database Administration Unit 10: Troubleshooting SQL Server 2000

© 2006 ITT Educational Services Inc. Course Name: IT390 Business Database Administration Unit 10 Slide 2 Objectives Troubleshoot basic Microsoft SQL Database Server problems. Apply SQL Server troubleshooting to resolve network problems. Explain the commands to check network connections.

© 2006 ITT Educational Services Inc. Course Name: IT390 Business Database Administration Unit 10 Slide 3 Monitoring is the process by which you can check if your database server is properly working. The performance of a database deteriorates if maintenance tasks are not frequently performed on the database. SQL Server provides you with various tools to monitor your database server to achieve optimal performance. Monitoring the Database Server

© 2006 ITT Educational Services Inc. Course Name: IT390 Business Database Administration Unit 10 Slide 4 Differentiate between Response Time and Throughput Time. Can you… ?

© 2006 ITT Educational Services Inc. Course Name: IT390 Business Database Administration Unit 10 Slide 5 List the factors that affect the performance of an SQL database server. Can you… ? Much more painful than proper maintenance!

© 2006 ITT Educational Services Inc. Course Name: IT390 Business Database Administration Unit 10 Slide 6 Monitoring Performance Factors  A network administrator should check the usage of the following server resources:  Central processing unit (CPU)  Memory  Storage capacity  Network usage (A topic which has a larger scope!)

© 2006 ITT Educational Services Inc. Course Name: IT390 Business Database Administration Unit 10 Slide 7 SQL Server Monitoring Tools SQL Server 2000 provides the following tools to monitor the factors that can hamper the performance of SQL Server 2000:  T-SQL commands  SQL Server 2000 Error Log  Current Activity Window  SQL Profiler

© 2006 ITT Educational Services Inc. Course Name: IT390 Business Database Administration Unit 10 Slide 8 Which SQL commands can you use to obtain information on CPU usage? Class Activity YIKES!!

© 2006 ITT Educational Services Inc. Course Name: IT390 Business Database Administration Unit 10 Slide 9 Solution You can use the following SELECT syntax to get the SQL server processes and their corresponding threads: SELECT spid, lastwaittype, dbid, uid, cpu, physical_io, memusage, status, loginname, program_name from master..sysprocesses ORDER BY cpu desc GO

© 2006 ITT Educational Services Inc. Course Name: IT390 Business Database Administration Unit 10 Slide 10 A database server might face various problems, such as network congestion, memory allocations, and permission problems on various database objects. SQL Server provides various debugging tools for diagnosing and rectifying errors, such as DBCC commands and Enterprise Manager. Troubleshooting SQL Server 2000

© 2006 ITT Educational Services Inc. Course Name: IT390 Business Database Administration Unit 10 Slide 11 Performance tuning involves measures to enhance database performance. You can enhance performance of a database by taking small measures, which do not require much effort on your part except that you need to perform them at the right time. Some of these measures are: Indexing Creating large tables Defining optimized data retrieval queries In addition, you can use the Performance Monitor and Query Analyzer tools to monitor the performance of a database. HOW? Performance Tuning: Techniques and Tools

© 2006 ITT Educational Services Inc. Course Name: IT390 Business Database Administration Unit 10 Slide 12

© 2006 ITT Educational Services Inc. Course Name: IT390 Business Database Administration Unit 10 Slide 13

© 2006 ITT Educational Services Inc. Course Name: IT390 Business Database Administration Unit 10 Slide 14

© 2006 ITT Educational Services Inc. Course Name: IT390 Business Database Administration Unit 10 Slide 15

© 2006 ITT Educational Services Inc. Course Name: IT390 Business Database Administration Unit 10 Slide 16

© 2006 ITT Educational Services Inc. Course Name: IT390 Business Database Administration Unit 10 Slide 17

© 2006 ITT Educational Services Inc. Course Name: IT390 Business Database Administration Unit 10 Slide 18

© 2006 ITT Educational Services Inc. Course Name: IT390 Business Database Administration Unit 10 Slide 19

© 2006 ITT Educational Services Inc. Course Name: IT390 Business Database Administration Unit 10 Slide 20

© 2006 ITT Educational Services Inc. Course Name: IT390 Business Database Administration Unit 10 Slide 21

© 2006 ITT Educational Services Inc. Course Name: IT390 Business Database Administration Unit 10 Slide 22

© 2006 ITT Educational Services Inc. Course Name: IT390 Business Database Administration Unit 10 Slide 23

© 2006 ITT Educational Services Inc. Course Name: IT390 Business Database Administration Unit 10 Slide 24

© 2006 ITT Educational Services Inc. Course Name: IT390 Business Database Administration Unit 10 Slide 25

© 2006 ITT Educational Services Inc. Course Name: IT390 Business Database Administration Unit 10 Slide 26

© 2006 ITT Educational Services Inc. Course Name: IT390 Business Database Administration Unit 10 Slide 27

© 2006 ITT Educational Services Inc. Course Name: IT390 Business Database Administration Unit 10 Slide 28 You are the DBA at PQR Inc. You are frequently receiving errors in SQL Server How can you view the root cause of these errors? Class Activity

© 2006 ITT Educational Services Inc. Course Name: IT390 Business Database Administration Unit 10 Slide 29 Viewing SQL Server Error Log You can view SQL Server Error Log using Enterprise Manager.

© 2006 ITT Educational Services Inc. Course Name: IT390 Business Database Administration Unit 10 Slide 30 What is the significance of the Current Log File? Class Activity

© 2006 ITT Educational Services Inc. Course Name: IT390 Business Database Administration Unit 10 Slide 31 The Current Error Log is the most recent error log located under Program Files\Microsoft SQL Server\Mssql\Log. Answer

© 2006 ITT Educational Services Inc. Course Name: IT390 Business Database Administration Unit 10 Slide 32 Viewing an Error Log Message You can view an error message by double-clicking any item in the SQL Server Error Log file.

© 2006 ITT Educational Services Inc. Course Name: IT390 Business Database Administration Unit 10 Slide 33 Troubleshooting / Tools for Database Configurations SQL Server provides database settings that can be used to troubleshoot some common problems, such as multiple users accessing the database at a critical time. You can use Enterprise Manager to change database settings under ‘Properties’ / Options tab. You can also use the sp_dboption system stored procedure to change database settings. Alternatively, you can use DBCC commands to change database settings.

© 2006 ITT Educational Services Inc. Course Name: IT390 Business Database Administration Unit 10 Slide 34 Class Activity What are the following DBCC commands used for?  DBCC CHECKCATALOG  DBCC CHECKTABLE  DBCC CHECKDB

© 2006 ITT Educational Services Inc. Course Name: IT390 Business Database Administration Unit 10 Slide 35 Solution What are the following DBCC commands used for?  DBCC CHECKCATALOG

© 2006 ITT Educational Services Inc. Course Name: IT390 Business Database Administration Unit 10 Slide 36 Solution (cont.) What are the following DBCC commands used for?  DBCC CHECKTABLE

© 2006 ITT Educational Services Inc. Course Name: IT390 Business Database Administration Unit 10 Slide 37 Solution (cont.) What are the following DBCC commands used for?  DBCC CHECKDB

© 2006 ITT Educational Services Inc. Course Name: IT390 Business Database Administration Unit 10 Slide 38 Class Activity John is a DBA at XYZ Inc. The database server at XYZ is facing network problems. What can be the causes of this problem?

© 2006 ITT Educational Services Inc. Course Name: IT390 Business Database Administration Unit 10 Slide 39 Monitoring the Network A database server can also face problems due to network errors thus causing congestion. There can be several kinds of these network errors, such as:  Bandwidth crunch (exhaustion)  Subnet masking  Congestion  Orphaned sessions

© 2006 ITT Educational Services Inc. Course Name: IT390 Business Database Administration Unit 10 Slide 40 Orphaned Session Stays open on the server-side even after the client has disconnected. Occurs when the client cannot free the network connection(s) that it is holding even when the session is terminated. Takes up an SQL Server network connection, and prevents other clients from connecting to the Server.

© 2006 ITT Educational Services Inc. Course Name: IT390 Business Database Administration Unit 10 Slide 41 Class Activity What are the 2 primary commands to check for database network connectivity over named pipes?

© 2006 ITT Educational Services Inc. Course Name: IT390 Business Database Administration Unit 10 Slide 42 Activity Answer Use the net view command:  net view \\servername

© 2006 ITT Educational Services Inc. Course Name: IT390 Business Database Administration Unit 10 Slide 43 Activity Answer Use the net use command:  net use [device_name | *] [\\computer_name\share_name[\volume]] [password | *]] [/user:[domain_name\]user_name] [[/delete] | [/persistent:{yes | no}]]

© 2006 ITT Educational Services Inc. Course Name: IT390 Business Database Administration Unit 10 Slide 44 Performance tuning involves measures to enhance the performance of a database. There are tools that can monitor the performance of a database. Some of these tools are:  Performance Monitor  Query Analyzer Summary

© 2006 ITT Educational Services Inc. Course Name: IT390 Business Database Administration Unit 10 Slide 45 A Database Administrator should be able to use basic SQL Server Tools and Troubleshooting such as logs and the DBCC command. A Database Administrator should use the commands to check Network conductivity. Summary

© 2006 ITT Educational Services Inc. Course Name: IT390 Business Database Administration Unit 10 Slide 46  Did you understand the key points from the Lesson?  Do you have any questions? Summary