In the NEW partition partition merger

I need to merge some partitions of a large new range,
something like
ALTER TABLE sales
MERGE PARTITIONS sales_q4_2000, sales_q4_2000b
IN the PARTITION sales_q4_2000.

My question is: How can I specify the storage space for the NEW name of the partition?

What follows is my definition of the table:
CREATE TABLE 'TEST '.
(TO THIS DAY "DAILY")
NUMBER OF 'ID_TEST '.
)
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 am trying to run (where PART_2008_08 is a new partition, never used or created, therefore, with no tablespace)
ALTER TABLE TEST
MERGE PARTITIONS PART_2008_08_01, PART_2008_08_16, PART_2008_08_31
IN THE PARTITION PART_2008_08 TABLESPACE PART_2008_08_SLIDED;
or
(in this example where I do not 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] we need to create the new partition, so that all attributes are inherited from the level of the default table so it should create the NEW partition on TABLE space "TBL_DEFAULT_SLIDE".)
ALTER TABLE TEST
MERGE PARTITIONS PART_2008_08_01, PART_2008_08_16, PART_2008_08_31
IN THE PARTITION PART_2008_08.

but both fail with ORA-14126.

What Miss me?

Published by: marcopb on November 28, 2008 12:39

marcopb wrote:
I need to merge some partitions of a large new range,
something like
ALTER TABLE sales
MERGE PARTITIONS sales_q4_2000, sales_q4_2000b
IN the PARTITION sales_q4_2000.

My question is: How can I specify the storage space for the NEW name of the partition?

I am trying to run (where PART_2008_08 is a new partition, never used or created, therefore, with no tablespace)
ALTER TABLE TEST
MERGE PARTITIONS PART_2008_08_01, PART_2008_08_16, PART_2008_08_31
IN THE PARTITION PART_2008_08 TABLESPACE PART_2008_08_SLIDED;
or
(in this example where I do not 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] we need to create the new partition, so that all attributes are inherited from the level of the default table so it should create the NEW partition on TABLE space "TBL_DEFAULT_SLIDE".)
ALTER TABLE TEST
MERGE PARTITIONS PART_2008_08_01, PART_2008_08_16, PART_2008_08_31
IN THE PARTITION PART_2008_08.

but both fail with ORA-14126.

What Miss me?

I have not tested your example but I think you can merge only TWO partitions in a merge operation, so if you try to merge the three partitions you should actually do this in two stages, rather than in a single step. In addition in the case of range partitions, were adjacent to merge, but this seems to be the case in your example.

Kind regards
Randolf

Oracle related blog stuff:
http://Oracle-Randolf.blogspot.com/

SQLTools ++ for Oracle (Open source Oracle GUI for Windows):
http://www.sqltools-plusplus.org:7676 /.
http://sourceforge.NET/projects/SQLT-pp/

Tags: Database

