Database Advisors Automatic Database Diagnostic Monitor ( ADDM )

Download Database Advisors Automatic Database Diagnostic Monitor ( ADDM )

Post on 26-Dec-2015

213 views

Category:

Documents

1 download

Embed Size (px)

TRANSCRIPT

  • Slide 1
  • Database Advisors Automatic Database Diagnostic Monitor ( ADDM )
  • Slide 2
  • Database Advisors Automatic Database Diagnostic Monitor ( ADDM ) SQL Tuning Advisor
  • Slide 3
  • Database Advisors Automatic Database Diagnostic Monitor ( ADDM ) SQL Tuning Advisor SQL Access Advisor
  • Slide 4
  • Database Advisors Automatic Database Diagnostic Monitor ( ADDM ) SQL Tuning Advisor SQL Access Advisor Memory Advisor
  • Slide 5
  • Database Advisors Automatic Database Diagnostic Monitor ( ADDM ) SQL Tuning Advisor SQL Access Advisor Memory Advisor Segment Advisor
  • Slide 6
  • Database Advisors Automatic Database Diagnostic Monitor ( ADDM ) SQL Tuning Advisor SQL Access Advisor Memory Advisor Segment Advisor Undo Advisor
  • Slide 7
  • Automatic Database Diagnostic Monitor ( ADDM ) Hardware Issues CPU Bottlenecks Excessive Parsing Buffer Sizing Connection Management Real Application Cluster
  • Slide 8
  • ADDM Setup Enabled at Database Creation STATISTICS_LEVEL ( TYPICAL or ALL ) DBIO_EXPECTED (Hardware Specific) Snap Shot Once an Hour Runs Against AWR
  • Slide 9
  • Diagnosing Database Performance Issues with ADDM Invoke Automatic Database Diagnostic Monitor ( ADDM ): From Oracle Enterprise Manager ( OEM ) From SQL prompt Analyze results: Manually using $ORACLE_HOME/rdbms/admin/addmrpt.s ql script Using DBMS_ADVISOR package
  • Slide 10
  • Running ADDM using DBMS_ADVISOR APIs Create advisor task ( CREATE_TASK )
  • Slide 11
  • Running ADDM using DBMS_ADVISOR APIs Create advisor task ( CREATE_TASK ) Set required task parameters ( SET_TASK_PARAMETER ) START_SNAPSHOT END_SNAPSHOT DB_ID INSTANCE DBMI_EXPECTED
  • Slide 12
  • Running ADDM using DBMS_ADVISOR APIs Create advisor task ( CREATE_TASK ) Set required task parameters ( SET_TASK_PARAMETER ) START_SNAPSHOT END_SNAPSHOT DB_ID INSTANCE DBMI_EXPECTED Execute task ( EXECUTE_TASK )
  • Slide 13
  • Running ADDM using DBMS_ADVISOR APIs Create advisor task ( CREATE_TASK ) Set required task parameters ( SET_TASK_PARAMETER ) START_SNAPSHOT END_SNAPSHOT DB_ID INSTANCE DBMI_EXPECTED Execute task ( EXECUTE_TASK ) Create report ( GET_TASK_REPORT )
  • Slide 14
  • Running ADDM using DBMS_ADVISOR APIs Create advisor task ( CREATE_TASK ) Set required task parameters ( SET_TASK_PARAMETER ) START_SNAPSHOT END_SNAPSHOT DB_ID INSTANCE DBMI_EXPECTED Execute task ( EXECUTE_TASK ) Create report ( GET_TASK_REPORT ) View tasks ( DBA_ADVISOR_TASKS )
  • Slide 15
  • SQL Access Advisor Analyze Schema Design Scenarios Single Statements Multiple Statement Workloads Recommendations Evaluated in Context Ran with No Impact
  • Slide 16
  • Running ADDM using DBMS_ADVISOR APIs DBMS_ADVISOR.CREATE_TASK DBMS_ADVISOR.CREATE_SQLWKLD DBMS_ADVISOR.ADD_SQLWKLD_REF DBMS_ADVISOR.EXECUTE_TASK DBMS_ADVISOR.GET_TASK_SCRIPT
  • Slide 17
  • Memory Advisor Access Information Through OEM Disabled with Automatic Memory Tuning
  • Slide 18
  • Segment Advisor Identifies Segments with Reclaimable Space Scheduled Runs by Default Capable of Manual Runs Objects Selected Tablespaces with Space Issues Most Active Segments Highest Growth Rate Segments
  • Slide 19
  • Manual Run of Segment Advisor Create Task Assign Object to Task Set Task Parameter Time_limit Recommend_all Executing the Task View Results OEM DBA_ADVISOR_* views
  • Slide 20
  • SQL Tuning Advisor SQL Structure Analysis Access Path Analysis Statistics Analysis SQL Profiling
  • Slide 21
  • SQL Tuning Advisor SQL Structure Analysis Access Path Analysis Statistics Analysis SQL Profiling
  • Slide 22
  • Manual SQL Tuning Advisor Runs DBMS_SQLTUNE.CREATE_TUNING_TASK DBMS_SQLTUNE.EXECUTE_TUNING_TASK DBMS_SQLTUNE.REPORT_TUNING_TASK
  • Slide 23
  • SQL Tuning Sets ( STS ) One or More SQL Statements Loaded from AWR, Cursor Cache, User
  • Slide 24
  • SQL Tuning Sets ( STS ) One or More SQL Statements Loaded from AWR, Cursor Cache, User Change Analysis with Contextual Information User Schema List of Bind Values Basic Statistics Execution Plans
  • Slide 25
  • SQL Tuning Sets ( STS ) One or More SQL Statements Loaded from AWR, Cursor Cache, User Change Analysis with Contextual Information User Schema List of Bind Values Basic Statistics Execution Plans Transportable across databases
  • Slide 26
  • What is Undo Retention Maintains Old Committed Data Used for Read Consistency Used for Flashback Features
  • Slide 27
  • Undo Retention Tuning Length of Time (s) Evaluation Fixed Undo Tablespace Size Usage Statistics Undo Tablespace Size Current System Load AUTOEXTEND Longest-Running Query UNDO_RETENTION parameter
  • Slide 28
  • Viewing Undo Retention Period Query V$UNDOSTAT for last four days of data Query DBA_HIST_UNDOSTAT to go back beyond last four days

Recommended

View more >