1. Trang chủ
  2. » Công Nghệ Thông Tin

Oracle Database 10g: Managing the Self-Managing Database Certified Oracle 10g Technician ppt

98 3,1K 0
Tài liệu được quét OCR, nội dung có thể không chính xác
Tài liệu đã được kiểm tra trùng lặp

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

THÔNG TIN TÀI LIỆU

Thông tin cơ bản

Tiêu đề Oracle Database 10g: Managing the Self-Managing Database
Chuyên ngành Database Management
Thể loại PPT
Định dạng
Số trang 98
Dung lượng 3,56 MB

Các công cụ chuyển đổi và chỉnh sửa cho tài liệu này

Nội dung

Automatic, two-level parallelism — Direct Path for inter-partition parallelism — External Tables for intra-partition parallelism — Simple: parallel= — Dynamic: Workers can be added a

Trang 2

How DBAs Spend Their Time?

12%

Maintain Software

Load Data 6%

System

Management

eke yo

Trang 3

How DBAs

Maintain Software 6%

Configure 12%

Load Data 6%

Ø#“? 77777

Trang 4

Softw are Installation

¢ Fast lightweight install

— Major redesign of installation process

— Single CD, 20 Minutes

— CPU, memory, disk space consumption greatly reduced

— Extremely lightweight client install (3 files) using Oracle Instant

Client

¢ Automation of All Pre and Post Install Steps

— Validate OS Configuration, patches, resource availability etc

— Configure all components (listeners, database, agent, OMS, OID etc.) for automatic startup and shutdown

e Enhanced silent install

