Need to store explan plan details in a superate table

Hi ,
After execution of explain , I need to store query and that query execution time in a table.
Please help me , how to write a procedure for this.
Thanks,
Rajesh

create the table, what you want to test explain plan.
create table t as select mod(object_id,10) id, a.* from all_objects a;
alter session set optimizer_max_permutations=80000;
create table succeeded.
alter session set succeeded.
now run the explain plan for your query..
explain plan set Statement_Id = 'TEST' for
    select count(*)
      from t t1, t t2, t t3, t t4, t t5, t t6
     where t1.id = t2.id
       and t1.id = t3.id
       and t1.id = t4.id
       and t1.id = t5.id
       and t1.id = t6.id;
explain plan succeeded.
now create table for storing explain plan information.
u can write this into a Procedure
create table temp_table as  select STATEMENT_ID, TIMESTAMP, OPERATION, OBJECT_TYPE,  ID, PARENT_ID, COST, CARDINALITY, BYTES, PARTITION_ID, CPU_COST,  IO_COST,  TEMP_SPACE from PLAN_TABLE where STATEMENT_ID = 'TEST';
then select that table ...
select * from temp_table;
STATEMENT_ID                   TIMESTAMP                 OPERATION                      OBJECT_TYPE                    ID                     PARENT_ID              COST                   CARDINALITY            BYTES                  PARTITION_ID           CPU_COST               IO_COST                TEMP_SPACE            
TEST                           04-APR-12                 SELECT STATEMENT                                              0                                             18446744073709551615   1                      78                                            18446744073709551615   11276755652                                  
TEST                           04-APR-12                 SORT                                                          1                      0                                             1                      78                                                                                                                
TEST                           04-APR-12                 MERGE JOIN                                                    2                      1                      18446744073709551615   18446744073709551615   18446744073709551615                          18446744073709551615   11276755652                                  
TEST                           04-APR-12                 MERGE JOIN                                                    3                      2                      23857102848474256      18446744073709551615   18446744073709551615                          18446744073709551615   11276754606                                  
TEST                           04-APR-12                 MERGE JOIN                                                    4                      3                      2052376473618          187915417821814336     9771601726734346240                           18446744073709551615   11276753560                                  
TEST                           04-APR-12                 SORT                                                          5                      4                      14913446691            16049880768505         625945349971695                               33538401851084428      11276752514            1546831069520000      
TEST                           04-APR-12                 HASH JOIN                                                     6                      5                      176530785              16049880768505         625945349971695                               1605288479746278       2463359                2933000               
TEST                           04-APR-12                 TABLE ACCESS                   TABLE                          7                      6                      494                    117082                 1522066                                       30430872               491                                          
TEST                           04-APR-12                 HASH JOIN                                                     8                      6                      16135                  1370822446             35641383596                                   137179925311           1260                   2933000               
TEST                           04-APR-12                 TABLE ACCESS                   TABLE                          9                      8                      494                    117082                 1522066                                       30430872               491                                          
TEST                           04-APR-12                 TABLE ACCESS                   TABLE                          10                     8                      494                    117082                 1522066                                       30430872               491                                          
TEST                           04-APR-12                 TABLE ACCESS                   TABLE                          12                     11                     494                    117082                 1522066                                       30430872               491                                          
TEST                           04-APR-12                 SORT                                                          13                     3                      1061                   117082                 1522066                                       137311173              1046                   4711000               
TEST                           04-APR-12                 TABLE ACCESS                   TABLE                          14                     13                     494                    117082                 1522066                                       30430872               491                                          
TEST                           04-APR-12                 SORT                                                          15                     2                      1061                   117082                 1522066                                       137311173              1046                   4711000               
TEST                           04-APR-12                 SORT                                                          11                     4                      1061                   117082                 1522066                                       137311173              1046                   4711000               
TEST                           04-APR-12                 TABLE ACCESS                   TABLE                          16                     15                     494                    117082                 1522066                                       30430872               491                                          
17 rows selected

