You are on page 1of 11

C

Tuning Workshop

Copyright © Oracle Corporation, 2002. All rights reserved.


Workshop Scenarios

• Small shared pool


• Small database buffer cache
• Small redo log buffer cache
• Missing indexes
• Rollback segments and undo tablespace
• Sort area size incorrectly set
• Assorted

C-2 Copyright © Oracle Corporation, 2002. All rights reserved.


Workshop Methodology

C-3 Copyright © Oracle Corporation, 2002. All rights reserved.


Workshop Procedure

1. Choose a scenario.
2. Create a Statspack report.
3. Run the workload generator.
4. Create a Statspack report.
5. Determine what changes should take place.
6. Implement the changes.
7. Return to the second step to check that the
changes have made an improvement.
8. When the changes have improved performance,
choose another scenario.

C-4 Copyright © Oracle Corporation, 2002. All rights reserved.


Workshop Scenario 1
(Shared Pool)

• Provide a workload by executing the


workload generator.
• Make sure that Statspack is collecting statistics.
• Generate a report.

C-5 Copyright © Oracle Corporation, 2002. All rights reserved.


Workload Scenario 2
(Buffer Cache)

• Provide a workload by executing the


workload generator.
• Make sure that Statspack is collecting statistics.
• Generate a report.

C-7 Copyright © Oracle Corporation, 2002. All rights reserved.


Workshop Scenario 3
(Redo Log Buffer)

• Provide a workload by executing the


workload generator.
• Make sure that Statspack is collecting statistics.
• Generate a Statspack report.

C-9 Copyright © Oracle Corporation, 2002. All rights reserved.


Workshop Scenario 4 (Indexes)

• All the indexes have been eliminated.


– Result full table scans instead of using indexes
• Run the workload generator.
• Make sure that Statspack is collecting statistics.
• Examine the SQL statements executed.
• Determine which indexes should be re-created.

C-10 Copyright © Oracle Corporation, 2002. All rights reserved.


Workshop Scenario 5
(Rollback Segments)

• Create a workload by running the


workload generator.
• Make sure that Statspack is collecting statistics.
• Determine whether there is contention for
rollback segments.
• This can be resolved by:
– Creating extra rollback segments
– Using Auto Managed Undo

C-12 Copyright © Oracle Corporation, 2002. All rights reserved.


Workload Scenario 6 (Sorting)

• Create a workload by running the


workload generator.
• Make sure that Statspack is collecting statistics.
• After statistics have been collected, generate
a report.
• Examine the report.

C-14 Copyright © Oracle Corporation, 2002. All rights reserved.


Workload Scenario 7 (Assorted)

• Run the workload generator.


• Make sure that Statspack is collecting statistics.
• After statistics have been collected, generate
a report.
• Examine the report.

C-16 Copyright © Oracle Corporation, 2002. All rights reserved.

You might also like