Auto task - Gather Stats.How do Oracle knows which DB objects to analyze ?

Hi,
Do oracle has any specific criteria while identifying which Oracle DB objects needs to be analyze as part of Gather Stats ( included as "auto task") ?
Does it uses information from DBA_TAB_MODIFICATIONS to find any fixed % of change like 10% or so or it analyzes all objects ?

Copied and pasted from the documentation, which you can find via some simple Google searches if you don't know about http://docs.oracle.com
GATHER AUTO: Gathers all necessary statistics automatically. Oracle implicitly determines which objects need new statistics, and determines how to gather those statistics. When GATHER AUTO is specified, the only additional valid parameters are stattab,statid, objlist and statown; all other parameter settings are ignored. Returns a list of processed objects.
GATHER STALE: Gathers statistics on stale objects as determined by looking at the *_tab_modifications views. Also, return a list of objects found to be stale.
GATHER EMPTY: Gathers statistics on objects which currently have no statistics. Return a list of objects found to have no statistics.
14.2.1 GATHER_STATS_JOB
Optimizer statistics are automatically gathered with the job GATHER_STATS_JOB. This job gathers statistics on all objects in the database which have:
Missing statistics
Stale statistics

Similar Messages

  • How does oracle know which AO Framework page or process to execute.

    Hi,
    How does oracle know which AO Framework page or process to execute. I use to think this was defined in the Function definition. But looking through some Function definition in HRMS setup I noticed some of them simply calling the same first page, such as the one below used in many managers menus. This initial page is the page that allows managers to choose the employee they want to work on.
    OA.jsp?akRegionCode=HR_PERSON_TREE_TOP_SS&akRegionApplicationId=800.
    My question is, after executing this initial page, how does Oracle then varies the OA page by the diffferent functions?

    Hi;
    Thanks for sharing
    Please dont forget to change thread status to answered if it possible when u belive your thread has been answered, it pretend to lose time of other forums user while they are searching open question which is not answered,thanks for understanding*
    Regard
    Helios

  • How does oracle know the databse is inconsistent and needs recovery?

    Hello,
    How does Oracle know that the datafiles are inconsistent and db needs recovery when rebuilding the db off of the online/hot backups? Whereas, it doesn’t ask for recovery when rebuilding the database from cold backup (I understand that, for cold backup, database is shutdown immediate and hence the db is consistent). In both scenarios, a new control file is created (that means it won’t have SCN) and only datafile header will have the SCN. What’s that piece of info that oracle check to know if the database is consistent or inconsistent during the backup restore and recovery and where that info resides?
    Thank you for any hints and answers.
    Jay

    Oracle uses the datafiles to identify if they are consistent. If the datafiles backup was taken when the database was OPEN, they are marked as "fuzzy" in the header. Also, likely, the Checkpoint SCNs may be different if tablespace checkpoints (e.g. by ALTER TABLESPACE BEGIN BACKUP) are at different points in time.
    If the backup was a cold backup with the database shutdown normal/immediate, the headers are marked appropriately.
    When you run CREATE CONTROLFILE, it has to read the datafiles because the controlfile, itself, has no SCN and LogSequenceNumbers information.
    Hemant K Chitale

  • How can i know which index will be used when executing the query ?

    1 ) I have query in which i have 3-4 tables but there multiple index on one column .
    so how can i know which index will be used when executing the query ?
    2) I have a query which ia taking too much time . how can i know which table is taking too much time ?
    3) Please Provide me some document of EXplain plan ?

    Hi Jimmy,
    Consider the below example
    /* Formatted on 2011/02/04 21:59 (Formatter Plus v4.8.8) */
    CREATE TABLE FIRST AS
    SELECT * FROM all_objects;
    UPDATE FIRST
    SET object_name = 'TEST'
    WHERE owner != 'SCOTT';
    CREATE INDEX idx_first ON FIRST(object_name);
    SELECT *
    FROM FIRST
    WHERE object_name = 'TEST';
    It has not used index
    Execution Plan
    Plan hash value: 2265626682
    | Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time |
    | 0 | SELECT STATEMENT | | 58678 | 7334K| 163 (4)| 00:00:02 |
    |* 1 | TABLE ACCESS FULL| FIRST | 58678 | 7334K| 163 (4)| 00:00:02 |
    /* Formatted on 2011/02/04 21:59 (Formatter Plus v4.8.8) */
    SELECT *
    FROM FIRST
    WHERE object_name = 'emp';
    This has used the index
    Execution Plan
    Plan hash value: 1184810458
    | Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time |
    | 0 | SELECT STATEMENT | | 1 | 128 | 1 (0)| 00:00:01 |
    | 1 | TABLE ACCESS BY INDEX ROWID| FIRST | 1 | 128 | 1 (0)| 00:00:01 |
    |* 2 | INDEX RANGE SCAN | IDX_FIRST | 1 | | 1 (0)| 00:00:01 |
    From this we can come to the conclusion that, whether to use one index or not by oracle
    would also depend on the data which is present in the table. This has to be this way as
    we see in the bind peeking, if oracle sticks to only one plan, say only use the full table
    scan, it would be a performance hit when it searches for the second query ie where object_name
    ='emp';
    2.
    If we have a query like below.
    select * from emp
    where upper(ename) = upper(:p_ename);
    Evenif we have the index on ename column, oracle wouldn't be able to use the index, as there is a function in the predicate column. If you need oracle to use the index, we need to create a function based index as below.
    Create index idx_ename on emp(upper(ename));
    Regards,
    Cool

  • How do I know which ssd is compatible with my MacBook Pro..

    My MacBook Pro would not boot up. Took it to the Genius Bar and found out that I need a new hard drive.  I want to replace it with a Solid State drive, but how do I know which one is compatible with my particular machine?
    <Personal Information Edited by Host>

    On a late 2008 MBP, you want an SSD that can handle Sata 1/2/3 so it can be used in this machine, and can be migrated all the way to a 2012 SATA machine. Machines later than 2012 primarily use PCIe flash and are not considered user-replacable.
    I have used a Samsung 840 Pro 256GB in a 2008 MBP. You can look at Crucial, OWC, Intel, Samsung brands.
    Please see this guide - https://www.ifixit.com/Guide/MacBook+Pro+15-Inch+Unibody+Late+2008+and+Early+200 9+Hard+Drive+Replacement/841

  • How can we know which index is triggered

    hi all ,
    how can we know which index is triggered in perticular select statement ? is that just based on the fields which used in the select statement or can we know from ST05 ?
    thanks,
    ram

    Hi Ram,
    You can go to transaction ST04(if you are authorised)...
    Now select 'Detail analysis menu' button.
    Now select SQL Request button under 'Resource consumption by' section.
    Now in the ' SQL statement pattern by ' field , give the part of the select statement you want to check.
    Now press execute.
    Now select the line item displayed and goto menu option <b>Goto->Explain SQL</b>.
    It will give you the execution plan for the particular SQL statement.
    From here you can get the index values from INDEX RANGE SCAN statement in this output.
    Hope this has been of some help to you...
    Regards,
    SP.

  • How can I know which file is using by the self-service workflow?

    Dear all:
    In my directory, there are two HRSSA.wft and How can I know which source is using by the workflow of the self-service ?
    my environment is oracle 11.5.9 | self-service 4.1 | workflow builder 2.6
    Thanks
    regards
    Terry

    One way would be to download the HRSSA workflow to a wft file (using the WFLOAD utility - see MOS Doc 578248.1), then comparing this downloaded wft file with the two files you have (using a utility such as diff in Unix). The comparison that reports no differences will identify the wft that was uploaded into the database.
    HTH
    Srini

  • How can I know which has brought down the database SI or SA

    Hi to all,
    Hi
    Sorry about this simple question but i am little bit confused.
    Suppose if i used Shutdown immediate and i use Shutdown abort then how can i know which brought down my database Shutdown immediate(SI) or Shutdown abort(SA)
    Please help me !!!!!

    Hi,
    Ofcourse shutdown abort will execute...
    See the output from alert log
    Tue Jun 01 11:54:17 2010
    Shutting down instance (immediate)
    Stopping background process SMCO
    Tue Jun 01 11:54:35 2010
    Shutting down instance: further logons disabled
    Tue Jun 01 11:54:39 2010
    Shutting down instance (abort)
    License high water mark = 125
    USER (ospid: 5436): terminating the instance
    Instance terminated by USER, pid = 5436
    Tue Jun 01 11:54:42 2010
    Instance shutdown complete
    Thanks,
    Ajikumar G
    Expertise in Oracle Apps...

  • Adobe Cloud has 2 different Muse programs.... how do I know which one is the newer better version?

    So I am new to Muse, and my Adobe Cloud has 2 different programs from Muse... how do I know which one is the newer better version?
    One Must program (Muse CC 2014.2)  has a black background when working on it... it looks like other Adobe programs such as Photoshop.
    The other one is light color (Muse CC) very similar to the black color Muse on functions.....
    One of the difference I notice is that the light color Muse has a few widgets in the library, while the black background Muse seems to have an empty library
    So... why are there 2 different Muse programs in my Adobe Cloud?

    Hi
    The latest version of Muse is 2014.2, so you need to uninstall another version of Muse manually.
    regarding the items in Library, you can add items in your library manually, as shown in this article
    Adobe Muse Help | Organizing and reusing design elements using Library panel
    Please let me know if you have any other query.

  • Help me! URGENT cannot find my printer model on hp website - how do i know which cartridge to order.

    Help me! URGENT cannot find my printer model on hp website - how do i know which cartridge to order.

    Depend on which country you are in btw, for the US this should be 61 black and 61 tricolor. For most of europe this will be 301 black and 301 tri color. So to be sure tell me from which country you are.
    Say "Thanks" by clicking the Kudos Star in the post that helped you.
    Although I work for HP my posts and replies are my own
    Please mark the post that solves your problem as "Accepted Solution"

  • HT1451 If I have two iTunes libraries on one computer, how do I know which one is opening when I click on the iTunes icon on the desktop?

    If I have two or more iTunes Libraries on one computer, how do I know which one is opening when I click on the iTunes icon on my desktop?

    You cannot.
    When you sync to a new library, it will erase the current content.
    Use your backup copy of the old computer to copy everything to the new one.

  • Can you have multiple Apple TV's in the same house and network? If so how do you know which one to pick from your Idevice?

    can you have multiple Apple TV's in the same house and network? If so how do you know which one to pick from your Idevice?

    Yes, there are even defaults for naming them, such as LivingRoom, Bedroom, etc, or you can even enter your own name with the remote for each AppleTV.

  • How I can know which row is parent item code or child item in matrix?

    Hi,
    In marketing document, when insert a item into contents page, if it is a BOM then all child item will be inserted into matrix automatically. My question is when i view the rows in matrix how i can know which row is normal master item and which row is a child item row? From the UI, i can only see the child item code looks readonly but how i can know it in my add-on code? I tried to get the edittext box object from item No. cell, but i can't find any difference.
    Thanks!
    Lan

    Sorry, i found an issue when i try to retrieve the BOM Type column value. I am in adding mode, when i insert a BOM with components, the bom type will appears as "Component of a Sales BOM". But in the event, when I try to get the value from this cell (it is combobox), it gives another value which is not same with the one it appears in the matrix. Is anyone know how to solve my problem?
    Thanks!
    Lan

  • How can I know which clients are connected to my network through express and which are connected through extreme?

    I have an airport express extending, through wireless, a network provided by an airport extreme. How can I know which clients are connected to my network through express and which are connected through extreme?
    Here you can see both routers:
    I would expect to some clients connected to the express, other than the extreme. And that's all I see: only the airport extreme appears as client of the airport express.
    Below, one can see the summary of the config for both routers.
    Would somebody explain it?
    Thanks,
    Marcelo
    Message was edited by: Marcelão

    please disregard this answer.
    Message was edited by: Marcelão

  • HT1635 How do I know which Hard Drive to get for my MacBook 2006? The old Hard Drive is a Toshiba (MK8034GSX) S/N Z6APT2XUT 9H5 EC. A?

    How do I know which Hard Drive to get for my MacBook 2006? The old Hard Drive is a Toshiba (MK8034GSX) S/N Z6APT2XUT 9H5 EC. A?

    I've put a 250gb 7200rpm drive in an Early 2006 with no problems.
    For a new hard drive try Newegg.com http://www.newegg.com/Store/SubCategory.aspx?SubCategory=380&name=Laptop-Hard-Dr ives&Order=PRICE
    Or OWC  http://eshop.macsales.com/shop/hard-drives/2.5-Notebook/
    Here are instructions on replacing the hard drive in a MacBook with a removable battery. http://creativemac.digitalmedianet.com/articles/viewarticle.jsp?id=45088
    To transfer your current hard drive I like the free application Carbon Copy Cloner. It makes a bootable copy of everything on your hard drive http://www.bombich.com/index.html You'll need a cheap SATA external hard drive case. Put the new drive in the case then format and partition the new drive and clone your old drive to the new one. Check that it's set up right by booting up from the external drive. Then replace your old hard drive with the new one and put your old one in the external case.
    Here's a cheap SATA external hard drive case on Amazon http://www.amazon.com/HDE-SATA-Hard-Drive-Enclosure/dp/B001AAVA08/ref=pd_bxgy_pc _text_b
    If you don’t have the tools to open up the MacBook OWC has a set for $5
    http://eshop.macsales.com/item/OWC/TOOLKITMHD/