Similar Messages

  • Append select options details in one intennal table

    Hi
    Here by i  am selecting Specification data    ESTRH-subid   in selection screen using SELECT-OPTIONS 
    i.e                SELECT-OPTIONS: s_specif FOR estrh-subid
    I need to populate that SUBID details in one internal table, Please let me know procedure
    and
    I need to count no of recors selected in that selection, the reason is depends on number of records selected in selection screen, the program should run either foreground or back groud
    MAdhu

    You need something like this?
    TABLES: vbak.
    DATA: w_counter TYPE i.
    TYPES: BEGIN OF ty_auart,
           auart TYPE vbak-auart,
           END OF ty_auart.
    DATA: t_auart TYPE STANDARD TABLE OF ty_auart.
    FIELD-SYMBOLS: <fs_auart> LIKE LINE OF t_auart.
    SELECTION-SCREEN BEGIN OF BLOCK test.
    SELECT-OPTIONS: r_auart FOR vbak-auart.
    SELECTION-SCREEN END OF BLOCK test.
    START-OF-SELECTION.
      LOOP AT r_auart.
        w_counter = w_counter + 1.
        APPEND INITIAL LINE TO t_auart
        ASSIGNING <fs_auart>.
        <fs_auart>-auart = r_auart-low.
      ENDLOOP.
    Greetings,
    Blag.

  • Need the the underlying table names which the Material Plan Detail Search p

    Our supply planning users would like to obtain the demand and supply plan for a bunch of given parts by running a query against some tables. The data they need via a PS Query output in Excel format is the same data that is provided by the Material Plan Detail page in PeopleSoft Supply Planning (Menu Path: Supply Planning >>>Solve Plan>>>> Material >>>>>>Material Plan Detail). The main underlying table behind this page is PS_PL_MRP_DTL.
    The problem is that this table contains data for only one Part Number (INV_ITEM_ID). The data is populated when Item ID is selected on the Material Plan Detail Search page.
    What are the underlying table names which the Material Plan Detail Search page brings together to present the information for the selected part number on the target page (The Material Plan Detail page)?
    If you could tell us the underlying table names (which the Material Plan Detail Search page brings together) we can write a query to present the data to the users for multiple part numbers at a time and not just one part number at a time.
    Any help would be greatly appreciated.
    We are on FSCM 8.9 Bundle 13
    Thanks in advance.

    The ERD's for FSCM 8.9 are available from following link
    PeopleSoft Enterprise Financial Management 8.9 Entity Relationship Diagrams [ID 979359.1]
    https://support.oracle.com/epmos/faces/DocContentDisplay?id=979359.1
    Hope it contains the info you are looking for.
    Hakan

  • Why do you need to put credit card details in to the app store when you may want to simply obtain free items in the beginning?

    Apple clearly is a leader and thankfully are bringing fantastic products and initiatives to the market. 
    I certainly hope that the company doesn't get arrogant like it seems to do when forcing people trying to get free apps to put in credit card details. 
    I suspect it wouldn't be too much work to allow users to try it out first by using some free apps and when they are personally ready they can purchase to their little hearts desire.
    Poor showing from this perspecitive and easy to fix.

    Never put your credit card info into iTunes as Apple credit card security is horrible.  There are many cases of credit card problems with Apple. My credit card was compromised 2 weeks after creating an Apple account. That was the ONLY online usage of my credit card. 
    Apple does NOT follow PCI compliance which is the credit card industry standards for credit card data protection.  It requires all companies to NOT store credit card information online because (surprise, surprise Apple!) it can be hacked. 
    Why does Apple need to store the credit card data and put the information at risk and why do they not follow industry (PCI Compliance) guidelines - especially for free aps or updates?

  • How to copy billing plan details of main item to all its sub-items...

    In the sales order, we have main item and sub-items. The main item is a project item and it has a billing plan which gets copied from the project. Now the requirement is to copy the same billing plan(of the mainitem) to all its subitems- billing dates, billing type, billing rule, date category, percentage of the amount to be billed, etc. So that when we do billing for this sales order all the items and its sub items are copied in the milestone billing document.
    The billing plan is not at header level since the sales order can have multiple project items and their milestones can differ.
    Please suggest how to acheive this- coping of billing plan details from main item to all the subitems.
    Rds,
    sucmsss

    You can use the enhancement section in include mv45af0f_fplan_aktualisieren_c. In the below code, I am copying milestone lines from previous document, but you could adapt to copy from the higher level item. Copy and pretty print it in ABAP editor.
    ENHANCEMENT 10  ZSD_SALES_DOC1.    "active version * Generate Billing Plan without dialog. * Because copy control does not work with milestone billing plans, we need to perform the below tricks.
      DATA: zlt_fplt TYPE TABLE OF fpltvb,         zlt_fpla TYPE TABLE OF fplavb,         zlv_fareg TYPE tfpla-fareg,         zlv_fplnr TYPE fplnr,         zls_vbkd TYPE vbkd.   FIELD-SYMBOLS:TYPE vbkdvb,                 TYPE fplavb,                 TYPE fpltvb,                 TYPE fpltvb.
    IF xvbkd-updkz = chari AND       tvap-fpart IS NOT INITIAL AND *      xfplt[] IS INITIAL AND       vbkd-fplnr IS INITIAL AND "bill plan not created       vbak-vbtyp CA 'CG'. "contracts and orders       SELECT SINGLE fareg FROM tfpla INTO zlv_fareg WHERE         fpart = tvap-fpart.         IF zlv_fareg IS NOT INITIAL AND           zlv_fareg <> '6'.         READ TABLE cvbkd ASSIGNINGWITH KEY         vbeln = vbap-vgbel         posnr = vbap-vgpos.         IF sy-subrc IS INITIAL.           CALL FUNCTION 'BILLING_SCHEDULE_READ'             EXPORTING              fplnr          =-fplnr             tables              ZFPLA          = zlt_fpla              zfplt          = zlt_fplt. * Check if any of the lines are not periodic and not from milestone before proceeding.            READ TABLE zlt_fplt ASSIGNINGWITH KEY            MLSTN = abap_false            nfdat = 0.          IF sy-subrc IS INITIAL.           CONCATENATE '$000' vbap-posnr INTO zlv_fplnr.           ENDIF.         ENDIF.         IF sy-subrc IS INITIAL.           LOOP AT zlt_fplt ASSIGNINGWHERE             mlstn = abap_false.            -fplnr = zlv_fplnr.             APPENDTO xfplt.            -updkz = chari.           ENDLOOP.           LOOP AT zlt_fpla ASSIGNING.            -fplnr = zlv_fplnr.             CLEAR-vbeln.            -updkz = chari.             APPENDTO xfpla.           ENDLOOP.           da_fplnr =-fplnr.         ENDIF.       ENDIF.     ENDIF.     CALL FUNCTION 'BILLING_SCHEDULE_GENERATE'          EXPORTING               I_FKDAT        = VBKD-FKDAT               I_FPLNR        = DA_FPLNR               I_WAERS        = VBAK-WAERK               I_FPART        = TVAP-FPART               I_VEDA         = XVEDA               I_VEDA_KOPF    = VEDAVB               I_UPD_FPLA     = UPD_FPLA               I_UPD_FPLT     = UPD_FPLT               I_KOMK         = TKOMK               I_KOMP         = TKOMP               I_KOMPAX       = KOMPAX               I_FKREL        = VBAP-FKREL               I_CREATE_DATES = US_FLG_CREATE_DATES               I_KFPLAN       = DA_KFPLAN               I_KFPLNR       = DA_KFPLNR               I_NOMSG        = US_NOMSG               I_ABSAGEN      = DA_ABSAGEN               I_FPLAA        = FPLAA          IMPORTING               E_FPLNR        = XVBKD-FPLNR               E_DATALOSS     = DA_DATALOSS               E_UPD_FPLA     = UPD_FPLA               E_UPD_FPLT     = UPD_FPLT               E_KOMPAX       = KOMPAX          TABLES               FPLA_NEW       = XFPLA               FPLA_OLD       = YFPLA               FPLT_NEW       = XFPLT               FPLT_OLD       = YFPLT               I_FPLTS        = TFPLTS               I_FPLTNP       = TFPLTNP               I_KOMV         = XKOMV               I_TKOMK        = TKOMK               I_SVBAP        = UVBAP.     LOOP AT zlt_fplt ASSIGNING.       READ TABLE xfplt ASSIGNINGWITH KEY       mandt =-mandt       fplnr =-fplnr       fpltr =-fpltr.       CHECK sy-subrc IS INITIAL.      -updkz = chari.     ENDLOOP. ENDENHANCEMENT.

  • HT5622 I need to edit my payment details for iPhone 3

    I need to edit my payment details for iPhone 3 in app store ?

    Read here:
    http://support.apple.com/kb/ht1918

  • How/Where to store current page details in ADF?

    Hi All,
    What is the best way to populate the managedBean while loading the page?
    In my application, I have an page fragment which display the user details from Webservice DataControl. I drag and drop the webservice data control in to the pageFragment. This fragment has mapped in the taskFlow and the taskFlow as attached in to main JSPX page as a region. I need to store this user information to any place (ManagedBean / or anyother best place to store) which I can use throughout my application, since I dont want to reexecute the webservice each time to get the same user information. Also I want to collect and store this info while I render the main page, not after any user action.
    Please advice how & where to store the information in ADF? Can I create an managedBean? If so how to trigger that class method at page load?
    Thanks
    kln

    Hi,
    in this case you configure the managed bean to be in session scope. Then, on the first page, you define a phase listener for the after restore phase (its a tag on the f:view element). This phaselistener references the managed bean using EL (important). It can do so using a method expression in JSF. For example, if the managed bean had a method populateUserInfo then yu could reference #{beanname.populateUserInfo} and execute the method expression using Java. In the managed bean, the method would access the binding layer Using the BindingContext class
    http://download.oracle.com/docs/cd/E15051_01/apirefs.1111/e10653/oracle/adf/model/BindingContext.html
    Call
    BindingContext .getCurrent().getCurrentBindingsEntry() to obtain a handle to the active instance of BindingContainer.
    BindingContainer bindings = BindingContext .getCurrent().getCurrentBindingsEntry();
    Then on the binding container, you invoke the method to query the Web Service for the user info
    //before you can call a method on the ADF binding layer, make sure the ADF binding is created for the method
    OperationBinding opws = (OperationBinding) bindings.get("name of the method exposed on WS");
    //if you need to pass parameters
    opws.getParamsMap().put("argument name",value);
    opws.execute();
    You can use similar code to access the user information from the method iterator in ADF to populate the managed bean fields. You can then access user information from the managed bean through getter and setter methods
    Frank
    Ps.: I know the description is a bit rough. I'll see if I can come up with a blog sample to a later time
    Edited by: Frank Nimphius on Jan 26, 2010 5:43 PM

  • While Sales Order Change , need to create Billing plan Item wise

    Hi ,
    We are using BAPI_SALESORDER_CHANGE for changing item category as well as parallely need to create billing plan item details (FPLT-FKDAT, FPLT-AFDAT, FPLT-NFDAT), Hence Please tell me the Procedure.
    Example: Billing Plan is Depending on Item Category, In my scenario , initially Item category do not have Billing Plan Tab, When we go for BAPI_SALESORDER_CHANGE for changing Item Category to Supported Billing Plan, So How can we update (FPLT-FKDAT, FPLT-AFDAT, FPLT-NFDAT) in Billing Plan Tab for every sales order item.
    Regards
    Jana

    Hi Ravi,
    Can You explain in detail.
    Regards
    Jana

  • Planning Detail Report (GMPPDR) in Excel Output

    Hi All,
    We have a requirement to show the Planning Detail Report (GMPPDR) output in Excel format.
    And it need to include all the four templates (Horizontal, Vertical, Exception & Action).
    Can someone give me some insight on how this can be achieved ?
    Regards,
    Ganga

    Hi ,
    We have applied the patch and the output is coming in excel.
    But it didnt serve the purpose.
    the issue is if there are 10 buckets (10 days)..then the report output is shown in two different blocks for the horizontal plan ...
    1,2,3,4,5
    6,7,8,9,10
    But the user needs all the 10 days in the same table format.
    Not sure if there is a way to upload some examples to explain it bettter.
    Thanks
    Ganga

  • Table that stores Transport Request Details

    Hi SDN Gurus,
    Is there any table that stores all the details of all the transports in Import Queue (STMS). I am mainly interested in import time and method execution time of the transport. I need to write an ABAP program that for calculating the time for mass migrating all the transports in the queue.
    i looked at the tables E070, E071 and some others but din't get the required info.
    Any help will be rewarded with points.
    Thanks

    Here is some correction to what i said. i got some information like the transport number, owner of the transport, target system and the IMPORT time of the request from the table E070. i guess all i need now is to find the time at which the transport is completed (Method Execution time) so i can calculate the time it took for transport.
    Thanks

  • Hyperion FR , Planning Details, Limit member selection based on access.

    Hi There
    I am working on a project
    Version 11.1.2.2, FR connected with "Planning Details""
    I want to limit POV "Entity" member selection based on access right and I don't want to set User POV one by one.
    For ex:
    US users don't need to see Canada users' entity.
    I am looking for a solution or workaround that can be easy to manage and save time.
    Highly appreciate and Thanks

    You can actually set the default values in jconsole. jconsole can be started with FRConfig.cmd (normally under C:\Oracle\Middleware\EPMSystem11R1\products\biplus\bin).
    Change the value of "com.hyperion.reporting.HRPrefs.filter_by_security" to true, this way, the the default values will be true for all users who haven't set it in user preference yet.
    This will list only the members which the users has access.
    I believe this is what you are looking for.
    Edited by: Krishna Kumar K P on Sep 14, 2012 9:50 AM

  • I wish to renew my adobeformscentral annual subscription but I don't want adobe to store my card details because of their security breach recently. Is there another way to pay?

    I wish to renew my adobeformscentral annual subscription but I don't want adobe to store my card details because of their security breach recently. Is there another way to pay?

    You need to immediately pull credit reports to see what else he has done.  Then "freeze" the credit report at all three agencies.  That way even you need to lift the freeze to add credit cards or other credit items to your SSN.

  • How to view existing plan details?

    Does anyone know whether I can view my existing plan details on the BT website?  The various package names are getting less and less clear - eg which type of calls are free - and the charges are getting more and more unfathomable.  Thanks.   Dolphin

    Hi Dolphin,
    Welcome to the forum.  Have you setup online billing?  This will allow you to keep an eye on your account to see what you are paying for.
    Please visit this website to setup an online billing profile My BT: https://www.bt.com/reg/consumer/displayPage.do?journeyType=consumer_online_registration&page=registr...
    Let me know if you have any problem in setting this up.
    Cheers
    Sean
    BTCare Community Manager
    If we have asked you to email us with your details, please make sure you are logged in to the forum, otherwise you will not be able to see our ‘Contact Us’ link within our profiles.
    We are sorry that we are unable to deal with service/account queries via the private message(PM) function so please don't PM your account info, we need to deal with this via our email account :-)

  • Long-term planning: planning details of work center capacity

    Hi,
    we need to know what is the effect on planned production orders (generated by MPS, transaction MD40) of the flag <b>&#8220;long-term planning&#8221;</b> in planning details of work center capacity (table name: RC68K; field name: KAPLPL). We made a test  analyzing planned orders scheduling details in <i>Stock requirements list</i> (MD04) and in the <i>Planning table</i> (CM21) in both cases: with "long-term planning" flag set and without this flag for the same work center.
    The schedule of planned production order on that work center is the same in the two instance.
    Could you suggest us something?
    Thank you.

    Hi Rudy,
    Purpose for carrying out Long Term Planning to simulate impact of Future Demand Program on
    u2022 Material Requirements
    u2022 Capacity Requirements
    u2022 Material Cost budgeting (activity by Accounts dept.)
    T.Codes used -
    u2022 Demand      MD61, MD62, MD63
    u2022 Scenario Creation     MS31, MS32, MS33
    u2022 LTP Variant  Creation & Execution     MSBT, SM37
    u2022 LTP statistics Evaluation     SM37, MS04
    u2022 Data Set Up     MS70, MSB&
    u2022 Evaluation based on Set up data     MCB), MCEA, MCEB, MCEC
    u2022 Capacity Evaluation     CM38
    To Summarize -
    u2022 In long-term planning, production plans for future demand programs are simulated using MRP runs with reference to the planning scenarios.
    u2022 The parameters for the simulation in the simulation planning area are defined in the scenario.
    u2022 The Evaluation of LTP Statistics enables identification of Material for which LTP processing was terminated.
    u2022 The Data set for purchasing & Inventory Control enables reports for demand analysis
    u2022 LTP run with setting for u201CLead time scheduling and capacity planningu201D enables simulation of capacity situation/overload on work centers.
    Hope it is helpful to you.
    Srini

  • I want to know that if i want to download facebook on my iphone 4 or any other apps then it ask me put my card details for payment. why is that. if they are free then why do i need to give my card details?please help me anyone.

    I want to know that if i want to download facebook on my iphone 4 or any other apps then it ask me put my card details for payment. why is that. if they are free then why do i need to give my card details?please help me anyone.

    Just select no credit card as outlined here:
    http://support.apple.com/kb/ht2534

