Why the statistics do not reflect the actual schema data?

Why the statistics do not reflect the actual schema data?
SQL> select count(1) from user_segments;

  COUNT(1)
----------
        61

SQL> drop table employee1;

Table dropped.

SQL> truncate table employee2;

Table truncated.
SQL> exec dbms_stats.gather_schema_stats('SPT',cascade=>TRUE);

PL/SQL procedure successfully completed.


SQL> select count(1) from user_segments;

  COUNT(1)
----------
        61
Published by: qkc on August 16, 2009 08:39

Assuming you're from 10 g, have you considered recyclebin?

TEST@db102 > select count(1) from user_segments;

  COUNT(1)
----------
       161

TEST@db102 > drop table test;

Table dropped.

TEST@db102 > select count(1) from user_segments;

  COUNT(1)
----------
       161

TEST@db102 > purge recyclebin;

Recyclebin purged.

TEST@db102 > select count(1) from user_segments;

  COUNT(1)
----------
       160

TEST@db102 >

Tags: Database

Similar Questions

  • Why the store of data/LUN locked automatically

    Some of the virtual machine are not accessible, and some are very slow, after investigating everything that it's a matter of SAN data store is locked so LUN Reset to cancel the lock to a SAN / LUN

    Problem is resolved after rest LUN.

    Now, I want to know why the locked automatically store data/LUN

    You can check if a host is isolated recently network - HA sometimes continually tries poweron VMs elsewhere and locks prevents it - other causes is a year very busy Bay SAN not finding time CPU to release locks... vmkernel hosts should help... Also look for VC events for the isolation of the host

  • I edited an online form that is already on a live Web page. Why my changes are not reflected in the live page?

    Work in Adobe Business Catalyst. I added a choice to a created previously (drop-down list) field on an online form. This form is already active on a page. Why isn't my new choice reflected on the live page?

    Inline shape in HTML format in the/template/layout rather than a module probably so any changes made on the web form, an administrator be reflected.

    Different situations may occur depending on the implementation of this form, you will need to look at the issue. Could be a module and you are not updated to the more custom option code disks, it may be liquid and as an inclusion... Can be a few things, probably the first good.

  • Why the message time / date uses the original sent time?

    Hello
    I noticed that emails that are delayed come using the time sent initially, rather than when they reach my server. It is unusual, because it may end with a 'new' message finish well down the list of the other messages sent more recently.
    What's the intended operation?

    Note the following header: This shows up in my Inbox based on time 02:57 was created, even if he won't even let the original that much server later.

    The - Wed Mar 25 21:59:03 2014
    X key account: Account2
    X-UIDL: UID86003-1263191493
    X-Mozilla-Status: 0001
    X-Mozilla-Status2: 00000000
    X-Mozilla-keys:
    Return-path: < [email protected] >
    Envelope-to: [email address removed]
    Delivery date: Tuesday, March 25, 2014 15:11:16-0700
    Received: og1.ijnet.net ([216.246.89.40]: 47913)
    by napkin.mysitehosted.com with esmtp (Exim 4.82)
    (envelope - from < [email protected] >)
    ID 1WSZYx - 00074-n. b.
    [removed email address]; Tuesday, March 25, 2014 15:11:15-0700
    X-envelope-From: [email protected]
    X-envelope-To: [email address removed]
    Received: From hopkins.tea.state.tx.us (198.214.98.149) by og1.ijnet.net (MAILFOUNDRY) id VQwf2rRqEeOelwAw [removed email address]; Tuesday, March 25, 2014 22:10:59-0000 (GMT)
    Received: from ([198.214.97.182])
    by hopkins.tea.state.tx.us with ESMTP id 5503449.345156795;
    Tuesday, March 25, 2014 16:48:03-0500
    Received: Miller (miller.tea.state.tx.us [198.214.97.182])
    by miller.tea.state.tx.us (AIX5.2/8.11.6p2/8.11.0) with ESMTP id s2PLgCe45034;
    Tuesday, March 25, 2014 16:42:12-0500
    Received: by LIST. TETN.NET (LISTSERV-TCP/IP 14.5 release) with the id of coil 204073

             for [email address removed]; Tue, 25 Mar 2014 16:32:55 -0500
    

    Approved-By: [removed email address]
    Received: from hopkins.tea.state.tx.us (hopkins.tea.state.tx.us

             [198.214.98.149]) by miller.tea.state.tx.us (AIX5.2/8.11.6p2/8.11.0)
             with ESMTP id s2PJvne69120 for <[email address removed]>; Tue, 25 Mar 2014
             14:57:49 -0500
    

    Received: from ([198.214.97.51]) by hopkins.tea.state.tx.us with ESMTP id

             5503449.345151870; Tue, 25 Mar 2014 14:57:47 -0500
    

    Of workaround applies only to an IMAP account, where only the headers are downloaded. Quite rare really that is not the default.

    The date of receipt is available in the pane always, just right clicking on the headers and select it from the list is all that is needed. Sort by the order received however denies all dates and maintains strict order of the received mail. However, all these things are on the view > menu sort order, including consolidation of beloved today yesterday last week so the sort of Outlook users.

    Curiously, I find everything on Outlook without exchange awkward and somewhat limited, but it's an exchange client really not a customer of general e-mail in my opinion.

  • Why the App folder Data has it 97GB?

    My brand new computer (running Windows 7 Professional) shows that I've used 272 GB.  My user name is 192 GB.  My music takes over 95GB, but I didn't know what else could be chewing a lot of space.  When I got to the folders within my user name, I see an App Data folder that says he has 97 GB. Are there really 97GB, or is it pretty much a mirror of my music and other files that I have?  If not, where are the 95 GB which I can't explain?  I have looked in all other folders under my user name, but see no other who have same 1 GB in them.  I guess it must be a duplication of my music somewhere, but I can't.  I would really like that disk space.

    Yes, I had.  It is filled with folders of files for Microsoft, Google, HP and others.  I put the cursor on each one and do not see anything with any size or related to music.  I'm pretty good at working with the software, but when it comes to technical issues like that, I'm lost.  Any suggestions on what to look for?

    The Appdata folder should have three subfolders. Local, weak and roaming.
    One of those MUST have a huge amount of data.
    Right-click on each file and make the properties in order to limit, and then open the offending file and do the same until you identifiede hace occupying all the space... If you find my answer helpful, please click the button "Vote as helpful"! Thank you! My Blog

  • I've updated to the latest Firefox - since then I get loads of notifications "expired" security certificate, which, on the audit certificates invariably indicate the actual expiration date later this year. Seems to be a built-in problem!

    This happened also with your support site!

    Check the date / time as established in Windows.

  • How can I create an another user to access the HR schema data

    I am new to Oracle and just downloaded the: 10 x e. I have connected as human resources and was able to modify data in tables.
    I created another user, then say ABC, when connected as SYS. But then I could not access the tables and the data even in human resources.

    I learned that every user has its own schema, but how do I create an another user to access the same tables, and the data I see in the Oracle DB?

    Log in as a user of the system (or sys as sysdba) and:
    create user identified by ;
    Grant connect, create session ;

    To see objects to a different schema from the database user must then obtain the privilege:

    Grant select on hr. à ;

  • Why the size of the system table space is limited to 16383 MB

    Hello
    I use 10.2.0.3.0 on linux 64-bit

    I want to know why the sysaux tablespace data file size is limited to 16383 MB as stated in the Enterprose management, I use linux 64-bit

    SYSAUX tablespace

    Size of the file (KB) 716800
    Yes AutoExtend
    Increment 10240 KB
    16383MB maximum file size
    16383MB maximum file size

    A data file can have up to 4 MB blocks (http://download.oracle.com/docs/cd/B19306_01/server.102/b14237/limits002.htm#i287915), do the math:

    4194304 * 4096 = 17179869184 = 16384 GB (4096 = database block size)

    HTH

    Enrique

  • queues the IMAQ image data type

    I'm trying to run multiple queues in the same loop entering IMAQdx images from several cameras, and then save to AVI. After reading the site nor a little, I discovered that the reason why I get only the last image of each bucket, repeated on all frames in the AVI file, is that the IMAQ image data type stores only the memory location for the image, not the image itself data. However, I don't see a better solution for the queues of the actual image data. What conversion could be the fastest / are in charge of the processor the lowest?

    For each image you must initial Image space.

    You can use something like this:

    You need to add initialization camera (s) and AVI. You must add the multicamera feature. Stop recording is missing.

    !!! Don't forget to throw lines and Images!

  • Get the closest previous date you

    First, example table and data:
    drop table CUSTOMER_INFO_TEST;

    CREATE TABLE CUSTOMER_INFO_TEST
    (
    ACCOUNT_NUM VARCHAR2 (40 BYTE),
    PHONE VARCHAR2 (100 BYTE),
    E-MAIL VARCHAR2 (300 BYTE),
    DATE OF START_DT,
    DATE OF CHANGE_DT,
    END_DT DATE
    );



    INSERT INTO CUSTOMER_INFO_TEST VALUES ('BOB', 555-1234', ", TO_DATE ('2011-01-01', 'YYYY-MM-DD'), TO_DATE ('2011-01-05', 'YYYY-MM-DD'), TO_DATE ('2011-01-10', 'YYYY-MM-DD'));
    INSERT INTO CUSTOMER_INFO_TEST VALUES ('BOB', 555-1234', ", TO_DATE ('2011-01-01', 'YYYY-MM-DD'), TO_DATE ('2011-01-11', 'YYYY-MM-DD'), NULL);
    INSERT INTO CUSTOMER_INFO_TEST VALUES ('BOB', 555-1234', ", TO_DATE ('2011-01-01', 'YYYY-MM-DD'), TO_DATE ('2011-01-15', 'YYYY-MM-DD'), NULL);
    INSERT INTO CUSTOMER_INFO_TEST VALUES ('JACK', 555-4321', ", TO_DATE ('2011-01-01', 'YYYY-MM-DD'), TO_DATE ('2011-01-05', 'YYYY-MM-DD'), NULL);
    INSERT INTO CUSTOMER_INFO_TEST VALUES ('JACK', 555-4321', ", TO_DATE ('2011-01-01', 'YYYY-MM-DD'), TO_DATE ('2011-01-09', 'YYYY-MM-DD'), NULL);

    commit;

    I want to query this table with a date range, change_dt, always to give me the lines in the range AND the previous row.
    select * from CUSTOMER_INFO_TEST where change_dt >= TO_DATE('2011-01-05', 'YYYY-MM-DD') and change_dt <= TO_DATE('2011-01-10', 'YYYY-MM-DD')
    
    BOB     555-1234          2011-01-01     2011-01-05     2011-01-10
    JACK     555-4321          2011-01-01     2011-01-05     
    JACK     555-4321          2011-01-01     2011-01-09     
    The foregoing will give me the correct result, a BOB and two jacks, since also while JACK and BOB changes the 5 January.

    But I want the same result, when you select it with 6 Jan as start date,


    This is how I can make it explicit for BOB
    select * from CUSTOMER_INFO_TEST where 
    change_dt >= (select max(change_dt ) from CUSTOMER_INFO_TEST where change_dt <= to_date('2011-01-06','YYYY-MM-DD') and ACCOUNT_NUM = 'BOB')
    and change_dt <= to_date('2011-01-06','YYYY-MM-DD')
    and ACCOUNT_NUM = 'BOB'
    
    BOB     555-1234          2011-01-01     2011-01-05     2011-01-10
    Is this possible without a sub request, and in a statement across the table without specifying the actual table data, as I did with "BOB" in the above statement?

    Edited by: Rydman January 14, 2013 14:39

    Hello

    I think I understand now: you have 2 parameters, range_start_dt and range_end_dt, and you want to find the rows where the change_dt is between these parameters, PLUS you want the last row for each account_number coming before the interval given, if the same customer has lines in the range.

    Here's a way to do it:

    VARIABLE  range_start_dt     VARCHAR2 (10)
    VARIABLE  range_end_dt          VARCHAR2 (10)
    EXEC      :range_start_dt := '2011-01-06';
    EXEC      :range_end_dt   := '2011-01-10';
    
    WITH     got_r_num     AS
    (
         SELECT     account_num, phone, email, start_dt, change_dt, end_dt
         ,     RANK ()       OVER ( PARTITION BY  account_num
                                   ,                    SIGN (start_dt - TO_DATE ( :range_start_dt
                                                                 , 'YYYY-MM-DD'
                                                     )
                                       )
                             ORDER BY        start_dt   DESC
                           )         AS r_num
         FROM     customer_info_test
         WHERE     change_dt     < TO_DATE ( :range_end_dt
                                 , 'YYYY-MM-DD'
                               ) + 1   -- See note below
    )
    SELECT       account_num, phone, email, start_dt, change_dt, end_dt
    FROM       got_r_num
    WHERE       change_dt     >= TO_DATE ( :range_start_dt
                                , 'YYYY-MM-DD'
                           )
    OR       r_num          = 1
    ;
    

    Range_end_dt indicates just the calendar day of the end of the range; in other words: range_end_dt = ' 2011-01-10' means anything at any time, January 10, 2011, until 23:59:59, must be included. Instead of saying you want everything up to and including 23:59:59 on January 10, I find it easier just to say you want everything up to but not including the day after January 10.

    If all change_dts for a given account_num after range_end_dt, then no output for this account_num will be generated.

  • Difference between the true Date of the Hijra with date Hijri Oracle

    Hi all

    I'd appreciate if someone please let me the solution for this problem. In my application, I displays the Hijri Date using the NLS parameter. but the question that "I'm dealing with a deference between the date of the real Hijra with the date of the Hijra oracle."


    Assume that the actual Hijri date 18-SEP-2012 was 02/11/1433 in hijri but in oracle was 03/11/1433

    When I run the following query it shows me "1433/11/03", but the actual date of the Hijra is "" 1433/11/02.

    Select to_char (to_date ('20120918', 'YYYYMMDD'), ' DD/MM/YYYY', ' NLS_calendar = "' |') Hegira ARABIC ') FROM DUAL;


    IFTIKHAR

    Check

    FAQ on the calendar of the Hijra (Hijri) [ID 121061.1] Arabic
    and
    Conversion algorithm to Date in the Gregorian calendar until then Arab (Hijra) [ID 130551.1]

    Support of Oracle.

    If you have a file called lxecal.nlt file

    for Oracle 8 to $9i ORACLE_HOME/ocommon/sln
    for Oracle 10 g and more $ORACLE_HOME/nls

    so maybe that's the difference you see originally.

    Kind regards
    Bob

  • Why the thumbnails do not reflect the changes that I make to pages?

    I'm working on a pdf file in Acrobat DC.

    I'm working on a page with all the hidden layers.

    If the thumbnail is blank

    When I show a layer it appears on the page.

    However, the thumbnail does not change.

    Why the thumbnails do not reflect the changes that I make to pages?

    Hi Jules,.

    The behavior is the same in Acrobat 11 as well. The thumbnails do not get updated until you close the document and reopen it.

    Kind regards

    Rave

  • [ADF, JDev12.1.3] Attribute of EO: uncheck the required box does not reflect on VO (here, it is necessary to change the prop in the bat VO XML). Why?

    Hallo,

    I noticed that when in an OE I uncheck the required box for a field...

    ... do not reflect the changes on the ground of the VO...

    As in the definitions of the VO, the check box is cleared, the only way to make the non-mandatory field is manually change the scope of the definition XML VO...

    I would like if this approach is normal.

    Thank you

    Federico

    I can reproduce this behavior. Fortunately, it is only a display bug. When you run the application the object entity attribute cancels the incorrectly set required field of the VO.

    A user may be confused by this setting, even if it is only a Visual problem, I will file a bug on the ADFEMG issue tracker. WARNING: this incident handler has no attached SLA. If you need a patch for this that you must file a SR with support.oracle.com (paid the necessary support contract).

    Timo

  • Why the iPhone 6plus will not open photos app on mac pro for IOS 10 update.

    Why the iPhone 6plus will not open photos app on mac pro for IOS 10 update.
    A message appears on the iphone asks you to trust the computer it is attached (mac pro 10.10.5)

    You type 'Confidence' and nothing happens. the photos on mac app publishes this message.

    This Mac not yet have been granted access to the media on 'my iPhone '. To import media to this Mac, press 'Trust' on 'my iPhone '. You must first unlock the device.

    This actually solved for me after going to settings, General, reset, reset the location and privacy... and then plug in the unit and pressing the trust... hope that works for others.

  • Not reflected in the network system preferences utility airport settings

    Airport Express model A1264

    Airport Utility 5.6.1

    Firmware 7.6.7

    MacBook OS 10.6.8

    Hello, I am trying to sort out why the Airport utility settings are not the same as the settings in system preferences > network > airport.  If I make a change in Airport utility, it does not change the settings in advance under network options in system preferences and vice versa.  Network names are the same and all other parameters, except the IP numbers are different. (Note: when asked to "Join other network" one and only network name I entered comes up.) All this occurred as a result of a new service by satellite being installed in our premises (I'm in Australia and we have a 'NBN Satellite' service).  IP address in system preferences > network seems to be the IP number, I received when the new system has been activated and the computer that is directly connected by ethernet cable to the modem.   The IP address of the Airport utility is the Airport Express IP number.  I guess that the first IP address is correct as I can connect the MacBook to the internet via Airport. To complicate things, it is that I have the additional problem of not being able to join the network using my MacBook Pro (OS utility 10.10.5, Airport 6.3.5). I get a message telling me to another computer is using IP number again xxxxxxxx test this last (or something similar).  I did originally a default zero value through the Airport utility menu using the MacBook (actually several times), but no change in system preferences > network settings. I think I should add the MacBook Pro Airport utility on the MacBook (which I have) to join the network created on the MacBook.   I use the MacBook for the e-mail and the spread of the internet, and the MacBook Pro should be able to join the network for software and other upgrades. The Airport Express has worked without problem for at least 4 years on our old satellite service. Thanks in advance for your consideration.

    I'm trying to sort out why the Airport utility settings are not the same as the settings in system preferences > network > airport.

    Setting affects only the Airport express airport utility. They do not change anything on the computer.

    Setting in the preferences of the computer only affect the computer... They do not change anything on the express.

    IP address in system preferences > network seems to be the IP number, I received when the new system has been activated and the computer that is directly connected by ethernet cable to the modem.

    Are you a public IP address on the computer? In the old system, you most likely have a private IP address.

    The computer really should NOT directly connect a modem... only a modem which has several ethernet ie is actually a router.

    That will tend to make it more difficult to set up the express. The express should plug a pure modem... and then the computer plug in the express. In this case, the express would be the main router. (I don't like this setup but because the Express is not powerful enough for this job). As far as your express is the old N a wireless with a single ethernet port.

    Honestly, do you a favor and buy another router from apple... the extreme... If you can't afford a new Gen6 then buy a Gen5 on ebay... around $60... immensely better.

    The express can then extend the wireless... or just simply do serve airplay etc. as part of the network.

    Tell us what model is the modem (+ router?) provided to you by your ISP?

    And if you get a public IP address or private on the computer directly connected to it. We can work out the rest from there.

    I'm in Melbourne... you can email me direct if you need to. Email is on my website.

    s https://sites.Google.com/site/lapastenague/a-deconstruction-of-routers-and-modem

Maybe you are looking for

  • Keep or lost the App

    When you have a Mac, you have an Apple ID. My ID is connected to my e_mail address. I have a me.com address and an email adres iCloud.com. Here it comes. When I change my (regular) e-mail address me.com or iCloud.com do I lost or keep my App on the

  • Portege R930 - why four partitions win 10?

    After restoring my R930 to W7, using the recovery DVD and the upgrading to W10, I ended up with the following four partitions (sorry for clumsy translation from Swedish): -Recovery partition 1.49 GB-Windows (C 902,82 GB ENF)-'Sleep' 16,00 GB partitio

  • HP ENvy 13-j000na 2 x: advice required to screen broken

    The screen of my HP Envy x 2 has been damaged accidentally, and therefore, the touchscreen is now defective. Everything else seems to be in order. I'm looking for advice on where replaced for better get screen or actually, where to find the part to f

  • DEATH of canon selphy cp900

    My canon selphy cp900 does not illuminate. When Start button / stop is pressed, nothing happens. No flashing green, nothing on the screen. I tried the hard reset described elsewhere who causes disconnection of the cables and pressing button / stop at

  • Cannot access the folder

    Hi Lisa!  I have a similar problem, but I use Windows XP Home Edition.  Under ' advanced settings (step 1 c) there is no area for "simple file sharing" for me check or uncheck. ".  I have a directory under Documents and Settings of a former user who