1. Trace file)
- Provides detailed debugging information. When a server fails, a trace file containing a large amount of diagnostic information is generated.
- Enable tracking SQL _TRACE = TRUE
- Measure oracle
- V $ view, such as v $ waitstat and V $ SESSION_EVENT, to reflect what happens to the kernel
- Audit Command
- Resource Manager
- Oracle events: oracle events allow Oracle to generate tracking and diagnostic information
- DBMS_TRACE: record the call tree of the stored procedure and exceptions.
- Database event triggers: for example, ON SERVERERROR
- SQL _TRACE: an extension of the SQL tracking tool, through the 10046oracle event
- 10046 events need to be tracked
- SQL _TRACE = TRUE;
- Alter session set events '2017 trace name context forever, level 12'
- Tracking File Location
- Assume that the dedicated server connection mode is used: the trace file generated in the directory specified by the USER_DUMP_DEST Parameter
- For example, the shared server connection method is as follows: in the directory of the BACKGROUND_DUMP_DEST parameter tracking File
- Check the parameter name of show parameter.
Ii. Tracking File naming rules
- Related statement generation trace file name
SELECT d. VALUE | '\' | C. INSTANCE_NAME | '_ ora _' | B. SPID | '. trc' trace
FROM v $ session,
V $ process B,
V $ instance c,
V $ parameter d
WHERE a. paddr = B. addr
And a. AUDSID = USERENV ('sessionid ')
And d. NAME = 'user _ dump_dest'
Select * from