List...

SunOS 5.8, Oracle 8.1.6 (and 8.1.7 too).

I use this proc to generate statistics:

create or replace procedure get_statistics as
   cursor get_users_list is
        select username
        from dba_users
        where username != 'SYS' 
and username != 'SYSTEM';

begin
   for i in get_users_list
   loop
        dbms_output.put_line('exec
dbms_stats.gather_schema_stats(ownname =>
'||chr(39)||i.username||chr(39)||', cascade =>
TRUE);');
   end loop;
end;
/



__________________________________
Do you Yahoo!?
New Yahoo! Photos - easier uploading and sharing.
http://photos.yahoo.com/
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: Jose Luis Delgado
  INET: [EMAIL PROTECTED]

Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
San Diego, California        -- Mailing list and web hosting services
---------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).

Reply via email to