In what order are results from gather_database_stats 'LIST AUTO' returned?

11.2.0.1.0. The results from the following seem to have some order to them (groupings of objects returned alphabetically). Didn't see anywhere in the docs to indicate what's getting returned in what order (empty stats, stale stats). I looked at table stats for one at the top of the list and it looks like the table had stats gathered recently, so i'm confused. I ran this from sqlplus:
set serveroutput on size unlimited;
DECLARE
ObjList dbms_stats.ObjectTab;
BEGIN
dbms_stats.gather_database_stats(objlist=>ObjList, options=>'LIST AUTO');
FOR i in ObjList.FIRST..ObjList.LAST
LOOP
dbms_output.put_line(ObjList(i).ownname || '.' || ObjList(i).ObjName || ' ' || ObjList(i).ObjType || ' ' || ObjList(i).partname);
END LOOP;
END;
/

Enlightened answer: "So bug off and work with what you get"
The report was run on a database that doesnt have any auto stat collection occurring. There are 4000 items returned in the list. One of the items looks ok when you look at dba_tables (row count correct and last_analyzed recent). Just trying to figure out why this table was included in the list. Might be the way stats collected for it isn't updating some mechanism that gather_database_stats is utilizing. From what I can tell the order is 1) tables with no stats, 2) indexes with no stats, 3) stale tables.

