ANDMEBAASIDE MONITOORIMINE

Slides:



Advertisements
Similar presentations
The Architecture of Oracle
Advertisements

Module 2: Database Architecture
Page Footer Keed Education Oracle Database Administration Basic Copyright 2009 Keed Education BV Version Concept.
Primer on Structure& Storage Analysis Primer on Structure & Storage Analysis This presentation is supposed to give a simple and brief overview for storage.
Basic Storage Concepts and Settings
15 Copyright © 2004, Oracle. All rights reserved. Monitoring and Managing Memory.
Harvard University Oracle Database Administration Session 9 Managing the Environment.
Harvard University Oracle Database Administration Session 2 System Level.
Oracle Architecture Client Computer Application Server Oracle Database Lan Or Internet Lan Or Internet Client Server Environment Application By Java or.Net.
1 Copyright © 2009, Oracle. All rights reserved. Exploring the Oracle Database Architecture.
Module 15: Monitoring. Overview Formulate requirements and identify resources to monitor in a database environment Types of monitoring that can be carried.
Oracle Database Administration Database files Logical database structures.
Korporatiivse informatsiooni integratsioon Tehnoloogiad EAI, EII, ETL.
Ling Guo Feb 15, 2010 Database(RDBMS) Software Review Oracle RDBMS (Oracle Cooperation) 4()6 Oracle 10g Express version DB2 (IBM) IBM DB2 Express-C SQL.
9/11/2015ISYS366 - Week051 ISYS366 – Week 5-6 Database Tuning - User and Rollback Data Spaces, Recovery, Backup.
Oracle Database Architecture An Oracle server: –Is a database management system that provides an open, comprehensive, integrated approach to information.
Chapter Oracle Server An Oracle Server consists of an Oracle database (stored data, control and log files.) The Server will support SQL to define.
CSE 781 – DATABASE MANAGEMENT SYSTEMS Introduction To Oracle 10g Rajika Tandon.
7202ICT Database Administration Lecture 7 Managing Database Storage Part 2 Orale Concept Manuel Chapter 3 & 4.
Extents, segments and blocks in detail. Database structure Database Table spaces Segment Extent Oracle block O/S block Data file logical physical.
Copyright  Oracle Corporation, All rights reserved. 1 Oracle Architectural Components.
Oracle Database 11g’s Result Cache Rob van Wijk 28 October 2010.
Oracle Tuning Ashok Kapur Hawkeye Technology, Inc.
9 Storage Structure and Relationships. 9-2 Objectives Listing the different segment types and their uses Controlling the use of extents by segments Stating.
Anton TopurovIT-DB 23 April 2013 Introduction to Oracle2.
Andmebaaside tarkvara Tarkvara, mille abil töötab andmebaasi mootor.
Database structure and space Management. Database Structure An ORACLE database has both a physical and logical structure. By separating physical and logical.
Introduction to Oracle. Oracle History 1979 Oracle Release client/server relational database 1989 Oracle Oracle 8 (object relational) 1999.
Outline Introduction to Oracle Memory Structures SGA, PGA, SCA The Specifics of the System Global Area (SGA) Structures Overview of Program Global Areas.
Week 3 Lecture 2 Basic Storage Concepts and Settings.
D Copyright © Oracle Corporation, All rights reserved. Loading Data into a Database.
#.6 Sampling Kyle Hailey
1 Copyright © 2005, Oracle. All rights reserved. Introduction.
INTRODUCTION TO ORACLE DATABASE ADMINISTRATION Lynnwood Brown President System Managers LLC Introduction – Lecture 1 Copyright System Managers LLC 2003.
Managing Tablespaces and Data Files
10 Managing Rollback Segments Objectives Planning the number and size of rollback segments Creating rollback segments using appropriate storage.
Over view  Why Oracle Forensic  California Breach security Act  Oracle Logical Structure  Oracle System Change Number  Oracle Data Block Structure.
Preface 1Performance Tuning Methodology: A Review Course Structure 1-2 Lesson Objective 1-3 Concepts 1-4 Determining the Worst Bottleneck 1-5 Understanding.
Database structure and space Management. Database Structure An ORACLE database has both a physical and logical structure. By separating physical and logical.
Oracle Architecture - Structure. Oracle Architecture - Structure The Oracle Server architecture 1. Structures are well-defined objects that store the.
3 Copyright © 2004, Oracle. All rights reserved. Creating an Oracle Database.
SGA (System Global Area) Oracle Database Server Architecture.
Dale Roberts 1 Department of Computer and Information Science, School of Science, IUPUI Dale Roberts, Lecturer Computer Science, IUPUI
3 Copyright © 2004, Oracle. All rights reserved. Database Architecture Comparison.
8 Copyright © 2007, Oracle. All rights reserved. Implementing SecureFile LOBs.
5 Copyright © 2005, Oracle. All rights reserved. Managing the Oracle Instance.
Oracle Database Architectural Components
Vea haldus ja logiraamat hajutatud süsteemides Enn Õunapuu
1 Chapters 19 and 20  Ch. 19: By What Authority? Users Roles Grant and revoke Synonyms  Ch. 20: Changing the Oracle Surroundings Indexes Clusters Sequences.
Chapter 21 SGA Architecture and Wait Event Summarized & Presented by Yeon JongHeum IDS Lab., Seoul National University.
Introduction To Oracle
Database structure and space Management
Database Tuning - User and Rollback Data Spaces, Recovery, Backup
Kombinatoorsete süsteemide disain
DATABASE LINK DISTRIBUTED DATABASE.
Database structure and space Management
Süsteemid ja protsessid sinu arvutis
ANDMEBAASIDE MONITOORIMINE
BizTalk Martin Maripuu Integratsiooni-arhitekt
אבטחת נתונים בסביבת SQL Data Security
Klient-server rakendustes (hajutatud rakendustes)
Introduction To Oracle 10g
Oracle Memory Internals
Managing Tablespaces and Data Files
TrueSight Capacity December 13, 2018 Architecture Review Mike West.
Introduction of Week 13 Assignment Discussion
ISYS366, Oracle Disk Internals
CS347 Spring 2017 – Quiz 5 Preparation - Solutions UTEID _________
Database administration
Presentation transcript:

