module 8: server management. overview server-level and instance-level resources such as memory and...

10
Module 8: Server Management

Upload: josephine-west

Post on 24-Dec-2015

214 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Module 8: Server Management. Overview Server-level and instance-level resources such as memory and processes Database-level resources such as logical

Module 8:Server Management

Page 2: Module 8: Server Management. Overview Server-level and instance-level resources such as memory and processes Database-level resources such as logical

Overview

Server-level and instance-level resources such as memory and processes

Database-level resources such as logical and physical storage structures

User sessions and their activity

Concurrency structures

Page 3: Module 8: Server Management. Overview Server-level and instance-level resources such as memory and processes Database-level resources such as logical

Managing Memory

Memory is managed at:

• Server level – ensure proper memory distribution among database, operating system and applications• Instance level – Oracle allows memory needs to be allocated and

managed by the DBA or automatically managed as it is in SQL Server

The size and performance of the memory components are viewed in Oracle using dynamic performance views and OEMSQL Server performance can be viewed through dynamic management objects, memory related counters using Performance Monitor, SQL Profiler, and various DBCC statements• SQLServer:Buffer Manager, SQLServer:Cache Manager,

SQLServer:Memory Manager

Page 4: Module 8: Server Management. Overview Server-level and instance-level resources such as memory and processes Database-level resources such as logical

Managing Processes

Oracle background processes can be configured to ensure optimal performance while SQL Server background processes are not configurable (except checkpoint)

Oracle shared server processes are configured using parameters such as DISPATCHER, SHARED_SERVERS, MAX_SHARED_SERVERS, while SQL Server worker threads can be controlled using max worker threads configuration option

In Oracle the number and performance of the processes can be viewed using dynamic performance views and Oracle Enterprise Manager

SQL Server performance can be viewed through dynamic management objects, process related counters (such as Page Faults/sec, Thread Count/sec.) using Performance Monitor, SQL Profiler.

Page 5: Module 8: Server Management. Overview Server-level and instance-level resources such as memory and processes Database-level resources such as logical

Demonstration 1: Using Profiler to Monitor More

In this demonstration you will learn how to:

Choose performance counters

Choose memory counters

Choose deadlock counters

And others

Page 6: Module 8: Server Management. Overview Server-level and instance-level resources such as memory and processes Database-level resources such as logical

Managing Storage

Tasks in managing database files: • Expanding the data or transaction log space• Shrinking the data and transaction log space• Adding and removing data and transaction log files

SQL Server transaction logs combine the functions of Oracle redo logs and rollback segmentsOracle has multiple fixed-size redo logs which are switched to in cyclic order following a checkpoint. SQL Server transaction logs are variable size and are released after a checkpoint or log backup.Management of table spaces involves creating, dropping, renaming and changing statusBecause SQL Server uses fixed-size extents, their administration does not involve the same tasks as found in Oracle under certain configurations

Page 7: Module 8: Server Management. Overview Server-level and instance-level resources such as memory and processes Database-level resources such as logical

Managing Sessions and Transactions

In Oracle, data dictionary tables and views are used to relate sessions, transactions and resources

In SQL Server, views, stored procedures, and utilities can be used to provide equivalent data

Page 8: Module 8: Server Management. Overview Server-level and instance-level resources such as memory and processes Database-level resources such as logical

Locks and Latches

DBMS monitor lock-related waits using data dictionary views and stored proceduresDBMS use latches/mutex to protect internal database structuresMonitor blocking in SQL Server with Blocked Process ThresholdDeadlock Graph Profiler event allows visualizing deadlock information

Page 9: Module 8: Server Management. Overview Server-level and instance-level resources such as memory and processes Database-level resources such as logical

Demonstration 2: Resolving Deadlock Information

In this demonstration you will learn how to:

Create a simple deadlocking event

Execute to see default behavior

Monitor with profile

Page 10: Module 8: Server Management. Overview Server-level and instance-level resources such as memory and processes Database-level resources such as logical

Review

We learned that server, internal and external database processes, and database are the components that need to be monitoredWe learned the types of monitoring cover availability, errors and performanceWe saw the operating system tools to check performance to server hardware and operating system componentsWe learned how the various subcomponents of the database and instance can be monitored using counters and logsWe were introduced to tools for monitoring SQL Server database and server such as Performance Monitor, SQL Server Agent, SQL Profiler, dynamic management views