His doubts stats

Hi all

Read the http://210.82.95.68/DOCS/11gR2/server.112/e16638/stats.htm#CIHGDEEI in this moment to collect statistics. Have some doubts in that.

1. what exactly is this 'Gradually modified Table' average collects stats once in a week or a month.
2. how to determine the sampling percentage say 10% or 30% for the collection of statistics.

Thank you
Baskar.l

1. the tables ' gradually updated the ' are those who are not "substantially amended". (Please read the entire 13.3.3).
Thus, a table that contains, say, only 5-15% being changed, lines can be called gradually "changed." A table that has, say, 40% to 100% of lines are deleted and reloaded or updated day might be called significantly "changed."
The thresholds are for you to determine.

2. the question of whether you should use 10% or 30%, it is for you to determine. It really depends the nature of the changes to the table, the nature of queries against the table and the criticality of the statistics. A large table where the nature of the changes are predictable (for example a SALES table where the mix of new sales PRODUCT_CDs is usually the same each month or quarter), can do with a smaller sampling. A table where the changes are unpredictable (such as a table of 'zero/staging' where 80-100% of lines are perodically reloaded with new PRODUCT_CDs for a new cycle of batch processing) may well need to 100% sampling.

Hemant K Chtale

Tags: Database

Similar Questions

  • Details about his Gather Stats

    Hello

    Below is a procedure of stats to gather that we use.

    create or replace

    PROCEDURE SP_GATHER_TBL_STATS (schema_name VARCHAR2, varchar2 tablename)

    AS

    type typ_tbl is table of the varchar2 (30)

    index by pls_integer;

    IDX typ_tbl;

    n NUMBER (10): = 0;

    BEGIN

    RUN immediately "begin sys.dbms_stats.gather_table_stats (ownname = >" ' |) " schema_name | " ', tabname = > "' | TableName | " ', block_sample = > TRUE, cascade = > FALSE, degree = > DBMS_STATS. AUTO_DEGREE); END;';

    SELECT INDEX_NAME

    LOOSE COLLECTION idx

    Of

    ALL_INDEXES

    WHERE

    TableName = table_name

    AND TABLE_OWNER = schema_name

    AND INDEX_TYPE! = "BITMAP";

    n: = SQL % ROWCOUNT;

    IF n > 0 THEN

    I'm IN... idx.first idx. Last

    LOOP

    RUN immediately "begin sys.dbms_stats.gather_index_stats (ownname = >" ' |) " schema_name | " ', indname = > "' | (i) IDX | " ') ; END;';

    END LOOP;

    END IF;

    END SP_GATHER_TBL_STATS;

    /

    GRANT EXECUTE ON SP_GATHER_TBL_STATS TO INFOADMIN;

    /

    We use the following parameters for the stats to gather in our env DWH located on 11.2.0.4.

    sys.DBMS_STATS.gather_table_stats (ownname = > "' | schema_name |") ', tabname = > "' | TableName | " ', block_sample = > TRUE, cascade = > FALSE, degree = > DBMS_STATS. AUTO_DEGREE,estimate_percent = > dbms_stats.auto_sample_size);
    sys.DBMS_STATS.gather_index_stats (ownname = > "' | schema_name |") ', indname = > "' | (i) IDX | " ',degree = > DBMS_STATS. AUTO_DEGREE, estimate_percent = > dbms_stats.auto_sample_size);


    Please specify on what follows.


    1. 1. is it advisable to check STALE_STATS = 'YES' in ALL_IND_STATISTICS and ALL_TAB_STATISTICS prior to the collection of statistics on table / index?
    2. 2 is it advisable to use the value of dbms_stats.auto_sample_size for Estimate_percent?
    3. 3. can I use value AUTO_DEGREE for the parameter of degree while collecting statistics Index?

    Kind regards

    VN

    For indexes, have you considered just using "cascade-online TRUE" then the collection of statistics on the table, to include all indexes?

    1. is it advisable to check STALE_STATS = 'YES' in ALL_IND_STATISTICS and ALL_TAB_STATISTICS prior to the collection of statistics on table / index?

    When you use this procedure and why? STALE_STATS is used by the job nightly automated in order to determine what stats need refreshing and is based on the number of DML operations that were performed on the table. So if you want just to refresh stale stats, it might be worth checking. However, if you would rather refresh all statistics, then ignore it. You need to determine if there are statistics that are marked as STALE = No., but would benefit from a discount.

    2 is it advisable to use the value of dbms_stats.auto_sample_size for Estimate_percent?

    According to the manual of Oracle - "use the constant DBMS_STATS. AUTO_SAMPLE_SIZE to Oracle to determine the size of the sample appropriate for good statistics. »

    You need to check if this option gives you "good statistics". Sometimes, sampling can cause problems of particular misplacement or patterns. On the other hand, using a too large sample can take too long, so this might not be acceptable.

    3. can I use value AUTO_DEGREE for the parameter of degree while collecting statistics Index?

    Yet once, from the manual - "the AUTO_DEGREE value determines the degree of parallelism automatically.".

    Try it and if you get improved performance without overloading the database, then it is probably a good idea.

  • What are the differences between "PowerState" and "Guest.State" when I run the powercli command Get - VM

    I run the script following powercli: -.

    Get - VM | Export-Csv-path c:\test.csv - NoTypeInformation - UseCulture

    And from there I found 2 properties that describe the State of the virtual machine;

    1 PowerState which can be either; Receiving or PoweredOff

    2 Guest.State, which can be either; running or not

    Can someone so advice on the differences between these two properties? Could I have for example a VM with PowerState = PowerOn, and that his Guest.State = no run?

    PowerState if the State of the virtual machine itself.

    Documentation Centre of vSphere 6.0

    PoweredOff

    Receptor

    Suspeneded

    Everything about .guest is achieved through VMware tools and provide information to the OS itself.

    (VMware tools must be installed and working properly in the operating system to get whatever it is this property)

    Documentation Centre of vSphere 6.0

    Keep

    Reset

    Running

    ShuttingDown

    Standby

    Unknown

    Could I have for example a VM with PowerState = PowerOn, and that his Guest.State = no run?

    Yes.

    For example, if a virtual computer is started and VMware tools have never been installed on it, it will signal exactly that.

    From the vSphere Client, you will get in the summary > General > VMware Tools

    Does not not (not installed)

    You will get more information using the API via PowerCLI.

    . extensiondata.runtime.PowerState #poweredON

    . extensiondata.guest.GuestState #notRunning

    . extensiondata.guest.ToolsStatus #toolsNotInstalled

  • Oracle logminer - rollback statement

    Question of LogMiner

    I use Oracle 10.2.0.4. I want to use logminer, only problem I logminer will not only display used in mycode rather real sql statements rather his own statements!
    Can those who have used the logminer, you provide anser subsequently, if I do following:
    Set autocommit disabled;
    Insert in scott...
    (I have inserted a line in the table scott..)
    Rollback

    To rollback logminer will show a delete statement even if it has been issued.


    Thank you

    Best link for your understanding

    http://www.progtown.com/topic603823-LogMiner-does-not-generate-the-information-in-rollback-segments.html

    It will show rollback for sure... see this link for example

    http://oracledoug.com/Serendipity/index.php?/archives/1491-diagnosing-locking-problems-using-ASHLogMiner-part-8.html

  • stats on a composite index

    Oracle 10.2.0.4


    When a multiple-column index is created on 10g, Oracle will generate all statistics column or the lhe leading the column only?

    Thank you

    902986 wrote:
    Oracle 10.2.0.4

    When a multiple-column index is created on 10g, Oracle will generate all statistics column or the lhe leading the column only?

    Each column will be his individual stats and index will have a unique set of statistics covering all columns complete (and the only statistic of siginificant relating to the values of column in this case is the distinct_keys). Oracle maintains not the stats of each set of columns leadinig - but when you get to 11g you can create "long staitistcs", in particular the statistical 'group', so you could create statistics on the combinations of main of the existing index columns.

    Concerning
    Jonathan Lewis

  • Lock button in the low State (mc or button?)

    Hello

    I create a flash quiz and get to be quite new to AS3. I am trying to lock a button in his 'down' State, but I'm having some trouble.

    I came across this thread (and a few other similar)

    http://forums.Adobe.com/thread/573477

    And tried to create a movieclip button, but could not understand how to lock the button in its down state when you click on it. The thread that I posted above still resists the reason? It was some time ago and I wonder if things have changed, if using a 'button' might now have become a viable option. What I've read though, buttons appear to have become somewhat redunant.

    The other problem is that the button to go back to his 'up' State when I jumped to a different picture on my calendar.

    Any help or comments on this subject would be greatly appreciated!

    Thank you

    For the part, you say that you are puzzled, you must add the line:

    deactivateStateChanges (button1);

    in the function buttonDownHandler along the line

    showState (button1, down);

  • Problem with button 'Over' State

    I am just learning flash. I created a rectagle and converted to a button symbol. I got it so that it changes color when someone will find their mouse over it. However, I need the text there, too. My problem is that the symbol comes back to its original color when the mouse is over the text. I tried to make the text in the symbol, and I also tried to put above the symbol on the stage.

    I need the rectangel to stay in his "Over" State even when the mouse is over the text. Is this possible?

    Ian

    In the properties panel, make sure that the TextField is not defined to be selectable.  There is an icon it for this property activation or deactivation.

  • Stats not registered in the stat table use with gather_table_stats

    During the collection of statistics with DBMS_STATS. GATHER_TABLE_STATS and passing stattab parameter partitioned table, his stats are not saved for this partition in the table user stat unless it is executed twice. Here's the statement that I'm running. If I add a new partition and try to collect statistics for it and store it in the user table stats, it is not be stored even if his dictionary stats are updated. If I run the second time, it will update the entries in the user table stat.

    Start
    DBMS_STATS.gather_table_stats ("OWNER",
    tabname = > 'table_name ',.
    partName = > "P20090824"
    estimate_percent = > 2,
    method_opt = > 'for all THE COLUMNS of SIZE AUTO. "
    stattab = > "DICTSTATTAB"
    granularity = > "ALL."
    degree = > 8,
    Cascade = > true
    );
    end;
    /

    I used similar options and it worked all the time. Only difference is I used the granularity-online 'PARTITION Maybe you give him a try.
    Also try the stat of gathering and export to stat table separately.

  • Idle device, power off, repeating background tasks

    I read somewhere that a background thread does not rescheduled tasks with a frequency that is too high, because it will prevent the device entering his "idle state" and so drain the battery.

    I have found no documentation on this, can someone please confirm and possibly a link to the documentation, if they exist? I have a background application to query for changes, every few minutes or seconds even according to the risk of exhausting the battery.

    Without doubt, when you press the power off button, the unit is actually off the coast and not in a State of rest? Or is there ongoing stuff while it's "off"?

    Thank you very much.

    Yes, it's true: frequently repeating tasks will prevent the unit goes into low power mode (standby). It is not just "lazy" mode with the screen turned off - it's a deeper sleep, so to speak. Make sure you reschedule these tasks at very low frequencies (time in hours) when the application is not active and that the screen is black. Distributes them regular intervals when the application become active.

  • Can I put an email to send at a specific date

    I want to put in place a few emails to send when I left, but I can't seem to find an option to do this. Any ideas or is it just not possible?
    Thank you

    Thunderbird will not be repeated in his native state.
    You can install this add to add the feature.
    https://addons.Mozilla.org/en-us/Thunderbird/addon/send-later-3/?src=SS

  • Short battery life of the Macbook Pro 13 "mid-2009

    My Macbook Pro battery does not seem able to last longer then an hour on a full charge. Initially, I set this up to the age and checked the battery status (ALT + click on the battery in the top bar icon), however it says normal. I have always looked after my Mac - full load battery and let it run down completely before recharging - so I don't know if it's just an age thing or another issue.

    In addition, I had a problem for a long period of overheating, even when I use Safari. Using an application that I can see that it reaches 90 degrees celsius, it is worse. If I have a problem with my fan which is itself an overheating of my Mac and drain the battery?

    I tried to use Apple Hardware Test (now D then it starts) but have had no chance to lift anything but the normal login screen.

    MacBook Pro (13-inch, mid 2009)

    2.26 GHz Intel Core 2 Duo

    8 GB 1067 MHz DDR3

    Seven years on a LiPo battery? If this is the original, you can thank his long and reliable service so far and to prepare for a replacement. Whatever his 'normal' State

  • Home Menu Variable does not turn off

    Hello

    On start-up the first today, I found that when you look at the screen in the application library, the host Variable menu is also visible... and won't turn off not... even if I restart the calculator.

    I can it turn on and off in the reception area, but not in the library App box... see screenshot attached for example approximate (I can't reproduce on the screen of virtual calculator to get an exact screenshot)

    Suggestions to turn this feature off...? As it does not block the icons of the touch screen on the left side, etc. ?

    See you soon

    FG

    Don't think of a paper clip reset as a "last resort."  It does not clear the memory, or delete your programs, or something drastic like that.  He simply makes a soft "warmstart" (also known as a "reboot") which is the first in his normal state of operation.  This is useful not only what premium starts acting wonky (due to corruption of the memory of a static spark, or a bug or simply no chance), but you can use it even when you put the appliance in a State that you do not know how to get out, and you do not have the time to search the user's Guide.  Just search the Reset hole (he should have called it Reboot, do not reset to zero) and you'll be back in business.

    WARNING: A paperclip reset CAN erase the memory (and delete all your stored data) if it detects that the memory is so damaged that it must be emptied to restart.  So if your premium starts acting psychotic, use the connectivity Kit to back up your programs and your variables before poking the hole... just Reset in case it clears the memory.

  • Firewalls in El Capitan

    Does anyone know how the Firewall works in El Capitan?

    I modified the apple script to add redirection rules and blocking and allowing services on a server that is also a gateway.  It is a script imported from a Maverick server that has a job for a couple of years without any problems.

    Nating and redirect works fine.  Blocking or allowing ports just does not work.  For example, the script blocks everything by default and then lets a few services.  Http is NOT on the list of authorized services.  Basic stuff.

    If I'm running pfctl(8) - sr, I see that my rules are loaded correctly.  But if I turn the Web service using the server application, it works fine on the external interface (en1): the service is available.

    I see in the Access tab ServerApp has set up a firewall to allow access, but these rules are not using pfctl(8).

    I look at all the anchor points too, but none has a rule to allow http.

    So, how does this work?  How can I fine tune the server firewall?

    [missionreste: 13:22] [/ Library/Preferences] % sudo pfctl(8) - sr | grep-i en1

    No ALTQ support in the kernel

    Disabled functions of ALTQ

    drop block in quick access on en1 proto tcp from any to any port = 21

    drop block in quick access on en1 proto udp from any to any port = 21

    move quickly on en1 inet proto tcp from 132.206.51.22 to any port = 22 flags S / HIS keep state

    move quickly on en1 inet proto tcp from 132.206.3.148 to any port = 22 flags S / HIS keep state

    spend out on en1 all status indicators to keep S / SA

    Go on en1 proto tcp from any to any port = 22 flags S / HIS keep state

    Spend on en1 inet proto tcp from 104.156.76.226 port = 5900 flags S / HIS keep state

    block fast on en1 proto tcp from < sshguard > drop to any label «ssh bruteforce»

    [missionreste: 13:23] [/ Library/Preferences]

    And of course, there is a rule to drop to initially block for any interface.

    Be easy on yourself. Icefloor allows to manage for you. (In respect of Jésus Vigo)

    Subsequently, you can see the effects in the command line for the different interfaces.

    Leo

  • Tips for an A60 - 181 RAM change - need information:------.

    I have an Equium A60-181 according to the specification, this is a P4 3.20 GHz HT with 2x256MB DDR RAM FSB 533 MHz and ATI 7000 IGP graphics processor.
    Since I bought it 5 years ago, I've had random blue screens of death, the corruption of the system folder (necessary to re - install using the DVD of recovery of product 2 times) although I implemented with her for many years.
    Now this week it blue screens so many times (and green) with different error messages that, after verification, it with memtest86, I had confirmed my suspicions the RAM is faulty.
    I have found what I believe, it's slot compartment memory but I can only find 1 x 256 MB of RAM DO not 2 modules and for some reason it's FSB PC2700 333 MHz DDR RAM 533 MHz as advertised.
    Anyone know where to find the other RAM I opened to all other panels, but all belong to the wireless adapter and it has connections associated with.
    Also is it normal to find a RAM with a speed that is located under the advertised FSB? I am still a bit confused about this because if I had to buy a new memory module, I need to correct type because I've heard quite matched DDR makes Windows unstable.
    In any case, I remove the memory module is visible that the machine always starts up, but with only 256 MB RAM, however if I turned it in his unstable state with the lack of the module it would turn on and stop instantly.
    It seems obvious from this behavior that the RAM problem is one inside, that I cannot locate and probably fixed to the motherboard.

    So my questions are the following:

    Where is the other module DDR 256 MB, do I have to strip my laptop out to have access to it?

    Assuming that I have to replace the two modules DDR RAM is compatible with this particular model?

    Given the age and the specifications of the laptop, this return to Toshiba would not be a viable option so I'm more than happy to fix it myself. If someone could recommend some links for a repair site or perhaps a repair I would really appreciate it.

    see you soon,

    Richard S.

    Hi redhawk,.
    some machines have a ram installed under the keyboard...
    and some machines have ram installed directly soldered on the motherboard...

    I think that it is not the ram...
    Renew the thermal grease on cpu and gpu.
    in most cases, this fat dry out and cause failures...

  • on update of Marshmallow

    A7000 lenovo will get the update of the marshmallow?
    If yes then when is it updated?
    Answer me please

    Hello

    Lenovo has this Update Android matrix for his formal statement of what will be upgraded.

    It seems that there is a plan for the A7000 but there is no date.

    Concerning

Maybe you are looking for