Si besoin, voilà ce que j'utilise comme code pour faire une trace 10046.
1 2 3 4
| SQL> ALTER SESSION SET timed_statistics = TRUE;
SQL> ALTER SESSION SET max_dump_file_size = unlimited;
SQL> ALTER SESSION SET TRACEFILE_IDENTIFIER = 'zztest_create_table01.trc';
SQL> ALTER SESSION SET events '10046 trace name context forever, level 4'; |
L'ordre SQL à tracer.
SQL> CREATE TABLE ZZ01 (ID NUMBER);
Ne pas oublier de désactiver la trace une fois l'ordre SQL exécuté.
SQL> ALTER SESSION SET events '10046 trace name context off';
Pour savoir où est la trace, faire un
SELECT * FROM v$diag_info;
et voir le répertoire trace.
Partager