Explain me please

i ahve a doubt regarding the following line of code....please anyone explain me the same.
"""do 10 times varying it1-f1 from alpha0 next alpha1""".
when i am using this statement in program...what function actually it does.

Hi!
......VARYING dobj FROM dobj1 NEXT dobj2.
The addition VARYING assigns a new value at every loop pass to a variable dobj. This addition can be used several times in a DO-statement.
dobj1 and dobj2 are the first two in a sequence of data objects, which have the same distance from each other in the memory. The data type of the data objects dobj, dobj1 and dobj2 has to be flat.
In the first loop pass, the content of dobj1 is assigned to data object dobj, whereas in the second loop pass, the content of data object dobj2 is assigned to dobj. In the following loop passes, dobj gets the content of the data object, which has the same distance in the memory to the prior data object, like dobj2 to dobj1. There is no type conversion during this process.
Reward if useful.
Regards,
Neha Bansal

Similar Messages

  • Explain my Explain Plans please?

    Hi,
    I have two schema's situated on the same database. One called SCHEMA_A_LIVE and another SCHEMA_B_LIVE. Both schemas have been analyses for stats, however SCHEMA_B_LIVE doesn't hold any data where as SCHEMA_A_LIVE does. They both essentially have the same tables, indexes, tablespaces, structure, etc but when I run an Explain plan in TOAD for a SQL statement take from the same procedure in both schemas, I receive different plans? SCHEMA_A_LIVE returns a NESTED LOOPS and SORT UNIQUE and SCHEMA_B_LIVE returns a HASH SEMI JOIN (not sure what this is either???). Can someone please explain why I getting different results and as well as the pros/cons of each plan?
    SQL:
    DELETE FROM "SCHEMA_A_LIVE".CHANGE_HISTORY
    WHERE TOID IN(SELECT TOID FROM "SCHEMA_A_LIVE".LOADER_CHANGEHISTORY);
    EXPLAIN PLAN:
    Operation     Object Name     Rows     Bytes     Cost     Object Node     In/Out     PStart     PStop
    DELETE STATEMENT Optimizer Mode=ALL_ROWS          1           4.00140839118856                     
    DELETE     SCHEMA_A_LIVE.CHANGE_HISTORY                                   
    NESTED LOOPS          1      47      4.00140839118856                     
    SORT UNIQUE          1      10      2.00065584594569                     
    TABLE ACCESS FULL     SCHEMA_A_LIVE.LOADER_CHANGEHISTORY     1      10      2.00065584594569                     
    INDEX RANGE SCAN     SCHEMA_A_LIVE.PK_CHANGEHISTORY     1      37      1.00075254524288                     
    SQL:
    DELETE FROM "SCHEMA_B_LIVE".CHANGE_HISTORY
    WHERE TOID IN(SELECT TOID FROM "SCHEMA_B_LIVE".LOADER_CHANGEHISTORY);
    EXPLAIN PLAN:
    Operation     Object Name     Rows     Bytes     Cost     Object Node     In/Out     PStart     PStop
    DELETE STATEMENT Optimizer Mode=ALL_ROWS          1           2.50067886958788                     
    DELETE     SCHEMA_B_LIVE.CHANGE_HISTORY                                   
    HASH JOIN SEMI          1      50      2.50067886958788                     
    INDEX FULL SCAN     SCHEMA_B_LIVE.PK_CHANGEHISTORY     1      40                          
    TABLE ACCESS FULL     SCHEMA_B_LIVE.LOADER_CHANGEHISTORY     1      10      2.00065584594569                     
    Both have the following index:
    Enter value for 1: change_history
    INDEX_NAME UNIQUENES COLUMN_POSITION COLUMN_NAME
    PK_CHANGEHISTORY UNIQUE 1 TOID
    PK_CHANGEHISTORY 2 VERSION
    PK_CHANGEHISTORY 3 CHANGEDATE
    PK_CHANGEHISTORY 4 REASONFORCHANGE
    Thanks,
    Tony

    The resulting explain plan is as follows:
    Operation     Object Name     Rows     Bytes     Cost     Object Node     In/Out     PStart     PStop
    DELETE STATEMENT Optimizer Mode=ALL_ROWS          1           0                     
    DELETE     SCHEMA_B_LIVE.CHANGE_HISTORY                                   
    NESTED LOOPS SEMI          1      50                          
    INDEX FULL SCAN     SCHEMA_B_LIVE.PK_CHANGEHISTORY     1      40                          
    INDEX RANGE SCAN     SCHEMA_B_LIVE.IDX_LDR_CGHIST_TOID     1      10                          
    as appose to the previous plan:
    Operation Object Name Rows Bytes Cost Object Node In/Out PStart PStop
    DELETE STATEMENT Optimizer Mode=ALL_ROWS 1 2.50067886958788
    DELETE SCHEMA_B_LIVE.CHANGE_HISTORY
    HASH JOIN SEMI 1 50 2.50067886958788
    INDEX FULL SCAN SCHEMA_B_LIVE.PK_CHANGEHISTORY 1 40
    TABLE ACCESS FULL SCHEMA_B_LIVE.LOADER_CHANGEHISTORY 1 10 2.00065584594569
    Tony

  • Statement explaination needed please

    I'm trying to track down a variable bug using traces (AS2.0).  Could someone please explain to me what the statement in red below means and where I should look for it ? there seems to be another addressing concept that I'm missing.
    scrolledMC is a MC container that holds the dynamic text field (auto sized) that is the text that is being scrolled.
    scrollContent1 = _parent.scrolledMC  // this statement does "_parent" refer to the original Lib item or the MC in which
    trace("scrollContent1 ="+ scrollContent1)
    //trace result
    // scrollContent1 = _level0.instance703.instance709.scrolledMC // what does this mean? "instance" of what ? what relevance to the numbers have ?
    1. how do I display the contents of "_level0.instance703.instance709.scrolledMC"  in a text contents form I can read??
    2. Everytime this trace runs the "instance" numbers are different. never the same numbers. so if I try to trace (_level0.instance703.instance709.scrolledMC) it comes back undefined.  these numbers can get vary large the longer the swf runs and i keep coming back to the page with all the traces. Whats up with that ??
    3. How is _level0 different from _root ?
    4 if I trace scrolledMC I get "undefined"
    Thanks
    Joel

    Ned,
    "It could be easier to explain if you explain what you have created that involves scrolledMC."
    I will try to explain but I might make it worse . I'm a noob to flash, and Unfortunately, I'm not the originator of the fla code I'm working with and it is very poorly documented and I'm trying to figure out how somebody else did something so I can make it do what I want it to.
    I am converting from dynamic content loaded from a html text file to dynamic content loaded from an XML file. the reason being I'm adding content that is much easier to deal with in an XML file than &MyVar=myContent&  text file. In order to be able to do this conversion I have to track down all the var assignments to text fields. 80% of this is not a problem and is straight forward. But then there are these scrolling text boxes which are a mystery. There is a single Lib item called Text_scrollerMC that is used for each instance of these scrolling text boxes on different pages. I can't switch this content over to the xml file until I figure out how it is being assigned to the different instances of the Text_scrollerMC.
    So I'm trying to deterime how the content contained in the variables loaded at runtime from the html text file, are being assigned to any given instance of Text_scroller. "scrolledMC" is the part of Text_scroller that contains the actual dynamic text field that is being loaded with the var content. Each time it is filled with unique content used on the page on which it's used. The loaded content var names use the nav button name of the page in the content var name, for example on page1or "Home" page, the content in the scroller box is from var "home_txt5", on page2 it's from var "services_txt3", on page4 it's from var "members_txt7" and so on.  Each var starts with the name of that page followed by "_txt" then a number. Again a direct search of the fla does NOT find ANY use of these vars by name, yet somehow these vars are being assigned to the Text_scroller when it is used on a page. I can only assume that the proper var name to use for any given instance of the scroller box is being dynamicaly "built" some how based on the scrollers location or something.
    So back to "scrolledMC". As mentioned scrolledMC is the text field component of the scrolling text box (Text_ScrollerMC). Inside "scrolledMC" is the dynamic text field named "tola" that the variable content gets assigned to. The var listed in the text box properties for it's content is "home_txt1" (this is NOT a var coming from the loaded text file of vars/content). As I mentioned, Text_scrollerMC is used 6 times on different pages on the site. I'm trying to figure at what point the differnt content variables are being assigned to a particualr instance of Text_scrollerMC. besides seaching with all the actual var names I searched using "home_txt1", and using "tola" and can't find any reference to how the content is finding it's way to the text box "tola" inside scrolledMC. There is no reference to any of the var names or "home_txt1" anywhere in the fla. The only refernece to "tola" is a line telling it to "autosize". Even though "home_txt1" is listed as the var in each instance of the text box "tola" in scrolledMC, nowhere is "home_txt1" listed in the fla. I don't know why it can't be as simple as home_txt1="var for the content I want". that would make too much sense.
    anyway the only way i can figure to try to track this down is to try and follow "scrolledMC" since that is where the content has to end up. soooo...  in the code from the Text_scrollerMC....
    scrollContent1 = _parent.scrolledMC 
    from what i can determined at this point _parent.scrolledMC has the var content in it cause scrollContent1 is use in the computation of the scroller movement as being the "size" of the content so _parent.scrolledMC must have "auto resized" to fit the var content cause that is the size being used in the scroller math. so I placed a trace after that line to look for clues and what i got was....
    _level0.instance703.instance709.scrolledMC
    I was hoping for the holy grail but instead I had no idea of what that ment which is why I was asking.  I know that someplace there has to be a refence to the loaded content var in some way at some point so I'm just trying to track that down. In the above, what is "instance703" in reference to?  instance of what ??
    So other than trying figure out how the hell the vars are being assigned if I can't figure it out i will have to go to plan "B" which is to make each use of the Text_scrollerMC it's own complete unit and just hard code the var in each seperate use. Which will add more weight to the file which I'm trying to avoid.
    Maybe I'm going about this in the wrong way? is there a way to follow the content some way to see how it's being asigned.?
    the only refence to scrolledMC is in the scroller code and in a gotoAndStop statement.
    onClipEvent (load)
        oldY = 1;
        Y = 1;
        vY = 0;
        newY = 0;
        mouseWheelHitTest = true;
        contentHeight = _parent.scrolledMC._height;
        scrollSpeed = _parent.speed_content;
        scrollStep = _parent.step_content;
        viewHeight = _parent.line._height;
        buttonSize = _parent.dragMC._height;
        buttonY = buttonMC._y;
        scrollHeight = _parent.scrolledMC._height;
        scrollContent = _parent.scrolledMC._y;
        scrollContent1 = _parent.scrolledMC;
        newY = _parent.scrolledMC._height;
        var mouseListener = new Object();
        mouseListener.onMouseWheel = function (delta)
            if (!mouseWheelHitTest || scrollContent1.hitTest(_root._xmouse, _root._ymouse, false) || hitTest(_root._xmouse, _root._ymouse, false))
                if (buttonMC._y >= 0 && buttonMC._y <= scrollHeight - buttonSize + 1)
                    buttonMC._y = buttonMC._y - delta * _parent.mouse_speed;
                } // end if
            } // end if
        Mouse.addListener(mouseListener);
        hiScroll = _parent.line._height - _parent.dragMC._height;
        step = (scrollHeight - buttonSize - hiScroll) / hiScroll;
        y = _parent.scrolledMC._y;
    onClipEvent (enterFrame)
        if (_parent.drag_but)
            if (buttonMC._y >= 0)
                buttonMC._y = buttonMC._y - scrollStep;
            } // end if
        } // end if
        if (_parent.down_but)
            if (buttonMC._y <= scrollHeight + buttonSize)
                buttonMC._y = buttonMC._y + scrollStep;
            } // end if
        } // end if
        if (buttonMC._y <= 0)
            buttonMC._y = 0;
        } // end if
        if (buttonMC._y >= viewHeight - buttonSize)
            buttonMC._y = viewHeight - buttonSize;
        } // end if
        level = buttonMC._y - buttonY;
        lev = int(y - level * step);
        newY = oldY + (lev - oldY) / scrollSpeed;
        _parent.scrolledMC._y = newY;
        oldY = newY;
    I didn't see anything here to assign content but it looks like content has been assigned before it gets here. If so I can't fine it.
    Thanks
    Joel
    BTW  Did something change about the forum ?  I can seem to get to the advanced editor, there is no button for it ???

  • SQL UPDATE Statement Explaination (urgent please...)

    Hi,
    Could anyone explain for me what this statement will do:
    update KPIR KR
    set ( CA ) = (
    select sum(sl.RRC_CONN_STP_ATT) CA
    from PV_WCEL_SERVICE_LEVEL sl, UTP_MO um
    where sl.GLOBAL_ID = um.CO_GID
    group by sl.STARTTIME, um.OBJECT_INSTANCE
    I could not understand how the mapping between the two tables will be ("um" clause is not used in the select statement and it is used only in the "where" and "group by" arguments) What does this mean?.
    The actual problem is that when I execute the above SQL statement, it was take around just 3 minutes to be implemented. But after we upgrade from Oracle 8 to Oracle 9, this statement is taking around 3 hours to be implemented.
    Anyone have any idea what is the problem?

    Below is the plan:
    KPIR table:
    RNC_ID (str), PST ('YYYYMMDD_HH24'), CA (Numner)
    1, 20061105_13, 0
    1, 20061105_14, 0
    1, 20061105_15, 0
    2, 20061105_13, 0
    2, 20061105_14, 0
    2, 20061105_15, 0
    3, 20061105_13, 0
    3, 20061105_14, 0
    3, 20061105_15, 0
    4, 20061105_13, 0
    4, 20061105_14, 0
    4, 20061105_15, 0
    PV_WCEL_SERVICE_LEVEL table:
    GLOBAL_ID (str), STARTTIME ('YYYYMMDD_HH24'), RRC_CONN_STP_ATT (Number)
    A1, 20061101_00, 9
    A1, 20061101_01, 4
    A1, 20061101_23, 3
    A1, 20061130_23, 4
    A2, 20061101_00, 3
    A2, 20061101_01, 4
    A2, 20061101_23, 1
    A2, 20061130_23, 5
    UTP_MO table;
    RNC_ID (str), GLOBAL_ID (str), OBJECT_INSTANCE (str)
    1, A1, <A1_NAME>
    1, A2, <A2_NAME>
    1, A9, <A9_NAME>
    2, B1, <B1_NAME>
    2, B2, <B2_NAME>
    2, B9, <B9_NAME>
    3, C1, <C1_NAME>
    3, C2, <C2_NAME>
    3, C9, <C9_NAME>
    4, D1, <D1_NAME>
    4, D2, <D2_NAME>
    4, D9, <D9_NAME>
    Now, I want to update the value of CA in table KPIR:
    For instance, for RNC_ID='1' and at PST='20061105_13', the CA should equals to the sum of value RRC_CONN_STP_ATT for all GLOBAL_IDs under RNC_ID='1' and at STARTTIME '20061105_13'.
    So, is this SQL UPDATE statement will do it?
    update KPIR kr
    set ( CA ) = (
    select sum(sl.RRC_CONN_STP_ATT) CA
    from PV_WCEL_SERVICE_LEVEL sl, UTP_MO um
    where sl.GLOBAL_ID = um.GLOBAL_ID and kr.RNC_ID = um.RNC_ID and kr.PST = sl.STARTTIME
    group by sl.STARTTIME, um.OBJECT_INSTANCE
    And if so, why it is taking around 3 hours to be implemented? This issue is happened after upgrading from Oracle 8 to 9.
    Really appreciate your help and thanks in advance.

  • If I'm already paying 149.99 to replace my water damaged Iphone 4 can I pay the Iphone 4s replacement price and get that instead? If No explain why please . Thank you

    I have a water damaged Iphone 4 I have had for only 8 months. Today I went to the apple store to see how much a replacement was and the girl told me 149.99 for my iphone. What I was wondering is can i pay the replacment cost of an Iphone 4s and get that instead . I dont see the problem since my phone is broken anyways . But I would like to hearf if any one has tried the same thing.
    Thanks

    The only exception would be if there were no like models available.  There was a short period when there were not sufficient supplies of the 3gs to effect warranty replacements.  In that case, they replaced the 3GS with a 4 at no additional charge.  But the warranty fine print specifies that they will repair or replace the device, at their discresion. 

  • Can anyone explain this please...

    I am having a discussion with one of my freind.. and he claims..
    Static methods can not be overridden but can be hidden
    And then one more friend claimed...
    Static methods can be over ridden by the static methods in the derived calss only
    Who is right?? and WHY??
    Any examples plz...

    Who is right?? and WHY??
    Any examples plz...What's your friends name? Is he called exam?

  • Apple you have to explain this please.

    This makes no sense. TC is forever making huge backups, 3.5 - 4 gb backups when the only thing open is mail.
    I have excluded everything but Documents, Mail, iCal, Music, Pictures and Movies. Those are the only things to backup.
    So today. I took some photos and imported to Aperture. Not many. 30. I also bought two movies on iTunes. Almost 3 gb's. But I always move the movies to a network computer dedicated to iTunes Music and video to the AppleTV.
    So TC starts up. It say 3.8 GB's. But then I remember I forgot to delete the movies from my computer. So I cancel TC. And I delete the two movies. And one more I don't watch. So three, Field of Dreams, Caddyshack and Something's Got To Give. Deleted and trash empty.
    So I manually start TC. This is all within 3 minutes of starting up at 3.8 GB. Delete and restart.
    On restart? TC now says 42.6 GB!!!!!!!!!
    I delete data and the backup is 10 times larger?
    I wiped my 1 TB TC a week ago. Why? It was more than half filled from just these types of backups. And the fresh, new backup of my MBP via ethernet is only 60GB.
    How can TC right now tell me 42.6 GB? It makes no sense.

    OMG - You have Aperture !!!
    http://support.apple.com/kb/TS1228
    and then this
    http://support.apple.com/kb/HT1878

  • Could someone explain this please?

    Hi im new to the PCI-E world and i still really dont understand what this stuff means,this is a example off of a motherboard;
    PCI Express 2.0 x16     1 x mazarine PCI Express x16 slot with x16 operation
                                    1 x light-blue PCI Express x16 slot with x8 operation
    does the x8 mean the video card will only work half as good in the second slot?
    sorry for the newb question :(

    Have a read here: https://forum-en.msi.com/index.php?topic=115732.0

  • Can someone explain HomeKit please?

    I read that homekit is suppose to be a feature of the OS where it allows you to interface with any hardware that is homekit compatible (as opposed to using many apps to control many things).
    Ok all makes sense. But where is the homekit app?

    Yep, I read the whole thing. It didn't make any sense. Why would you want to use homekit SDK to build apps when the whole point was to have a central app for all these devices?
    If you are going to build an app for each piece of hardware then why use the SDK?

  • Pages In/Pages Out ... came someone explain this please?

    Ok, I've been told that the Pages In/Pages Out stats in your Activity Monitor is important, and should read a certain way. Obviously this is affected by the amount of physical memory in your system, but I'd like some more in depth info on what these pages in/out mean.
    Right now, my iMac Core Duo with 512mb RAM reads:
    Pages ins/outs: 188682/152482.

    Likemost modern operating system MacOSX uses a Virtual Memory system. Every process running under OSX receives a very large virtual space of memory (typically much bigger than the computers physical memory) thats devided into 4kb pages. The operating system is able to move these pages from the computers RAM to its hard disk back and forth as needed.
    A pageout just means that, for some reason, the system just swaped RAM to a pagefile on the HD.
    There are a couple of situations where these swaps have to occure. For example when starting a programm or switching betwene different applications - and there are situations where they only occure because there is not enough physical memory available.
    Whenever a page-swap occures, the systems performance will suffer BIG times (because the HD is typically 100+ times slowern then RAM - and swaps occure on kernel level, haveing the potential to block the whole system).
    If the computer is under heavy swap-load while performing an operation, its performance is limited by the speed of the HD - NOT the processor.
    MacOS is a very memory hungry platform (For some reason it even got worse with the intel switch). After my experience, macs with <1GB ram are pretty crippled, under normal use....
    Personally I really can't understand how apple can sell systems with 512MB ram - they just make their own systems look bad that way.
    Hope that answers your question...<br>
      Mac OS X (10.4.5)  

  • Satellite c855d-s510​3 recovery please

    Good morning,
    Im here asking for help to restore/recover my toshiba laptop. it just recently went to Blue recovery screen stating .......
    your pc couldnt start properly.
    the applicarion or operating system couldnt be loaded because a required file is missing or contains errors.
      file: \windows\sytem32\winload.efi
    error code: 00xc0000001
    youll need to use the recovery tools on your installation media. if you dont have any installaion media(like a disc or usb device), contact your system adminstrator or pc manufacturer...
    please help me to restore my pc to out of box settings. I WOULD REALLY APPRECIATE THE HELP. im not very computer savy but if guided i can follow instructions.
    i did try the hold "0"  the tap the power and follow prompts but but just goes back to the screen explained above. please help
    thank you in advance.
    gabriel suarez
    Attachments:
    COLONSUAREZ - WIN_20140520_114858.JPG ‏105 KB

    Satellite C855D-S5103
    In case Windows does not boot, you should be able to enter the recovery environment, which in Windows 8.x looks like the picture below.
    From Troubleshoot you can go to System Restore, Safe Mode, Startup repair, a command prompt,  the UEFI, or even restore the hard disk to its original out-of-the-box contents from the recovery partition.
    According to Microsoft, trying and failing to boot several times will eventually take you to the recovery environment instead. According to Toshiba, you can also get there by pressing F2 or the zero key on powering up.
    If you have completely shut down, Toshiba says you can get there using F12 to reach the UEFI boot menu and then selecting HDD Recovery. One might expect that to take you to Toshiba's recovery back to factory-new, but it actually leads to the recovery environment above.
    Please try these out and let us know what you learn.
    -Jerry

  • Explain Plan

    Just Question about Explain Plan.
    Q- 1. Is it Possible to trace a current session query from other session without altering that session. If How can i do it. I can not do it with v$session becuase it will be different sessionid. Also i ndon't want to alter session.
    Q-2 I have SQl statement gives different EXECUTION PLAN on 9R2 and 10g. Is it possible.
    Can any one explain this please

    thank you smoradi and william for your response.
    Sorry for Long Post
    I tried to post it before also. i did not get the conculsion. This are the final results i got. So can any one Help me.
    Following are the information
    I have TKPROF result. can any one expalin me this what it means. Where are wait time.
    I got the explain plan as unnder can any one explain me please i am still having problem solving this
    can any one explain me how to improve the perfomance.
    1.SS_SKU_STORE_WEEk is the biggest table around 12 million rows.
    2. SS_SKU_STORE 50 thosand rows
    3. ITEM 44 thousand
    4.Rest all tables are small.
    SQL>  SELECT   /*+ index( ss_sku_store SS_SKU_ST_PK ) */
      2              TO_NUMBER( ss_sku_store.sku || ss_sku_store.store_num) rowkey,
      3              ss_sku_store.sku psku,
      4              ' ' || INITCAP( item.descrip ) description,
      5              dept_id,
      6              TO_CHAR( dept_id ) || '.' || TO_CHAR( sub_dept_id ) subdepartment,
      7              TO_CHAR( dept_id ) || '.' || TO_CHAR( sub_dept_id ) ||'.'|| TO_CHAR( class_id ) class,
      8              NVL( vendor_id, -1 ),
      9              NVL( buyer_num, -1),
    10              NVL( TRIM(pattern_cd), -1),
    11              DECODE(Color_Cd, 0, -1, NVL( Color_Cd, -1)) Color_Cd,
    12              NVL( size_cd, -1),
    13              -1 list_id,
    14              ss_sku.sku skuattribute,
    15              ss_sku_store.store_num pstore,
    16              INITCAP( store.name ) location,
    17              store.state,
    18              NVL( INITCAP( regional_vp), :cUNASSIGNED) regional_vp,
    19              NVL( INITCAP( regional_merch_mgr), :cUNASSIGNED) regional_merch_mgr,
    20              NVL( INITCAP( district_mgr), :cUNASSIGNED) district_mgr,
    21              NVL( INITCAP( area_mgr), :cUNASSIGNED) area_mgr,
    22              NVL( sq_footage, -1),
    23              SUBSTR( '000' || fashion_attribute.seq, -3, 3 ) || NVL( store.fashion_att_cd, '' ) fashion_att_cd,
    24              SUBSTR( '000' || cust_profile.seq, -3, 3 ) || NVL( store.cust_type_cd, '' ) cust_type_cd,
    25              NVL( section_count, -1) section_count,
    26              '000' corp_vol_grp_cd,
    27              0 storegroup,
    28              store.store_num storeattribute,
    29              0 storesort,
    30              submit_status,
    31              DECODE( current_user, :pUserID, shipment_schedules.check_staged_sku(ss_sku_store.sku,-1), 1) lockedflag,
    32              '' aggregatedrowkey,
    33              '' AttributeDescription,
    34              starting_on_hand     onhand
    35     FROM     cust_profile,
    36              fashion_attribute,
    37              ( SELECT   vendor_id,
    38                         sku
    39                FROM     item_vendor
    40                WHERE    sku IN ( SELECT  sku
    41                                  FROM    ss_session_sku
    42                                  WHERE   user_key = :pUserKey)
    43                AND      primary_flag = :cTRUE ) primaryvendor,
    44              ( SELECT   SKU,
    45                         DECODE( status, 0, 0, DECODE( status, 1 ,0 ,1) ) AS submit_status
    46                FROM     ( SELECT   /*+ full(ss_session_sku) use_nl(ss_session_sku,ss_sku_store_week) index(ss_sku_store_week SS_SKU_STR_WK_SKU )*/
    47                                    SS_SKU_Store_Week.SKU,
    48                                    MAX( NVL( ssk_week_status, 0 ) ) AS status
    49                           FROM     ss_session_sku,
    50                                    ss_sku_store_week
    51                           WHERE    user_key              = :pUserKey
    52                           AND      ss_sku_store_week.sku = ss_session_sku.sku
    53                           GROUP BY ss_sku_store_week.sku )
    54               ) sku_status,
    55              ss_sku,
    56              store,
    57              ss_sku_store,
    58              item
    59     WHERE    sku_status.sku           =  item.sku
    60     AND      sku_status.sku           =  ss_sku.sku
    61     AND      sku_status.sku           =  ss_sku_store.sku
    62     AND      sku_status.sku           =  primaryvendor.sku
    63     AND      sku_status.sku           =  sku_status.sku
    64     AND      ss_sku_store.store_num   =  store.store_num
    65     AND      store.cust_type_cd       =  cust_profile.cust_type_cd(+)
    66     AND      store.fashion_att_cd     =  fashion_attribute.fashion_att_cd(+)
    67     ORDER BY ss_sku_store.sku,
    68              ss_sku_store.store_num;
    Execution Plan
       0      SELECT STATEMENT Optimizer=ALL_ROWS (Cost=531 Card=3203 Bytes=948088)                                                            
       1    0  SORT (GROUP BY) (Cost=531 Card=3203 Bytes=948088)                  
       2    1    HASH JOIN (RIGHT OUTER) (Cost=323 Card=3203 Bytes=948088)                                                                    
       3    2      TABLE ACCESS (FULL) OF 'CUST_PROFILE' (TABLE) (Cost=2 Card=16 Bytes=304)                                                   
       4    2      HASH JOIN (RIGHT OUTER) (Cost=321 Card=3203 Bytes=887231)                                                                  
       5    4        TABLE ACCESS (FULL) OF 'FASHION_ATTRIBUTE' (TABLE) (Cost=2 Card=9 Bytes=162)                                             
       6    4        HASH JOIN (Cost=318 Card=3203 Bytes=829577)                  
       7    6          TABLE ACCESS (FULL) OF 'STORE' (TABLE) (Cost=15 Card=1289 Bytes=105698)                                                
       8    6          TABLE ACCESS (BY LOCAL INDEX ROWID) OF 'SS_SKU_STORE' (TABLE) (Cost=3 Card=707 Bytes=17675)                            
       9    8           NESTED LOOPS (Cost=302 Card=3203 Bytes=566931)           
      10    9             HASH JOIN (Cost=287 Card=5 Bytes=760)                  
      11   10               NESTED LOOPS (Cost=284 Card=5 Bytes=655)             
      12   11                 NESTED LOOPS (Cost=273 Card=5 Bytes=270)           
      13   12                   NESTED LOOPS (Cost=252 Card=86 Bytes=3784)                                                                   
      14   13                     NESTED LOOPS (Cost=17 Card=13 Bytes=468)                                                                   
      15   14                       SORT (UNIQUE) (Cost=1 Card=13 Bytes=130)                                                                 
      16   15                         INDEX (RANGE SCAN) OF 'SS_SESS_SKU_PK' (INDEX (UNIQUE)) (Cost=1 Card=13 Bytes=130)                     
      17   14                       TABLE ACCESS (BY INDEX ROWID) OF 'ITEM_VENDOR' (TABLE) (Cost=3 Card=1 Bytes=26)                          
      18   17                         INDEX (RANGE SCAN) OF 'ITEM_VENDOR_ITEM_FK_IDX' (INDEX) (Cost=2 Card=1)                                
      19   13                     PARTITION HASH (ITERATOR) (Cost=65 Card=7 Bytes=56)                                                        
      20   19                       TABLE ACCESS (BY LOCAL INDEX ROWID)OF 'SS_SKU_STORE_WEEK' (TABLE) (Cost=65 Card=7 Bytes=56)             
      21   20                         INDEX (RANGE SCAN) OF 'SS_SKU_STR_WK_SKU' (INDEX) (Cost=14 Card=6427)                                  
      22   12                   TABLE ACCESS (FULL) OF 'SS_SESSION_SKU'(TABLE) (Cost=0 Card=1 Bytes=10)                                     
      23   11                 TABLE ACCESS (BY INDEX ROWID) OF 'ITEM' (TABLE) (Cost=2 Card=1 Bytes=77)                                       
      24   23                   INDEX (UNIQUE SCAN) OF 'ITEM_PK' (INDEX (UNIQUE)) (Cost=1 Card=1)                                            
      25   10               TABLE ACCESS (FULL) OF 'SS_SKU' (TABLE) (Cost=3 Card=343 Bytes=7203)                                             
      26    9             PARTITION HASH (ITERATOR) (Cost=1 Card=211)
      27   26               INDEX (RANGE SCAN) OF 'SS_SKU_ST_PK' (INDEX(UNIQUE)) (Cost=1 Card=211)                                          
    EXPLIAN PLAN AND DATA FROM TKPROF
    all     count       cpu    elapsed       disk      query    current        rows
    Parse        2      0.00       0.01          0          0          0           0
    Execute      2      1.35       1.30          0          0          0           0
    Fetch        5      0.14       0.16          5       2497          0         111
    total        9      1.49       1.49          5       2497          0         111
    Misses in library cache during parse: 2
    Misses in library cache during execute: 2
    Optimizer mode: ALL_ROWS
    Parsing user id: 30  (MDSEADMIN)
    Rows     Row Source Operation
          0  PX COORDINATOR FORCED SERIAL (cr=797 pr=2 pw=0 time=42745 us)
          0   PX SEND QC (ORDER) :TQ10005 (cr=797 pr=2 pw=0 time=42711 us)
          0    SORT ORDER BY (cr=797 pr=2 pw=0 time=42701 us)
          0     PX RECEIVE  (cr=797 pr=2 pw=0 time=42627 us)
          0      PX SEND RANGE :TQ10004 (cr=797 pr=2 pw=0 time=42617 us)
          0       BUFFER SORT (cr=797 pr=2 pw=0 time=42609 us)
          0        NESTED LOOPS OUTER (cr=797 pr=2 pw=0 time=42532 us)
          0         NESTED LOOPS OUTER (cr=797 pr=2 pw=0 time=42520 us)
          0          NESTED LOOPS  (cr=797 pr=2 pw=0 time=42510 us)
          0           NESTED LOOPS  (cr=797 pr=2 pw=0 time=42502 us)
          0            NESTED LOOPS  (cr=797 pr=2 pw=0 time=42495 us)
          0             NESTED LOOPS  (cr=797 pr=2 pw=0 time=42488 us)
          0              HASH JOIN  (cr=797 pr=2 pw=0 time=42480 us)
          1               BUFFER SORT (cr=5 pr=1 pw=0 time=13357 us)
          1                PX RECEIVE  (cr=5 pr=1 pw=0 time=13300 us)
          1                 PX SEND HASH :TQ10001 (cr=5 pr=1 pw=0 time=13291 us)
          1                  TABLE ACCESS BY INDEX ROWID ITEM_VENDOR (cr=5 pr=1 pw=0 time=13280 us)
          3                   NESTED LOOPS  (cr=4 pr=0 pw=0 time=423 us)
          1                    SORT UNIQUE (cr=1 pr=0 pw=0 time=189 us)
          1                     INDEX RANGE SCAN SS_SESS_SKU_PK (cr=1 pr=0 pw=0 time=86 us)(object id 25279)
          1                    INDEX RANGE SCAN ITEM_VENDOR_ITEM_FK_IDX (cr=3 pr=0 pw=0 time=53 us)(object id 24079)
          0               PX RECEIVE  (cr=792 pr=1 pw=0 time=28530 us)
          0                PX SEND HASH :TQ10003 (cr=792 pr=1 pw=0 time=28524 us)
          0                 VIEW  (cr=792 pr=1 pw=0 time=28517 us)
          0                  HASH GROUP BY (cr=792 pr=1 pw=0 time=28509 us)
          0                   PX RECEIVE  (cr=792 pr=1 pw=0 time=28295 us)
          0                    PX SEND HASH :TQ10002 (cr=792 pr=1 pw=0 time=28290 us)
          0                     NESTED LOOPS  (cr=792 pr=1 pw=0 time=28284 us)
          1                      BUFFER SORT (cr=1 pr=0 pw=0 time=139 us)
          1                       PX RECEIVE  (cr=1 pr=0 pw=0 time=45 us)
          1                        PX SEND BROADCAST :TQ10000 (cr=1 pr=0 pw=0 time=40 us)
          1                         INDEX RANGE SCAN SS_SESS_SKU_PK (cr=1 pr=0 pw=0 time=34 us)(object id 25279)
          0                      PX BLOCK ITERATOR PARTITION: KEY KEY (cr=791 pr=1 pw=0 time=28136 us)
          0                       TABLE ACCESS FULL SS_SKU_STORE_WEEK PARTITION: KEY KEY (cr=791 pr=1 pw=0 time=28084 us)
          0              TABLE ACCESS BY INDEX ROWID ITEM (cr=0 pr=0 pw=0 time=0 us)
          0               INDEX UNIQUE SCAN ITEM_PK (cr=0 pr=0 pw=0 time=0 us)(object id 24055)
          0             TABLE ACCESS BY INDEX ROWID SS_SKU (cr=0 pr=0 pw=0 time=0 us)
          0              INDEX UNIQUE SCAN SS_SKU_PK (cr=0 pr=0 pw=0 time=0 us)(object id 25300)
          0            PARTITION HASH ITERATOR PARTITION: KEY KEY (cr=0 pr=0 pw=0 time=0 us)
          0             TABLE ACCESS BY LOCAL INDEX ROWID SS_SKU_STORE PARTITION: KEY KEY (cr=0 pr=0 pw=0 time=0 us)
          0              INDEX RANGE SCAN SS_SKU_ST_PK PARTITION: KEY KEY (cr=0 pr=0 pw=0 time=0 us)(object id 25547)
          0           TABLE ACCESS BY INDEX ROWID STORE (cr=0 pr=0 pw=0 time=0 us)
          0            INDEX UNIQUE SCAN STORE_PK (cr=0 pr=0 pw=0 time=0 us)(object id 25586)
          0          TABLE ACCESS BY INDEX ROWID FASHION_ATTRIBUTE (cr=0 pr=0 pw=0 time=0 us)
          0           INDEX UNIQUE SCAN FASHION_ATTRIBUTE_PK (cr=0 pr=0 pw=0 time=0 us)(object id 24035)
          0         TABLE ACCESS BY INDEX ROWID CUST_PROFILE (cr=0 pr=0 pw=0 time=0 us)
          0          INDEX UNIQUE SCAN CUST_PROFILE_PK (cr=0 pr=0 pw=0 time=0 us)(object id 24036)
    ALL TOTALS FOR ALL RECURSIVE STATEMENTS
    call     count       cpu    elapsed       disk      query    current        rows
    Parse       43      0.10       0.11          0          1          0           0
    Execute    861      0.38       0.45        357        622         46         621
    Fetch      845      0.21       0.21        128       2626          2         892
    total     1749      0.69       0.78        485       3249         48        1513
    Misses in library cache during parse: 21
    Misses in library cache during execute: 16
    Elapsed times include waiting on following events:
      Event waited on                             Times   Max. Wait  Total Waited
      ----------------------------------------   Waited  ----------  ------------
      SQL*Net message to client                      60        0.00          0.00
      SQL*Net message from client                    39        0.00          0.16
      db file scattered read                         82        0.01          0.05
      db file sequential read                       185        0.01          0.05
      log file sync                                   1        0.00          0.00
      191  user  SQL statements in session.
       23  internal SQL statements in session.
      214  SQL statements in session.
       37  statements EXPLAINed in this session.Thank you for your help in advance
    Message was edited by:
    devmiral

  • Explain plan--Object not found error

    Hi All,
    I want to use 'explain plan' to optimise the query.
    How do i see the explain plan in toad.
    when i say
    explain plan set statement_id='XX' for select stmt;
    select * from explain plan
    where statement_id='XX';
    iam geeting object not found
    what parameters i need to set up before using explain plan
    Please give me details.
    Please suggest.
    Thanks.

    This should have been in TOAD Forum :-)).. Anyway,
    You need to set the plan table name in view->Options->Oracle. If the specified plan table doesnt exist, create the plan table

  • Understanding explain plan

    Oracle Gurus,
    I am trying to understand the below explain plan which I generated using DBMS_XPLAN. This explain plan shows 380M cost, what do "M" and "K" mean here? If anyone has any good documentation to understand explain plan, please pass on.
    | Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time | Pstart| Pstop | TQ |IN-OUT| PQ Distrib |
    | 0 | INSERT STATEMENT | | 9 | 801 | 380M(100)| 09:11:35 | | | | | |
    | 1 | HASH UNIQUE | | 9 | 801 | 380M(100)| 09:11:35 | | | | | |
    |* 2 | FILTER | | | | | | | | | | |
    | 3 | PX COORDINATOR | | | | | | | | | | |
    | 4 | PX SEND QC (RANDOM) | :TQ10002 | 3625K| 307M| 4282 (70)| 00:00:01 | | | Q1,02 | P->S | QC (RAND) |
    |* 5 | HASH JOIN BUFFERED | | 3625K| 307M| 4282 (70)| 00:00:01 | | | Q1,02 | PCWP | |
    | 6 | PX RECEIVE | | 362K| 14M| 1219 (52)| 00:00:01 | | | Q1,02 | PCWP | |
    | 7 | PX SEND HASH | :TQ10000 | 362K| 14M| 1219 (52)| 00:00:01 | | | Q1,00 | P->P | HASH |
    | 8 | PX BLOCK ITERATOR | | 362K| 14M| 1219 (52)| 00:00:01 | 7 | 7 | Q1,00 | PCWC | |
    |* 9 | TABLE ACCESS FULL | TOP10_UL_SECTOR_LUCENT | 362K| 14M| 1219 (52)| 00:00:01 | 7 | 7 | Q1,00 | PCWP | |
    | 10 | PX RECEIVE | | 411K| 18M| 1427 (52)| 00:00:01 | | | Q1,02 | PCWP | |
    | 11 | PX SEND HASH | :TQ10001 | 411K| 18M| 1427 (52)| 00:00:01 | | | Q1,01 | P->P | HASH |
    | 12 | PX BLOCK ITERATOR | | 411K| 18M| 1427 (52)| 00:00:01 | 182 | 212 | Q1,01 | PCWC | |
    |* 13 | TABLE ACCESS FULL | BH_UL_SECTOR_LUCENT | 411K| 18M| 1427 (52)| 00:00:01 | 182 | 212 | Q1,01 | PCWP | |
    | 14 | SORT AGGREGATE | | 1 | 14 | | | | | | | |
    | 15 | PARTITION RANGE ITERATOR| | 10 | 140 | 120 (100)| 00:00:01 | 182 | 212 | | | |
    |* 16 | INDEX SKIP SCAN | IDX2_BH_UL_SECTOR_LUCENT | 10 | 140 | 120 (100)| 00:00:01 | 182 | 212 | | | |
    -----------------------------------------------------------------------------------------------------------------------------------------------------

    Hello,
    Once again K is number of (1000) rows fetched and M is for bytes repsentation. Check this oracle doc for reading xplan
    Cost of the operation as estimated by the optimizer's query approach. Cost is not determined for table access operations. The value of this column does not have any particular unit of measurement; it is merely a weighted value used to compare costs of execution plans. The value of this column is a function of the CPU_COST and IO_COST columns
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14211/ex_plan.htm#i16971
    Regards

  • Query Regarding Explain Plan on Query

    Hello,
    I have one big query which shows report of 50000 daily records from @ 20,00,000 records.
    I have two databases UAT and PROD.when i do Explain Plan on the query is these different database i get the different plan where everything is same in both database.
    In UAT it is doing Index scan where as in PROD it is doing Full TableScan. Below are the results.
    In production it is not using any of the indexes present but in UAT it is.What could be the reasong behind this?

    Sure.
    UAT Explain Plan (Please copy in Textpad for better View)
    SELECT STATEMENT, GOAL = HINT: ALL_ROWS     Cost=371     Cardinality=238     Optimizer=HINT: ALL_ROWS     Bytes=134470
    VIEW     Object owner=SWNET1          Cost=371     Cardinality=238          Bytes=134470
    COUNT STOPKEY                              
    VIEW     Object owner=SWNET1          Cost=371     Cardinality=238          Bytes=131376
    SORT ORDER BY STOPKEY          Cost=371     Cardinality=238          Bytes=54026
    FILTER                              
    HASH JOIN RIGHT ANTI          Cost=370     Cardinality=238          Bytes=54026
    INLIST ITERATOR                              
    TABLE ACCESS BY INDEX ROWID     Object owner=SWNET1     Object name=IS_TB_END_POINT     Cost=1     Cardinality=1     Optimizer=ANALYZED     Bytes=31
    INDEX RANGE SCAN          Object owner=SWNET1     Object name=IS_UK_EP_NAME     Cost=1     Cardinality=1     Optimizer=ANALYZED     
    TABLE ACCESS BY INDEX ROWID     Object owner=SWNET1     Object name=IS_TB_TRANSACTION     Cost=368     Cardinality=253     Optimizer=ANALYZED     Bytes=49588
    INDEX FULL SCAN          Object owner=SWNET1     Object name=IS_IX_T_DESTINATION_EP     Cost=18     Cardinality=13909     Optimizer=ANALYZED
    PRODUCTION Explain Plan
    SELECT STATEMENT, GOAL = HINT: ALL_ROWS               Cost=65702     Cardinality=1000     Optimizer=HINT: ALL_ROWS     Bytes=565000
    VIEW     Object owner=SWNET1          Cost=65702     Cardinality=1000          Bytes=565000
    COUNT STOPKEY                              
    VIEW     Object owner=SWNET1          Cost=65702     Cardinality=38739          Bytes=21383928
    SORT ORDER BY STOPKEY          Cost=65702     Cardinality=38739          Bytes=9646011
    FILTER                              
    HASH JOIN RIGHT ANTI          Cost=63616     Cardinality=38739          Bytes=9646011
    INLIST ITERATOR                              
    TABLE ACCESS BY INDEX ROWID     Object owner=SWNET1     Object name=IS_TB_END_POINT     Cost=1     Cardinality=2     Optimizer=ANALYZED     Bytes=64
    INDEX UNIQUE SCAN          Object owner=SWNET1     Object name=IS_UK_EP_NAME     Cost=1     Cardinality=2     Optimizer=ANALYZED     
    TABLE ACCESS FULL          Object owner=SWNET1     Object name=IS_TB_TRANSACTION     Cost=63614     Cardinality=44697     Optimizer=ANALYZED     Bytes=9699249
    Index Query (Same on both places)
    create index IS_IX_T_DESTINATION_EP on IS_TB_TRANSACTION (T_DESTINATION_EP)
    tablespace IS_XML_IND
    pctfree 10
    initrans 2
    maxtrans 255
    storage
    initial 128M
    next 128K
    minextents 1
    maxextents unlimited
    pctincrease 0
    );

Maybe you are looking for

  • Error while calling a workflow process from a JSP

    Hi, I have a workflow program which is havign a process, which in turn calls 2 other processes. Below given is the procedure which i am using to call the main process. =========================================================== CREATE OR REPLACE PROC

  • How is the best way to change the label of an icon placed on the homescreen

    When I place an icon on the home screen I would like to edit it to the label I would like it to be.

  • How to reload sound modules?

    I'm using alsa + pulse sound system. I also have Openbox as a stand-alone WM and lightDM,  but the same thing occurs on my debian testing + gnome. I've been trying to solve this issue for several days but with no success. Below is the output from als

  • Why is my download window blank?

    When ever I do a download, the small window appears with no information. Displaying downloads from tools also gives a blank screen. The downloads are in their file folder. I am using the Walnut ad-on.

  • Can I use FCS without the media?

    Can Final Cut Server be used as just an information database without the media the info references? We're using Filemaker right now, but we have FCS. We don't have the budget for a full online system for final cut server (all of the hard drive space