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:
Esempio schema per analisi sui processi e parametri del db
Unix...
Tip:
Eseguire pił comandi in una sola linea
PLSQL...
Script:
How to store in a variable execute immediate results
PLSQL...
Tip:
Function
Shell scripting...
Script:
Looping samples
Basically, a web session can be defined as the timeframe in which a visitor navigates your web site.
Php Funzione mail()
XPath is a language for addressing parts of an XML document.
It is designed to be used by XSLT and XPointer.
Basically, a web session can be defined as the timeframe in which a visitor navigates your web site.
|
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:
Exception
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
PLSQL...
Info:
Exception
PLSQL...
Definizioni:
PL/SQL
Oracle...
Definizioni:
Schema
Shell scripting...
Script:
while do loop
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 |