Set the autotrace of Sqlplus

Source: Internet
Author: User

1.CD D:\Oracle11gR2\product\11.2.0\dbhome_1\rdbms\admin; --[oracle_home]/rdbms/admin

2.sqlplus System/[email protected]--Login As System

[Email protected];

4.create public synonym plan_table for plan_table;

5.grant all on plan_table to public;

Create and grant the Plustrace role.

1.CD D:\oracle11gr2\product\11.2.0\dbhome_1\sqlplus\admin;--[oracle_home]/sqlplus/admin

2.sqlplus Sys/sys as [email protected]-Login as SYS or SYSDBA there may be errors ORA-28009 This is not logged in with the DBA himself Baidu will know.

[Email protected];

4.grant plustrace to public;

You can set Autotrace system variables to control the report.

Set Autotrace off; The Autotrace report is not generated. Default.

Set autotrace on explain; The report shows only the optimizer execution path.

Set autotrace on statistics; reports show only execution statistics for SQL statements.

Set autotrace on; The report consists of the two above.

Set Autotrace traceonly; is similar to set autotrace on, but does not display the user's query output.

Set the autotrace of Sqlplus

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.