Explain plan cannot get information

I try to run explain plan to tunning my sql. After I run explain plan, the result did't show any Statistics.
Who Can I get these Statistics? Should I install any pacakges or set any configs?
"| Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time |"
"| 0 | SELECT STATEMENT | | | | | |"
"|* 1 | INDEX RANGE SCAN | CUSTOMER_PK | | | | |"
"| 2 | TABLE ACCESS BY INDEX ROWID| CUSTOMERINFO | | | | |"
"|* 3 | INDEX UNIQUE SCAN | CUSTOMERINFO_PK | | | | |"
"---------------------------------------------------------------------------------------------"

Hi..
The INVALID status could be the reason of the your problem.You still haven't said what ORACLE version you are using.
Run UTLRP -- This script recompiles all PL/SQL modules that may be in an INVALID state, including packages, procedures, types, and so on.
SQL> @?\rdbms\admin\utlrp
And then check back the status of the packages by using the same query.Then, run
exec dbms_stats.gather_table_stats(ownname =>'ONWER','tabname => 'CUSTOMERINFO', cascade => true, estimate_percent =>DBMS_STATS.AUTO_SAMPLE_SIZE, degree => n);
try to first gather the table's statistics, then go for the system stats.
HTH
Anand

Similar Messages

  • Slmodem/wvdial: cannot get information for serial port

    Hi,
    I have the following problem when trying to set up my Intel WinModem with arch:
    After configuring wvdial I get an error when trying to launch it
    /dev/ttySL0: Cannot get information for serial port
    Does anybody know about this problem? There is absolutely no information about it on the internet.
    Thanks for any help!!!!!

    Hi,
    I have the following problem when trying to set up my Intel WinModem with arch:
    After configuring wvdial I get an error when trying to launch it
    /dev/ttySL0: Cannot get information for serial port
    Does anybody know about this problem? There is absolutely no information about it on the internet.
    Thanks for any help!!!!!

  • I want to change my Apple ID for IPad because forgot password and all email addresses changed so cannot get informations for password reset. What can I do?

    I want to change my Apple ID for IPad because forgot password and all email addresses changed so cannot get informations for password reset. What can I do?

    I was wondering if you ever figured this out. I have the same issue. When I try to use the support communities, there are so many with the same problems and never seem to be any replys?? Not very helpful and I can not get Apple to return my emails.

  • Explain plan left the building

    Hello guys, i have interesting problem, at least it seemed to me like that.
    I am on 10.2.0.4.0 and for every statement i do explain plan i get the same plan ???.
    Propably very known issue to some, but i didn't exeperienced that till now, so if somene have some advice, please share.
    E.g.
    SQL> explain plan for select user from dual;
    Explained.
    SQL> select * from table(dbms_xplan.display);
    Plan hash value: 3995103059
    | Id  | Operation                    | Name           | Rows  | Bytes | Cost (%CPU)| Time     | Inst   |
    |   0 | SELECT STATEMENT REMOTE      |                |     1 |    96 | 97591   (5)| 00:05:07 |        |
    |   1 |  SORT ORDER BY               |                |     1 |    96 | 97591   (5)| 00:05:07 |        |
    |*  2 |   TABLE ACCESS BY INDEX ROWID| CCONTACT_ALL   |     1 |    54 |     3   (0)| 00:00:01 | VIPBS~ |
    |   3 |    NESTED LOOPS              |                |     1 |    96 | 97590   (5)| 00:05:07 |        |
    |*  4 |     TABLE ACCESS FULL        | CUSTOMER_ALL   |     1 |    42 | 97587   (5)| 00:05:07 | VIPBS~ |
    |*  5 |     INDEX RANGE SCAN         | PKCCONTACT_ALL |     1 |       |     2   (0)| 00:00:01 | VIPBS~ |
    Predicate Information (identified by operation id):
       2 - filter("A1"."CCCONTRACT"='X')
       4 - filter((TO_NUMBER("A2"."CSCOMPTAXNO")=3007943362918 OR
                  TO_NUMBER("A2"."PASSPORTNO")=0109965330447) AND (TO_NUMBER("A2"."CSLEVEL")=10 OR
                  TO_NUMBER("A2"."CSLEVEL")=20 AND "A2"."TMCODE"<>59 AND "A2"."TMCODE"<>42 AND "A2"."TMCODE"<>61
                  AND "A2"."TMCODE"<>11 AND "A2"."TMCODE"<>19) AND "A2"."CSTYPE"='a' AND "A2"."PAYMNTRESP"='X')
       5 - access("A1"."CUSTOMER_ID"="A2"."CUSTOMER_ID")
           filter("A1"."CUSTOMER_ID"<>0)
    Note
       - 'PLAN_TABLE' is old version
       - fully remote statement
    28 rows selected....so, it looks like i am doing all that just with select user from dual .... : ) ... ok
    SQL> explain plan for
      2  SELECT param_value
      3  FROM ncis.cis_case_script_vars
      4  WHERE case_id = 296645706 AND seq = 1 AND param_name = 'OHOPNAMT';
    Explained.
    SQL> select * from table(dbms_xplan.display);
    Plan hash value: 3995103059
    | Id  | Operation                    | Name           | Rows  | Bytes | Cost (%CPU)| Time     | Inst   |
    |   0 | SELECT STATEMENT REMOTE      |                |     1 |    96 | 97591   (5)| 00:05:07 |        |
    |   1 |  SORT ORDER BY               |                |     1 |    96 | 97591   (5)| 00:05:07 |        |
    |*  2 |   TABLE ACCESS BY INDEX ROWID| CCONTACT_ALL   |     1 |    54 |     3   (0)| 00:00:01 | VIPBS~ |
    |   3 |    NESTED LOOPS              |                |     1 |    96 | 97590   (5)| 00:05:07 |        |
    |*  4 |     TABLE ACCESS FULL        | CUSTOMER_ALL   |     1 |    42 | 97587   (5)| 00:05:07 | VIPBS~ |
    |*  5 |     INDEX RANGE SCAN         | PKCCONTACT_ALL |     1 |       |     2   (0)| 00:00:01 | VIPBS~ |
    Predicate Information (identified by operation id):
       2 - filter("A1"."CCCONTRACT"='X')
       4 - filter((TO_NUMBER("A2"."CSCOMPTAXNO")=3007943362918 OR
                  TO_NUMBER("A2"."PASSPORTNO")=0109965330447) AND (TO_NUMBER("A2"."CSLEVEL")=10 OR
                  TO_NUMBER("A2"."CSLEVEL")=20 AND "A2"."TMCODE"<>59 AND "A2"."TMCODE"<>42 AND "A2"."TMCODE"<>61
                  AND "A2"."TMCODE"<>11 AND "A2"."TMCODE"<>19) AND "A2"."CSTYPE"='a' AND "A2"."PAYMNTRESP"='X')
       5 - access("A1"."CUSTOMER_ID"="A2"."CUSTOMER_ID")
           filter("A1"."CUSTOMER_ID"<>0)
    Note
       - 'PLAN_TABLE' is old version
       - fully remote statement
    28 rows selected.
    SQL>..same plan for different sql...
    ..and now, i am trying to explain plan for several easy sqls but look...
    SQL> explain plan for select * from all_objects where rownum < 2;
    explain plan for select * from all_objects where rownum < 2
    ERROR at line 1:
    ORA-01039: insufficient privileges on underlying objects of the view
    SQL> explain plan for select * from user_tables ;
    explain plan for select * from user_tables
    ERROR at line 1:
    ORA-01039: insufficient privileges on underlying objects of the view
    SQL> desc all_objects
    Name                                                                    Null?    Type
    OWNER                                                                   NOT NULL VARCHAR2(30)
    OBJECT_NAME                                                             NOT NULL VARCHAR2(30)
    SUBOBJECT_NAME                                                                   VARCHAR2(30)
    OBJECT_ID                                                               NOT NULL NUMBER
    DATA_OBJECT_ID                                                                   NUMBER
    OBJECT_TYPE                                                                      VARCHAR2(19)
    CREATED                                                                 NOT NULL DATE
    LAST_DDL_TIME                                                           NOT NULL DATE
    TIMESTAMP                                                                        VARCHAR2(19)
    STATUS                                                                           VARCHAR2(7)
    TEMPORARY                                                                        VARCHAR2(1)
    GENERATED                                                                        VARCHAR2(1)
    SECONDARY                                                                        VARCHAR2(1)...i can't figure this out... maybe i have to flush 'explain plan' ? it's ok if it sounds funny,im off with ideas..
    then i tried to explain this sql:
    SQL> explain plan for
      2  SELECT param_value
      3  FROM ncis.cis_case_script_vars
      4  WHERE case_id = 296645706 AND seq = 1 AND param_name = 'OHOPNAMT';
    Explained.
    SQL> select * from table(dbms_xplan.display);
    Plan hash value: 3995103059
    | Id  | Operation                    | Name           | Rows  | Bytes | Cost (%CPU)| Time     | Inst   |
    |   0 | SELECT STATEMENT REMOTE      |                |     1 |    96 | 97591   (5)| 00:05:07 |        |
    |   1 |  SORT ORDER BY               |                |     1 |    96 | 97591   (5)| 00:05:07 |        |
    |*  2 |   TABLE ACCESS BY INDEX ROWID| CCONTACT_ALL   |     1 |    54 |     3   (0)| 00:00:01 | VIPBS~ |
    |   3 |    NESTED LOOPS              |                |     1 |    96 | 97590   (5)| 00:05:07 |        |
    |*  4 |     TABLE ACCESS FULL        | CUSTOMER_ALL   |     1 |    42 | 97587   (5)| 00:05:07 | VIPBS~ |
    |*  5 |     INDEX RANGE SCAN         | PKCCONTACT_ALL |     1 |       |     2   (0)| 00:00:01 | VIPBS~ |
    Predicate Information (identified by operation id):
       2 - filter("A1"."CCCONTRACT"='X')
       4 - filter((TO_NUMBER("A2"."CSCOMPTAXNO")=3007943362918 OR
                  TO_NUMBER("A2"."PASSPORTNO")=0109965330447) AND (TO_NUMBER("A2"."CSLEVEL")=10 OR
                  TO_NUMBER("A2"."CSLEVEL")=20 AND "A2"."TMCODE"<>59 AND "A2"."TMCODE"<>42 AND "A2"."TMCODE"<>61
                  AND "A2"."TMCODE"<>11 AND "A2"."TMCODE"<>19) AND "A2"."CSTYPE"='a' AND "A2"."PAYMNTRESP"='X')
       5 - access("A1"."CUSTOMER_ID"="A2"."CUSTOMER_ID")
           filter("A1"."CUSTOMER_ID"<>0)
    Note
       - 'PLAN_TABLE' is old version
       - fully remote statement
    28 rows selected.
    SQL>..and got the same plan again....
    anyone with suggestons, anyone encountered this behaviour ?

    Vili Dialis wrote:
    Is there some way to force usage of one of them explicitly, how can i know which one is currently used ?
    So what happend here ?
    I am using what plan table of the above, and why that table generates always the same plan ?
    */To bypass the problem (probably), and to see how it happened (possibly) see http://jonathanlewis.wordpress.com/2010/01/25/old-plan_table/
    Not sure why you keep getting the same plan, but dbms_xplan does a 'select where plan_id = (select max(plan_id) ..) so perhaps the plan_table(s) you keep using have an artificially high plan_id which is always getting selected. (You could try doing: delete from plan_table ; commit; )
    Regards
    Jonathan Lewis
    http://jonathanlewis.wordpress.com
    http://www.jlcomp.demon.co.uk
    A general reminder about "Forum Etiquette / Reward Points": http://forums.oracle.com/forums/ann.jspa?annID=718
    If you never mark your questions as answered people will eventually decide that it's not worth trying to answer you because they will never know whether or not their answer has been of any use, or whether you even bothered to read it.
    It is also important to mark answers that you thought helpful - again it lets other people know that you appreciate their help, but it also acts as a pointer for other people when they are researching the same question, moreover it means that when you mark a bad or wrong answer as helpful someone may be prompted to tell you (and the rest of the forum) what's so bad or wrong about the answer you found helpful.

  • Explain Plan Table

    Hi,
    I have created the plan_table using utlxplan.sql but still i am getting the error:
    ORA-02404: specified plan table not found          
    Is there something else to be done to get it fixed?
    please suggest.
    Regards
    Arpit

    As Lukasz suggested check the table privs between the schema where the table was created and the user trying to use it. Also make sure there's a synonym for the user using explain plan to get to the plan table easily; a public synonym might work best

  • Not able to execute the explain plan in development.

    Hi In TOAD when try to click "Explain plan current statement." icon, I getting the below error message. ORA-00604: error occurred at recursive SQL level 1 ORA-01950: no privileges on table space 'DEFAULT_DATA' can anybody give some idea to solve this issue?

    Is this a new user?  You could be running out of quota.
    Ask your DBA to user on that tablespace.
    Alter user <username> quota unlimited on DEFAULT_DATA;
    OR
    Title
    When I do an Explain Plan, I get the error: ORA-00604: error occurred at recursive SQL level 1 OR 
    Description I get the error below when I run / execute an Explain Plan.ORA-00604: error occurred at recursive SQL level 1 ORA-01536: space quota exceeded for tablespace ‘USERS’ (not same but similar)
    Resolution Ensure the Plan Table your Toad is using exists, valid, and can use enough space in the tablespace or give unlimited tablespace rights. Setting Toad to use the PLAN_TABLE from SYS schema via View menu | Toad Options | Oracle | General | Explain Plan can resolve the issue as well.

  • Wich rules are based the explain plan

    Hi!
    Please some one can tell me, which are the specific ranges to say one data base function is acceptable?
    I mean, i know with the explain plan, can get the values of a transaction, but i need to know which ranges are considered good or besides when the range are over value
    If i can't get values, i need to know the limits or general rules, to specify if transaction or procedure is acceptable or no.

    If, by "ranges", you mean "execution" time then the answer to your question
    is "It depends" !
    It is user requirements that specify acceptable response time for things like
    a. Data Entry and Validation in a Form
    b. Query in a Form
    c. Running a Report
    For a., user acceptance might be a few seconds only.
    For b., acceptability might be anywhere from 10seconds to a minute, depending on the nature of the query.
    For c., acceptability might be a few minutes to a day (24hours), depending on
    the nature of the report.
    As the designer, developer and dba, your responsibility would to to ensure
    that all the database operations required to be executed are completed
    within the acceptable time.
    Type a might consist of 3 queries and 1 insert.
    Type b might consist of 1 or 2 queries (or variable queries !)
    Type c might consist of 2 to 200 queries, some DML, temporary tables.

  • I cannot get GPS Only to work on my ipad3 (4g version, but not on an active cell plan, and wifi off).  Is there some new requirement in 7.1 or 7.1.1 to have cell and/or wifi enabled for GPS to work? I am testing with MotionX

    It seems like I cannot get GPS only to work on my ipad3 (4g version, but not on an active cell plan, and wifi off).  Is there some new requirement in 7.1 or 7.1.1 to have cell and/or wifi enabled for GPS to work? I am testing with MotionX, garmin blueChart mobile, and a GPS monitoring tool. All show no signal. If I turn on cell and wifi,  it says I get gps signal, but can't tell if that is from the GPS chip, or just from cell and wifi only (maybe with some gps mixed in)?  Any ideas on how to get iPad working with GPS only??

    Roger that.  Thanks for your time.
    System:
    Windows 7 64bit
    Processor: AMD phenom IIX4 965
    RAM:  Gskill Ripsaw F3-12800CL7D-4GBRM (2-2GB sticks)
    GPU:EVGA Classified Nvidia GeForce GTX 560 Ti 448 core
    PSU: Kingwin 1000W laser gold (LZG-1000)
    Yes. tried the one ram stick, no go.  I have been trying to boot off/install the windows 7 disk but am unable to get to the point where windows starts installing after its gathering information portion of the install.  I can get to the disk selection screen of the install with the WD HD on SATA port 2 but then get the "cant install messages" when I try to select the Vertex 3.  Yes I can see the Vertex 3 Drive as well as the WD drive at this point.  some times I have to hit "scan" a couple of times.

  • Cpu time is not getting displayed in explain plan

    Hi All,
    I am trying to analyze one query using explain plan .like below
    1) explain plan for
    SELECT /*+ parallel(tsp,8) use_hash( tsp tp) */ count(1)
    FROM router tp,
    receiver tsp
    WHERE tp.rs = tsp.rp
    AND creater_date >=to_date('04032009000000','ddmmyyyyhh24miss')
    and tsp.XVF is not null
    and tp.XVF is not null
    and tp.role_name='BR';
    2)@$ORACLE_HOME/rdbms/admin/utlxpls.sql
    But i am getting only following columns in result .
    | Id | Operation | Name | Rows | Bytes | Cost |
    No Cpu time preset .
    How can i extimate CPU time ?
    Pls help
    Thanks

    am_73798 wrote:
    I am trying to analyze one query using explain plan .like below
    But i am getting only following columns in result .
    | Id | Operation | Name | Rows | Bytes | Cost |
    No Cpu time preset .
    How can i extimate CPU time ?You need to mention your database version (4-digits, e.g. 9.2.0.8).
    In Oracle 9i CPU costing is disabled by default, you need to gather WORKLOAD system statistics to enable the CPU costing.
    In 10g CPU costing is enabled by default and uses default NOWORKLOAD system statistics if no WORKLOAD system statistics have been gathered. It can only be disabled by setting an undocumented parameter or by changing the OPTIMIZER_FEATURES_ENABLE parameter back to 9i compatibility.
    You can check the status of your system statistics by running the following query in SQL*Plus:
    column sname format a20
    column pname format a20
    column pval2 format a20
    select
    sname
    , pname
    , pval1
    , pval2
    from
    sys.aux_stats$;Can you show us the actual (complete) output you get from "utlxpls.sql"? Use the \ tag to preserve formatting here:
    \output
    \will show asoutput
    Regards,
    Randolf
    Oracle related stuff blog:
    http://oracle-randolf.blogspot.com/
    SQLTools++ for Oracle (Open source Oracle GUI for Windows):
    http://www.sqltools-plusplus.org:7676/
    http://sourceforge.net/projects/sqlt-pp/                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • I downloaded Icloud somehow I changed my itunes account information and cannot get back to my original account that had a redeemed balance on it  how can I get back to the original account?

    I downloaded Icloud somehow I changed my itunes account information and cannot get back to my original account that had a redeemed balance on it  how can I get back to the original account?

    Buy the songs that your friend put on the iPod that you liked. They had no right to give you the copyrighted music when they sold you the device.
    tt2

  • HT1373 i have a broken desktop which had my itunes account on it. I am trying to get the information onto a new laptop and itunes programme but cannot. I also cannot get my iphone 5 to be recognized on the new itunes. HELP

    i have a broken desktop which had my itunes account on it.
    I am trying to get the information onto a new laptop and itunes programme but cannot. I have only managed to copy over some of my music as i had it on an external drive.
    I also cannot get my iphone 5 to be recognized on the new itunes.
    HELP

    iTunes as you see it in the application window uses a series of files and folders contained in the iTunes folder.  Some people make the mistake of only backing up their media in which case all you have is a bunch of media files without the iTunes structure.  In that case you have to build a new library yourself.
    What exactly do you mean "not recognized"?  The phone does not show up on the computer at all, or it does but it says it will wipe the phone?  The wipe the phone stuff is again because it cannot find the original library to which it was synced.  You need to transfer the entire iTunes folder from the old computer or the backup you made of it.
    What are the iTunes library files? - http://support.apple.com/kb/HT1660
    More on iTunes library files and what they do - http://en.wikipedia.org/wiki/ITunes#Media_management
    What are all those iTunes files? - http://www.macworld.com/article/139974/2009/04/itunes_files.html
    Where are my iTunes files located? - http://support.apple.com/kb/ht1391

  • I cannot get my payment information to go in.....whats the problem

    I have finally gotten my iphone to accept my ID, I cannot get it to take my pay information.....and when I get as far as to try and buy something it just says "Review...Review"
    and it doesn't do anything!!!!!!!!!!!!!!!! Frustrated!!!!!!!!!!!!!!!!!!!!!!!!!

    staciedv wrote:
    I cannot get my daughters IPOD to go into recovery mode
    See Here  >  http://support.apple.com/kb/HT1808
    You may need to try this More than Once...  Be sure to Follow ALL the Steps...
    Take your time... Pay particular attention to Steps 3 and 4.
    Some users have reported as many as 8 or 9 attempts were necessary before success
    After you have Recovered your Device...
    Re-Sync your Content or Restore from the most recent Backup...
    Restore from Backup  >  http://support.apple.com/kb/ht1766

  • An unknown excel file has appeared on my desktop. It cannot be deleted and I cannot get any information about it. Is this malware?  How can I get rid of it?

    An unknown excel file has appeared on my desktop. It cannot be deleted and I cannot get any information about it.
    Is this malware?  How can I get rid of it?

    Hello Jeff,
    Thanks very much for your reply.  I looked over the article you mentioned, but I have tried all of these methods, but only get the response "The item “29394D00” can’t be moved to the Trash because it can’t be deleted."  Similarly, I cannot Get Info on the file.  This is why I'm so concerned, it just appeared on my desktop, but I cannot touch it, or open it or delete it...
    If you have any more tricks up your sleeve, I'd love to hear about them...
    Derek

  • N96 Error Cannot get enough information about the ...

    I am getting error
    "Error Cannot get enough information about the phone[3]
    "Unspecified error [1]"
    i downloaded the http://static.s2g.gate5.de/nokiamaps-client/nokia_ maps_3.01_09wk44_b01_s60_3.1_lm_rom.sis , but i am getting no signal and i cant sync my favorites...
    anyone?

    problem solve..check this link!!!
    /t5/Maps-Navigation-and-GPS/E75-Maps-Updater-Error-Cannot-get-enough-information-about/m-p/673980

  • HT2731 I am using ipad2 with the latest version. While trying to make a apple Id, In the payment information  cannot get the option of "none" what will I do. Please help.

    I am using ipad2 with the latest version. While trying to make a apple Id, In the payment information  cannot get the option of "none" what will I do. Please help.

    You are following the instructions on this page for creating a new account : http://support.apple.com/kb/HT2534 e.g. selecting a free app in the store and tapping on 'create Apple id' when 'buying' the app ? I've just tried it and it works for me

