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 are the different sql server versions you have worked on? : sql server DBA
how does an oracle clusterware manage crs resources?
What purpose does the model database server? : sql server DBA
what is incremental checkpoint?
What would you do with an "in-doubt" distributed transaction?
How do you open a cluster administrator? : sql server DBA
How would you force a log switch?
how to copy(migrate) the database one server to another server without using expdp/impdp how it is possible.
currently iam working in mnc as a oracleappsdba,please send the EXPERIENCE RESUME those who r worked as a oracle apps dba
what is the use of recording information about current session?
How can you tell how much space is left on a given file system and how much space each of the file system's subdirectories take-up?
What the different components in replication and what is their use? : sql server DBA
Oracle (3259)
SQL Server (4518)
MS Access (429)
MySQL (1402)
Postgre (483)
Sybase (267)
DB Architecture (141)
DB Administration (291)
DB Development (113)
SQL PLSQL (3330)
MongoDB (502)
IBM Informix (50)
Neo4j (82)
InfluxDB (0)
Apache CouchDB (44)
Firebird (5)
Database Management (1411)
Databases AllOther (288)