In this Document
APPLIES TO:Oracle Database - Enterprise Edition - Version 10.2.0.1 to 11.2.0.3 [Release 10.2 to 11.2]Oracle Database - Enterprise Edition - Version 12.1.0.1 to 12.1.0.1 [Release 12.1] Information in this document applies to any platform. GOALOutline how to Gather Optimizer Statistics For SYS and 'fixed' objects? SOLUTIONGather_schema_stats gathers statistics for objects owned by the SYS Schema. We recommend gathering statistics for the SYS schema, specifically if you are using Oracle APPS. If your database encounters a lot of changes (DMLs) for SYS schema objects, then it is recommended to collect SYS schema statistics. The collection of statistics on SYS Schema objects will optimize the performance of internal recursive queries and application queries on SYS schema objects.
SQL> EXEC DBMS_STATS.GATHER_SCHEMA_STATS ('SYS');
SQL> exec DBMS_STATS.GATHER_DATABASE_STATS (gather_sys=>TRUE); SQL> EXEC DBMS_STATS.GATHER_DICTIONARY_STATS;
EXEC DBMS_STATS.GATHER_FIXED_OBJECTS_STATS;
Document:798257.1GATHER_FIXED_OBJECTS_STATS Considerations
REFERENCESNOTE:798257.1 - Fixed Objects Statistics(GATHER_FIXED_OBJECTS_STATS) ConsiderationsNOTE:392364.1 - DBMS_STATS.GATHER_FIXED_OBJECTS_STATS('ALL') Fails With ORA-20000 ORA-6512 |
文档 ID 457926.1
最新推荐文章于 2021-02-21 11:31:01 发布