Home| Progetto| Web| Faq| Acronimi | ||||
Argomenti Documenti pubblicabili:1120
Scripts:1282 Documenti non pubblicabili:162 Categorie tematiche:68 .Net |_C# |_Visual basic.net |_Asp.net Active Server Pages C++ Cascade Style Sheet JavaScript Mysql Php Xml Java |_Java 2 Micro Edition |_Java server pages |_Java Servlet Oracle |_PLSQL PostgreSQL Unix
PLSQL...
Info:
Rapprensentare un apostrofo in sql e pl/sql
Oracle...
Script:
TO_CHAR, double pipe (||)
Unix...
Tip:
Eseguire pił comandi in una sola linea
PLSQL...
Script:
Compilazione automatica programmi plsql
PLSQL...
Tip:
Function
Shell scripting...
Script:
Determinare il numero di elementi di un array
A User Agent, like a web browser, uses HTTP to request a HTML document
Php Funzione mail()
In programming the danger of exploring the small details of coding is that you get obsessed with every line of code you write, thereby greatly reducing productivity.
In general, is not worth obsessing over code. On the other hand you should code with deliberation and intent. Steven Feurstein Oracle Magazine July /August 2004 A User Agent, like a web browser, uses HTTP to request a HTML document
|
PLSQL
Home >PLSQL > Unlock and gather statistics for particular schemas
Antoher example of plsql (on 10g) dba 's scripts written on the fly using compact plsql construct:
FOR recordset IN (select statment) LOOP CODE ... END LOOP; This script unlock schema stats and gather user statistcs, we do use it in some very complex development and test multi db enviroment where there are enough resource for auto statistics gathering. The query can be quickly ajdusted by needs, for example to get schemas containing tables never analyzed:
select owner, last_analyzed from dba_tables group by owner, last_analyzed having last_analyzed = null order by owner
set timing on
set serveroutput on declare sqlGather varchar2(128); sqlUnlock varchar2(128); -- be careful in large enviroment gather stats takes long time begin -- gathering stats for each schema with at least one table ... for r in (select owner from dba_tables group by owner order by owner) loop dbms_output.put_line(r.owner); -- dinamically build dbms_stats -- unlock schema stats (as a matter of fact they could be locked sqlUnlock:= ' begin dbms_stats.unlock_schema_stats (''' || r.owner || '''); end;' ; -- gather schema stats, mode: estimate sqlGather:= ' begin dbms_stats.gather_schema_stats(''' || r.owner || ''',estimate_percent => 30); end;'; -- executing dinamyc plsql statements dbms_output.put_line('Ulnocking schema: ' || r.owner); execute immediate sqlUnlock; dbms_output.put_line('Gathering statistcs schema: ' || r.owner); execute immediate sqlGather; 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 Tutorial ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Script ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Comandi ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Codici errore ![]() ![]() ![]() ![]() ![]() |
Cerca
PLSQL...
Info:
Rapprensentare un apostrofo in sql e pl/sql
Anger is creative, depression is useless.
Dyson, Freeman J. Anger is creative, depression is useless.
Dyson, Freeman J.
PLSQL...
Info:
Exception
PLSQL...
Definizioni:
PL/SQL
Oracle...
Definizioni:
Schema
Shell scripting...
Script:
if e else
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 |