Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> RE: Optimizer Mode cost How to do this ?

RE: Optimizer Mode cost How to do this ?

From: Rocky Welch <rockyw_99_at_yahoo.com>
Date: Mon, 21 Aug 2000 13:55:35 -0700 (PDT)
Message-Id: <10596.115152@fatcity.com>


The correct parameter is:
optimizer_mode=choose

Then run the following:

spool /tmp/analyze_all.sql;

select 'execute dbms_utility.analyze_schema(' || '''' || username || '''' ||','|| '''' || 'COMPUTE' || '''' || ');' from all_users
where username not in ('SYS', 'SYSTEM')
order by username;

spool off;

@/tmp/analyze_all.sql;

Be sure to change the spool path to suit your needs.

HTH,


Rocky Welch
Oracle DBA Consultant

rockyw_99_at_yahoo.com



Do You Yahoo!? Received on Mon Aug 21 2000 - 15:55:35 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US