ANDMEBAASIDE MONITOORIMINE PRIIT RASPEL

ANDMEBAASIDE MONITOORIMISE OLEMUS Andmebaasi monitoorimine on protsess, mille käigus jälgitakse andmebaasis toimuvaid füüsilisi (!) protsesse. Jälgitakse “nappide” ressursside (ära)kasutamist veendumaks, et süsteemi töövõime tagamiseks piisav reserv on saadaval. Monitoorimist ei saa teha “käsitsi”. Selleks tuleb kasutada selleks ettenähtud spetsiaaltarkvara.

MONITOORIMISE TARKVARA Igal andmebaasisüsteemil on selleks tavaliselt oma vahendid (aga mitte alati) Saadaval on “sõltumatute tarkvaratootjate” poolt loodud vahendeid, mis on kirjutatud nii ühe kindla tootja andmebaasisüsteemiga loodud andmebaaside monitoorimiseks või siis ka selliseid, mille abil on võimalik monitoorida mitmete erinevate tootjate poolt loodud andmebaasisüsteeme.

MÕNED MONITOORIMISE VAHENDID Karma - Oracle Database Monitoring system; open source; valmistaja - iHeavy Inc; http://iheavy.com/topics.php?op=viewtopic&topic=11 Quest Software – Oracle, DB2, SQLServer; süsteemide pere erinevate probleemide lahendamiseks http://www.quest.com/solutions/database_management.asp AppDancer/FA – Networ Monitoring, SQLServer & SQL Excahange Server; valmistaja AppDancer Networks; http://www.appdancer.com/appdancer1.htm SQL Power Tools Inc – süsteemide pere SQL AB-de monitoorimiseks; http://www.sqlpower.com/ Precise/indepth – Oracle, DB2, SQL Server; valmistaja - Precise software solutions; http://www.precise.com/

MONITOORITAVAD RESSURSID OP-mälu kasutamine (% of memory load): süsteemne (globaalne piirkond) piirkond protsesside piirkond Kettaruumi kasutamine (free storage): süsteemsed piirkonnad (system area) tabeleid sisaldavad piirkonnad (user area) logi-piirkond (log area)