Similar Messages

  • What order are find results in?

    When I use Spotlight and then select the "show in finder" option, what order
    are the results supposed to be in?  Alphabetical, you'd think, if "name" was
    selected.  But there seem to be many sublists in a large set of result, each
    restarting some sort of order every so many lines.  And why wouldn't clicking
    "name" again simply resort these?  It seems the only sort that affects the
    entire list in a predictable manner is sort by "type".  Have I inadvertently
    selected something wrong or am I missing something?  This makes spotlight
    much less useful to me.
    Anyone notice this?
    Mark

    Hi Ves,
      The AFCS dev guide mentions this in passing (3.1.5.1) but doesn't go into quite enough detail - we'll make a note to improve this for the next go-round.
      Essentially, all items for a given CollectionNode (from all of its nodes) are synched in the order that they were published, irrespective of which node they were published to. You can actually put a breakpoint down in MessageManager.receiveItems to watch this - all items for the entire collection are received in one big blob, then pushed onto an array, then sorted according to their timestamps and order, then sent as itemReceive up to the collectionNode.
      So yes, you could easily end up with an itemReceive for EVERYONE, followed by an itemReceive for HOSTS, then another one for EVERYONE. We make sure that they essentially come in the same order they did for people who were actually in the room at the time. For example in the chat pod, if I asked a question to the HOSTS node, which they answered on the public EVERYONE node, I'd want the items to be received in the right order, or the collective history wouldn't make sense.
    For separate CollectionNodes, their synchronization are kept separate (one at a time), since they're the result of individual subscribe() requests - the advice here is that if you have a series of items that have some dependency on order of arrival, you should make sure they're part of the same CollectionNode (which makes sense). If you need A to finish synching before B begins, put those items on different collectionNodes and call their subscribe() methods in that order. So, you can have it either way, depending on how you want to set it up.
    hope that helps
       nigel

  • HT1209 My Itunes Library and iPhone have fallen out of sync on music over the yearsare - how can I compare my itunes library with my Iphone  to see what songs are missing from my library so I can then bring my Library up to date

    My Itunes Library and iPhone have fallen out of sync on music over the yearsare - how can I compare my itunes library with my Iphone  to see what songs are missing from my library so I can then bring my Library up to date

    Hello Solid Buck,
    Thank you so much for providing the details about the duplicate song issue you are experiencing.  It sounds like you would like to remove the duplicate songs that will not play on your iPhone, but when you connect it to iTunes, iTunes only shows you one copy of the song on your iPhone. 
    In this situation, I recommend deleting the individual songs that do not play directly from your iPhone.  I found the steps to do this on page 61 of the iPhone User Guide (http://manuals.info.apple.com/en_US/iphone_user_guide.pdf):
    Delete a song from iPhone: In Songs, swipe the song, then tap Delete.
    Thank you for using Apple Support Communities.
    Best,
    Sheila M.

  • I loaded a lot of music from my CDs on to my iMac at home.  All my music is stored on the cloud.  So why is the music on my MacBook Pro different.  The CDs are missing from this list.

    I loaded a lot of music from my CDs on to my iMac at home.  All my music is stored on the cloud.  So why is the music on my MacBook Pro different.  The CDs are missing from this list. The iTunes account details I use on both computers is the same.

    Hi Chris,
    Thanks for the reply.
    I think you ave sorted my problem with your question.  I thought that as my iTunes account was on their server (Cloud) and I had previously added CDs which showed up, that all my music was "on the cloud".  I used to use Match but when I turned it off lost all my music that I had previously loaded onto my computer.
    So I guess I have to use the cloud again to access my songs.  This is frustrating as I fly a lot and can not use the music (Cloud based) when the phone is in flight mode as there is no internet.
    So how then do I retrieve all my music to my iMac and have my laptop synced so they are the same?
    I am totally confused now.

  • I paid for songs that are missing from my list where are they?

    i paid for songs that are missing from my list where are they?

    Correct.
    Audiobooks have never been available for redownlaod and have never been listed among the content that can be redownloaded.
    As always, it is your responsibility to back up your content.

  • Aperture 3.5 projects: Some are missing from Library listing

    I use Aperture 3.5.1 with OS 10.9.2, and I have studied the various pages of Aperture manuals, and read quite a few Questions, and I think I understand the difference between projects and albums and between managed and referenced files. But I am puzzled about a few project locations.
    To the left of the Aperture display window is a vertical pane about 2 inches wide, with tabs labeled "Library, Info, Adjustments."
    In that left-hand pane of the window, under the tab “Library” is a heading “APERETURE LIBRARY-MASTER”  and under that is the icon of “Projects”. When I select this, the right hand portion of the full window shows thumbnails representing of all my projects. These are organized by year and for each year, by date. This is the organization that Aperture did when I imported the photos, mostly from cameras. Fine.
    In that left hand pan, under  the Library tab, further down, there is a heading “PROJECTS”. It shows a list of folders and albums and projects.
    I see that in this library there are folders marked 2011 and 2012. In each of those there are folders for the months. In 2012 these include   “May”, “Jun UK", "Jun US", “Jul" and others. When I select any of these the associated thumbnails are all visible in the main display window to the right.
    In the 2012 > Jun UK folder are 5 projects, with dated names such as "Jun 06, 2012 Chicheley". The word “Chicheley” and “UK" I added, but the rest of the structure 2012 > Jun was created by Aperture when I imported the photos.
    However, and here is what puzzles me. In the thumbnail display to the right, of several hundred projects, there are 15 contiguous projects, all from June 2012,  that are not listed in the library panel  of projects in the Library tab pane at the left.
    I can look at the “info” tab and see what the “Project Path” is for any photo. To judge by the badges, All of my photos are managed, not referenced.  Indeed, I cannot find any photos in my Aperture library that are referenced.
    The projects that show up in the Library listing at the left pane have Project paths that start with a year, for example
    2012 > Jun UK > Jun 06, 2012
    The projects that do not show up in the Library listing have names such as
    Jun UK Chicheley > Jun 05, 2012 Aston
    At the top of the Library pane is a search box. It finds Jun 06 but not Jun 05.
    I have looked inside the Aperture Library package and I see the organization there for the projects that show up in the library listing. But that is missing the days that are not in the listing — it is missing the projects that show up in the main window but not in the Library list..
    Those thumbnailed of the missing projects are of photos that are not referenced, I have used the main menu at the top of the screen to check that.
    I can edit all the photos, wherever they may be. No problem. But why do all the projects not show up in the library listing?  Where are they?
    I have used EasyFind to search for a folder “Jun UK Chicheley”, allowing search in packages, but did not find it. Same problem with any of the other 15 projects that show up in PROJECTS  on the right, but not in the Library listing on the left.
    I may have  imported the missing projects not from the camera but from a travel Aperture library, using the import library option.
    Maybe I should select all of these photos and then do a “Consolidate”. I have read about this, in the Manual and in the Suppport questions,  but it is not clear whether that will do what I want. I see that Consolidate is something I can do for any of my photos, not just for those that are not shown in the library. So what happens with Consolidate of a photo that is already in the listing of projects? Should I choose “copy” or “move”? If I choose “move” then what happens to whatever collection these came from?
    “Show in Project” and “Show in Finder” seem to be unavailable for all of my photos.
    I will appreciate help.

    What you're seeing when you try to view the original file is the warning that iPhoto had broken the file path/link to the orignal file.  Try this: make a temporary, backup copy of your library if you don't already have one (Control-click on the library and select Duplicate from the contextual menu) and  apply the two fixes below in order as needed:
    Fix #1
    Launch iPhoto with the Command+Option keys held down and rebuild the library.
    Since only one option can be run at a time start with Option #1, followed by #3 and then #4 as needed.
    Fix #2
    Using iPhoto Library Manager  to Rebuild Your iPhoto Library
    Download iPhoto Library Manager and launch.
    Click on the Add Library button, navigate to your Home/Pictures folder and select your iPhoto Library folder.
    Now that the library is listed in the left hand pane of iPLM, click on your library and go to the File ➙ Rebuild Library menu option
    In the next  window name the new library and select the location you want it to be placed.
    Click on the Create button.
    Note: This creates a new library based on the LIbraryData.xml file in the library and will recover Events, Albums, keywords, titles and comments but not books, calendars or slideshows. The original library will be left untouched for further attempts at fixing the problem or in case the rebuilt library is not satisfactory.
    OT

  • In what order are msgs consumed with single sess & multiple async consumers

    Sun MQ will serialize delivery of messages when you have a single session and multiple asynchronous consumers created from that session. I am trying to find out what is the order in which the messages will be delivered by the session to the message listener.
    So if I have 10 consumers on 10 destinations, each with 100 messages, in what order will messages be passed to the message listener.
    Thanks
    Aspi Engineer
    Putnam Investments

    In our testing, we have found that the consumerFlowLimit implementation will guarantee that you'll receive your messages out of order. What happens is that messages will be put in the consumer buffer and they won't be available for round-robin delivery to the other consumers (even if they are idle). I'd recommend setting the consumerFlowLimit=1 which minimizes the impact of this, but every other message will still be out of order (ie consumer #1 grabs messages 1&2, consumer #2 grabs messages 3&4, etc; so that they will process 1&3 together, and 2&4 together. I consider this a very serious bug of openMQ and wish we could disable the consumerFlowBuffer all together to get guaranteed processing order from the queue.
    Edited by: Pancetta on Jun 24, 2010 9:33 AM

  • Return custom search results from a list

    Hello all!
    I'm currently on a Windows 7 migration project where we need a custom search function for our SP2010 page.
    Basically, the user will enter there machine barcode into the search box and query information from a list. This query will only return information relevant to that users machine barcode. For example, the user searches there barcode and the return results
    ONLY displays information for that user/barcode, information such as delivery date, delivery location, migration POC, etc..
    What is the best approach to this scenario?
    I'd like to do the least amount of custom coding as possible aka not using Visual basics.
    Thanks in advance!

    If you create a custom column, probably Managed Metadata, called Machine number, you can then search for items in hte list which have that value.
    This would work in both a search center, if you were to map that column to become a mapped property and then add it to the refiners bar, and on the list using metadata navigation in list settings > advanced.
    Zero code.

  • How to check what fields are output from ABAP to smartform

    Hi All,
    I am working on a Zcopy of RLB_INVOICE smart form and need to check what fields are being output to the vendor_address window in the smartform.
    I have examined the NACE setup and found "Medium -> printoutput", "Program -> ZRLB_INVOICE", "Form Routine -> "ENTRY_INS", "Form -> ZRLB_INVOICE", "PDF/SmartForm -> ZRLB_INVOICE".
    Where would I find the code that shows the direct correlation between the driver program and a specific element of the smart form.
    All I need to check is that all elements of the venfore address are being sent to the form as I am hearing reports that we are missing house number on the printed output.
    Many thanks

    Hi Meenakshi,
    First you find out your driver program. Here in your case it is ZRLB_INVOICE. Then within that check where address of the vendor is found and is assigned to which import parameter of the smartform.
    Check your smartform also. Find which all fields are being printed in that. If vendor_address window is an address window, then there will be uniques identifier passed to that window from the driver program.
    Regards,
    Abijith

  • If the result from the stored procedure returns 0 rows I get this error returned:

    If the result from the following stored procedure returns 0
    rows I get this error returned:
    faultCode:Server.Processing faultString:'Variable transfers
    is undefined.' faultDetail:''
    How can I get round this?

    Well if I try this in a cfm page:
    <cfstoredproc procedure="GetTransfers"
    datasource="datasource" returncode="true">
    <cfprocparam type="in" cfsqltype="CF_SQL_VARCHAR"
    value="4">
    <cfprocparam type="in" cfsqltype="cf_sql_date"
    value="12/09/2006 08:42:00">
    <cfprocparam type="in" cfsqltype="cf_sql_date"
    value="12/09/2008 08:42:00">
    <cfprocresult name="transfers">
    I get an error like:
    [Macromedia][SQLServer JDBC Driver][SQLServer]Procedure or
    function 'GetTransfers' expects parameter '@fromdate', which was
    not supplied.
    But this procedure only accepts 3 parameters.

  • In my Movies list, what order are movies sorted in when viewing the 'Unwatched' tab in grid view? Because it sure isn't 'by title' like I have selected.  What gives?

    Sample movie order:
    The Adventures of Buckaroo Bonzai
    Bella
    No Country for Old Men
    Breach

    So, turingtest2 has it exactly right... Unwatched movies view is sorted by Album Artist.  So here's a nice little fix for that... you can go through and manually copy the Name of the movie into the Album Artist field, but if you have a lot of movies in this category, it will be tedious.  A better option, is to go to www.dougscripts.com, and download the This Tag, That Tag applet.  You can find a link here.  You can then select ALL of your unwatched movies, run the applet, and elect to copy the movie Name into the Album Artist field.  Boom!  And since Doug has done such an awesome job of saving you a bunch of time and effort, throw him a little donation.
    Peace,
    Jared

  • What order are Archive logs restored in when RMAN recover database issued

    Ok, you have a run block that has restored your level-0 RMAN backup.
    Your base datafiles are down on disc.
    You are about to start recovery to point in time, lets say until this morning at 07:00am.
    run {   set until time "TO_DATE('2010/06/08_07:00:00','YYYY/MM/DD_HH24:MI:SS')";
    allocate channel d1 type disk;
    allocate channel d2 type disk;
    allocate channel d3 type disk;
    allocate channel d4 type disk;
    recover database;
    So the above runs, it analyses the earlies SCN required for recovery, checks for incremental backups (none here), works out the archivelog range
    required and starts to restore the archive logs. All as expected and works.
    My question: Is there a particular order that RMAN will restore the archive logs and is the restore / recover process implemented as per the run block.
    i.e Will all required archive logs based on the run block be restored and then the database recovered forward. Or is there something in RMAN that says restore these archive logs, ok now roll forwards, restore some more.
    When we were doing this the order of the archive logs coming back seemed to be random but obviously constrained by the run block. Is this an area we need to tune to get recoveries faster for situations where incrementals are not available?
    Any inputs on experience welcome. I am now drilling into the documentation for any references there.
    Thanks

    Hi there, thanks for the response I checked this and here are the numbers / time stamps on an example:
    This is from interpreting the list backup of archivelog commands.
    Backupset = 122672
    ==============
    Archive log sequence 120688 low time: 25th May 15:53:07 next time: 25th May 15:57:54
    Piece1 pieceNumber=123368 9th June 04:10:38 <-- catalogued by us.
    Piece2 pieceNumber=122673 25th May 16:05:18 <-- Original backup on production.
    Backupset = 122677
    ==============
    Archive log sequence 120683 low time: 25th May 15:27:50 Next time 25th May 15:32:24 <-- lower sequence number restored after above.
    Piece1 PieceNumber=123372 9th June 04:11:34 <-- Catalogued by us.
    Piece2 PieceNumber=122678 25th May 16:08:45 <-- Orignial backup on Production.
    So the above would show that if catalogue command you could influence the Piece numbering. Therefore the restore order if like you say piece number is the key. I will need to review production as to why they were backed up in different order completed on production. Would think they would use the backupset numbering and then piece within the set / availability.
    Question: You mention archive logs are restored and applied and deleted in batches if the volume of archivelogs is large enough to be spread over multiple backup sets. What determines the batches in terms of size / number?
    Thanks for inputs. Answers some questions.

  • What order are Nodes Syncronized in within the same NodeCollection?

    Basically is there a guarantee of synchronization order within a NodeCollection? I assume that there is and that it is based off the order in which the nodes were created. For instance in the SimpleChatModel the Node creation order is:
    HISTORY_NODE_EVERYONE
    HISTORY_NODE_PARTICIPANTS
    HISTORY_NODE_HOSTS
    TYPING_NODE_NAME
    When synchronizing will I receive all of the messages in HISTORY_NODE_EVERYONE before I receive *ANY* messages for HISTORY_NODE_PARTICIPANTS? Will HISTORY_NODE_PARTICIPANTS send all of its messages before HISTORY_NODE_HOSTS sends its messages? When I say "sent" I don't as much what the actual network traffic is (I don't care about the actual packet order of arrival, that is your job AFCS developers ), what I really care about is whether ItemRecieve for HISTORY_NODE_PARTICIPANTS can get executed while HISTORY_NODE_EVERYONE is still receiving messages?
    To take this a step higher in the hierarchy to the NodeCollection level does a NodeCollection need to be fully synchronized before another NodeCollection (that called subscribe after the first one) can get any ItemRecieve messages? If NodeCollection A subscribes before NodeCollection B is A guaranteed to get synchronized before B? Will A finish Synchronizing before B gets its first message?
    I am starting to run into an issue where I need to make sure certain NODEs are synchronized before I start recieving messages in other NODEs. I of course can check for the dependencies on reception and simply defer execution until the dependency is sync'd but this will create a lot more code failure points than I really wanted. I was hoping for a simplier way of doing this.
                             Ves

    Hi Ves,
      The AFCS dev guide mentions this in passing (3.1.5.1) but doesn't go into quite enough detail - we'll make a note to improve this for the next go-round.
      Essentially, all items for a given CollectionNode (from all of its nodes) are synched in the order that they were published, irrespective of which node they were published to. You can actually put a breakpoint down in MessageManager.receiveItems to watch this - all items for the entire collection are received in one big blob, then pushed onto an array, then sorted according to their timestamps and order, then sent as itemReceive up to the collectionNode.
      So yes, you could easily end up with an itemReceive for EVERYONE, followed by an itemReceive for HOSTS, then another one for EVERYONE. We make sure that they essentially come in the same order they did for people who were actually in the room at the time. For example in the chat pod, if I asked a question to the HOSTS node, which they answered on the public EVERYONE node, I'd want the items to be received in the right order, or the collective history wouldn't make sense.
    For separate CollectionNodes, their synchronization are kept separate (one at a time), since they're the result of individual subscribe() requests - the advice here is that if you have a series of items that have some dependency on order of arrival, you should make sure they're part of the same CollectionNode (which makes sense). If you need A to finish synching before B begins, put those items on different collectionNodes and call their subscribe() methods in that order. So, you can have it either way, depending on how you want to set it up.
    hope that helps
       nigel

  • On Provision or reProvision, what order are the resources proccessed in?

    Howdy,
    I am fighting a race condition. Occasionally, when an end user claims their computing accounts, and active sync thread is undoing some of the claiming process. I have done a lot of work to eliminate race condition potential, and am now rather stumped. However, I have come to wonder if the Provision workflow service is the culprit. The toUpdate list has LDAP first, a few DB resources, then Lighthouse. It is the LDAP active sync process that is stepping on the toes of the account claiming. Does this list get processed linearly in order? If so this might explain what is happening. However I can not find any information in the order of execution....
    Does anyone know?
    Thanks,
    Jim

    Hi there, thanks for the response I checked this and here are the numbers / time stamps on an example:
    This is from interpreting the list backup of archivelog commands.
    Backupset = 122672
    ==============
    Archive log sequence 120688 low time: 25th May 15:53:07 next time: 25th May 15:57:54
    Piece1 pieceNumber=123368 9th June 04:10:38 <-- catalogued by us.
    Piece2 pieceNumber=122673 25th May 16:05:18 <-- Original backup on production.
    Backupset = 122677
    ==============
    Archive log sequence 120683 low time: 25th May 15:27:50 Next time 25th May 15:32:24 <-- lower sequence number restored after above.
    Piece1 PieceNumber=123372 9th June 04:11:34 <-- Catalogued by us.
    Piece2 PieceNumber=122678 25th May 16:08:45 <-- Orignial backup on Production.
    So the above would show that if catalogue command you could influence the Piece numbering. Therefore the restore order if like you say piece number is the key. I will need to review production as to why they were backed up in different order completed on production. Would think they would use the backupset numbering and then piece within the set / availability.
    Question: You mention archive logs are restored and applied and deleted in batches if the volume of archivelogs is large enough to be spread over multiple backup sets. What determines the batches in terms of size / number?
    Thanks for inputs. Answers some questions.

  • SQL Order - matching results to a list

    I have a list which I query, matchin the list on the camp_uid. The problem is that I want to display the results in the same order as the list was originally compiled, which is not in numeric order. One option is to set up a loop on the original list values, then use a query over query to obtain the results that are appropriate to that camp_uid, but there must be a better way? I search the ORDER command, there does not seem to be anything in place to make it keep the order of the supplied list in the IN statement.
    Anybody have any better ideas than my query over query? I am a lilttle concerned over the the performance being forced to run multiple queries over data that I already have, even if they are in a Query over Query
    <CFQUERY name="GetCamp" DATASOURCE="#datasource#">
        SELECT camp_uid,camp_title,camp_text,camp_image_type
        FROM campaigns
        WHERE camp_uid IN (
    <cfqueryparam value="#session.camp_list#" cfsqltype="CF_SQL_INTEGER" list="true">
    </CFQUERY>
    Thanks
    Mark

    You might try adding a column to your query based on the order the camp ids appear in the list.
    To items to consider:
    1. This code is not tested.
    2. You should validate that your session.camp_list variable contains only integers, else you are vulnerable to a SQL injection attack.
    3. This code assume that your list does not contain any duplicate values.
    <CFQUERY name="GetCamp" DATASOURCE="#datasource#">
        SELECT camp_uid,camp_title,camp_text,camp_image_type,
            CASE       
            <!--- loop over list and create an order value for each camp, this assumes that list does not contain any duplicates --->
            <cfloop from="1" to="#ListLen(session.camp_list)#" index="listIdx">
                WHEN camp_uid = #ListGetAt(session.camp_list ,listIdx)#
                    THEN #listIdx#
            </cfloop>
            END AS camp_order
        FROM campaigns
        WHERE camp_uid IN ( <cfqueryparam value="#session.camp_list#" cfsqltype="CF_SQL_INTEGER" list="true"> )
        ORDER BY camp_order;
    </CFQUERY>
    Assume that your session.camp_list variable contains "23,17,5" the query qenerated should look like:
    SELECT camp_uid,camp_title,camp_text,camp_image_type,
        CASE
            WHEN camp_uid = 23
                THEN 1
            WHEN camp_uid = 17
                THEN 2
            WHEN camp_uid = 5
                THEN 3   
        END AS camp_order
    FROM campaigns
    WHERE camp_uid IN ( 23,17,5 )
    ORDER BY camp_order;
    Message was edited by: JR \"Bob\" Dobbs.

Maybe you are looking for

  • How do i change my iCloud email from an old email to a new email?

    How do i change my iCloud email from an old email to a new email?

  • Help needed in executing SQL query...

    Hi, I am very new to JDeveloper. Curently i am tryin to execute an SQL query from the BPEL process, the output of the query is to be mapped to a variable field from a target xsd file. the query is fairly simple, like SELECT emp FROM emp_table WHERE e

  • File names not shown in Recent Files list

    On my Samsung Galaxy S3, when I access the Recent Files list, the files I have downloaded in the last few weeks mostly have names like downloaded_file-51.pdf . In the Documents List under /storage/emulated/0/Download,  the names appear correctly. Old

  • Releasing Anchored objects

    I saw a couple of earlier posts with code for releasing an anchored object ( http://forums.adobe.com/click.jspa?searchID=2331267&objectType=2&objectID=1109584 and http://forums.adobe.com/click.jspa?searchID=2331267&objectType=2&objectID=2062943 ) but

  • Access 2010 InfoPath Data Collection Export Fails Due to Date Format That Includes Time Zone

    I created an Access 2010 database that has multiple data collection (InfoPath) forms that were generated from Access and have been in use for about 1.5 years.  Starting in 2013 (for about a week now), the submitted data fails to Export due to a "data