Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> Re: sql_trace deprecated on 10gr2 what to use instead?

Re: sql_trace deprecated on 10gr2 what to use instead?

From: Egor Starostin <egorst_at_gmail.com>
Date: Fri, 11 Nov 2005 20:53:05 +0600
Message-ID: <f0fc91970511110653r499684a6r4d73275f4448f077@mail.gmail.com>


> DBMS_SESSION , few optoins
> DBMS_SUPPORT, not documented
> DBMS_MONITOR, the winner!!
>
> So I think the winner is DBMS_MONITOR, unless another opinion.
The only problem is that execute of DBMS_MONITOR is not granted by default to PUBLIC (contrary to DBMS_SESSION). So, for ordinary developer dbms_session.session_trace_enable is the winner.

As for SQL_TRACE, I think that it's deprecated because you need to have 'alter session' privilege (which might be a bit dangerous) for using it. So it might be better to just revoke 'alter session', grant execute on dbms_session to public and document sql_trace as deprecated. :)

--
Egor
http://www.oracledba.ru
--
http://www.freelists.org/webpage/oracle-l
Received on Fri Nov 11 2005 - 08:55:50 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US