Stats$sql_plan_usage find different plan_hash_value within hash_value

Hi,
I'm trying to find plan changes in same sql statements (same hash_value).
Thinking about query on stats$sql_plan_usage table , but have no idea how to use analytics on that.
Tried some lag approach but no success.
Can You please point me in right direction ?
Basicaly I need report like:
snap_id, snap_time,plan_hash_value, hash_value
1|2009-01-01|12345678|34434343
8|2009-01-09|22222222|34434343
and so on.
Regards.
Grzegorz

Got something like this:
select min(rn), min(snap_id), plan_hash_value, hash_value from (
select spu.snap_id,spu.plan_hash_value,spu.hash_value, text_subset,
row_number() over (partition by spu.plan_hash_value,spu.hash_value,spu.dbid, spu.instance_number order by spu.snap_id) rn
from perfstat.stats$sql_plan_usage spu
) group by plan_hash_value, hash_value ;
but I want rows with min 2 plan_hash_value changes , dont want with static plan_hash_value (only 1 record per hash_value).
So 2 or more changes should be reported.
Regards.
Grzegorz

Similar Messages

  • Monitoring servers in SCOM 2012 via different locals within the same management group

    Hi,
    I have 2 management servers in a same management group. The 1st one is having English (US) locale while other is installed on Swedish locale. Both are accessed by different users having same admin rights.
    Once a USER 1 try to register a server through authoring tab from 1st management server(installed on English locale), a profile/group wrt the server registered is created successfully but the USER on 2nd management server (installed on Swedish locale) can
    not see the same in Authoring tab. He can view it in Monitoring tab as as well as Administration tab.
    The Vice versa is also true.
    Does any one have idea that is it SCOM 2012's expected behaviour wrt 2 2 different users on 2 different locales within a same management group ?
    Thanks in advance.

    Hi,
    I am a little confused, what do you mean by "register a server through authoring tab"?
    Do you mean that when you discover a server on 1st MS with discovery wizard then you cannot see it on 2nd MS(and the vice versa)?
    As far as I know, all those information should be stored in the operation database which is shared to both MSs within the same management group.
    We may use SQL query to find the discovered server on the operation database. Please also check operation manager event logs to get more information to troubleshoot this issue.
    Regards,
    Yan Li
    Regards, Yan Li

  • Find/Change problems within a nested style?

    I have a problem with Find/Change (in both CS4 and CS5) not recognizing text within its “find” parameters when text that fits those parameters is part of a nested style. I want to find any instance of italic in the text, regardless of what paragraph or character style it is, but F/C only intermittently finds italics, both within and without that text existing in a nested style. Has anyone come across this issue?
    There is NOTHING different about the text that is recognized by F/C–or not recognized–that shows up in any of the panels or palettes. There are no font conflicts. I’ve replaced prefs and saved data files. If I go into the character palette and change the italic portion of the nested style to “italic” character style (it shows up in character palette as [none], even though it has a nested style), then F/C finds it for sure; but if I don’t do that, then F/C will sometimes find it, and sometimes not, and sometimes in one instance and not in another! There is no hidden formatting that shows up in story editor. I remade another nested para style with the same formatting but with varying results! Help… I’ve tried everything.

    I have a problem with Find/Change (in both CS4 and CS5) not recognizing text within its “find” parameters when text that fits those parameters is part of a nested style. I want to find any instance of italic in the text, regardless of what paragraph or character style it is, but F/C only intermittently finds italics, both within and without that text existing in a nested style. Has anyone come across this issue?
    There is NOTHING different about the text that is recognized by F/C–or not recognized–that shows up in any of the panels or palettes. There are no font conflicts. I’ve replaced prefs and saved data files. If I go into the character palette and change the italic portion of the nested style to “italic” character style (it shows up in character palette as [none], even though it has a nested style), then F/C finds it for sure; but if I don’t do that, then F/C will sometimes find it, and sometimes not, and sometimes in one instance and not in another! There is no hidden formatting that shows up in story editor. I remade another nested para style with the same formatting but with varying results! Help… I’ve tried everything.

  • Identifying three different colors within a single image

    Hello everyone,
    I recently begun a project which requires me to process the image from a USB camera, and could use some assistance.
    Once I get the image I need to determine the center of mass for three different colors within this image. Although this seems to be a relatively straight forward task I ran into a roadblock right off the back.
    This roadblock relates to how to properly isolate each of the colors from the image without using too much memory. My original structure had the USB image coming in, and then I would process that image for the three different colors. Unfortunately, this required using a total of four instances of IMAQ create. (One for the acquisition, and three for all of the color threshold images). Although this works it seems a bit inefficient.  Allocating memory for 4 RGB U32 images uses a lot of memory!
    Visual snippet attached below for aiding explanation
    So in a nut shell, I’m wondering if there is any way to improve this, and decrease memory usage. My First thought was to only use two IMAQ create (one for acquisition and one for processing) then, iteratively (for loop, or something of that nature) run the processing image through a processing loop with different threshold parameters for each iteration.  My worry is that this will significantly add to the latency of my program.
    Are there any others ways to do this that I am missing, or am I on the right track? If you have any suggestions they would be much appreciated.
    Thanks,
    Taylor S. Amarel
    Learning is living.
    Co-Founder and CEO of http://3dprintingmodel.com/
    "If we did all the things we are capable of, we would literally astound ourselves."
    -Thomas Edison
    Attachments:
    Image Processing.png ‏77 KB

    Patrick,
    The example you linked does have some characteristics of the system I wish to create. Unfortunately the example does not go into much detail about "labeling particles" by their color value. I have a strong understanding of how image particle analysis works. But fall short when is comes to the most efficient way of doing this. This is more of a optimization question, rather than a image analysis query. 
    Here is an explanation of what I'm trying to do.
    In plain English, I want to input an image and find the center of mass of three color, or color ranges.
    Suppose I had this image;
    And I want to calculate the center of mass for the Red, Green, and Blue disks. I also need to differentiate the different center of masses. Red_Center(x,y), Green_Center(x,y), Blue_Center(x,y). In a nutshell, Input Image >> Output Three Coordinates.
    What I'm trying to figure out is the quickest and most effective way of calculating these values with minimum memory usage. As stated earlier if I process the image for Red, Green, and Blue centers in parallel it would require allocating an image location for each color. This would cause an enormous memory overhead. (1600 X 1200 X 32 bit X 3) Far too much!!!
    So I'm looking at a way of accomplishing this without stretching my memory resources dry. I thought that if I put the processing in a For Loop and input an array of Threshold values. (Red, Blue, Green), (1D X 3) then it would process Red, and begin autoindexing the centers. Then it would it would iterate again and process Blue, and likewise index the centers of mass...
    Is this the right way to do that, I am a self taught LabVIEW enthusiast so I do not have much experience when it come to building complex applications that require explicit memory management.
    Thanks,
    Taylor S. Amarel
    Learning is living.
    Co-Founder and CEO of http://3dprintingmodel.com/
    "If we did all the things we are capable of, we would literally astound ourselves."
    -Thomas Edison

  • How would 2 people call each other using facetime if both were in a foreign country but staying at different locations within that country?

    How would 2 people call each other using facetime if both were in a foreign country but staying at different locations within that country?

    It's tied to the Apple ID also - I believe it would use that to find the right person/device.
    Perhaps this article would help: http://support.apple.com/kb/HT4319. It looks like you may want to go in through your contacts and make the call.
    If you're concerned about data charges, put your phone in Airplane mode before trying to Facetime. That will prevent it from trying to make a call over your cellular data.
    ~Lyssa

  • I bought an iphone 5 about 4 months ago and got applecare. yesterday I had to get on a different plan within the same company so i traded in my phone and got a new iphone 5. can i transfer my applecare to this new phone or would I have to buy it again?

    I bought a 16gb iphone 5 about 3 months ago and got applecare. yesterday I had to get on a different plan within the same company so i traded in my phone and got a new 32gb iphone 5. can i transfer my applecare to this new phone or would I have to buy it again?

    As this is a WW forum with different AppleCrare offerings you need to specify which Country
    as in North America has AppleCare+ and everywhere else AppleCare ,very different products
    So to avoid incorrect guidance suggest you specify Country

  • How to multiple/ parellal sets of books to generate more than one financial statement based on different (or the same) accounting principles.

    How to multiple/ parallel sets of books to generate more than one financial statement based on different (or the same) accounting principles.
    My Client needs Parallel Ledger in SAP B1 similar like SAP ECC. Is this functionality available ?

    Dear Mr. Nagrajan,
    Thank you for your response. I have already gone through documents but not able to understand. Is there any setup for this ? or its just work around i.e. using template and special field in JV i.e. Ref. 1 /2
    My doubts :
    I understand that Chart of Account structure is one and common for IFRS and other accounting method. We need to create only those account separately ( 2 times with prefix like IFRS revenue account, GAAP Revenue account).
    Now at time of entry, Assume some entries / adjustment are specifically for IFRS and not for other ledger. In this case, What need to do ?
    You have mentioned about DTW approach but do we need to insert all JV's again with other ledger ?
    Someone suggested that if any entry which are specific to IFRS Ledger, We need to user Ref.1 /2 column or Transcation code column and in which we can put IFRS
    Based on this, Need to create 2 seperate template for IFRS and other ledger for all report.
    This is my understanding of Solution in SAP B1. Please help me to clarify my though process
    Please do needful.If you have done implemenation and if you can share doucment, it would be great help.
    Email :[email protected]

  • When I republish my site the updates save to a different folder within public_html so it cant be viewed..... How do I change this?

    When I republish my site the updates save to a different folder within public_html so it cant be viewed..... How do I change this?
    My site is up and running but if i make changes on iWeb they get put in a new folder within the public_html folder. I then click on this and they are all showing in there but i have to manually move them to the correct folder for them to be shown on my website. The folder that is made is always named whatever I enter into the SITE NAME section on the screen where the ftp information is entered.
    How can I get the updates to go directly into the public folder without it make a new folder? I have checked the settings but there isn't much I can see.
    ALSO......
    The names of the folders come up in the domain bar... how do i change this?
    thanks
    Charlotte

    Try using the settings shown in the first example on this page...
    http://www.iwebformusicians.com/iWeb/Publish-Website.html
    Note that the Directory/Path field is empty.
    How to take the folder name out of the URL...
    http://www.iwebformusicians.com/iWeb/URLs-Favicons.html
    "I may receive some form of compensation, financial or otherwise, from my recommendation or link."

  • How to run the Invoices in different groups within the batch in AP

    Need to know that how to run the Invoices in different groups within the batch. This will be of very helpful when we deal with lot of lines under one batch. (e.g) like somewhere we issued a Corporate Card to all the employees Via Bank Of America. Every Month they will send the complete details of all the employees who ever swiped the corporate provided BOA. Accordding to Natco all those lines should be loaded as One Invoice so that a Single Payment can be provided to BOA and it will also makes their life easier. This standard program sometimes it works normal sometimes it will run like a TORTOISE. So thats why in the manual they suggested to use GROUP ID to split the Invoice Load.
    So plz tell me how we can run it
    plz give me the solution
    thanks

    can you give me some material or document on that so that i can read actuaaly i need to make doc on it..

  • Report to Find different between PCR & Schemas

    hi guru's,
    Can Any tell me the Report to Find different between PCR & Schemas in Two Clients,(For examle from 4.7 to 6.0)
    Regards,
    Bala

    Hi Bala,
    The following link will help you.
    PCR and SCHEMAS
    Thanks & Regards,
    Sandip Biswas

  • Can we clear more line items with different currency within one Vendor

    Dear All,
    Please guide us the following issue is
    Can we clear two line items with different currency within one Vendor (i.e., Down Payment entry passed in EUR and Invoice in JPY).
    Thanks in advance.
    Regards
    Srinivas

    Hi
    I suppose this should be possible in F-44, for any difference in forex enter a new line item 'Charge off diff.' to Dr/Cr Forex gain/loss account
    Thank You,

  • Statement Line Amount Is Not Within The Tolerance Range

    Hi.
    I have an issue with the CE autoreconciliation tolerances.
    Case.
    A RECEIPT statement line with $1244.89 with bank transaction type code (Journal ) cannot be automatically reconciled with a Debit available transaction $1244.90 due to this error. "Error. Statement Line Amount Is Not Within The Tolerance." Tolerance amount is set as 1 and the % as 0. So my tolerance range is (1243.89 - 1245.89), in consequence statement line should be reconciled . Am I right ?
    It seems everything is allright, I really dont know what is happenning, but it works fine with AP payments. I just want to know if this is a comun behavior or its a bug.
    Any suggestion would be appreciated.
    Thanks
    Robert
    Edited by: Roberto Islas on 12/07/2011 03:07 PM

    Check you Cash Management Bank account setup for Tolerance limits. By updating the Bank account tolerances, you would be able to auto reconcile.
    Kiran

  • Using CTRL + F not working to find any text within the query result

    Hi friends,
    I am trying to use find option to find any text within the result section of a query but when I do CTRL+F  the find window appears and I can input the text that I wanted. But when I press Enter it is not giving me any result though the entered text
    is in the query result. I am using Sql Server 2012 Management studio. Any Body please help me. There is a job that I have to search certain things after running a script and now I am doing copy paste to excel and doing searching from there. 

    Prashant,
    Looks like you are trying to do in SSMS, and it is because the result set is in Grid view , if you want to use CTL + F then your result should be in Text format, try to do using CTL + T ( To get result in Text) and then use CTL + F to find any
    text.
    Thanks
    Manish
    Please click Mark as Answer if my post solved your problem and click
    Vote as Helpful if this post was useful.

  • Find different

    Hello,
    i am learning java. I want to find out how to find different between two intergers. In C i use mod function but Java I am not sure.
    ap

    Maybe I should now mention in my 1st question about MOD.
    example
    int x = -5
    int y = 2
    i want to find the different in possitve interger. so answer should be
    3
    I guess I can write small method to do this but I thought java math class has some methods built in to find this.
    ap

  • Upload bank statements interface(with different layouts)

    HI
    My component is upload bank statements interface(with different layouts) .
    to which module it belongs exactly.And how to proceed with this....
    plz give u r sugessitions.................
    pavan kumar

    firstly go through the documentation and TRMs
    if you have any doubt in the coding . the send the code and errors encountered
    so, that we can help you.

Maybe you are looking for

  • TS3694 Why did I rec'd error 9006 when trying to restore my ipad 1 in iTunes

    When I turned on my ipad 1 today after using it 2 days ago with no problems.  I had a black scree with the itunes logo, photo of the white USB charging cable and a white arrow pointing to the itunes logo.  So I plugged the ipad into my iMac computer

  • Opening an Online PDF

    Since our IT Department installed Acrobat Pro 9.0 on my computer, I have not been able to click on a PDF link on a web site and open it. When we click on the file, we get the following error message: "The Adobe Acrobat/Reader that is running can not

  • Lync issue in Nokia E6

    Hi, I am facing the below error while signing to Lync on my E6. Can't verify the certificate from the server. Check your device's clock settings, or contact your system administrator" Help needed what needs to be done in this case. Best Regards, Priy

  • No text on itunes bars

    hi i have a problem with my itunes there's no text on the command bars i want to save my contacts and i cant do it help me please

  • How do you make the top margin .5" on page 1 and 1.0" on all of the following pages?

    I have been a PC user since 1987 and find the iWorks programs far less intuitive than the MS Office products.  I have been using a Word doc template, which I customized back in 1990, and all of my client records use this template.  So, as I am conver