V$ SQL shows erratic results for extract folder

Hello

I came across a scenario where the gathering statistical table checking its value of cursor.

I have here for the first time (line 02) queries the table V$ SQL I have only one entry of the cursor.

And then when I again run same sql and checked V$ SQL again what I got is another record (line 27) for the same SQL_ID.

Yet once I check it twice more, but all I got is only two records.

I was questioning this table for this kind of scenario for a week.

But this is the first time I've had two records in the table V$ SQL for same SQL_ID

Your contribution would be very appreciated.

SQL> --See first excution, it'll illustrate Hard parse, first load and execution
SQL>  select count(1) from foo31;


  COUNT(1)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             
----------                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             
        23                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             


SQL> select child_number,executions,parse_calls,loads,invalidations from v$sql t where upper(sql_text) like '%SELECT COUNT(1) FROM FOO31';


CHILD_NUMBER EXECUTIONS PARSE_CALLS      LOADS INVALIDATIONS                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           
------------ ---------- ----------- ---------- -------------                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           
           0          1           1          1             0                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           


SQL> --Second excution, then showed soft parsing
SQL> select count(1) from foo31;


  COUNT(1)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             
----------                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             
        23                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             


SQL> select child_number,executions,parse_calls,loads,invalidations from v$sql t where upper(sql_text) like '%SELECT COUNT(1) FROM FOO31';


CHILD_NUMBER EXECUTIONS PARSE_CALLS      LOADS INVALIDATIONS                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           
------------ ---------- ----------- ---------- -------------                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           
           0          1           1          1             0                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           
           0          1           1          1             0                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           


SQL>














You did not include the sql code in your query. How do we know that you don't see two pieces of identification different sql in your results?

Tags: Database