Maybe you are looking for

  • Pausing and restarting closed caption and audio

    Can anyone help me with this issue - I have 2 sets of closed captions on one slide with audio that spans the both closed captions. I pause the audio at the end of closed caption one using a click box, when I restart it by clicking on the click box th

  • Reduce E1EDKA1 in IDoc regarding partner type

    Hi, im looking for an "non SAP XI" way to reduce the E1EDKA1 in the ORDERS IDoc. I want the following: IF E1EDKA1 PARVW = AG then the segment shouldn´t be reduced. IF E1EDKA1 PARVW = WE then the segment shouldn´t be reduced. IF E1EDKA1 PARVW = ZZ the

  • System monitoring, backup management.

    Hi Experts, Am learning SAP BASIS, could any one suggest how to perform these two activities System monitoring and backup management. i would really feel happy if you give t codes or links which can help me to learn this topic.

  • Elements 11, PC Windows 8.  Problem: Process Multiple Files is grayed out.  How can I activate it?

    I have to reduce the resolution for files in a folder.  I have done this in the past but have a problem with the reinstall of Elements 11 on a PC that lost it's mind and had to reinstall all software.  The Process Multiple Files under the File headin

  • ETRM for R12.1.2 and greated

    We don't have eTRM for R12.1.2 and greater versions..what is the alternative for this? We don't even have Technical Reference Manuals for many modules of 12.1.2 and 12.1.3.. Its becoming difficult to findout the table structure and design..do we have