Fdisk not creating correct partition table

Hi,
I am trying to use fdisk to create a couple of partitions on an external USB disk but it doesn't do correctly what I ask it to. It seems the problem is the difference in what the CHS (cylinder head sector) info says and what the start/size info says. For example for a 160GB disk with two partitions I would like to have it be (disk geometry is 7296/255/63 [117210240 sectors]):
#: id cyl hd sec - cyl hd sec [ start - size]
1: 12 0 1 1 - 763 254 63 [ 63 - 12273597] Compaq Diag.
*2: 07 764 0 1 - 1023 254 63 [ 12273660 - 104936580] HPFS/QNX/AUX
3: 00 0 0 0 - 0 0 0 [ 0 - 0] unused
4: 00 0 0 0 - 0 0 0 [ 0 - 0] unused
But if I try using fdisk this is what I end up with:
#: id cyl hd sec - cyl hd sec [ start - size]
1: 12 0 1 1 - 1023 254 63 [ 63 - 12273597] Compaq Diag.
*2: 07 1023 254 63 - 1023 254 63 [ 12273660 - 104936580] HPFS/QNX/AUX
3: 00 0 0 0 - 0 0 0 [ 0 - 0] unused
4: 00 0 0 0 - 0 0 0 [ 0 - 0] unused
So as you can see the start/size info is right, but the CHS numbers are not (the end of partition 1 is not correct and the begining and end of partition 2 is not correct). The commands that I gave to fdisk to do this were:
fdisk:*1> edit 1
Starting Ending
#: id cyl hd sec - cyl hd sec [ start - size]
1: 12 0 1 1 - 1023 254 63 [ 63 - 12273597] Compaq Diag.
Partition id ('0' to disable) [0 - FF]: [12] (? for help)
Do you wish to edit in CHS mode? [n] y
BIOS Starting cylinder [0 - 7295]: [0]
BIOS Starting head [0 - 254]: [1]
BIOS Starting sector [1 - 63]: [1]
BIOS Ending cylinder [0 - 7295]: [1023] 763
BIOS Ending head [0 - 254]: [254]
BIOS Ending sector [1 - 63]: [63]
and
fdisk:*1> edit 2
Starting Ending
#: id cyl hd sec - cyl hd sec [ start - size]
*2: 07 1023 254 63 - 1023 254 63 [ 12273660 - 104936580] HPFS/QNX/AUX
Partition id ('0' to disable) [0 - FF]: [7] (? for help)
Do you wish to edit in CHS mode? [n] y
BIOS Starting cylinder [0 - 7295]: [1023] 764
BIOS Starting head [0 - 254]: [254] 0
BIOS Starting sector [1 - 63]: [63] 1
BIOS Ending cylinder [0 - 7295]: [1023] 7295
BIOS Ending head [0 - 254]: [254]
BIOS Ending sector [1 - 63]: [63]
How can I fix this? I have tried both the CHS method and the default (start/size) method when creating the partitions and neither give the completely correct results. I have tried completely erasing the partition table and recreating it, but nothing seems to give me what I would think should be no big deal. I am puzzled as to how one set of info (ie CHS) does not agree with the start/size info??? I think the 1023 value for cylinders is OK for the end of partition 2 due to some funny WIndows bit of trivia, but the CHS for end of part 1 and start of part 2 should be correct since they are less than 1023.
The disk does have an MBR type partition table. I am doing this on a SATA external drive attached to a USB DriveWire if that makes a difference.
What am I doing wrong? Can I get there using fdisk on my MacBook?
Thanks ....
-Bob

Well, I have given up on using fdisk and just decided to edit the raw disk with a hex editor and modify the appropriate bytes of the partition table. The first 512 bytes of the disk contain this info in the following format:
446 bytes of boot code and other stuff
64 bytes of partition info (16 bytes for each of four partitions)
2 bytes with special 0x55 0xAA values
512 bytes total
Each partition table entry has the structure:
Boot flag - 1 byte which is either 0x0 or 0x80
CHS Begin - 3 bytes for cylinder, head, sector
Type - 1 byte for what type of filesystem partition 1 is
CHS End - 3 bytes for cylinder, head, sector
LBA Begin - 4 bytes
# of sectors - 4 bytes
I found explanations at http://www.viralpatel.net/taj/tutorial/partition_table.php and http://www.ata-atapi.com/hiwtab.html had a couple of examples to study.
So thanks for everyone's suggestions. I just wish that fdisk really worked like it is supposed to without the funny business!!
-Bob

