There’s More than One Way to active Oracle Trace , This Topic will talk about how to do this ?
Lets Rock N Roll
1-Alter session set sql _trace Statement
alter session set sql_trace = true;
Or ( The two Statement is equal )
alter session set events ‘10046 trace name context forever, level 1’;
2-DBMS_Session.Set_Sql_Trace
dbms_session.set_sql_trace (true);
Deactivate
dbms_session.set_sql_trace (false);
3-DBMS_Support.Start_trace
dbms_support.start_trace (binds=>{true|false}, waits=>{true|false});
Or to Disable it
dbms_support.stop_trace;
4-Alter Session set event
5-dbms_system.set_ev
6-Oradebug Command
7-DBMS_MONITOR.Session_trace_enable
Ref Link :
1-Oracle-Base
2-Gplivna
Enjoy
Osama Mustafa
Like this:
Like Loading...
Related
Published by Osama Mustafa
Osama considered as one of the leaders in Cloud technology, DevOps and database in the Middle-East. I have more than ten years of experience within the industry. moreover, certfied 4x AWS , 4x Azure and 6x OCI, have also obtained database certifications for multiple providers.
In addition to having experience with Oracle database and Oracle products, such as middle-ware, OID, OAM and OIM, I have gained substantial knowledge with different databases.
Currently, I am architecting and implementing Cloud and DevOps. On top of that, I'm providing solutions for companies that allow them to implement the solutions and to follow the best practices.
View all posts by Osama Mustafa