Need to take stats twice for partitions and subpartitions?

Hello world

I'm taking a new approach for making statistics.

First my system:

Oracle 10.2.0.1
3 instance RAC running on Linux RH AS 3, 64-bit

I'm currently my stats using dbms_stats.gather_schema_stats with the option "rally car", it's good because only the data tables with stale and empty tables are being analyzed, but the process takes 3 to 4 days...

Now I want to spread the statistical processes on nodes in the cluster using gather_table_stats (stale tables and empty tables only), while I was doing my procedure, I discovered the following, and here's where I need your help.

If I run the following command:

exec dbms_stats.gather_table_stats (ownname = > 'CACOSTA', tabname = > 'subpart_date', granularity = > 'SUBPARTITION', partname = > 'P200901')

I can see the stats from my server BUT no stats have been taken for the partition.

If I change the granularity on the "PARTITION": gather_table_stats

exec dbms_stats.gather_table_stats (ownname = > 'CACOSTA', tabname = > 'subpart_date', granularity = > 'PARTITION', partname = > 'P200901')

It will take the stats ONLY for the partition, but not for subparts.

If I take the stats twice for 'PARTITION' and 'SUBPARTITION', I'll get all stats but it will take twice as long to complete.

Is someone can you please tell me if I'm on the wrong approach? is it possible to understand that when I use the granularity of the "PARTITION", it can take the opportunity to use this same information it is collecting and provide statistics for subparts too to the RDBMS?

Thank you and sorry for the long post.

Carlos Acosta

Carlos Acosta wrote:
I'm taking a new approach for making statistics.

First my system:

Oracle 10.2.0.1
3 instance RAC running on Linux RH AS 3, 64-bit

exec dbms_stats.gather_table_stats(ownname=>'CACOSTA',tabname=>'subpart_date',granularity=>'SUBPARTITION',partname=>'P200901')

I can see the stats from my server BUT no stats have been taken for the partition.

If I change the granularity on the "PARTITION": gather_table_stats

exec dbms_stats.gather_table_stats(ownname=>'CACOSTA',tabname=>'subpart_date',granularity=>'PARTITION',partname=>'P200901')

It will take the stats ONLY for the partition, but not for subparts.

If I take the stats twice for 'PARTITION' and 'SUBPARTITION', I'll get all stats but it will take twice as long to complete.

Is someone can you please tell me if I'm on the wrong approach? is it possible to understand that when I use the granularity of the "PARTITION", it can take the opportunity to use this same information it is collecting and provide statistics for subparts too to the RDBMS?

Carlos,

This composite partitioning (range-list, range-hash) do you use?

First of all I think it's important to understand that statistical subpartition will actually not to be used by the cost based optimizer in previous versions 10.2.0.4 (but in 10.2.0.4 only with bugs without patch installed, see the link to the message below) and 11.1.0.6:

http://Oracle-Randolf.blogspot.com/2007/03/subpartitions-and-optimizer-statistics.html

http://Oracle-Randolf.blogspot.com/2008/04/revisiting-subpartition-pruning-and.html

http://Oracle-Randolf.blogspot.com/2009/03/partition-oddities-part-1-severe-bug-in.html

So, I'd be interested to see a case in the database pre - 10.2.0.4 where the optimizer actually using subpartition level statistics; I have not yet found one.

Second, he must be aware of what Oracle offers several ways how to maintain the different level of statistics:

-Less consumption of resources, but less quality: collection of statistics on the lowest level (e.g. subpartition) only. I hope all subparts of the partition have statistics, the higher levels (partition / global) will be inspired by the aggregation. This way, you get the low quality statistics on levels higher (e.g. no histograms will be generated by aggregation, number of distinct values potentially quite inaccurate), but you do not need to collect statistics on these levels. Note that if once you have collected statistics on the higher levels (indicated by the "GLOBAL_STATS = YES" column in the DBA_\ * views STATISTICS) will not perform this statistical aggregation. You must first remove the statistics of higher level using DELETE\ * _STATS have enabled new aggregation (next time gather you statistics on low levels and all partitions (sub-) have statistics)

For more information about this approach, see for example here: http://oracle-randolf.blogspot.com/2008/04/exchange-partition-and-aggregated.html

-Consumption of resources, but of better quality most: separate statistics on all levels

- And the new modes supported by 10.2.0.4 and especially 11.1.0.6: APPROX_GLOBAL AND PARTITION (10.2.0.4), true incremental global statistics in 11.1.0.6 and the new algorithm for estimating AUTO_SAMPLE_SIZE introduced in 11g:

http://structureddata.org/2008/07/16/Oracle-11g-incremental-global-statistics-on-partitioned-tables/

http://structureddata.org/2007/09/17/Oracle-11g-enhancements-to-DBMS_STATS/

http://optimizermagic.blogspot.com/2009/02/maintaining-statistics-on-large.html

Another very good synthesis about the management of statistics has recently been published by Karen Morton: http://karenmorton.blogspot.com/2009/02/new-paper-and-cj-date-advert.html

So in your case a database pre - 10.2.0.4 you should not bother with subpartition statistics at all (or you can show me otherwise I would be interested), and you can then try to find out if you could live with the above statistical approach of "sum" by simply collecting statistics on the level of partition, or if you need to collect statistics on the partition and the global level separately (you did not mention your current strategy to the global level statistics).

