La première requête permet de connaitre les requêtes exécutées sur un schéma.
set line 300
set pages 80
select to_char(LAST_ACTIVE_TIME,'YYYY-MM-DD HH24:MI'),SQL_TEXT, SQL_ID from v$sql where PARSING_SCHEMA_NAME='BMP12RC6' ORDER BY 1;
set pages 80
select to_char(LAST_ACTIVE_TIME,'YYYY-MM-DD HH24:MI'),SQL_TEXT, SQL_ID from v$sql where PARSING_SCHEMA_NAME='BMP12RC6' ORDER BY 1;
select OPERATION,COST,BYTES, CPU_COST, IO_COST from v$sql_plan where SQL_ID='7j76nm42vsc81';
Aucun commentaire:
Enregistrer un commentaire