Difference between dbms_stats and COMPUTE STATISTICS

Hello everyone,
Can anyone tell me what is the difference between:
dbms_stats.gather_table_stats(
    ownname => 'me',
    tabname => 'ORGANISATIONS',
    estimate_percent => dbms_stats.auto_sample_size
  );and
ANALYZE TABLE ORGANISATIONS COMPUTE STATISTICS;I guess both method are valid to compute statistics, but when I run the first method, the num_rows in USER_TABLES is wrong.
But when I execute the second method, I get the correct num_rows.
So, what is exactly the difference and which one is best?
Thanks,

Hello,
It's not recommended to use ANALYZE statement to collect Optimizer statistics. So you should use DBMS_STATS.
Else, about the number of rows, as you used an Estimate method, you may have a number of row which is not accurate.
What is the result if you choose this:
estimate_percent => NULL
NB: Here, NULL means COMPUTE.
You may have more detail on the following link:
http://download.oracle.com/docs/cd/B19306_01/server.102/b14211/stats.htm#PFGRF003
This Note from My Oracle Support may give you many useful advices:
Recommendations for Gathering Optimizer Statistics on 10g [ID 605439.1]Hope this help.
Best regards,
Jean-Valentin

Similar Messages

  • Differences between iOS and computer views  of a course?

    So this year not all of my students will have iPads so anything in my course has to be accessable via a computer/itunes connection. I have created my course, completed the profile, written my outline and started adding "materials" and posts. The course has been published and shows up under our school.
    Any .pdf's I add to documents/materials or post as an assignment show up on both the ios devices and computers/itunes/itunesu.
    Any .jpgs I add to materials/images or post as an assignment show up on the ios device but show as "ios only" on the computer/itunes/itunes u view.
    When I  "Add Post" then add to the "Message" field, it is pushed to  the ios devices and shows up as a message, it shows up under the course on the ios devices but never shows up on the computer/itunes feed.
    Is there a list of what you can put into your course that will show up on both ios devices and computer/itunes connections?  Will .mp3's, .mp4's work? or will they do the same as .jpg's?  

    Hi,
    I just posted a response to another question regarding iTunes U on a PC or Mac. Although it doesn't completely answer your question, this part of the response from Course Manager Support does address it:
    If you were to make a publicly available Collection on iTunes U, students could download or view many course materials such as lectures and podcasts. But to maximize the full functionality of a course, such as subscribing, reading posts, and viewing assignments, the iTunes U app on an iOS device is currently a requirement.
    It may be worth it to ask support to see if there is a more comprehensive list of the differences. Please post what you find out here.
    Thanks,
    Ken

  • What is the difference between PixelPlate and Computer's Screen?

    I am confused by the coordinates of Pixelplate, Canvas and VWorld. What's the difference and relation among them? The projection of (0,0,0) to Pixelplate is not (0,0) but (-107,571), why??? How to transform the mouse point on Canvas to VWorld and get the projection of a point in VWorld to Canvas?
    I need your help!Thanks!

    I want to get projection of points in Virtual world to Canvas, How to do it? help!

  • Version differences between mobile and computer with forced upgrades of $10 plus $20 dollars?

    Currently running Numbers v2.3 on Laptop.  Recently purchased the latest Numbers mobile app for my iphone for $10 such that I can sync to iCloud both ways.  So, I created a spreadsheet on my computer and shared to iCloud.  I then edited the spreadsheet from the Numbers mobile app and saved that to iCloud.  When attempting to open the spreadsheet at a later time from my computer, Numbers will not allow me to open and instead forces me to upgrade the application to view it for an additional $20.
    I'm in disbelief that this is the case but cannot find anything else preventing me from opening the spreadsheet.  I'd like to have someone confirm that this is the policy that Apple has set forth?

    We are not Apple. We are users just like you. If you want to speak to Apple:
    Apple Store Customer Service at 1-800-676-2775 or visit online Help for more information.
    To contact product and tech support: Contacting Apple for support and service - this includes
    international calling numbers..
    For Mac App Store: Apple - Support - Mac App Store.
    For iTunes: Apple - Support - iTunes.
    Having checked I found that indeed you need to upgrade.

  • DIFFERENCE BETWEEN SUM AND COUNT IN SQL

    DIFFERENCE BETWEEN SUM AND COUNT IN SQL
    WHAT IS THE DIFFERENCE VERIFY IN DETAIL/

    21031980, I suggest you upgrade your computer sothat you can access google.
    lol.
    wtfpwnd.Google is also helpful for understanding the strange
    acronyms that show up around here lately (yes, I did
    find and understand this one). :-)Haha, sorry!
    It's the inner-gamer in me rearing its ugly head...
    :-)

  • Difference between scalable and failover cluster

    Difference between scalable and fail over cluster

    A scalable cluster is usually associated with HPC clusters but some might argue that Oracle RAC is this type of cluster. Where the workload can be divided up and sent to many compute nodes. Usually used for a vectored workload.
    A failover cluster is where a standby system or systems are available to take the workload when needed. Usually used for scalar workloads.

  • Office 2013 installed with KB2817430, windowsupdate still finds KB2850036. difference between KB2817430 and KB2850036

    Hi,
    I've made a silent Office 2013 installer with /admin and put SP1 MSP's in the updates folder.
    After deployment under installed updates it shows: Service Pack 1 for Microsoft Office 2013 (KB2817430) 32-Bit Edition
    But when I check for new updates, "ServicePack 1 for Microsoft Office 2013 (KB2850036) 32-Bit Edition" is ready for download and install.
    What is the difference between KB2817430 and KB2850036?
    It seems that I cannot download KB2850036 and also integrate it in the silent installation.
    Another question: Is the updates folder from Office only for servicepacks? or can I put also updates and patches MSP files in here? If yes then i've got a lot of files with the same name and different files sizes. For example After extracting SP1 I've got
    the file "proofsp-en-us.msp" which is 10MB and when extracting another patch also i've got a proof-en-us.msp and is 8MB.
    So which one need to go in the updates folder?
    Can anyone help me out?
    thanks

    Hi,
    As can be seen from below KB articles, KB2817430 only contains Service Pack 1 (SP1) for Office 2013, whereas KB2850036 also contains Service Pack 1 (SP1) updates for other Office 2013 related desktop products. For example, Microsoft Office 2013
    Language Pack, Project 2013, SharePoint Designer 2013, Office Proofing Tools 2013, etc.:
    https://support.microsoft.com/en-us/kb/2850036
    https://support.microsoft.com/en-us/kb/2817430
    So if you have any of these products on your computer, Windows Update might offer related updates to you.
    Regarding the Updates folder issue, you can put any Office software updates in it during the initial installation, such as service packs or hotfixes. A newer patch might make changes to a specific file, you can check the version number of that file, and keep
    the newer one in the folder.
    Here is the reference you will need:
    http://blogs.technet.com/b/office_resource_kit/archive/2011/05/05/using-the-updates-folder-to-deploy-software-updates-with-an-office-2010-installation.aspx
    (Note, it was created against Office 2010, however the steps should hold good for Office 2013)
    Regards,
    Ethan Hua
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
    programs.
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Difference between idoc and rfc

    what is the difference between idoc and rfc? when and where it is used? when there is idoc, why rfc vice versa?

    IDoc (for intermediate document) is a standard data structure for electronic data interchange (EDI) between application programs written for the popular SAP business system or between an SAP application and an external program. IDocs serve as the vehicle for data transfer in SAP's Application Link Enabling (ALE) system. 
    IDocs are used for asynchronous transactions:  Each IDoc generated exists as a self-contained text file that can then be transmitted to the requesting workstation without connecting to the central database. 
    Another SAP mechanism, the Business Application Programming Interface (BAPI) is used for synchronous transactions. 
    A large enterprise's networked computing environment is likely to connect many geographically distributed computers to the main database. These computers are likely to use different hardware and/or operating system platforms. An IDoc encapsulates data so that it can be exchanged between different systems without conversion from one format to another. 
    IDoc types define different categories of data, such as purchase orders or invoices, which may then be broken down into more specific categories called message types. Greater specificity means that an IDoc type is capable of storing only the data required for a particular transaction, which increases efficiency and decreases resource demands. 
    An IDoc can be generated at any point in a transaction process. For example, during a shipping transaction process, an IDoc may be generated that includes the data fields required to print a shipping manifest. After a user performs an SAP transaction, one or more IDocs are generated in the sending database and passed to the ALE communication layer. The communication
    layer performs a Remote Function Call (RFC), using the port definition and RFC destination specified by the customer model. 
    The IDoc is transmitted to the receiver, which may be an R/3, R/2, or some external system
    RFC
    Remote Function Calls (RFC) and data exchange through IDoc message documents. RFC makes direct and synchronous calls of a program in the remote system. If the caller is an external program it will call an RFC-enabled function in R/3 and if the calling program is the R/3 system it will call an RFC-function in another R/3-system or it will call a non-R/3 program through a gateway-proxy (usually rfcexec.exe). BAPIs are a subset of the RFC-enabled function modules, especially designed as Application Programming Interface (API) to the SAP business object, or in other words: are function modules officially released by SAP to be called from external programs.
    note:reward points if solution found helpfull.....
    regards
    chandrakanth.k

  • What are the differences between Oracle and other NoSQL database

    Hi all,
    I would like to know what the differences between Oracle and other NoSQL database are.
    When and why should we use Oracle?
    Is Oracle NoSQL database link with Big Data Appliance?
    Can we use map-reduce on a single personal computer? How should we install Oracle NoSQL database to use map reduce on a single personal computer?
    Do we also have eventual consistency with Oracle NoSQL database? Can we lose data if master node fails?
    Are transactions ACID with Oracle NoSQL database? How can we prove it?
    Thanks.

    893771 wrote:
    Hi all,
    I would like to know what the differences between Oracle and other NoSQL database are.
    When and why should we use Oracle?I suggest that you start here:
    http://www.oracle.com/technetwork/database/nosqldb/overview/index.html
    Is Oracle NoSQL database link with Big Data Appliance?Yes, Oracle NoSQL Database will be a component of the Big Data Appliance.
    Can we use map-reduce on a single personal computer? How should we install Oracle NoSQL database to use map reduce on a single personal computer?Yes, I believe you can run M/R on a single computer. Consult the various pieces of documentation available on the web. You may run Oracle NoSQL Database on the same computer that you are running M/R on, but it is likely that they will compete for CPU and IO resources and therefore performance may suffer.
    Do we also have eventual consistency with Oracle NoSQL database? Yes.
    Can we lose data if master node fails?If you run Oracle NoSQL Database with the default (recommended) durability settings, then if the master fails, a new one will be elected and data is not lost.
    Are transactions ACID with Oracle NoSQL database? How can we prove it?Yes, each operation is executed in an ACID transaction. The API has the concept of "multi" operations which allow the caller to perform multiple operations on sets of records with the same major key, but different minor keys. Those operations are also performed within a transaction.
    Charles Lamb

  • Difference between PC and mac?

    With the Intel-based macs, we can install Windows on a mac and run it as if it's running on a PC. That leads me to a question. What exactly is the difference between PC and mac? I know they are different on the OS, but that's just on a software level, which I don't think constitutes the difference. The hard drives are formatted differently on both machines, I know, but we can still use the same hard drive for both a PC or a mac, we just have to format it the right way. So what really is the main thing that constitutes the difference between a PC and a mac? Putting it this way, I can run PC on a mac, can I do it the other way round? Can I install a Mac OS 10.5 on a pure PC made by companies like hp or Dell (or I can easily make one on my own) with an Intel Core 2 Duo/Quad processor, and run the machine like it's a mac?

    Allan Eckert wrote:
    While some have managed to hack things so that they can install OS X on a PC, the results have been not very reliable. Generally OS X has many part that do not function properly.
    It doesn't work well because the Mac hardware itself is different from what is found in any other Intel-based computer. Even the CPU's & support chips are not off-the-shelf Intel parts but variants optimized for Macs that are not available to other computer makers or to DIY enthusiasts.
    This is probably why for a time in 2007 the 'fastest Windows notebook on earth' was a MacBook Pro, as tested by PC World, a fact touted for a while in Apple TV ads. (It lost that title to a more conventional Wintel laptop about a month later, but the new champ cost over $5000, had "almost nonexistent" battery life, & weighs over 11 pounds, which should give you some idea of the advantages an Intel-Apple collaboration has over the competition.)

  • Difference  between  scripts and  idocs

    In real time  why we are  using scripts and idocs?what is the difference between scripts and idocs?pls tell me  where we r using  scripts and  idocs?

    Hi,
    IDocs are simple ASCII data streams. When they are stored to a disk file, the IDocs are simple flat files with lines of text, where the lines are structured into data fields. The typical structured file has records, each record starting with a leading string that identifies the record type. Their specification is stored in the data dictionary.
    Electronic Interchange Document
    IDocs is the acronym for Interchange Document. This  indicates a set of (electronic) information which builds a logical entity. An IDoc is e.g. all the data of a single customer in your customer master data file, or the IDoc is all the data of a single invoice.
    Data Is transmitted in ASCII format, i.e. human readable form
    IDoc data is usually exchanged between systems and partners that are completely independent. Therefore, the data should be transmitted in a format that can easily be corrected by the computer operators. It is therefore mandatory to post the data in a human readable form.
    Nowadays, this means that data is coded in ASCII format, including numbers which are sent as a string of figures 0 to 9. Such data can easily be read with any text editor on any computer, be it a PC, Macintosh, UNIX System, S/390 or any internet browser.
    IDocs exchange messages
    The information which is exchanged by IDocs is called a message and the IDoc is the physical representation of such a message. The name “messages” for the information sent via IDocs is used in the same ways as other EDI standards. .
    Scrpits...
    If the user wants to print documents such as invoices, purchase order, all such documents are printed with the use of forms. SAP allows the user to define these forms by using layout sets. SAP script is the tool used to create the layout set.
    In order to print the document, the SAP system runs a program that collects the data for the document and feeds it into the layout set. This is called as Print Program.
    SAP Provides a standard layout set for every printable document and usually there is no need to create layout sets as such. User just modifies the existing layout sets as per requirement of client.
    Regards,
    Sam

  • Looking for new laptop what are the differences between pro and air? Besides size. Does the air preform like the pro?

    Looking for new laptop what are the differences between pro and air? Besides size. Does the air preform like the pro?

    The NEW macbook Pro and Air are EXTREMELY close in form factor
    The newest macbook Pro is essentially a larger macbook Air with Retina display and options for speed in increasing prices up to an independent graphics and quad core processor.
    both Air and new Pro now have PCIe SSD and permanent RAM.
    The Air is the lightweight portable form factor, fast to boot and shut down, but with longer battery life than any of the macbook pro in 13"
    Now the new macbook Pro and macbook Air are extremely close in form factor and nature.
    both have 802ac wifi
    both have permanent RAM, no superdrive
    both are slim profiles and SSD
    The only real differences now are (in the most expensive Pros) faster processors and quadcore processors and top end model autonomous graphics.
    ....and of course the retina display
    both are now "very good for travel"
    Other than features the form factor of the Air and Pro are VERY close now,....so now its merely a matter of features and price more than anything.
    You need an external HD regardless of what you get for backups etc.   Drop into an Apple store and handle both and make your choice based on features, such as Retina or non-retina, .... both at a distance now look like the same computer.
    The Pro weighs more, ....but nowhere near what it used to just a month ago on the older macbook Pros
    The NEW macbook Pro is a different creature entirely than the older macbook Pro, .....the new Pro is thicker than the Air, but id frankly call the NEWEST Pro a "macbook Air with Retina display" , or
    Maybe a “macbook Air PRO with Retina display” 
    Instead of Air VS Pro now,.....its really a smooth transition from Air to pro without comparing say, 2 different creatures, now its like contrasting a horse from a race horse.
    Either one in 8gig of RAM (preferably)... the 4gig upgrade costs very little,  the I7 you will notice only 15% faster on heavy applications over the I5, and NOTHING on most APPS.....I5 has longer battery life.
    As you see below, the non-Retina 13" AIR is 82% of the Macbook with Retina display in resolution
    there is no magical number of pixels per inch that automatically equates to Retina quality.
    http://www.cultofmac.com/168509/why-you-might-be-disappointed-by-the-resolution- of-those-new-retina-display-macs-feature/
    A huge internal SSD isnt a game changer for anything, you need an external HD anyway
    what you WONT READ on Apple.com etc. is that the larger SSD  are MUCH FASTER due to SSD density
    "The 512GB Samsung SSD found in our 13-inch model offers roughly a 400MB/s increase in write speeds over the 128GB SanDisk/Marvell SSD"
    http://blog.macsales.com/19008-performance-testing-not-all-2013-macbook-air-ssds -are-the-same
    Here is an excellent video comparison between the 11” I5 vs. I7 2013 Macbook Air.
    http://www.youtube.com/watch?v=oDqJ-on03z4
    http://www.anandtech.com/show/7113/2013-macbook-air-core-i5-4250u-vs-core-i7-465 0u/2
    I5 vs. I7 performance 13” Macbook Air 2013
    Boot performance
    11.7 I5 ……11.4 I7
      Cinebench 
    1.1 I5….1.41 I7
    IMovie Import and Opt.
    6.69 I5….5.35 I7
      IMovie Export 
    10.33 I5…8.20 I7
    Final Cut Pro X
    21.47 I5…17.71 I7
      Adobe Lightroom 3 Export 
    25.8 I5….31.8 I7
    Adobe Photoshop CS5 Performance
    27.3 I5…22.6 I7
    Reviews of the newest Retina 2013 Macbook Pro
    13”
    Digital Trends (13") - http://www.digitaltrends.com/laptop-...h-2013-review/
    LaptopMag (13") - http://www.laptopmag.com/reviews/lap...play-2013.aspx
    Engadget (13") - http://www.engadget.com/2013/10/29/m...-13-inch-2013/
    The Verge (13") - http://www.theverge.com/2013/10/30/5...ay-review-2013
    CNet (13") - http://www.cnet.com/laptops/apple-ma...-35831098.html
    15”
    The Verge (15") - http://www.theverge.com/2013/10/24/5...w-15-inch-2013
    LaptopMag (15") - http://www.laptopmag.com/reviews/lap...inch-2013.aspx
    TechCrunch (15") - http://techcrunch.com/2013/10/25/lat...ok-pro-review/
    CNet (15") - http://www.cnet.com/apple-macbook-pro-with-retina-2013/
    PC Mag (15") - http://www.pcmag.com/article2/0,2817,2426359,00.asp
    Arstechnica (15") - http://arstechnica.com/apple/2013/10...-pro-reviewed/
    Slashgear (15") - http://www.slashgear.com/macbook-pro...2013-26303163/

  • Difference between CRM and R/3

    can anyone clarify on these...
    What is difference between CRM and R/3
    Also about CRM sales order vs R/3 Sales order why we go crm in this case .

    First, it is expedient to state that both SAP Business One and SAP R/3 are built on the concept of client/server architecture. So how do they differ? Let's first understand the relationship in a client server setup. A client server is a computer system design standard in which the client machines requests and gets back information from a distribution machine called the server.
    SAP Business One as said earlier is based on client/server architecture, howbeit a "2 tier": strictly, clients and server. This technology is often referred to as a fat client. This is because all processing and business logic are carried out on the client.
    SAP R/3 is based on a three tier client/server technology. Typically, it is made up of three functionally distinct layers namely: the user interface, business logic and database.
    The user interface, which is otherwise known as the presentation server displays the interface for users' communication with the SAP system. It is often referred to as the SAP GUI. As a matter of fact, it is a program called sapgui.exe. The application server is where the business logic and data manipulation takes place. Data processing, SAP administration tasks and client request/feedback management are handled within the business layer. The database layer is synonymous to the database server and it typically acts as a data repository for tables and other database objects and structures.
    Ideally, an R/3 system is composed of one database server, one or more application servers and one or more presentation servers. SAP Business One on the other hand is composed of a database server and one or more presentation servers.

  • What's the difference between photos and albums

    I'm trying to figure out what the difference between photos and albums is on my ipad 'photos' programme.
    What I'm really trying to do is to delete photos from my phone so that I'm not going over 5GB on my icloud and I don't want to lose them, so I'm checking to see where they are stored on ipad.

    Hello julian
    As far as what iCloud backs up, it is backing up the photos and videos in the Camera Roll. If you want to ensure that your pictures are backed up, then follow the steps in the last article to import them to your computer. One thing to note is that you cannot import your albums that you create. If those photos are not in your camera roll, import the photos to your camera roll.
    iPhone, iPad, and iPod: Understanding capacity
    http://support.apple.com/kb/ht1867
    iCloud: iCloud storage and backup overview
    http://support.apple.com/kb/PH12519
    iOS: Importing personal photos and videos from iOS devices to your computer
    http://support.apple.com/kb/HT4083
    Regards,
    -Norm G.

  • Question about the difference between HDDs and SSDs

    Hi. I currently have a MacBook (Black one) that's overheating a lot for the past few months. I'm thinking about purchasing a MacBook Pro for school because it seems to be more stable. I have a question though. What is the difference between HDDs and SSDs? Which one is better? All I know is that with my MacBook and my iBook is that I had hard drive failures (iBook hard drive clicking, MacBook hard drive sounding loud and making my computer overheat). Are hard drive failures normal with Macs?
    Thank you

    astoldbywesley wrote:
    Is a 128GB Solid State Drive better than a 500GB Serial ATA Drive @ 5400 rpm or 500GB Serial ATA Drive @ 7200 rpm?
    Depends what you mean by "better." Faster? Yes. The 500 has 3x more storage capacity.
    Message was edited by: tjk

Maybe you are looking for

  • Embedding JM Studio with a java applet

    Hi all, anybody have a idea on how to embed JM Studio with a applet.and how it's controls are hiddened? i need help on this regard. Thanx, thirupathi

  • Issue With The New "Share" Feature In FCP 7

    I have had some success creating Blu-ray disks using the "Share" feature in FCP 7. When trying to create and burn another project, I went to Share, let go of the mouse and nothing happens. I've tried the other projects that I've done--and nothing hap

  • E BCC with Oracle 8i

    Hi I have configured WLPS to Oracle 8i I have also executed the scripts provided with distribution. But still when I access E-BCC and try to create new segments it gives "table or view does not exist" Please tell me what are the tables I have to add

  • Adobe Premiere Elements Gets Stuck On Start Up.

    Hey guys, I downloaded the trail verson of Adobe Premiere Elements today and I'm already getting problems. When I start it up, it freezes at "Loading CompilerVfw.prm". Can anyone help me fix this problem? I have Windows Vista.

  • Can't see attachments in emails, but have a paper clip

    Hi Got a problem that I detected now. Actually think it was after my last iphone update that this started to happen. I receive emails on my iphone via a Google account,  when I receive emails with attachments they dont appear but I know then email ha