If you install the 10.2.0.4 patch game you have several options and statistics subpartition can be used by the optimizer (but only in the case of beach-list composite partitioning, as far as I know), for example by using the option of PARTITION AND APPROX_GLOBAL introduced in this version. Note that you must install the unique patches to get this working properly as described by my post and the optimizer of blog post for the development group.

Kind regards
Randolf

Oracle related blog stuff:
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/

Tags: Database

Similar Questions

  • Installed Adobe Acrobat Standard XI on 2 computers using the 2 provided licenses. I need to take this on one computer, and add to another computer in the office. How can I do this?

    Installed Adobe Acrobat Standard XI on 2 computers using the 2 provided licenses. I need to take this on one computer, and add to another computer in the office. How can I do this?

    After getting your serial number, open the Acrobat none-more-necessary > help > deactivate.

    install and activate on your other computer.

  • I have CS2, CS 4 on two PCs.  I need to buy a laptop for work and I want to put my copy on it.  Can I uninstall of either.  I'll be able to install on the new lap top?

    I have CS2, CS 4 on two PCs. I need to buy a laptop for work and I want to put my copy on it.  Can I uninstall of either.  I'll be able to install on the new lap top?

    Maybe, maybe not... According to the new operating system

    CS2, Acrobat 7 + Audition 3 (AND PREVIOUS) activation server has disappeared, then read below

    l http://helpx.adobe.com/x-productkb/Policy-Pricing/Creative-Suite-2-activation-end-Life.htm

    .

    You MUST use the special version and the serial number on the page, not your original drive or serial number

    .

    When you install the special version of CS2 on a Win7 or Win8 or Win10 computer, you may need to right click on the program icon and select compatibility Windows XP in the popup of option

  • I have a subscription, it's almost over, but I need to change plans and cannot select one I need in the menu plan for change, and I can't cancel. Is it possible to cancel it?

    I have a subscription, it's almost over, but I need to change plans and cannot select one I need in the menu plan for change, and I can't cancel. Is it possible to cancel it?

    Hello

    Please contact support by calling/chat for cancellation requests and billing queries:

    Contact the customer service

    * Be sure to stay connected with your Adobe ID before accessing the link above *.

    You can also check the help below document:

    https://helpx.Adobe.com/x-productkb/policy-pricing/cancel-membership-subscription.html

    Please go through the Adobe - General conditions of subscription as well.

  • Hello I bought 2 months ago the annual plan of photography and now im studying if I had a student discount cause now I start to study I will be charged twice for photography and the student and all the aps plan?

    Hello I bought 2 months ago the annual plan of photography, and now cause im studying, if I have a student for aps discount all now, I start to study I will be charged twice for photography and the student all the aps plan? or he will renounce this photography automatically project the student and I will be charge for only $19.99?

    You should see the links in the document below about educational discounts:

    FAQ: Where can I get information on creative cloud for the enterprise, education, Government and teams?

    Alternatively, you can contact support for help FAQ: how to contact Adobe for support?

    You may cancel the current and pay a new subscription.

  • Find the right Partition for swap Partiton when there are PARTITION and SUBPARTITION

    Hi all

    I have a small problem:

    I want to find the right cause of partitions of the partition key.  I have a partition and a Subpartition (sample - table in annex).

    I leave the database to generate the partition (and name), the name is generated. I need to find for the exchange of partition

    the right of Partition has cause of a given value of the partition key (in this case EVOD_PART_DATE and 20141101 value).

    When I try to find the right partiton name, I would use generally not:

    SELECT DISTINCT dbms_rowid.rowid_object(ROWID) data_object_id
       FROM F_CONTRACT_EVENT
       WHERE  EVOD_PART_DATE = TO_DATE ('20141101','YYYYMMDD')
    

    Okay, I get 2 rows, I'm expecting one, but cause the result are the subpartions, I get this:

      SELECT *  FROM ALL_OBJECTS WHERE DATA_OBJECT_ID IN ( 155159,155154);
    

    I see:

    EVO_DM    F_CONTRACT_EVENT    SYS_SUBP4292    155159    155159    TABLE SUBPARTITION
    EVO_DM    F_CONTRACT_EVENT    SYS_SUBP4287    155154    155154    TABLE SUBPARTITION
    

    But I don't want the subparts, I want the PARTITON!

    The table:

    CREATE TABLE "EVO_DM"."A0_F_CONTRACT_EVENT" 
       ( "EVOD_DDATE_ID_VALID_FROM" NUMBER(20,0) DEFAULT -1 NOT NULL ENABLE, 
        "EVOD_DDATE_ID_VALID_TO" NUMBER(20,0) DEFAULT -1 NOT NULL ENABLE, 
        "EVOD_DTIME_ID_START" NUMBER(20,0) DEFAULT -1 NOT NULL ENABLE, 
        "EVOD_DSUST_ID" NUMBER(20,0) DEFAULT -1 NOT NULL ENABLE, 
        "EVOD_DCHAN_ID" NUMBER(20,0) DEFAULT -1 NOT NULL ENABLE, 
        "EVOD_DARTI_ID" NUMBER(20,0) DEFAULT -1 NOT NULL ENABLE, 
        "EVOD_DCAMP_ID" NUMBER(20,0) DEFAULT -1 NOT NULL ENABLE, 
        "EVOD_DUSAG_ID" NUMBER(20,0) DEFAULT -1 NOT NULL ENABLE, 
        "EVOD_DOPSY_ID" NUMBER(20,0) DEFAULT -1 NOT NULL ENABLE, 
        "EVOD_DDEVI_ID" NUMBER(20,0) DEFAULT -1 NOT NULL ENABLE, 
        "EVOD_DSHOP_ID" NUMBER(20,0) DEFAULT -1 NOT NULL ENABLE, 
        "EVOD_DPLFO_ID" NUMBER(20,0) DEFAULT -1 NOT NULL ENABLE, 
        "EVOD_DACCO_ID" NUMBER(20,0) DEFAULT -1 NOT NULL ENABLE, 
        "EVOD_DDECL_ID" NUMBER(20,0) DEFAULT -1 NOT NULL ENABLE, 
        "EVOD_DOBJT_ID" NUMBER(20,0) DEFAULT -1 NOT NULL ENABLE, 
        "EVOD_DOFFR_ID" NUMBER(20,0) DEFAULT -1 NOT NULL ENABLE, 
        "EVOD_DCNTR_ID" NUMBER(20,0) DEFAULT -1 NOT NULL ENABLE, 
        "EVOD_DCURR_ID" NUMBER(20,0) DEFAULT -1 NOT NULL ENABLE, 
        "EVOD_DCONT_ID" NUMBER(20,0) DEFAULT -1 NOT NULL ENABLE, 
        "EVOD_DIVWC_ID" NUMBER(20,0) DEFAULT -1 NOT NULL ENABLE, 
        "DD_SUBSCRIPTION_ID" VARCHAR2(50 BYTE) DEFAULT '~' NOT NULL ENABLE, 
        "SINGLE_ISSUE" NUMBER(8,0) DEFAULT 0, 
        "SUBSCRIPTION" NUMBER(8,0) DEFAULT 0, 
        "RENEWAL" NUMBER(8,0) DEFAULT 0, 
        "CONVERSION" NUMBER(8,0) DEFAULT 0, 
        "DOWNLOAD" NUMBER(8,0) DEFAULT 0, 
        "UPDATES" NUMBER(8,0) DEFAULT 0, 
        "NET_VALUE_IN_EUR" NUMBER(10,4) DEFAULT 0 NOT NULL ENABLE, 
        "GROSS_VALUE_IN_EUR" NUMBER(10,4) DEFAULT 0 NOT NULL ENABLE, 
        "COMMISSION_IN_EUR" NUMBER(10,4) DEFAULT 0 NOT NULL ENABLE, 
        "TAX_IN_EUR" NUMBER(10,4) DEFAULT 0 NOT NULL ENABLE, 
        "POSITION_NR" NUMBER(3,0) DEFAULT -1, 
        "DD_ORDER_NR" VARCHAR2(50 BYTE) DEFAULT '~' NOT NULL ENABLE, 
        "EVOD_SOURCE_CD" VARCHAR2(50 BYTE) DEFAULT '~' NOT NULL ENABLE, 
        "FLAG_STOCK_RELEVANT" NUMBER(1,0) DEFAULT '0' NOT NULL ENABLE, 
        "RENEWAL_NR" NUMBER(3,0) DEFAULT -1, 
        "EVOD_DDATE_ID_SUBSCRIPTION" NUMBER(20,0) DEFAULT -1 NOT NULL ENABLE, 
        "EVOD_DPRCG_ID" NUMBER(20,0) DEFAULT -1 NOT NULL ENABLE, 
      
       EVOD_PART_DATE DATE  GENERATED ALWAYS AS ( TRUNC(TO_DATE(TO_CHAR(EVOD_DDATE_ID_VALID_FROM),'YYYYMMDD'),'MM')) VIRTUAL)
    PARTITION BY RANGE(EVOD_PART_DATE)
    interval(NUMTOYMINTERVAL (1,'MONTH'))
    SUBPARTITION BY LIST(EVOD_SOURCE_CD)
    SUBPARTITION TEMPLATE(
    SUBPARTITION "P_ITUNES"  VALUES ('ITUNES') ,
    SUBPARTITION    "P_WSP"  VALUES ('WSP'),
    SUBPARTITION   "P_GOOGLE"  VALUES ('PLAYSTORE'),
    SUBPARTITION   "P_DEFAULT"  VALUES ('~') ,
    SUBPARTITION   "P_AMAZON"  VALUES ('AMAZON_EREADER', 'AMAZON_MANUELL', 'AMAZON_TABLET') ,
    SUBPARTITION    "P_MSD"  VALUES ('MSD')
    )
    (
     PARTITION P01 VALUES LESS THAN (TO_DATE('200310','YYYYMM')) SEGMENT CREATION DEFERRED
    )
    PARALLEL 10  ;
    

    Any ideas?

    Thanks for Berlin

    First of all - the DOF you posted is INVALID - you do not specify a delayed segment creation for partitions. Specify you for the table.

    Also, you must remove the DEFAULT value - 1 for the partitioning column. The value '-1' cannot be converted to a valid date for the virtual partitioning column value.» The default value is useless and will give confusion around the year exception err when the exception should actually provide a NULL value for a column not null.

    The documentation explains how to use the EXCHANGE PARTITION and has the code example

    Maintenance of Partitions

    Exchange a Partition of a partitioned Table interval

    You can exchange of range partitions in a partitioned table interval. However, you must make sure that the partition of the interval was created before that you can swap partition. You can leave the database create the partition in the partition of the interval of locking.

    The following example shows an Exchange partition for the interval_sales table, range-partitioned using the monthly from partitions of 1 January 2004. This example shows how to add data to the table using charge Exchange partition for June 2007. Assume there is only a local index on the interval_sales table and equivalent index have been created on the interval_sales_june_2007 table.

    LOCK TABLE interval_sales  PARTITION FOR (TO_DATE('01-JUN-2007','dd-MON-yyyy'))  IN SHARE MODE;    ALTER TABLE interval_sales  EXCHANGE PARTITION FOR (TO_DATE('01-JUN-2007','dd-MON-yyyy'))  WITH TABLE interval_sales_jun_2007  INCLUDING INDEXES;
    

    Note the use of the FOR syntax to identify a partition that has been generated by the system. The name of the partition can be used by querying the *_TAB_PARTITIONS view of data dictionary to find the partition system-generated name.

    Given that the last paragraph? That's what showed Solomon.

    NOTE:-special attention to the FIRST paragraph. If you use segment carried OVER creating the partition you want to Exchange could NOT have been created yet.

    Make SURE that you lock the partition as the example shows, or you will get an exception if it has not been created.

    Also - we know NOT what PROBLEM you're trying to solve.

    If you exchange a PARTITION of a table subpartitioned your working table should actually be partitioned using the SAME parttioning as the subparts in the source table:

    See my response in this thread:

    https://forums.Oracle.com/forums/thread.jspa?threadID=2482090&TSTART=30

    In this thread I have provide the code example illustrating how the table should be created and made Exchange.

  • need computer to start twice for opening windows

    Currently, I have install windows 8 pro on my dell inspiron n5050 when I turn on the computer it boots ok then the screen turns white and windows not loading. then I hit the power button turn power off power. Then, I hit the power buttom turn the computer and windows is already loaded.my question is why do I have to start the computer twice for the loading of windows.

    Hello jonsal.

    I got exactly the same problem with my Inspiron 7720.

    After extensive research, I managed to fix it.

    Here's what I did...

    -Turn on the computer.

    -After the Dell logo, when the screen goes black, Power OFF.

    -Then, turn again and press F2 to enter the BIOS.

    -When you are in the Bios, go to the menu 'BOOT.

    -Then go to 'SECURE BOOT' and select 'OFF '.

    -Then go to "STARTUP OPTION add" and press "Enter."

    -In the new window that opens, go to 'The BOOT OPTION NAME' and type ' CD/DVD/CD-RW Drive' without the quotes.

    -Tab down to "YES" and press Enter

    -Now, you should see ' CD/DVD/CD-RW Drive' in the list under "ORDER of PRECEDENCE to BOOT and BOOT UEFI.

    -Press the button "+" to move ' CD/DVD/CD-RW Drive' to the top of the boot list.

    -Press F10 to save changes and exit.

    Your computer should now boot normally from now on.

    It worked for me.

    Good luck.

  • Need to disable notifications update for reader and flash player

    I hope that I ask this question in the right place.   Please direct me if I don't.

    Due to some problems with many of our applications that support web and rely in IE.  When are 1500 + users get invited up to date drive or a flash drive, they do not have to disable the 'optional' box to download and install chrome.

    This cause many helpdesk calls because their web applications do not work properly in chrome.

    We found the documentation: http://kb2.adobe.com/cps/837/cpsid_83709/attachments/Acrobat_Reader_Updater.pdf

    to turn off update notifications, however check machines both xp and win7, the key to page 16 of the pdf mentioned above, did not exist in HKLM, but he found in HKCU.   Tried to create the iCheck and iCheckReader in the two places, but not sure if they work effectively.

    Here are our real goal: we want not only to users, you are welcome to update player or flash because the installation of chrome drive.   We do not want reader or flash to update 'automatically '; We always want the possibility to update manually.

    How can we turn off all automatic update feature and create updates so that users never see them in both applications?

    We currently have users with reader, 8, 9 and 10.

    If you can provide the detailed steps, documentation, etc., registry keys.  I would be very happy.

    Thank you

    Chad

    You must use featurelock key to disable updater for Acrobat and Reader. According to the documentation, http://kb2.adobe.com/cps/837/cpsid_83709/attachments/Acrobat_Reader_Updater.pdf

    you got, has all the information.

    See section 2.5.2

    For example, use the following registry to disable the Player 10 on 32 bit OS update.

    Reader

    [HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Adobe\Acrobat Reader\10.0\FeatureLockDown]

    "bUpdater" = DWORD: 00000000

    I have no idea on how to disable updates for Flash. You must post in the Flash Forum.

  • Interval question partition and subpartition - range

    11.2.0.4

    (separate issue than my other storage)

    You can partition a table by day apart and subpartition and then by a field ID, a sequential ID in single digits?  I want a subpartition for each code.  something lije

    CREATE TABLE detail_tab

    (prod_id NUMBER (6))

    date of create_ts

    )

    PARTITION OF RANGE (create_ts) INTERVAL (NUMTODSINTERVAL(1,'DAY'))

    SUBPARTITION BY RANGE (prod_id) interval (1)

    Ive read the docs http://docs.oracle.com/cd/E18283_01/server.112/e16541/part_admin001.htm#insertedID5 but you see is not the one I want.  IM thinking the closest, I can get to it is a hash range



    OK - so FYI stock, you should have a LIMITED identity series: your "id" is probably in the ticker.

    Oracle can manage thousands of partitions.

    For example, to create a partitioned table range-list with each list being one, or several, stock ID. Just hardcode the IDs. Or generate the DDL from a table with a game master of ID.

    Creation of segment use deferred for segments are not created until there are at least a lines for the subpartition.

    Remember, however, you must handle everything by SEGMENT. This means the subpartitions. So all this rollilng off be for hundreds of ID stock.

    You should analyze your processes to determine the "roll-off" exact criteria you need. Group stocks into the partition even if they can get out.

    Also - you can use 'tricks' as the creation of CUSTOM symbols that truly represent AGGREGATE data from stocks of one or more.

    We used to store weekly data by using a value DATE when markets aren't open yet. Activity on these dates were given aggregate rather than granular data.

  • PARTITIONS AND SUBPARTITIONS

    Hi all
    Here's my problem with this table:
    CREATE TABLE CKEPM.CKCLASS_ALL
    (
      DATA_POPOLAMENTO  DATE,
      OBJ_CAT           CHAR(1 BYTE),
      NODE_ID           NUMBER,
      CA_V              VARCHAR2(256 BYTE),
      CB_V              VARCHAR2(256 BYTE),
      C1                NUMBER,
      C2                NUMBER
     )
    TABLESPACE TBS_CKEPM_ALL
    PARTITION BY RANGE (DATA_POPOLAMENTO)
    SUBPARTITION BY LIST (OBJ_CAT)
    (  
      PARTITION ALL_20100130204500RQ VALUES LESS THAN (TO_DATE(' 2010-01-30 21:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN'))
        TABLESPACE TBS_CKEPM_ALL
      ( SUBPARTITION ALL_20100130204500RQL01 VALUES ('N')    TABLESPACE TBS_CKEPM_ALL,
        SUBPARTITION ALL_20100130204500RQL02 VALUES ('L')    TABLESPACE TBS_CKEPM_ALL ),  
      PARTITION ALL_20100130210000RQ VALUES LESS THAN (TO_DATE(' 2010-01-30 21:15:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN'))
        TABLESPACE TBS_CKEPM_ALL
      ( SUBPARTITION ALL_20100130210000RQL01 VALUES ('N')    TABLESPACE TBS_CKEPM_ALL,
        SUBPARTITION ALL_20100130210000RQL02 VALUES ('L')    TABLESPACE TBS_CKEPM_ALL )
    );
    
    CREATE BITMAP INDEX CKEPM.IX_CKCLASSALL_NODE ON CKEPM.CKCLASS_ALL
    (NODE_ID)
      TABLESPACE TBS_CKEPM_ALLX
    LOCAL (  
      PARTITION ALL_20100130204500RQ
        TABLESPACE TBS_CKEPM_ALLX
      ( SUBPARTITION ALL_20100130204500RQL01    TABLESPACE TBS_CKEPM_ALLX,
        SUBPARTITION ALL_20100130204500RQL02    TABLESPACE TBS_CKEPM_ALLX ),  
      PARTITION ALL_20100130210000RQ
        TABLESPACE TBS_CKEPM_ALLX
      ( SUBPARTITION ALL_20100130210000RQL01    TABLESPACE TBS_CKEPM_ALLX,
        SUBPARTITION ALL_20100130210000RQL02    TABLESPACE TBS_CKEPM_ALLX )
    );
    I need to collect statistics for partitions partitions/subpartitions/index of < b > ALL_20100130204500RQ < /b >, and then copy all these ALL_20100130210000RQ < /b > < b > statistics

    (1) could someone post the script DBMS_STATS.gather_table_stats and DBMS_STATS.copy_table_stats?

    I tried
    exec DBMS_STATS.gather_table_stats (ownname               => 'CKEPM',
    tabname               => 'CKCLASS_ALL',
    partname              => 'ALL_20100130204500RQ', 
    estimate_percent      => DBMS_STATS.AUTO_SAMPLE_SIZE ,
    CASCADE               => FALSE);
    
    select partition_name , last_analyzed
    from user_TAB_PARTITIONS 
    where partition_name IN ('ALL_20100130204500RQ, 'ALL_20100130210000RQ);
    
    PARTITION_NAME     LAST_ANALYZED
    ALL_20100130204500RQ     09/02/2010 8.56.20
    ALL_20100130210000RQ      
    
    exec DBMS_STATS.copy_table_stats (ownname => 'CKEPM', 
    tabname => 'CKCLASS_ALL', 
    srcpartname => 'ALL_20100130204500RQ', 
    dstpartname => 'ALL_20100130210000RQ');
    
    ORA-06533: Subscript beyond count
    ORA-06512: at "SYS.DBMS_STATS", line 16496
    ORA-06512: at line 1
    
    select partition_name , last_analyzed
    from user_TAB_PARTITIONS 
    where partition_name IN ('ALL_20100130204500RQ, 'ALL_20100130210000RQ);
    
    PARTITION_NAME     LAST_ANALYZED
    ALL_20100130204500RQ     09/02/2010 8.56.20
    ALL_20100130210000RQ     09/02/2010 8.56.20 
    (2) when I make unusable the index and rebuilding, I need also to collect statistics (how?)?

    Thank you all,
    Riccardo

    Published by: user12581838 on February 8, 2010 23:58

    Published by: user12581838 on February 9, 2010 12:48 AM
    SQL> drop table CKCLASS_ALL;
    
    Tabella eliminata.
    
    SQL>
    SQL> CREATE TABLE CKCLASS_ALL
      2  (
      3    DATA_POPOLAMENTO  DATE,
      4    OBJ_CAT           CHAR(1 BYTE),
      5    NODE_ID           NUMBER,
      6    CA_V              VARCHAR2(256 BYTE),
      7    CB_V              VARCHAR2(256 BYTE),
      8    C1                NUMBER,
      9    C2                NUMBER
     10   )
     11  PARTITION BY RANGE (DATA_POPOLAMENTO)
     12  SUBPARTITION BY LIST (OBJ_CAT)
     13  (
     14    PARTITION ALL_20100130204500RQ VALUES LESS THAN (TO_DATE(' 2010-01-30 21:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN'))
     15   ( SUBPARTITION ALL_20100130204500RQL01 VALUES ('N')   ,
     16      SUBPARTITION ALL_20100130204500RQL02 VALUES ('L')  ),
     17    PARTITION ALL_20100130210000RQ VALUES LESS THAN (TO_DATE(' 2010-01-30 21:15:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN'))
     18    ( SUBPARTITION ALL_20100130210000RQL01 VALUES ('N')  ,
     19      SUBPARTITION ALL_20100130210000RQL02 VALUES ('L')  )
     20  );
    
    Tabella creata.
    
    SQL> insert into CKCLASS_ALL
      2  select TO_DATE(' 2010-01-30 20:50:00', 'SYYYY-MM-DD HH24:MI:SS'),'N',0,'X','Y',0,0
      3  from dual
      4  connect by level <= 150000;
    
    Create 150000 righe.
    
    SQL>
    SQL> insert into CKCLASS_ALL
      2  select TO_DATE(' 2010-01-30 20:50:00', 'SYYYY-MM-DD HH24:MI:SS'),'L',0,'X','Y',0,0
      3  from dual
      4  connect by level <= 150000;
    
    Create 150000 righe.
    
    SQL>
    SQL> insert into CKCLASS_ALL
      2  select TO_DATE(' 2010-01-30 21:10:00', 'SYYYY-MM-DD HH24:MI:SS'),'N',0,'X','Y',0,0
      3  from dual
      4  connect by level <= 150000;
    
    Create 150000 righe.
    
    SQL>
    SQL> insert into CKCLASS_ALL
      2  select TO_DATE(' 2010-01-30 21:10:00', 'SYYYY-MM-DD HH24:MI:SS'),'L',0,'X','Y',0,0
      3  from dual
      4  connect by level <= 150000;
    
    Create 150000 righe.
    
    SQL> CREATE BITMAP INDEX IX_CKCLASSALL_NODE ON CKCLASS_ALL
      2  (NODE_ID)
      3  LOCAL (
      4    PARTITION ALL_20100130204500RQ
      5    ( SUBPARTITION ALL_20100130204500RQL01  ,
      6      SUBPARTITION ALL_20100130204500RQL02  ),
      7    PARTITION ALL_20100130210000RQ
      8    ( SUBPARTITION ALL_20100130210000RQL01  ,
      9      SUBPARTITION ALL_20100130210000RQL02  )
     10  );
    
    Indice creato.
    
    SQL> set timing on
    
    SQL> begin
      2  DBMS_STATS.gather_table_stats (ownname  => 'MAXR',
      3  tabname               => 'CKCLASS_ALL',
      4  partname              => 'ALL_20100130204500RQL01',
      5  granularity => 'SUBPARTITION',
      6  estimate_percent      => DBMS_STATS.AUTO_SAMPLE_SIZE ,
      7  CASCADE               => FALSE);
      8  end;
      9  /
    
    Procedura PL/SQL completata correttamente.
    
    Passati: 00:00:04.57
    SQL> begin
      2  DBMS_STATS.gather_table_stats (ownname               => 'MAXR',
      3  tabname               => 'CKCLASS_ALL',
      4  partname              => 'ALL_20100130204500RQL02',
      5  granularity => 'SUBPARTITION',
      6  estimate_percent      => DBMS_STATS.AUTO_SAMPLE_SIZE ,
      7  CASCADE               => FALSE);
      8  end;
      9  /
    
    Procedura PL/SQL completata correttamente.
    
    Passati: 00:00:00.29
    SQL>
    SQL> begin
      2  DBMS_STATS.copy_table_stats (ownname => 'MAXR',
      3      tabname => 'CKCLASS_ALL',
      4      srcpartname => 'ALL_20100130204500RQ',
      5      dstpartname => 'ALL_20100130210000RQ');
      6  end;
      7  /
    
    Procedura PL/SQL completata correttamente.
    
    Passati: 00:00:00.65
    
    SQL> select PARTITION_NAME, NUM_ROWS, BLOCKS, EMPTY_BLOCKS, AVG_SPACE, CHAIN_CNT, AVG_ROW_LEN, SAMPLE_SIZE, LAST_ANALYZED
      2  from dba_tab_partitions
      3  where table_owner='MAXR';
    
    PARTITION_NAME                   NUM_ROWS     BLOCKS EMPTY_BLOCKS  AVG_SPACE  CHAIN_CNT AVG_ROW_LEN SAMPLE_SIZE LAST_ANAL
    ------------------------------ ---------- ---------- ------------ ---------- ---------- ----------- ----------- ---------
    ALL_20100130204500RQ               300000       1244            0          0          0          20     10-FEB-10
    ALL_20100130210000RQ
    
    SQL> select subPARTITION_NAME, NUM_ROWS, BLOCKS, EMPTY_BLOCKS, AVG_SPACE, CHAIN_CNT, AVG_ROW_LEN, SAMPLE_SIZE, LAST_ANALYZED
      2  from dba_tab_subpartitions
      3  where table_owner='MAXR';
    
    SUBPARTITION_NAME                NUM_ROWS     BLOCKS EMPTY_BLOCKS  AVG_SPACE  CHAIN_CNT AVG_ROW_LEN SAMPLE_SIZE LAST_ANAL
    ------------------------------ ---------- ---------- ------------ ---------- ---------- ----------- ----------- ---------
    ALL_20100130204500RQL01            150000        622            0          0          0          20   150000 10-FEB-10
    ALL_20100130204500RQL02            150000        622            0          0          0          20   150000 10-FEB-10
    ALL_20100130210000RQL01
    ALL_20100130210000RQL02
    
    -- DI NUOVO DROP/CREATE/INSERT
    
    SQL> begin
      2  DBMS_STATS.gather_table_stats (ownname               => 'MAXR',
      3  tabname               => 'CKCLASS_ALL',
      4  partname              => 'ALL_20100130204500RQL01',
      5  granularity => 'SUBPARTITION',
      6  estimate_percent      => DBMS_STATS.AUTO_SAMPLE_SIZE ,
      7  CASCADE               => FALSE);
      8  end;
      9  /
    
    Procedura PL/SQL completata correttamente.
    
    Passati: 00:00:00.34
    SQL>
    SQL>
    SQL> begin
      2  DBMS_STATS.gather_table_stats (ownname               => 'MAXR',
      3  tabname               => 'CKCLASS_ALL',
      4  partname              => 'ALL_20100130204500RQL02',
      5  granularity => 'SUBPARTITION',
      6  estimate_percent      => DBMS_STATS.AUTO_SAMPLE_SIZE ,
      7  CASCADE               => FALSE);
      8  end;
      9  /
    
    Procedura PL/SQL completata correttamente.
    
    Passati: 00:00:00.18
    SQL>
    SQL> begin
      2  DBMS_STATS.copy_table_stats (ownname => 'MAXR',
      3      tabname => 'CKCLASS_ALL',
      4      srcpartname => 'ALL_20100130204500RQL01',
      5      dstpartname => 'ALL_20100130210000RQL01');
      6  end;
      7  /
    
    Procedura PL/SQL completata correttamente.
    
    Passati: 00:00:00.06
    SQL>
    SQL> begin
      2  DBMS_STATS.copy_table_stats (ownname => 'MAXR',
      3      tabname => 'CKCLASS_ALL',
      4      srcpartname => 'ALL_20100130204500RQL02',
      5      dstpartname => 'ALL_20100130210000RQL02');
      6  end;
      7  /
    
    Procedura PL/SQL completata correttamente.
    
    Passati: 00:00:00.04
    SQL>
    
    SQL> select PARTITION_NAME, NUM_ROWS, BLOCKS, EMPTY_BLOCKS, AVG_SPACE, CHAIN_CNT, AVG_ROW_LEN, SAMPLE_SIZE, LAST_ANALYZED
      2  from dba_tab_partitions
      3  where table_owner='MAXR';
    
    PARTITION_NAME                   NUM_ROWS     BLOCKS EMPTY_BLOCKS  AVG_SPACE  CHAIN_CNT AVG_ROW_LEN SAMPLE_SIZE LAST_ANAL
    ------------------------------ ---------- ---------- ------------ ---------- ---------- ----------- ----------- ---------
    ALL_20100130210000RQ               300000       1244            0          0          0          20     10-FEB-10
    ALL_20100130204500RQ               300000       1244            0          0          0          20     10-FEB-10
    
    Passati: 00:00:00.03
    SQL> select subPARTITION_NAME, NUM_ROWS, BLOCKS, EMPTY_BLOCKS, AVG_SPACE, CHAIN_CNT, AVG_ROW_LEN, SAMPLE_SIZE, LAST_ANALYZED
      2  from dba_tab_subpartitions
      3  where table_owner='MAXR';
    
    SUBPARTITION_NAME                NUM_ROWS     BLOCKS EMPTY_BLOCKS  AVG_SPACE  CHAIN_CNT AVG_ROW_LEN SAMPLE_SIZE LAST_ANAL
    ------------------------------ ---------- ---------- ------------ ---------- ---------- ----------- ----------- ---------
    ALL_20100130204500RQL01            150000        622            0          0          0          20   150000 10-FEB-10
    ALL_20100130204500RQL02            150000        622            0          0          0          20   150000 10-FEB-10
    ALL_20100130210000RQL01            150000        622            0          0          0          20   150000 10-FEB-10
    ALL_20100130210000RQL02            150000        622            0          0          0          20   150000 10-FEB-10
    

    HTH

    Max

  • I have a new IMAC and it won't let me open up CS4, it says that I need to contact Adobe support for help and mention code 150:30 can't reach Adobe is very frustrating

    If anyone can help with a way to open the CS4 on my new IMAC.   Send a message with the code 150:30... don't know what to do.  Need your input please

    EV

    @

    Hi ev2068,

    Please follow the steps mentioned in the article.

    http://helpx.Adobe.com/x-productkb/global/error-licensing-stopped-Mac-OS.html

    So if you have used the Time Machine feature for dos applications, then I advise you to uninstall and reinstall the applications.

    Please post on the Adobe Forums.

  • Do we need to buy separate licenses for ESXi and VCenter and 5

    Hello

    I have confusion about the licensing model, I have 2 servers (2 socket) physical with 4 licenses of VMWARE VSPHERE 5 STANDARD 1 PROCESSOR, you can clear my doubts if I need to buy a separate license for VCenter Server and if so, which is the right one?

    Thank you

    Yes, vCenter Server needs to be licensed separately (VMware also offers packaged essentials and acceleration kits). Since you already have the CPU licenses, you can either watch the "vCenter Server Foundation" license that allows to manage up to 3 guests or 'vCenter Server Standard' license without this limitation.

    André

  • privileges for partitions and see them in object

    Hello

    Anyone seen this before? The dw team has an appid with privileges from read/write to a partitioned table.

    connected under appid adshX, I am able to choose among stgadm3. TMUTL_FND_POSN partition (p1)

    1 * select count (*) in the stgadm3. TMUTL_FND_POSN partition (p1)
    SQL > /.
    COUNT (*)
    --------------------------------------------------------------------------------
    927282

    again, logged in as adshX appid, I am able to choose among object, but only the name of the table is returned.
    SQL > select subobject_name, object_name, object_type, owner
    of object where owner = 'STGADM3' AND object_name = "TMUTL_FND_POSN";

    OWNER TYPE_OBJET PARAMETER SUBOBJECT_NAME
    --------------- ---------------------- --------------------- ----------------------
    STGADM3 TABLE TMUTL_FND_POSN

    If connected as sys or system, the partition table AND are returned from all_objectds.
    OWNER TYPE_OBJET PARAMETER SUBOBJECT_NAME
    --------------- ---------------------- --------------------- ----------------------
    STGADM3 TABLE PARTITION P1 TMUTL_FND_POSN
    STGADM3 TABLE TMUTL_FND_POSN P_MINUS_1 PARTITION
    STGADM3 TABLE TMUTL_FND_POSN

    In addition, the ID adshX have access to views dba_ *, but which returns the correct results.
    OWNER TYPE_OBJET PARAMETER SUBOBJECT_NAME
    --------------- ---------------------- --------------------- ----------------------
    STGADM3 TABLE PARTITION P1 TMUTL_FND_POSN
    STGADM3 TABLE TMUTL_FND_POSN P_MINUS_1 PARTITION
    STGADM3 TABLE TMUTL_FND_POSN

    My first thought was that some private was missing, but because they can read/write/create tables and partitions with this id, I don't know what other private, they would need so that the information will be displayed.

    It is an oracle 10g db.

    Thanks, Pete

    >
    My first thought was that some private was missing, but because they can read/write/create tables and partitions with this id, I don't know what other private, they would need so that the information will be displayed.
    >
    You can make it appear by granting the user to SELECT ANY TABLE or DBA, but you may not want to do. Even grant ON the table to the user allows you to hide the information of subpartion.

  • I had an email set in place, but now I need to see it only for history and start a new configuration

    I don't want to lose the old email accounts I can their need in the future, but I now work with Black Orchid sanctuary and will need a clean slate. I just need to be able to open a different Tbird

    In Thunderbird, move all the messages you want to keep your account "local folders".
    You can then delete your account in Thunderbird and re-create the account in any email client that you want to use.
    Make sure you have a backup of your Thunderbird profiles if folder and update Thunderbird.

  • Need to make small adjustments for jpg and overwrite the existing file

    I'm on Photoshop CC 2014 and I have hundreds of jpgs that just cropped and straightened. They are already copies of the originals, then there should be nothing that prevents me from doing these adjustments and quickly overwhelming with Cmd-S right? But I get the Save as dialog box which slows down the process considerably.

    It works wonders for a previous project and I'm updating PS between the two. I would straighten, crop, Cmd - S, move on to the next 1, pattern. Very fast. Thanks for any help!

    When trimming, make sure you have ' Delete cropped Pixels "checked.

