What is the real difference between the following procedures?

What is the real difference between the following procedures in the DBMS_STATS package:
GATHER_SYSTEM_STATS
GATHER_DICTIONARY_STATS

GATHER_SYSTEM_STATS: System statistics to describe the characteristics of the system hardware, such as i/o and CPU performance and utilization of the query optimizer. When choosing an execution plan, the optimizer evaluates necessary IO and CPU resources for each request. Statistics system helps the query optimizer estimate the costs of IO and CPU, allowing the query optimizer to choose a best execution more accurately plan.
GATHER_DICTIONARY_STATS: Collect statistics for all items in the dictionary.

Tags: Database

Similar Questions

  • What do the following entries in the following configuration file?

    What do the following entries in the following configuration file?
    Thank you
    < include > coherence-pof - config.xml < / include >
    < allow-interfaces > true < / allow interfaces >
    true < subclasses allow > < / subclasses allow >
    <?xml version="1.0"?>
    <!DOCTYPE pof-config SYSTEM "pof-config.dtd">
    <pof-config>
    <user-type-list>
    <!-- coherence POF user types -->
    <include>coherence-pof-config.xml</include>
    <!-- com.tangosol.examples package -->
    ...
    <allow-interfaces>true</allow-interfaces>
    <allow-subclasses>true</allow-subclasses>
    </pof-config>

    -L' allow-interfaces to indicate if the class name of the type of user can specify types of Java interface in addition to the Java classes. Valid values are "true" or "false". Default value is false.

    -L' allow-sub-classes element indicates if the user-name of the class type can specify a type of Java class which is abstract, and whether subclasses of any type of user specified name of the class will be allowed during execution and automatically map to the super class specified for a serializer. Valid values are "true" or "false". Default value is false.

    -L' user-type-list element contains zero or more elements of type of consumer. Each type of user POF that is used must be included in the list-type-user. The item of list-type - the user can also contain zero or more include items. Each includes element is used to add items of type user defined in another pof-config file.

    The include element specifies the location of a pof-config file to load items of type user of. The value is a string of locator (URL or a valid path) that identifies the location of the target pof-config file.

    http://wiki.tangosol.com/display/COH35UG/user-type-list

    http://wiki.tangosol.com/display/COH35UG/POF-config

    Thank you

    Everett Williams
    Team coherence

  • What are the following wait events? Someone can it translate into the details?

    What are the following wait events? Someone can it translate into the details?
    PX Deq: Example table Q
    PX Deq Credit: send blkd
    PX Deq: Join AC
    PX Deq: Signal ACK
    PX Deq: Fragment of Msg
    direct path read
    PX qref latch
    SQL> select event,total_waits,time_waited,wait_class from v$system_event order by total_waits;
    EVENT                          TOTAL_WAITS TIME_WAITED WAIT_CLASS
    ------------------------------ ----------- ----------- --------------------
    db file scattered read             9333287     2471813 User I/O
    *PX Deq: Table Q Sample            11401065    43684227 Idle*
    *PX Deq Credit: send blkd          13798394    25448649 Other*
    SQL*Net message from client       20767011  1179217392 Idle
    SQL*Net message to client         20767019        2618 Network
    *PX Deq: Join ACK                  23735308     1022426 Idle*
    *PX Deq: Parse Reply               24882798     1278726 Idle*
    rdbms ipc message                 25223968  2147012652 Idle
    *PX Deq: Signal ACK                26615286    27873560 Other*
    cursor: mutex X                   26745289       52071 Concurrency
    *PX Deq: Msg Fragment              43670924    78219774 Idle*
    
    EVENT                          TOTAL_WAITS TIME_WAITED WAIT_CLASS
    ------------------------------ ----------- ----------- --------------------
    PX Idle Wait                      68927042  4364594403 Idle
    PX Deq: Execute Reply             88498025     4326377 Idle
    PX Deq: Execution Msg            823922687   792964190 Idle
    *direct path read                1274423531     7242769 User I/O*
    *PX qref latch                   2.3745E+11    49638018 Other*
    
    122 rows selected.

    http://download.Oracle.com/docs/CD/B19306_01/server.102/b14237/waitevents.htm#i968375

  • I want to upgrade to a newer Windows operating system Windows Vista Home Pro 64-bit. What is the recommended procedure?

    * Original title: upgrade

    I want to upgrade to a newer Windows operating system Windows Vista Home Pro 64-bit. What is the recommended procedure? I see that Windows 7 or 8, a free update to Windows 10 is offered. Should I buy 7 or 8 then you spend 10 or just buy 10?

    Thank you

    Jim

    Hello

    Depends on hardware configuration required on later operating systems, and also find out if the manufacturer of the laptop computer is supported and provides drivers for operating systems later as to whether it is possible or feasible to upgrade or not.

    There is no free upgrade Vista to 7, 8.1, or 10.

    Follow these steps before you buy Windows 7.

    Microsoft sells more than 7; Try Amazon.com.

    Go to your computer / computer laptop manufacturer Web site and see if Windows 7 drivers are available for your make and model computer / laptop.

    If this is not available, Windows 7 will not properly work for you.

    Run the "Windows 7 Upgrade Advisor.

    http://www.Microsoft.com/en-US/Download/details.aspx?ID=20

    Check if your specifications are compatible for Windows 7:

    "Windows 7 system requirements"

    http://Windows.Microsoft.com/en-us/Windows7/products/system-requirements

    "Windows 7 Compatibility Center" for software and hardware:

    http://www.Microsoft.com/Windows/compatibility/Windows-7/en-us/default.aspx

    Windows 7 upgrade paths:

    http://TechNet.Microsoft.com/en-us/library/dd772579 (v = ws.10) .aspx

    «Installation and reinstallation of Windows 7»

    http://Windows.Microsoft.com/en-us/Windows7/installing-and-reinstalling-Windows-7

    @@@@@@@@@@@@@@@@@@@@@@@@

    Follow these steps before buy you and upgrade (new installation) of Windows 8.1.

    Microsoft sells more than 8/8.1.

    Try Amazon.com, etc.

    Check if the manufacturer of your computer/laptop has Windows 8.1 drivers available for your model.

    If this is not available, Windows 8.1 not install and work properly for you.

    There is a lot of information in this first link from Microsoft:

    Download and run the Windows Upgrade Assistant 8.1 of to see if your machine is compatible Windows 8.1 and read the update for Windows 8.1: FAQ here

    "Update to Windows 8.1: FAQ".

    http://Windows.Microsoft.com/en-us/Windows-8/upgrade-to-Windows-8

    "8.1 for Windows system requirements.

    http://Windows.Microsoft.com/en-us/Windows-8/system-requirements

    @@@@@@@@@@@@@@@@@@@@@@@

    How to buy Windows 10:

    http://www.microsoftstore.com/store/msusa/en_US/cat/Windows/CategoryID.70036700

    But first make sure that you have the correct configuration and your computer manufacturer provides the right drivers for 10.

    https://www.Microsoft.com/en-us/Windows/Windows-10-specifications#sysreqs

    " System requirements Windows 10"

    https://www.Thurrott.com/Windows/Windows-10/3884/Windows-10-system-requirements

    Microsoft deploys Windows 10 available as free upgrade to Windows 7 features, Windows and Windows Phone 8.1 8.1 qualified. It will be available from July 29, 2015

    "FAQ Windows 10.

    http://www.Microsoft.com/en-us/Windows/Windows-10-FAQ

    See you soon.

  • What is the correct procedure to abandon diskgroup asm is rac?

    Hello

    I would like to table a diskgroup in asm to the CCR? What is the correct procedure?
    1 should I disassemble the diskgroup firstly in 2 node?
    2 alter diskgroup xxx drop command to run in the 2 nodes or just 1 node?
    3. after droping command, is there any other procedures to be done?

    No matter what doc to follow?

    Thank you

    Andrew

    Hi André,.

    860523 wrote:
    Thank you very much. Oracle 10.2, if I unmount the diskgroup, I want something offline, or what is the procedure before changing disgroup xxx disassemble?

    You MUST remove (using DBCA) or move (using RMAN) all databases stored on the diskgroup (if exists) before giving up DISKGROUP.
    (1) check if there are any database using the DISKGROUP.
    The query above must return no rows.

    SQL>  SELECT D.NAME,C.INSTANCE_NAME,C.DB_NAME,C.STATUS
         FROM GV$ASM_DISKGROUP D , GV$ASM_CLIENT C
         WHERE D.GROUP_NUMBER=C.GROUP_NUMBER
         AND D.NAME = '';  
    
    no rows selected
    

    If the above query returns rows you remove and stop must all first trial or move the database to an another DISKGROUP.

    (2) remove the Diskgroup all instances of ASM, except one.

    ALTER DISKGROUP  DISMOUNT;
    

    (3) decline diskgroup of the ASM instance, that the diskgroup is still mounted

    DROP DISKGROUP ; -- If no files on DISKGROUP
    DROP DISKGROUP  INCLUDING CONTENTS; - If exits files on DISKGROUP
    

    Just it.

    Kind regards
    Levi Pereira

  • What is the normal procedure for windows live support call and offer to fix errors on my computer?

    What is the normal procedure for "windows live support" to call and offer to fix errors on my computer?

    What is the normal procedure for "windows live support" to call and offer to fix errors on my computer?

    N° !!!
    Scam!
    Ignore and hang up. For the benefits of others looking for answers, please mark as answer suggestion if it solves your problem.

  • Update my application. What is the proper procedure for updating an app/folio?

    I designed a folio in Indesign CS6 and created a folio application in adobe dps and downloaded successfully on the app store. Now, I want to update my application. What is the proper procedure for updating an app/folio?

    If it's a simple editing application, you will have to recreate the whole thing and

    submit an Apple update for approval.

  • What is the correct procedure to take a host of a hav?

    Sometimes need to take a host far a hav, what is the correct procedure for it?

    Thank you!

    George

    Disconnect the host in your cluster, and then remove host.  Or evacuate all customers outside the host, put in maintenance mode, and then remove the cluster

  • What is the real difference between the card and the ORDER of the member functions?

    Hi all

    According to the documentation http://docs.oracle.com/cd/B28359_01/appdev.111/b28371/adobjbas.htm#CHDFGJFB

    Control methods make comparisons of direct one-to-one object. Unlike the methods of the card, they cannot determine the agenda of a number of objects. They simply tell you that the current object is equal or less than the object that it is being compared, based on the criterion used.

    A method of control is a function of an object ( SELF ), with a declared parameter that is an object of the same type. The method should return a negative number, zero, or a positive number. This value means that the object (the implied no said SELF parameter) is less than, equal, or greater than the declared parameter object.

    I still can't find all the differences between them. Because the documentation said that makle methods to ORDER one to an object comparisons. However, you can also do it with the map member function the (as illustrated below). Can someone clarify this please?

    create rectangular type is object
    (
    number of width,
    number of height,
    Order member function camparison (r rectangular) return number
    );

    create or replace type rectangular body is
    order member function camparison (r rectangular)
    Return number
    is
    Start
    If (self.width + self.height) > (r.width and r.height) then
    Return 1;
    elsif (self.width + self.height) < (r.width and r.height) then
    Returns - 1;
    on the other
    return 0;
    end if;
    end;
    end;

    OR

    create or replace the rectangular type is object
    (
    number of width,
    number of height,
    card camparison return number of member function
    );

    create or replace type rectangular body is
    map member function camparison
    Return number


    is
    Start
    Return self.width + self.height;
    end;
    end;

    For the two I use the following block of code right? So, what is the difference?

    Set serveroutput on;
    declare
    rectangular rect1;
    rectangular rect2;
    Start

    rect1: rectangular = (3, 5);
    rect2: rectangular = (4, 8);

    If rect1 > rect2 then
    dbms_output.put_line ('rect1 Büyük');
    on the other
    dbms_output.put_line ('Büyük rect2');
    end if;

    end;

    My 2nd question is: in the function member order what is the parameter reference? When we compared how it corresponds to?

    camparison of Member (rectangular r) function order

    When comparing the two objects is the function parameter is the object of the comparison sign right?

    If rect1 > rect2 then

    Thanks in advance

    Order compare 2 objects.

    Card returns a value that can be used to control any number of objects.

  • What is the correct procedure of DMBS_XPLAN for the query execution plan

    Hello.

    We are on Oracle 11.2.0.3 on Linux. I am dev. DBA and we have about 80 developers Java development team. They want to question the execution plan of queries to resolve the sqls. Generally, they use the GUI tools like the toad to see execution plan. I always use the procedure for the following query execution plan:

    
    

    Select * from
    Table (dbms_xplan.display_cursor (null, null, 'allstats + cost'));

    I should suggest that they use this too rather than rely on tools like the toad - because they can show estimated plan and not the actual plan. And to provide a sql, it is best to use the real plan to work with. Do not take account of 'allstats + cost' part in the command above, but my point is: should I ask them of still rely on sqlplus and not the GUI tools and use the command display_cursor package DBMS_XPLAN?

    I will be grateful for suggestions.

    OrauserN

    You must use the DBMS_XPLAN package and functionality.

    The tool used to run the package doesn't matter. A raw request to DISPLAY_CURSOR will run the same server code in any tool including Toad.

    If you rely on other GUI features (for example a "explain plan" button or similar) then you know what this feature of actuall application running under-the-covers.

    My suggestion would be to assess and consider using Oracle free sql developer version 4 because it is not only FREE but also uses the DBMS_XPLAN correctly.

    http://www.Oracle.com/technetwork/developer-tools/SQL-Developer/downloads/index.html?ssSourceSiteId=ocomen

  • Can someone help me understand the following procedure:

    Start
    SYS. () DBMS_LOGMNR_D.BUILD
    Options = > sys.dbms_logmnr_d.store_in_redo_logs);
    end;
    /

    It would be awesome if someone can explain to me what oracle does internally when we run the above procedure. I understand that I wrote the dictionary in the redo logs. I am trying to understand:

    (1) where did the oracle read (including system tables)?
    (2) applications in house turns to write the dictionary for redo logs.

    Kind regards
    Maton

    manjunath2684 wrote:
    Start
    SYS. () DBMS_LOGMNR_D.BUILD
    options-online sys.dbms_logmnr_d.store_in_redo_logs);
    end;
    /

    It would be awesome if someone can explain to me what oracle does internally when we run the above procedure. I understand that I wrote the dictionary in the redo logs. I am trying to understand:

    (1) where did the oracle read (including system tables)?
    (2) applications in house turns to write the dictionary for redo logs.

    Kind regards
    Maton

    consider SQL_TRACE activation when you call this procedure to capture SQL emitted

  • Difference between function and procedure

    Hi all

    My doubt is that the procedure can be used to return multiple values with OUT parameter and function can also be used to do the same if necessary to return multiple values with OUT parameter.

    So with this point of view, which is maybe the difference between these types of the two objects. and obviously if necessary to choose one of these two, we'll go to procedure, why not function?

    What is perhaps the reason for this?

    Thanks in advance.

    Kind regards
    Vipin Kumar Rai

    Nitesh. wrote:
    The main difference I between stored procedure and function of stored procedures compiled only once and can be called again and again without be compiled every time, this improves performance and saves time, of other functions to compile every time as is called...

    Would you care to show what you mean. To the best of my knowledge this last statement is not correct.

    The main difference for procedures and functions it program design.

    A procedure should be used for something that is running a process, where nothing is required to be returned.
    A function should be used when a value is required to be returned.

    Yes, the procedures can have OUT parameters (as can functions) but that is generally considered bad practice. If you have values be returned, you must use a function with an appropriate return type (structured type if necessary) so that all the requirements of data is returned via the return value. IMO the only acceptable practice to use variables is when you use a variable IN OUT for something in a procedure for this element which is manipulated by the procedure, so for example you'd 'ManipulateData (myData); as a procedure rather than "myData: = ManipulateData (myData);" in function, where the latter would be using resources of additional memory (copies of data) in most cases.

  • Differences between process and procedures

    Hi all
    can someone tell me what are the differences between the processes and procedures? Is there a difference between a process with only automatic spots and a procedure?

    If your process dynamically invokes a procedure and your process and procedure called dynamically are in the same project, it will work when it is deployed to the Studio and business.

    However, if your process tries to dynamically call a procedure from another project, you're going to collide in a bug (the null pointer you get). Support may disagree, but on the company dynamically invoke a procedure of a process in a single project via an interface procedure must initiate a procedure in another project successfully if both are deployed on the same engine of the company.

    Suggest that you report it to the Support. If you need a simple project that duplicates the problem, here is a zip file which has two projects. A project is a process that dynamically calls a procedure through an interface. The invoked procedure is in the other project in the zip file.

    http://www.4shared.com/file/182416607/9e9763a4/InvokeProcedureInDifferentProj.html

    This is a project that works and that invokes a procedure successfully when the process and the invoked procedure are both in the same project.

    http://www.4shared.com/file/182420920/5b52f6b4/ProcedureBeingInvokedinSamePro.html

    Dan

  • What triggers the follow-up of health?

    I'm having a hard time to find out what is triggering the alert.

    vcenter alert.jpg

    First I thought that it was because one of my esxi has not shown his material status but I have corrected this error and still I get the alert.

    does anyone have an idea what might trigger the alert

    I found this in the log:

    Event ID 2527 - Configuration of the Directory Server Service account is not in a position

    Pourriez - me what the alert?

    I got the error because I installed a new vcenter but had no installed converter it gave an error

    When I installed the component issue has been resolved

    Thanks for you comments

  • What is the correct procedure to upgrade Windows Vista 32 BIT to Windows 7 home one '?

    I'm running Windows Vista Home premium 32-BIT.

    I bought the upgrade disc to install Windows 7 Edition home premium.

    Where can I find a procedure step by step to install the upgrade?

    Hello

    This is a very good guide for what you want to do:

    Make sure you go from Vista 32 bit to Windows 7 32 bit to be able to do an upgrade.

    «How To Upgrade from Vista to Windows 7 Edition Home Premium»

    http://www.howtogeek.com/HOWTO/6892/how-to-perform-an-upgrade-from-Vista-to-Windows-7/

    Make sure that you first run the Windows 7 Upgrade Advisor:

    Run the "Windows 7 Upgrade Advisor.

    http://www.Microsoft.com/en-US/Download/details.aspx?ID=20

    Check if your specifications are compatible for Windows 7:

    "Windows 7 system requirements"

    http://Windows.Microsoft.com/en-us/Windows7/products/system-requirements

    "Windows 7 Compatibility Center" for software and hardware:

    http://www.Microsoft.com/Windows/compatibility/Windows-7/en-us/default.aspx

    See you soon.

    Edit:

    Go to your computer / computer laptop manufacturer Web site and see if Windows 7 drivers are available for your make and model computer / laptop.

    If this is not available, Windows 7 will not properly work for you.

Maybe you are looking for