[raining Center

Trang 5

Simplified Creation &

Configuration

Greatly reduced database creation time using

pre-configured, ready-to-use database 90% reduction of initialization parameters: < 30 Basic parameters

Automatically setup common tasks, e.g backups

Automatically configures LDAP server Automatic Shared Server Set-up

Easy Connect Naming

eat

0171/27 217/0 01///7

Trang 6

Basic Parameters

compatible cluster_database processes db block size sessions sga_target pga_aggregate_target control_ files nis_language db name nis_ territory db_recovery_file_dest

db domain remote_listener shared_ servers db_recovery_file_dest_size instance_number

7/20 Jaa ors 0171/27 217/0 01///7

Trang 7

simplified Upgrade

Pre upgrade checks (e.g parameter settings) Post upgrade status checks

Time estimator Re-startable

Guide administrators in using best practices

Trang 8

administration and oe

mM 6 4 ike rl ‘a ê after fe atabase space _ tươnn

¬ su

Estimated Crash Recov

Prob T spaces : nos Es

na Disabled

Listener discovery, configuration & monitoring

Alert Triggered May 30, 2003 4:2

Trang 9

How DBAs

Maintain Software 6%

Configure 12%

Load Data 6%

Ø#“? 77777

Trang 10

Data Pump: What Is it?

Server-based facility for high performance loading and unloading of data and metadata Callable: DBMS _DATAPUMP Internally uses DBMS_METADATA

Data written in Direct Path stream format Metadata

Trang 11

Features: Performance!!

Automatic, two-level parallelism

— Direct Path for inter-partition parallelism

— External Tables for intra-partition parallelism

— Simple: parallel=<number of active threads>

— Dynamic: Workers can be added and removed from a running

job in Enterprise Edition

— Index builds automatically “parallelized” up to degree of job

Simultaneous data and metadata unload single thread of data unload: 1.5-2X exp single thread of data load: 15X-40X imp With index builds: 4-10X imp

[raining Center

Trang 12

Features: Checkpoint / Restart

Job progress recorded in a “Master Table”

May be explicitly stopped and restarted later:

— Stop after current item finishes or stop immediate

Abnormally terminated job Is also restartable Current objects can be skipped on restart if problematic

ø? 77777

Lane Dg

Training Center

Trang 13

x=

‘a

Per-worker status showing current object and percent done

Initial job Soace estimate and overall percent done

Job state and description

Work-in-progress and errors

I enter

Trang 14

Features: Network Mode —

VS

Network import: Load one database _-

directly from another :

Network export: Unload a remote database to a local dumpiile set

— Allows export of read-only databases

Data Pump runs locally, Metadata API runs remotely

Uses DB links / listener service names, not pipes Data

is moved as ‘insert into <local table> select from <remote table>@service name’

Direct path engine is used on both ends Its easy to swamp network bandwiath: Be careful!

Trang 15

Features: Fine-Grained Object Selection

¢ All object types are supported tor both operations:

export and import Exclude: Specified object types are excluded from the operation

Include: Only the specified object types are included

E.g, just retrieve packages, functions and procedures More than one of each can be specified, but use of both

is prohibited by new clients Both take an optional name filter for even finer granularity:

— INCLUDE PACKAGE: “LIKE ‘PAYROLL%'’ ‘

— EXCLUDE TABLE: “IN (‘FOO’,’BAR’, )’ “

Trang 16

New Clients - expdp / impdp

`,

Similar (but not identical) look and feel to exp / imp

All modes supported: full, schema, table, tablespace, transportable Superset of exp / imp

¢ If privileged, attach to and control other users’ jobs

Trang 17

New Clients - expdbp / Impdp

HÙMC

nh

Oracle [raining Center

STOP _JOB{=IMMEDIATE}: Stop job, leaving it restartable

Immediate doesn't wait for workers to finish current work

items they'll be re-done at restart START JOB: Restart a previously stopped job KILL_JOB: Stop job and delete all its resources (master table, dump files) leaving it unrestartable

CONTINUE: Leave interactive mode, continue logging

EXIT: Exit client, leave job running

7/20 Jaa ors 0171/27 217/0 01///7

Trang 18

Features: Other Cool Stuff

wr i

Can extract and load just data, just metadata or both I

SQLFILE operation generates executable DDL script 3

lí a table pre-exists at load time, you can: skip it (default), replace it, truncate then load or append to It

Space estimates based on allocated blocks (default) or

Statistics if available

Enterprise Manager interface integrates 9i and 10¢

Callable!

Trang 19

Large Internet Company

2 Fact Tables: 16.2M rows, 2 Gb

Trang 20

Keep in Mind: `

Designed for *big* jobs with lots of data

— Metadata performance is about the same

— More complex infrastructure, longer startup

XML ts bigger than DDL, but much more flexible

Data format in dump files is ~15% more

compact than exp

Import subsetting is accomplished by pruning the Master Table

Trang 21

Original exp and Imp

as

forever to allow loading of V5 — V9i dump files

Original exp will ship at least in 10g, but may

not support all new functionality

9i exp may be used for downgrades trom 10g

Original and Data Pump dump file formats are

not compatible

Oracle ABEL

I enter

Trang 22

How DBAs Spend Their Time?

Install Create &

Trang 24

Solution: Self-Managing Database

Trang 25

Common Manageability Infrastructure:

Automatic Workload Repository

Tasks

Alerts Framework

of the Database Automatic collection access

of important statistics

Oracle

Trang 26

Automatic Workload Repository

SYSAUX

Trang 27

Statistics Level

STATISTICS LEVEL

diagnostics

Training Center

Trang 28

Configuring The Workload Repository

Home ` À Configuration y Alerts \ Management Sy

Snapshot Retention (days) 7 Snapshot Interval (minutes) 30

Collection Level TYPICAL Next Snapshot Capture Time Apr 4, 2003 4:00:28 AM

‹ Edit )

NumberofSnapshots 164 Number of Baselines 2 Latest Snapshot Time Apr 4, 2003 3:30:28 AM Earliest Snapshot Time Mar 31, 2003 5:58:31 PM

Oracle

Training Center

Trang 29

Manually Creating Snapshots

ORACLE Setup Preferences Help

Home à ` Configuration ¥ Alerts i Jobs y \íanagernent Syst:

Host: dlsun1372.us.nracle cam > Database: svrman_disuni9/2 > VYorkload Repository > Snapshots

A, snapshot is a collection of database statistics at a single point in time You can use the information in snapshots to diagnose database problems

select a beginning snapshot from the list Then choose an action to perform, and click ‘Go’

Trang 30

Database Feature Usage Metric Collection

maximum number of data files,

DBA_FEATURE_USAGE_STATISTICS DBA HIGH WATER MARK_ STATISTICS

HOST CONFIGURATION INFO

EM Repository: ECM

Trang 31

Common Manageability Infrastructure:

Trang 32

Server Alerts

Automatic Notification Alerts

Training Center

Trang 33

Server Alerts Delivery Process

Trang 34

server-Generated Alert Types

Non- Too Old Suspended Free Space

Trang 36

EM Interface to Alerts

SY¥YSMAN) - Database: rv foTrs™ AN) - Database:

