Module 20 Troubleshooting Common SQL Server 2008 R2 Administrative Issues.

Slides:



Advertisements
Similar presentations
Module 12: Auditing SQL Server Environments
Advertisements

Module 17 Tracing Access to SQL Server 2008 R2. Module Overview Capturing Activity using SQL Server Profiler Improving Performance with the Database Engine.
Week 6: Chapter 6 Agenda Automation of SQL Server tasks using: SQL Server Agent Scheduling Scripting Technologies.
Module 10: Troubleshooting Network Access. Overview Troubleshooting Network Access Resources Troubleshooting LAN Authentication Troubleshooting Remote.
Module 11 Maintaining Microsoft Exchange Server 2010.
Module 7 Restoring SQL Server 2008 R2 Databases. Module Overview Understanding the Restore Process Restoring Databases Working with Point-in-time Recovery.
Transaction Management and Concurrency Control
70-290: MCSE Guide to Managing a Microsoft Windows Server 2003 Environment Chapter 11: Monitoring Server Performance.
Maintaining and Updating Windows Server 2008
Module 2: Planning to Install SQL Server. Overview Hardware Installation Considerations SQL Server 2000 Editions Software Installation Considerations.
Module 14 Monitoring and Maintaining Windows Server® 2008 Servers.
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.
Implementing High Availability
Module 8 Implementing Backup and Recovery. Module Overview Planning Backup and Recovery Backing Up Exchange Server 2010 Restoring Exchange Server 2010.
1 Chapter Overview Creating User and Computer Objects Maintaining User Accounts Creating User Profiles.
11 MAINTAINING THE OPERATING SYSTEM Chapter 5. Chapter 5: MAINTAINING THE OPERATING SYSTEM2 CHAPTER OVERVIEW Understand the difference between service.
11 SYSTEMS ADMINISTRATION AND TERMINAL SERVICES Chapter 12.
Event Viewer Was of getting to event viewer Go to –Start –Control Panel, –Administrative Tools –Event Viewer Go to –Start.
11 MAINTAINING THE OPERATING SYSTEM Chapter 5. Chapter 5: MAINTAINING THE OPERATING SYSTEM2 CHAPTER OVERVIEW  Understand the difference between service.
Module 13 Automating SQL Server 2008 R2 Management.
Course 6421A Module 7: Installing, Configuring, and Troubleshooting the Network Policy Server Role Service Presentation: 60 minutes Lab: 60 minutes Module.
Managing Client Access
Module 4 Managing Client Access. Module Overview Configuring the Client Access Server Role Configuring Client Access Services for Outlook Clients Configuring.
Module 15: Monitoring. Overview Formulate requirements and identify resources to monitor in a database environment Types of monitoring that can be carried.
Microsoft ® Official Course Module 12 Monitoring, Managing, and Recovering AD DS.
Module 8: Server Management. Overview Server-level and instance-level resources such as memory and processes Database-level resources such as logical.
Ch 11 Managing System Reliability and Availability 1.
Course 6425A Module 9: Implementing an Active Directory Domain Services Maintenance Plan Presentation: 55 minutes Lab: 75 minutes This module helps students.
Module 2 Creating Active Directory ® Domain Services User and Computer Objects.
Module 18 Monitoring SQL Server 2008 R2. Module Overview Monitoring Activity Capturing and Managing Performance Data Analyzing Collected Performance Data.
Hands-On Microsoft Windows Server 2008
Implementing Dynamic Host Configuration Protocol
Implementing File and Print Services
Microsoft ® Official Course Module 10 Optimizing and Maintaining Windows ® 8 Client Computers.
Module 10: Configuring Windows XP Professional to Operate in Microsoft Networks.
Module 7: Fundamentals of Administering Windows Server 2008.
Module 19 Managing Multiple Servers. Module Overview Working with Multiple Servers Virtualizing SQL Server Deploying and Upgrading Data-Tier Applications.
Module 12: Routing Fundamentals. Routing Overview Configuring Routing and Remote Access as a Router Quality of Service.
20411B 8: Installing, Configuring, and Troubleshooting the Network Policy Server Role Presentation: 60 minutes Lab: 60 minutes After completing this module,
Module 11: Remote Access Fundamentals
Module 9 Authenticating and Authorizing Users. Module Overview Authenticating Connections to SQL Server Authorizing Logins to Access Databases Authorization.
Module 8: Configuring Network Access Protection
Module 6 Backup of SQL Server 2008 R2 Databases. Module Overview Backing up Databases and Transaction Logs Managing Database Backups Working with Backup.
Module 14 Configuring Security for SQL Server Agent.
Monitoring Windows Server 2012
Module 16: Performing Ongoing Database Maintenance
Module 11 Maintaining Microsoft® Exchange Server 2010.
Module 15 Monitoring SQL Server 2008 R2 with Alerts and Notifications.
Module 5 Managing Message Transport. Module Overview Overview of Message Transport Configuring Message Transport.
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.
Module 11 Creating Highly Concurrent SQL Server® 2008 R2 Applications.
Module 4: Configuring and Troubleshooting DHCP
Transactions and Locks A Quick Reference and Summary BIT 275.
Configuring and Troubleshooting Identity and Access Solutions with Windows Server® 2008 Active Directory®
Module 7: Implementing Security Using Group Policy.
Module 1 Introduction to SQL Server® 2008 R2 and its Toolset.
Module 10: Windows Firewall and Caching Fundamentals.
Module 9 Planning and Implementing Monitoring and Maintenance.
Module 11: Managing Transactions and Locks
Module 14: Managing Transactions and Locks. Overview Introducing Transactions and Locks Managing Transactions Understanding SQL Server Locking Architecture.
Module 14: Advanced Topics and Troubleshooting. Microsoft ® Windows ® Small Business Server (SBS) 2008 Management Console (Advanced Mode) Managing Windows.
Module 11: Configuring and Managing Distributed File System.
Module 11: Troubleshooting Group Policy Issues. Module Overview Introduction to Group Policy Troubleshooting Troubleshooting Group Policy Application.
By the end of this lesson you will be able to explain: 1. Identify the support categories for reported computer problems 2. Use Remote Assistance to connect.
Troubleshooting Tools
Deploying and Configuring SSIS Packages
Allocating IP Addressing by Using Dynamic Host Configuration Protocol
Microsoft SQL Server 2014 for Oracle DBAs Module 1
Presentation transcript:

