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 |
What command would you use to create a backup control file?
How do you tell what your machine name is and what is its IP address?
What are the recovery models for a database? : sql server DBA
What questions might be they ask in managerial round in capgemini.
How would you go about generating an EXPLAIN plan?
Why would you call update statistics? : sql server DBA
how can you get actual data change values from previous transactions in oracle?
Which environment variables are absolutely critical in order to run the OUI?
How would you determine what sessions are connected and what resources they are waiting for?
Describe what redo logs are.
You create a private database link <link name> and upon connection, fails with: ORA-2085: <Link name> connects to <fully qualified remote db name>. What is the problem? How would you go about resolving this error?
how to restore files with rman?