SP2-0618: The session identifier cannot be found. Enable exam PLUSTRACE role SP2-0611: An error occurred while enabling STATISTICS reporting, sp2-0618plustrace

Source: Internet
Author: User

SP2-0618: The session identifier cannot be found. Enable exam PLUSTRACE role SP2-0611: An error occurred while enabling STATISTICS reporting, sp2-0618plustrace

Problem description and solution:

SQL * Plus: Release 11.2.0.1.0 Production on Saturday January 10 14:31:44 2015

Copyright (c) 1982,201 0, Oracle. All rights reserved.

Enter User name: scott enter password:

Connect to: Oracle Database 11g Enterprise Edition Release 11.2.0.1.0-64bit Production With the Partitioning, OLAP, Data Mining and Real Application Testing options

SQL> set autotrace on;

SP2-0618: The session identifier cannot be found. Enable check PLUSTRACE role

SP2-0611: An error occurred while enabling STATISTICS reports

SQL> conn/as sysdba is connected.

SQL> @ E: \ app \ test \ product \ 11.2.0 \ dbhome_1 \ sqlplus \ admin \ plustrce. SQL;

SQL> drop role plustrace;

The role has been deleted.

SQL> create role plustrace;

The role has been created.

SQL> grant select on v _ $ sesstat to plustrace;

Authorization successful.

SQL> grant select on v _ $ statname to plustrace;

Authorization successful.

SQL> grant select on v _ $ mystat to plustrace;

Authorization successful.

SQL> grant plustrace to dba with admin option;

Authorization successful.

SQL> set echo off

SQL> conn scott/scott is connected.

SQL> set autotrace on;

SP2-0618: The session identifier cannot be found. Enable check PLUSTRACE role

SP2-0611: An error occurred while enabling STATISTICS reports

SQL> conn sys/as sysdba

Enter the password: connected.

SQL> grant plustrace to public;

Authorization successful.

SQL> conn ec/ec is connected. SQL> set autotrace on;

---- Successful

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.