Professional Documents
Culture Documents
Performance Tuning
• To design a system and applications to realize performance gains we perform tuning.
– There are basically two forms of tuning
• Speed: Short response time
• Higher scalability : Higher load at a comparable response time
• Create a good initial design.
– Fewer waits
– Improved database availability
– Improved memory utilisation
– Improved instance hit percentages.
– Keep disk I/O to minimum.
• List tuning problems
• Decide between performance and safety.
Proactive Tuning Considerations
During Development
During Development of a new system,the
following order of tuning implementation is
recommended.
• Tune the design.
• Tune the application.
• Tune memory.
• Tune I/O.
• Tune contention.
• Tune the operating system.
Tuning Steps During Production
V$SESSION_WAIT
V$SESSION_EVENT V$EVENT_NAME • SID
• SID • Event number • Sequence number
• Event • Name • Event
• Total waits • Parameter 1 • Parameter 1/2/3 text
• Total timeouts • Parameter 2 • Wait time
• Time waited • Parameter 3 • Seconds in wait
• Average wait • State
• Maximum wait
Oracle Wait Events
• A collection of wait events provides
information on the sessions that had to wait
or must wait for different reasons.
• These events are listed in the
V$EVENT_NAME view, which has the
following columns:
– EVENT#
– NAME
– PARAMETER1
– PARAMETER2
– PARAMETER3
About 290 wait events are there in Oracle Server.
The V$EVENT_NAME View
SQL> SELECT name, parameter1, parameter2,
parameter3 FROM v$event_name;
V$SESSION_WAIT
V$SESSION_EVENT V$EVENT_NAME • SID
• SID • Event number • Sequence number
• Event • Name • Event
• Total waits • Parameter 1 • Parameter 1/2/3 text
• Total timeouts • Parameter 2 • Wait time
• Time waited • Parameter 3 • Seconds in wait
• Average wait • State
• Maximum wait
Oracle Wait Events
• A collection of wait events provides
information on the sessions that had to wait
or must wait for different reasons.
• These events are listed in the
V$EVENT_NAME view, which has the
following columns:
– EVENT#
– NAME
– PARAMETER1
– PARAMETER2
– PARAMETER3
About 290 wait events are there in Oracle Server.
The V$EVENT_NAME View
SQL> SELECT name, parameter1, parameter2,
parameter3 FROM v$event_name;