Oracle knowledge-tracking SQL statements

Source: Internet
Author: User

Oracle knowledge-tracking SQL statements 1. First, find the session information SID of a machine you want to track, SERIAL # select SID, SERIAL # from v $ session where lower (terminal) like '% yf07 %'; www.2cto.com 2. Enable tracking: exec dbms_monitor.session_trace_enable (SID, SERIAL #, TRUE, FALSE); 3. Locate the tracking file location: the value of the show parameter user user_dump_dest parameter is the location where the trace file is stored. 4. obtain and analyze the tracking file. 5. Disable tracking: www.2cto.com exec dbms_monitor.session_trace_disable (SID, SERIAL #); there is another method. However, this method may cause all statements executed to be recorded. First, run alter system set SQL _trace = true using sys, and then run the program. In this way, the statement is recorded in the database trace folder, that is, the value of user_dump_dest.

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.