Module 20 Troubleshooting Common SQL Server 2008 R2 Administrative Issues

Module Overview SQL Server Troubleshooting Methodology Resolving Service-related Issues Resolving Concurrency Issues Resolving Login and Connectivity Issues

Lesson 1: SQL Server Troubleshooting Methodology Discussion: Characteristics of Good Trouble-shooters Applying a Troubleshooting Methodology

Discussion: Characteristics of Good Trouble-shooters What characteristics have you observed in people that you consider to be good trouble-shooters? What characteristics do you notice in people that are poor trouble-shooters?

Applying a Troubleshooting Methodology Investigate  Clearly define the issue as perceived by the user  What works? What doesn't work?  Did it ever work? When did it last work? What else changed?  How would you know if it is resolved? Analyze  Brainstorm all potential causes  Which potential causes are likely? How could they be tested for and eliminated? Implement  Eliminate potential causes in descending order of likelihood Validate  Ensure that the issue really is resolved

Lesson 2: Resolving Service-related Issues Troubleshooting Service-related Issues SQL Server Error Log Windows Event Logs Demonstration 2A: Troubleshooting Service-related Issues

Troubleshooting Service-related Issues Check Windows and SQL error logs If SQL Server can be started but not accessed:  Check for network related issues  Try to access SQL Server via the DAC If SQL Server will not start:  Check the Windows system log  Check master and model databases for corruption  Check that the paths to tempdb files are accessible  Try to start the service from the command prompt Typical issue: One or more SQL Server services will not start or cannot be accessed.