Maybe you are looking for

  • Advice Needed - Should I just do a Clean Install?

    I've got an older 17" iMac FP that I handed down to the kids (6 and 9). The mainly use Garageband and Pages. Since this was my original machine (before getting my new 20" iMac G5) I decided to leave my account on there, just for a backup. Lately they

  • Problem with iPhone 5 after latest update

    After updating to iOS 6.1.3, I find that my iPhone 5 speaker not functioning. No sound in music or video or any application needs the speaker. If someone faced this issue and solved it, please tell me what to do in this situation. Many Thanks in adva

  • [SOLVED] Reflector cannot retrieve mirror data

    Hey guys, I've had a look around but I can't seem to find much on this. When running sudo reflector --verbose -l 5 --sort rate --save /etc/pacman.d/mirrorlist.bak I'm getting error: failed to retrieve mirror data: <urlopen error [Errno 111] Connectio

  • Center Cut Safe in Final Cut Studio 2...

    Hello! How do you display the guides for 4:3 center cut safe within a 16:9 timeline in Final Cut? Thanks!

  • User unable to see the dashboard

    Hi, We have built different dashboards (orders, sales, expenses etc). and we have give access to users whcih are under fin group. one user able to see orders and sales and not expenses. Later i tried giving "user name" along with group access to "Exp