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

Tags: Database

Similar Questions

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

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

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

  • Using PARTITION FOR / SUBPARTITION FOR the syntax to insert

    We try to use PARTITION syntax for (or, better, SUBPARTITION of syntax) to insert into a table subpartitioned.
    http://docs.Oracle.com/CD/E11882_01/server.112/e26088/sql_elements009.htm#i165979
    08:26:46 GM_CS_CDR@oradev02> select * from v$version;
    
    BANNER
    --------------------------------------------------------------------------------
    Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
    PL/SQL Release 11.2.0.3.0 - Production
    CORE    11.2.0.3.0      Production
    TNS for Solaris: Version 11.2.0.3.0 - Production
    NLSRTL Version 11.2.0.3.0 - Production
    
    5 rows selected.
    This table is interval partitions DATA_ORIGIN_ID and list subpartitions on TABLE_NAME.

    First of all, an insert in base without specifying the partitions:
    08:10:05 GM_CS_CDR@oradev02> insert into key_ids2 (
    08:11:51   2  DATA_ORIGIN_ID         ,
    08:11:51   3  TABLE_NAME             ,
    08:11:51   4  DUR_UK                 ,
    08:11:51   5  DUR_UK_ID              )
    08:11:51   6  select
    08:11:51   7  12         ,
    08:11:51   8  TABLE_NAME             ,
    08:11:51   9  DUR_UK                 ,
    08:11:51  10  DUR_UK_ID              
    08:11:51  11  from key_ids where table_name = 'PART' 
    08:11:51  12  and rownum <= 10;
    
    10 rows created.
    Check SUBPARTITION to a SELECT statement syntax:
    08:19:43 GM_CS_CDR@oradev02> 
    08:26:45 GM_CS_CDR@oradev02> 
    08:26:45 GM_CS_CDR@oradev02> 
    08:26:45 GM_CS_CDR@oradev02> 
    08:26:45 GM_CS_CDR@oradev02> select count(*) from key_ids2 
    08:26:45   2  subpartition for(12,'PART');
    
      COUNT(*)
    ----------
            10
    
    1 row selected.
    But if we add a subpartition specification (to limit the locking to a single subpartition), we get a syntax error:
    08:14:57 GM_CS_CDR@oradev02> insert into key_ids2 subpartition for(12,'PART') (
    08:14:57   2  DATA_ORIGIN_ID         ,
    08:14:57   3  TABLE_NAME             ,
    08:14:57   4  DUR_UK                 ,
    08:14:57   5  DUR_UK_ID              )
    08:14:57   6  select
    08:14:57   7  14         ,
    08:14:57   8  TABLE_NAME             ,
    08:14:57   9  DUR_UK||'!'                 ,
    08:14:57  10  DUR_UK_ID              
    08:14:57  11  from key_ids 
    08:14:57  12  where table_name = 'PART' 
    08:14:57  13  and rownum <= 10;
    insert into key_ids2 subpartition for(12,'PART') (
                                         *
    ERROR at line 1:
    ORA-14173: illegal subpartition-extended table name syntax
    Specify the partition level did not work either:
    08:14:58 GM_CS_CDR@oradev02> insert into key_ids2 partition for(14) (
    08:15:23   2  DATA_ORIGIN_ID         ,
    08:15:23   3  TABLE_NAME             ,
    08:15:23   4  DUR_UK                 ,
    08:15:23   5  DUR_UK_ID              )
    08:15:23   6  select
    08:15:23   7  14         ,
    08:15:23   8  TABLE_NAME             ,
    08:15:23   9  DUR_UK||'!'                 ,
    08:15:23  10  DUR_UK_ID              
    08:15:23  11  from key_ids 
    08:15:23  12  where table_name = 'PART' 
    08:15:23  13  and rownum <= 10;
    insert into key_ids2 partition for(14) (
                                      *
    ERROR at line 1:
    ORA-14108: illegal partition-extended table name syntax
    But by specifying explicit partition and subpartition works:
    08:17:45 GM_CS_CDR@oradev02> insert into key_ids2 partition (SYS_P15127) (
    08:18:23   2  DATA_ORIGIN_ID         ,
    08:18:23   3  TABLE_NAME             ,
    08:18:23   4  DUR_UK                 ,
    08:18:23   5  DUR_UK_ID              )
    08:18:23   6  select
    08:18:23   7  12         ,
    08:18:23   8  TABLE_NAME             ,
    08:18:23   9  DUR_UK||'!'                 ,
    08:18:23  10  DUR_UK_ID              
    08:18:23  11  from key_ids 
    08:18:23  12  where table_name = 'PART' 
    08:18:23  13  and rownum <= 10;
    
    10 rows created.
    
    08:18:24 GM_CS_CDR@oradev02> insert into key_ids2 subpartition (SYS_SUBP15126) (
    08:19:42   2  DATA_ORIGIN_ID         ,
    08:19:42   3  TABLE_NAME             ,
    08:19:42   4  DUR_UK                 ,
    08:19:42   5  DUR_UK_ID              )
    08:19:42   6  select
    08:19:42   7  12         ,
    08:19:42   8  TABLE_NAME             ,
    08:19:42   9  DUR_UK||'!#'                 ,
    08:19:42  10  DUR_UK_ID              
    08:19:42  11  from key_ids 
    08:19:42  12  where table_name = 'PART' 
    08:19:42  13  and rownum <= 10;
    
    10 rows created.
    We have succeeded by using the syntax of PARTITION for tables partitioned, but not sous-partitionnee.

    Any ideas?

    Thank you
    Mike

    Support of Oracle reproduced this issue. The resolution was to ensure cursor_sharing is set to "EXACT", we happened to use "SIMILAR" in this case due to a migration of 10 g and 11 g.

    Please visit 1481564.1 for more information.

  • Collection of statistics on partitioned and non-partitioned tables

    Hi all
    My DB is 11.1

    I find that the collection of statistics on partitioned tables are really slow.
    TABLE_NAME                       NUM_ROWS     BLOCKS SAMPLE_SIZE LAST_ANALYZED PARTITIONED COMPRESSION
    ------------------------------ ---------- ---------- ----------- ------------- ----------- -----------
    O_FCT_BP1                        112123170     843140    11212317 8/30/2011 3:5            NO                    DISABLED
    LEON_123456                      112096060     521984    11209606 8/30/2011 4:2           NO                   ENABLED
    O_FCT                           115170000     486556      115170 8/29/2011 6:3            YES         
    
    SQL> SELECT COUNT(*)  FROM user_tab_subpartitions
      2  WHERE table_name =O_FCT'
      3  ;
    
      COUNT(*)
    ----------
           112
    I used the following script:
    BEGIN
      DBMS_STATS.GATHER_TABLE_STATS(ownname          => user,
                                    tabname          => O_FCT',
                                    method_opt       => 'for all columns size auto',
                                    degree           => 4,
                                    estimate_percent =>10,
                                    granularity      => 'ALL',
                                    cascade          => false);
    END;
    /
    It costs 2 minutes for the first two tables to gather statistics respectively, but more than 10 minutes for the partitioned table.
    Time of collection of statistics represents a large part of the time of the whole lot.
    Most of the work of the lot are at full load, which case all partitions and subpartitions will be affected and we cannot collect just specified partitions.

    Does anyone have experiences on this subject? Thank you very much.

    Best regards
    Leon

    Published by: user12064076 on August 30, 2011 01:45

    Hi Leon

    Why don't collect you statistics to the partition level? If your data partitions will not change after a day (score range date for ex), you can simply do to the partition level

    GRANULARITY-online 'SCORE' for partition level and
    GRANULARITY-online 'SUBPARTITION' for subpartition level

    You collect global stats whenever you can not require.

    Published by: user12035575 on August 30, 2011 01:50

  • Shrinking Bootcamp partition and add space for Macintosh HD

    Guys, after helping me with my previous question, my Macbook is almost as I want it to be. As said, I have a Macbook Pro 15 "retina end 2013 with OS X El Captain (later) and in addition, a Bootcamp with Windows partition 8.1." It's that everything works fine now, but the partition Windows 8.1 has 300 GB and my score only 80 GB hard drive Macintosh.

    I wanted to shrink the partition, Bootcamp in Windows 8, 1 with Minitool Partition software but, obviously, when I reduce this score I get unallocated space that I can't turn into a new partition because I have 4 partitions in the MBR slot. So, what is the best way to reduce my Bootcamp partition and add space on the Macintosh HD partition?

    Thank you very much!

    Remove the Boot Camp partition, and Windows using Boot Camp Assistant. Then start to affect the size of the Boot Camp partition you want.

  • Bootcamp (Win10) has not started after you changed the partition and updated at El Cap.

    I have a MacBook Pro (retina, 15 inches, end of 2013), 2 GHz Intel Core i7 with 8 GB of Ram.

    I had 2 system installed, Win 10 + Yosemite from the windows of beginning and the use of most of the time.

    Yesterday, I ran out of disk space and passed the partition in OS X with disk utility.

    While I changed the partition and I also upgraded to the El Cap.

    After all, I can't start by winning 10 more, although I could see my windows in the startup disk Control Panel.

    I checked some thread here and mess with command autour terminal, but nothing has worked for me.

    Here is the result of diskutil:

    Jerbins-MacBook-Pro: ~ the jerbinyuan list $ diskutil

    / dev/disk0 (internal, physical):

    #: NAME SIZE TYPE IDENTIFIER

    0: GUID_partition_scheme * GB 251,0 disk0

    1: disk0s1 EFI EFI 209.7 MB

    2: Apple_HFS Macintosh HD 70.1 GB disk0s2

    3: disk0s3 Apple_Boot Recovery 650.0 MB HD

    4: Microsoft data base BART 30.0 GB disk0s4

    5: Microsoft database HOMER 150,0 GB disk0s5

    Jerbins-MacBook-Pro: ~ list of cs jerbinyuan$ diskutil

    No logical volume group CoreStorage found

    Jerbins-MacBook-Pro: ~ jerbinyuan$ sudo TPG - vv - r show/dev/disk0

    Password:

    See the TPG: / dev/disk0: mediasize = 251000193024; SectorSize = 512; blocks = 490234752

    See the TPG: / dev/disk0: MBR suspicious to sector 0

    See the TPG: / dev/disk0: Pri GPT to sector 1

    See the TPG: / dev/disk0: GPT Sec at sector 490234751

    start index size summary

    0 1 MBR

    1 1 Pri GPT header

    2 32 table GPT Pri

    34 6

    40 409600 1 part TPG - C12A7328-F81F-11D2-BA4B-00A0C93EC93B

    409640 136992184 2 part TPG - 48465300-0000-11AA-AA11-00306543ECAC

    137401824 1269536 3 part TPG - 426F6F74-0000-11AA-AA11-00306543ECAC

    768 138671360

    138672128 58595328 4 part TPG - EBD0A0A2-B9E5-4433-87C0-68B6B72699C7

    197267456 292966400 5 part TPG - EBD0A0A2-B9E5-4433-87C0-68B6B72699C7

    490233856 863

    490234719 32 table dry GPT

    490234751 1 dry GPT header

    Jerbins-MacBook-Pro: ~ jerbinyuan$ sudo fdisk/dev/disk0

    Disk: geometry / dev/disk0: 30515/255/63 [490234752 sectors]

    Signature: 0xAA55

    From end

    #: cyl hd s - cyl hd s id [Start - size]

    ------------------------------------------------------------------------

    1: EA 1023 254 63 - 1023 254 63 [1-409639] < unknown ID >

    2: AF 1023 254 63 - 1023 254 63 [409640-136992184] HFS +.

    3: AB 1023 254 63 - 1023 254 63 Boot Darwin [137401824-1269536]

    4: 0 b 1023 254 63-1023 254 63 [138672128-58595328] Win95 FAT-32

    Jerbins-MacBook-Pro: ~ jerbinyuan$ sudo dd if = / dev/rdisk0s4 account = 1 2 >/dev/null | hexdump - C

    00000000 2nd eb 58 90 42 53 44 20 20 34 34 00 02 20 20 00 | X.BSD 4.4...  .|

    00000010 02 00 00 00 00 00 00 20 00 f8 ff 00 00 f8 43 08 |... C. |

    18 00 00000020 7th e0 03 37 00 00 00 00 00 00 02 00 00 00 |... ~... 7..........|

    00000030 01 06 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |... |

    00000040 80 00 29 11 14 2f 2 a 42 41 52 54 20 20 20 20 20 |..) ... / * BART |

    00000050 20 20 46 41 54 33 32 20 20 20 31 c0 d0 bc 8F fa |  FAT32. 1... |

    00000060 00 7 c fb 8th d8 e8 00 00 83 19 bb 07 00 fc 5th c6 | | ......^.......|

    00000070 c0 ac 84 74 b4 06 0e cd 10 eb 30 cd 16 cd e4 f5 |... t... 0....|

    00000080 19 0D 0a 4th 6f 6F 2d 73 79 73 74 65 6 d 20 64 69 |... Nonsystem di |

    00000090 73 6B 0D 0 a 50 72 65 73 73 20 61 79 20 6 6 b 65 | SK... Press any ke |

    000000a 0 79 20 74 6f 20 72 65 62 6f 6f 74 0D 0 a 00 00 00 | is reboot... |

    000000b0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |... |

    *

    000001f0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 55 aa |... U. |

    00000200

    Jerbins-MacBook-Pro: ~ jerbinyuan$ diskutil info/dev/disk0s5

    Identifier of the instrument: disk0s5

    Device node: / dev/disk0s5

    Set: No.

    Part of the whole: disk0

    Device / media name: BOOTCAMP

    Volume name: HOMER

    Gendarmerie: Yes

    Mount point: / Volumes/HOMER

    Personality of file system: NTFS

    Type (Bundle): ntfs

    Name (Visible to the user): Windows NT (NTFS) file system

    Partition type: Microsoft Basic Data

    Operating system can be installed: No.

    Media type: generic

    Protocol: PCI

    Smart: checked

    Volume UUID: 4EC75B8E-02A8-4B26-B7F3-5EA9D0A47FA9

    Disk / Partition UUID: 776C43C1-7E4C-4997-BDF5-A91FD406DEBD

    Total size: 150.0 GB (149998796800 Bytes) (exactly 292966400 512-Byte-units)

    Amount of free space: 18.5 GB (18479718400 Bytes) (exactly 36093200 512-Byte-units)

    Device block size: 512 bytes

    Allocation block size: 4096 bytes

    Support read-only: No.

    Volume read-only: Yes

    Location of the device: internal

    Removable media: no

    Solid State: Yes

    Thanks for help.

    Please follow the steps described in [help] can not boot Windows (8.1) after partition resizing .

  • I create the partition, bootcamp and error when the window installation, after that back to el capitan os, but it can not find the bootcamp partition and can't erase the master disk to re install mac os

    Can't see the deleted on el capitan bootcamp partition and can recover hard disk space

    making and removing the bootcamp partition should be always and only with BootcampAssitant!

  • System partitions and upgrade to Windows 7, Linux

    Yesterday, I bought my first CV - ProBook 4515 s model with SLED 11 Linux preinstaled. Given that I'm not familiar with Linux systems first thing I did was to install Windows 7.

    My laptop came with 4 partitions that is formatted in a file system that Windows does not recognize. I'm guessing a partition for installing Linux, two of them are system (HP_TOOLS and HP_RECOVERY) partitions and the fourth was just an empty disk. So I formatted the fourth partition and installed Windows 7.

    The problem is now that I am out of system partitions, so can not access other software preinstaled and QuickLook. I tried a single partition format and rename it to HP_TOOLS and then tried to install QuickLook v. 3 but the facility reported that my system has not been supported? I don't want to mess with the other partitions in the fear that I could remove the BIOS, but want to sort this mess up and would certainly like to have some of the options that is is installed with the system.

    Any suggestions?

    Message edited by Martine on 14/10/2009 14:07

    I think that the HP_TOOLS and HP_RECOVERY partitions are formatted as ext2 or ext3 file system, Windows cannot read. It can only read NTFS and FAT32. There is no way I can think to convert the ext2\3 to NTFS without keeping the integrity of the system. In addition, the files are all intended for linux and not Windows. He has makes no sense to do that. That said, I'm not sure if your laptop has Windows 7 drivers now.

  • ProBook 650: Drive Partitions and Windows 10 upgrade

    Hello

    I'm here to find some information on Windows 10 because I want to upgrade my system, now it's Windows 7 Pro (64 bit). I downloaded the Windows ISO 10N Pro yet and before doing the upgrade, I'll create a complete backup of my drive using Macrium Reflect.

    I have now four partitions:

    1. Active NTFS, 500 MB system
    2. (: C) primary NTFS
    3. (: D) HP Recovery - NTFS primary
    4. (:) E HP Tools - primary NTFS

    In which partition Windows 10 installs?

    I have to choose, or it's an automatic installation?

    I should delete some of the partitions?

    W10 upgrade will remove one or more partitions?

    Thank you very much for your help!

    PS: how to check if the driver are compatible with W10?

    I upgraded to win10 of many PC Win7 - and everyone had some issues that needed to be overcome.

    Your plan to make an image with MR backup is the best approach, because, although Microsoft says that there is no risk in the upgrade of Win10, because they allow you to believe that you can always go back to your original OS and setup within 30 days, the ugly fact of the matter is that the Win10 GoBack feature turned out to be unreliable - and when it fails She can let the machines in a corrupt State - which is not always the case, it happens often enough to be a problem, but you will get no warning beforehand that he goes to the trash your PC!

    With regard to your questions:

    (1) installation partition: you already have 4 partitions at a higher level, so unless your drive is formatted in GPT (which is probably isn't), you WON'T get a meaningful choice about where to install Win10, because only the C: partition will be enough space.

    (2) deletion of partitions: while you can migrate HP tools stuff it into the C: partition and then delete HP_TOOLS, which really won't help much because this space is much too small to be useful.

    (3) with the recovery partition.  Don't count on that it works. The Win10 upgrade is known, in some cases, corrupt the partition of recovery that are stored by the OEM that built the original machine.  It's pretty much guarantee that no HP recovery will work. Thus, based on the recovery of Win7 partition back to Win7 is a mistake.

    Your backup of Mr. is safest and most reliable way to have a backup plan to return to Win7.  You do not mount the image to a restoration, instead, you start from media that you have created using MR, connect the external hard drive and then use the restore option to select the backup that you did.  So, be sure to exercise the option MR to create bootable media, you will need later to do a restore.

    Good luck
    ========================================================================
    I'm a volunteer and I do not work for, or represent, HP.
    ---------------------------------------------------------------
    If my post helped you, please click on the Thumbs-Up symbol on my post to say thank you.
    If my posts resolved your issue please click "accept as a Solution.
    ========================================================================

  • Question of partition: partition and narrower than the disk space

    Hi, I have a big problem with OS X El Capitan 10.11.3.

    I used to have a Windows partition with bootcamp which I deleted via bootcamp, but it crashed.

    I lost all my partitions and even os x. I have therefore started in recovery mode and launched disk utility, I could not create a partition OS X 90Go on my 120 GB SSD, and I installed OS X on it. Once installed, I have tried to maximize the size of the partition in disk utility to the actual size of the SSD, but it wouldn't work. Worse still, it actually shows my OS X partition a 60 GB instead of 90... (we also say that change log has not been activated, I allowed him but nothing happened)

    How can I make my OS X partition as big as my SSD?

    Here are some pictures of the utility disc and occupied disk space.

    Try to launch the Boot Camp again to see if it will delete the partition. It acts like it doesn't have.

  • partitions and recovery disk

    I have a satellite a10 and have partitioned the hard drive. Now, I have a small primary fat16 partition with a bootmanager, a partition main ntfs with windows xp and a partition extended, completely occupied by logical ntfs partitions with my documents. My wish was to install another operating system, making the smaller primary ntfs partition and put in the form of free space unallocated as a new primary partition.
    BUT... when I was doing the smaller partition, an error has occurred, and the computer is unbootable. Now, I think, my windows partition is damaged and have no chance to save.
    WHEN I try to use the toshiba recovery cd, will I have any chance not to format the entire disk, backup of my documents? Is possible to format (install Windows inside) that the space left by the corrupted partition?

    Thanks to all those who will read and help me!

    Hello

    Try the recovery for the professional Mode. In my view, this will help you.

  • Missing Mac 8.1 Windows partition and Bootcamp

    So, I have seen very similar messages and followed several forums, but I can't yet figure out what to do next.

    I have 8.1 Windows on my Mac.  I wanted to repartition the Windows partition and make bigger it because I was running low on space, and the Windows partition is what I use it mostly for graduate studies.  About a year ago, I took an easy youtube video and used Mini Wizard Partition re-partition space and it worked perfectly.  I have found the same video and tried to repartition the Windows partition again, but apparently I royally screwed up.

    My BootCamp is not yet visible more in disk utility.  Under the partitions, there is an option called "disk0s4" greyed, but I'm not allowed to do something with it.  I can't verify or repair.  If I go to Applications, BootCamp Assistant is there, but he wants me to start the installation of BootCamp.  It was not an option to restart Windows more, and when I turned on with alt + market, Windows was not an option more.

    I followed this tutorial:

    http://nerdr.com/bootcamp-partition-lost-repairing-Mac-partitions/

    and when I restarted my Mac, restart Windows was an option. So I thought that I fixed it! EVIL.  My screen was black and said: 'Missing Operating System '.

    I downloaded EaseUS Data Recovery Wizard for Mac (because it was another suggestion), and I was able to recover and see the files on the NTFS disk0s4, so I'm quite positive, they have not all been completely erased.  Or at least the part of basic Windows is still there.  I can't recover the drive to anything, because it tells me that I will just be fitness on the same drive, and I honestly don't know how to retrieve these files will help with the side of the partition of things.

    I also used TestDisk and it seemed to find my missing partition, but in the middle of analysing it, it says something like "disk too small."  After further research, I went through and took only the most recent score that seemed to be deleted with NTFS, and when you are trying to do, it would allow me to make a 'logic' partition because he said something in red, as 'bad file.'

    My Mac still works perfectly, but I'm terribly need to recover my windows.  All suggestions are useful!  Thank you!

    Last login: Wed Mar 9 16:30:28 on ttys001

    Anna-Owenss-MacBook-Pro: ~ acowens1$ sudo gdisk/dev/rdisk0; "exit";

    GPT fdisk (gdisk) version 1.0.1

    WARNING: Open with shared lock devices will not have their

    table partition automatically reloaded!

    Scanning partition table:

    MBR: hybrid

    BSD: absent

    APM: absent

    TPG: present

    Found a valid GPT with hybrid MBR; using GPT.

    Command (? for help): p

    Disk/dev/rdisk0: 625142448 sectors, GiB 298,1

    Logical sector size: 512 bytes

    Identifier (GUID) of disc: 0000429B-368F-0000-CB2D-000003440000

    Partition table contains up to 128 entries

    First usable sector is 34, last usable area is 625142414

    The partitions will be aligned with the boundaries of sector 8

    Space free total is 277435021 areas (132,3 GiB)

    Starting number (sector) end (sector), Code name of size

    409639 40 1 200.0 MiB EF00 EFI system partition

    2 409640 268314855 127.7 giB customer AF00

    3 268314856 269584391 619.9 MiB AB00 Recovery HD

    4 547018752 625141759 37.3 giB 0700 BOOTCAMP

    Command (? for help): r

    Recovery/processing command (? for help): o

    Size of the disk is 625142448 areas (298,1 GiB)

    MBR disk identifier: 0x0000711C

    MBR partitions:

    Code of State sector Boot start end sector number

    1 1 547018751 primary 0xEE

    2 * 547018752 625141759 0 x 07 elementary school

    Recovery/processing command (? for help): h

    CAVEAT! Hybrid MBRs are flaky and dangerous! If you decide to not use one,

    Simply press enter at the prompt below and your partition table MBR will be

    be intact.

    Type one to three GPT partition numbers, separated by spaces, to be

    added to the hybrid MBR, in order: 2 3 4

    Partition of EFI GPT (0xEE) place first in the MBR (good for GRUB)? (Y/N): y

    Create entry for the #2 GPT partition (partition MBR #2)

    Enter a hex code MBR (default AF): n

    Set the bootable flag? (Y/N): n

    Create entry for the #3 GPT partition (partition MBR #3)

    Enter a hex code MBR (default AB):

    Set the bootable flag? (Y/N): n

    Create entry for the #4 GPT partition (partition MBR #4)

    Enter a hex code MBR (default 07):

    Set the bootable flag? (Y/N): y

    Recovery/processing command (? for help): o

    Size of the disk is 625142448 areas (298,1 GiB)

    MBR disk identifier: 0x0000711C

    MBR partitions:

    Code of State sector Boot start end sector number

    1 1 409639 primary 0xEE

    2 409640 268314855 primary 0 x 01

    3 268314856 269584391 primary 0xAB

    4 * 547018752 625141759 0 x 07 elementary school

    Recovery/processing command (? for help):

    I followed the suggestions of the post, but I was not allowed to use the option of 3 4 5 or rather 2 3 4 type, because #5 has been "too big or did not exist."  I'm at the point where I should be typing w (write) but I won't enter this command if it is not correct.

  • Format HARD drive, delete the recovery partition and recover with disc

    Hello

    I have a laptop Satellite C660D-17F and want to format my HDD, remove the recovery partition and recover the preinstalled Windows 7 and other software. I don't want to keep my own data, which are all stored already, I just want to be sure I can safely restore preinstalled stuff. I have a few questions that I need help to clear up before I go ahead.

    Am I right in thinking the dvd recovery disc I made when I got to my laptop has all the software and drivers that I need on this subject, the same that would have the recovery partition? If I do another room to spare in now just to be sure only will they have the out-of-box default stuff: OS, software and drivers on any of my data?

    I found [this post | http://www.mytoshiba.com.au/support/items/faq/71] which explains the recovery process. If I select "Erase the hard drive" (so I can wipe my hard drive and delete the recovery partition too) what happens after that? It will restore the OS and the software for the backup of dvd drive? Will the process after that recreate a recovery partition (which I don't)?

    Added SIDENOTE:
    I actually prefer to be able to choose what programs preinstalled settle after that I have format, but I'm guessing that probably isn't possible and will settle for install everything and remove what I'm after. Or is there a way?

    Sorry, I know that was a long post, but I want to be sure of what will happen BEFORE I'll and spoil things! :) If you got this far, thanks for reading. :)

    Hello

    I will try to offer help. ;)
    > Am I right in thinking the dvd recovery disc I made when I got to my laptop has all the software and drivers that I need on this subject, the same that would have the recovery partition?
    Yes. Saved on recovery discs recovery image contains the operating system, all necessary drivers, specific Toshiba and utility tools and some additional software.
    > If I do another room to spare in now just to be sure only will they have the out-of-box default stuff: OS, software and drivers on any of my data?
    Preinstalled Toshiba Recovery creator make recovery disc that includes the recovery image only. It has nothing to do with your personal data.
    > I found this post that explains the process of recovery. If I select "Erase the hard drive" (so I can wipe my hard drive and delete the recovery partition too) what happens after that?
    After that, you should use recovery disks created for the recovery image installation.
    > Will the process after that recreate a recovery partition (which I don't)?
    When you use the recovery disc for your laptop recovery image installation will have factory settings which include the recovery saved on the HARD disk image. To be honest I do not understand why you do not want to have this recovery image on the HARD drive. This allows the installation of recovery using recovery of HARD drive option. But of course you can delete it later for more free space on your HARD drive. Installation image that you can always use created for recovery discs-recovery DVDs.
    > I'd really rather be able to choose what programs preinstalled settle after that I have format, but I'm guessing that probably isn't possible and will settle for install everything and remove what I don't want after
    Fix.

    Also - check http://aps2.toshiba-tro.de/kb0/HTD1303440001R02.htm

    Good luck and if you have any other questions feel free.

Maybe you are looking for

  • Can I connect a DVI - DL my end 2012 Mac Mini input?

    Hi all... I have a question...  I have a Late 2012 Mac Mini and I just bought a new BenQ XL2411Z 24 "play.  It supports the 1ms and up to 144 Hz.  I know that my Mac Mini (end 2012) has an Intel 4000 1.5 GB graphics installed in it.  Can I use via th

  • Crash when moving from a structure in a call library function node

    I am trying to use a type of Fortran (which I think is similar to a struct) in a LabVIEW call library function node.  I read a few remedies to this topic, but I'm not quite sure if I need to add the name of the parameter list of the node structure. 

  • 5740 HP e-all-in-one printer: how to change the destination for the scans folder

    I bought a HP Officejet 5740 e-all-in-one printer I connected wireless to a Win 7 PC. A month later, I added a new win 10 PC in my network (LAN), and I also installed the printer on this new PC. When I went to scan a document using the HP (NO Windows

  • Slow shortcut key

    Hello This is my first question I ask here, I hope that I have to do everything right. I use Windows Vista and has created 3 shortcut keys for my most important shortcuts.Shortcuts are placed on my desk and I assign shortcut keys: CTRL + ALT + F1 (F2

  • I was called by a man saying he was with Microsoft, and that someone tried to hack my computer.

    * Original title: mess up BIG TIME I was called by a man saying he was with Microsoft, and that someone tried to hack my computer.  They consulted my system through a program called somewhere or some how some way when I told them that I had already p