408532 - Using the DBMS_STATS Package for Collecting Statistics
Click here to load reader
-
Upload
suwatchai-manchansa -
Category
Documents
-
view
216 -
download
0
description
Transcript of 408532 - Using the DBMS_STATS Package for Collecting Statistics
-
SAP Note
Header Data
Symptom
In a standard case, the ANALYZE command is used in Oracle 9i to collect statistics on tables and indices of a SAP Oracle database. As of Oracle 8.1, you can also do this by calling the DBMS_STATS supplied package. This may reduce the BRCONNECT runtime for updating the statistics. The DBMS_STATS package particularly improves the runtime if you use the internal parallel setting feature of the package for collecting statistics for very large tables (several hundred GB). This feature is not particularly useful for smaller and medium-sized packages. To activate the collection of statistics with the DBMS_STATS package, specify the stats_dbms_stats parameter in the init.sap profile. Refer to Note 424239 for a detailed description of the parameter. Note 1: ---------- After you have switched the collection of statistics for all tables to the DBMS_STATS package (for example, stats_dbms_stats = ALL:R:1), we recommend that you compile statistics for all table and indexes once. You can do so using the following BRCONNECT command: brconnect -u / -c -f stats -t all -f collect -p 4 Note 2: ---------- For Oracle 10g, the package DBMS_STATS is used to collect statistics in the standard scenario. You no longer need to set init.sap profile parameter stats_dbms_stats, unless you want the DBMS_STATS calls to exert a special influence (see Note 892296).
Other Terms
Reason and Prerequisites
Recommendations/Additional information Prerequisite: Oracle 9.2
Solution
Set the stats_dbms_stats parameter in the init.sap profile to activate the collection of statistics in BRCONNECT with the DBMS_STATS package. Note 424239 contains detailed information about this parameter. For more information about the DBMS_STATS package, see the Oracle documentation. Supported since BRCONNECT 6.10 Patch Level 1. For more information about downloading patches, see Notes 12741 and 19466.
Other Attributes
Validity
This document is not restricted to a software component or software component version
References
This document refers to:
408532 - Using the DBMS_STATS package for collecting statistics
Version 11 Validity: 11.06.2008 - active Language English
Released On 11.06.2008 16:13:53 Release Status Released for Customer Component BC-DB-ORA-DBA Database Administration with Oracle Priority Recommendations / Additional Info Category Consulting
ORACLEDatabase System
-
SAP Notes
This document is referenced by:
SAP Notes (12)
1013912 FAQ: Oracle BW performance 892296 Enhancements in update statistics in BRCONNECT 7.00 / 7.10 635564 High costs in SQL plans when you access InfoCubes 588668 FAQ: Database statistics 439783 BR986W Index ... is unbalanced - please rebuild the index 428212 Using BRCONNECT to update InfoCube statistics 424239 New BRCONNECT parameter: stats_dbms_stats 403713 BRCONNECT: Parallel updating of statistics 403706 Corrections in BR*Tools Version 6.10 403704 BRCONNECT - enhanced function for Oracle DBA 184513 CBO: Parallel generation of optimizer statistics 105047 Support for Oracle functions in the SAP environment
635564 High costs in SQL plans when you access InfoCubes 588668 FAQ: Database statistics 1013912 FAQ: Oracle BW performance 892296 Enhancements in update statistics in BRCONNECT 7.00 / 7.10 439783 BR986W Index ... is unbalanced - please rebuild the index 428212 Using BRCONNECT to update InfoCube statistics 105047 Support for Oracle functions in the SAP environment 424239 New BRCONNECT parameter: stats_dbms_stats 184513 CBO: Parallel generation of optimizer statistics 403706 Corrections in BR*Tools Version 6.10 403704 BRCONNECT - enhanced function for Oracle DBA 403713 BRCONNECT: Parallel updating of statistics