SQL Server Error Log Log File Viewer cannot be used when the instance is not started  Use editor to open the current log file and review it  Also review previous logs as the problem might have occurred before

Windows Event Logs System Log to review Windows related information Application Log to find application related messages

Demonstration 2A: Troubleshooting Service-related Issues In this demonstration you will see how to troubleshoot a service-related issue.

Lesson 3: Resolving Concurrency Issues Core Concurrency Concepts Troubleshooting Blocking Demonstration 3A: Troubleshooting Blocking Troubleshooting Deadlocks Demonstration 3B: Troubleshooting Deadlocks

Core Concurrency Concepts SQL Server has to ensure ACID properties of transactions Locking is the mechanism used to synchronize access by multiple users to the same data at the same time Isolation levels define the type and length of locks used Two main types of lock:  Shared locks – Allow others to read but not write  Exclusive locks – Stop others from reading or writing Locks prevent update conflicts  Locking ensures that transactions are serialized  Locking is automatic  Locks enable safe concurrent access to data

Notes Page Over-flow Slide. Do Not Print Slide. See Notes pane.

Troubleshooting Blocking Processes are blocked when they wait for locked resources  Normal behavior, essential for the system  Resource is shown as waiting to acquire a lock  Only a problem when the wait duration is lengthy Monitor long lasting blocking scenarios  SQL Server Activity Monitor  Dynamic Management Views  SQL Server Data Collector Typical issue: Applications don't seem to be doing anything but also aren't returning errors.

Demonstration 3A: Troubleshooting Blocking In this demonstration, you will see how to troubleshoot a blocking issue

Troubleshooting Deadlocks Deadlocks are circular blocking scenarios SQL Server automatically detects deadlocks  Rolls back transactions with error 1205 on deadlock victim Monitor using deadlock occurrences with Profiler and SQL Trace Granted Lock Waiting Lock Resource 1 Resource 2 Task 1 Task 2 Typical issue: Deadlock errors (1205 errors) are returned.

Demonstration 3B: Troubleshooting Deadlocks In this demonstration, you will see:  How to trace a deadlock using SQL Server Profiler  How to extract deadlock events from SQL Server Profiler  How to open deadlock files using SSMS

Lesson 4: Resolving Login and Connectivity Issues Troubleshooting Connectivity Issues Troubleshooting Login Failures

Troubleshooting Connectivity Issues Try to access using Shared Memory on the server  If no access via Shared Memory, troubleshoot the login and the service Test the network connectivity  Can the server name be resolved?  Can the network and the server be reached?  Is the Browser Service Running for Named Instances that are not using fixed ports?  Is the client configured to use the right protocol and settings?  Is a firewall blocking connectivity? Typical issue: Cannot connect to SQL Server.

Troubleshooting Login Failures Windows Logins  Is the Domain Controller available?  Can SQL Server communicate with the Domain Controller? SQL Server Logins  Is SQL Server configured for Mixed Mode?  Is the password correct?  Is the login locked or is there a requirement to change password? General Considerations  Is the login enabled and does it have CONNECT permission?  Is the default/requested database available and access permitted? Typical issue: Cannot logon to SQL Server.

Lab 20: Troubleshooting Common Issues Exercises 1 – 5: Troubleshoot and resolve SQL Server administrative issues Logon information Estimated time: 45 minutes

Lab Scenario You need to be able to resolve common issues with SQL Server processes and services at the time they are occurring. There are five exercises that create issues. You should attempt to troubleshoot and resolve as many of these issues as possible.

Lab Review What advantage would monitoring for deadlock errors using SQL Trace have over using SQL Server Profiler? What is the first place you should look for information when the SQL Server service will not start?

Module Review and Takeaways Review Questions Best Practices