Open Sqlplus in execution plan

Source: Internet
Author: User


In Sqlplus we generally use the autotrace to view the execution plan, which performs the process analysis for some statements and optimizes the work. Here's a demonstration of how to grant Autotrace permissions to a normal user, taking the Scott user as an example (set autotrace on;)

Tools/raw Materials
    sqlplus SSH Linux
methods/steps

1. Log in to the Scott user and verify that Scott has autotrace permissions.


Enable Autotrace feature: To SYSDBA user connection, run related scripts

3. Grant the required permissions (Plustrace) to the Scott user

4. Log in to the Scott user for verification. As you can see, the execution plan is automatically added after the statement is run.

If you need to assign permissions to all users, grant plustrace to public is executed. It is generally recommended that you only grant the required permissions to the users you need.

Open Sqlplus in execution plan

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.