REM REM DBAToolZ NOTE: REM This script was obtained from DBAToolZ.com REM It's configured to work with SQL Directory (SQLDIR). REM SQLDIR is a utility that allows easy organization and REM execution of SQL*Plus scripts using user-friendly menu. REM Visit DBAToolZ.com for more details and free SQL scripts. REM REM REM File: REM a_gather.sql REM REM APPS_ADMIN REM REM SQLDIR Group Descriptions: REM APPS - APPS General REM APPS_INST - APPS Installation REM APPS_CONC_PROG - APPS Concurrent Programs REM APPS_CONC_MAN - APPS Concurrent Managers REM APPS_ADMIN - APPS Administration REM DBF - Data Files REM TABSP - Tablespace REM UTIL - Utility REM INDX - Index REM LOG - Redo Log REM RBS - Rollback REM MAINT - Maintenance REM REVERSE - Reverse Engineering REM SGA - SGA Maintenance REM TAB - Table REM USER - User Management REM STATS - Statistics REM STORAGE - Storage Management REM INIT - Database Init Parameters REM LATCH - Latches REM LOCK - Locks REM SEGMENT - Segment Management REM BACKUP - Backup Management REM PQ - Parallel Query REM TRACE - SQL Tracing Tuning REM PART - Partitioning REM MOST - Favorite Scripts REM REM Author: REM Vitaliy Mogilevskiy vit100gain@earthlink.net REM REM REM REM Purpose: REM REM This script will analyze SCHEMA using fnd_stats.gather_schema_statistics REM REM REM Usage: REM a_gather.sql REM REM Example: REM a_gather.sql REM REM REM History: REM 03-18-2002 Vitaliy Mogilevskiy Created REM REM undefine schema_to_analyze set echo on -- commit to avoid ORA-00164 commit; begin fnd_stats.gather_schema_statistics('&&schema_to_analyze'); end; / alter session set nls_date_format='DD-MON-RRRR HH24:MI'; select count(*), last_analyzed from dba_tables where owner='&&schema_to_analyze' group by last_analyzed / undefine schema_to_analyze