2Ä0racle Enterprise Manag‹

Performance Administration Maintenance

File Edit View Favorites Tools Help

4 Back v > ~ & it] a Asearch (4] Favorites đ}Meda c4 | EÀx = = =]

¡ Address | ©} http: {/dsunrap22:7777/em/console/database/instance/sitemap?target=mgmt10i_030530_dsunrdf03&ctxType=Databases&type=oracle_database&event=doLoad

|Links @]EM-SG4 @)EM- SQL

Up Since Jun 3, 2003 3:47:11 PM Time Zone PDT

Availability (%) 99.22

Using CPU (33.8%)

I rngrntt oi

i Other Instance Name mgmt10i

Version 10.1.0.0.0 Host dsunrdf03.us Oracle Home /ade/oracle mamt10i/oracle

Alert Log Jun 3, 2003 3:49:04 PM

Problem Tablespaces Fragmentation Issues Dump Area Used (%)

mae =m me Ññ Ayz;i=e

act $< - vice

ADDM Findings 3 Configuration

vailability Estimated Crash Recovery Time

(seconds) Last Backup n/a Archiving Disabled Archive Area Used (%) n/a

31

x Tablespaces Full

Call

Mnc<2¬ 10a

Viessa ye

TBS

the latest ADDM analysis

time per call is 0.56 seconds Click here to see

Alert Triggered Value Jun 2, 2003 122 12:19:14 PM 10:30:20 AM Jun 3, 2003 5:56:08 0.12 Jun 4, 2003

PM 10:45:07 AM

¬: imme Jun 4, 2003

Trang 37

setting Alert Thresholds

ORACLE

Database: syrman dlsun14/2 > Edit Metric Thresholds

Use these metrics to monitor conditions as they reach their critical and

warning thresholds Alerts are generated when thresholds are reached

Change the thresholds as required

Related Link Response to Target Down

Active Sessions V¥aiting: l/O (%) >

Active Sessions VVaiting: Other (%) >

Archive Area Used (%) >

Archiver Hung Alert Log Error Contains Archiver Hung Alert Log Error Status >

Audited User Blocking Session Count

Broken Job Count

Buffer Cache Hit (%)

Oracle

Training Center

Setup Preferences Help Logout

Home ìà 1 Configuration y Alerts \¿ Jobs \ Management System ì

Trang 38

Common Manageability Infrastructure:

rm KP " LIC il L4

Trang 39

Automatic Optimizer Statistics Collection

DBA tracks and

right objects

° su Resolves

Z ` two issues

Automatic statistics Determines

Training Center

Trang 40

Gather Statistics dob

MATNTENANCE WNITNDOW GROUP

Trang 41

Adding New Tasks Using EM

ORACLE Setup Preferences H

@ ADV TASK 00002 SYSTEM Jun 4, 2003 4:46:01 PM DEFAULT JOB CLASS

C ADV TUNETASK1 SYSTEM Jun 11, 2003 4:45:32 PM DEFAULT JOB CLASS

| Running Unscheduled History

Home | Targets | Configuration | Alerts | Jobs | Management System | Setup | Preferences | Help | Logout

Copyright © 1996, 2003, Oracle All rights reserved

About Oracle Enterprise Manager

Oracle

Training Center

Trang 42

Common Manageability Infrastructure:

Trang 43

Advisory Framework

SQL Tuning

data source integration

NS

Common Seamless

Trang 44

Guided Tuning Session

Create an advisor task

Adjust task parameters

Enterprise Manager

Console ane analysis

Accept results?

Trang 45

ORACLE ie Preteens teh

Horne » Targets Configuration y» Alerts » Managemen Sys

' | Oe] f ftÍtg itor Management >) petul Mreferences | rele

1995, 2001 wece Abrgis reserved

Trang 47

Performance Monitoring Solutions

Trang 48

ADDM Performance Monitoring

ADDM Results

lraining Center

Trang 49

ADDM Problem Classification System

Trang 50

Accessing ADDM Advice

Database: svrman_ dlsun1972

Home | Performance Administration Maintenance

`

