Anda di halaman 1dari 15


Performance Tuning with EM 10g

Ofir Manor Technology Specialist Oracle Corporation

Enterprise Manager 10g Automatic gathering of workload history (AWR) Automatic diagnosis of performance (ADDM) Manual diagnosis of performance with EM Further diagnosis and resolution with various advisors Whats New in 10g Release 2? Questions

Enterprise Manager 10g

New, cool web interface No client installation works from a browser Installed with the database Easy to use Supports the 10g new features Centralized version (Grid Control) VS Standalone version (DB Control)

Grid Control VS Database Control

Grid Control

Centralized solution, manages all your servers. Runs on a dedicated machine with centralized repository. Install one management agent per server, to manage all software (10g/9i db, listener, app server components) The agent should be installed before creating the database. Drill into a specific database to manage it.
Standalone process/service to manage a single 10g instance (no agent installation). Default URL: http:/server_name:5500/em

Database Control

Local repository SYSMAN schema Use EMCTL to manage (start/stop), if necessary.

Grid Control VS Database Control

Automatic Workload Repository (AWR)

Built-in feature of the database (not part of EM) The Data Warehouse of the Database repository of the workload history of the database. Capture of workload information snapshots:

Major extension of StatsPack Collects a wider range of data using new 10g views Automatic periodic snapshots (every hour by default) Efficient, fast capture
Workload History is saved for 7 days by default

Self-manages space requirements

Automatic Workload Repository (AWR)

Typical workloads should be saved as a baseline for future comparison Preserved Snapshots Sets Retention period should be set to hold at least one complete business cycle (week / month). STATISTICS_LEVEL should remain TYPICAL Database Performance Tuning Guide 10g Release 1 Chapter 5: Automatic Performance Statistics EM: Administration -> Automatic Workload Repository Demo

Automatic Database Diagnostic Monitor (ADDM)

A full self-diagnostic engine built inside the database. Runs automatically after every snapshot analyzes the workload since the previous snapshot. Identifies problem areas + non-problem areas. Provides performance findings and recommendation. Aims to minimize DB time - the cumulative time spent by the database server in processing user requests.

DB time includes wait time and CPU time of all non-idle user sessions

The impact of the findings and recommendations are all measured in time (seconds) and as a percent of DB time

Automatic Database Diagnostic Monitor (ADDM)

ADDM findings are ordered by impact (percent of DB time or total time) Each finding might have one or more recommendations, ordered by benefit, with an action and a rationale. Apply recommendation button, when appropriate, or links to a specific advisor

Example: running SQL Tuning Advisor for a specific SQL.

Database Performance Tuning Guide 10g Release 1 Chapter 6: Automatic Performance Diagnostics EM: Home -> Diagnostic Summary -> Performance EM: Performance -> Advisor Central Demo

Manual diagnosis of performance with EM the Performance tab

See what is happening now. Uses the same data resources as AWR and ADDM. See wait events group by class of the active sessions and drill into the problematic class: investigate top sessions and SQLs that relate to the wait class. Alternatively, directly investigate:

Top Consumers by session, client, service etc. Top SQL in a time window Locks and blocking sessions

Also, can investigate the history (from the AWR) Demo

Advisor Central
Home of various advisors ADDM What are the performance issues and how to fix them. SQL Tuning Advisor Analyze a single SQL or SQL workload, give tuning recommendations: Statistics missing? SQL Profiles?

Database Performance Tuning Guide 10g Release 1 Chapter 13: Automatic SQL Tuning

SQL Access Advisor analyze a workload, recommend to add (/drop) indexes and MVs.

Advisor Central
Segment Advisor find candidates for online shrink. Memory Advisors - PGA size (+ shared pool and buffer cache if automatic shared memory management is turned off for some reason). MTTR Advisor see how different MTTR target will affect the overall IO rate. Undo Advisor see how different undo retention time will affect undo storage space.

Enterprise Manager General Tips

Regional Settings Set Locale to English. Install the SVG plugin for your browser

Dont work on multiple tabs of EM in the same browser (some EM operations are stateful) Windows: Grant OS user Log on as a batch job with the OS Local Security Policy tool.

Whats New in 10g Release 2?

New, Easier to Use Performance Screens Enhanced Performance Self-Diagnostics

More powerful ADDM Current Activity Performance Analysis AWR Diff-Diff Reporting

Segment Advisor runs automatically during maintenance windows SGA-attach mechanism for performance data

Enables analysis of slow or hung systems