Less13 Performance Tb3

  • Uploaded by: yairr
  • 0
  • 0
  • December 2019
  • PDF

This document was uploaded by user and they confirmed that they have the permission to share it. If you are author or own the copyright of this book, please report to us by using this DMCA report form. Report DMCA


Overview

Download & View Less13 Performance Tb3 as PDF for free.

More details

  • Words: 833
  • Pages: 24
Performance Management

Copyright © 2005, Oracle. All rights reserved.

Objectives

After completing this lesson, you should be able to do the following: • Use Enterprise Manager to monitor performance • Tune SQL by using the SQL Tuning Advisor • Tune SQL by using the SQL Access Advisor • Use Automatic Shared Memory Management (ASSM) • Use the Memory Advisor to size memory buffers • View performance-related dynamic views • Troubleshoot invalid and unusable objects

Copyright © 2005, Oracle. All rights reserved.

Performance Monitoring

Memory Memory allocation allocation issues issues Input/output Input/output device device contention contention

Resource Resource contention contention

? Application Application code code problems problems

DBA

Network Network bottlenecks bottlenecks

Copyright © 2005, Oracle. All rights reserved.

> Perf Mon Tuning Adv Access Adv Memory Stats Invalid Obj

Performance Monitoring

Copyright © 2005, Oracle. All rights reserved.

Performance Monitoring

Copyright © 2005, Oracle. All rights reserved.

Performance Monitoring

Copyright © 2005, Oracle. All rights reserved.

Performance Monitoring: Top Sessions

Copyright © 2005, Oracle. All rights reserved.

Performance Monitoring: Top Services

Copyright © 2005, Oracle. All rights reserved.

SQL Tuning Advisor: Overview

Automatic Tuning Optimizer

Perf Mon > Tuning Adv Access Adv Memory Stats Invalid Obj

Comprehensive SQL tuning

Statistics check optimization mode

Detect stale or missing statistics

Plan tuning optimization mode

Tune SQL plan (SQL profile)

Access analysis optimization mode

Add missing index Run access advisor

SQL analysis optimization mode

SQL Tuning Advisor

Restructure SQL

Copyright © 2005, Oracle. All rights reserved.

SQL Tuning Advisor Options and Recommendations

Copyright © 2005, Oracle. All rights reserved.

Using the SQL Tuning Advisor





Use the SQL Tuning Advisor to analyze SQL statements and obtain performance recommendations. Sources for SQL Tuning Advisor to analyze – Top SQL: Analyzes the top SQL statements currently active – SQL Tuning Sets: Analyzes a set of SQL statements you provide – Snapshots: Analyzes a snapshot – Baselines: Analyzes a baseline

Copyright © 2005, Oracle. All rights reserved.

Using the SQL Tuning Advisor: Example

Copyright © 2005, Oracle. All rights reserved.

SQL Tuning Advisor: SQL Statistics select count(*) from x where object_id < 340

select count(*) from x where object_id < 220

Each statement causes a hard parse.

Copyright © 2005, Oracle. All rights reserved.

SQL Tuning Advisor: Identifying Duplicate SQL

Bind variable candidates

Copyright © 2005, Oracle. All rights reserved.

Using the SQL Access Advisor

Copyright © 2005, Oracle. All rights reserved.

Perf Mon Tuning Adv > Access Adv Memory Stats Invalid Obj

Managing Memory Components •

Perf Mon Tuning Adv Access Adv > Memory Stats Invalid Obj

Automatic Shared Memory Management: – Is recommended to simplify management – Enables you to specify the total SGA memory through one initialization parameter – Enables the Oracle server to manage the amount of memory allocated to the shared pool, Java pool, buffer cache, streams pool, and the large pool



Manually setting shared memory management: – Sizes the components through multiple individual initialization parameters – Uses the Memory Advisor to make recommendations

Copyright © 2005, Oracle. All rights reserved.

Enabling Automatic Shared Memory Management (ASMM)

Click Enable to enable Automatic Shared Memory Management.

Copyright © 2005, Oracle. All rights reserved.

Manually Setting Shared Memory Management

Copyright © 2005, Oracle. All rights reserved.

Using the Memory Advisor

Copyright © 2005, Oracle. All rights reserved.

Dynamic Performance Statistics Systemwide

Session specific

… Access Adv Memory > Stats Invalid Obj

Service specific

V$SYSSTAT • statistic# • name • class • value • stat_id

V$SESSTAT • sid • statistic# • value

V$SERVICE_STATS • service_name_hash • service_name • stat_id • stat_name • value

V$SYSTEM_EVENT • event • total_waits • total_timeouts • time_waited • average_wait • time_waited_micro

V$SESSION_EVENT • sid • event • total_waits • total_timeouts • time_waited • average_wait • max_wait • time_waited_micro • event_id

V$SERVICE_EVENT • service_name • service_name_hash • event • event_id • total_waits • total_timeouts • time_waited • average_wait • time_waited_micro

Cumulative stats Wait events

Copyright © 2005, Oracle. All rights reserved.

Troubleshooting and Tuning Views

Instance/Database V$DATABASE V$INSTANCE V$PARAMETER V$SPPARAMETER V$SYSTEM_PARAMETER V$PROCESS V$BGPROCESS V$PX_PROCESS_SYSSTAT V$SYSTEM_EVENT Memory V$BUFFER_POOL_STATISTICS V$LIBRARYCACHE V$SGAINFO V$PGASTAT

Disk V$DATAFILE V$FILESTAT V$LOG V$LOG_HISTORY V$DBFILE V$TEMPFILE V$TEMPSEG_USAGE V$SEGMENT_STATISTICS Contention V$LOCK V$UNDOSTAT V$WAITSTAT V$LATCH

Copyright © 2005, Oracle. All rights reserved.

Invalid and Unusable Objects

Effect on Performance: • PL/SQL code objects are recompiled. • Indexes are rebuilt.

Copyright © 2005, Oracle. All rights reserved.

Perf Mon Tuning Adv Access Adv Memory Stats > Invalid Obj

Summary

In this lesson, you should have learned how to: • Use Enterprise Manager to monitor performance • Tune SQL using the SQL Tuning Advisor • Tune SQL using the SQL Access Advisor • Use Automatic Shared Memory Management • Use the Memory Advisor to size memory buffers • View performance-related dynamic views • Troubleshoot invalid and unusable objects

Copyright © 2005, Oracle. All rights reserved.

Practice Overview: Monitoring and Improving Performance This practice covers the following topics: • Detecting and repairing unusable indexes • Using the SQL Tuning Advisor • Using the Performance page in Enterprise Manager

Copyright © 2005, Oracle. All rights reserved.

Related Documents

Less13 Performance Tb3
December 2019 3
Less05 Storage Tb3
May 2020 16
Less04 Instance Tb3
December 2019 12
Less16 Recovery Tb3
December 2019 12
Less07 Schema Tb3
December 2019 13

More Documents from "yairr"

Less03 Db Dbca Mb3
December 2019 18
Less12 Proactivem Mb3
December 2019 11
Less17 Flashback Tb3
December 2019 18
Less14 Br Concepts Mb3
December 2019 13
Less04 Instance Tb3
December 2019 12
Less16 Recovery Tb3
December 2019 12