Installer au préalable le module : pg_stats_statements Exécuter la requête suivante : SELECT * FROM pg_stat_statements ORDER BY total_time DESC;
Josselin Joly
Déplacer index dans le bon tablespace Oracle
SELECT ‘ALTER INDEX ‘ || OWNER || ‘.’ || segment_name || ‘ REBUILD TABLESPACE ‘ || ‘TBS_INDEX’ || ‘;’ FROM dba_segments WHERE OWNER <> ‘EXPLOIT’AND segment_type = ‘INDEX’ AND tablespace_name. read more…
Purger les enregistrements d’audit (AUDIT_TRAIL records)
source : https://tips4oracle.wordpress.com/2014/06/03/how-to-check-the-size-of-archive-and-purge-the-audit-trail-table-aud-in-oracle-databse/ https://docs.oracle.com/database/121/DBSEG/audit_admin.htm#DBSEG474 http://orababy.blogspot.fr/2013/09/move-aud-and-fga-tables-from-system.html http://krishnaappsdba.blogspot.fr/2014/03/how-to-move-aud-table-from-system.html http://www.dbarj.com.br/en/2013/05/changing-audit-tablespace-create-purge-job-11g/ Purger une fois manuellement : BEGIN DBMS_AUDIT_MGMT.CLEAN_AUDIT_TRAIL( AUDIT_TRAIL_TYPE => DBMS_AUDIT_MGMT.AUDIT_TRAIL_UNIFIED, USE_LAST_ARCH_TIMESTAMP => TRUE, CONTAINER => DBMS_AUDIT_MGMT.CONTAINER_CURRENT ); END; /Planifier une purge automatique à. read more…
Désactiver l’audit
noaudit policy ORA_SECURECONFIG;noaudit policy ORA_LOGON_FAILURES; Source : https://mikedietrichde.com/2014/09/02/unified-auditing-is-it-on-or-off-in-oracle-12c/ http://www.orafaq.com/aggregator/sources/418CachedYou?page=5
Désactiver SQL Tuning Advisor
BEGINdbms_auto_task_admin.disable(client_name => ‘sql tuning advisor’, operation => NULL, window_name => NULL);END;/select client_name, status,attributes,service_name from dba_autotask_client/
Forcer le refresh de la vue dba_feature_usage_statistics
Par défaut la vue dba_feature_usage_statistics est mise à jour une fois par semaine. On peut néanmoins forcer la mise à jour de la vue avec la commande suivante : EXEC. read more…
Oracle Cloud Control 13C
http://www.oracle.com/technetwork/database/manageability/ds-tuning-pack-db12c-1964661.pdf
Les composants de l’Oracle Tuning Pack
http://www.oracle.com/us/products/enterprise-manager/tuning-pack-11g-ds-068467.pdf
Purge des logs du listener Oracle – ADRCI-
Purge des logs du listener sous /export/home/oracle/app/product/diag/tnslsnr/volx/listener/alert Purge du fichier listener.log sous /export/home/oracle/app/product/diag/tnslsnr/volx/listener/trace Politique de purge automatique des fichiers de logs exprimée en heure (336h = 14 jours) 24h =. read more…
Valider une consistence de données avec RMAN
Oracle 11G comes with some additional checks for integrity checking. Can be done at database, tablespace, datafile, controlfile and block level. source : http://www.online-database.eu/index.php/oracle-11g/139-validate-physical-and-logical-consistency Some commands are RMAN > validate. read more…
