How to check what estimate_percent has the value table

I run exec dbms_stats.set_table_prefs('user','table','ESTIMATE_PERCENT','4');

I want to see what the value is set for all tables...

what I need to change the stat auto collection? or it will take 4% in the future?


v11.2.0.2

Try HR.JOBS for a given example table:

SQL> select dbms_stats.get_prefs('ESTIMATE_PERCENT','HR','JOBS') from dual;

DBMS_STATS.GET_PREFS('ESTIMATE_PERCENT','HR','JOBS')
--------------------------------------------------------------------------------
DBMS_STATS.AUTO_SAMPLE_SIZE

To change it for all tables in all schemas, you need to use DBMS_STATS. SET_DATABASE_PREFS:

SQL> exec dbms_stats.set_database_prefs('ESTIMATE_PERCENT',4);

PL/SQL procedure successfully completed.

SQL> select dbms_stats.get_prefs('ESTIMATE_PERCENT','HR','JOBS') from dual;

DBMS_STATS.GET_PREFS('ESTIMATE_PERCENT','HR','JOBS')
--------------------------------------------------------------------------------
4

Edited by: P. Forstmann Nov. 28. 2011 17:55

Edited by: P. Forstmann Nov. 28. 2011 18:37

Tags: Database

Similar Questions

  • How to check whether or not the value is already in the collection

    Hello

    I'm in the analysis of a donkey of xml file assigning values to the collection.
    For each new record, that I am available for capture of xml, I need to check if this value already exists in the collection or not, and then only I must add this value to the collection.
    How we do that. I am not able to check whether or not it is already present in the collection. Help, please.

    Here is my code


    TYPE tab_A_type_rec IS RECORD)
    Name Varchar2 (50);
    );

    TYPE tab_A_type IS TABLE OF THE tab_A_type_rec;

    pkv_A_tab tab_A_type: = tab_A_type ();


    l_nl: = dbms_xslprocessor.selectnodes (dbms_xmldom.makeNode (l_doc), ' / / List "");
    for cur_rec in 0... dbms_xmldom.GetLength (l_nl)-1 LOOP
    l_n: = dbms_xmldom.item (l_nl, cur_rec);

    pkv_A_tab.extend; -----
    pkv_A_tab (pkv_A_tab. (Last). Name: = dbms_xslprocessor.valueOf (l_n,'Name / text () '); -I have to do these two steps only after checking whther that value is already present in the collection pkv_A_tab or not... What will be the stated case.

    end loop;


    Thank you
    Pramod

    Peter Gjelstrup wrote:

    Then in the final use TOGETHER to eliminate duplicates.

    The only problem - cannot use SET operator nested table records ;) or even on a table nested objects, unless the object type has map/delivery orders. Now if in real life, record type has only one attribute - NAME OP can just create type of TABLE OF VARCHAR2 (50). Then:

    SQL> declare
      2      type tab_A_type is table of varchar2(50);
      3      pkv_A_tab tab_A_type := tab_A_type('A','B','C','A','B','C','D');
      4  begin
      5  if 'B' member of pkv_A_tab
      6    then
      7      dbms_output.put_line('Found B.');
      8  end if;
      9  pkv_A_tab := set(pkv_A_tab);
     10  dbms_output.put_line('List of distinct elements:');
     11  for i in 1..pkv_A_tab.count loop
     12    dbms_output.put_line(pkv_A_tab(i));
     13  end loop;
     14  end;
     15  /
    Found B.
    List of distinct elements:
    A
    B
    C
    D
    
    PL/SQL procedure successfully completed.
    
    SQL>   
    

    SY.

  • How to check what Qt application is run for the first time?

    How to check what Qt application is run for the first time? I need for the creation of trial version of my application. Any help is greatly appreciated

    Probably use file data and put an I_ran_at_least_one_time file and verify its existence. This file is not accessible to the user and is not changed even if you upgrade the application.

  • What happens to the values of the variables cRIO restarts?

    Hello!

    I am currently developing a software that runs on a cRIO as a start-up program. I encode a production counter to determine how many products passed the tests. A web server will be used sometimes check this counter...

    What happens to the value of the counter if cRIO power supply is turned off? The counter will reset to 0 when you restart? If so, how to avoid this behavior and restart with the last count?

    Hello

    Of course, what happens to your variables and what is happening in your program depends on... your program.

    If you do nothing your variables, they will have their value by default when the program starts.

    A way to change this behavior is for example save the value of variables in a text file and read these values at the beginning of the program.

    Hope this helps,

    Paulo

  • Online store 1.0 - what process set the value of the App "FULLNAME".

    Hello

    I'm just very curious to know what process set the value of the App "FULLNAME" ini the Apex application packaged - element 1.0 store online.

    In the Navigation bar, there is an entry named "If you're not & FULLNAME, click here | However I can't find how the app defined this value point of application in all process when login.


    no idea, I will be very appreciated.

    Thanks in advance.

    PPMonkey

    Check the authentication process after the current authentication scheme and the call to ols_getname.

    Scott

  • DV9000 how to check what type of memory, it will be compatible with?

    My laptop is a HP Pavilion dv9000.  That's what he said right next to the microphone.  I don't know how to check what kind of RAM would be compatible with it; If I should get a DDR or DDR2 RAM.

    Two ways to do it. Locate the serial number on bottom_Check for the number of full model as described in section 1 below.

  • My two front USB on the front slots do not work. How to decide what could be the problem? Thank you

    My two front USB slots don't work. How to decide what could be the problem? The machine is a HP Pavilion p6516f-b. Thank you

    try to uninstall the drivers (usb root hub) from Device Manager, restart the pc if you see little red or yellow circles can mean the mistake with the equipment. see if the keyboard works in ports

  • What type of connections I do for the acquisition of data PCI 619 card pins? What I have to give it to the ground and the CCV on the pins of the connector myself? What should be the value of the SCR I need to give to the PIN?

    I have a PCI 6519 data acquisition card. I want to install it on the PC and use it outputs to control a robot. I have problems with the connections to the terminal block which is attached to the cable.

    What type of connections I do for the acquisition of data PCI 619 card pins? What I have to give it to the ground and the CCV on the pins of the connector myself? What should be the value of the SCR I need to give to the PIN?


  • Canoe open attachment how to "link control panel Association the value of Set?

    Canoe open attachment how to "link control panel Association the value of Set?

    Hello

    something, you should also know, is that you need the program installed on your computer where the attachment file extension refers too

    and read this to set the file association

    How do I... Change file extension associations in Windows Vista?

    http://www.TechRepublic.com/article/How-do-i-change-file-extension-associations-in-Windows-Vista/6172036

  • How to check a program if the device is currently locked?

    How to check a program if the device is currently locked?

    Is there an API that can tell me who?

    I used DeviceInfo.isPasswordEnabled () but it doesn't seem to do the trick

    You can use the ApplicationManager.isSystemLocked () method to determine whether the BlackBerry is locked.

    Concerning

    Bika

  • Clear the check box according to the value of column DB

    Hello
    My requirement is to disable the check box according to the value of a column DB. Say for example my report displays the following. Check box, the name of the EMP, Dept. If the Department is the checkbox should be disabled and user should not be able to select the check box.
    Ask your help for a solution.
    Thank you
    Prasanth

    You must use the parameter p_attributes of the apex_item.checkbox API to make the boxes off (readonly do not work with the checkboxes)

    SELECT ..
    CASE WHEN  THEN APEX_ITEM.CHECKBOX(1,)
                         ELSE APEX_ITEM.CHECKBOX(1,,'disabled="disabled"')
              END 
      ..
    
  • How to check what Feature Pack has been installed on the PeopleSoft system.

    Hello

    How to tell what (FP1 or FP2) Feature Pack has been installed in the PS HCM 9.1 applications and FMS 9.1 or installed any Featue Pack?.

    Thank you.

    I don't think you can directly check the FP level. Which means that you can not simply query a table and determine the level of the public Service.

    You should check the level of patch/bug in ps_maintenance_log and compare with FP

  • How to determine if a control on a form has the value NULL

    I have a form with some fields that are not necessary. Once the user completes the form and click on send, I write back form fields values to a .db file. Problem, I'm running into is that, if a form textinput field is left empty, my insert statement fails because he says "hand Thread (Suspended: TypeError: Error #1009: cannot access a property or method of an object. null reference)" for the value of the blank form field (in the example below, 'phone' is not necessary).

    var sql:String =
    "INSERT INTO investigation." + "
    "(firstName,» +)"
    'lastName ', +.
    "email" +.
    "phone" +.
    'bio ' +.
    ") " +
    'VALUES ' +.
    "('" + firstnameValid.text+",)" "" "
    ' + lastnameValid.text +' "," '.
    ' + emailValid.text +' "," '.
    ' + phone.text +' "," '.
    + bio.text + "')";

    I tried:

    var phone_input:String;
    If (phone.data == "")
    {phone_input = ' ' ;}}
    on the other
    {phone_input = phone.text ;}

    But get the same error on the if (phone.data == "") line.

    Any suggestions? Thank you!


    I'm a little confused, then, I think. The error seems to imply that there is no 'phone' and so try to call the 'data' or 'text' on it throws the error you see. The only other suggestion I could make (without seeing the code) would be to try something more vague, such as:

    [code]
    var phone_input:String;
    If (! phone) {}
    phone_input = "";
    } else {}
    phone_input = phone.text;
    }
    [/ code]

    Or, if you prefer a little shorter code, something like the following should work:

    [code]
    var phone_input:String = (! phone)? "": phone.text;
    [/ code]

    Or, if you're the kind of person who likes using the try/catch blocks, why not do something like this for a spin:

    [code]
    var phone_input:String;
    try {}
    phone_input = phone.text;
    } catch (err: TypeError) {}
    phone_input = "";
    }
    [/ code]

    Hope that helps,

    Peter

  • Property of hierarchy DRM: EPMA. SharedDimension - how to get it filled with the values?

    We have a hierarchy of DRM, we want to push to a Dimension of sharing EPMA. In DRM, selecting the hierarchy and by changing the 'Dimension' shared property, the drop-down list box previously had values in there (some have been our shared Dimensions EPMA, but several us not the Shared Dimensions) but no longer has any selectable values. How do we get DRM to sort the list of the Shared Dimensions of our EPMA instance in the drop-down list of properties shared Dimension?

    Hello

    I could be wrong completely here, but that's what I discovered trying to look for EPMA. Property of SharedDimension.

    This property gives me drop-down list without having to do anything and the drop down menu is the list of groups available in hierarchy, but if I'm putting some values manually in the definition of ownership--> the list of values is not showing me all the values (list of groups of hierarchies and not the value created manually) in the drop-down list.

    I think that this property will not take a different list than list of group hierarchy as the Data Type defined for that property in the model of the APP is "Group of the hierarchy". Once again this property is used in the export "EPMA. E.M.P. architect Shared Library"to penetrate the hierarchies EPMA Shared Library.

    Then you can try to see if all values are entered in the definition of the property--> list and try to delete it OR to check if the required groups in the hierarchy are created in consequence.

    Let me know if it helps

    Thank you

    TFDC

  • How to check what extension program / crashes my iMac?

    I finally got my iMac fixed enough that it starts up fine, but I'm still having a problem with the iMac crashing after start-up.

    I mentioned that after you install a printer, it crashed when I hit print on demand, the iMac has crashed (Gardner up, couldn't move, have to force out)

    I think that is an extension has been altered (because I can start it up with extensions off the coast), or the printer get a glimpse when I hit print the first time trying to resume at startup. As I said, I can start it upward with extensions, then, how can I check what is the question?

    The other way I can get to not plant is in the Mac OS X startup 10.0.3, which I didn't know was already installed on the iMac, so it's certainly a problem with OS 9 standard getting started.

    Mac OS 9, you use the Manager of Extensions to turn system extensions, up to you to determine one (or more) that is causing the problem.  If you think that it is related to a printer driver, disable the one you recently installed.

    Extensions Manager is accessible from the menu bar, Apple menu-> Control Panel-> Manager of Extensions

Maybe you are looking for

  • How can I find Page Set up?

    Let me know if you have an application "Page Set Up"? I print what we call 'detail' of my MLS software provided by Innovia leaves. There is a month, the document headers and feet began to be printed on the pages. Innovia support said to go to file, P

  • Equium U400-124 - multimedia keys not working not

    I have Toshiba U400-124 seriesduring the last day a few my media keys (all 6 keys - mute, front, rear, pause) have stopped workign.The light continues to be litall that time and used to disappear even when the power is off. Could someone help me what

  • Online form needs a single byte charaters

    Hello I need to ask a question to a Japanese site that has an optional English translation. When I fill out the application and submit the form, the site rejects saying that the form must be completed with a single-byte characters. How to solve this

  • XControl start button

    Hello! I have a project where I needed a start button. Turned out it was pretty easy to make one in an xcontrol: I did a search for existing solutions but could not find, and since many ask for a start button I'll leave it here. To use, just drag and

  • Microsoft Streets & Trips 2005: the registry for this application settings were not correctly copied

    the registry setting for this application are not copied correctly run set up agin from the location you originlly Microsoft streets & trips2005