Can gather_stats_job delete my statistics that collected via dbms_stats...

Hello all,
We are using automatic_statistic_gathering via oracle bundle (gather_stats_job) in our 10.2 database.
We have a large partitioned table. We gathered statistics for this table and its indexes by using dbms_stats package.
Yesterday we found some of table's index partition's statistics not all as deleted state !
How can we fix this issue?
I wonder that what is a relation between statistics collected via dbms_stats package and "gather_stats_job" job's one?
Thank you?

Sukan wrote:
select * from v$version;
Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - 64bi
PL/SQL Release 10.2.0.3.0 - Production
"CORE     10.2.0.3.0     Production"
TNS for IBM/AIX RISC System/6000: Version 10.2.0.3.0 - Productio
NLSRTL Version 10.2.0.3.0 - Production
Beside;
we found index statistics as deleted via belov sql statement;
select * from dba_ind_partitions where index_owner = 'HIST'
When we check the distinct_keys, num_rows and clustering_factor, we found them as different from the actual value.
Table actual number of rows are about 6 million but we saw it as 65 thousand.
I think gather_stats_job might choose the sample method for collect statistics then it deleted my statistics.If I understand you correctly, then the statistics are not "deleted" (so that no statistics are there) but replaced with statistics obviously gathered by the default "automatic statistics" collection job.
You can use the view DBA_TAB_STATS_HISTORY to check for modifications to the statistics.
Note that depending on how you collect your statistics manually, these might be considered as "STALE" although they're actually not stale. E.g. in case of index statistics, if you gather the index statistics separately, e.g. using DBMS_STATS.GATHER_INDEX_STATS, and afterwards collect the corresponding table statistics using "DBMS_STATS.GATHER_TABLE_STATS(...cascade=>false...)", then index statistics will show up as "STALE" in the dictionary, because the dictionary view contains the simple check if the table statistics are more recent than the index statistics.
If you want to make sure that any individual statistics collected are left untouched, you can "lock" the statistics on particular tables or schemas using DBMS_STATS.LOCK_TABLE/SCHEMA_STATS. You need then to use the "FORCE=>true" parameter when gathering statistics yourself to overwrite the lock. Note that there is a peculiarity when having the statistics locked: ALTER INDEX REBUILD resp. CREATE INDEX won't update the statistics any longer (which is consistent, since the statistics are locked) but there is no "FORCE" option to the commands, so you need to take care of this by either collecting statistics separately or unlocking the stats temporarily.
Alternatively, if you don't want the default statistics job to work on any of your objects, you can re-configure it using "DBMS_STATS.SET_PARAM('AUTOSTATS_TARGET', 'ORACLE')" in which case the job only analyzes objects owned and maintained by Oracle (data dictionary, workload repository, etc.).
Regards,
Randolf
Oracle related stuff blog:
http://oracle-randolf.blogspot.com/
SQLTools++ for Oracle (Open source Oracle GUI for Windows):
http://www.sqltools-plusplus.org:7676/
http://sourceforge.net/projects/sqlt-pp/

