|
-
ho rm analyze.tmp.sql
spool analyze.tmp.sql
set heading off
select 'prompt >processing: '
||table_name
||chr(13)
||'select to_char(sysdate,''MM/DD/YY HH24:MI:SS'') from dual;'
||chr(13)
||'execute dbms_stats.gather_table_stats(ownname => user, tabname => '''||table_name||''', degree => 4, cascade => true);'
||chr(13)
||'select to_char(sysdate,''MM/DD/YY HH24:MI:SS'') from dual;' from user_tables where table_name<>'BIG_TABLE';
spool off
@analyze.tmp.sql
ho rm analyze.tmp.sql
OCP DBA 8, 8i, 9i, 10g
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|