Similar Questions

  • SQL and PL/SQL show different results.

    I checked the following behaviors using various tools/applications.

    If you run the following SQL:

    procedure GetDurchschnAlterGes (reference date, cur_Besch to t_CURSOR) is

    Start

    Open the cur_besch FOR

    Select i.anztext AS 'Amt. "

    r.anztext AS "Revier."

    OE.anztext AS 'Sachgebiet. "

    g.anztext AS 'Einheit ',.

    t.anztext AS "Teileinheit."

    Count (*) AS 'Anzahl total.

    ADaten mi,

    AKalender KAL,

    AInspektion I,.

    ARevier R,.

    Aoeausdruck OE,

    AGruppe G,.

    ATeileinheit T

    WHERE kal.datum = reference

    -Join Kalender

    AND mi.idkalender = kal.id

    -Join auf - Inspektion

    AND I.ID = MI. INSPEKTIONID

    -Join auf Revier-

    AND R.ID = MI. REVIERID

    -Join auf OE-

    AND oe.ID = MI.idoeausdruck

    -Join Group

    AND G.ID = MI. GRUPPEID

    -Join Teileinheit

    AND T.ID = MI. TEILEINHEITID

    -Group OF the st. OEAUSDRUCK, bv.anztext, kg.kattext;

    Group BY grouping sets ((i.anztext, r.anztext, oe.anztext, g.anztext, t.anztext), (i.anztext, r.anztext, oe.anztext, g.anztext), (i.anztext, r.anztext, oe.anztext), (i.anztext, r.anztext), (i.anztext))

    order of i.anztext, r.anztext, oe.anztext, g.anztext, t.anztext;

    end GetDurchschnAlterGes;

    I get a count for "i.anztext" which is the number of set of records in the table "ADaten".

    Using this SQL, the results are correct.

    Select i.anztext AS 'Amt. "

    r.anztext AS "Revier."

    OE.anztext AS 'Sachgebiet. "

    g.anztext AS 'Einheit ',.

    t.anztext AS "Teileinheit."

    Count (*) AS 'Anzahl total.

    ADaten mi,

    AKalender KAL,

    AInspektion I,.

    ARevier R,.

    Aoeausdruck OE,

    AGruppe G,.

    ATeileinheit T

    WHERE kal.datum = to_date ('15.01.2003 ',' JJ.) MM.yyyy')

    -Join Kalender

    AND mi.idkalender = kal.id

    -Join auf - Inspektion

    AND I.ID = MI. INSPEKTIONID

    -Join auf Revier-

    AND R.ID = MI. REVIERID

    -Join auf OE-

    AND oe.ID = MI.idoeausdruck

    -Join Group

    AND G.ID = MI. GRUPPEID

    -Join Teileinheit

    AND T.ID = MI. TEILEINHEITID

    Group BY grouping sets ((i.anztext, r.anztext, oe.anztext, g.anztext, t.anztext), (i.anztext, r.anztext, oe.anztext, g.anztext), (i.anztext, r.anztext, oe.anztext), (i.anztext, r.anztext), (i.anztext))

    order of i.anztext, r.anztext, oe.anztext, g.anztext, t.anztext;


    The only difference is that the parameter 'Date' is not used and a constant value is passed.


    Could someone pls check and possibly give me a clue what I'm doing wrong?


    Thank you in advance.


    Thomas

    > kal.datum = reference

    Variable has the same name as the column name.

    Change the name of the variable or the prefix with the scope, for example "GetDurchschnAlterGes.datum".

  • Roll on the text occasionally comment on erratic results, for example, first highlighted word and then no other product even if the mouse has not been published.  How can I fix it?

    I have Acrobat Pro DC and Windows 10.  When you try to make editing comments, I find almost impossible to get the words marked (by rolling on it with the mouse button).  The blue highlight climbs around the word to Word or closed unexpectedly after rolling on a single word, even if the mouse button was released.

    In addition, now that the strike and replacement tool has been eliminated, you are supposed to perform the same operation on the text to replace and, once the text highlighted blue, simply start typing the new text.  It works not.  After finally getting the right text marked, I start typing, and nothing happens.  I might have to select a tool (for example, strike-out), use and remove the strike-out, before the operation crossed out - replace works again.

    I have used earlier versions of Acrobat Pro (on Vista) without such problems.

    The problem I described with text selection was not with Acrobat, but rather with a failing wireless mouse.  Replacing the mouse seems to have resolved.  See erratic mouse, by selecting the problem of text - Logitech Forums

  • Date query shows no results for the date of the day

    Hello everyone. I use Jdeveloper 11.1.1.3.0 with ADF and I have a view named query with a single field, Date. The operator that he uses is equal to a value written in the field. The problem is that when I insert a line in the table (the date is automatically set to the current date on the insertion) and I'm looking for today it returns nothing. However if I leave the field blank it will find me the line. I tried to do this with the timestamp option, but it is not very user-friendly, the user will need to type in the time line was inserted to find, or use between it operator for two fields which is something I want to avoid if possible

    The requirement is a query field that allows the user to choose a date on the calendar and shows all lines that are inserted at this date (even if the date is today, and the line was inserted a few minutes before).

    Published by: Dino2dy on April 6, 2011 02:50

    Dino2dy,

    The best way to proceed would be just to add an additional attribute to your VO - use "TRUNC (your_date_column_name)" as the value for the attribute - then just compare this attribute in the named view criteria.

    John

  • Graphic of alias created for the folder is not transferred in the doc.  Everything in batteries.

    Graphic of alias created for the folder is not transferred in the doc.  Everything in batteries.  Done in PS and saved as a JPEG.  I did a lot.  not sure why it does not work now.  These are records that have elements in them and it only shows the stacks of items in the folder in the doc.

    ideas?

    control, click the icon in the Dock and have her take > folder

  • Embedded search Google on our site shows no results. Windows 8, 64-bit, Firefox 30

    We integrated into our Google search site. It has been brought to my attention by one of our employees that Firefox does not show the search results after a click on the search button. The question seems to be limited only to Firefox. Tested the problem on Internet Explore 10 and Google Chrome and both work as expected, showing the results on our results page.

    I use Windows 8, 64-bit, Firefox 30. The user whose question is on Windows 7, 64 bit.

    I used the Web console and there was an error message
    "TypeError: google.search.Search.apiary5337 is not a function". "

    I'm not sure that it is the root of the problem or not, but why would that work in Chrome and Internet Explorer and not Firefox?

    If you need to check it out, the website is http://www.dmns.org/ . The search box at the top right of the page. You will see that the page redirects to our ' / results? q = searchterm "." We are a scientific institution so if you type 'science' in the search box, you will be redirected to the page ' / results "with the query string of 'science' for the search term. But in my case, the search results below are white. If you search even if Chrome or IE results show very well.

    Oh, I don't have any add on installed on Firefox.

    Any suggestions or a fix would be great.

    Thank you.

    Carlos Mosqueda

    Problem SOLVED.
    It is probably still a bug in Firefox. Our Google search < script > that call the function Javascript to Google has been within the Body tag. I moved the Script tag in the head and now it seems to work as expected. In the new Firefox, are not allowed within the Body element < script > tags?

  • What a SQL Server would cost for a medium and large company?

    I am researching the cost of SQL for a medium and large business, allowing access to their users. I have priced at the State for everything but I can't find anything online. Someone would help me please on my business. I don't know too much about this topic and I'm looking to improve my results for the class that I am. Any help would be appreciated.

    original title: search SQL

    Hi Sam O'Day,.

     

     

    I wish you post your question in the TechNet Forums because it caters to an audience of it professionals.

     

    Check out the link-

    TechNet forums

     

     

    Hope this helps!

     

  • I used "Show Hidden Files" in a folder and all my files disspeared

    I used "Show Hidden Files" in a folder on an external hard drive and all my files disappeared after I changed the settings and press ENTER.

    I also made the change not in a folder, but the subfolders. I have many files duplicate on my external hard drive and I noticed that each file said that she had more files that were contained in each file, so I wanted to see what were these hidden files. After you have clicked on enter, each music file and folder just disappeared.

    I searched my pc but can't find these files. I got more than $ 100 of music who has simply disappeared.

    What can I do b/call, the music were in a separate folder, and there were more than 50 files with hundreds of songs. I mean how to do a cover for it?

    Return to the folder options and use the "Restore default settings" button to change all the options back how they were, and see if it helps.

    You can also try to use the drive in another computer, if you think that the configuration of your computer could be the problem.

  • showing the result of the wrong exit

    Dear all,

    I'm just surprised when I run it under instruction using TOAD.
    The database version is 'Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - 64 bit Production'

    Select employee_number
    of per_all_people_f
    where employee_number like '% _1 '.

    Shows the result of the output:
    Employee_number
    00040_1
    001
    00176_1
    01371

    I do not understand why the line '001' and '01371' also show. What bugs database for 11 g?
    Appreciate your help.

    Best regards

    Edwin

    Since the character model you used average

    % = Any pattern
    _ = any character

    the output is correct.

    You try to find lines with underscore in the data?

  • When I click with the right button of the mouse on videos from facebook it shows no options for me to copy the link and etc.

    When I click with the right button of the mouse on videos from facebook it shows no options for me to copy the link and etc. It only shows the parameters for the flash player. How can I fix?

    You can find the URL of the thumbnail by following these steps:
    In the context menu, choose {inspect element}.
    Now, you can see the URL in the source down (perhaps you click the small arrow to the left of the line of seledted firstly to show).

  • A Message in a rectangular box "Messages Agent wants to use the 'Local products' kenchain. appearing on the screen and ask for Keychain password password.  This started after I changed the password of Apple resulting for the purchase of a new iPhone

    A Message in the box 1. "Message agent wants to use the 'Local products' kenchain. "is appearing on the screen and ask for Keychain password password.  This started after I changed the password of Apple resulting for the purchase of a new iPhone.

    My iPhone 5 has been damaged and the screen was not visible.  As a result, I couldn't open the iPhone.  I bought 5 s iPhone and when I got to connect with the iCloud

    I remember the answers to security questions.   The seller must change the password and enter new answers to security questions, I did.  This happened in Bangalore.  When I'm home in Ernakulam, Kochi (India), where I has the Air of Mac, Ipad and my wife had another iPhone and laptop computer Dell, these problems began to come up on the screen and blocks the screen.

    Four Messages are appearing: the first is on the top.

    Other messages are:

    2. ' cloudd wants to use the kenchain 'local products '. '

    appearing on the screen and ask for Keychain password password.

    3. ' com.apple.iCloudHelper.xpc wants to use the kenchain 'local products '. appearing on the screen and ask for Keychain password password.

    4. ' cloudpaired wants to use the kenchain 'local products '. ' is appearing on the screen and ask for Keychain password password.

    It of an upheaval and please suggest how to solve this problem

    Hello remy!

    I see that you are either prompted by iCloud Keychain with various alert messages.  I know it's important to have iCloud Keychain works correctly and I am pleased to offer you an article that should help you.  Please follow the instructions in the following support article:

    If your Mac keeps asking for the password in the keychain

    Thank you for using communities of Apple Support.

    See you soon!

  • Simple question... How do to add pictures on the body of my MAILS found 1000 results for how can I add photos to my Thunderbird emails

    How can simple question - I add photos to my mail body. But instead of the answer - found 1000 results for how can I add photos to my Thunderbird emails. There are answers that don't apply at all to the question anyway. Why must it be so difficult to get a simple answer to a simple question?

    Thunderbird is a bit like Microsoft, all the reasons as I dumped MS Live Mail.

    First, a lot of help for Thunderbird refers to the menus that may not be visible. It would be useful to you and us if you have your menus and toolbars visible.

    http://chrisramsden.vfast.co.UK/13_Menus_in_Thunderbird.html

    Then, open a window of writing. Activate the menu and operate.

    Now that you see an option "Insert"?

    If this isn't the case, you can assign composing in plain text, which does not support embedded images.

    Tools | Account settings| {Select account} | Composition & addressing and ensure "Compose messages in HTML format" are checked. If it is not already checked, go back to writing a message. No better now?

    Once you have the mode of composition HTML goes, you can use Insert | Image or various permutations of copy - paste and drag - move to the body of your message.

    A manual of sorts: http://en.flossmanuals.net/thunderbird/composing-messages/

  • If I transfer the application to Ninja Stealth Drive for MacBooks folder it works from there?

    If I transfer the application to Ninja Stealth Drive for MacBooks folder it works from there?

    The Applications folder should not be moved to separate from the full operating system.

    (141293)

  • How can I force the Finder to show all files in a folder of Capitan?-instead of always having to click on "Show all" to see the full selection of files.

    How can I force the Finder to show all files in a folder of Capitan 10.11?-instead of always having to click on "Show all" to see the full selection of files.

    It is not often that I said ' what are you talking about"but" what are you talking about? "

    I do not know of all "show all" in the Finder. Can you provide a screenshot?

  • For any folder of bookmarks, is - it possible to have subfolders appear * superior * individual links?

    For any folder of bookmarks, is - it possible to have subfolders appear all * superior * the individual links (as they do in Internet Explorer), rather than mixed together in alphabetical order? (Or maybe an add-on that will allow me to do this?)

    The add-on SortPlaces can be useful to you, it gives greater control to sort the bookmarks and folders.

Maybe you are looking for

  • Satellite L20-183 broken BIOS - Linux

    I have a problem with may Satellite L20-183. When I try to install the operating system Linux (Mandriva Linux 2006 official) after checking the HDD, cd... I see a broken 'BIOS' massage and only what I can do is to restart the computer.Why is this hap

  • X 260 battery (cart) priority

    My new X 260 uses the internal stack before the external battery, hot. How can I change this? I'm on the latest BIOS (1.19?) and Ubuntu Xenial.

  • Image XP M58 7483

    Hello I created an XP image for a m58 disabling AHCI as suggested in other posts. I could get the image entirely created and download the correct drivers, but when I try to enable the AHCI, the drive is not detected. Windows XP screen starts flashing

  • Documents in the print queue will not cancel or print

    I tried all the usual cancel, delete, turn off the PC, turn the printer off, turn them both off the coast of all etc.

  • Problem with Kit PLK300... Please help

    So I did some research to help solve the problem of not getting a signal strong enough and coherent in my basement and settles on the kit PLK300 to take care of this. When I received the kit this afternoon on my lunch break, I set up and spilled on t