Similar Messages

  • Two apple I.D., one with the .me email address I want, how can I delete it so that I can use that .me address on my other account?

    I have two apple I.D., one with the .me email address I want, how can I delete it so that I can use that .me address on my other account
    Or is it possible to transfer the purchases (apps) to my new .me account so that I can re-download them in the future without having to switch accounts?

    crazyshark wrote:
    I have two apple I.D., one with the .me email address I want, how can I delete it so that I can use that .me address on my other account
    Or is it possible to transfer the purchases (apps) to my new .me account so that I can re-download them in the future without having to switch accounts?
    You can't do this, and you can't transfer purchases between accounts. There is no conflict about using one ID for iTunes, iTunes in the Cloud and iTunes Match (the ID you've been using for iTunes) and using the other ID for iCloud.

  • How can I delete an app that doesn't show as installed but is?

    I can not delete an app that is on my iphone 5.  Unfortunely I do not remember the name of it!  It shows up as a moveable round botton within a square on all opened screens. When tapped it opens up four options: Favorites, Siri, Device and Home.  It was a cool time saver with the iOS5, but with the addition of comand center in iOS7 It is rather in the way.  Does anyone know the name of this app and or how to uninstall it??  Thanks for any help

    That did it, it's gone!  I don't understand, is it uninstalled? 
    THANK YOU so much   

  • How can I delete the photos in Collections/moments?

    How can I delete the photos in Collections/moments? I have set icloud photo settings to none, and delete all my photos in album, but I'm still getting 5.6 G of photos!

    help!

  • How can I delete a download that is hung up.

    How can I delete a download that is hanging up?

    If there are multiple apps trying to download at once, only one can download at a time and the rest say "Waiting" until it is then their turn. Try this. Double tap the icon of the Waiting app, and it should resume the download.
    How to Solve the Problem of An iPad App Download Stuck on “Waiting”
    http://ipadacademy.com/2012/06/how-to-solve-the-problem-of-an-ipad-app-download- stuck-on-waitinghttp://ipadacademy.com/2012/06/how-to-solve-the-problem-of-an-ipad-app-download- stuck-on-waiting
    How To Get Rid Of Your iPad App Download Frozen Problem
    http://www.sidelineapple.com/how-to-get-rid-of-your-ipad-app-download-frozen-pro blem-and-not-lose-years-of-your-life-video/http://www.sidelineapple.com/how-to-get-rid-of-your-ipad-app-download-frozen-pro blem-and-not-lose-years-of-your-life-video/
    iTunes: How to resume interrupted iTunes Store downloads
    http://support.apple.com/kb/ht1725http://support.apple.com/kb/ht1725
    Another thing to try - Turn the iPad Off & then back ON.
    If that doesn't work:
    •  Log out of your iTunes store account.  Go to Settings > Store > Sign Out Then press the Home button.
    • Then press and hold the Home and Sleep buttons simultaneously and don't release them when it brings up the Turn Off screen; keep holding them until the Apple logo appears.
    • After restart, the Waiting should be gone.
     Cheers, Tom

  • TS1702 How can I delete an app that was purchased?

    How can I delete an app that was purchased?

    Delete an App Store app: Touch and hold its icon on the Home screen until the icon starts to jiggle, then tap the "x" . You can’t delete built-in apps. When you finish, press the Home button.
    Deleting an app also deletes all of its data. You can re-download any app you’ve purchased from the App Store, free of charge

  • Can i delete the apps that comes with the 5s phone, like itunes, weather and others that i won't be using?

    can i delete the apps that comes with the 5s phone, like itunes, weather and others that i won't be using?

    You can't delete some of the native apps but you can put them away in a folder OR some of them you can make invisible by restricting them (iTunes for example).

  • Trying to update my apps but it keeps saying update my credit card,I don't want to use a credit card and I can't delete the one that's on my account

    Trying to update my apps but it keeps saying update my credit card,I don't want to use a credit card and I can't delete the one that's on my account

    If you're positive the information is correct, ask the issuing bank why the transaction is being rejected.
    You're getting this error because the store can not authorize the card with your bank.

  • How can I delete plug-ins that I do not want then anymore?

    how can I delete plug-ins that I do not use anymore?

    Uninstall them by deleting them from the Library:
    The plug-ins usually are installed in the Applications Support Folder -> Aperture -> Plug-Ins, either in your your User Library or in the System Library:
    your home folder/Library/Application Support/Aperture/Plug-Ins/
    /Library/Application Support/Aperture/Plug-Ins/

  • How can I delete the podcasts that I have not downloaded but show up as being in the cloud

    How can I delete the podcasts that show up as being in the cloud when viewing them in the List mode? Most of these are past episode that I previously downloaded and then deleted. I know that I can  look at my podcasts in Unplayed mode which removes those in the cloud but then I can't sort them first by podcast title and then by episode date the way I can in List mode.   This was not a problem before iTunes 11.1 when I could simply delete those in the cloud.

    That is discouraging.  However I do notice that if I view my podcasts in My Podcasts mode they are grouped and sorted better than in Unplayed mode and the ones in the cloud are not shown. However although I prefer the one window view of List mode to the two windows My Podcast mode, My Podcast mode does at least indicate how many unplayed episodes I have from each podcast.  This would almost be acceptable except that partially listened to podcasts, while still there, can only be identified by highlighting the podcast title on the lefthand sidebar, (although the number of completely unplayed episodes are listed on the left hand sidebar).  As someone who often listens to a podcast over two or more days I fear I could forget which ones I have only partially listened to and would have to go down the entire left hand sidebar list highlighting each podcast to remind myself.  I really find the List mode the most informative and easiest way to view my podcasts and really wish Apple had not messed with it

  • How can I delete old movies that I already purchased, which are saved in my account? Actually I don't want them to be viewed by others who use same account, so is there any solution to delete them? Please advise. Thank you

    How can I delete old movies that I already purchased, which are saved in my account? Actually I don’t want them to be viewed by others who use same account, so is there any solution to delete them? Please advise.

    Delete Purchases = No.
    But there is this...Hiding and unhiding purchases
    iTunes Store  >   http://support.apple.com/kb/HT4919

  • How can I delete duplicate songs that are appearing on my iphone but not in my itunes?

    How can I delete duplicate songs that are appearing on my iphone

    Hi jpere041,
    Thanks for visiting Apple Support Communities.
    You can delete individual songs, artists, albums, playlists, compilations and composers from your iPhone. To delete an item, swipe across it, then tap Delete.
    This information is on page 61 of the iPhone User Guide
    manuals.info.apple.com/en_US/iphone_user_guide.pdf
    Delete a song from iPhone: In Songs, swipe the song, then tap Delete.
    The song is deleted from iPhone, but not from your iTunes library on your Mac or PC, or from iCloud.
    Regards,
    Jeremy

  • Can I delete a genre of music via the iPhone 5S, Can I delete a genre of music via the iPhone 5S

    My wife and I share an iTunes account via an iMac, but we have different tastes in music.
    Can I remove unwanted Genres of music via the iPhone?
    Is it something that has to be done via the iTunes program and if so how?

    Hello RingosDad
    You can do both. One-way is to set up syncing on your computer to either sync the genres or just the specific music within a playlist. Also if you are happy with the music on your iPhone, besides that one genre, you can navigate to that genre and then do a swipe from right to left to bring up a delete option for that song. 
    How to use multiple iPhone, iPad, or iPod devices with one computer
    http://support.apple.com/kb/ht1495
    How to delete content you've downloaded from the iTunes Store, App Store, iBooks Store, or Mac App Store
    http://support.apple.com/kb/HT5772
    Regards,
    -Norm G.

  • Can't delete photos in the "Collections" or delete the "Hidden" album?

    There were multiple screenshots i took a while ago that i had previously uploaded to my computer and deleted off my phone before i got the ios8 update. After the update all those pictures now appear in my "Collections" and i'm not able to delete them. So instead i chose the "Hide" option but now they went into an album labeled "Hide" on my phone which i can't delete either. I don't understand why it's not allowing me to delete these photos.

    To delete a photo that's in a smart album you need to use the CommandOptionDelete key combination to move it to the trash. If you just want to remove the photo from the album you will need to change on that photo the feature that the smart album is set to look for.
    Happy Holidays

  • How can I delete an app that is not on my desktop, thanks.

    My account has been hacked and an app purchased, I now wish to delete this but it does not show on my desktop. Any help appreciated.

    You can't delete it up unless you can find it.
    Are all of your screens full? If they are, the only way to see additional apps would be to find them in the Spotlight Search. Swipe down from the middle of the home screen to reveal the search bar at the top. Type in the name of the app. It will show you what it folder it is in next to the app name.
    If you really believe that your account was hacked, I hope that you plan on contacting Apple/iTunes Support, remove your credit card and do whatever is necessary to protect your personal information.

Maybe you are looking for