[Terry Notes] Oracle session tracking (2): TKPROF

Source: Internet
Author: User

 

Run tkprof in the system to convert the trace file into a format that can be read by humans.

(I personally don't feel very good. I don't need to get a good format when the trace file is output)
Syntax:Tkprof tracefile output_file
explain=username/passwd sys=yes| waits=yes| aggregate=yes| record=filename =number insert=filename =parameters 
Example:
tkprof ora11g_ora_11111.trc scott.txt explainscotttiger sysno waitsyes sortfchela
  Tkprof output (in the upper and lower parts ):.. -Development on Sat Aug:, Oracle and/or its affiliates. all rights reserved.: ora11g_ora_5829. options: **************************************** **************************************** = number of = cpu = elapsed = number of buffers gotten consistent = number of buffers gotten in current mode (usually = *************** **************************************** *************************: 9kcpyjv574vjc Plan Hash: * from t1 where owner = ----------------------------------------------------------------------------------------------------------------------------------------------:::: ---------- optimize table access full T1 (cr = pr = pw = us cost = size = card = ------- ------------------------------------------------- statement mode: table access (FULL) OF (TABLE)View Code :. options: session in tracefile. user SQL statements in trace file. internal SQL statements in trace file. SQL statements in trace file. unique SQL statements in trace file. SQL statements EXPLAINed using schema :. prof... lines in trace file. elapsed seconds in trace file.View Code: query and currentquery are the number of items retrieved by the select statement in the memory. current is the number of items modified by the update and delete statements in the memory: A good case is to get more rows with a small fatch. The parse of query refers to the number of data blocks obtained from the data dictionary (dictionary cache. Resource consumption is measured by the CPU column and elapsed column. To eliminate full table scans.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.