Maybe you are looking for

  • IPhone 4 from Apple store in Germany (Oberhausen) NOT UNLOCKED !

    i have iPhone 4 factory unlocked, then i travelled to germany and my iphone had some problems so i went to the nearest Apple Store in Germany (Oberhausen) and the Genius Bar told me that my iPhone can't be repaired and out of warranty so they told me

  • Cloning a database from data guard

    Hi Gurus, I have a situation where I am using 11g R1 11.1.0.7 Primary database in server prodsrv and active data guard read only db in drsrv host. I have to clone a new dev database in drsrv database. since 11g R1 supports clone from active database,

  • JDBC Adapter Message Monitoring

    Hi All, I have configured a sender JDBC adapter. The adapter status is green. The message is Processing finished sucessfully. But I can not find any msg in SXMB_MONI. I can not see any msg in msg monitoring also. Any input on this will be highly appr

  • Cannot see source code

    I have just installed Contribute CS4 and connected to my web site. When I "view" my home page it shows fine but when I click" Edit Page" I cannot see the source code. There is just nothing showing to edit. What am I doing wrong? Also when I finish ed

  • Elements working with Other Slide Show Products

    We've had some debates here about slide show products other than the function within Elements. Personally I opted for Proshow Gold, which I've been very pleased with. However, it lacks in one aspect and that's locating the files you want to put into