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 high-availability solutions in sql server and differentiate them briefly? : sql server DBA
Explain the use of table functions.
Oracle 11g new features?
How would you determine who has added a row to a table?
What questions might be they ask in managerial round in capgemini.
Typically, where is the conventional directory structure chosen for Oracle binaries to reside?
Other than making use of the statspack utility, what would you check when you are monitoring or running a health check on an Oracle 8i or 9i database?
How to determine the service pack currently installed on SQL Server?
how can you enable flashback feature?
How do you add a data file to a tablespace?
What the different components in replication and what is their use? : sql server DBA
how can you generate profile of pl/sql applications to identify performance bottlenecks?
Oracle (3253)
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)