Partition of a natural number

hello
i want to find out the partition of natural numbers.
e.g. the partion of 4
p(4) = 5 = {(4), (1,3), (2,2), (1,1,2), (1,1,1,1)}
can someone help me with a short code example?
any hints are appreciated as i am new to java...
greets

okay so far i have got the following code: the problem is that for p(n) with n> 10 the results are getting wrong. Any hints on this???
import java.lang.*;
public class Partition {
    static int size = 10;
    static int counter = 0;
    static int current[] = new int[size];
    static int parts = 0;
    static void partition(int n,int k) {
        //ende der rekursiven Aufrufe und ausgabe
        if (n==0) {
            print(current);
            //erzeugt temp feld
            int[] aux = new int[counter];
            System.arraycopy(current,0,aux,0,counter);
            current = new int[size];
            System.arraycopy(aux,0,current,0,counter-1);
        else {
            for (int i=k; i>0 && n>0; i--) {
                if(n!=1) {
                    current[counter++]=i;
                    partition(n-i,i);
                else {
                    current[counter++]=1;
                    print(current);
                    counter--;
                    break;
                counter--;
    static void print(int input[]) {
        for(int i=0; i<10; i++) {
            if (input[i] != 0) //nullen weglassen
                System.out.print(input[i]+":");
        System.out.println();
        parts++;
    public static void main(String[] args) {
        if (args.length<1) {
            System.out.println("Usage:\njava Partition IntWert");
            System.exit(1);
        if (Integer.parseInt(args[0]) > size) {
            System.out.println("Bitte Wert kleiner "+size+" eingeben!");
            System.exit(1);
        else {
            int n=Integer.parseInt(args[0]);
            partition(n,n);
        System.out.println("\np("+args[0]+") = "+parts);
}

Similar Messages

  • Process Chains - "Natural Number"

    In the Process Chain Planning view there is a column "Natural Number".  For me it is populated with '0' for every row.  I'm curious if anyone knows what this might be in relation to process chains?
    Thanks,
    Ken Murray

    Hi Bhanu, Yes in am in BI 7.0 SPS 10.  I would post a PNG file somewhere if I could.  Any guesses what it might be for?
    Thanks!

  • What in Natural Number in the Planning View of Process Chains

    Hi Experts,
    Can anyone explain what is Natural number column in the Planning View of the Process Chain?
    Thanks,
    Rajan

    Hello,
    I am a new user. Using SAP BW 7. When I select planning view I would like to see a chain X in gray. How can I? I noticed that the natural number in grayed chains is 3 instead of 0: perhaps this is the procedure? I have to change the natural number?
    Help me!
    Thanks for answer!

  • What is the difference between partition-count and the number of caches?

    What is the difference between partition-count and the number of caches in Coherence? Are they same?

    Those are totally orthogonal concepts.
    For more, look at this thread where I answered your other related questions and explain this, too:
    Where can I find the accurate definitions of these terms?
    Best regards,
    Robert

  • 11G Interval Partitioning range based on number

    All the Oracle documentation states that interval partitioning can be range partitioned on a column that is NUMBER or DATE datatype, but the examples all show just for a DATE column and for a monthly interval.
    I need an interval by year, where the partition column is NUMBER and contains 4 digit numbers for year like 2010.
    .Does anyone have a working example for creating an interval partitioned table on a NUMBER datatype column?

    Please do not refer people to the old, non-maintained psoug site. I have asked this several times in the past.
    You do people no favor sending them to the old site contains as it contains inaccurate information I am unable to access and fix.
    The new site is www.morganslibrary.org.
    And I am a bit of an expert on the subject ... as I am "Morgan."
    Thank you.

  • When I restore my Mac with Time Machine and then want to partition my disk, Disk Utility always says incorrect number of extended attributes

    When I need to restore my Mac from a time machine backup and then partition my hard disk (the disk inside the computer not the time machine disk), Disk Utility always says "Incorrect Number of Extended Attributes". I then boot into Recovery HD and run disk repair. The result? "The volume Macintosh HD appears to be OK". So then I reboot into normal OS and try the partition again, still Incorrect number of extended attributes. I have even tried /sbin/fsck -fy in single-user mode but it still says the volume is ok. I have tried partition my disk in the recovery HD and it still fails.
    Can anyone please help me solve this problem?

    Try something stronger, such as DiskWarrior or TechTool Pro.
    iMac refurb (27-inch Mid 2011), OS X Mavericks (10.9.4), SL & ML, G4 450 MP w/Leopard, 9.2.2

  • Maximum number of partitions allowed per table.

    Interesting findings with interval partitioning:
    SQL> SELECT  *
      2    FROM  v$version
      3  /
    BANNER
    Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
    PL/SQL Release 11.2.0.3.0 - Production
    CORE    11.2.0.3.0      Production
    TNS for 64-bit Windows: Version 11.2.0.3.0 - Production
    NLSRTL Version 11.2.0.3.0 - Production
    SQL> DROP TABLE tbl PURGE
      2  /
    Table dropped.
    SQL> CREATE TABLE tbl(
      2                   id number(6),
      3                   dt date
      4                  )
      5    PARTITION BY RANGE(dt)
      6      INTERVAL (INTERVAL '1' DAY)
      7      (
      8       PARTITION p1 VALUES LESS THAN (date '-857-12-31')
      9      )
    10  /
    Table created.
    SQL> select  partition_name,
      2          high_value
      3    from  user_tab_partitions
      4    where table_name = 'TBL'
      5  /
    PARTITION_NAME HIGH_VALUE
    P1             TO_DATE('-0857-12-31 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'N
                   LS_CALENDAR=GREGORIAN')
    SQL> INSERT
      2    INTO tbl
      3    VALUES(
      4           1,
      5           sysdate
      6          )
      7  /
    1 row created.
    SQL> DROP TABLE tbl PURGE
      2  /
    Table dropped.
    SQL> CREATE TABLE tbl(
      2                   id number(6),
      3                   dt date
      4                  )
      5    PARTITION BY RANGE(dt)
      6      INTERVAL (INTERVAL '1' DAY)
      7      (
      8       PARTITION p1 VALUES LESS THAN (date '-858-01-01')
      9      )
    10  /
    Table created.
    SQL> select  partition_name,
      2          high_value
      3    from  user_tab_partitions
      4    where table_name = 'TBL'
      5  /
    PARTITION_NAME HIGH_VALUE
    P1             TO_DATE('-0858-01-01 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'N
                   LS_CALENDAR=GREGORIAN')
    SQL> INSERT
      2    INTO tbl
      3    VALUES(
      4           1,
      5           sysdate
      6          )
      7  /
      INTO tbl
    ERROR at line 2:
    ORA-14300: partitioning key maps to a partition outside maximum permitted number of partitions
    SQL> From Logical Database Limits:
    Maximum number of partitions allowed per table or index: 1024K - 1
    I always thought limit implies to number of actual, not potential partitions, however it looks like I was wrong, although it makes not much sense to limit potential and not actual partitions:
    SQL> select  trunc(sysdate) - date '-858-01-01',
      2          1024 * 1024 - 1
      3    from  dual
      4  /
    TRUNC(SYSDATE)-DATE'-858-01-01' 1024*1024-1
                            1048661     1048575
    SQL> select  to_char(DATE'-858-01-01' + 1048575,'MM/DD/YYYY')
      2    from  dual
      3  /
    TO_CHAR(DA
    11/17/2012
    SQL> So tomorrow "magic" date should increase by one day. I'll test it. But more interesting if tomorrow I will be able to insert a row that forms a new partition into table TBL.
    SY.

    rp0428 wrote:
    The other argument is that Oracle has to be able to automatically create any partition required and it can only create 1024k - 1. So if you create yours with sysdate how could it create all of the others?Not sure I follow. What is the purpose of counting potential partitions? Partition part# iin sys.tabpart$ is not assigned based on potential partition position. If I issue a DDL to create new partition regardless of interval/non-interval partitioning Oracle has to check how many partitions table has so far or po and raise same/similar exception if partition I am asking to create is over the limit. And, in any case, knowing we can create all potential partitions at table create time doesn't mean I will not try to insert data outside the range. So there is absolutely no guarantee Oracle can automatically create any partition requested. Again, I don't understand why creating non-interval partitioned table with a single initial partition has partition count of 1:
    SQL> DROP TABLE tbl1 PURGE
      2  /
    Table dropped.
    SQL> CREATE TABLE tbl1(
      2                    id number(6),
      3                    dt date
      4                   )
      5    PARTITION BY RANGE(dt)
      6      (
      7       PARTITION p1 VALUES LESS THAN (date '-857-12-31')
      8      )
      9  /
    Table created.
    SQL> SELECT  partition_count
      2    FROM  user_part_tables
      3    WHERE table_name = 'TBL1'
      4  /
    PARTITION_COUNT
                  1
    SQL>And interval partitioned table with same single initial partition has partition count of 1048575:
    SQL> CREATE TABLE tbl1(
      2                    id number(6),
      3                    dt date
      4                   )
      5    PARTITION BY RANGE(dt)
      6      INTERVAL (INTERVAL '1' DAY)
      7      (
      8       PARTITION p1 VALUES LESS THAN (date '-857-12-31')
      9      )
    10  /
    Table created.
    SQL> SELECT  partition_count
      2    FROM  user_part_tables
      3    WHERE table_name = 'TBL1'
      4  /
    PARTITION_COUNT
            1048575
    SQL> Would be interesting to find out what forces Oracle to go into potential partition mode for interval partitioning.
    SY.

  • How to find out the min & max partition_id in a range partition?

    Hi we have a table set up by range partition
    In the table creation script. It goes something like:
    PARTITION PARTD_CUST_3_1_NEW VALUES LESS THAN ('39500')
    so how we can find out this number '39500' from some of the data_dictionary view?
    What we want to do is to set up parallel processing (do-it-yourself) based on partition.
    So the number of parallel process will be based on this ID-range.
    I can find out how many partitions are there by using something like this:
    SELECT COUNT(*)
    FROM all_tab_partitions WHERE table_owner='OWNER_NAME' AND table_name='TABLE_NAME'
    We have 5 partitions now but the table structure can change in the near future even this table has moer than 130Million rows
    I do not want to hardcode this "39500" just in case the table structure changes (partition structure changes)
    Any idea ??

    vxwo0owxv wrote:
    Hi we have a table set up by range partition
    In the table creation script. It goes something like:
    PARTITION PARTD_CUST_3_1_NEW VALUES LESS THAN ('39500')
    so how we can find out this number '39500' from some of the data_dictionary view?
    What we want to do is to set up parallel processing (do-it-yourself) based on partition.
    So the number of parallel process will be based on this ID-range.
    I can find out how many partitions are there by using something like this:
    SELECT COUNT(*)
    FROM all_tab_partitions WHERE table_owner='OWNER_NAME' AND table_name='TABLE_NAME'
    We have 5 partitions now but the table structure can change in the near future even this table has moer than 130Million rows
    I do not want to hardcode this "39500" just in case the table structure changes (partition structure changes)
    Any idea ??query DBA_TAB_PARTITIONS.HIGH_VALUE

  • Basic Question:  How to partition an external drive and then set up TM?

    Hi. I am going to be using an external hard drive (Western Digital - 640GB) on my MacBook for the first time and I think that I'd like to partition it so that part of it is for Time Machine and part of it can be used to just manually drag and drop my files (like any other USB external drive).
    1. How to I partition the external drive for Mac?
    2. If I insert my drive (not yet partitioned) in my MacBook for the first time and the MacBook automatically asks me if I want to use it for Time Machine, I'm assuming that I need to say "no" so that I can first partition it, right? If yes, then after partitioning it how do I set up the one partition for Time Machine?
    3. If I have 640 GB external hard drive space and my MacBook has about 100GB of space, how much of the 640 should I allocate for Time Machine?
    Thanks! Happy New Year!

    coffeecoffee wrote:
    Hi. I am going to be using an external hard drive (Western Digital - 640GB) on my MacBook for the first time and I think that I'd like to partition it so that part of it is for Time Machine and part of it can be used to just manually drag and drop my files (like any other USB external drive).
    1. How to I partition the external drive for Mac?
    select the whole drive (the model, not the name) in disk utility and click on the partition tab. set the number of partitions. set the partition scheme to GUID in options. set the format to mac os extended journaled. hit apply.
    2. If I insert my drive (not yet partitioned) in my MacBook for the first time and the MacBook automatically asks me if I want to use it for Time Machine, I'm assuming that I need to say "no" so that I can first partition it, right? If yes, then after partitioning it how do I set up the one partition for Time Machine?
    in system preferences->Time machine.
    also see TM 101 for basic usage instructions.
    http://support.apple.com/kb/HT1427
    3. If I have 640 GB external hard drive space and my MacBook has about 100GB of space, how much of the 640 should I allocate for Time Machine?
    it depends on your computing habits but it's generally recommended to have TM drive to be at least 2-3 times bigger than the total amount of data you are backing up.
    Thanks! Happy New Year!

  • How do I resize my Lion startup partition?

    Hi there,
    I just upgraded from Snow Leopard to Lion by partitioning my drive and clean installing Lion on a blank partition. I copied most of my documents from the Snow Leopard partition onto an external hard drive to free up some space for the Lion partition. Then I made a blank partition and installed Lion on that partition, and used Migration Assistant to pull in my Applications, Settings, etc. Now I have a fully functional version of Lion, with most of my files on the Lion partition. However, the partition is virtually full, and I still have files on my external hard drive I need to swap onto the Lion partition. So naturally, I need to enlarge the Lion partition. The problem is that it's also my startup disk and the only partition with an operating system on it.
    I deleted my Snow Leopard partition because frankly I'm satisfied with Lion and I don't need the old one. Yet my Lion partition cannot expand to fill that empty partition. I can leave my former Snow Leopard partition as unformatted Free Space (which is of course not writeable) or format it with HFS+ and use it as a regular storage partition. I would like to have just the one partition for my entire disk, though. I want all my files on the same partition, on the same drive, so my goal is to expand the Lion partition to occupy the entire drive. My understanding is that I can resize the startup volume, but I can't move it. Since my startup volume is #2 and the former Snow Leopard partition is #1, I would need to swap their order and delete the Snow Leopard partition to expand the Lion partition.
    (The diskutil command in Terminal lists my blank/useless partition as disk0s2 and the Lion partition as disk0s3, so my current startup disk is definitely sequentially after my old one.)
    The solutions I can think of:
    -Use the Snow Leopard installation disk to run Disk Utility and resize the Lion partition while it is not the boot disk (but Disk Utility doesn't move partitions)
    -Use iPartition to move the Lion partition and expand it to fill the entire disk (but iPartition can't resize the live disk - I would need to make a bootable DVD to run it)
    -Use the former Snow Leopard partition for storage - say, a photograph archive or my iTunes library (acceptable but not ideal)
    I would really appreciate any suggestions or information. Thank you!

    Unfortunately, you cannot enlarge a Lion OSX partition with Disk Utility now (perhaps after an update), so even if you copy it to the old SL partition, you won't be able to expand it afterwards.  Plus, the Recovery HD won't be copied.
    You could "clone" your Lion partition, boot from the clone, reformat your internal HD, and re-clone back to it.  That will work, with one very large exception: the Recovery HD will not be cloned, so you'll be out of luck trying to do anything from it.  See Using the Recovery HD
    You might be able to do the clone, reformat your internal HD, re-download the Lion Installer, install it on the internal, then use Setup Assistant to copy your stuff from the clone.  See Using Setup Assistant on Lion

  • Adding Partitions on Solaris 10

    I was hoping somebody could help me find out how I can add two new files systems on different slices ( I guess) called Disk1 and Disk2. We meant to do this when we fisrt set the system up but we forgot.
    When I do the format command I get 0. c1t0d0 and 1. c1t1d0
    Again, we want to have a file system on each one named Disk1 and Disk2. Any suggestion will be appreciated.
    Example of another system we have:
    swap 22195472 552 22194920 1% /tmp
    swap 22194968 48 22194920 1% /var/run
    /dev/dsk/c1t1d0s7 70589121 3799651 66083579 6% /disk2
    /dev/dsk/c1t0d0s4 20143489 16083778 3858277 81% /disk1
    /dev/dsk/c1t0d0s5 5045478 6868 4988156 1% /opt
    /dev/dsk/c1t0d0s7 5045478 3727197 1267827 75% /export/home
    G. M

    1.start format
    2.select the disk you want the partition on by entering its number (0 or 1)
    3.type partition to navigate into the partition setup
    4.type print to see the current partition table
    5.if there is any unallocated space create the partition by typing its number (0 - 7) and provide the requested information, i.e. starting cyl, size, etc.
    6. when you are done, save the partition table via label
    7.now you can use newfs(1M) to create a filesystem on that partition.
    an alternative would be to use zfs(1M), see the 'Howto' on the Sun web site.
    thomas

  • How long to partition a 500mb drive

    I just bought a Seagate FreeAgent 500mb drive that needed to be partitioned because it came formatted NTFS for PCs. How long should this take? The progress bar has not hardly moved.
    Thanks.

    If you are trying to format the HDD for using on a Mac, it will need to be formatted in Mac OS Extended. Here are step-by-step directions for doing so. Please note that the formatting process destroys previous formats and data on the HDD, so that zeroing the HDD is optional, and a simple erase will do. Here's how:
    Formatting, Partitioning Zeroing a Hard Disk Drive
    Warning! This procedure will destroy all data on your Hard Disk Drive. Be sure you have an up-to-date, tested backup of at least your Users folder and any third party applications you do not want to re-install before attempting this procedure.
    Boot from the install CD holding down the "C" key.
    Select language
    Go to the Utilities menu (Tiger) Installer menu (Panther & earlier) and launch Disk Utility.
    Select your HDD (manufacturer ID) in left side bar.
    Select Partition tab in main panel. (You are about to create a single partition volume.)
    Select number of partition in pull-down menu above Volume diagram.
    (Note: 1 partition is normally better for an internal HDD. External HDDs usually have more than one. See Dr. Smoke’s FAQ Backup and Recovery for tips on partitioning external HDD.)
    Type in name in Name field (usually Macintosh HD)
    Select Volume Format as Mac OS Extended (Journaled)
    Click Partition button at bottom of panel.
    Select Erase tab
    Optional: (Select the sub-volume under Manufacturer ID (usually Macintosh HD).
    Check to be sure your Volume Name and Volume Format are correct.
    Select on Security Options button (Tiger) Options button (Panther & earlier).
    Select Zero all data. (This process will map out bad blocks on your HDD. However, it could take several hours. If you want a quicker method, don't go to Security Options and just click the Erase button.)
    Click OK.
    Click Erase button
    Quit Disk Utility.
    Open installer and begin installation process.
    Please post back with further questions or comments.
    Good luck.
    cornelius

  • Partitioning For Optimal Parallel Query Execution

    Hi All,
    We are trying to design an architecture that benefits from partitioning and parallel query to obtain the best query response times for our system.
    Let me start by describing the main table which has five columns:
    Columns:
    1) DocId ------- Numeric Primary Key Constraint (Unique)
    2) Text ------- CLOB of XML Content
    3) SCode ------- Varchar 12 ( service code Can be one of 200 values)
    4) A_Date ------- Oracle Date ( The arrival date )
    5) A_Month ------- Numeric partition key, the month number (1-12)
    We insert 100,000 records daily so a month of data will contain 3,000,000 rows. The Text varies from 4k to 200k bytes and on average is around 30k bytes per document. A_Date is obtained when the C++ application receives a client connection. After document transmission is complete the DocId is obtained from an Oracle sequence. It is true that A_Date and DocId increase together. However because of varying document sizes and transmission rates, there is no guarantee that consistent order between the two columns exists.
    For Example: If time (t) increases and the connection times are: t1, t2, t3, t4 and the document at t2 took long to transmit, we can have:
    A_Date -------- DocId (From Oracle Sequence)
    t2 -------------- 1004
    t4 -------------- 1003
    t3 -------------- 1002
    t1 -------------- 1001
    A_Month is simply the month number (1-12) extracted from the transmission entry timestamp. It is also our Partition Key (see below). When the year wraps around from 2006 to 2007, data for January will simpy fall into the 1st partition bucket, and so on..
    QUERY NEEDS: Our queries are centered around a DateTime interval Where the left endpoint is current day/time. They can query the current day, current to 1 month back, current to 2 months back, .. current to 15 months back. We MUST RETURN a list of DocId's sorted in DESCENDING ORDER for screen display purposes.
    In General we need to return sub-second for the 1st month. As we query further back in time longer response times between 1 and 4 seconds are acceptable.
    PARTITIONING AND INDEXES:
    The table is partitioned by A_Month as shown below:
    Create Table IndexTable
    PARTITION BY RANGE (A_Month)
    ( PARTITION p1 VALUES LESS THAN 1.1 ...
    PARTITION p2 VALUES LESS THAN 2.1 ...
    PARTITION p3 vALUES LESS THAN 3.1 ...
    There are GLOBAL INDEXES on DocId, Text(Domain Index), and SCode.
    A_Date is a LOCAL INDEX.
    QUERY STRUCTURE:
    My Query structure looks like this (for a 2 month query):
    SELECT DocId from IndexTable WHERE
    Contains (Text, 'BUSH and EARNINGS') > 0 AND
    SCode in ('S1', 'S2', 'S3', 'S4') AND
    A_Date Between '2006-01-15 11:00:00' AND '2006-03-15 11:00:00'
    Order By DocId DESC;
    QUESTIONS (THERE ARE THREE)
    #### QUESTION 1 ####
    As I examine various explain plans, the PSTART and PSTOP do not reflect consistency with my A_Date range. It seems to always display:
    PStart PStop
    RowId RowId
    no matter what my A_Date range is.. I don't see it pruning my partitions. I cannot find documentation as to what RowId means or how it affects the optimizer's plan.
    #### QUESTION 2 ####
    I have tried parallelization hints on the table and indexes such as
    /*+ PARALLEL( IndexTable, 4) */ and on the A_Date index
    /*+ PARALLEL_INDEX( IndexTable, A_Date_Index, 4) */.
    I can't really tell if the parallel hints make a difference.
    However, the FIRST_ROWS hint makes a big difference if I nest the query inside a rownum clause as:
    SELECT * from
    ( Select /+* first_rows */ ... WHERE CONTAINS... > 0 AND... )
    Where ROWNUM <=20;
    #### QUESTION 3 ####
    I'm running close to the latest RedHat Linux and Oracle 10g2 and I have read about Parallel Slave Processes in Tom Kyte's Expert Oracle Architecture book in which he says you should see processes like:
    ora...p000..
    ora...p001..
    ora...pnnn..
    Which are the parallel slave processes. I have NEVER seen any oracle processes numbered as such running on my system when I run test queries. I have seen some q_ processes and others, but not the pnnn processes..
    Can I benefit from parallel query without ever seeing these processes??
    I Greatly Appreciate Any Advice To Any Of These Questions..
    Joe

    Well I can tell you this much. You will never get partition pruning if you don't have the partition key in the where clause.
    I'm not sure about the parallel query. There was a time that this wasn't supported with Text indexes, but not sure if that still applies today.
    In theory there are two levels of partitioning that can be defined that you may want to test out.
    1st, range partition the base table and create a partitioned text index based on that. This is what you are currently doing.
    2nd, in the storage preference for the $I table specify a range or hash partition (I've never tried this, but in theory it should work) on the token_text column. Try this out and see if it works.

  • GATHER_TABLE_STATS on partitioned table

    Hello All,
    I am using Oracle 11g R2.
    I am having a partitioned table, this table can have up to 30 partitions based on my retention policy and each partition is 1 day of data. each partition have like 3 millions records.
    I am gathering the statistics of my current partition as below:
    DBMS_STATS.GATHER_TABLE_STATS (SCHEMA_NAME, TABLE_NAME, PARTITION_NAME, ESTIMATE_PERCENT => DBMS_STATS.AUTO_SAMPLE_SIZE, METHOD_OPT=> 'FOR ALL COLUMNS SIZE AUTO');I noticed that when the table have 6 or 7 partitions the above gather statistics was taking like 20 mins. now I have 20 partitions on the table it is taking 45 minutes.
    What is the reason ? should not be the same ? as I am gathering the statistics for only 1 partition ? and all partitions have the same number of records?
    Regards,

    What is the default ? granularity=>'ALL' or granularity=>'PARTITION' in the belowAUTO
    GRANULARITY - The value determines granularity of statistics to collect (only pertinent if the table is partitioned).
    'ALL' - gathers all (subpartition, partition, and global) statistics
    'AUTO'- determines the granularity based on the partitioning type. This is the default value.
    'DEFAULT' - gathers global and partition-level statistics. This option is obsolete, and while currently supported, it is included in the documentation for legacy reasons only. You should use the 'GLOBAL AND PARTITION' for this functionality. Note that the default value is now 'AUTO'.
    'GLOBAL' - gathers global statistics
    'GLOBAL AND PARTITION' - gathers the global and partition level statistics. No subpartition level statistics are gathered even if it is a composite partitioned object.
    'PARTITION '- gathers partition-level statistics
    'SUBPARTITION' - gathers subpartition-level statistics.
    Regards
    Girish Sharma
    Edited by: Girish Sharma on Mar 11, 2013 7:39 PM
    http://docs.oracle.com/cd/E11882_01/appdev.112/e25788/d_stats.htm#ARPLS059
    Added doc link.

  • About: making RAID sets - partition independant?

    (the querry made simple: look last 2 lines)
    When making a RAID set, whatever the type it is, will it rely on the partitions or on the disk itself?
    In the Disk Utility help it keeps mentioning "disk", and when I was about to create a set, it also asked me about "disk".
    I have set up 2 partitions for the purpose of testing RAID for me, being about the same size on a big backup drive.
    The drive itself also has a bit of free space filled with original files.
    So I wanted to mirror, say, RAID test 1 and RAID test 2, both of them being on the same disk.
    Will it work?
    Or will it wipe my disk?

    A RAID may be constructed using individual partitions on separate drives although using the whole drive would be preferred for speed. You could actually RAID multiple partitions on the same drive, but of course what would be the point.
    I've actually used two drives each with three separate partitions and created three separate RAIDs of two partitions each. Not particularly efficient but it does work.
    There is really no point to creating a RAID of two partitions on the same drive. And, certainly no point creating a mirrored RAID this way.
    Any RAID you create with Disk Utility will erase the drives used (or partitions.)
    RAID Basics
    For basic definitions and discussion of what a RAID is and the different types of RAIDs see RAIDs. Additional discussions plus advantages and disadvantages of RAIDs and different RAID arrays see:
    RAID Tutorial
    RAID Array and Server: Hardware and Service Comparison>.
    Hardware or Software RAID?
    RAID Hardware Vs RAID Software - What is your best option?
    RAID is a method of combining multiple disk drives into a single entity in order to improve the overall performance and reliability of your system. The different options for combining the disks are referred to as RAID levels. There are several different levels of RAID available depending on the needs of your system. One of the options available to you is whether you should use a Hardware RAID solution or a Software RAID solution.
    RAID Hardware is always a disk controller to which you can cable up the disk drives. RAID Software is a set of kernel modules coupled together with management utilities that implement RAID in Software and require no additional hardware.
    Pros and cons
    Software RAID is more flexible than Hardware RAID. Software RAID is also considerably less expensive. On the other hand, a Software RAID system requires more CPU cycles and power to run well than a comparable Hardware RAID System. Also, because Software RAID operates on a partition by partition basis where a number of individual disk partitions are grouped together as opposed to Hardware RAID systems which generally group together entire disk drives, Software RAID tends be slightly more complicated to run. This is because it has more available configurations and options. An added benefit to the slightly more expensive Hardware RAID solution is that many Hardware RAID systems incorporate features that are specialized for optimizing the performance of your system.
    For more detailed information on the differences between Software RAID and Hardware RAID you may want to read: Hardware RAID vs. Software RAID: Which Implementation is Best for my Application?

Maybe you are looking for

  • What is maximum length .mov file that can be used in iDVD?

    Hello Appleheads I created an HD .mov file in iMovie which I had added as a movie in iDVD - I find this works best for me, as exporting directly to iDVD from iMovie always results in stuttering when played back on a regular DVD player. The .mov file

  • .flv doesn't display in browers

    Problem: progressive FLV doesn't display in browsers This is what I did: 1) inserted flash video (about 5 MB and encoded in Flash Video dEncoder CS3) into a DW page. 2)Saved and checked that it plays correctly in DW preview. 3) uploaded page,. FLV an

  • 17" MacBook Pro Screens w/ Gray spots

    Our office has a number of of 17" MacBook Pros all purchased at the same time, all handled by different people, that have spots that began to appear within 2-3 months on our screens. A couple of our staff have stopped by the Apple Store in the area a

  • Fixed quantity in BOM during Backflush

    Hello, An assembly has a component in its BOM & this component has fixed quantity indicator set in BOM. When i execute MFBF for assembly, system do not post GI for  the component (fixed quantity indicator set in BOM). Please explain. Thanks in advanc

  • Just some ideas would be nice

    Hi, Looking around for some innovative ideas for a project(FYP), I want to base my FYP on J2EE and/or J2ME, something like a front-end implementation(either web-based/mobile device) talking to back-end(mySQL/server integrated) through JSP. Mainly I w