Doubt on partitioning

I'm a bit confused on the partitioning. Can anyone please advice.
While partitioning an existing table, is there any condition that the key column identified for partitioning should have NOT NULL constraint?
If not then how would the new insert would happen if the column is null?
Rgds,
SY

hi
Partititon is incredible technology. lots of benefits.
Partition Pruning
Partition pruning is the simplest and also the most substantial means to improve performance using partitioning. Partition pruning can often improve query performance by several orders of magnitude.
For example,
you have a Phone operator company and you are 20.000.000 customers
each customer speak average 10 phone convers.
daily 200.000.000 record
monthly 6.000.000.000
yearly 72.000.000.000
and you worked 10 years so 720.000.000.000
when you use partition for range for hourly
select* from customers where date='.....' only go 10.000.000 maybe less not going 720.000.000.000.
This query could potentially execute 100/200/300 times faster simply because of partition pruning.
Partition pruning works with all of Oracle's other performance features. Oracle will utilize partition pruning in conjunction with any indexing technique, join technique, or parallel access method.
also
http://www.filibeto.org/sun/lib/nonsun/oracle/11.1.0.6.0/B28359_01/server.111/b32024/partition.htm
hope this helps
zekeriya

Similar Messages

  • Doubt in partition and subpartition

    hi gems...good afternoon...
    I have a doubt redgarding partitioning and subpartitioning...This may be a silly question, but i am really not getting this...please help me..
    I have a table which has Range-Hash composite partitioning.
    The Range partitioning is on the default tablespace TS_PROD (because I didnt mention any tablespace name in the Range partitions).
    The Hash subpartitioning are on the corresponding partition tablespaces (TS_PART1,TS_PART2,TS_PART3....TS_PART6).
    I have created total 8 Range partitions and the number of Hash subpartitions are 6 for each of them.
    Now when I query the DBA_TAB_PARTITIONS, then I got the desired output i.e. all the Range partitions are in the default tablespace.
    When I query the DBA_TAB_SUBPARTITIONS, then also I got the desired output i.e. all the Hash subpartitions are in the separate partition tablespaces.
    But when I have inserted data in that table, then I found that both the default tablespace and partition tablespaces are getting filled up.
    Moreover, the sum of the increase in sizes of the partition tablespaces is equal to the increase in default tablespace.
    I am not getting the concept of this. Where are the datas are getting stored??? In the default tablespace or in the partition tablespaces??
    Thanks a lot in advance..

    thanks a lot RP for your reply...
    and sorry for the late and miscommunication...
    Actually i am not so experienced in the DBA line and in my company suddenly my senior DBA left and i am the only one here...I got tensed... :( :(
    I have started reading documentation of Oracle, have started the Administrator's Guide first...
    Anyways...now i got the concept of the partitioning and subpartitioning i was doing...
    The mistake which I was doing is: I was not mentioning the primary key index tablespace and that segment is going into the default tablespace and thats why the size was increasing for both default tablespace and partitioned tablespaces. Because of that fact I was getting confused again and again.
    As soon as I mentioned the primary key index tablespace, the size of the default tablespace stopped increasing...
    Now the script from which I am getting the size of the tablespaces: (join of dba_datafiles and dba_free_space)
    select /* + RULE */ t.tablespace, t.totalspace as " Totalspace(MB)",
    round((t.totalspace-fs.freespace),2) as "Used Space(MB)",
    fs.freespace as "Freespace(MB)",
    round(((t.totalspace-fs.freespace)/t.totalspace)*100,2) as "% Used",
    round((fs.freespace/t.totalspace)*100,2) as "% Free"
    from
    (select round(sum(d.bytes)/(1024*1024)) as totalspace, d.tablespace_name tablespace
    from dba_data_files d
    group by d.tablespace_name) t,
    (select round(sum(f.bytes)/(1024*1024)) as freespace, f.tablespace_name tablespace
    from dba_free_space f
    group by f.tablespace_name) fs
    where t.tablespace=fs.tablespace
    order by t.tablespace;
    Thanks a lot RP for your help... :)

  • Doubts regarding partition table.

    hi friends,
    i'm using oracle 10g (10.2.0.1) on windows server 2003
    i've a table, contains more than 2 million records, and it is range partition with quarterly by year.
    like values less than('01-05-2008')
    values less than('01-09-2008')
    selecting multiple partition in single query without union is not possible.
    so i fire the query like.
    select col1,col2,col3 from table where r_date between ('01-01-2008','25-06-2008');
    i would like to know that with this query, it will scan full table or it will scan only those two partitions...?
    thanks,

    i did that..
    when i fire the following query...
    select /*+ first_rows(1000) */ col1,col2,col3
    from table
    where r_date between to_date('01-01-2008','dd-mm-yyyy') and to_date('01-03-2008','dd-mm-yyyy');
    explain plan:
    SELECT STATEMENT, GOAL = HINT: FIRST_ROWS               11     1001     50050     640279     0     1     161
    PARTITION RANGE ITERATOR               11     1001     50050     640279     1     1     161
    TABLE ACCESS FULL     DBO     KEY_HISTORY_PART     11     1001     50050     640279     2     1     161
    it shows table access full and partition range iterator..
    because of that i'm asking..
    thanks..

  • How to create drive partition in window 8.1

    i have number of doubt on partition of disk management. i have new dell laptop, little difficult to using the same and i want to partition of the c disk and want to create d disk, but i unable to perform the same.
    when i click to the shrink volume and want to shrink the same, but a error flash out (there is no space on the disk to comple this operation).
    i had understand the same and when i'm going to delete the extra partition called health, EFI system, health recovery partition. the option of the delete volume is not available. 
    please give me some idea for doing partition to save the data, video and picture. if there an alternative option to save the same, please share it to me.

    Shrinking or using any other third party tools to create partition from C is not suggested. It usually results in complete installation of Windows, with files being lost forever.
    As a workaround, you can either create and mount a VHD/VHDx or map a folder inside the C drive (in C:\) as a separate drive. This will look like a separate drive and the steps are quite easy compared to creating a new physical partition. The following links
    will be helpful:
    http://www.howtogeek.com/howto/windows-vista/map-a-drive-letter-to-a-folder-the-easy-way-in-windows/
    http://www.wikihow.com/Create-a-Virtual-Hard-Drive-in-Windows-8
    Balaji Kundalam

  • Pismo w/panther needs to create bootable OS9 partition for firmware update

    Hi guys -
    I have the original software install and software restore cds that came with my pismo, and I'm sure there must be a way to install OS9 onto a partition on my pismo from there without erasing any of the data or OSX10.3 on the other partition. Years ago when the original hard drive died, I simply bought and installed Panther and didn't install os9 anywhere.
    Now I've picked up a MBP and am unable to complete the Migration Assistant data transfer from the pismo to the mbp using FW (it recognizes the info on the pismo, but stalls during transfer at 8.1 hours to go!) because (it seems) I never installed the 4.1.8 firmware update on the pismo when the update came out. The update requires a boot from a local Mac OS 9.1 writeable partition.
    So, essentially, I'm looking to install os9 off of one of the original powerbook install/restore cds onto an empty partition I've prepared on the pismo so I can update the firmware and then complete the migration to the mbp.
    1. Is there a way to check the pismo's current firmware (in case I've already installed it years ago and forgot?)
    2. Is there a simpler way to get OS9 onto the pismo?
    3. Is there a simpler way to migrate my data to the MBP? (Other than pick up a 2.5" FW enclosure, remove the hd from the pismo and do it from there?)
    4. If no, to the above questions, How do I do this?
    Thanks for any help!

    Hi Tom -
    Thanks for replying so quickly, and the tip on how to find the current firmware info !
    I just checked and my pismo is also running Boot ROM Version: 3.2.4f1
    However, my concern isn't how well or whether it can run Tiger - it's the machine's ability to run in Firewire Target Disk Mode. And the update in question is intended to address the pismo's shortcomings there (it's mentioned in the ReadMe file that comes with the update). It's in the apple document for troubleshooting Migration Assistant that I discovered the existence of this update. The process for me freezes...
    http://docs.info.apple.com/article.html?artnum=25773
    Nice to hear that Tiger runs well on the pismo though, I'll bear it in mind for the future.
    Here's what I've done since posting my initial question:
    I inserted the Software Restore CD and copied over all the files from it onto my partition. System Preferences<Startup Disk recognized an OS9 system file on the partition, and I selected it as my startup disk. Unfortunately, on restart I got the question mark flashing over the folder, and the pismo booted up from the Software Restore CD still in the drive. The CD did not identify my HD as viable to be restored to, something like there was nothing to restore and I must install software instead.
    I am very wary of doing an install because I doubt the partition will be detected and of course the Install CD will erase the contents of my hard drive during the install. I'm tempted to pick up a cheap hd and install OS9 on that for the update, but there must be a way to get it onto the partition without wiping everything out!
    Any additional help would be appreciated!
    Best
    Steve

  • Regarding select Statement in Partition

    Hi Friend,
    I have one doubt about Partition.
    CREATE TABLE list_part (
    deptno NUMBER(10),
    deptname VARCHAR2(20),
    quarterly_sales NUMBER(10,2),
    state VARCHAR2(2))
    PARTITION BY LIST (state) (
    PARTITION q1_northwest VALUES ('OR', 'WA') TABLESPACE part1,
    PARTITION q1_southwest VALUES ('AZ', 'CA', 'NM') TABLESPACE part2,
    PARTITION q1_northeast VALUES ('NY', 'VT', 'NJ') TABLESPACE part1,
    PARTITION q1_southeast VALUES ('FL', 'GA') TABLESPACE part2,
    PARTITION q1_northcent VALUES ('MN', 'WI') TABLESPACE part1,
    PARTITION q1_southcent VALUES ('OK', 'TX') TABLESPACE part2);
    I would create one table like in above example
    My doubt is how can i Select the data in particular tablespace For Example i'm selecting tablespace part1
    Give some example.
    Regards,
    Suresh Kumar

    You can only select from tables (or views).
    Tables are the logical representation of your data.
    Tablespaces are the physical storage of your data.
    When you select you don't care where the bits and bytes are coming from.
    You can of course match your select with a certain table partition.

  • Lost one primary and two extended partitions - testdisk isn't working

    Hey everyone... long time no see. I needed a break
    ("Conclusion" below if the following is TL;DR)
    Background:
    First up... don't pull the plug on your PC, even if you are over-fatigued, and try to minimize the number of times you have to force-switch your system off. Read on if you would like to know why.
    About four days ago, I was working on something, and everything was all good. Nothing was wrong, awry, or weird, and the only thing I could've written home about my partition structure was that cfdisk showed all the metadata for my extended entries.
    That all changed one simple reboot later.
    Three days ago, I greeted a system that booted up perfectly, and before entering X I decided to work on a document in textmode. Once I'd had enough of that, I fired up X and continued working on some changes to the QEMU VGA BIOS that makes it look like an old 512K VGA card from 1991 that I have. Or rather, tried to. I fired up my editor and a console and tried to compile... and /stuff, /dev/sda4, wasn't mounted. No problem; it isn't in my fstab. I should get around to adding it one da--whoa, what the...? /dev/sda4 is SWAP?!
    It got worse from there. Three days ago I was extremely fatigued because I left a CRT plugged in that I don't usually plugged in (and I didn't know until the next morning!), and being tragically sensitive to radiation, I was rather unreasonable (and had been all day, even while away from the computer), so didn't think clearly about what I did next.
    First, I proceeded to use cfdisk to change the partition type from 82 (Swap/Solaris) to 83 (Linux). The partition table decided not to "catch", so cfdisk pointed out that the prudent thing to do would be to reboot, which I ignored (major failure #1) and fired up TestDisk to try and fix (major failure #2) and was like "Enter, enter, enter, enter, enter, enter, ^C, reboot" (catastrophic failure #1).
    ***************** FILESYSTEM CHECK FAILED ****************
    * Please repair manually and reboot. Note that the root *
    * file system is currently mounted read-only. To remount *
    * it read-write type: mount -n -o remount,rw / *
    * When you exit the maintenance shell the system will *
    * reboot automatically. *
    The rest was history, unfortunately.
    I had a 26GB "hole" of free space in my hard disk and... eek. Deciding I'd done enough damage, I fought off my OCD/Autistic "GAH, the computer is DEAD, DO SOMETHING" and got some sleep.
    The next day (the day I discovered the CRT was off but plugged in) I decided to have a crack at fixing the problem.
    Conclusion:
    Worst case scenario, I thought, would be that the 26GB of data was simply gone, and best case, I'd have a ~5GB hole in the disk someplace that would hold my two Syllable AFS partitions (partition type 2A), which I was sure no utility I knew of would be able to figure out. I was almost completely correct: I got my 17GB /storage partition back (WHEW), but I lost my two Syllable partitions as well as a third primary partition of unknown filesystem type.
    Here's my evidence:
    Going through /var/log reveals files showing lines like
    messages.log.2:May 14 10:27:53 hornet sda1 sda2 sda3 < sda5 sda6 sda7 sda8 sda9 sda10 sda11 sda12 sda13 > sda4
    This proves that sda4 did once exist as a real partition and wasn't mountable as the result of a freak accident on the disk.
    In addition, sda4 is indicated to be a primary partition at the end of my extended partitions. This makes me wonder what on earth's happened here, because I only have a single "Free Space" hole inside my extended header, not after it. Did the extended partition header somehow manage to get resized? :S
    I remember - and have the .bash_history to prove - that I chowned and chgrp'd /stuff (ie /dev/sda4) such that I could read/write it as my own user, and this isn't possible with FAT* partitions - you have to dive into /etc/fstab to make them user-writable, and I know I didn't do that. So this partition is possibly ext2, ext3, or JFS (and I'm thinking JFS).
    While probably not useful, the fact that the "Free Space" hole is after sda9 but before sda10 lines up with the fact that I had to move sda12 and 13 (a FAT32 partition as well as a JFS partition, the one I mount at /storage) down two notches in order for my system to boot up without complaint.
    TestDisk is only listing what I've already got fixed and in working order at this point. In other words, it isn't seeing the other partition. Incidentally, PhotoRec, a program analogous to TestDisk, probably wouldn't be useful here since I doubt that partition contains images.
    -dav7
    Last edited by dav7 (2009-06-24 04:10:59)

    You really got yourself into a big mess ....
    As for the partitions magically changing places .... have you recently used gparted (or parted which I believe is the program that actually does the changes) to resize or move any partitions? If you have that's the reason why the partition table is so messed up.
    If testdisk can't fix that I have no idea of what can ... once I had a similar problem and testdisk saved the day but I had only ntfs/ext3/swap/extended primary partitions and logical ext3/ntfs partitions.

  • OS X won't boot after installing XP

    So I installed XP with boot camp (111 GB Partition), and now it is running fine.
    Well, sort of fine, it doesn't recognize the ethernet port on the iMac, but I assume that's a driver problem that I should be able to fix once in OS X.
    So I booted into OS X to try to fix the problem.
    Problem is, after holding Option, and choosing Mac, it brought up the grey screen with the apple and the spinning logo, and after maybe 30 seconds to a minute, it restarts, and even though I hold Option again, it boots straight into XP.
    I know I installed XP on the correct partition, so that's not a problem.
    And luckily, I have a Time Capsule, so if it turns out that I installed XP without properly updating all the drivers first, I can just go back to what I had - if I can boot into OS X, that is.
    Any suggestions?

    Hmm? got yourself into a bit of a mess there, for future reference, if you have similar problems in the future, I'd suggest booting from your OSX install DVD and running Disk Util first, that helped me out once in the early bootcamp beta days with a similar problem to your missing OSX issue. On the windows side you can usually resolve similar problems using the Windows recovery console in XP http://support.microsoft.com/kb/314058 or the System recovery options in Vista http://windowshelp.microsoft.com/Windows/en-US/Help/326b756b-1601-435e-99d0-1585 439470351033.mspx
    Since your attempts to recover have erased your XP partition (I doubt the partition itself is deleted) your best option now is probably a Time Machine restore (note: to the best of my knowledge, this will not restore your XP partition) and a manual re-install of XP.
    See the "To restore an entire volume that was erased" section in the following Apple KB article:
    http://discussions.apple.com/post!reply.jspa?messageID=8476671
    On how to restore with TM
    Hope this helps.

  • MuticolumnPartitioning key

    Hi All,
    BANNER
    Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bi
    PL/SQL Release 10.2.0.4.0 - Production
    CORE 10.2.0.4.0 Production
    TNS for IBM/AIX RISC System/6000: Version 10.2.0.4.0 - Productio
    NLSRTL Version 10.2.0.4.0 - Production
    I have doubt on partitioning pruning on a table having partitioned keys on multiple columns. example.
    Create table XYZ
    (NO NUMBER,
    BCD DATE,
    FBD DATE,
    SD  DATE,
    TRX NUMBER)
    PARTITION BY RANGE (BCD,FBD)
    ( PARTITION S1 VALUES LESS THAN ( TO_DATE('22/12/2005','DD/MM/YYYY'), TO_DATE('22/12/2005','DD/MM/YYYY'))
       TABLESPACE T01, 
    PARTITION S2 VALUES LESS THAN ( TO_DATE('24/12/2005','DD/MM/YYYY'), TO_DATE('24/12/2005','DD/MM/YYYY'))
       TABLESPACE T02 
    INSERT INTO XYZ values (1, '21-DEC-2005','21-DEC-2005','21-DEC-2005' 234 );  -- will go in partition S1
    INSERT INTO XYZ values (2, '23-DEC-2005','23-DEC-2005', '23-DEC-2005',546 ); -- will go in partition S2
    INSERT INTO XYZ values (3, '23-DEC-2005','21-DEC-2005','23-DEC-2005,' 546 ); -- will go in partition S2Question is:
    Now, I have select query which has predicate on FBD= '21-DEC-2005' i.e.
    SELECT * FROM XYZ WHERE FBS= '21-DEC-2005'
    will this prune the partition is yes how many?
    Now, I have select query which has predicate on STD= '21-DEC-2005' i.e.
    SELECT * FROM XYZ WHERE FBS= '21-DEC-2005'
    will this prune the partition is yes how many?
    Please explain the pruning part in case of multi-columns partitioning.
    Edited by: user8650395 on Feb 25, 2010 8:43 PM

    Hi experts,
    Please reply...

  • Doubt with raw partition ASM

    Hi Gurus,
    Have a doubt regarding the raw partitions being used in ASM.
    1.Is raw partition being used  only applicable to linux platform , or can it be done on other plaform as well
    2.Is it correct if I say if a diskgroup is created with single  raw disk with external  redundancy , we are saying the oracle need not do the redundancy and we have set up redundancy for the raw partition at lus/os level.
    3.what in general is better asmlib/raw partition for management of ASM.
    Thanks
    Atul

    Hi,
    1.Is raw partition being used  only applicable to linux platform , or can it be done on other plaform as well.
    ==>> Raw partition is not supported 11G onwards .
         On linux ASM support both types of devices ,block and character.
      For other unix version,ASM supports character devices.
    2.Is it correct if I say if a diskgroup is created with single  raw disk with external  redundancy ,
    we are saying the oracle need not do the redundancy and we have set up redundancy for the raw partition at lus/os level.
    ==>> Yes,in case of external redundancy ASM does not do mirroring .So,it depends upon OS level redundancy.
         if you use normal redundancy ,ASM will do mirroring alongwith stripping at ASM level.
    3.what in general is better asmlib/raw partition for management of ASM.
    ===>> ASMlib devices are created upon partitioned device .
          And ASM will use ASMlib API to access those devices and do IOs.
       For Raw partition ASM will use system calls directly to access those devices.
      Advantages of ASMlib,
      + ASMlib will keep device persistency across reboot
      + Use ASMlib API for processing IOs in batches
      -- This give slightly better performance .
      If you use UDEV rules ,then it will give device persistency across reboot ,but use
      system calls for IOs directly.
      For raw partitions ,you need to maintain rawservices also.
      and it limits you to have 256 devices .
      But ASM can use upto first 10000 disks and maximum size can be of 2Tb in non-exadata.
      With these limitation and advantages,it is better to use ,
      Udev rules and ASMlib compared to raw ...
        while comparing ASMlib with Udev ,they are almost same,with ASMlib have slight advantage.
    Regards,
    Aritra

  • Doubt on Table Partitions

    hello,
    i am junior dba our company deals with health care products,
    in our project we have a USER REGISTRATION table,in which every user should
    register in that table before joining in the hospital.
    That table contains lakhs of records ,and we made date wise partitions on that table.
    Now my doubt is, all the transactions that are under the particular month will store
    in the appropriate partition.
    for example:
    All the data in the month (MARCH) will store in the (MARCH)partition
    my table contains USERREGISTEREDDATE field default is SYSDATE.
    Now i wan't to change the USERREGISTEREDDATE field which is
    stored in the (MARCH)partition to APRIL ,it is not allowing to change the date,
    because registrations that are done under MARCH are stored in that (MARCH)partition
    can u please give solution to me
    regards
    lakshmi

    Migration of rows to new partitions based on key value changes can be controlled by application of the ENABLE/DISABLE ROW MOVEMENT clause in the CREATE and ALTER TABLE statements.
    ALTER TABLE tableName ENABLE ROW MOVEMENT;
    ~ Madrid.

  • Doubt on Range Partitions

    Hello everyone.
    Oracle9i Enterprise Edition Release 9.2.0.5.0 - 64bit Production
    18:44:45 161:tcs237427@EBPP> desc rs_ebpp.rs_mail_job
    Name Null? Type
    JOB_KEY NOT NULL VARCHAR2(50)
    MOF_KEY NOT NULL VARCHAR2(50)
    MOF_PATH VARCHAR2(255)
    REPORT_ID NOT NULL NUMBER(38)
    PROFILE_NAME VARCHAR2(25)
    FILE_PATH VARCHAR2(1024)
    JOB_DATE DATE
    JOB_FINISH_DATE DATE
    SCHEDULED NUMBER(38)
    USER_ID VARCHAR2(25)
    STATUS VARCHAR2(25)
    COMMENTS VARCHAR2(255)
    MAIL_FROM VARCHAR2(255)
    MAIL_TO VARCHAR2(255)
    MAIL_CC VARCHAR2(255)
    MAIL_BCC VARCHAR2(255)
    MAIL_SUBJECT VARCHAR2(255)
    MAIL_MESSAGE VARCHAR2(512)
    DATA7 VARCHAR2(50)
    DATA8 VARCHAR2(50)
    DATA9 VARCHAR2(50)
    DATA20 DATE
    DATA21 NUMBER
    DATA22 NUMBER
    DATA23 NUMBER
    DATA24 NUMBER
    DATA25 NUMBER
    DATA26 FLOAT(126)
    DATA27 FLOAT(126)
    DATA28 FLOAT(126)
    DATA29 FLOAT(126)
    DATA30 FLOAT(126)
    DATA10 VARCHAR2(50)
    DATA11 VARCHAR2(50)
    DATA12 VARCHAR2(50)
    DATA13 VARCHAR2(50)
    DATA14 VARCHAR2(50)
    DATA1 VARCHAR2(50)
    DATA15 VARCHAR2(50)
    DATA16 DATE
    DATA2 VARCHAR2(50)
    DATA17 DATE
    DATA3 VARCHAR2(50)
    DATA4 VARCHAR2(50)
    DATA18 DATE
    DATA5 VARCHAR2(50)
    DATA19 DATE
    DATA6 VARCHAR2(50)
    I tried to create range partition on table whose partitioning key (JOB_KEY) was a VARCHAR2. I was able to create the partitions till 30th Jan.
    16:56:32 SQL> SELECT PARTITION_NAME,TABLE_NAME,HIGH_VALUE FROM DBA_TAB_PARTITIONS WHERE TABLE_NAME='RS_MAIL_JOB_NEW' ORDER BY 1;
    Partition
    Name TABLE_NAME HIGH_VALUE
    P110101 RS_MAIL_JOB_NEW TO_DATE('2011-01-02 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN
    P110102 RS_MAIL_JOB_NEW TO_DATE('2011-01-03 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN
    P110103 RS_MAIL_JOB_NEW TO_DATE('2011-01-04 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN
    P110104 RS_MAIL_JOB_NEW TO_DATE('2011-01-05 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN
    P110105 RS_MAIL_JOB_NEW TO_DATE('2011-01-06 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN
    P110106 RS_MAIL_JOB_NEW TO_DATE('2011-01-07 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN
    P110107 RS_MAIL_JOB_NEW TO_DATE('2011-01-08 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN
    P110108 RS_MAIL_JOB_NEW TO_DATE('2011-01-09 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN
    P110109 RS_MAIL_JOB_NEW TO_DATE('2011-01-10 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN
    P110110 RS_MAIL_JOB_NEW TO_DATE('2011-01-11 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN
    P110111 RS_MAIL_JOB_NEW TO_DATE('2011-01-12 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN
    P110112 RS_MAIL_JOB_NEW TO_DATE('2011-01-13 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN
    P110113 RS_MAIL_JOB_NEW TO_DATE('2011-01-14 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN
    P110114 RS_MAIL_JOB_NEW TO_DATE('2011-01-15 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN
    P110115 RS_MAIL_JOB_NEW TO_DATE('2011-01-16 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN
    P110116 RS_MAIL_JOB_NEW TO_DATE('2011-01-17 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN
    P110117 RS_MAIL_JOB_NEW TO_DATE('2011-01-18 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN
    P110118 RS_MAIL_JOB_NEW TO_DATE('2011-01-19 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN
    P110119 RS_MAIL_JOB_NEW TO_DATE('2011-01-20 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN
    P110120 RS_MAIL_JOB_NEW TO_DATE('2011-01-21 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN
    P110121 RS_MAIL_JOB_NEW TO_DATE('2011-01-22 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN
    P110122 RS_MAIL_JOB_NEW TO_DATE('2011-01-23 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN
    P110123 RS_MAIL_JOB_NEW TO_DATE('2011-01-24 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN
    P110124 RS_MAIL_JOB_NEW TO_DATE('2011-01-25 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN
    P110125 RS_MAIL_JOB_NEW TO_DATE('2011-01-26 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN
    P110126 RS_MAIL_JOB_NEW TO_DATE('2011-01-27 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN
    P110127 RS_MAIL_JOB_NEW TO_DATE('2011-01-28 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN
    P110128 RS_MAIL_JOB_NEW TO_DATE('2011-01-29 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN
    P110129 RS_MAIL_JOB_NEW TO_DATE('2011-01-30 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN
    P110130 RS_MAIL_JOB_NEW TO_DATE('2011-01-31 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN
    But after that I started getting below error:
    16:56:40 SQL> alter table rs_ebpp.rs_mail_job_new add partition p110131 values less than (to_date('2011-02-01 00:00:00', 'SYYYY-mm-dd h
    h24:mi:ss', 'nls_calendar=GREGORIAN'));
    alter table rs_ebpp.rs_mail_job_new add partition p110131 values less than (to_date('2011-02-01 00:00:00', 'SYYYY-mm-dd hh24:mi:ss', 'n
    ls_calendar=GREGORIAN'))
    ERROR at line 1:
    ORA-14074: partition bound must collate higher than that of the last partition
    I checked the manual, but didn't find it written anywhere about restriction on column data type for Range partition or others.
    I doubt if creating range partitions on columns with varchar2 is allowed and if yes, not sure why I get that error

    Try to split first partition:
    alter table rs_ebpp.rs_mail_job_new 
    split partition p110201 at (to_date('2011-31-01 00:00:00', 'SYYYY-mm-dd hh24:mi:ss', 'nls_calendar=GREGORIAN'))
    into (partition p110131, partition p110201) ;

  • Doubt in Hash Partition

    Hi friends,
    I have a hash partition table with 3 parts.
    My doubt is Can i use a query to see how many records are present in each parts?

    SQL> CREATE TABLE my_table
      a  INTEGER
    PARTITION BY HASH (a)
      PARTITION part_1,
      PARTITION part_2,
      PARTITION part_3
    Table created.
    SQL> INSERT INTO my_table
       SELECT object_id
         FROM all_objects
    43055 rows created.
    SQL> SELECT COUNT (*)
      FROM my_table PARTITION (part_1)
      COUNT(*)
         10734
    1 row selected.
    SQL> SELECT COUNT (*)
      FROM my_table PARTITION (part_2)
      COUNT(*)
         21495
    1 row selected.
    SQL> SELECT COUNT (*)
      FROM my_table PARTITION (part_3)
      COUNT(*)
         10826

  • Doubt on the need of partitioning

    Hello Team
                      I know that when the no of records in a table exceeds 2 billion then we need to go with partitioning . But we replicate tables from SAP ECC into our HANA system So we don't create tables . so at what step this partitioning needs to be done . At the time of replication or after that because what i saw is that partitioning is being done with create statements but since the tables are already coming from SAP ECC when we do this partitioning .
    Regards

    Hi Prag,
    > At the time of replication or after that because what i saw is that partitioning is being done with create statements but since the tables are already coming from SAP ECC when we do this partitioning .
    You can also partition tables using "ALTER TABLE". Please have a look at ALTER TABLE - SAP HANA SQL and System Views Reference - SAP Library
    Best regards,
    Wenjun

  • Partition Doubt

    Senario
    1. A table with a CLOB Column and a Varchar2 column.
    2. Want to create a Partition of type LIST. The LIST Column will be the VARCHAR2 Column.
    IS IT POSSIBLE

    michaels>  CREATE TABLE t (
    doc CLOB,
    state  VARCHAR2(2))
    PARTITION BY LIST (state) (
    PARTITION nw VALUES ('OR', 'WA'),
    PARTITION sw VALUES ('AZ', 'CA', 'NM'))
    Table created.

Maybe you are looking for