You can use
set autotrace traceonly
statement for it.
you can refere oracle docs for detailed explanation of set autotrace