https://www.locatme.fr/guide-du-proprietaire/la-resiliation-du-bail-par-le-proprietaire
RDBMS Expertise - Page 19
-
Location résiliation
-
Script find_sql
Trouver le SQL avec sa hash value...
-
Tuning PGA and Temporary Space
Savoir si la pga est assez grande? sinon exécution dans TBS temp pas bon.
-
Créer sql profile à partir du sql id
-
Télécharger et installer SQLT
http://www.br8dba.com/how-to-install-sqlt/
All About the SQLT Diagnostic Tool (Doc ID 215187.1)
-
Créer un sql profile à partir d'un plan d'exéuction
Scripts to deal with SQL Plan Baselines, SQL Profiles and SQL Patches
script à lancer sous SQLT :
coe_xfr_sql_profile.sql
-
PLan d'exécution d'une requête Oracle
Méthode classique :
-
récupérer un historique de session
spool hist_sess.html
set markup html on
alter session set nls_timestamp_format='YYYY-MM-DD HH24:MI';
select * from DBA_HIST_ACTIVE_SESS_HISTORY where sample_time between '2020-03-09 18:00' and '2020-03-12 17:01';
set markup html off
spool off -
AWR génération d'un rapport automatique pour chaque snap
set serveroutput on size unlimited
spool awr_8408_8478.txt
declare
dbid number := 644588240; -- a remplacer par ton dbid
instance_id number := 1;
l_premier number := 8408;
l_dernier number := 8478;
end_id number;
begin
for start_id in l_premier..l_dernier loop
end_id := start_id + 1;
for awrreport in ( select output from table(dbms_workload_repository.awr_report_html(dbid,instance_id,start_id,end_id)) )
loop
dbms_output.put_line(awrreport.output);
end loop;
end loop;
end;
/
spool off
-
Tracer un sql id
tracer un sql id :
exec dbms_sqldiag.dump_trace(p_sql_id=>'tamere',p_child_number=>0,p_component=>'Compiler',p_file_id=>'');