OP-MÄLU KASUTAMINE OP-mälu reeglipärane toimimine on andmebaasi jõudluse tagamise võtmeküsimus. Tuleb pidevalt jälgida op-mälu kasutamist Oluline, et op-mälus olevad AB-mootoriga seotud mälupiirkonnad on määratud selliselt, et nad ei hakka swappima; nii pea kui mingit mälu osa hakatakse swappima on kõik pingutused jooksnud tühja

OP-MÄLU MONITOORIMINE ORACLE’s 1. Monitooritav osa Oracle’s on tähtsaim osa op-mälust, mida peab monitoorima, SGA (System Global Area) Monitoorida on mõtet SGA suurust ja sellekasutatuse %-i.

OP-MÄLU MONITOORIMINE Oracle’s 2. Baasstruktuuride loomine CREATE TABLE dba$resource_limit (timestamp DATE, resource_name VARCHAR2(30), current_utilization NUMBER, max_utilization NUMBER, initial_allocation VARCHAR2(10), limit_value VARCHAR2(10)); CREATE TABLE dba$sgastat pool VARCHAR2(30), name VARCHAR2(30), bytes NUMBER);

OP-MÄLU MONITOORIMINE Oracle’s 3. Limiitide hetkeväärtuste (korduv) registreerimine INSERT INTO dba$resource_limit (timestamp, resource_name, current_utilization, max_utilization, initial_allocation, limit_value ) SELECT TRUNC(SYSDATE), resource_name, current_utilization, max_utilization, initial_allocation, limit_value FROM v$resource_limit;

OP-MÄLU MONITOORIMINE Oracle’s 4. Staatuste hetkeväärtuse (korduv) registreerimine INSERT INTO dba$sgastat (timestamp, pool, name, bytes ) SELECT TRUNC(SYSDATE), pool, name, bytes FROM v$sgastat;

KETTARUUMI KASUTAMINE Andmebaasi kettaruum on tavaliselt kas: operatsioonisüsteemi failid ja/või ketta partitsioonid Kõik failid ja partitsioonid on registreeritud andmebaasiserveris (table-space); Need on “käsitsi” eraldatud piirkonnad. On võimalik ka automaatne mälu eraldus (Oracle AUTOEXTEND)

KETTARUUMI MONITOORIMINE Oracle’s 1. Ressursi ammendumise päring (NEXT_EXTENT) (millistel segmentidel on oht järgmise extendi loomisel ületada pideva vaba mälu piir) SELECT owner, s.tablespace_name, segment_name, s.bytes, next_extent, MAX(f.bytes) as largest FROM dba_segments s,dba_free_space f WHERE s.tablespace_name = f.tablespace_name(+) GROUP BY owner, s.tablespace_name, segment_name, s.bytes, next_extent HAVING next_extent*2>largest

KETTARUUMI MONITOORIMINE Oracle’s 2. Ressursi ammendumise päring (MAX_EXTENT) (millised segmendid on jõudnud lähedale oma MAX_EXTENT väärtusele) SELECT owner, tablespace_name, segment_name, bytes, extents, max_extents FROM dba_segments WHERE extents*2 > max_extents

KETTARUUMI MONITOORIMINE Oracle’s 3. Table-space ajaloo jälgimise struktuuri loomine CREATE TABLE dba_tablespace_history ( timestamp DATE, tablespace_name VARCHAR2(30), num_of_files NUMBER, num_of_blocks NUMBER, num_of_bytes NUMBER ) ;

KETTARUUMI MONITOORIMINE Oracle’s 4. Segmentide ajaloo jälgimise struktuuri loomine CREATE TABLE dba_segments_history (timestamp DATE, owner VARCHAR2(30), segment_name VARCHAR2(30), partition_name VARCHAR2(30), segment_type VARCHAR2(17), tablespace_name VARCHAR2(30), bytes NUMBER, blocks NUMBER, extents NUMBER ) ;

KETTARUUMI MONITOORIMINE Oracle’s 5. Table-space ja segmentide ajaloo kogumine INSERT INTO dba_tablespace_history SELECT TRUNC(sysdate), tablespace_name, count(*), sum(blocks), sum(bytes) FROM dba_data_files GROUP BY TRUNC(sysdate),tablespace_name; INSERT INTO dba_segments_history SELECT TRUNC(sysdate), owner, segment_name, partition_name, segment_type, Tablespace_name, bytes, Blocks, extents FROM dba_segments;

TÄNAN TÄHELEPANU EEST!