Professional Documents
Culture Documents
2
Performance Baselines
3
SQL Performance Tuning Tools
4
SQL Performance Tuning Tools
5
How to Create a SQL-testcase Using the DBMS_SQLDIAG Package [Video] (Doc ID 727863.1)
How to Create a SQL-testcase Using the DBMS_SQLDIAG Package [Video] (Doc ID 727863.1)
How to Create a SQL-testcase Using the DBMS_SQLDIAG Package [Video] (Doc ID 727863.1)
6
SQL Performance Tuning Tools
7
Database Performance Tuning Tools
Errorstack Trace
Event tracing for specific errors like ORA-4020, ORA-4021, ORA-942, etc.
Useful to identify the SQL causing the error when such data is not
available otherwise
Useful to collect call stack data to understand what the process is doing
8
Database Performance Tuning Tools
9
Database Performance Tuning Tools
10
Database Hang Problem
11
Database Performance Tuning Tools
awrinfo.sql script
Very useful to validate SYSAUX Tablespace space usage
problem
Slower performance on AWR SQLs
Slower Stats gathering on AWR objects
AWR repository cleanup problems
12
Database Performance Tuning Tools
AWR/ASH/ADDM Reports
Generate AWR and ASH reports in HTML format, ADDM report
in TEXT format for upto 1 hour duration
Generate Individual AWR reports from each RAC Instance
instead of Global AWR report
Generate multiple reports from Slower Performance Periods in
HTML format
ASH Report provides Top 5 slower running SQLs
ADDM report provides built-in Cause-Effect analysis for any
performance period for a quick check
13
Database Performance Tuning Tools
14
Serverside Recommended Tools
OS Watcher
Used to verify Server side performance
Highly recommended to be pre-installed
Uses available OS specific commands
truss, tusc, strace, etc.
Used to trace a slower process
Use options to get DELTA Time in calls (i.e., -D with truss)
Rda Used to collect Basic OS data
Orachk Used to verify s/w configuration
15
Application Testing and Tuning Tools
16
Database Parameter Tuning Recommendations
These few parameter changes can help alleviate most of Mutex, Latch and Library Cache
Lock waits in any database
AMM Feature (MEMORY_TARGET > 0) is not Compatible with HugePages or LargePages
features of the OS
ASMM Feature usage Highly recommended (SGA_TARGET > 0)
17
System Statistics Recommendation
18
System Statistics Recommendation
19
HugePages Recommendations
20
LargePages Recommendations
21
$ sqlplus / as sysdba EXEC DBMS_STATS.GATHER_FIXED_OBJECTS_STATS (); EXEC DBMS_STATS.GATHER_DICTIONARY_STATS ();
22
Database Statistics and Histogram
23
Schema Objects Statistics and Histogram
24
Oracle Application Specific Stats Gathering
PeopleSoft Apps
Improving Statistics in Oracle RDBMS for PeopleSoft Enterprise
(Doc ID 1322888.1)
Siebel CRM Apps
Performance Tuning Guidelines for Siebel CRM Application on
Oracle Database (Doc ID 781927.1)
EBS Apps
Best Practices for Gathering Statistics with Oracle E-Business
Suite (Doc ID 1586374.1)
25
Lock Objects Statistics
26
Keep up with Auto Stats Gathering
27
Keep up with Auto Stats Gathering
28
Backup Strategy
RMAN Backup
IO intensive operation for a Large Database
Use incremental backup strategy using Block Change Tracking
(BCT) option
Incremental Full Backup
Backup in Level 0 and 1
Reduces lot of unnecessary IO activities in the Storage System to
maintain acceptable IO performance (<= 10 ms IO service time per
IO call)
29
Patch Recommendations
30
Reference Documents
31
Questions?
Q&A
32