Split Max partition

I've 20gb table which has been partitioned by range (yearly basis ans quaterly basis).
And most of the data has been stored in the max partition and segment size is increasing faster.
Now I want to get rid of max partition and divide the table with more partitions which would capture data yearly.This way I can have only 2 years worth data on production and partition can be dropped easily after moving to datawarehouse .
Kindly suggest.Partitions I want to split is yearly like
"PARTITION "2008" VALUES LESS THAN (TO_DATE(' 2009-01-01 00:00:00',
TABLESPACE "LLS_DATA01" NOCOMPRESS"
Below is the table desc
CREATE TABLE "LLS"."test"
(     "STARTDATE" DATE NOT NULL ENABLE,
     "CALLID" CHAR(9 BYTE) NOT NULL ENABLE,
     "CUSTOMERLLSID" NUMBER,
     "CRCLIENTLLSID" NUMBER,
     "EAPLLSID" NUMBER,
     "EAPCOMMROOMID" NUMBER,
     "LANGID" VARCHAR2(5 BYTE),
     "CRCLIENTID" VARCHAR2(20 BYTE),
     "PERSONALCODE" VARCHAR2(255 BYTE),
     "PIN" NUMBER,
     "SPECIALPROMOCODE" VARCHAR2(4 BYTE),
          "PREBILLESTIMATE" NUMBER,
     CONSTRAINT "LANID" CHECK ( LANID IN ('A', 'B','C','E','P') ) ENABLE,
     CONSTRAINT "TRUE_OR_FALSE_IC1" CHECK (InterpreterLunchAdjustmentMade IN ('T', 'F') ) ENABLE,
     CONSTRAINT "TRUE_OR_FALSE_IC2" CHECK (DontBillCustomer IN ('T', 'F') ) ENABLE,
     CONSTRAINT "TRUE_OR_FALSE_IC3" CHECK (DontPayInterpreter IN ('T', 'F') ) ENABLE,
     CONSTRAINT "TRUE_OR_FALSE_IC4" CHECK (RecordChanged IN ('T', 'F') ) ENABLE,
     CONSTRAINT "TRUE_OR_FALSE_IC5" CHECK (LogicalDelete IN ('T', 'F') ) ENABLE,
     CONSTRAINT "XPKINTERPRETATIONCALLS" PRIMARY KEY ("INTERPRETATIONSTARTDATE", "CALLID")
TABLESPACE "LLS_INDX01" ENABLE
TABLESPACE "U12_DATA"
PARTITION BY RANGE ("STARTDATE")
(PARTITION "2007Q3" VALUES LESS THAN (TO_DATE(' 2007-10-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN'))
TABLESPACE "LLS_INTCALLS_DATA01" NOCOMPRESS ,
PARTITION "2007Q4" VALUES LESS THAN (TO_DATE(' 2008-01-01 00:00:00',
TABLESPACE "LLS_DATA01" NOCOMPRESS ,
PARTITION "CALLSMAX" VALUES LESS THAN (MAXVALUE)
TABLESPACE "LLS_INTCALLS_DATA01" NOCOMPRESS ) ;

Go to Morgan's Library: www.morganslibrary.org/reference.html
Select PARTITIONING
Search for "Split Partition"
If you like the library ... bookmark the page.

Similar Messages

  • Diskutil problems when trying to split mac partition

    I'm having some serious issues trying to get my mac to partition properly. I think my computer hates me. Anyways, when I try to use diskutil to split my partition up into four partitions i get an odd error that I can't find anywhere online - it says "Resizing encountered error on disk disk0s2 MacOSX: Operation not supported by device (19)", the diskutil list displays:
    /dev/disk0
    #: TYPE NAME SIZE IDENTIFIER
    0: GUIDpartitionscheme *149.1 Gi disk0
    1: EFI 200.0 Mi disk0s1
    2: Apple_HFS MacOSX 148.6 Gi disk0s2
    and the command I've run is:
    sudo diskutil resizeVolume disk0s2 60G "Ext2" "Linux" 20G "NTFS" "Windows" 68G
    and I've installed plugins to handle the Ext2 and NTFS formats, so I have no freaking clue what's going on, please help! Thank you very much in advance!

    You have to specify the numberOfPartitions you are adding:
    sudo diskutil resizeVolume disk0s2 60G 2 "Ext2" "Linux" 20G "NTFS" "Windows" 68G

  • AVOID Subpartition(list) to be created when Splitting Main Partition(range)

    I have created a table structure as below:
    CREATE TABLE TEST_SUBPARTITIONS_1
    RECORD_ID INTEGER NOT NULL,
    SUB_ID VARCHAR2(100),
    COBDATE DATE,
    DESC VARCHAR2(2000)
    PARTITION BY RANGE (COBDATE)
    SUBPARTITION BY list(SUB_ID)
    PARTITION INITIAL_PARTITION VALUES LESS THAN (TO_DATE(' 2200-01-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN'))
    TABLESPACE TBS_DATA
    PCTFREE 10
    INITRANS 1
    MAXTRANS 255
    STORAGE
    INITIAL 64K
    NEXT 1M
    MINEXTENTS 1
    MAXEXTENTS UNLIMITED
    (SUBPARTITION INITIAL_SUBPARTITION VALUES ('INITIAL_DUMMY_SUB_ID') TABLESPACE TBS_DATA
    CREATE UNIQUE INDEX TEST_SUBPARTITIONS_1_PK ON TEST_SUBPARTITIONS_1 (COBDATE, RECORD_ID, SUB_ID) LOCAL;
    ALTER TABLE TEST_SUBPARTITIONS_1 ADD CONSTRAINT TEST_SUBPARTITIONS_1_PK PRIMARY KEY (COBDATE, RECORD_ID, SUB_ID);
    I am partitioning the table based on range (COBDATE) and subpartitioning based on list (SUB_ID).
    The table now is created with initial partitions and initial subpartition.
    We are splitting the partitions in our procedure as below
    ALTER TABLE TEST_SUBPARTITIONS_1 SPLIT PARTITION
    TST_SUB_R21001231 AT (TO_DATE(20130220,'YYYYMMDD') ) INTO
         (PARTITION TST_SUB_R20130219 TABLESPACE TBS_DATA, PARTITION TST_SUB_R21001231)
    The partition is getting split correctly with new partition as
    TST_SUB_R20130219, but the subpartition is also created automatically with some 'SYS' name.
    (i.e Name: SYS_SUBP693 , Values: INITIAL_DUMMY_SUB_ID)
    This happens after every split of range by COBDATE.
    Here it has created as below:
    Partition          SubPartition
    TST_SUB_R21001231     INITIAL_SUBPARTITION
    TST_SUB_R20130219     SYS_SUBP693
    TST_SUB_R20130220     SYS_SUBP694
    TST_SUB_R20130221     SYS_SUBP695
    I want to AVOID splitting subpartition when I split the main partition
    i.e a SYS subpartition should not be created when I split the partition for COBDATE.
    Let me know how do I avoid this in main "alter statement" above?
    Any other solution?     I do not want to drop the SYS subpartition later, instead want it to avoid creating only when I split the partition.

    >
    I want to AVOID splitting subpartition when I split the main partition
    i.e a SYS subpartition should not be created when I split the partition for COBDATE.
    Let me know how do I avoid this in main "alter statement" above?
    Any other solution? I do not want to drop the SYS subpartition later, instead want it to avoid creating only when I split the partition.
    >
    The subpartitions aren't being split. Oracle is creating new subpartitions for the new partition. The subpartitions need to exist since that is where the data is stored.
    You can avoid the SYS prefix on the name though by using a different naming convention.
    See the 'Splitting a *-List Partition' section of the VLDB and Partitioning Guide
    http://docs.oracle.com/cd/E11882_01/server.112/e25523/part_admin002.htm#i1008028
    >
    The ALTER TABLE ... SPLIT PARTITION statement provides no means of specifically naming subpartitions resulting from the split of a partition in a composite partitioned table. However, for those subpartitions in the parent partition with names of the form partition name_subpartition name, the database generates corresponding names in the newly created subpartitions using the new partition names. All other subpartitions are assigned system generated names of the form SYS_SUBPn. System generated names are also assigned for the subpartitions of any partition resulting from the split for which a name is not specified. Unnamed partitions are assigned a system generated partition name of the form SYS_Pn.

  • Can't boot into Windows after splitting Mac partition with Disk Utility

    Hi everyone,
    I installed Windows 8 with BOOTCAMP, creating a large 871 GB partition with a smaller 127 GB partition for Windows. After installing Windows, I then went back to Disk Utility to shrink the Mac partition and add two new partitions, one for storage and another blank, hoping to use it to install Linux into one day.
    I did that, and now Windows doesn't boot. A Windows blue screen tells me I need to use the Windows DVD to repair it.
    I tried to use Disk Utility to delete the two new partitions I made and grow the Mac partition back to the max size of 871 GB. But it doesn't let me do this. The Disk Utility log doesn't report an error and thinks it worked but the partition stays the same size. However if I make the partition a little smaller, like 870 GB then it works. I'm wondering if the Recovery partition is hiding there and preventing me from fully expanding the Mac partition.
    What can I do?
    Here's what I get if I type in sudo gpt -r -vv show disk0:
    Code: 
    gpt show: disk0: mediasize=1000204886016; sectorsize=512; blocks=1953525168 gpt show: disk0: Suspicious MBR at sector 0 gpt show: disk0: Pri GPT at sector 1 gpt show: disk0: Sec GPT at sector 1953525167 start        size  index  contents 0           1         MBR 1           1         Pri GPT header 2          32         Pri GPT table 34           6 40      409600      1  GPT part - C12A7328-F81F-11D2-BA4B-00A0C93EC93B 409640  1701278816      2  GPT part - 48465300-0000-11AA-AA11-00306543ECAC 1701688456     1269536      3  GPT part - 426F6F74-0000-11AA-AA11-00306543ECAC 1702957992     1846360 1704804352   248002560      4  GPT part - EBD0A0A2-B9E5-4433-87C0-68B6B72699C7 1952806912      718223 1953525135          32         Sec GPT table 1953525167           1         Sec GPT header
    Here's what I get if I type sudo fdisk /dev/rdisk0:
    Code: 
    Disk: /dev/rdisk0     geometry: 121601/255/63 [1953525168 sectors] Signature: 0xAA55 Starting       Ending #: id  cyl  hd sec -  cyl  hd sec [     start -       size] ------------------------------------------------------------------------ 1: EE 1023 254  63 - 1023 254  63 [         1 -     409639] <Unknown ID> 2: AF 1023 254  63 - 1023 254  63 [    409640 - 1701278816] HFS+ 3: AB 1023 254  63 - 1023 254  63 [1701688456 -    1269536] Darwin Boot *4: 07 1023 254  63 - 1023 254  63 [1704804352 -  248002560] HPFS/QNX/AUX
    Here's what I get with gdisk:
    Code: 
    Disk /dev/rdisk0: 1953525168 sectors, 931.5 GiB Logical sector size: 512 bytes Disk identifier (GUID): 6075110F-7CEF-4604-85EE-6231B850E2AE Partition table holds up to 128 entries First usable sector is 34, last usable sector is 1953525134 Partitions will be aligned on 8-sector boundaries Total free space is 2564589 sectors (1.2 GiB)  Number  Start (sector)    End (sector)  Size       Code  Name 1              40          409639   200.0 MiB   EF00  EFI System Partition 2          409640      1701688455   811.2 GiB   AF00  1 TB APPLE HDD HTS54101 3      1701688456      1702957991   619.9 MiB   AB00  Recovery HD 4      1704804352      1952806911   118.3 GiB   0700  BOOTCAMP

    Okay, the code I typed didn't display properly in the forum. Let me try again.
    Here's what I get when I type
    sudo gpt -r -vv show disk0:
    gpt show: disk0: mediasize=1000204886016; sectorsize=512; blocks=1953525168
    gpt show: disk0: Suspicious MBR at sector 0
    gpt show: disk0: Pri GPT at sector 1
    gpt show: disk0: Sec GPT at sector 1953525167
           start        size  index  contents
               0           1         MBR
               1           1         Pri GPT header
               2          32         Pri GPT table
              34           6        
              40      409600      1  GPT part - C12A7328-F81F-11D2-BA4B-00A0C93EC93B
          409640  1701278816      2  GPT part - 48465300-0000-11AA-AA11-00306543ECAC
      1701688456     1269536      3  GPT part - 426F6F74-0000-11AA-AA11-00306543ECAC
      1702957992     1846360        
      1704804352   248002560      4  GPT part - EBD0A0A2-B9E5-4433-87C0-68B6B72699C7
      1952806912      718223        
      1953525135          32         Sec GPT table
      1953525167           1         Sec GPT header
    And when I type fdisk /dev/rdisk0 I get:
    Disk: /dev/rdisk0          geometry: 121601/255/63 [1953525168 sectors]
    Signature: 0xAA55
             Starting       Ending
    #: id  cyl  hd sec -  cyl  hd sec [     start -       size]
    1: EE 1023 254  63 - 1023 254  63 [         1 -     409639] <Unknown ID>
    2: AF 1023 254  63 - 1023 254  63 [    409640 - 1701278816] HFS+       
    3: AB 1023 254  63 - 1023 254  63 [1701688456 -    1269536] Darwin Boot
    *4: 07 1023 254  63 - 1023 254  63 [1704804352 -  248002560] HPFS/QNX/AUX
    Kappy,
    I can boot into OS X just fine so if possible, I'd like to avoid reformatting everything. If you know of a way I can add more than 2 partitions with OS X and Boot Camp, please let me know. As far as I know, rEFInd can recognize more than two partitions, but I don't think it can edit partitions on a GPT / hybrid MBR system. Or am I wrong?

  • Best way to split large partition in multiple small partitions

    Looking for some ideas here. We ended up having a large/huge partition, the last one (because of maxvalue), while other partitions have similar number of records. What's the best way to split this large partitions with has about 3 years worth of data into separate partitions based on Month/Year. I tried with SPLIT partition, I not able to figure out a way to specify a value where I can like to split.
    Any thoughts, ideas appreciated.
    Thanks

    I'd be inclined to split off that partition as a stand-alone table. Create new partitions and then reload the data. But that "inclined" would depend on the available maintenance window and the amount of data and the Oracle version number none of which you mention.

  • Why I cannot split a partition table whose partitions are in a tablespace?

    SQL> CREATE TABLE "GDRK"."LT2_701C_RANGE"
    2 ( "CHAR_CODE" VARCHAR2(40),
    3 "STAT_UNIT_CODE" VARCHAR2(20),
    4 "ORGN_TYPE_CODE" CHAR(1) NOT NULL ENABLE,
    5 "ORGN_CODE" VARCHAR2(26) NOT NULL ENABLE,
    6 "ORGN_NAME" VARCHAR2(60) NOT NULL ENABLE,
    7 "UUID" VARCHAR2(36) NOT NULL ENABLE,
    8 "CYC_CODE" VARCHAR2(2) NOT NULL ENABLE,
    9 "H10" VARCHAR2(2),
    10 "H11" VARCHAR2(3),
    11 "H12" VARCHAR2(1),
    12 "H13" VARCHAR2(1),
    13 "H14" VARCHAR2(1),
    14 "H15" VARCHAR2(1),
    15 "H16" VARCHAR2(1),
    16 "H17" VARCHAR2(1),
    17 "H18" VARCHAR2(1),
    18 "H19_01" VARCHAR2(3),
    19 "H19_02" VARCHAR2(1),
    20 "H2" VARCHAR2(1),
    21 "H20" VARCHAR2(4),
    22 "H3_01" VARCHAR2(2),
    23 "H3_02" VARCHAR2(2),
    24 "H4_01" VARCHAR2(1),
    25 "H4_02" VARCHAR2(1),
    26 "H5_01" VARCHAR2(1),
    27 "H5_02" VARCHAR2(1),
    28 "H6" VARCHAR2(1),
    29 "H7" VARCHAR2(1),
    30 "H8" VARCHAR2(1),
    31 "H9" VARCHAR2(4),
    32 "REG_NUM" NUMBER,
    33 "ERA_NUM" NUMBER,
    34 "POWER_1" FLOAT(126),
    35 "POWER_2" FLOAT(126)
    36 )
    37 PARALLEL
    38 partition by range(CHAR_CODE) --substr(c1,1,1)
    39 (
    40 partition p0 values less than ('10'),
    41 partition p1 values less than ('20'),
    42 partition p2 values less than ('50'),
    43 partition p5 values less than (maxvalue));
    Table created.
    SQL> set timi on
    SQL> insert /*+ append */ into LT2_701C_RANGE select * from LT2_701C;
    539398 rows created.
    Elapsed: 00:00:28.02
    SQL> commit;
    Commit complete.
    Elapsed: 00:00:00.06
    SQL> select count(*) from LT2_701C_RANGE partition(p0);
    COUNT(*)
    0
    Elapsed: 00:00:00.00
    SQL> c/p0/p5
    1* select count(*) from LT2_701C_RANGE partition(p5)
    SQL> /
    COUNT(*)
    0
    Elapsed: 00:00:00.02
    SQL> c/p5/p2
    1* select count(*) from LT2_701C_RANGE partition(p2)
    SQL> /
    COUNT(*)
    539398
    Elapsed: 00:00:01.15
    SQL> ALTER TABLE LT2_701C_RANGE SPLIT PARTITION p2 at ('4420')INTO (
    2 PARTITION p20,
    3 PARTITION p21);
    ALTER TABLE LT2_701C_RANGE SPLIT PARTITION p2 at ('4420')INTO (
    ERROR at line 1:
    ORA-01652: unable to extend temp segment by 128 in tablespace EPRAS
    Elapsed: 00:00:00.89

    SQL> drop table LT2_701c_RANGE;
    Table dropped.
    Elapsed: 00:00:00.58
    SQL> drop index idx_c_p2;
    drop index idx_c_p2
    ERROR at line 1:
    ORA-01418: specified index does not exist
    Elapsed: 00:00:00.00
    SQL> CREATE TABLE "GDRK"."LT2_701C_RANGE"
    2 ( "CHAR_CODE" VARCHAR2(40),
    3 "STAT_UNIT_CODE" VARCHAR2(20),
    4 "ORGN_TYPE_CODE" CHAR(1) NOT NULL ENABLE,
    5 "ORGN_CODE" VARCHAR2(26) NOT NULL ENABLE,
    6 "ORGN_NAME" VARCHAR2(60) NOT NULL ENABLE,
    7 "UUID" VARCHAR2(36) NOT NULL ENABLE,
    8 "CYC_CODE" VARCHAR2(2) NOT NULL ENABLE,
    9 "H10" VARCHAR2(2),
    10 "H11" VARCHAR2(3),
    11 "H12" VARCHAR2(1),
    12 "H13" VARCHAR2(1),
    13 "H14" VARCHAR2(1),
    14 "H15" VARCHAR2(1),
    15 "H16" VARCHAR2(1),
    16 "H17" VARCHAR2(1),
    17 "H18" VARCHAR2(1),
    18 "H19_01" VARCHAR2(3),
    19 "H19_02" VARCHAR2(1),
    20 "H2" VARCHAR2(1),
    21 "H20" VARCHAR2(4),
    22 "H3_01" VARCHAR2(2),
    23 "H3_02" VARCHAR2(2),
    24 "H4_01" VARCHAR2(1),
    25 "H4_02" VARCHAR2(1),
    26 "H5_01" VARCHAR2(1),
    27 "H5_02" VARCHAR2(1),
    28 "H6" VARCHAR2(1),
    29 "H7" VARCHAR2(1),
    30 "H8" VARCHAR2(1),
    31 "H9" VARCHAR2(4),
    32 "REG_NUM" NUMBER,
    33 "ERA_NUM" NUMBER,
    34 "POWER_1" FLOAT(126),
    35 "POWER_2" FLOAT(126)
    36 )
    37 PARALLEL
    38 partition by range(CHAR_CODE) --substr(c1,1,1)
    39 (
    40 partition p0 values less than ('4410'),
    41 partition p1 values less than ('4420'),
    42 partition p2 values less than ('4450'),
    43 partition p5 values less than (maxvalue));
    Table created.
    Elapsed: 00:00:00.22
    SQL> insert /*+ append */ into LT2_701C_RANGE select * from LT2_701C;
    insert /*+ append */ into LT2_701C_RANGE select * from LT2_701C
    ERROR at line 1:
    ORA-01688: unable to extend table GDRK.LT2_701C_RANGE partition P0 by 128 in
    tablespace EPRAS
    Elapsed: 00:00:06.20
    SQL> show parameter recy
    NAME TYPE VALUE
    buffer_pool_recycle string
    db_recycle_cache_size big integer 0
    recyclebin string OFF

  • Splitting table partition

    Hi All,
    I have a table with several partitions. The latest partition (key is date column) has values less than MAXVALUE. The table has several local indexes on it. It's too large and I'd like to split the latest partition. I have the following questions:
    1. Can I simply split the partion and expect everything to work
    2. What about indexes, do I have to re-create them or will they be split along with the table ?. I'd like to specify a new tablespace for the newly partitioned index. How can I do that
    3. How can I specify a tablespace for the newly partition data ? Should I move the rows between tablespaces after the split
    4. Can anyone share any experience with me.
    The database is Oracle 9i. Any help is higly appreciated.
    Thanks a lot
    Vissu

    1. Yes, it works fine
    2. Yes u have to recreate the index
    alter index my_index rebuild partition my_partition tablespace new_tablespace ;
    3. check the syntax of the split partition command :-)
    4. Yes :-) all works really fine, i have ever split partition, exchange partition, everything works really fine
    Fred

  • Splitting a Partition into smaller Volumes

    Hi,
    On an external drive I have 3 partitions. One of these is an empty 250gb partition. I'd like to split that into smaller 15gb sized partitions for some multiple install testing. In disk utility I have selected the partition and clicked the + sign to add a new one and so on until I had the rquired amount. I then selected new names and sizes (15gb) for each partition.
    Firstly, it failed with this error "The chosen size is not valid for the chosen filesystem".
    So, I decided to add one partition at a time. This worked. However, the 15gb partition is now only 9.46gb. A 5gb loss seems a bit excessive. Does this seem right?
    Thanks

    Thanks Steve. I figured that was the case.  I must be doing something wrong (or my brain isn't working correctly today.) It seems that this should be a really easy thing to do - take one long segment, and break it into smaller segments. But I can't use anything in the clip menu, and the only way I figured out to save the individual clips as their own files is to delete everything else, and then save.  Clip #2, select clip, delete everything, save.  Seems kinda stupid to me. But, again I must be doing something wrong.

  • Splitting List partition

    Hi all,
    We are using oracle database (10.2.0.4 64bit) and OS AIX (6.1).
    We have list partition table. On column sale two values (1 or 0) are stored.
    Table has two partition DAILY_ISSUANCE_SALE_FACT_1  for value (1) and DAILY_ISSUANCE_SALE_FACT_0  for value  (0).
    Due to huge size of table, we want to split partition DAILY_ISSUANCE_SALE_FACT_1 and DAILY_ISSUANCE_SALE_FACT_0.
    How I can splite these two partitions with values 1 and 0?

    We are using oracle database (10.2.0.4 64bit) and OS AIX (6.1).
    We have list partition table. On column sale two values (1 or 0) are stored.
    Table has two partition DAILY_ISSUANCE_SALE_FACT_1  for value (1) and DAILY_ISSUANCE_SALE_FACT_0  for value  (0).
    Due to huge size of table, we want to split partition DAILY_ISSUANCE_SALE_FACT_1 and DAILY_ISSUANCE_SALE_FACT_0.
    How I can splite these two partitions with values 1 and 0?
    You can't - a list partition whose definition only specifies one value cannot be split. If you have specified a DEFAULT partition for the table you can split that default partition but that won't affect the two partitions that you mentioned.
    You could also add a new partition but that won't affect those two partitions either.
    See the 'Maintaining Partitions' section of the VLDB and Partitioning Guide
    http://docs.oracle.com/cd/E18283_01/server.112/e16541/part_admin002.htm#i1007318
    That section has details and examples of how to add/split partitions.
    Due to huge size of table, we want to split partition
    Why? What are you trying to accomplish? What difference does it make if the table is 'huge'? Can you tell us precisely when the table became huge? Does that mean that the day before it was not huge but that now it is?
    Large tables are generally partitioned to either improve performance of queries or to improve the performance of maintenance operations (e. g. delete/remove older data, add new daily data).
    What PROBLEM are you trying to solve? Post info (query, execution plan, etc - see the FAQ for how to post a tuning request) that demonstrates the problem you think you have and we can help you solve it.

  • How to split huge partition

    hi !
    i have partitioned table:
    create table t1 (d date)
    partition by range (d)
    partition p_min values less than (TO_DATE(' 2006-01-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN')),
    partition p_01 values less than (TO_DATE(' 2007-01-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN')),
    partition p_02 values less than (TO_DATE(' 2008-01-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN')),
    partition p_max values less than (maxvalue)
    );the problem is: my p_max partition grow to >500GB and split it into several P_% partitions takes ages. how can i do it in the most efficienf and fast way ?
    my database is 10.2.0.2@hp-ux 11.23, 4cpu
    thank you for help.

    Hello,
    How much data I mean volumewise you got in P_MAX partition and when you split up how much time it took?
    Another approach will be wholesome just create another partitioned table with all the old partitions as compressed (so they save you storage and give some boost to query), offcourse if you are not perfoming heavy DML on old partitions.
    1. Create a new empty partitioned table with old partition as compressed.
    2. insert into new_part_table select * from old_part_table; Use APPEND hint to speed up and compression benefit.
    3. Drop old indexes and recreate in new partitions.
    Another approach you already mentioned making use of exchange partitions.
    Regards

  • Solaris 10 Max Partition size

    Hi,
    I would like to know the maximum partition size that Solaris 10 can support/create.
    We have a Sun StorEdge 6920 system with a 8 TBytes, based on 146 GBytes Hard Disks.
    Is it possible to create a 4 TBytes partition?
    if not, any suggestions are appreciated.

    Look to EFI, allows filesystems built to large TB sizes if you needed.
    Per SUN:
    Multi-terabyte file systems, up to 16 Tbyte, are now supported under UFS, Solaris Volume Manager, and VERITAS's VxVM on machines running a 64-bit kernel. Solaris cannot boot from a file system greater than 1 Tbyte, and the fssnap command is not currently able to create a snapshot of a multi-terabyte file system. Individual files are limited to 1 Tbyte, and the maximum number of files per terabyte on a UFS file system is 1 million.
    The Extensible Firmware Interface (EFI) disk label, compatible with the UFS file system, allows for physical disks exceeding 1 Tbyte in size. For more information on the EFI disk label, see System Administration Guide: Basic Administration on docs.sun.com. "
    Found this at:
    http://www.sun.com/bigadmin/features/articles/solaris_express.html
    So you may want to look into EFI, which is different way of partitioning the disk.

  • Range Partitioning a table. Max value to be defined

    Hi,
    I am using a range partitioned table, range partitioned on date, and have defined max value as 6 months after the Creation Date.
    I have a proc which creates the partitions I want in advance by splitting up the max partition.
    - Now what do I do when max partition is reached after 6 months?
    - If I define max partition one year or two year after the current date instead of the currently defined 6 months after creation date. What are the negatives attached with it?
    I can't use Interval Partition and have to use Range only.
    Kindly suggest.
    Thanks..

    >
    I am using a range partitioned table, range partitioned on date, and have defined max value as 6 months after the Creation Date.
    I have a proc which creates the partitions I want in advance by splitting up the max partition.
    - Now what do I do when max partition is reached after 6 months?
    - If I define max partition one year or two year after the current date instead of the currently defined 6 months after creation date. What are the negatives attached with it?
    >
    Any data with a partition key that does NOT match any partition will cause your INSERT query to fail.
    Any partition that has no data to match it will simply remain empty.
    A common partitioning scheme is to define one partition for all old data, one partition with a high max value and then split the max value partition to get the partitions you want in the middle.
    Let's say you want monthly partitions but don't have that much data from before the current year, 2012.
    1. Create one partition for dates < 1/1/2012
    2. One partition each for the 12 months of 2012
    3. One max value partition to be 1/1/4000
    You would just split the max value partition to create each month of 2013. The split could be done ahead of time or a month at a time as you choose.
    The only negative is that any data inserted by mistake that has a super-high date will go into the max value partition. But that is going to happen anyway. If you accidentally enter a date of 3/23/3882 it won't be rejected.
    But it is easy to query periodically to see if you have any 'bad' data like that. And the alternative is that an INSERT would fail because of the one bad record and all of your good data would be rejected anyway so it's not really much of a negative.
    Remember - for best management performance each partition should have its own tablespace and the indexes should all be local if possible.

  • Split Oracle 11g Table Partition and Insert new rows

    Hi,
    I have a doubt that i would like to be clarified. I need to split a partition of a table with more than 800 Million records, but at the same time (during the split operation) i need to insert new records (not in the partition that is being splited). Is there any problem/risk doing this? Is the insert ETL process going to fail ?
    Thanks in advance
    Greetings.
    Nuno
    Edited by: user13512889 on 1/Set/2011 3:25

    Hi Enrique,
    Thanks for posting in MSDN.
    Based on the description, you want to modify the formula for the A1 and B1 cell when you insert a new rows.
    Yes, we can use Worksheet.Change to dermin the change of data on the worksheet then we can modify the formula as we wanted. Here is a sample for your reference:
    Private Sub Worksheet_SelectionChange(ByVal Target As Range)
    Me.Range("A1").Formula = "=MAX($A2:$A" & Me.UsedRange.Rows.Count & ")"
    Me.Range("B1").Formula = "=MIN($B2:$B" & Me.UsedRange.Rows.Count & ")"
    End Sub
    You can more detail about Excel VBA developing from link below:
    Getting Started with VBA in Excel 2010
    Welcome to the Excel 2013 developer reference
    Regards & Fei
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • ORA-07445 during Partition Split in Oracle 10g

    Hi
    I'm getting the following trace file generated when I try and split a partition with 4 or more partition keys.
    The environment is 10g enterprise edition on Redhat Enterprise Server 3.
    ORA-07445: exception encountered: core dump [msqopnws()+37] [SIGSEGV] [Address not mapped to object] [0x8B18C483] [] []
    Current SQL statement for this session:
    ALTER TABLE TDAARCO_2 SPLIT PARTITION
    P200200213000_201_200212_999_R at ('200200200000','201','200212',0,'D') into (partition P200200200000_201_200212_0_C,
    partition P200200213000_201_200212_999_R)
    ----- Call Stack Trace -----
    calling call entry argument values in hex
    location type point (? means dubious value)
    sdtcs_getexecname: use overriding value for executable
    sdtcs_getexecname: ignored overriding value [oracleCCLDEV]
    ksedmp()+493 call ksedst()+0 1 ? 0 ? 1 ? 1 ? 0 ? 0 ?
    ssexhd()+1132 call ksedmp()+0 3 ? 0 ? 0 ? 0 ? 0 ? 0 ?
    msqopnws()+37 signal ssexhd()+0 B ? BFFF9698 ? BFFF9718 ?
    msqtnm()+1899 call msqopnws()+0 BFFF9BBC ? 0 ? 8B18C483 ? 0 ?
    0 ? BFFF9BBC ?
    _fini()+595468       call     msqtnm()+0           2 ? BFFF9BBC ? BFFF9B1E ?
    1E ? BFFF9BBC ? 0 ?
    B6A0E008 call _fini()+0            B6A0DDB0 ? B7C3090 ? 7D1 ?
    80D ? 0 ? 0 ?
    50205449 call B6A0E008 49545241 ? 4E4F4954 ?
    32500A20 ? 30323030 ?
    33313230 ? 5F303030 ?
    I would be very grateful if anyone has got any ideas or information.
    Thanks
    Glyn Williams

    Hi Glyn,
    Can you create a script that recreates the problem?
    I have a similiar problem, but can not recreate the exact operations sequance that cause the ORA-07445.
    Avi.

  • I need to split my c partition

    Hello i have lenovo g580 and i saw in the forums that i cant split the parition cuz it will disable the recovery but in same time the c partiion is 880GB and the other partition contain drivers is 24GB so Please any help

    Hi mahmoudahmed,
    Thanks for posting and welcome to the Lenovo Community,
    Am sorry to confirm to you that splitting the Hard Disk will cause that the recovery will be corrupted and won’t be working anymore,
    And the recovery is built-in application to return the machine back to the initial state if you would like to proceed and split the Partition it would be my pleasure to help you.
    Thanks and Best Regards,
    Soha
    Did someone help you today? Press the star on the left to thank them with a Kudo!
    If you find a post helpful and it answers your question, please mark it as an "Accepted Solution"! This will help the rest of the Community with similar issues identify the verified solution and benefit from it.
    Follow @LenovoForums on Twitter!

Maybe you are looking for

  • Can I have multiple Touch devices under 1 account?

    I will soon have a total of 3 iPod Touch devices. Up to now I have only had to manage one under my iTunes account. Can I maintain my library on all three devices? Are there any ramifications to doing so? And when I set the others up, should I set up

  • How to maintain Table T77TMC_P_V

    Dear Guru, I am Configuration Packgae PAOC_HAP_PA_PMP_UI for Appraisal System but it always go through this Table for Template. May I know how to input Template in Such Tables? Thanks in advance. Regards, Matthew

  • ABAP/4 Open SQL statement with WHERE ... LIKE and pattern too long

    Dear All, I am getting an error "ABAP/4 Open SQL statement with WHERE ... LIKE and pattern too long" while executing the following statement: CLEAR LS_RANGE. LS_RANGE-SIGN     = 'I' +LS_RANGE-OPTION     = 'CP'     + LS_RANGE-LOW     = 'S_ADMI_FCD' LS

  • Upgrade from premiere elements11 and photoshop elements 11 to version 12

    Hello i think I buy te upgrade from the packket premiere elements 11 and photoshop elements 11 to version 12 of this to produkts, when I do that create the upgrade then  new icons on your desctop screen or overwright the upgrade the version 11 total,

  • I can't open Numbers since the updates?

    Since updating to Mavericks and installing the updated iWork apps in my iMac, I haven't been able to open Numbers.  When I try to open a spreadsheet created on my iPad I received the following message, "You need a newer version of Numbers to open thi