-- script di base da eseguirsi con privilegi system / sys
-- 1) ricerca le tabelle in dba_tables a secondo della condizione specificata nel ciclo for
-- per esempio in base al proprietario specificato e al quando last_analyzed è null
-- 2) Esegue gather_table_stats per dette tabelle nella modalità specificata
-- per esempio estimate_percent => 30
set timing on
set serveroutput on
declare
vstatmod varchar2(56);
begin
vstatmod:= 'estimate_percent => 30';
for r in (select owner,table_name,num_rows, last_analyzed from dba_tables where last_analyzed is null and owner='&vowner' order by 1 desc) loop
dbms_output.put_line(r.table_name);
dbms_output.put_line(r.owner);
dbms_stats.gather_table_stats(r.owner ,r.table_name , estimate_percent => 30);
end loop;
end;
/
Warning: include(ads/text468x15.html): failed to open stream: No such file or directory in D:\inetpub\webs\fishscriptcom\documents\view_document.php on line 131
Warning: include(): Failed opening 'ads/text468x15.html' for inclusion (include_path='.;C:\php\pear') in D:\inetpub\webs\fishscriptcom\documents\view_document.php on line 131
A good scientist is a person with original ideas.
A good engineer is a person who makes a design that works with as few original ideas as possible. There are no prima donnas in engineering. Freeman Dyson
A good scientist is a person with original ideas.
A good engineer is a person who makes a design that works with as few original ideas as possible. There are no prima donnas in engineering. Freeman Dyson
fishScript.Com is accessible by Mobile access technology
as mobile phones, Palm and Pocket PC .
Nicoleta e Marco Magnani tutorial, examples, courses, esempi, corsi, esercizi, appunti vari Dottoressa Nicoleta Dragu Formatrice Docente Insegnante Mediatrice Culturale
Dott. Marco Magnani Universita La Sapienza Roma Master Computer Science Hunter College New York , Data Base Administrator DBA oracle System architect