Download presentation
Presentation is loading. Please wait.
Published byStanley Simmons Modified over 9 years ago
1
Database Advisors Automatic Database Diagnostic Monitor ( ADDM )
2
Database Advisors Automatic Database Diagnostic Monitor ( ADDM ) SQL Tuning Advisor
3
Database Advisors Automatic Database Diagnostic Monitor ( ADDM ) SQL Tuning Advisor SQL Access Advisor
4
Database Advisors Automatic Database Diagnostic Monitor ( ADDM ) SQL Tuning Advisor SQL Access Advisor Memory Advisor
5
Database Advisors Automatic Database Diagnostic Monitor ( ADDM ) SQL Tuning Advisor SQL Access Advisor Memory Advisor Segment Advisor
6
Database Advisors Automatic Database Diagnostic Monitor ( ADDM ) SQL Tuning Advisor SQL Access Advisor Memory Advisor Segment Advisor Undo Advisor
7
Automatic Database Diagnostic Monitor ( ADDM ) Hardware Issues CPU Bottlenecks Excessive Parsing Buffer Sizing Connection Management Real Application Cluster
8
ADDM Setup Enabled at Database Creation STATISTICS_LEVEL ( TYPICAL or ALL ) DBIO_EXPECTED (Hardware Specific) Snap Shot Once an Hour Runs Against AWR
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
10
Running ADDM using DBMS_ADVISOR APIs Create advisor task ( CREATE_TASK )
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
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 )
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 )
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 )
15
SQL Access Advisor Analyze Schema Design Scenarios Single Statements Multiple Statement Workloads Recommendations Evaluated in Context Ran with No Impact
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
17
Memory Advisor Access Information Through OEM Disabled with Automatic Memory Tuning
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
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
20
SQL Tuning Advisor SQL Structure Analysis Access Path Analysis Statistics Analysis SQL Profiling
21
SQL Tuning Advisor SQL Structure Analysis Access Path Analysis Statistics Analysis SQL Profiling
22
Manual SQL Tuning Advisor Runs DBMS_SQLTUNE.CREATE_TUNING_TASK DBMS_SQLTUNE.EXECUTE_TUNING_TASK DBMS_SQLTUNE.REPORT_TUNING_TASK
23
SQL Tuning Sets ( STS ) One or More SQL Statements Loaded from AWR, Cursor Cache, User
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
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
26
What is Undo Retention Maintains Old Committed Data Used for Read Consistency Used for Flashback Features
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
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
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.