Installer au préalable le module : pg_stats_statements
Exécuter la requête suivante :
En poursuivant votre navigation sur ce site, vous acceptez l'utilisation de cookies. Ces derniers assurent le bon fonctionnement de nos services. En savoir plus.
Installer au préalable le module : pg_stats_statements
Exécuter la requête suivante :
SELECT 'ALTER INDEX ' || OWNER || '.' || segment_name || ' REBUILD TABLESPACE ' || 'TBS_INDEX' || ';'
FROM dba_segments
WHERE OWNER <> 'EXPLOIT'
AND segment_type = 'INDEX'
AND tablespace_name like '%DATA'
UNION
SELECT 'ALTER TABLE ' || OWNER || '.' || segment_name || ' MOVE TABLESPACE ' || 'TBS_DATA' || ';'
FROM dba_segments
WHERE OWNER <> 'EXPLOIT'
AND segment_type = 'TABLE'
AND tablespace_name like '%INDEX';
source :
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/
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
BEGIN
dbms_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
/
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 DBMS_FEATURE_USAGE_INTERNAL.exec_db_usage_sampling(SYSDATE);
source : https://oracle-base.com/articles/misc/tracking-database-feature-usage
http://www.oracle.com/technetwork/database/manageability/ds-tuning-pack-db12c-1964661.pdf
http://www.oracle.com/us/products/enterprise-manager/tuning-pack-11g-ds-068467.pdf
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)
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