From the course: Complete Guide to Oracle Database 23ai: From Beginner to Advanced
Unlock the full course today
Join today to access over 24,800 courses taught by industry experts.
SQL tracing - Oracle Database Tutorial
From the course: Complete Guide to Oracle Database 23ai: From Beginner to Advanced
SQL tracing
- [Narrator] While AWR, ASH and other utilities view data at a database level, yes, even active session history, or dig into SQL, tracing is valuable as it traces a user session. The ability to trace a complex user session from beginning to end can offer insight that may not be easily ascertained from a single SQL statement, including application logic, secondary latency, experience from auditing or management demands, or even network latency. As with other aspects of Oracle, tracing can be initiated at many levels, including Oracle Enterprise Manager, Enterprise Manager Express, SQL Developer, and from the command line. Issuing a trace requires information about the session, including the session ID, AKA SID, and the serial number for the session. This data can be queried from the V$SESSION view and even after a session is under way, capture the information and a trace can be issued. We can now turn on tracing for the session and a trace file will be created on the database host and…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
-
-
-
-
-
-
Introduction to performance optimization2m 35s
-
(Locked)
Instance tuning5m 10s
-
(Locked)
Understanding the AWR report4m 9s
-
(Locked)
ASH, ADDM, and the rest of AWR3m 46s
-
(Locked)
SQL tuning5m 49s
-
(Locked)
SQL tracing3m 16s
-
(Locked)
Cost-based optimizer5m 5s
-
(Locked)
Performing an optimization exercise4m 26s
-
(Locked)
Final project countdown: Optimizing performance recap36s
-
-
-
-
-
-
-
-