Deleting the statistics

Hi all,
After analyze a table with compute statistics command, how i can delete the generated statistics ?

That's easily to be tested:
The information about statistics can be found in
user_/all_/dba_/tab_statistics
and
user_/all_/dba_/ind_statistics
for tables and indexes, respectively.
You might also check
user_/all_/dba_/tab_histograms
and
user_/all_/dba_/ind_histograms
BTW: user_/all_/dba_ in this post means either user_... or all_... or dba_... depending upon what you want to see and upon your access rights.
What would you guess to be the result? Think of situations where someone drops tenthousands of tables in order to reinstall those tables.
Please post your results.

Similar Messages

  • Deleting the all collected optimizer stats for EBS R12

    Hi DBAs,
    How I can completely delete the optimizer statistics related to EBS R12 running on database 11.2.0.2. Purge old stats job seems only purging the old concurrent data, not the optimizer statistics.
    Thanks

    Why don't you simply run "Gather Schema Statistics" concurrent program again?
    How did you identify that the issue with statistics? Have you reviewed Performance Tuning docs? -- https://forums.oracle.com/forums/search.jspa?threadID=&q=Performance+AND+Tuning&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
    Thanks,
    Hussein

  • I delete the HR schema , how i can create it again ?

    Hi
    thank you for reading my post
    i delete the HR schema , how i can make that schema again ?
    I dont want to recreate the Database,
    does any one have HR schema creation script ?
    Thanks

    Hi user505214,
    Please see: http://www.schematodoc.com/OracleHR_Sample1.htm
    The scripts are under --> ?/demo/schema/human_resources.
    --- procedure to create schema HR
    REM =======================================================
    REM cleanup section
    REM =======================================================
    DROP USER hr CASCADE;
    REM =======================================================
    REM create user
    REM three separate commands, so the create user command
    REM will succeed regardless of the existence of the
    REM DEMO and TEMP tablespaces
    REM =======================================================
    CREATE USER hr IDENTIFIED BY changeit
    ALTER USER hr DEFAULT TABLESPACE EXAMPLE QUOTA UNLIMITED ON EXAMPLE
    ALTER USER hr TEMPORARY TABLESPACE TEMP
    GRANT CONNECT TO hr
    GRANT RESOURCE TO hr
    REM =======================================================
    REM grants from sys schema
    REM =======================================================
    CONNECT sys/password AS SYSDBA;
    GRANT execute ON sys.dbms_stats TO hr;
    REM =======================================================
    REM create hr schema objects
    REM =======================================================
    CONNECT hr/password
    ALTER SESSION SET NLS_LANGUAGE=American;
    ALTER SESSION SET NLS_TERRITORY=America;
    -- create tables, sequences and constraint
    @?/demo/schema/human_resources/hr_cre
    -- populate tables
    @?/demo/schema/human_resources/hr_popul
    -- create indexes
    @?/demo/schema/human_resources/hr_idx
    -- create procedural objects
    @?/demo/schema/human_resources/hr_code
    -- add comments to tables and columns
    @?/demo/schema/human_resources/hr_comnt
    -- gather schema statistics
    @?/demo/schema/human_resources/hr_analz
    Sorry for the long answer, but I think it can help you.
    Cheers,
    Marcello M.

  • Delete the delta request

    Hi BW Experts,
    I have a doubt, please make clear it.
    Daily delta, first it goes to ODS and then it is updated to further data target i.e, Infocube.
    Suppose today (22-09-2007) delta has been running successful in ODS as well as Infocube.
    If i delete the 15-09-2007 Request (Which is Delta Request only) from both ODS and Infocube, what will happen?
    Is there any problem in ODS and Infocube?
    Please give me the reply.
    And my Second Question is:
    What is the main purpose of DB Statistics.
    Thanks in advance.
    Regards,
    Anjali

    hi,
    if suppose u r deleting the particular delta request from ods and cube means
    data update through that request no will be deleted from both cube and ods.
    DB Statistics. it's mainly for OLAP run time analysis, query run time analysis
    if helpful provide points
    regards
    harikrishna.N

  • 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/

  • Deleting the staging tables

    Hi all,
    We are upgrading from 8.4 to 9.0 financials.
    we are at re-applying customizations phase now.
    In previous version(8.4), there was a custom app engine to delete the Voucher Staging tables(EC tables).
    in that app engine, all deletes were based on ECQUEUEINSTANCE field.
    (for ex delete from PS_VCHR_HDR_EC WHERE ECQUEUEINSTANCE BETWEEN 1234 AND 1235)
    Peoplesoft changed EC tables to STG tables in 9.0 version
    So my question is that in 8.4 in PS_VCHR_PYMT_EC has the ECQUEUEINSTANCE field in it. but the corresponding table PS_VCHR_PYMT_STG table does not have the ECQUEUEINSTANCE field. I am just wondering if any one got into this situation and how did you delete the PS_VCHR_PYMT_STG table?
    I don't want to delete everything in PS_VCHR_PYMT_STG table.
    Thank you.

    Please post the details of the application release, database version and OS.
    Do you have the statistics collected up to date?
    Please see these docs.
    PERFORMANCE ISSUE - REFRESH COLLECTIONS SNAPSHOT WHEN RUN FOR ALL [ID 1067892.1]
    Refresh Collection Snapshots Performance - Managing MLOG$ Tables and Snapshots for Data Collections [ID 1063953.1]
    How To Improve the Performance of the Refresh Collection Snapshots When Running Very High Volumes [ID 550005.1]
    How To Run MSRFWOR - Refresh Collections Snapshots Concurrent Request From The Application [ID 211121.1]
    Advanced Supply Chain Planning ASCP Performance TIPS Profile Options [ID 209996.1]
    Fast Refresh Is Slower After OATM and 10.2.0.3 Upgrade [ID 875532.1]
    MSRFWOR Refresh Collection Snapshots Performance Database Bug 4196039 [ID 369173.1]
    Master Note for Materialized View (MVIEW) [ID 1353040.1]
    Thanks,
    Hussein

  • How to delete the members in one dimension use the maxl script

    i have question that i want to delete the members in one dimension useing the maxl script, but i do not know how to do it. can the maxl delete the members in one dimension? if can, please provide an sample script, thank you so mcuh.

    MaxL does not have commands to alter an outline directly, except the reset command which can delete all dimensions but not members selectively. The best you could do would be to run a rules file (import dimensions) using a file that contains the members you want to keepload rule for the dimension. As typical the warning is to test this first before you do it on a production database

  • I deleted a contact, but they still show up in my text options to send.  I would like to delete the contact from my texts too.

    I deleted a contact, but they still show up in my text options to send.  I would like to delete the contact from my texts too.

    No don't restore your iphone. I've done that several times & it has never worked. -I still have deleted contacts in my iphone texts.  *However if you do restore it you will not lose all your data, pics, text messages etc if you backup in iCloud. It restores back to original phone. Very nice :). Anyhowwww....
    I JUST  figured it out!! :))). Remove the contact from recents.
      Start a text. You should see the deleted contact. All the way to the right of the name is a symbol. The symbol is a circle with "i" in the middle. Click that symbol then in red lettering click "remove from recents".

  • What happens if I click "delete backup" in order to delete the iCloud backups from my sisters phone off my device. Will it delete everything on her phone?

    So a while ago when I got my phone I started a new Apple ID account/ iCloud.. Then when my sister got a new iphone I gave her my id to use too. In settings-general-usage it says that my storage is almost full. I then click on manage storage and it shows my phone and my sisters phone and how many gb or whatever. Also it says "last backup failed" and other stuff that's Irrelevant. Now when I click on my sisters phone I have an option to "delete backup" MY QUESTION is if I click the delete backup button will it just delete the iCloud backup off my phone OR will it totally delete everything involving the backup off my sisters phone forever??? Please help! Thank you so much!!!!!

    Deleting a backup deletes the backup only from the iCloud storage, not anything on the iPhone.
    The iPhone's iCloud backup will be updated at some point - automatically when the iPhone is connected to an available wi-fi network while connected to a power source unless the iCloud backup is turned off on the iPhone.

  • We use our Iphones with the icloud to set up scheduling of jobs. Multiple phones share the same icloud for this purpose. We recently had a change in leadership. How do I completely delete the icloud account? Or do I just create a new one/forget old 1

    Multiple phones share one Icloud account. We use it to schedule jobs and crew leaders read the cloud to get the information of the job that needs to be done. However, we recently had a change of leadership and we think this person might have logged into or put our cloud on his phone to sabotage our business. I changed the password but that didn't fix the situation. I could put a job on the cloud with an old phone that was logged in with the old password and everyone with the new password would still see the job. I have since created a whole new cloud account which seems to have eliminated the "future" issue of sabotage however I would like to completely eliminate that old account...any advise?

    Everyone needs to go to Settings (or System Preferences)>iCloud and click 'Delete account' or 'Sign out' as applicable (it's the same thing). Then they can sign into the new account you have created and proceed from there. You can't actually delete the old account from the server but you can just ignore it.

  • HOW can i delete the members in dim using MAXL

    Hi All,
    I want to delete the all the memebers for dimensions before reloading so how ca n i write the maxl script for this to delete the members in the dimensions
    plz can any one help on this its very urjent ,
    It would be appriciated ...
    Thanks

    There is no way to alter an outline with MaxL, MaxL is an admin language for processing. The only option, as Glenn mentioned is to issue the reset all command to blow away everything. But you probably don't want to do that, so instead you use Maxl to run a series of load rules to achieve your goal.
    Load rules do not have functionality to delete outline members, it does have a feature however that allows you to remove unspecified members from a dimension build, so when loading in your members, if existing members are not in the import, they are removed. So Glenn's point was to create a source file with a single dummy member. When you load using "Remove Unspecified" it will delete all the members and just keep the one dummy member. Then when you go back a second time and actually load the real members, the dummy member will be removed and you will have a clean dim with only your new members. This is a work around solution, but it's what a lot of people do.
    Now if you have 15 dimensions you need to do this with, you might want to take a slightly different approach. I'm assuming 15 dimensions is probably an ASO cube and this method will be preferable to avoid outline fragmentation.
    Create a copy of your outline with all the base dimensions that do not change intact. For the ones that do change, just have your dim root member. Consider this your starting outline template and save a copy of it. When you want to rebuild your cube have a server process that takes the copy of your template outline and copies it over your existing outline file in the directory structure. Then run your load rules to import your new members.

  • How to Delete the dimension from the cube ?

    Hi ,
    how to Delete the dimension from the cube ?
    i have added the new dimension by assiging one characteristic to that dimension .
    now i  want to delete it ,
    but system saying that   Dimension ZXXX  contains InfoObjects; deletion not possible .
    how to delete it ? any help .
    Thanks

    Make sure you donot have any data in cube. If you have some data in cube, then you will not be able to see Delete option.
    Right click on the cube-->Delete data.
    Then double click on the cube>Goto Edit mode> select the IO under that Dimension> right click> now you will be able to see the Delete option (provided you have deleted all the date from Cube)
    Then right click on Dimension-->Delete
    Regards,
    Pavan

  • How to delete the one of cost centers in Splitting Structure(OKEW)?

    Dear All,
    I have a question about Splitting Structure as below? Could I get favor from you? Thanks a lot.
    How to delete the one of cost centers in Splitting Structure(OKEW)?
    Jocha

    Hi Chang
    Welcome to SDN! Its our pleasure to help you here
    Step 1: Select your Cost Center in OKEW which is assigned to the Splitting Str
    Eg: Cost Ctr 1001 is assigned to Splitting Str Z1... Tick the Check box against 1001 under Z1 Splitting Str
    Step 2: Do a Single Click on the text "Non Assigned Cost Centers"
    Step 3: Press Shift +F6 (Or Click on the Assign Button, next to the Pencil icon)
    Br, Ajay M

  • ADF Desktop Integration : How to delete the table in Excel?

    Hi,
    I am using Jdev 11.1.1.3.0 and Excel 2007 for Oracle ADF DI, I had created an ADF table using pageDef file in the excel. Now I wanted to delete that table and use a different pageDef file.
    I could not find a way to delete that table.
    I deleted full row of tables and then I used different pageDef file and created a new adf table. But when I am running this version of excel, I am getting runtime exception and excel is getting corrupted.
    My question how to delete the table not corrupting the Excel.
    Thanks
    Pavan

    Pavan,,
    Welcome to OTN.
    You can delete the table by selecting the top left column (of the table) and then select delete from the ADFdi tab.
    Refer the documentation for more info.
    http://docs.oracle.com/cd/E17904_01/web.1111/e10139/get_start_dev_tools.htm#ADFDI608
    -Arun

  • Reg:How to delete the column in table control also from database table.

    Hi Experts,
    Once again thank u all for giving the responses.
    one more doubt is how to delete the columns of table control and also the record shold delete from ztable.
    With Regards,
    Saroja.P.

    Hi,
    If you want to delete the rows in the table control and simultaneously delete it from the database table, then you can implement a 'DELETE' functionality specific to your table control. Have a MARK field (you will find that in the screen attributes of the table control -> give a name for the MARK field, you will find an additional MARK column at the beginning of your table control). You can check whatever rows you want to delete from the table control, call the delete module.
    "This portion of code inside the LOOP...ENDLOOP.
    IF sy-ucomm eq 'F_DELETE'.
       gt_itab2-check = mark.  " Store the MARK field status into your internal table's correspoding field 'check'
      MODIFY gt_itab INDEX tabcontrol-current_line.
    ENDIF.
    iF sy-ucomm eq 'DELETE1'.
      DELETE gt_itab WHERE check eq 'X'. "Your internal table does not have rows that you want to delete
    ENDIF.
    Now you can modify your database table using the MODIFY statement.
    MODIFY ZDB FROM TABLE gt_itab.

Maybe you are looking for

  • Getting a strange error message - network cable unplugged (on a wireless router?)

    I have a Linksysy wireless WRT54G ROUTER that is connected to a Dell PC desktop and a Toshiba laptop. I got everything hooked up just fine and everything worked great for 2 months and then 2 days ago I started getting an error messgae saying that a "

  • Error in New Features Guide 12c Release 1 (12.1)

    Page 1-6 in the section: 1.1.2.2 Replacement of CSSCAN and CSALTER with DMU At the bottom of the section is a URL purportedly to the OTM DMU page... except that it isn't.  The first link is what's in the book.. and doesn't work. The second link is wh

  • Cannot get the batch processing to work in PSD CS4

    Hoping someone can help me in PSD CS4.  I took 3000 photos of parts and now the customer wants me to add a watermark.  I created a watermark in record actions where I copied and pasted the watermark from an open document into an open part photo, then

  • Problem since MS update

    None of my adobe products will open more than 4 sec.  whats the deal?

  • Interval date get the to value

    Hi experts, I have a manual input interval variable for the object 0calday and I would like to "isolate" the "to value" because in the column section, I have a column for "period amount" and another one to "last date of the period amount". I've tried