Similar Messages

  • I want to install OS X Mavericks on my MacBook Pro which is not with guid partition table

    i want to install OS X Mavericks on my MacBook Pro which had both mountain lion & windows 8.1, its not in GUID partition table format, so i couldnt install mavericks, so is there any way to change into GUID partition table format & install Mavericks  without losing Windows from my hard disk ?

    Open the App Store and upgrade iPhoto to the Mavericks version.
    iWork and iLife for Mac come free with every new Mac purchase. Existing users running Mavericks can update their apps for free from the Mac App Store℠. iWork and iLife for iOS are available for free from the App Store℠ for any new device running iOS 7, and are also available as free updates for existing users. GarageBand for Mac and iOS are free for all OS X Mavericks and iOS 7 users. Additional GarageBand instruments and sounds are available for a one-time in-app purchase of $4.99 for each platform.
    The iWork apps are free with a new iOS device since 1 SEP 2013. They are free with a new Mac since 1 OCT 2013. They are also free with the upgrade to OS X Mavericks 10.9 if you had the previous version installed when you upgraded.

  • Create a partitioned table using Round Robin

    Hi,
    I want to create a partitioned table.
    My concern is that if I  use round robin now, whether I can  create a primary key for this table in the future?
    Thanks!

    You cannot use Round Robin, if your table has primary keys.
    But as you must know , now we can create a HASH Partitioning on the tables with out primary key too, i thought ii would rather test once again and comment:
    Please find the screen shot below which confirms that Round Robin cannot be done on table with Primary keys.
    Where as the table without primary keys am able to use Round robin. Till here it was fine for me.
    Now in the second case where i created a table with Round robin and then later i added the primary key using Alter statement, then am able to have Round Robin on the table with primary keys. ( don't know what does that means )
    Column screenshot:
    Regards,
    Krishna Tangudu

  • How can I create my own tag name while creating a partition table.

    I have X4500 running Solaris 10. I have formatted a disk and created partition table as given below.
    Specify disk (enter its number): 0
    selecting c0t0d0
    [disk formatted]
    /dev/dsk/c0t0d0s0 is part of active ZFS pool zpool1. Please see zpool(1M).
    FORMAT MENU:
    disk - select a disk
    type - select (define) a disk type
    partition - select (define) a partition table
    current - describe the current disk
    format - format and analyze the disk
    fdisk - run the fdisk program
    repair - repair a defective sector
    label - write label to the disk
    analyze - surface analysis
    defect - defect list management
    backup - search for backup labels
    verify - read and display labels
    inquiry - show vendor, product and revision
    volname - set 8-character volume name
    !<cmd> - execute <cmd>, then return
    quit
    format> partition
    PARTITION MENU:
    0 - change `0' partition
    1 - change `1' partition
    2 - change `2' partition
    3 - change `3' partition
    4 - change `4' partition
    5 - change `5' partition
    6 - change `6' partition
    select - select a predefined table
    modify - modify a predefined partition table
    name - name the current table
    print - display the current table
    label - write partition map and label to the disk
    !<cmd> - execute <cmd>, then return
    quit
    partition> print
    Current partition table (original):
    Total disk sectors available: 1953508749 + 16384 (reserved sectors)
    Part Tag Flag First Sector Size Last Sector
    0 usr wm 34 4.00GB 8388641
    1 usr wm 8388642 2.00GB 12582945
    2 usr wm 12582946 200.00GB 432013345
    3 usr wm 432013346 175.00GB 799014945
    4 usr wm 1166180386 375.43GB 1953508748
    5 usr wm 799014946 175.00GB 1166016545
    6 usr wm 1166016546 80.00MB 1166180385
    8 reserved wm 1953508749 8.00MB 1953525132
    partition>
    I am unable to specify my own tag name. How can I change the tag name to one of my interest.
    I need to create 3 partitions as told below
    partitions:
    /earth
    /mars
    /work
    /earth and /work should be roughly equal in size, /mars should be twice the size of the others, if that is possible. If not 3 partitions of equal size will do.
    Please, help me .
    Thank you.

    Exactly 1TB? Slightly under/slightly over?
    Traditional Solaris disk labels are in VTOC format, but this format cannot describe disks larger than 1TB. So EFI labels must be used on disks larger than 1TB. Setup is slightly different.
    Are these physical disks or LUNs from a SAN array? If they are array LUNS, it is often the case that they don't have a Sun label of any type. So...
    #1 Apply a Solaris label
    If the LUNS don't have a label (when selected in 'format', it gives a warning that no label is present and offers to apply a label immediately). When run non-interactively, format assumes "yes" for any questions. So all you'd have to do is select every disk to have it apply labels to any unlabled disk. Run 'format' once and find the highest number (maybe it's 50 for you). Create a text file that looks like this:
    disk 1
    disk 2
    disk 3
    disk 50Then feed that to format like this:
    # format -f /tmp/disklist or whatever you've named the file.
    #2 Apply the partition layout to all disks you want.
    You asked if you should do the same procedure, but I don't see that you've actually done anything above other than print out the existing layout. Take one of your 48 drives and partition it the way you want manually (set the slices to the sizes that you want). Then you can copy the layout of that disk to others. You only want to do this between disks/LUNs of the same size. As an example, if you've explicitly partitioned c1t0d0 and you want to apply this to c1t1d0, do this:
    # prtvtoc /dev/rdsk/c1t0d0s2 | fmthard -s - /dev/rdsk/c1t1d0s2Repeat for all of your other disks.
    Darren

  • Partition pruning not working for partitioned table joins

    Hi,
    We are joining  4 partitioned tables on partition column & other key columns. And we are filtering the driving table on partition key. But explain plan is showing that all tables except the driving table are not partition pruning and scanning all partitions.Is there any limitation that filter condition cannot be dynamic?
    Thanks a lot in advance.
    Here are the details...
    SELECT a.pay_prd_id,
                  a.a_id,
                  a.a_evnt_no
      FROM b,
                c,
                a,
                d
    WHERE  (    a.pay_prd_id = b.pay_prd_id ---partition range all
                AND a.a_evnt_no  = b.b_evnt_no
                AND a.a_id       = b.b_id
       AND (    a.pay_prd_id = c.pay_prd_id---partition range all
            AND a.a_evnt_no  = c.c_evnt_no
            AND a.a_id       = c.c_id
       AND (    a.pay_prd_id = d.pay_prd_id---partition range all
            AND a.a_evnt_no  = d.d_evnt_no
            AND a.a_id       = d.d_id
       AND (a.pay_prd_id =  ---partition range single
               CASE '201202'
                  WHEN 'YYYYMM'
                     THEN (SELECT min(pay_prd_id)
                                      FROM pay_prd
                                     WHERE pay_prd_stat_cd = 2)
                  ELSE TO_NUMBER ('201202', '999999')
               END
    DDLs.
    create table pay_prd
    pay_prd_id number(6),
    pay_prd_stat_cd integer,
    pay_prd_stat_desc varchar2(20),
    a_last_upd_dt DATE
    insert into pay_prd
    select 201202,2,'OPEN',sysdate from dual
    union all
    select 201201,1,'CLOSE',sysdate from dual
    union all
    select 201112,1,'CLOSE',sysdate from dual
    union all
    select 201111,1,'CLOSE',sysdate from dual
    union all
    select 201110,1,'CLOSE',sysdate from dual
    union all
    select 201109,1,'CLOSE',sysdate from dual
    CREATE TABLE A
    (PAY_PRD_ID    NUMBER(6) NOT NULL,
    A_ID        NUMBER(9) NOT NULL,
    A_EVNT_NO    NUMBER(3) NOT NULL,
    A_DAYS        NUMBER(3),
    A_LAST_UPD_DT    DATE
    PARTITION BY RANGE (PAY_PRD_ID)
    INTERVAL( 1)
      PARTITION A_0001 VALUES LESS THAN (201504)
    ENABLE ROW MOVEMENT;
    ALTER TABLE A ADD CONSTRAINT A_PK PRIMARY KEY (PAY_PRD_ID,A_ID,A_EVNT_NO) USING INDEX LOCAL;
    insert into a
    select 201202,1111,1,65,sysdate from dual
    union all
    select 201202,1111,2,75,sysdate from dual
    union all
    select 201202,1111,3,85,sysdate from dual
    union all
    select 201202,1111,4,95,sysdate from dual
    CREATE TABLE B
    (PAY_PRD_ID    NUMBER(6) NOT NULL,
    B_ID        NUMBER(9) NOT NULL,
    B_EVNT_NO    NUMBER(3) NOT NULL,
    B_DAYS        NUMBER(3),
    B_LAST_UPD_DT    DATE
    PARTITION BY RANGE (PAY_PRD_ID)
    INTERVAL( 1)
      PARTITION B_0001 VALUES LESS THAN (201504)
    ENABLE ROW MOVEMENT;
    ALTER TABLE B ADD CONSTRAINT B_PK PRIMARY KEY (PAY_PRD_ID,B_ID,B_EVNT_NO) USING INDEX LOCAL;
    insert into b
    select 201202,1111,1,15,sysdate from dual
    union all
    select 201202,1111,2,25,sysdate from dual
    union all
    select 201202,1111,3,35,sysdate from dual
    union all
    select 201202,1111,4,45,sysdate from dual
    CREATE TABLE C
    (PAY_PRD_ID    NUMBER(6) NOT NULL,
    C_ID        NUMBER(9) NOT NULL,
    C_EVNT_NO    NUMBER(3) NOT NULL,
    C_DAYS        NUMBER(3),
    C_LAST_UPD_DT    DATE
    PARTITION BY RANGE (PAY_PRD_ID)
    INTERVAL( 1)
      PARTITION C_0001 VALUES LESS THAN (201504)
    ENABLE ROW MOVEMENT;
    ALTER TABLE C ADD CONSTRAINT C_PK PRIMARY KEY (PAY_PRD_ID,C_ID,C_EVNT_NO) USING INDEX LOCAL;
    insert into c
    select 201202,1111,1,33,sysdate from dual
    union all
    select 201202,1111,2,44,sysdate from dual
    union all
    select 201202,1111,3,55,sysdate from dual
    union all
    select 201202,1111,4,66,sysdate from dual
    CREATE TABLE D
    (PAY_PRD_ID    NUMBER(6) NOT NULL,
    D_ID        NUMBER(9) NOT NULL,
    D_EVNT_NO    NUMBER(3) NOT NULL,
    D_DAYS        NUMBER(3),
    D_LAST_UPD_DT    DATE
    PARTITION BY RANGE (PAY_PRD_ID)
    INTERVAL( 1)
      PARTITION D_0001 VALUES LESS THAN (201504)
    ENABLE ROW MOVEMENT;
    ALTER TABLE D ADD CONSTRAINT D_PK PRIMARY KEY (PAY_PRD_ID,D_ID,D_EVNT_NO) USING INDEX LOCAL;
    insert into c
    select 201202,1111,1,33,sysdate from dual
    union all
    select 201202,1111,2,44,sysdate from dual
    union all
    select 201202,1111,3,55,sysdate from dual
    union all
    select 201202,1111,4,66,sysdate from dual

    Below query generated from Business Objects and submitted to Database (the case statement is generated by BO). Cant we use Case/Subquery/Decode etc for the partitioned column? We are assuming that  the case causing the issue to not to dynamic partition elimination on the other joined partitioned tables (TAB_B_RPT, TAB_C_RPT).
    SELECT TAB_D_RPT.acvy_amt,
           TAB_A_RPT.itnt_typ_desc,
           TAB_A_RPT.ls_typ_desc,
           TAB_A_RPT.evnt_no,
           TAB_C_RPT.pay_prd_id,
           TAB_B_RPT.id,
           TAB_A_RPT.to_mdfy,
           TAB_A_RPT.stat_desc
      FROM TAB_D_RPT,
           TAB_C_RPT fee_rpt,
           TAB_C_RPT,
           TAB_A_RPT,
           TAB_B_RPT
    WHERE (TAB_B_RPT.id = TAB_A_RPT.id)
       AND (    TAB_A_RPT.pay_prd_id = TAB_D_RPT.pay_prd_id -- expecting Partition Range Single, but doing Partition Range ALL
            AND TAB_A_RPT.evnt_no    = TAB_D_RPT.evnt_no
            AND TAB_A_RPT.id         = TAB_D_RPT.id
       AND (    TAB_A_RPT.pay_prd_id = TAB_C_RPT.pay_prd_id -- expecting Partition Range Single, but doing Partition Range ALL
            AND TAB_A_RPT.evnt_no    = TAB_C_RPT.evnt_no
            AND TAB_A_RPT.id         = TAB_C_RPT.id
       AND (    TAB_A_RPT.pay_prd_id = fee_rpt.pay_prd_id -- expecting Partition Range Single
            AND TAB_A_RPT.evnt_no    = fee_rpt.evnt_no
            AND TAB_A_RPT.id         = fee_rpt.id
       AND (TAB_A_RPT.rwnd_ind = 'N')
       AND (TAB_A_RPT.pay_prd_id =
               CASE '201202'
                  WHEN 'YYYYMM'
                     THEN (SELECT DISTINCT pay_prd.pay_prd_id
                                      FROM pay_prd
                                     WHERE pay_prd.stat_cd = 2)
                  ELSE TO_NUMBER ('201202', '999999')
               END
    And its explain plan is...
    Plan
    SELECT STATEMENT ALL_ROWS Cost: 79 K Bytes: 641 M Cardinality: 3 M
    18 HASH JOIN Cost: 79 K Bytes: 641 M Cardinality: 3 M
    3 PART JOIN FILTER CREATE SYS.:BF0000 Cost: 7 K Bytes: 72 M Cardinality: 3 M
    2 PARTITION RANGE ALL Cost: 7 K Bytes: 72 M Cardinality: 3 M Partition #: 3 Partitions accessed #1 - #1048575
    1 TABLE ACCESS FULL TABLE TAB_D_RPT Cost: 7 K Bytes: 72 M Cardinality: 3 M Partition #: 3 Partitions accessed #1 - #1048575
    17 HASH JOIN Cost: 57 K Bytes: 182 M Cardinality: 874 K
    14 PART JOIN FILTER CREATE SYS.:BF0001 Cost: 38 K Bytes: 87 M Cardinality: 914 K
    13 HASH JOIN Cost: 38 K Bytes: 87 M Cardinality: 914 K
    6 PART JOIN FILTER CREATE SYS.:BF0002 Cost: 8 K Bytes: 17 M Cardinality: 939 K
    5 PARTITION RANGE ALL Cost: 8 K Bytes: 17 M Cardinality: 939 K Partition #: 9 Partitions accessed #1 - #1048575
    4 TABLE ACCESS FULL TABLE TAB_C_RPT Cost: 8 K Bytes: 17 M Cardinality: 939 K Partition #: 9 Partitions accessed #1 - #1048575
    12 HASH JOIN Cost: 24 K Bytes: 74 M Cardinality: 957 K
    7 INDEX FAST FULL SCAN INDEX (UNIQUE) TAB_B_RPT_PK Cost: 675 Bytes: 10 M Cardinality: 941 K
    11 PARTITION RANGE SINGLE Cost: 18 K Bytes: 65 M Cardinality: 970 K Partition #: 13 Partitions accessed #KEY(AP)
    10 TABLE ACCESS FULL TABLE TAB_A_RPT Cost: 18 K Bytes: 65 M Cardinality: 970 K Partition #: 13 Partitions accessed #KEY(AP)
    9 HASH UNIQUE Cost: 4 Bytes: 14 Cardinality: 2
    8 TABLE ACCESS FULL TABLE PAY_PRD Cost: 3 Bytes: 14 Cardinality: 2
    16 PARTITION RANGE JOIN-FILTER Cost: 8 K Bytes: 106 M Cardinality: 939 K Partition #: 17 Partitions accessed #:BF0001
    15 TABLE ACCESS FULL TABLE TAB_C_RPT Cost: 8 K Bytes: 106 M Cardinality: 939 K Partition #: 17 Partitions accessed #:BF0001
    Thanks Again.

  • Timestamp datatype not output correctly in table export

    When using the data export from table view timestamp datatype is not handled correctly. It shows as oracle.sql.TIMESTAMP@14c0761.
    Works fine from SQL Explorer view though.

    Im using the same build. 1.0.0.15.27.
    You can try any export option. I tried SQL Insert.
    If you right click from the data grid (SQL Worksheet or Table view it works fine)
    In the table view, if you go to Actions -> Export -> SQL Insert then it doesn't.

  • How to create a partition table on the basis of substring of column val

    Hi All,
    I have table
    Create table Mytable
    ( Col1 number,
    Col2 number,
    Col3 varchar2(20)
    insert into mytable values(11,2,'20110901');
    insert into mytable values(12,2,'20110902');
    insert into mytable values(13,2,'20110903');
    insert into mytable values(14,2,'20110904');
    insert into mytable values(15,2,'20110905');
    insert into mytable values(16,2,'20110906');
    Col3 data have the date value in the form of yyyymmdd format.
    I want to create a 30 partitions on the basis of day on col3.
    how can i achive this. i tried range partition but how can i get day of col3?
    any help appriciated.
    Edited by: P:) on Sep 28, 2011 5:56 PM

    Hi,
    the first point would be to use the correct data type for col3 and make it a date. Then I can see no reason why you couldn't range partition based on the date.
    Andre

  • Error while creating a partitioned table

    I am trying to create a table with 2 partitions but am getting the following error.
    Can someone please help out as to what is missing here..!!!
    PARTITION BY RANGE (to_char(to_date(log_date,'YY/MM/DD HH24:MI:SS'), 'DD'))
    ERROR at line 7:
    ORA-00907: missing right parenthesis
    create table dummy_logs
    application_id number,
    log_date date
    tablespace my_tspace pctfree 4
    partition by range (to_char(to_date(log_date,'yy/mm/dd hh24:mi:ss'), 'dd'))
    ( partition day01 values less than ('02'),
    partition day02 values less than ('03')
    PS: The partition is to be based on the day('DD') on which the row will be added.

    Nopes Adith, It didn't helped.
    I specifically need the whole clause
    to_char(to_date('07/07/11 08:06:02','YY/MM/DD HH24:MI:SS'), 'DD') as I need to extract the day field from the sysdate.
    and also, it works fine when I query it through dual.
    05:15:55 SQL> select to_char(to_date(sysdate,'YY/MM/DD HH24:MI:SS'), 'DD') from dual;
    TO
    12

  • IPhone UISwitch not appearing correctly in table cells

    I have a table cell with a UISwitch attached to it.
    When you click the switch it works (but not without a bit of code to make it switch when the word 'on' and 'off' are actually clicked) but when the table cell itself is clicked the switch distorts like shown here:
    http://img35.imageshack.us/img35/6510/picture1df.png
    what is the correct way to make a table cell with a UISwitch?

    The code you posted looks like it should work on 3.0 just fine.
    I've tried a custom table cell and it did the same thing
    Assuming your custom subclass was built and used correctly, the above tells me something is definitely wrong in the cell's environment.
    Perhaps it's something to do with the selecting of the row method?
    Well that's certainly the first place to look. The delegate method you posted looks kinky. I would comment out that method, then go back to the solutions that didn't work in the past and see if your tableView:didSelectRowAtIndexPath: hasn't been the problem all along.
    In any case I would get rid of the deselect message in tableView:didSelectRowAtIndexPath:. What are you trying to accomplish there? If you simply want to disable all selections, you can just code tableView.allowsSelection=NO during setup. If you want to know the user's selection but don't want the cell to actually become selected, try something like this in the delegate:
    - (NSIndexPath *)tableView:(UITableView *)tableView willSelectRowAtIndexPath:(NSIndexPath *)indexPath {
    return nil;
    If you want the cell to actually become selected, but don't want its appearance to change, try cell.selectionStyle=UITableViewCellSelectionStyleNone in tableView:cellForRowAtIndexPath:.
    If tableView:didSelectRowAtIndexPath: turns out not to have been the problem, we'll need to look at the rest of your table view code. I've found the kind of problem you described is easily isolated once you have faith in some assumptions. In this case you just need to believe that both the subclass solution and the code in UICatalog will allow a UISwitch to display and operate perfectly. Once you believe that, you'll pay more attention to the rest of you code.
    One excellent way to gain faith in the basic structure is to start a fresh testbed and, for example, use code similar to UICatalog to bring up a table view with a UISwitch in one or more cells. Once you see how easy it is to make that work, you can start backing in some of your more creative init, delegate and/or data source methods until you break the testbed.
    - Ray

  • Transient bool VO attribute not displaying correctly in table on data fetch

    Hello Forum,
    I have a 'select all' button that programmatically sets a boolean transient attribute on a view object to 'true'. The code to iterate through all the rows in the VO is in a ViewObjectImpl subclass and looks like this:
        public int setAllRowsSelected(String attrDenotingSelection){
            RowSetIterator tempRSI = this.createRowSetIterator(null);
            tempRSI.reset();
            int count = 0;
            while(tempRSI.hasNext()){
                Row row = tempRSI.next();
                row.setAttribute(attrDenotingSelection, true);
                count++;
            tempRSI.closeRowSetIterator();
            return count;
        }The VOimpl method is invoked via an actionListener from a managed bean:
        public void rowSelectForBulkAction(ValueChangeEvent valueChangeEvent) {
            if (!PhaseId.INVOKE_APPLICATION.equals(valueChangeEvent.getPhaseId())) {
                valueChangeEvent.setPhaseId(PhaseId.INVOKE_APPLICATION);
                valueChangeEvent.queue();
            } else {
                String attrNameDenotingSelection =
                    (String)valueChangeEvent.getComponent().getAttributes().get("attrDenotingSelection");
                ArrayList params = new ArrayList();
                params.add(attrNameDenotingSelection);
                JUCtrlActionBinding actionBinding = (JUCtrlActionBinding)EL.get("#{bindings.getCountOfSelectedRows}");
                actionBinding.setParams(params);
                Integer count = (Integer)actionBinding.execute();
                if (!actionBinding.getErrors().isEmpty()) {
                    throw new RuntimeException("Error occured in \'getCountOfSelectedRows\' binding method. Investigate back end to find source of error.");
                EL.set("#{viewScope.countOfSelectedRows}", count);
        }The VOImple method is exposed for the bean to call it.
    The returned 'count' is used determine whether other UI controls should be enabled.
    The code works fine -- all rows have the attribute set to 'true', but the problem I have is when the table is scrolled and the next 25 (or whatever the rangesize is) is fetched for the table, the selectBooleanCheckbox component is not checked. The first 25 or so are checked (i.e., true), but the others aren't.
    The only way I can seem to get all selectBooleanCheckbox components to show as checked is if I set the range to a large number that will hopefully exceed the greatest number of rows ever.
    This seems wrong.
    Is this a bug or is there some setting I am missing in order to get the selectBooleanCheckbox to display correctly?

    In stead of custom method in VO try custom method in AM along following lines
    this.getVO().setRangeSize(-1);
    Row [] rows = getVO().getAllRowsInRange();
    loop through rows setting the transient attribute.
    Anyway setting rangeSize to -1 will force all records to be retrieve.
    HTH
    Kenneth

  • New Web Application not creating correctly

    I'm having an odd occurrence happen about 50% of the time right now when creating new web applications during my migration from SP2010 to SP2013.
    During creating a web application in Central Admin, I can get through the first setup page, then get to the "This shouldn't take long" page and will sit there for 30+ minutes. I end up closing the window and will see that the Web application is there in
    Central admin, and sometimes the DB will be created, other times not, not a big issue since I'm mounting a sp2010 database to this web application.
    What I do notice is that either a IIS site will either not be created at all, or it will be created, but the Virtual Folder is empty. When trying to delete the Web Application through central admin or PowerShell it will hang for hours until the next day
    when it's finally deleted. During this time I am not able to create any other web applications. It's usually at this time that I can successfully create a new web applications but even that is unreliable.
    Has anyone ran into this issue or can suggest any workarounds to get this working? I'm wondering if copying the contents of another web application's virtual directory to the failed web application's virtual directory will be a workaround. I still need to
    verify if creating a web application through PowerShell gives me the same headache but at the moment I'm currently waiting for a web application to delete.

    Finally got this resolved after an 8 hour call with Microsoft. After finally getting the Microsoft SharePoint Foundation Web Application service to restart (took 4 hours) We found that changing the Shutdown time in the Web Application Pool for the Central
    Admin pool to 400 allowed for the Web Application to complete successfully.
    I'm still confused to why everything is taking so long now to complete so i'll have to look into that next.
    Folks, this is a minor problem that seems to be creeping up more and more. I personally have performed over 8 installs in various environments. I have seen this issue in 6 out of the 8 environments I have created. All servers I have tried a variation of
    software. In MOST of my tests, this seems to be a problem. Not sure why they decide to recycle the App Pool just before they perform an "Virtual Directory Copy." Here are the results of my tests. I was very methodical in my testing and made sure these were
    clean downloads every time. As you will see, I tried variations of hardware increases, physical to virtual, database versions and patch levels...etc.
    Test #
    Hardware
    Software
    Server Type
    Install Type
    Problems Creating Web Apps
    Work Around
    Resolution
    1
    HP   Proliant DL360 G6, 16gb memory, 146gb - C, 146gb D (Pagefile), 146gb E, 2   Quad Procs
    Windows   2008R2 (All Patches), SQL 2012 w/SP1, SharePoint 2013 Server
    Physical
    Clean Install and downloads
    Yes
    Copy Contents of Central Admin   Virtual Directory to new Web Application
    Increase Shutdown time to 400
    2
    Host Server = Dell R900 256gb Mem, 146gb   C, 300gb D (Pagefile), 2tb E, 4 Quad Procs; Virtual Guest = 
    100gb - C, 2 Logical Procs, 8gb memory
    Windows 2008R2 (All Patches), SQL 2012,   SharePoint 2013 Server
    Virtual
    Clean Install and downloads
    Yes
    Copy   Contents of Central Admin Virtual Directory to new Web Application
    Increase   Shutdown time to 400
    3
    Host   Server = Dell R900 256gb Mem, 146gb C, 300gb D (Pagefile), 2tb E, 4 Quad   Procs; Virtual Guest = 
    100gb - C, 2   Logical Procs, 8gb memory
    Windows   2008R2 (All Patches), SQL 2012 w/SP1, SharePoint 2013 Server
    Virtual
    Clean   Install and downloads
    No
    4
    Host Server = Dell R900 256gb Mem, 146gb   C, 300gb D (Pagefile), 2tb E, 4 Quad Procs; Virtual Guest = 
    100gb - C, 2 Logical Procs, 8gb memory
    Windows 2008R2 (All Patches), SQL 2012   w/SP1, SharePoint 2013 Server
    Virtual
    Clean Install and downloads
    Yes
    Copy   Contents of Central Admin Virtual Directory to new Web Application
    Increase   Shutdown time to 400
    5
    Host   Server = Dell R900 256gb Mem, 146gb C, 300gb D (Pagefile), 2tb E, 4 Quad   Procs; Virtual Guest = 
    100gb - C, 4   Logical Procs, 16gb memory
    Windows   2008R2 (All Patches), SQL 2008 R2 w/SP1, SharePoint 2013 Server
    Virtual
    Clean   Install and downloads
    Yes
    Copy Contents of Central Admin   Virtual Directory to new Web Application
    Increase Shutdown time to 400
    6
    Host Server = Dell R900 256gb Mem, 146gb   C, 300gb D (Pagefile), 2tb E, 4 Quad Procs; Virtual Guest = 
    100gb - C, 4 Logical Procs, 16gb memory
    Windows 2008R2 (All Patches), SQL 2008 R2   w/SP2, SharePoint 2013 Server
    Virtual
    Clean Install and downloads
    No
    7
    Host   Server = Dell R900 256gb Mem, 146gb C, 300gb D (Pagefile), 2tb E, 4 Quad   Procs; Virtual Guest = 
    100gb - C, 4   Logical Procs, 16gb memory
    Windows   2008R2 (All Patches), SQL 2008 R2 w/SP2, SharePoint 2013 Server
    Virtual
    Clean   Install and downloads
    Yes
    Copy Contents of Central Admin   Virtual Directory to new Web Application
    Increase Shutdown time to 400
    8
    Host   Server = Dell R900 256gb Mem, 146gb C, 300gb D (Pagefile), 2tb E, 4 Quad   Procs; Virtual Guest = 
    100gb - C, 4   Logical Procs, 32gb memory
    Windows   2008R2 (All Patches), SQL 2008 R2 w/SP2, SharePoint 2013 Server
    Virtual
    Clean   Install and downloads
    Yes
    Copy   Contents of Central Admin Virtual Directory to new Web Application
    Increase   Shutdown time to 400

  • CVP 7.0(2) not creating correct string to send to VXML Server

    Hello,
    When running CVP 7.0(2), has anyone run into an issue with CVP still attaching the [locale]/[app_media_lib] when setting app_media_lib = ".." in the ICM script?
    http://1.1.1.1:7000/CVP/en-us/../Server?application=HelloWorld resulted in a bad fetch.
    I was able to find a bug that says the workaround is to use "...", but that did not work.  Below are the bug details.  Any thoughts?
    How to configure app_media_lib for VXML Server apps in incorrect
    Symptom:
    Integrating a Call Studio script with Unified ICME scripts fails
    Conditions:
    Call returns the following error on the gateway
    Loading fail with url (http://{VXML-Server-IP}:7000/CVP/en-us/.../Server?callid={callid}&application={Application Name)
    Workaround:
    Make sure the app_media_lib ECC Variable is set to "..."
    Thanks,
    Nathan

    Can you verify from a browser that
    http://1.1.1.1:7000/CVP/Server?application=HelloWorld
    gets to the first VXML page of the app? does VXMLServer\admin\status.bat show 1 caller in there?
    use
    http://1.1.1.1:7000/CVP/Server?audium_action=hangup
    to disconnect.
    Is the ECC variable long enough?
    I've never heard of this three dots business.
    Regards,
    Geoff

  • Image not appearing correctly in table

    Hi Friends,
    I am doing the Store Front tutorial and as a part of I am displaying the product details as the table. The details are showing fine in the table. However in the image it is showing text. I have added a image component in the text and also set the binding to #{bindings.image.inputValue}.
    Now when I select the first row in the table, all the images for the other rows are same. It shows the same image as that of the first row in all rows. When I go to the second row it shows the image related to second row in all rows. Can someone please tell me what I am doing wrong.
    Thanks

    Hi,
    the binding should be
    #{row.bindings.image.inputValue}.
    Frank
    Edited by: Frank Nimphius on May 22, 2013 12:57 PM

  • Oracle 11gR2 Partition tables not creating in default user tablespace

    Hi all:
    Not sure if i'm missing something or overlooked but when i create a partition table in a user schema, it is not creating in the schema's default tablespace instead creating with no assigned to any and using SYSTEM tablesspace.
    create user dgp identified by dgp default tablespace dgp temporary tablespace temp;
    grant connect, resource to dgp;select USERNAME,DEFAULT_TABLESPACE from dba_users where username ='DGP';
    USERNAME DEFAULT_TABLESPACE
    DGP DG
    select table_name, tablespace_name, partitioned from all_tables where owner='DGP';
    TABLE_NAME TABLESPACE_NAME PAR
    AUDITLOG_P2 DG NO
    AUDITLOG_P YES
    This is the partition script i used --i also gave the tablespace name:
    CREATE TABLE dgp.AUDITLOG_P(
    entry_time DATE,
    username VARCHAR2(14),
    groupname VARCHAR2(100),
    ip VARCHAR2(15),
    command VARCHAR2(15),
    directory VARCHAR2(300)
    PARTITION BY RANGE (entry_time)
    partition P_PAST VALUES LESS THAN (TO_DATE('2010-01-01','YYYY-MM-DD')),
    tablespace DG;
    ============
    What is it i'm missing? Anything different with Oracle 11gR2 on the partition creations?
    Thanks for your help..
    Regards,
    Ash

    Yes, i tried using the schema login adn creating the table as well as system with schemaname prefix....
    this is what i get from the below
    SQL> select def_tablespace_name from dba_part_tables where table_name ='AUDITLOG_P';
    DEF_TABLESPACE_NAME
    DG
    SQL> select partition_name, tablespace_name from dba_tab_partitions where table_name='AUDITLOG_P';
    PARTITION_NAME TABLESPACE_NAME
    P_PAST DG
    P_20100101 DG
    P_20100102 DG
    P_20100103 DG
    P_20100104 DG
    P_20100105 DG
    P_20100106 DG
    P_20100107 DG
    P_20100108 DG
    P_20100109 DG
    P_20100110 DG
    P_20100111 DG
    P_20100112 DG
    P_20100113 DG
    P_20100114 DG
    P_20100115 DG
    P_20100116 DG
    P_20100117 DG
    P_20100118 DG
    P_20100119 DG
    P_20100120 DG
    P_20100121 DG
    P_20100122 DG
    P_20100123 DG
    P_20100124 DG
    P_20100125 DG
    P_20100126 DG
    P_20100127 DG
    P_20100128 DG
    P_20100129 DG
    P_FUTURE DG
    31 rows selected.

  • SharePoint 2010 + RBS.msi does not create tables ("mssqlrbs") at the content DB

    Installed on W2K8 SP2 + SQL 2 K 8 R2 CTP November + SPS2010 beta.
    SQL instance by default MSSQLSERVER and WSS_Content default content database.
    Step by step following installation and use of remote Blob Storage capacity documentation:
    http://technet.microsoft.com/en-us/library/ee748631(office.14).aspx
    The RBS.msi, at the log file component installation it seems that installation is correct, but displays the error:
    ... Executing op: ActionStart(Name=FixFilestreamStoreConfig,,)
    Información 2769. El instalador ha encontrado un error inesperado. El código de error es 2769. La acción personalizada CreateFilesNoUI no ha cerrado 21 identificadores MSIHANDLE.
    ... Executing op: CustomActionSchedule(Action=FixFilestreamStoreConfig, ActionType=3070, Source=BinaryData, Target=RepairProvider, CustomActionData=filestream;C:\Program Files\Microsoft SQL Remote Blob Storage10.50\Provider Libraries\Filestream Provider\FilestreamProviderConfiguration.xml)
    The content database have not created the necessary tables "mssqlrbs" and running the command in the SharePoint Shell:
    $ rbss.Installed () returns "False"
    I have not found a walkarround or anything let me to implement tables and simulate the installation that performs the .msi, provided in the Feature Pack for Microsoft ® SQL Server ® 2008 R2 November Community Technology Preview (CTP)
    Any help would be appreciated.
    Thx
    Eva

    Hi,
    I am getting same error. r.
    The
    error code is 2769. Custom Action CreateFilesNoUI did not close 21 MSIHANDLEs
    Can you please let me know How you  resolved this error ?
    Thanks in Advance...

Maybe you are looking for

  • Display image in JWindow..

    please tell me how can i display and jpg image on JWindow.

  • Web Calendar Events off by 1 hour after March 11, 2007

    We're running JES Calendar 2005Q4 with patches. Has anyone else noticed this issue yet? Look in the web interface first...on recurring appointments, everything is correct until March 11th. Then all appointments are pushed out an hour later. On April

  • Acrobat 9 Pro Extended: Can one enable commenting by default?

    For Acrobat 9 Pro Extended: When using Save As to save a PDF, is it possible to have Commenting and Analysis enabled for that saved PDF by default? What I currently must do: Open the PDF, choose Comments > Enable for Commenting and Analysis in Adobe

  • XMLSequence EXTRACT HEAD and DETAIL in ORACLE 9.2

    Hi, sorry about my english i am from argentine. I have this XML: <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <arrayOfServicio >     <Servicio>         <Nombre>Autenticacion</Nombre>         <Descripcion>ws</Descripcion>         <Activo>tr

  • Screen share frozen image

    Screen sharing was great. Suddenly when I share my screen with students, their screens never refresh, stays on whatever I was initially doing. Don't think it's a lag thing. Did I change a setting?