Similar Questions

  • Repair your startup disk Bootcamp disappearing after you create the new partition

    . After some research, I found that it was the way forward to create a separate partition, and so I did another partition.

    I didn't know it would affect my Windows partition that I thought it was completely different.

    So now, when I start it up, there is no option to start with Windows. But when I boot the Mac and select Startup disk, it displays Boot Camp is still there, and all my files etc. are still there.

    I tried to create one separate partition (other than Bootcamp). After that its done and I started my computer, I found that the option to boot Windows (Bootcamp startup disk) has disappeared. But I still see boot camp Mac files. Any solution for this? Thank you.

    (I tried to find this solution on the discussion Forum, and I found: repair Boot Camp after having created the new partition, however, I'm not able to follow these instructions. any help would be appreciated)

    For reference:

    Aerospews-MBP: ~ the marcuslo list $ diskutil

    / dev/disk0 (internal, physical):

    #: NAME SIZE TYPE IDENTIFIER

    0: GUID_partition_scheme * GB 500,3 disk0

    1: disk0s1 EFI EFI 209.7 MB

    2: Apple_HFS Macintosh HD 350,7 GB disk0s2

    3: disk0s3 Apple_Boot Recovery 650.0 MB HD

    4: Apple_HFS 47.6 Untitled GB disk0s4

    5: Microsoft database BOOTCAMP 101,0 GB disk0s5

    Aerospews-MBP: ~ list of cs marcuslo$ diskutil

    No logical volume group CoreStorage found

    Aerospews-MBP: ~ marcuslo$ sudo TPG - vv - r show/dev/disk0

    See the TPG: / dev/disk0: mediasize = 500277790720; SectorSize = 512; blocks = 977105060

    See the TPG: / dev/disk0: PMBR to sector 0

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

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

    start index size summary

    0 1 PMBR

    1 1 Pri GPT header

    2 32 table GPT Pri

    34 6

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

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

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

    686648216 92929128 4 part TPG - 48465300-0000-11AA-AA11-00306543ECAC

    779577344 262144

    779839488 197265408 5 part TPG - EBD0A0A2-B9E5-4433-87C0-68B6B72699C7

    977104896 131

    977105027 32 table dry GPT

    977105059 1 dry GPT header

  • Bootcamp has not finished - how can I continue installing windows on the new partition?

    Hi thanks for reading me.

    I started the bootcamp, it created the partition and install windows started 8.1.

    He asked for the location of the reader, so I chose my USB hard disk (read here which was possible) - SSD space is such a premium.

    I was told that the format of the disc is not FAT GUD, so I gave up installing.

    I used the disk utility to reformat the external hard drive.

    How can I get the windows partition now rerun the installation process?

    I tried the OPTION start upward, but the new partition does not show yet.

    Any help would be really appreciated.

    ~ Paul

    the partition windows 8 must be greater than 30 GB

    After that, please review the documents of Apple Computer

    How to install Windows using Boot Camp - Apple Support

  • Bootcamp lost after the new partition (try to increase disk space for the window)

    I have Version OS X El Capitan 10.11.2. Here are the details on my system.

    So I tried to increase the space in the partition for the training camp by using disk utility. I created the new partition. But now I can't bootcamp while I restart the computer and hold down the option key. I tried this in the terminal:

    sudo fdisk e/dev/disk0

    p

    setpid 4

    07

    Pavilion 4

    p

    writing or w (tried both)

    There

    But it does not seem to pick up my bootcamp windows. I also tried to restore the mac as early date of backup via external hard drive, but that doesn't seem to help either.

    Here is the screenshot of the output. Any help would be appreciated. Thank you.

    Can you post the output of the following Terminal commands?

    diskutil list

    Cs diskutil list

    sudo TPG - vv - r see the/dev/disk0

    sudo fdisk/dev/disk0

    The "sudo" commands will prompt to enter your password, and there do not appear to come back. You can also see caution against improper use 'sudo' and the potential loss of data due to an "abuse" of the order.

  • Is it possible to partition the hard drive by using software like Partition Master, install XP and an earlier version of Office on the new partition?

    Partitioning of a Windows 7 computer

    On a laptop Windows 7 HP, it is possible to partition the hard drive by using software like Partition Master, install XP and an earlier version of Office on the new partition? I know I can run Win7 XP mode, but many prefer a base XP environment. Yes, I have new copies unregistered XP and Office 2003.

    TIA,

    Steve

    Besides Partition Master you can also use Windows 7 "Disk Managment" to shrink the partition of Windows 7, create a new partition of the space "unallocated", and then do a formatting NTFS "Full".

    Installing dual Boot with Windows 7 and XP
    (Read each method in this article and that fits your needs)
    http://www.SevenForums.com/tutorials/8057-dual-boot-installation-Windows-7-XP.html

    EasyBCD allows to appear more user-friendly boot menu:
    http://NeoSmart.NET/DL.php?id=1

    J W Stuart: http://www.pagestart.com

  • Create the New Partition of the former created Partition

    Mr President.

    I use Windows XP SP3 OS with 4 Drives (C, D, E, F) hard partitioned. The size of my hard disk is 250 GB. I create forgettably drive E: Partition of greater capacity (Say 85 GB) memory space. The E: Partition holds about 35 GB of space free and remaining serve the space. I need to create the New Partition (G :) free space in the E: 35 GB Partition saying. ) The reason to ask for the help of the u. Please answer me as soon as possible.

    Hello

    Make sure that you have free space in each drive for better performance. When free disk space reaches 200 megabytes (MB) or less in a car, you will be prompted to free space in the disk.

    See the below items to create a new partition.

    How to use disk management to configure basic disks in Windows XP
    http://support.Microsoft.com/kb/309000

    How to partition and format a drive hard using the Windows XP Setup program
    http://support.Microsoft.com/kb/313348

  • Resize C: and add the new partition F: and THEN run HP_recovery - will be the F: partition survive?

    Hello!

    I resized C: and added another F: partition to back up my documents, pictures, etc. If I run HP_recovery, will she also shaped the new partition F:?

    I don't want THAT to happen...

    Babby, I don't think that the restore CD or partition will allow for the collection of partitions.  They will create a single partition only.

  • How to Oracle point home/U01 to the new partition/dev/sdg1 or grid.vmdk?

    People,

    Hello. I want to install Oracle 11 g RAC 2 with 2 Virtual Machines (rac1 and rac2). The virtual disk for each virtual computer is 20 GB which is/dev/sda raw device (the partition/dev/sda1 is the same size).

    I want to install Oracle 11 g RAC 2 grid using facility location is: home/.../grid/runInstaller. I'm at step 4 of 8 in the wizard whose content is as follows:

    Base Oracle: / u01/11g_grid
    Software localization: / u01/app/grid
    Book of cluster type: ASM
    OSASM group: dba

    Then click on the 'next' button I got this error:

    '[INS-32021] enough disk space on this volume for the selected Oracle home ".
    Cause - the selected Oracle home was on a volume without enough disk space.
    Action - choose a location for Oracle home that has enough space (minimum of 3, 017 MB) or free up space on the existing volume. "

    I have my 'home' directory using the test command: [host ora11g@rac1] $ df k
    Its output:

    File system: / dev/sda1 and tmpfs
    1 K-blocks: 20,308,020 and 848 184
    Used: 18,888,968 and 0
    Available: 370 816 and 848 184
    Use: 99% and 0%
    Mounted on: / and/dev/shm


    From the information above, we saw Oracle Home/u01 is under ' / ' (a score) and it's 99% used (not enough space). I've added a new virtual hard disk (10 GB) in VM rac1 grid.vmdk whose raw device is/dev/sdg and partitioned/dev/sdg1.

    My question is:

    How to Oracle point home directory/U01 to the new partition/dev/sdg1 or grid.vmdk?

    Thank you.

    Hello

    like what the user did run the installer?

    Have a read of http://docs.oracle.com/cd/E11882_01/install.112/e22489/prelinux.htm#BABBIDCF for the preliminary stages of details

    It may be useful

    See you soon

  • Bootcamp does not start after you have created the new partition

    Hi, I accidentally created a new partition on my mac OSX 10.11 and then discovered that my bootcamp would not start. After that, I deleted the partition but the disk for the BOOTCAMP partition identifier was disk0s5 instead of disk0s4. is anyway to fix this?

    Thanks in advance.

    The disc is now disk0s4, but when I try to boot in bootcamp, it says no bootable disc detected

  • After creating the new partition Boot Camp of fixation

    Hi, I tried to resize my Windows 10 bootcamp but changed my mind, when I deleted the empty partition without title and will reboot my computer to start with Windows, it does not appear (I pressed the option key alt is told by the way). So a way to solve this problem of boot camp after having created a new partition? I deleted this partition empty, just to let you know again.

    Thank you.

    Some screenshots of my disk utility (http://imgur.com/a/3dyle):

  • Fix bootcamp win7 partition after the new partition

    Hello!

    I have Macbook (Late 13) and OS X 10.11 installed beta and windows 7 in bootcamp.

    At first, I left 65 GB for Win7, but a few days ago, I decided to increase the size of bootcamp, so I created a new partition of 'Untitled' (~19.91 GB), thus improving the Win7 partition. Then I saw that the Win7 partition disappeared from the "alt-option charge" and the utility to your startup disk.

    Attached screenshots.

    I hope I can get help here.

    Can you post the output of

    sudo dd if = / dev/rdisk0s5 account = 1 2 >/dev/null | hexdump - C

  • Repair of bootcamp after the new partition

    Hello, I'm new to mac and OS X. so I need help please

    I have Macbook 13 OX S 10.11.2 and windows 10. I do a new partition for sharing files between this 2 system, but after that I couldn't enter my windows (windows that display an error asking me to fix or to put the CD or USB)

    I hope I can get help here...

    Can you post the output of

    sudo dd if = / dev/rdisk0s5 account = 1 2 >/dev/null | hexdump - C

    This will show us the header of the partition of BC.

  • How to on windows 8.1 PRO create the new partition, save image system on it and restore it from this image

    HP pavilion model - 17-e054ca

    After upgrading to PRO 8.1 window I see
    C:\ 932 GB
    D:\ 28 GB-sized recovery

    I want to save system image backup
    Currently, to create the system image backup, I have only one option to create the image on the external drive or on D:\

    1 is it possible without having to reinstall windows create new partion E:\ in order of the system backup images that him?
    If yes how to create new partition in win.8.1?
    2. If the partion E:\ will contain system images can I boot from usb drive recovery and choose one of the system located on E:\ restoration images
    3. If for some reason I want to reinstall the operating system from the recovery set DVD (s) factory setting of what is going to happen with partion E:\
    4. What is-locations of D:\ marked as recovery?

    1 is it possible without having to reinstall windows create new partion E:\ in order of the system backup images that him? If yes how to create new partition in win.8.1?

    (1) YES. Please see Computers HP - partitioning and naming (Windows 8) readers for the instructions titled "create a new partition.

    2. If the partion E:\ will contain system images can I boot from usb drive recovery and choose one of the system located on E:\ restoration images

    (2) YES, provided that you mean a 'repair Windows USB drive '.

    3. If for some reason I want to reinstall the operating system from the recovery set DVD (s) factory setting of what is going to happen with partion E:\

    (3) If you "reinstall OS" a set of recovery discs HP or an HP Recovery USB Flash drive, partition 'E:\. "is erased as support for HP recovery returns the computer to a factory State. I suggest that you store your "Backup of System Image" windows on an external hard drive for best results.

    4. What is-locations of D:\ marked as recovery?

    (4) the purpose of the "D:\". "HP recovery partition is to create your recovery HP personal media, return the computer to a factory State and restore the originally installed drivers and software.

    If you have any other questions, feel free to ask.

     

    Please click the 'Thumbs Up' white LAURELS to show your appreciation

  • politics does not create the new partition

    Location:

    I have an old XP computer where I want to add a second partition. The computer is part of a network of SBS 2008. Nor, disk management, or line of Diskpart command let me add a partition. According to Microsoft, literature, network policy settings may prevent you from creating a new partition. I connect locally on the computer, but still cannot add the partition.

    Question:

    How can I locally disable/change the policy setting to allow me to add a new partition?

    Thank you

    Two links that may be useful.

    How to use the Group Policy Editor to manage local computer policy.

    http://support.Microsoft.com/kb/307882

    Microsoft Windows XP - change local Group Policy object.

    http://www.Microsoft.com/resources/documentation/Windows/XP/all/proddocs/en-us/StartGPstandaloneEnv.mspx

    Hope these are useful,

  • Not able to create the new partition in disk management.

    Original title: Windows XP Home Edition Partition Question

    I tried to create another partition on my computer running Windows XP, but when I go to disk management, it doesn't let me do anything when I right click on a partition. I can't make a new (tried with cmd and disk management) and I can't change the current criteria. Is there an option somewhere that prevents you from changing or something? Almost many of the options are grayed out and I can't make a new partition. How can I fix? I want to make another partition.

    Hi JwadAziz,

    Windows XP doesn't support narrowing of the reader.

    You can use your favorite search engine & download any third-party software that might be used to.


    Note:
    this response contains a reference to third party World Wide Web site. Microsoft provides this information as a convenience to you. Microsoft does not control these sites and no has not tested any software or information found on these sites; Therefore, Microsoft cannot make any approach to quality, security or the ability of a software or information that are there.

    Hope the helps of information.
    Please post back and we do know.

Maybe you are looking for

  • Phone does not

    Hi, today I was walking and using my iPhone 5 c and I dropped to about waist high and when I picked it up it was black. I tried to turn it on and it was black. So, I turned on my ringtone and nothing happened, so I've done that I tried to do a hard r

  • VISA is a non-existent port...

    Hello We replaced our old computer laboratory with a new model and took the opportunity to also move to a more recent operating system (from Win XP to Win 7 64 bit) and to the current version of the CVI (2013 SP2) and its runtime of all device driver

  • How can question I run an executable file in the background?

    Hello I'm trying to run an executable in the context of LabVIEw, but none of the methods described in the forum and on ni.com seems to work. I use LV 2011 on a 64-bit Windows 7 machine where it is important. I tried the method described in "How to ma

  • How to disable the command "Please insert the card.

    Photosmart 8450 printer, using Windows 7, get the "Please insert card" message when I try to print a document.  I guess that's the camera photo card.  But I don't do that and I never.  How can I activate it out and go to regular print? The printer wa

  • Recover files deleted and replaced

    I had deleted a record 3 days back That was my life in it... my photos and childhood memories They are all gone now :( And I accidentally emptied my recycle bin The problem here is that I had saved new files after all this This means that my deleted