Copyright © 2008 Oracle, Inc. All rights reserved. 4
Table of Contents
Table of Contents........................................................................................................................................................4
Chapter 1 - Introduction.............................................................................................................................................6
Structure of this Red Paper 6
Related Materials 6
Chapter 2 - Generating Statistics.............................................................................................................................7
Manually Gathering Table Statistics 7
Sample DBMS_STATS Command............................................................................................................................................8
Generating Statistics for Data dictionary tables 9
Generating System Statistics...................................................................................................................................................... 9
Statistics at Runtime for Temporary Tables 9
Example ..................................................................................................................................................................................... 9
Turning off %UpdateStats .......................................................................................................................................................10
Modify %UpdateStats to Use Analyze Command................................................................................................................... 10
Turning Off Dynamic Sampling ..............................................................................................................................................14
Histograms 14
What Are Histograms?............................................................................................................................................................. 14
Candidate Columns for Histograms within PeopleSoft Applications...................................................................................... 14
Creating Histograms.................................................................................................................................................................15
Viewing Histograms.................................................................................................................................................................15
Chapter 3 - Reviewing Dedicated Temporary Tables............................................................................................16
What are Dedicated Temp Tables? 16
Performance Tips for Dedicated Temp Tables......................................................................................................................... 16
Application Engine Performance with Dedicated Temporary Tables 17
How Do Temp Tables Work in AE?........................................................................................................................................17
Test Case Explaining Temp Table Behavior............................................................................................................................ 17
Drawbacks of Using Base Temp Table.................................................................................................................................... 18
Recommendations.................................................................................................................................................................... 18
Creating PeopleSoft Temporary Tables as Oracle Global Temp Tables 19
What are Global Temporary Tables? .......................................................................................................................................19
Can GTTs Be Used in Place of Dedicated Temp Tables? ....................................................................................................... 19
Chapter 4 - Selecting Tablespaces ........................................................................................................................21
Locally Managed Tablespaces 21
Advantages of Locally Managed Tablespaces......................................................................................................................... 21
Space Management .................................................................................................................................................................. 21
Locally Managed - AUTO ALLOCATE ................................................................................................................................. 21
Locally Managed - UNIFORM EXTENT ............................................................................................................................... 22
Temporary Tablespaces 22
Tempfile Based ........................................................................................................................................................................ 22
UNDO Management 22
Automatic Undo Management ................................................................................................................................................. 23