m_08_1.00 server management with demos and labs 2012.pdf
TRANSCRIPT
-
7/27/2019 M_08_1.00 Server Management with Demos and Labs 2012.pdf
1/10
Module 8: ServerManagement
-
7/27/2019 M_08_1.00 Server Management with Demos and Labs 2012.pdf
2/10
Overview
Server-level and instance-level resources such asmemory and processes
Database-level resources such as logical and physicalstorage structures
User sessions and their activity
Concurrency structures
-
7/27/2019 M_08_1.00 Server Management with Demos and Labs 2012.pdf
3/10
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 andmanaged by the DBA or automatically managed as it is in SQLServer
The size and performance of the memory components are viewed inOracle using dynamic performance views and OEM
SQL Server performance can be viewed through dynamicmanagement objects, memory related counters using PerformanceMonitor, SQL Profiler, and various DBCC statements
SQLServer:Buffer Manager, SQLServer:Cache Manager,SQLServer:Memory Manager
-
7/27/2019 M_08_1.00 Server Management with Demos and Labs 2012.pdf
4/10
-
7/27/2019 M_08_1.00 Server Management with Demos and Labs 2012.pdf
5/10
Demonstration 1: Using Performance Monitor
Demonstration 1Using Performance Monitor
-
7/27/2019 M_08_1.00 Server Management with Demos and Labs 2012.pdf
6/10
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 redologs and rollback segments
Oracle has multiple fixed-size redo logs which are switched to incyclic order following a checkpoint. SQL Server transaction logs arevariable size and are released after a checkpoint or log backup.
Management of table spaces involves creating, dropping, renaming
and changing status
Because SQL Server uses fixed-size extents, their administrationdoes not involve the same tasks as found in Oracle under certainconfigurations
-
7/27/2019 M_08_1.00 Server Management with Demos and Labs 2012.pdf
7/10
Managing Sessions and Transactions
In Oracle, data dictionary tables and views are used torelate sessions, transactions and resources
In SQL Server, views, stored procedures, and utilitiescan be used to provide equivalent data
-
7/27/2019 M_08_1.00 Server Management with Demos and Labs 2012.pdf
8/10
Locks and Latches
DBMS monitor lock-related waits using datadictionary views andstored procedures
DBMS use latches/mutexto protect internaldatabase structures
Monitor blocking in SQLServer with BlockedProcess Threshold
Deadlock GraphProfiler event allowsvisualizing deadlockinformation
-
7/27/2019 M_08_1.00 Server Management with Demos and Labs 2012.pdf
9/10
Demonstration 2: Capturing Deadlock Information
Demonstration 2
Capturing Deadlock Information
-
7/27/2019 M_08_1.00 Server Management with Demos and Labs 2012.pdf
10/10
Review
We learned that server, internal and external databaseprocesses, and database are the components that needto be monitored
We learned the types of monitoring cover availability,errors and performance
We saw the operating system tools to checkperformance to server hardware and operating systemcomponents
We learned how the various subcomponents of thedatabase and instance can be monitored using countersand logs
We were introduced to tools for monitoring SQL Serverdatabase and server such as Performance Monitor, SQLServer Agent, SQL Profiler, Dynamic Management Views