Maybe you are looking for

  • Qosmio F20-137: connection to Hi Fi

    I have attached my Hi Fi laptop using the headphone jack (headphone to phono cable) and the sound is pretty poor. Y at - it another way to to get a better result or will I have to buy Toshiba's own surround speakers to get a decent sound?

  • Undo system restore option is failed upwards in the system restore menu.

    Original title: Undo system restore? My sound doesn't work on my windows XPS, I did a system restore, but not to the point of restoration before the sounds stopped working because it didn't go that far back. but now, I want to cancel the system resto

  • Problems installing with c4780 8.1 on windows (64-bit)

    I just bought a laptop HP Pavilion 10 (64-bit Windows 8.1). I have a 'All-in-one' HP 4780 printer that worked previously with happiness on Windows 7. Download of HP for the full program for W8 fails, saying that missing a file - temp\72s707d\setup\hp

  • HP psc 750 printing blank pages

    I know its an old model, but it was sent to my 11 year old son.  For some reason any (even with new ink cartridges) the printer go wrong print requests and test pages but don't actually print on the page.  It spits out a blank page.  What can I do to

  • Compaq presario 5102US: downloading files

    Hello I have an old computer with windows XP and IE8. I tried to download files and received the message that IE8 is no longer supported. He installed firefox as my new browser. My question is how can I download these files to the appropriate folder.