SET AUTOTRACE ON..problems

Hi everyone!
I tried to set autotrace on with the following command. I got some errors .
SQL> SET AUTOTRACE ON EXPLAIN STATISTICS
SP2-0613: Unable to verify PLAN_TABLE format or existence
SP2-0611: Error enabling EXPLAIN report
SP2-0618: Cannot find the Session Identifier. Check PLUSTRACE role is enabled
SP2-0611: Error enabling STATISTICS report
Can you please help me out with this problem?
Can you please explain what each of the errors meant?
Thank you all.

kishore
run this script UTLXPLAN.SQL to create the plan_table IN YOUR SCHEMA
and then SET AUTOTRACE ON will work
prakash

Similar Messages

  • Set autotrace on sample set of data of 410 million rows

    The dev env and the prod env is very different from our shop.
    So if I do a sample on the prod data and then use the same query logic and do a real run and with autotrace on
    Can I trust the plan and execution time of this sampling test and do an estimate on how it is gonna run in prod?
    I guess I can use this to do a rough estimate of my prod run?
    Any of you guys have done similar exercise?
    I have the data size of 410 millions on my prod to process.
    -Thx so much

    I am talking about doing a perf exercise in the production environment but I am using only a sample cause and take 0.01 percent
    idea of what I am doing. It is not linearly scale up of course but perhaps it gives me a rough idea?
    insert into pipetest_result1
    17:39:27   2  with pipetest1_smp001 as (
    17:39:27   3  select * from pipetest1 sample(1) --can this give me a rough idea                                                  of how long it is gonna run?
    17:39:27   4  ),
    17:39:27   5   j1 as (
    17:39:27   6  select id,value1,value2,pipetest1_YN(NVL(value1,1),NVL(value2,1))                                                  result from pipetest1_smp001
    17:39:27   7  )
    17:39:27   8  select id,result from j1 where j1.result='Y'
    17:39:27   9
    spool off
    @pipetest1
    set autotrace on
    spool &1
    Enter value for 1: pipetest_perf_feb15x1
    insert into pipetest_result1
    17:40:14   2  with pipetest1_smp001 as (
    17:40:14   3  select * from pipetest1 sample(1) --can this give me a rough idea                                                  of how long it is gonna run?
    17:40:14   4  ),
    17:40:14   5   j1 as (
    17:40:14   6  select id,value1,value2,pipetest1_YN(NVL(value1,1),NVL(value2,1))                                                  result from pipetest1_smp001
    17:40:14   7  )
    17:40:14   8  select id,result from j1 where j1.result='Y';
    1231 rows created.
    Elapsed: 00:00:02.13
    Execution Plan
    | Id  | Operation           | Name      | Rows  | Bytes | Cost (%CPU)|
    |   0 | INSERT STATEMENT    |           |     1 |    51 |   399   (2)|
    |   1 |  TABLE ACCESS SAMPLE| PIPETEST1 |     1 |    51 |   399   (2)|
    Note
       - 'PLAN_TABLE' is old version
    Statistics
            129  recursive calls
             47  db block gets
           2343  consistent gets
           2211  physical reads
          23536  redo size
            819  bytes sent via SQL*Net to client
           1003  bytes received via SQL*Net from client
              3  SQL*Net roundtrips to/from client
              2  sorts (memory)
              0  sorts (disk)
           1231  rows processed
    spool off
    @"pipetest1.sql"
    set autotrace on
    spool &1
    Enter value for 1: pipetest1_feb15_all
    insert into pipetest_result1
    17:40:56   2  with pipetest1_smp001 as (
    17:40:56   3  select * from pipetest1 --sample(1) --can this give me a rough ide                                                 a of how long it is gonna run?
    17:40:56   4  ),
    17:40:56   5   j1 as (
    17:40:56   6  select id,value1,value2,pipetest1_YN(NVL(value1,1),NVL(value2,1))                                                  result from pipetest1_smp001
    17:40:56   7  )
    17:40:56   8  select id,result from j1 where j1.result='Y';
    123924 rows created.
    Elapsed: 00:00:47.60
    Execution Plan
    | Id  | Operation         | Name      | Rows  | Bytes | Cost (%CPU)|
    |   0 | INSERT STATEMENT  |           | 11180 |   425K|   900  (57)|
    |   1 |  TABLE ACCESS FULL| PIPETEST1 | 11180 |   425K|   900  (57)|
    Note
       - 'PLAN_TABLE' is old version
    Statistics
            719  recursive calls
           2901  db block gets
           3227  consistent gets
              0  physical reads
        2261104  redo size
            825  bytes sent via SQL*Net to client
           1005  bytes received via SQL*Net from client
              3  SQL*Net roundtrips to/from client
              1  sorts (memory)
              0  sorts (disk)
         123924  rows processed

  • Set autotrace on exp 권한 부족 에러

    안녕하세요.
    오라클 버젼은 9203 이며, set autotrace on exp 하였을때 아래와 같이
    ORA-01039: insufficient privileges on underlying objects of the view
    메시지가 나옵니다.
    새로운 유저로 utlplan.sql 실행시킨후 dba 유저로 plustrace.sql 실행시킨후 plustrace role의 권한을 새로운 유저에제 grant 하였으나,
    여전히 에러를 발생시키며,
    새로운 유저에게 DBA권한을 부여하면 plan이 잘나옵니다.
    plustrace role 제외하고 다른 권한을 부여해야 하는지 알고 싶습니다.

    그러면..그 문제가 아닌것 같은데요..
    ORA-01039: insufficient privileges on underlying objects of the view
    이라면..
    조회하고나 하는 쿼리에 view가 있고..
    그 view에 있는 object를 조회할 수 있는 권한이 없는건
    아닐까요? 테이블뿐만 아니라 유저 function까지요..
    auto trace를 하는데.. from절에 a, b 테이블이 있다면..
    select table_name from user_tables
    where table_name in ('A','B');
    이렇게 했더니 A가 안나왔다..
    select view_name from user_views
    where view_name='A';
    아래도 안나오네?
    그러면 synonym이 걸려있을 수도 있겠죠..
    select * from user_synonyms where synonym_name='A';
    이렇게 해봐서.. A의 정체가 어떤 것인지를 봅니다.
    테이블인지 view인지..... synonym으로 가장한 것이 아닌지..
    쿼리에서 점검이 필요하겠네요.
    일반 쿼리도 모두 안되나요?
    set autot on
    select * from dual;
    이렇게 해도 에러가 난다면 쿼리의 object권한 문제겠죠.
    from 절에 들어가는 object에 대해서 조회를 해보세요..
    글 수정:
    minyh0124 (민연홍)
    또는 이렇게도 생길 수 있겠죠..
    테이블에 trigger가 걸려있는데.. trigger가 테이블이 select되면
    유저가 만든 audit테이블에 insert가 된다..
    그런데 audit 테이블에 권한이 없어서 insert가 안된다..
    모 그래도 권한문제게겠죠..
    추가로 trigger가 있는지 보셔요..
    토드로 쿼리의 object를 모두 보세요.

  • How to set autotrace to explain plan ONLY

    Hi,
    I would like to see explain plan for a long running statement.
    Now if I do following:
    set autotrace on explain
    UPDATE ......-- my statement
    I get the plan, but the rows are updated also :-(
    Is there a way to tell ORACLE, please show me the explain plan but dio not execute the statement?
    Thanks

    ONLY FOR queries you can use
    set autotrace traceonly explain
    And actually query isn't executed. For other DML you cannot use that.
    The other way can be explaining the query and then selecting the plan_table output:
    SQL> explain plan for update t set code = 3;
    Explained.
    SQL> SELECT * FROM table(DBMS_XPLAN.DISPLAY);
    PLAN_TABLE_OUTPUT
    Plan hash value: 931696821
    | Id  | Operation          | Name | Rows  | Bytes | Cost (%CPU)| Time     |
    |   0 | UPDATE STATEMENT   |      |     3 |     9 |     3   (0)| 00:00:01 |
    |   1 |  UPDATE            | T    |       |       |            |          |
    |   2 |   TABLE ACCESS FULL| T    |     3 |     9 |     3   (0)| 00:00:01 |
    Note
    PLAN_TABLE_OUTPUT
       - dynamic sampling used for this statement
    13 rows selected.
    SQL> see http://download-uk.oracle.com/docs/cd/B19306_01/appdev.102/b14258/d_xplan.htm
    Gints Plivna
    http://www.gplivna.eu

  • Cannot set autotrace

    Hi all,
    I want to set autotrace on.
    So first I set following parameters in parameter file;
    sql_trace=true
    timed_statistices=true
    then I run the plustrce.sql in sys schema, and grant the role to rbi user.
    Later I Created the explain_table in rbi schema.
    And file the set autotrace on
    but I received the message cannot st autotrace.
    please Guide me.

    hi Prathmesh
    sql>sql_trace =true --> this statement sets the trace future on for every sql statement submitted to the database engine
    sql>timed_statistics = true -- tells oracle to gather the wait times between events. this is needed for performance monitoring.
    It's advisable to set sql_trace =false as by settting it to true you are degrading query performance
    Also regarding the autotrace stuff it would be helpful if you specify explicitly the version of Oracle you are using and also the complete error message

  • When I charge the battery, the screen has a massage show" Not Enough Storage , This iPad cannot back up because there is not enough iCloud storage available. You can manage your storage in setting" but the problem is my iPad screen is freezed .

    When I charge the battery, the screen has a massage show" Not Enough Storage , This iPad cannot back up because there is not enough iCloud storage available. You can manage your storage in setting" but the problem is my iPad screen is freezed .I can do any thing about the setting, Can I change my iPad setting from my computer?

    Reset it by holding the power and home buttons at the same time until you see the Apple logo, then release.  You won't lose any data by doing this.

  • "set autotrace on" error

    I got the following error while trying to set autotrace on. Does anybody know how to fix this? Thanks a lot.
    SQL> set autotrace on
    SP2-0613: Unable to verify PLAN_TABLE format or existence
    SP2-0611: Error enabling EXPLAIN report
    SQL>

    you must create a table (default name PLAN_TABLE) using the script
    ${ORACLE_HOME}/rdbms/admin/utlxplan.sql.
    This table is used to store the explain plan output before it is ready for display.

  • Oracle 8.1.5 install on Linux Redhat 6.0: character set (and other) problem(s)

    I am trying to install Oracle 8i on Linux and it does not work : once the install is finished, I have a message saying that "Character Set not found".
    I am runing a french version of Linux (fr-latin 1) and I try to install Oracle with French and English as languages
    An other problem about this install : Oracle does not seem to recognize that I have 6,9 Giga for it to install, and says that I have not enough space for the install...
    And at the end of the install, it takes for ages (about 15mns) during which nothing seems to happen. On one machine I got out of this phase, but on the other I never saw it finish, it looks as if the computer crashed. Is that normal?
    I went through all the initialization phases, set the correct environment variables...
    thanks
    Solange
    null

    I've been dealing with the same problems in the english version but could bypass thiss by doing the folowing.
    -Just ignore the disk space stuff
    -Ignore the charset message, also
    -When creating a database, choose custom and then select the WE8ISO8859P1 char set. It worked for portuguese, must work for french also.
    -Everyone here recommended, and I do the same, leave the database creation for later, not during instalation.
    Good Luck!

  • Setting Real Instruments Problem

    I have a problem setting the task info dialog box for real instruments. Although I select Real Instruments on the setup, the task info box shos only choices for software instruments and , I think, master task. Therefore, the box where the input settings are made, is blank. Nothing I do aleviates this problem. If anyone can help me, you can reach me at [email protected]

    I think I know what your going through. I had a similar issue with setting up my guitar. If this info is not related to your particular problem simply disregard it as I am no expert on GarageBand and am learning like you. The problem I came across was that I could not get my Instrument to be recognized as the source of sound for the new track I added. To fix this I simply added a new "basic" track rather then simply a new track. GB then recognized my guitar and allowed me to record my instrument, only I couldnt hear what I was playing until after I had turned "monitoring" on found in the information window on the right hand side of the screen. Then by setting the input to channel 1 I avoided making sound come from only one speaker. Maybe you already know this but I just feel like being helpful in my n00b sorta way. GL

  • Dual monitor set up and problems/solutions?

    I have just started to do event photography using 17" MBP running Aperture 2.1.3, a 23" ACD and Nikon D3 with Elinchrom DLite4s and printing to a Mitsubishi CP9800.
    First event when very well, but as anticipated it threw up some problems. Some I'm probably just being dim about but I thought I would pose the questions anyhow and see how we go?
    I tethered the D3 to the MBP which was displaying through the ACD so the punters could see nice big images… but this meant my colleague (who was shooting) got no preview of what he had shot. We overcame it by him quickly spinning the monitor to look see for positioning purposes.
    I messed around a bit with some of the tethered options and found it easier to have the Auto-select uncrossed so that when punters were viewing I didn't keep losing their selection to each new picture taken (obvious I know, but it took me a short while to work that out).
    So what I want to know is… is there anyway to have the preview only on the second monitor and maintain ALL the functionality on the first display?
    In other words, so that we can cross Auto Select on the Tether HUD, he then sees every new image as he shoots it on his monitor (the second monitor that is, turned to face him 24/7), whilst I can use the MBP display (or maybe an additional ACD) to select images, edit and most importantly print (as that is where the dough comes from) without affecting his display.
    I've managed to get it functioning so that I have the Main Viewer set to Browser Only whilst the Second Viewer is set to Alternate. This gives me exactly the look and layout I need, except when I click on an image to either edit or pint, it comes up in his display also?
    Sorry for the really long winded explanation there.
    Or is it something I'm doing wrong with the D3 and the USB set-up - I thought there was only one way that could be configured???
    Would appreciate any help you can as next gig is on Thursday - lots of 16 y o girls in posh frocks
    Regards
    Andy

    You have a choice to make.
    You can use two video outputs on the video card or the single video output on the motherboard. You cannot use both.
    I suggest using the DVD output on the video card and an adapter in the HDMI output on the card. The only problem is that using an old school VGA monitor won't work on the video card outputs since it needs to output to digital display devices. If you want two displays from the video card ,then you will probably need to purchase another LCD display to connect to the video card.
     It is probably time to consider putting the old VGA monitor out to pasture. Its time has come and gone.
    ****Please click on Accept As Solution if a suggestion solves your problem. It helps others facing the same problem to find a solution easily****
    2015 Microsoft MVP - Windows Experience Consumer

  • Japanese Data Set and Get Problem with SQL

    Hi,
    I am not able to retrieve or set data contain Japanese characters.
    Formerly our set up was running just fine. But on doing installation on a new machine, things have gone all haywire.
    I installed Win NT 4.0 Japnese version and SQL 7.0 and later Win 2000 Server Japanese version with same SQL 7.0, but on both get and set I get SQL Exceptions:
    Query 1:
    SELECT DISTINCT MAKER_CD FROM T_MAKER WHERE MAKER_NAME = '�a�l�v�A���s�i' Exception:
    [Microsoft][ODBC SQL Server Driver][SQL Server]Unclosed quotation mark before the character string '�a�l�v�A��'.
    Query 2:
    Insert into Car (intCarID, nvchCustomerID, nvchCarMaker, nvchCarModel,nvchCarDescription, nvchCarCode, nvchCarColor, tintRegistrationCalendar,tintRegistrationMonth, intRegistrationYear,nvchAnnualMileage, nvchPurpose, intNoOfKms,intAirBag, btEcologicalCar, btAntilockBreakSystem,btAntiskid, btSafetyBody, btAntitheft, btFourWheelDrive,btCarModification, nvchLicensePlateArea, intLicensePlateType,nvchLicensePlateHiragana, tintLicensePlateNumber,nvchCarManufacturingNumber, nvchCarOwner, btCurrentlyInsured)Values( 1, 'NI200205040001','','', '', 'HA11S', '���I����������',2,1, 11 ,'5000', '�����E���W���[',0,2,0,0,0,0,0,0,0,'',0,'null', '0' ,'', '�_�������{�l' , 0)
    Exception:
    [Microsoft][ODBC SQL Server Driver][SQL Server]Incorrect syntax near the keyword 'null'.
    I do not wish to Prepared Statements. I will need to update all my JDBC calls this way.
    Would be grateful if any solutions to this problem could be provided.
    Tahanks and Regards

    If you are using the JDBC-ODBC bridge, then add the 'charset' property (with the name of the japanese charset as value, or whichever you are using) to the Properties instance you pass on to getConnection().
    Alin.

  • MAC OS X + stage.fullScreenSourceRect + renderMode set to GPU = problem with mouse position

    When setting stage.fullScreenSourceRect, stage.displayState to StageDisplayState.FULL_SCREEN_INTERACTIVE; and renderMode to GPU, mouse position is read incorrectly. This is not only for mouseX and mouseY position, but also all the mouse interactions with Sprites, Buttons etc are not working correctly.
    Anybody know a solution for this issue?
    Here is the bug reported, but there is no response yet.
    https://bugbase.adobe.com/index.cfm?event=bug&id=3486120
    Greg.

    Bump up.
    Anybody has the same problem and have an idea how to fix it? Or please just check if you have the same problem.. I'm going to submit my game "Amelia and Terror of the Night" (successfully added to iOS store) to MAC App Store but can't do it while this problem appears.
    I am disappointed nobody  even verified the bugs I submitted at  the bugbase.adobe.com for AIR 3.5 and 3.6
    thanks
    Greg

  • Set inside a Set and powerset problem. Need help.

    I've done other posts about this but I figured I'd start a new thread since I changed it so much. I understand the idea of power sets but not how it needs to be a Set inside a set and also how to get this thing to run. If anyone could show me a power set generator or help me fix my code I'd really appreciate it.
    Thanks in advance
    public static <E> Set<Set <E>> generatePowerSet(Set<E> S){
              Set<E> newSet = new HashSet<E>();
              Set<E> temp = new HashSet<E>();
              if (S.isEmpty() || S.equals("")) {
                   Set<E> emptySet = new HashSet<E>(S);
                   return (Set<Set<E>>) emptySet;
              else {
                   Iterator<E> iter = S.iterator();
                   temp = S;
                   while (iter.hasNext()) {
                        E obj = iter.next();
                        temp.remove(obj);
                        Set<E> P = new HashSet<E>(temp);
                        P.addAll(temp);
                        newSet.addAll(P);
                        return newSet;
              }

    I have no idea what a "power set" is.
    But, this line:
    if (S.isEmpty() || S.equals("")) {should just be:
    if (S.isEmpty()) {S is the input parameter, and is a Set. Therefore, S can never equal an empty string.
    Did you see my reply to your previous thread?
    http://forum.java.sun.com/thread.jspa?threadID=677353
    It seems that you didn't, because you didn't respond to it, and because your current code has the same problem.

  • 'Easy Set-up' Option - Problem with edit canvas/windows - really need help!

    Hello Everyone. . .
    Have a problem that i really need help with, i have tried so many different things to sort this - but with no sucess.
    I usually work in High Definition and i have recently done a small project for someone in DV. When changing to work in DV, i selected the DV setup from the 'Easy Setup' menu. I have now changed back to HD and there are a few things different with Final Cut that i can't shift!
    When i move a clip from the capture bin into the edit window, the clip no longer fills that window like it always used to and there are lines at the top and the bottom of the clip - almost like it is in widescreen.
    Editing like this wasn't too much of a problem, but when i came to compress and do a final render of the whole film - there was the same black lines on the top and bottom of the film.
    I can't figure out how to get the setting back to how they were, and have the clips fill the edit windows and fix the end render/compress.
    Any ideas from anyone on what i am experiancing with all this? And. . . how to fix this problem?
    Any help on all this will be very much appreciated!

    Hello Everyone. . .
    Have a problem that i really need help with, i have tried so many different things to sort this - but with no sucess.
    I usually work in High Definition and i have recently done a small project for someone in DV. When changing to work in DV, i selected the DV setup from the 'Easy Setup' menu. I have now changed back to HD and there are a few things different with Final Cut that i can't shift!
    When i move a clip from the capture bin into the edit window, the clip no longer fills that window like it always used to and there are lines at the top and the bottom of the clip - almost like it is in widescreen.
    Editing like this wasn't too much of a problem, but when i came to compress and do a final render of the whole film - there was the same black lines on the top and bottom of the film.
    I can't figure out how to get the setting back to how they were, and have the clips fill the edit windows and fix the end render/compress.
    Any ideas from anyone on what i am experiancing with all this? And. . . how to fix this problem?
    Any help on all this will be very much appreciated!

  • Set field value problem

    Hi All,
    I want to set a field value of a class. I do this in the way of modifying codes in getText() method in XXXItemProvider.java as the red frame in the following picture.
    It generates the following problem
    But, if I remove the codes, "(NFRSoftgoal)object.setLabel......", it becomes normal.
    Can anyone help me solve the problem?
    Thanks & Regards,

    Comments below.
    On 17/07/2015 7:19 PM, Shin-Yi Lin wrote:
    > Ed Merks wrote on Fri, 17 July 2015 12:28
    >> Comments below.
    >>
    >> On 17/07/2015 4:40 AM, Shin-Yi Lin wrote:
    >>> (1) My model structure (I want to change label attribute.):
    >> So the label feature is on a class that's the root of a several other
    >> classes...
    >> ----> Yes.
    >>>
    >>> (2.1) Before (Child and parent clouds are undecided. Cloud represents NFRSoftgoal class.):
    >> This undecided thing is the default state...
    >> -----> That's right.
    >>>
    >>> (2.2) After (After child cloud changes to satisfy through command, parent cloud changes to satisfy automatically.)
    >> Is this via a command that directly modifies the label feature of the
    >> "child"? If so, that's the place to modify the state of the parents,
    >> e.g., using a compound command that modifies the child as normal, and
    >> walks up the parents to modify the parent label also using commands.
    >> What, if anything, prevents the "parent" label from being directly
    >> changed back to undecided (which is perhaps an inconsistent state for
    >> the model)?
    >> -----> I change the label feature of "child" through the red frame in the following pictures (This is under run-time application and Sirius environment.):
    >>
    >>
    >> -----> But I don't want to change the label feature of "parent" through the same way, because it should be automatically changed, not manually.
    I'm asking what's preventing that from happening? I suppose it doesn't
    matter if you've done something so that only a leaf/child can be
    directly modified.
    >> That's why I modified the code of getText( Object object) function in NFRSoftgoalItemProvide.java under bpmn.edit.
    That's not a good idea.
    >>
    >>
    >>
    >> -----> What do you mean "via a command" ? I don't know how to change via a command. Could you explain or give any reference for it?
    On the child, the set command is created by
    org.eclipse.emf.edit.provider.ItemProviderAdapter.createSetCommand(EditingDomain,
    EObject, EStructuralFeature, Object) so you can specialize this method
    of the child's item provider so that it modifies not only the child's
    label feature, but modifies also the parents. All that could be done
    with a CompoundCommand that composes all the SetCommands.
    >>
    >> Thanks & Regards,
    >>

Maybe you are looking for

  • Adobe photoshop elements 6.0 help

    I purchased the download about a year ago online and use it several times a week with both work and play.  My computer crashed yesterday and i had the hard drive moved to a new computer. The guru said that for some reason this particular program show

  • Import iTunes Library to Creative Xtr

    Hi all, I have a creative Xtra MP3 Player. Like many others I don't like Mediasource (The guy that designed it should be sent to Siberia or so). That's why I use iTunes on my WIN PC. My question: Can I import the iTunes library on my Creative Xtra (w

  • Browser freezes

    My browser freezes. I have An HP computer. I have Windows7--- 64 bites. I was using IE8, so I upgraded to IE9. It also freezes. So I installed Firefox, same thing. I have a NetWork,and on that Computer the Browser does not freeze. I think this would

  • Configuration for JDBC support in Jakarta-Tomcat-4.0

    I have used JSP pages which call packaganame.classname in the useBean directive. This works fine when I have simple programs, but when my class uses JDBC connectivity, this does not work. I get NullPointerException on the browser. I am currently usin

  • IMac keeps shutting down when asleep.  Need to unplug and start again.

    iMac keeps shuting down after being put sleep or going to sleep on its own.  Requires disconnecting and restart. Is there a fix?