Statistics Generation

 < Day Day Up > 



Oracle recommends using the DBMS_STATS package to generate statistics with the latest version of Oracle. A similar type of script can be created using the DBMS_STATS package.

set termout off echo off feed off trimspool on head off     pages 0; spool c:\tmp\statistics.sql; select 'analyze '||object_type||' '||object_name||'       compute statistics;' from user_objects where object_type in ('TABLE','INDEX') order by object_type,object_name; spool off; set termout on; @@c:\tmp\statistics.sql; exit;



 < Day Day Up > 



Oracle High Performance Tuning for 9i and 10g
Oracle High Performance Tuning for 9i and 10g
ISBN: 1555583059
EAN: 2147483647
Year: 2003
Pages: 164

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net