Merging partition into NEW partition

I need to merge some range partition into a new big one,
something like
ALTER TABLE sales
MERGE PARTITIONS sales_q4_2000, sales_q4_2000b
INTO PARTITION sales_q4_2000;
My question is: How should I specify the tablespace for the NEW partition name ?
The following is my table definition:
CREATE TABLE "TEST"
(     "DAILY" DATE,
     "ID_TEST" NUMBER
TABLESPACE "TBL_DEFAULT_SLIDE"
PARTITION BY RANGE ("DAILY")
(PARTITION "PART_PAST" VALUES LESS THAN (TO_DATE(' 2008-08-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN'))
TABLESPACE "PART_PAST_SLIDE" NOCOMPRESS ,
PARTITION "PART_2008_08_01" VALUES LESS THAN (TO_DATE(' 2008-08-02 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN'))
TABLESPACE "PART_2008_08_SLIDE" NOCOMPRESS ,
PARTITION "PART_2008_08_16" VALUES LESS THAN (TO_DATE(' 2008-08-17 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN'))
TABLESPACE "PART_2008_08_SLIDE" NOCOMPRESS ,
PARTITION "PART_2008_08_31" VALUES LESS THAN (TO_DATE(' 2008-09-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN'))
TABLESPACE "PART_2008_08_SLIDE" NOCOMPRESS ,
PARTITION "PART_2008_09_01" VALUES LESS THAN (TO_DATE(' 2008-09-02 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN'))
TABLESPACE "PART_2008_09_SLIDE" NOCOMPRESS ,
PARTITION "PART_2008_09_16" VALUES LESS THAN (TO_DATE(' 2008-09-17 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN'))
TABLESPACE "PART_2008_09_SLIDE" NOCOMPRESS ,
PARTITION "PART_2008_09_30" VALUES LESS THAN (TO_DATE(' 2008-10-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN'))
TABLESPACE "PART_2008_09_SLIDE" NOCOMPRESS ,
PARTITION "PART_2008_10_01" VALUES LESS THAN (TO_DATE(' 2008-10-02 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN'))
TABLESPACE "PART_2008_10_SLIDE" NOCOMPRESS ,
PARTITION "PART_2008_10_16" VALUES LESS THAN (TO_DATE(' 2008-10-17 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN'))
TABLESPACE "PART_2008_10_SLIDE" NOCOMPRESS ,
PARTITION "PART_2008_10_31" VALUES LESS THAN (TO_DATE(' 2008-11-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN'))
TABLESPACE "PART_2008_10_SLIDE" NOCOMPRESS ,
PARTITION "PART_2008_11_01" VALUES LESS THAN (TO_DATE(' 2008-11-02 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN'))
TABLESPACE "PART_2008_11_SLIDE" NOCOMPRESS ,
PARTITION "PART_2008_11_16" VALUES LESS THAN (TO_DATE(' 2008-11-17 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN'))
TABLESPACE "PART_2008_11_SLIDE" NOCOMPRESS ,
PARTITION "PART_2008_11_30" VALUES LESS THAN (TO_DATE(' 2008-12-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN'))
TABLESPACE "PART_2008_11_SLIDE" NOCOMPRESS ,
PARTITION "PART_FUTURE" VALUES LESS THAN (MAXVALUE)
TABLESPACE "PART_FUTURE_SLIDE" NOCOMPRESS ) ;
I'm trying to execute (where PART_2008_08 is a new partition, never used or created, so with no tablespace)
ALTER TABLE TEST
MERGE PARTITIONS PART_2008_08_01, PART_2008_08_16, PART_2008_08_31
INTO PARTITION PART_2008_08 TABLESPACE PART_2008_08_SLIDED;
or
(in this example where I don't specify the tablespace and according to SQL Reference [merge_table_partitions|http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/statements_3001.htm#i2114069] it should create the new partition whereas any attributes are inherited from table-level defaults so it should create the NEW partition on TABLESPACE "TBL_DEFAULT_SLIDE".)
ALTER TABLE TEST
MERGE PARTITIONS PART_2008_08_01, PART_2008_08_16, PART_2008_08_31
INTO PARTITION PART_2008_08;
but both are failing with ORA-14126.
What am I missing ?
Edited by: marcopb on Nov 28, 2008 12:39 PM

marcopb wrote:
I need to merge some range partition into a new big one,
something like
ALTER TABLE sales
MERGE PARTITIONS sales_q4_2000, sales_q4_2000b
INTO PARTITION sales_q4_2000;
My question is: How should I specify the tablespace for the NEW partition name ?
I'm trying to execute (where PART_2008_08 is a new partition, never used or created, so with no tablespace)
ALTER TABLE TEST
MERGE PARTITIONS PART_2008_08_01, PART_2008_08_16, PART_2008_08_31
INTO PARTITION PART_2008_08 TABLESPACE PART_2008_08_SLIDED;
or
(in this example where I don't specify the tablespace and according to SQL Reference [merge_table_partitions|http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/statements_3001.htm#i2114069] it should create the new partition whereas any attributes are inherited from table-level defaults so it should create the NEW partition on TABLESPACE "TBL_DEFAULT_SLIDE".)
ALTER TABLE TEST
MERGE PARTITIONS PART_2008_08_01, PART_2008_08_16, PART_2008_08_31
INTO PARTITION PART_2008_08;
but both are failing with ORA-14126.
What am I missing ?I haven't tested your example but I think that you can merge only TWO partitions in one merge operation, so if you attempt to merge three partitions you need actually to perform this in two steps rather than in a single step. In addition in case of range partitions these have to adjacent to be merged, but this seems to be the case in your example.
Regards,
Randolf
Oracle related stuff blog:
http://oracle-randolf.blogspot.com/
SQLTools++ for Oracle (Open source Oracle GUI for Windows):
http://www.sqltools-plusplus.org:7676/
http://sourceforge.net/projects/sqlt-pp/

Similar Messages

  • Splitting partition into multiple partitions

    Hi,
    As far as I can tell (up to an including Oracle 10g), one can only split a partition into 2 new partitions.
    Thus if I had a partition with a maxvalue starting in january 2006, I would need to sequentially run a seperate split command for february, march and april. Does oracle provide a mechanism to split a partition into 4 partitions in one easy step. This would save alot of time, if not, maybe as an enhancement request for a new release?
    Regards
    Michael

    Hi,
    that's my understanding too. There is no such thing like a 'bulk' split. But it would really be useful to have one.

  • HT4910 sold my ipad today. the concern is how to access all info stored in cloud and if possible eventualy merge data into new andriod tablet. Thanks all of you who respond.

    sold my ipad today. the concern is how to access all info stored in cloud and if possible eventualy merge data into new andriod tablet. Thanks all of you who respond.

    >
    <IfModule mod_weblogic.c>
    WebLogicCluster 127.0.0.1:7005,127.0.0.1:7007,127.0.0.1:7003,127.0.0.1:7103,127.0.0.1:7104
    MatchExpression /app1
    </IfModule>
    <Location /weblogic>
    SetHandler weblogic-handler
    WebLogicCluster 127.0.0.1:7003,127.0.0.1:7005,127.0.0.1:7007,127.0.0.1:7103,127.0.0.1:7104
    DebugConfigInfo ON
    PathTrim /weblogic
    </Location>
    <IfModule mod_weblogic.c>
    WebLogicCluster 127.0.0.1:7003,127.0.0.1:7005,127.0.0.1:7007
    MatchExpression /app2
    </IfModule>
    <Location /weblogic>
    SetHandler weblogic-handler
    WebLogicCluster 127.0.0.1:7003,127.0.0.1:7005,127.0.0.1:7007
    DebugConfigInfo ON
    PathTrim /weblogic
    </Location>
    >
    This configuration is weird little bit. There is MatchExpression /app1 and MatchExpression /app2 and at the same time two <Location /weblogic> sections. Are you sure you understand what that configuration stands for?
    Try something like this ...
    <Location /app1>
    SetHandler weblogic-handler
    WebLogicCluster 127.0.0.1:7003,127.0.0.1:7005,127.0.0.1:7007,127.0.0.1:7103,127.0.0.1:7104
    DebugConfigInfo ON
    </Location>
    <Location /app2>
    SetHandler weblogic-handler
    WebLogicCluster 127.0.0.1:7003,127.0.0.1:7005,127.0.0.1:7007
    DebugConfigInfo ON
    </Location>
    where /app1 and /app2 are contexts of your weblogic applications.
    http://download.oracle.com/docs/cd/E11035_01/wls100/plugins/apache.html
    http://httpd.apache.org/docs/2.0/mod/core.html#location

  • Satellite L40-18Z: How to merge two partitions into one partition?

    Hello,
    I have a satellite L40 with a hard disk drive partitioned into two ( C and E ), one having 37GB capacity the other almonst 36 GB.
    The C drive is almost full and the E drive almost empty. I would like to take away the partition and have just one drive, is this possible.
    Any advice would be gratefully received. I am not a techi so be kind.
    Regards
    Peter

    Hi
    Of course this is possible
    You can do this in disk management.
    Just click right on My Computer -> Manage
    Here choose disk management.
    Now you have to delete the E partition. Then the free space could be added to the C partition.
    But note; before you would do this, create the recovery disk (if you didnt this in the past.)

  • Merge components into new media file

    This is probably not the right place for this given this forum is around front end code mostly but I have been pulling my hair out trying to find the right solution and I am hoping some of you will have had a similar requirement given what the framework allows you to do.
    I have built a flex application that takes an flv with cue points and an image which I specify and merges the two to put the image over the video when the cue point event fires - all pretty simple.
    Now I want to write this to a new media file that can be downloaded and played - can be any format (flv is fine). The solution needs to run in the backend i.e not through a GUI.
    I cannot seem to find a way to do this and I was hoping some of you folks might have come across something and could point me in the right direction.

    This is probably not the right place for this given this forum is around front end code mostly but I have been pulling my hair out trying to find the right solution and I am hoping some of you will have had a similar requirement given what the framework allows you to do.
    I have built a flex application that takes an flv with cue points and an image which I specify and merges the two to put the image over the video when the cue point event fires - all pretty simple.
    Now I want to write this to a new media file that can be downloaded and played - can be any format (flv is fine). The solution needs to run in the backend i.e not through a GUI.
    I cannot seem to find a way to do this and I was hoping some of you folks might have come across something and could point me in the right direction.

  • How to merge two storage drives into one partition-help

    THis is on an iPad-Please excuse for any typos
    I Am working on a project of restoring a macbook pro from old parts that I found. It works!!! But the HDD that i salvadged is ancient and gets about .15 MBPS. Not good. Its an apple certified and apple branded toshiba HDD-500G at 5400RPM. Yeah. *****
    I am considering buying a new hard drive as a 480GB SSD, and using OWC's Data doubler, adding a second HDD, for all the photos and vids i will be collecting through my work in video and photo. I am considering getting an SSHD (SSD+HDD in an SSD form factor) and using this as the second drive. its not much more expensive (like 10$ more) and itgetsme semi-SSD like performance on a mass scale of storage.
    HOw can I combine these two drives into ONE partition? 480GB will take awhile to fill up, but this is a future proof wall to use.
    I Will eventually invest in an external storage option (2-3 HDDS in one caddy for backups and storing 1080p video all under one roof. depends if the board im using actually has thunderbolt or usb that is fast enough-because of the crappy hdd i cant get it to boot into an OS or go through usb recovery without it freezing. I ahve tried re-applying thermal paste, still doesnt help)
    HOw can i easily partition these two drives into one?
    also, my friend needs a new HDD because bootup times in his macbook pro are at like 2 mins+ and hes running Core 2 Duo, with 8 G ram and 10.9 (Mav) should i recommend an SSHD or an ssd. (He doesnt want an HDD, hes had bad 'voodoo' with em'. Thanks!

    nithya_ram wrote:
    Give me d source code for merging two img files into one img file\\
    If you want someone to do your work for you, simply pay someone. However, if you have a question about code you're currently working on, feel free to ask a specific question here on the forum.

  • How do I remove disk partition and merge the 2 partitions into main hard disk C drive. Win7

    How do I remove a disk  partition  and merge the 2 partitions into main hard disk C drive. If I delete Drive  D I am left with 250G of unallocated space in drive D Hard drive. And I want the unallocated portion 250G to be allocated
    to the C drive.jc

    I know it is a little bit late to reply. But, I still want to share my experiences with everyone here.
    Actually, I have ever also has the same issue and needed to resize my C drive partition for much more partition space. But, the resizing process just unexpectedly fails at last in Disk Management. The “extend” function is unable to work.
    So, I have no choice but to take chances with some third party partition resizing tools:
    GParted
    http://gparted.sourceforge.net/
    IM-Magic Partition Resizer Free
    http://www.resize-c.com/
    Both of them seem efficient. So, I just have tried them one by one and finally added wanted free space to my C drive successfully.
    I even have found a video tutorial that teaches me how to resize my drive with this freeware in details:
    https://www.youtube.com/watch?v=6jCeT7CbsKk

  • Problem merging all my partitions into one!

    I'm currently having problems merging all my partitions into one big partition. Disk Utility keeps on saying that "MediaKit reports partition map too small" when i try and erase any partitions. What can i do to merge all my partitions into one so that i can use bootcamp? I've tried searching this forum but cant seem to find any info on this.

    I don't know what your partitions look like, how they were created, the number of, or if you did something special like from the terminal or by shrinking + adding 3rd partition or something.
    But the solution stays the same.

  • [Solved] Integrating new Partitions into the Filesystem

    Hello,
    I reinstalled arch a couple days ago. I'm not using GPT with
    /var, /boot, / , and /home partitions.
    However, during the installion, i didnt add /var, /boot, and /home to my fstab [ i assumed genfstab would do this]
    Thus, i've only been using one of my partions, my root partition.
    So, now that i've discovered this, i would like to use them [20gb is not enough for me lol]
    However, i've already installed lots of programs and the /var, /boot/ and /home directories on my root partition are full of stuff.
    So how do i integrate these partitions into my filesystem? I need to copy all the files from the /var, /boot, and /home directories onto the
    /var, /boot, and /home partitions.
    I could just mount each onto a dummy directory, copy the files onto their respective partition, umount, then remount onto the correct directories.
    Is that the safest sequence of steps to take? If not what is?
    Thank you
    Last edited by fawkes5 (2013-04-24 08:13:47)

    lol. Didn't see the arch wiki post on this exact issue. The steps i outlined are those suggested by the wiki.
    Add new partitions to an existing system
    Should this be marked for deletion?
    Last edited by fawkes5 (2013-04-24 01:39:43)

  • Merge Free Space into Primary Partition

    Hello, all, is it possible to merge free space into the primary partition? I made a partition but deleted it and i'm left with free space and i cannot delete it. I'm using disk utility and i wouldn't want to erase the whole drive and start over just to erase the free space

    There is an option.
    I don't know if it's the best but it works for me.
    Boot from a recovery disk/usb and open Disk Utility then:
    1. Create a partition from the free space
    2. Select the drive
    3. Go to Restore tab
    4. On the source drag the partition with your OS
    5. On the Destination drag the partition you created
    6. Click Restore
    7. Go back to Partition tab and erase the OS partition (not the partition you created)
    8. Resize the partition you create
    Done.
    I know this is an old topic but maybe someone is stuck with this problem and can't find an answer!

  • How to merge two seperate free space into single partition/volume???

    Hey guys :)
    Please help me on merging two unallocated free spaces in my internal harddisk. I already tried searching for options in diskmanagement but nothing found to do that. The harddisk has two free spaces(1gb and 50.78gb) now, I want to merge them into single one
    and finally as a single parition/volume. Is there any other method or should use any other third party tool?
    I really wanted to attach a screenshot but sadly microsoft couldn't allow me.

    JAJ
    You need a third party tool like Easeus Partition Manager
    Wanikiya and Dyami--Team Zigzag
    Sure I'll try that. Thank you very much :)
    But it is really sad to say that it is real drawback of windows as it doesn't have its own choice in diskmanagement utility.

  • New partition & windows no longer boots

    Hey all, up until now i have had 3 partitions on my drive - Snow leopard, General media and Windows 7. I decided to add a linux partition and made a new partition using disk utility. I boot up to the choose disk screen to install ubuntu to find that windows is no longer an option for boot up, so i deleted the new partition and it still won't boot into windows anymore.
    How can i restore the booting function? Doing it with a linux partition too would be preferable but it isn't necessary.
    Thanks,
    Brad

    Hi Brad and welcome to Discussions,
    Hi John,
    A later done partitioning to add additional partitions to a harddisk alters the position of the BootCamp partition in the partition table so that the Windows Bootloader can not 'find' the Windows partition.
    With Windows XP it helped to simply edit the Boot.Ini file and point it to the WIndows partition.
    With Vista and Windows 7 there no longer is a boot.ini but EasyBCD http://neosmart.net/dl.php?id=1 can do the same.
    One thing to remember though is, that even Vista and Windows 7 'suffer' from the limitation of four partitions on one harddisk immenent to the Master Boot Record (MBR) since Apples EFI/GPT/MBR emulation can not handle Extended Partitions and Logical Partitions inside an Extended Partition.
    Regards
    Stefan

  • Creating a new partition on OSX has replaced a drive. Is there anyway to recover this?

    This might be a little confusing so I will try and explain myself as best as I can.
    I run OSX and Windows 7. OSX is on 1 harddrive whilst my windows 7 install is on an SSD. I had a partition titled G:Win7 Files, this was not where Windows 7 was installed but a partition I used to store files for use on windows. I recently made a new partition from the drive with OSX installed on for use with Windows. I did this on OSX and when I rebooted into Windows, my G:Win7 Files drive has now been replaced with G:Windows (which was the partition I'd just created from a different drive.)
    Because they are seperate drives, I was really hoping there would be a way to find this lost drive. It's showing that 18gb is being used of the new partition however that's how much data was on my missing drive and the new one appears empty.
    I'm sorry if this is the wrong place to be asking about this but I was hoping someone could point me in the right direction on how to go about fixing this!
    Thanks

    Thanks. Ya that is a big bummer, I never knew to write down my recovery key... Maybe this should be more clearly explained in the preferences panel.

  • Index problem during the creation of a new partition

    We have a range partitioned table, with a local spatial index on each partition. While trying to use the alter table command to add a new partition we get the following errors.
    ORA-29855: error occurred in the execution of ODCIINDEXCREATE routine
    ORA-13249: internal error in Spatial index: [mdidxrbd]
    ORA-13249: Error in Spatial index: index build failed
    ORA-13249: Error in R-tree: [mdrcritbl]
    ORA-13231: failed to create index table [MDRT_D789CC$] during R-tree
    creation
    ORA-29400: data cartridge error
    ORA-01031: insufficient privileges
    ORA-06512: at "MDSYS.SDO_INDEX_METHOD_9I", line 7
    ORA-06512: at line 1
    ORA-06512: at "LPDAACECS_PART.UPDATE_METADATA", line 1937
    ORA-06512: at "LPDAACECS_PART.UPDATE_METADATA", line 3625
    ORA-06512: at line 1

    I just wanted to expand on this for the sake of others who may need a bit more detail, having just resolved my similar problem.
    In Oracle Enterprise Manager, in the left-hand tree view, expand Security then Users inside the relevant Databases entry.
    Then select the name of the user/schema which needs to be able to perform the required task (in my case, create a spatial index from within a stored procedure).
    On the System tab in the right-hand pane, highlight
    Create Any Table
    Create Any Sequence
    Create Any Index
    (depending on the task that needs to be performed)
    Click the arrow to move these items into the "Granted" area. Click apply and your prayers have been answered. Mine were, anyway!
    Regards
    Stuart

  • Want to partition a new External Hard drive for both pc and mac

    Hello!
    I am going to partition a new Seagate external hard drive for both my pc and mac.  What format do I choose for the PC partition?  MS-DOS (FAT), ExFAT, or Free Space.
    Thank you!
    Nikki

    If I may suggest:
    Drive Preparation
    1.  Open Disk Utility in your Utilities folder.
    2. After DU loads select your hard drive (this is the entry with the mfgr.'s ID and size) from the left side list. Click on the Partition tab in the DU main window.
    3. Under the Volume Scheme heading set the number of partitions from the drop down menu to one. Set the format type to Mac OS Extended (Journaled.) Click on the Options button, set the partition scheme to GUID then click on the OK button. Click on the Partition button and wait until the process has completed.
    4. Select the volume you just created (this is the sub-entry under the drive entry) from the left side list. Click on the Erase tab in the DU main window.
    5. Set the format type to Mac OS Extended (Journaled.) Click on the Options button, check the button for Zero Data and click on OK to return to the Erase window.
    6. Click on the Erase button. The format process can take up to several hours depending upon the drive size.
    7. After formatting has completed select the main entry for the new drive (mfgr.'s ID) then click on the Partition tab in the DU main window. Click on the large partition rectangle then click on the Add [+] button. The partition should divide into two equal volumes. Resize as you prefer. Select the second or bottom volume to use on the PC. Set the format type to ExFat, then click on the Apply button. Wait for the two volumes to finish mounting on the Desktop.

Maybe you are looking for

  • Problem with free of cost when contract price is maintained

    We want to create an FOC sales order for a particular customer, particular material, etc. This material has a contract price (ZCON). We set the usage in the header to FOC and itemcategory ZTNN is determined. This is correct. Nevertheless the item is

  • ADF application deployed to Weblogic producing runtime error

    Hi all, We are trying to deploy a new ADF application built by JDeveloper 11.1.1.5.0 to a standalone weblogic (*version 10.3.1.0*) The app deploys and runs on integrated wls without any problems, and deploys to the standalone wls without any warnings

  • Magic trackpad

    can macbook pro trackpad and magic trackpad be used together on a osx 10.8.2

  • Pre-fill Office documents with SAP data from WebDynPro screens

    I have a requirement to have Word/Excel type file templates that we can open and have pre-filled with data attributes from SAP objects. I know that we can do this relatively easily from within the SAP GUI in transactions such as SCASE etc... but our

  • Reply and Forwarding messages

    I'm using the Passport and at work we use Lotus Notes for email.  I am using the Notes Traveler and it works fine until I reply or forward an email.  My reply or forward will go through but it doesn't include the body of the email I am replying to or