How can you enable a trace for a session?
Answer / guest
Enable trace at session level
( A )to start trace:
ALTER SESSION SET sql_trace = TRUE;
- or -
EXECUTE dbms_session.set_sql_trace (TRUE);
- or -
EXECUTE dbms_support.start_trace;
(B) to stop trace:
ALTER SESSION SET sql_trace = FALSE;
- or -
EXECUTE dbms_session.set_sql_trace (FALSE);
- or -
EXECUTE dbms_support.stop_trace;
Regards
Abhinav Phadnis
Is This Answer Correct ? | 5 Yes | 0 No |
Which autogrowth database setting is good? : sql server DBA
What is the difference between the 2 operating modes of database mirroring? : sql server DBA
Does any body has ORACLE Certification Dumps or Materials on 9i DBA, 10G DBA, Internet Application Developer, OCP 8i to 10g DBA Upgrade, Oracle 11i if any body have it, please kindly drop an email to: taruni_2k8@yahoo.com
Explain materialized views and how they are used.
What are the operating modes in which database mirroring runs? : sql server DBA
what do you understand by fine-grained auditing?
You're getting high "busy buffer waits" - how can you find what's causing it?
Can we take incremental backups in datapump?
How to start SQL Server in minimal configuration mode?
what is the use of recording information about current session?
who owns the operating system files created by the utl_file package?
What are the different types of indexes available in sql server? : sql server DBA