Latest Data Collected From Target Jun 10, 2003 8:04:27 PM ( Refresh )

View Data |Real Time: Manual Refresh xị

(Last 24 hours) 5 LỊ \WWaiting: Other (78 4%)

Instance Name svrman

Archive Area Used (%) đÀ 78

Trang 51

ADDM Recommendations

Host: usunrdiZ) > Database: mamtiUi_usunrdi20 > Advisor Central > ADDM Task » ADDM Finding Details

ADDM Finding Details

Analysis start Time Jun 10, 2003 9:30:30 AM

Analysis Duration (minutes) 29.75

Finding Read and write contention on database blocks was consuming significant database time

Database Time (minutes) 274.16 Impact (minutes) 98.23 Impact (%) 35.83 Recommendations

Show All Details | Hide All Details

Action Consider using ORACLE's recommended solution of bitmapped segments in a locally managed tablespace for the tablespace “USERS

containing the database object “SCOTT.TOTO" with object id 41560

Trang 52

Performance Monitoring Solutions

Trang 53

Performance Management Approach

Trang 54

Database Performance Page

Host: disuni9/2.us.oracle com » Database: svrman_disun1972

ome Administration Maintenance

Click on an area of a graph or legend to get more detail View Data | Real Time: 15 Second Refresh |

CO ee Em bi mm

Concurrency Commit Application

Maximum CPU ae ME Administrative

Trang 55

Concurrency Wait Class: Drill Down

buffer busy waits

@ latch: cache buffers chains

B latch: library cache

A 4 latch: In memory undo latch

latch: library cache lock library cache pin

| Top SQL | Tor Sessions

Total Sample Count: 1385 Total Sample Count: 1385

Trang 57

Automate the SQL Tuning Process

High-load SQL Tuning

Training Center

Trang 58

SQL Tuning Advisor Overview

Mode

Oracle

Training Center

Comprehensive SQL Tuning

Detect

Stale or Missing Statistics

Plan Tuning (SQL Profile)

Add Missing Index Run Access Advisor Restructure SQL

Ø#“? 77777

Trang 59

Plan Tuning Flow

Optimizer (Tuning Mode)

Trang 60

SQL Tuning Advisor Usage Model

Automatic Selection

Trang 61

Common Infrastructure

Trang 62

Overview of Autom atic Shared

Memory Management

a

Qyannnnnnnnnnnnn ÖSnnnnnnnnmnnnmk,

' Database : Redo Log

: Buffer Cache : Buffer

Java Pool : Fixed SGA : Large Pool

Trang 63

Benefits of Autom atic Shared

Memory Management

DB_CACHE SIZE SHARED POOL SIZE LARGE POOL_SIZE JAVA_POOL_SIZE

Total SGA size

Trang 64

Using EM to Configure

Automatic Shared Memory Management

ORACLE Setup Preferences Help Logout

Home À B Configuration Aleris \/ Jobs \/ ManagementSystem `

in memory when an Oracle database instance is started

Automatic Shared Memory Management Disabled | Enable )

Buffer Cache 16 |MB +} Advice ) fe à BH Shared Pool (86.7%) Large Pool |0 ì L] Buffar Cache (8.7%)

j i) Large Pool (0%) Java Pool 16 | ME xị 4 B Java Pool (6.7%)

Trang 65

Solution: Self-Managing Database

Trang 66

Segment Shrink Overview

Trang 67

How Can | Shrink Segments?

ALTER SHRINK SPACE [CASCADE]

ALTER TABLE employees ENABLE ROW MOVEMENT; (1)

ALTER TABLE employees SHRINK SPACE CASCADE; (2)

Training Center

Ngày đăng: 14/03/2014, 13:20

TỪ KHÓA LIÊN QUAN