Mise en trace oracle , Tuning avec TKPROF

Pour tracer les requêtes SQL dans une base Oracle il faut passer la commande :  execute dbms_monitor.database_trace_enable(waits=>TRUE,binds=>TRUE,instance_name=>’QUALIF’);  Pour stopper la trace : execute dbms_monitor.database_trace_disable(instance_name=>’QUALIF’);  La trace sera stockée sous :. read more…

Show replication status in PostgreSQL

https://www.niwi.nz/2013/02/16/replication-status-in-postgresql/   select client_addr, state, sent_location, write_location, flush_location, replay_location from pg_stat_replication; This query can output can be like this: postgres=# select client_addr, state, sent_location,write_location, flush_location, replay_location, sync_priority from pg_stat_replication;

last access table oracle

select a.obj#,a.table_scans_delta,b.object_name,b.owner,b.object_type from dba_hist_seg_stat a, dba_objects b where a.obj# = b.object_id and b.owner like ‘USERNAME%’ order by table_scans_total desc

Author avatar

Translate »