Home » RDBMS Server » Performance Tuning » Execution Plan doubt
Execution Plan doubt [message #161118] Thu, 02 March 2006 01:28 Go to next message
frank.svs
Messages: 162
Registered: February 2006
Senior Member
Hi all,
When i am saying set autotrace on it showing this error why.

SQL> set autotrace on
SP2-0618: Cannot find the Session Identifier. Check PLUSTRACE role is enabled
SP2-0611: Error enabling STATISTICS report

What is this SPn - errors codes.can anyone explain me.

My intention is to get the execution plan for my SQL statements.
For this what i've done.

As "sys" user,
SQL>@C:\software\oracle\ora92\sqlplus\admin\plustrce.sql
SQL>grant plustrace to scott;
Next i loggedin as scott user.

SQL>drop table plan_table;
@C:\software\oracle\ora92\rdbms\admin\utlxplan.sql

and now when saying set auotrace on it showing the below err
SQL> set autotrace on
SP2-0618: Cannot find the Session Identifier. Check PLUSTRACE role is enabled
SP2-0611: Error enabling STATISTICS report
Re: Execution Plan doubt [message #161156 is a reply to message #161118] Thu, 02 March 2006 05:14 Go to previous messageGo to next message
girish.rohini
Messages: 744
Registered: April 2005
Location: Delhi (India)
Senior Member
HI Check the following link

http://asktom.oracle.com/~tkyte/article1/autotrace.html

This may help.

--Girish
Re: Execution Plan doubt [message #161162 is a reply to message #161156] Thu, 02 March 2006 06:00 Go to previous message
frank.svs
Messages: 162
Registered: February 2006
Senior Member


Thanks a lot rohini for u response.
My doubt is fully clarified.
Previous Topic: Statistic
Next Topic: SELECT doubt
Goto Forum:
  


Current Time: Sat Nov 23 14:56:19 CST 2024