Need help on merging Partition

I have a scenario where two tables (main and archive table) are using the same partition number and file group.
Row count is different on each table, though partition range value is same. The way it happened was that we created archived partition process to archive partitions in which data is older than 4 years. After running archiving process , business users inserted
data which were older than 4 years and fell into that archiving range in main table.
Now we have rows in both main table and archiving table. I want to merge those record together in archive table.
I was thinking to switch partition but I believe for that I need to empty archive table partition. Any guidance would be appreciated..
ZK

Use $PARTITION function to get partition number for the value. Look at BOI for more details. 
example from BOI
CREATE PARTITION FUNCTION RangePF1 ( int )
AS RANGE FOR VALUES (10, 100, 1000) ;
GO
SELECT $PARTITION.RangePF1 (100) ;
Then check rows values in sys.partitions table for that partition number and object_id 
select rows from sys.partitions where object_id = object_id (<archive table>) and partition_number = @partition_number
if rows are 0 then that partition is empty you can switch partition else do delete and insert. 

Similar Messages

  • Need help restoring a partition image

    Setup: OSX 10.7
    One OSX partition, one Windows 7 Bootcamp partition.
    Initially, I made a backup image of the windows partition using disk utility and saved that to an external drive.  For some reason, using any format besides DVD master would result in an "invalid argument" error.*  So now I have an ISO image sitting around, the same size as the entire partition.  I can mount this image and see all my Windows files and directories inside.
    What I want to do is image this ISO file back over my original windows partition to restore it to an earlier state.  However, when I use disk utility, this is what happens:
    Select .iso as source, greyed out (unmounted) partition as destination.
    press restore, agree to erase
    DU asks to scan, and then fails with "unable to scan.  Invalid argument"
    I can also open the image so that now in finder there is the icon of a disk, surrounded by a rectangle with a corner folder over, and underneath is an image of an external disk drive.  If I choose this as the source, I get "restore failure.  Invalid argument."
    All I want to do is write my partition image back to the actual partition.
    *That's weird, I just tried to image the partition again right now to a .dmg, and it seemed to start ok.  Oh well.  Still doesn't help with my current problem, though.

    OK, I managed to fix it using old fashioned techniques.
    First, I needed to check that the image I had was an actual disk image, and not something else contained in a wrapper.
    In terminal, I used the command "file" on the image file and it saw a boot sector + other stuff.  That's good.
    Next, I checked that the size of the image file is exactly the same as the size of the partition I was going to write to using "diskutil info (name of partition)".  That checked out as well.
    Finally, I just did the usual dd if=image file of=target bs=4096 to write the image file back in.  Magically, it worked.  I guess it was good that in the process the partition table was not damaged.
    All the other GUI programs like disk utility, winclone, etc refused to touch my iso image file.
    I should have saved myself the headache and grabbed the original source image using dd as well.

  • Need help with table partitions

    Hi all,
    I'm new at partitions and tablespaces and I've been asked to create a partition for a table. First off, here's a sample table that I have.
    create table M_TRANS  (
       TRAN_ID NUMBER,
       MONTH_KEY INTEGER,
       ACCOUNT_KEY INTEGER,
       ACCOUNT_NUMBER CHAR(8),
       LINE_KEY VARCHAR2(40),
       SERVICE_TYPE VARCHAR2(10)
    )I need to create a range partition based on Month_Key and list sub-partition based on last char of Line_Key.
    MONTH_KEY has a data format of "YYYYMM" (200802).
    LINE_KEY's last char should be in 0-9 / A-Z. 1 partition for each number 0-9 and 1 partition for alphabet values.
    Upon reading articles, samples on this particular subject, I came up with this...
    create table M_TRANS  (
       TRAN_ID                    NUMBER,
       MONTH_KEY            INTEGER,
       ACCOUNT_KEY          INTEGER,
       ACCOUNT_NUMBER       CHAR(8),
       LINE_KEY             NUMBER,
       SERVICE_TYPE         VARCHAR2(10)
    PARTITION BY RANGE(MONTH_KEY)
    SUBPARTITION BY LIST (LINE_KEY)
    SUBPARTITION TEMPLATE(
    SUBPARTITION P_0 VALUES 1 TABLESPACE TS_0,
    SUBPARTITION P_1 VALUES 2 TABLESPACE TS_1,
    SUBPARTITION P_2 VALUES 3 TABLESPACE TS_2,
    SUBPARTITION P_3 VALUES 4 TABLESPACE TS_3,
    SUBPARTITION P_4 VALUES 5 TABLESPACE TS_4,
    SUBPARTITION P_5 VALUES 6 TABLESPACE TS_5,
    SUBPARTITION P_6 VALUES 7 TABLESPACE TS_6,
    SUBPARTITION P_7 VALUES 8 TABLESPACE TS_7,
    SUBPARTITION P_8 VALUES 9 TABLESPACE TS_8,
    SUBPARTITION P_9 VALUES 0 TABLESPACE TS_9,
    SUBPARTITION P_AZ VALUES ('A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z') TABLESPACE TS_AZ
    PARTITION M_JAN VALUES 'JAN'
    PARTITION M_FEB VALUES 'FEB'
    PARTITION M_MAR VALUES 'MAR'
    PARTITION M_APR VALUES 'APR'
    PARTITION M_MAY VALUES 'MAY'
    PARTITION M_JUN VALUES 'JUN'
    PARTITION M_JUL VALUES 'JUL'
    PARTITION M_AUG VALUES 'AUG'
    PARTITION M_SEP VALUES 'SEP'
    PARTITION M_OCT VALUES 'OCT'
    PARTITION M_NOV VALUES 'NOV'
    PARTITION M_DEC VALUES 'DEC'
    );The only problem is that since the MONTH_KEY has a format of "YYYYMM", how do I compare just the last 2 numbers. Same goes with the LINE_KEY.
    Can some help me? Thanks.
    Regards,
    A.Sandiego

    In 10g and earlier, you need to create separate columns for the last 1-2 characters and use those columns as partitioning keys.
    In 11g, you can use virtual columns:
    CREATE TABLE M_TRANS (
       TRAN_ID NUMBER,
       MONTH_KEY INTEGER,
       LINE_KEY VARCHAR2(40),
       MONTH_ONLY as ((month_key/100-trunc(month_key/100))*100),
       LAST_CHAR as (upper(substr(line_key,length(line_key),1)))
    PARTITION BY RANGE(MONTH_ONLY)
    SUBPARTITION BY LIST (LAST_CHAR)
       SUBPARTITION TEMPLATE (
       SUBPARTITION P_0 VALUES ('1'),
       SUBPARTITION P_1 VALUES ('2'),
       SUBPARTITION P_2 VALUES ('3'),
       SUBPARTITION P_AZ VALUES ('A','B','C')
    PARTITION M_JAN VALUES LESS THAN (2),
    PARTITION M_FEB VALUES LESS THAN (3),
    PARTITION M_MAR VALUES LESS THAN (4)

  • [Need help] Would Hash partitioning preferable here?

    I have idea about Hash partitioning.
    Now in my case volume of data is very high while search criteria on that table is dynamically coming from GUI.
    There is search criteria for date range but date filed is dynamically decided.
    In database terminology, different queries with different date type columns in where clause are executed based on the search criteria selected from GUI.
    While using Range partition, we are allowed to use only one date column so query that do not use this date column would not get benefit from partitioning.
    so i feel i can't go for range partitioning.
    So here i need suggestion that would Hash partitioning would help in this case ?

    The only reason i have put my query in this forum is
    that here i found instant answers.So seeing that it is obvious that the only right way for such question is to divert them to the right forum and not provide any answer. Otherwise people start to become ignorant to polite requests.
    And this forum is all about "feedback and suggestion"
    again i am also asked for suggestions so i feel i am
    right here.Are you blind or unable to read? Already 2 users asked you to post in more appropriate forum and when you open this forum there is following text just after the forum title:
    "Use this forum for feedback about OTN programs, Web site content, and systems - product-related questions cannot be answered here. "
    Is this not enough?
    Gints Plivna
    http://www.gplivna.eu

  • Need Help with Format/Partition.. using cmd

    Okay guys.. Im kinda sick of trying to get my Recovery to work. Seems like its about to finish and everything is perfect.. then suddenly I get an error message saying that Recovery didnt work, or something like that..
    I figured I might as well try starting with a fresh hard drive, then trying the recovery again..
    So someone told me that if I have the HP Recovery disks, then I would be able to try them, even on a brand new hard drive, or a formatted one or whatever..
    Is this true?
    If so, then what I am asking you guys, is, if there is anybody that would be able to help guide me thru the steps needed, in order for me to Format my hard drive, & then partition it or whatever…
    & I wanna be able to do all this, using cmd (command prompt)
    So Please.. anyone.. your help would be greatly appreciated..
    I have an HP Pavilion dv6653cl
    Thanks!!

    Hi,
    There's no need to pre-format a new Hard Drive - if you perform a 'Factory Reset' using your Recovery Discs, these will perform a quick format and also re-create all the original partitions on the new drive as part of the process.
    A complete guide to using Recovery Discs can be found on the relevant link below.
    Performing An HP System Recovery - Windows 7.
    Performing An HP System Recovery - Windows Vista.
    Performing An HP System Recovery - Windows XP.
    Regards,
    DP-K
    ****Click the White thumb to say thanks****
    ****Please mark Accept As Solution if it solves your problem****
    ****I don't work for HP****
    Microsoft MVP - Windows Experience

  • Need help with merging itunes accounts.

    Hello.  I was wondering if any of you mac experts can help me.  My husband and I recently purchased a new mac and are having trouble figuring out how to merge our information into our computer's itunes.  I set up the computer under my apple ID/email.  However we both have separate apple id's linked with the same bank account information.  The problem is, itunes on our computer isn't recognizing any of the purchases through my husband's apple id, even though they were paid for through the same account.  I haven't been able to figure out whether or not I can add his apple id/email to itunes and merge the two, since a substantial amount of music/apps/etc were purchased under his ID.  Surely it's possible to have more than on apple id on one family's computer?  Anyone know?  Hopefully I worded this clearly enough.  Thanks!

    Open the NetInfo Manager in the /Applications/Utilities/ folder, click the padlock, type in your password, and then locate that account in the list of users. Delete that account and only that account; don't make any other changes. The account's home folder will remain on the drive.
    (11474)

  • Need help in merging two database

    Dear All,
    Can any one please let me know the methodology/Best practices for merging two databases.
    We are having two oracle Database A and B, the data from
    Database A has to be migrated to Database B using PL/SQL scripting.
    it will be a great help,Thanks in advance!

    Hi,
    Use the DB Links and try to use the "MERGE" that is better.
    you can clone it right, almost you are getting the same data from A to B and then you are going to Update is I am correct. Does the "B" consist the data, If yes then you can't clone on exiting DB, As i said above go for DB links and write custom scripts as per your requirement.
    Refer for DB links
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14231/ds_admin.htm#sthref4108
    - Pavan Kumar N

  • Need Help for MERGE statement

    I have a MERGE statement, I am executing it from shell script, I want to print that how many rows has been updated and Inserted.
    Can any one give me some idea.
    Thanks in Advance

    I want to print that how many rows has been updated and Inserted. If you really want/need to print that information, then don't use MERGE but INSERT and UPDATE statements.
    http://asktom.oracle.com/pls/apex/f?p=100:11:0::::P11_QUESTION_ID:35615502072484
    http://asktom.oracle.com/pls/apex/f?p=100:11:0::::P11_QUESTION_ID:122741200346595110

  • I need help fixing my partitions without wiping my current install?

    I deleted my BootCamp partition. Now everything seems a mess.
    In the end, I am trying to reinstall the bootcamp partition with Windows 7, but I am running into problems.
    It looks like there might be an issue with my partition layout.
    Here are the results of "diskutil list"
    /dev/disk0
       #:                       TYPE NAME                    SIZE       IDENTIFIER
       0:      GUID_partition_scheme                        *750.2 GB   disk0
       1:                        EFI                         209.7 MB   disk0s1
       2:          Apple_CoreStorage                         749.3 GB   disk0s2
       3:                 Apple_Boot Recovery HD             650.0 MB   disk0s3
    /dev/disk1
       #:                       TYPE NAME                    SIZE       IDENTIFIER
       0:                  Apple_HFS Macintosh HD           *498.0 GB   disk1
    and a screenshot of my disks partitions
    It looks like something is very messed up. especially with disk1.
    Also, I am currently decrypting the partition, to see if that opens up more options for fixing this!!
    Any help is truly appreciated.
    Thank you.

    One problem I'm having is that it seems my OS X partition is only 498 GB, while my hard drive is 750GB. I want to give the BootCamp partition the difference (about 250GB) but when I use BootCamp assistant to make a windows install, it steals the space from the 498. I tried to expand the OS X partition from 498 to fill the entire drive using
    sudo diskutil resizeVolume /dev/disk1 R
    but then I get the following error:
    Error obtaining resizing information for grow to maximum
    thanks for any help

  • Malware on New Helix (out of the box) / Need Help Accessing Recovery Partition

    Hi,
    I'm working on a problem for my folks.  My dad got my mom a brand spanking new Helix (not exactly a cheap laptop).  
    It came with two pieces of malware:
    1.  Windows 8
    2.  AstroMenda
    Since I can't do anything about #1 and #2 is a serious PITA and the machine is new out of the box (really), I thought I'd just restore the machine from the recovery partition.
    However, I cannot seem to get the machine to boot to recovery mode.
    Enter doesn't seem to do anything (that is the only keystroke suggested by the splash screen).
    F12 gets me a boot menu but I don't see any recovery options.  Selecting the Windows Boot Manager or the Hard Drive itself results in Windows 8 booting.
    F1 gets me the BIOS.  Though I imagine I might be able to set the recovery partition (which #?) to the #1 boot option, I absolutely should not have to do that.
    Shift doesn't do anything (suggested elsewhere on these forums).
    F2 doesn't do anything.
    F11 doesn't do anything.
    Esc doesn't do anything.
    My older lenovo T61p had the ThinkVantage.  I always thought that was pretty goofy but now I'm wishing I had a ThinkVantage.
    BTW, Lenovo Support was USELESS.  They told me to return the machine and transferred me to returns but since my folks were on vacation when it arrived, we are outside the 30 day window, returns wouldn't do an exchange.  They opened a case with Customer Advocacy (never heard of that) but told me I wouldn't hear anything for 3-5 business days and there is no number, website, or email you can call to check your "Customer Advocacy" claim.  That sounds a lot like GFY.

    Hello.
    Open up the Charms Bar - Settings - Click the Power Icon - Hold either Shift button down and press Restart. This will open up the Advanced Startup menu.
    Cheers!
    ThinkPad W540 (20BG) - i7-4800MQ/24GB // ThinkPad T440s (20AQ) - i7-4600U/12GB
    ThinkPad T440p (20AW) - i7-4800MQ/16GB // ThinkPad Helix (3698-6EU) - i5-3337U/4GB
    ThinkPad W520 (4282-W4Q) - i7-2720QM/32GB // ThinkPad T400 (2767-W1C) - P9500/8GB
    ThinkPad T61 (7665-CTO) - T7700/4GB // ThinkPad T60p (8741-C2G) - T7400/4GB

  • Need Help In Merge query

    Hi ,
    i m using merge query .
    below is my query .
    MERGE INTO tbltmonthlysales A
    USING
    (select DISTINCT 'JAN-2011' MON_YYYY,distributorname DISTRIBUTORNAME From SYN_VWABS) B
    ON (a.distributorname = B.distributorname)
    WHEN NOT MATCHED THEN
    INSERT (A.MON_YYYY,A.distributorname) VALUES (B.MON_YYYY,B.DISTRIBUTORNAME);
    ------Now Firing this query ---
    1)
    SQL> MERGE INTO tbltmonthlysales A
    2 USING
    3 (select DISTINCT 'JAN-2011' MON_YYYY,distributorname DISTRIBUTORNAME From SYN_VWABS) B
    4 ON (a.distributorname = B.distributorname)
    5 WHEN NOT MATCHED THEN
    6 INSERT (A.MON_YYYY,A.distributorname) VALUES (B.MON_YYYY,B.DISTRIBUTORNAME);
    INSERT (A.MON_YYYY,A.distributorname) VALUES (B.MON_YYYY,B.DISTRIBUTORNAME)
    ERROR at line 6:
    ORA-00904: "B"."DISTRIBUTORNAME": invalid identifier
    now i m createing one table
    create table test2 as select * from SYN_VWABS
    2)
    SQL> MERGE INTO tbltmonthlysales A
    2 USING
    3 (select DISTINCT 'JAN-2011' MON_YYYY,distributorname DISTRIBUTORNAME From test2) B
    4 ON (a.distributorname = B.distributorname)
    5 WHEN NOT MATCHED THEN
    6 INSERT (A.MON_YYYY,A.distributorname) VALUES (B.MON_YYYY,B.DISTRIBUTORNAME);
    INSERT (A.MON_YYYY,A.distributorname) VALUES (B.MON_YYYY,B.DISTRIBUTORNAME)
    71 rows merged.
    My question is why my 1) query is not executing?

    thanks your efforts are apriciated but its not working
    see i have created view as per ur suggestion,
    create or replace view vwabc as
    SELECT x.accountnumber accountnumber,
    distributorname distributorname,
    staffname staffname,
    resellerno resellerno,
    resellername resellername, resellercreatedate resellercreatedate, customerno customerno, custmername custmername,
    customeractivationdate customeractivationdate, childaccountnumber childaccountnumber, childaccountname childaccountname,
    childactivationdate childactivationdate, resellerstaff resellerstaff
    --x.accountstaffid Disaccountstaffid,
    --y.accountstaffid resaccountstaffid
    FROM (SELECT Y.RELATIONACCOUNTNUMBER accountnumber, x.NAME distributorname, staffname,
    y.accountnumber resellerno, y.accountid resaccountid,
    x.accountstaffid
    FROM ((SELECT a.accountid, b.accountstaffid, a.NAME,
    b.NAME staffname, a.accountnumber
    FROM tblmaccount a, tblmaccountstaff b
    WHERE a.accounttypeid = 'ACT04' AND a.accountid = b.owneraccountid(+))
    UNION ALL
    (SELECT a.accountid, NULL, a.NAME, NULL, a.accountnumber
    FROM tblmaccount a
    WHERE a.accounttypeid = 'ACT04'
    AND EXISTS (SELECT 1
    FROM tblmaccountstaff c
    WHERE c.owneraccountid = a.accountid))) x,
    tblmaccountaccountrel y
    WHERE NVL (x.accountstaffid, '-') = NVL (y.accountstaffid(+), '-')
    AND x.accountid = y.relationaccountid(+)
    --and x.accountid = 'ACC000537173'
    ) x,
    (SELECT x.accountnumber, x.NAME resellername, resellerstaff,
    x.accountstaffid, y.accountnumber customerno,
    ta.NAME custmername, ta.accountid,
    ta.activationdate customeractivationdate,
    y.relationaccountid, cust.accountnumber childaccountnumber,
    cust.NAME childaccountname,
    TRUNC (cust.activationdate) childactivationdate,
    x.resellercreatedate
    FROM ((SELECT a.accountid, b.accountstaffid, a.NAME,
    b.NAME resellerstaff, a.accountnumber,
    TRUNC (a.createdate) resellercreatedate
    FROM tblmaccount a, tblmaccountstaff b
    WHERE a.accounttypeid = 'ACT03' AND a.accountid = b.owneraccountid(+))
    UNION ALL
    (SELECT a.accountid, NULL, a.NAME, NULL, a.accountnumber,
    TRUNC (a.createdate) resellercreatedate
    FROM tblmaccount a
    WHERE a.accounttypeid = 'ACT03'
    AND EXISTS (SELECT 1
    FROM tblmaccountstaff c
    WHERE c.owneraccountid = a.accountid))) x,
    tblmaccountaccountrel y,
    tblmaccount ta,
    tblmaccount cust
    WHERE NVL (x.accountstaffid, '-') = NVL (y.accountstaffid, '-')
    AND x.accountid = y.relationaccountid(+)
    AND y.accountid = ta.accountid(+)
    AND ta.accountnumber = cust.parentaccountnumber
    --and x.accountid = 'ACC000537856'
    ) y
    WHERE x.resaccountid = y.relationaccountid(+)
    Now firing Merge,
    SQL> MERGE INTO tbltmonthlysales A
    2 USING
    3 (select DISTINCT MON_YYYY ,distributorname From vwabc) B
    4 ON (a.distributorname = B.distributorname)
    5 WHEN NOT MATCHED THEN
    6 INSERT (A.MON_YYYY,A.distributorname) VALUES (B.MON_YYYY,B.DISTRIBUTORNAME);
    (select DISTINCT MON_YYYY ,distributorname From vwabc) B
    ERROR at line 3:
    ORA-00904: "MON_YYYY": invalid identifier
    still error :(

  • Need help with merging contacts! Please help!!!

    Hey guys. I have a little problem with my iPhone 4 with iOS 7. I have recently synced all of my contacts with iCloud so that I will be able to export them to my pc, but this is not the problem. Since I was deleting some of the contacts I have noticed that there is a possibility (in the Edit Mode of the contact) to add a Facebook profile. So I tried to do this with a few contacts.
    I am attaching a photo of how my contact with Facebook profile linked to it looks like but it's in iCloud (I get the same thing on my iPhone).
    Sorry for all the black lines. So when I press the name Betyna ... under the Facebook option I get a new Facebook tab open which says - Page not found. Sorry, this page isn't available. The link you followed may be broken, or the page may have been removed.
    This is the same thing I get on my phone.
    Can someone help me with a solution to my problem, because I really want to link Facebook profiles to my phone contacts, but without the whole Settings/Facebook/Update Contacts and all?
    So please help!!!!!

    I'm creating an input source from the string, then i
    pass it to the parser. No, you don't. Look at the source again.
    byteStream = new
    new ByteArrayInputStream(string.getBytes());
    InputSource is = new InputSource(byteStream);
    parser.parse(byteStream, myParser);//the line that
    hat throws the exceptionYou aren't passing the InputSource to the parser at all.
    However, why are you using this roundabout way to pass the string to the parser? Why not justparser.parse(new InputSource(new StringReader(string)), myParser);?

  • Need help with merging rows

    Howdy all,
    Given the following data set...
    ID   GROUP_ID   AWESOME   MOD_DATE    LAST_NAME        FIRST_NAME
    52   98              1              2/1/2011       Kirk                    James
    60   99              1              2/2/2011       Kirk                    James
    42   45              0              1/29/2011     Kirk                    James
    100  31             1             6/24/2011      Smurf                 Papa
    200  32             1             6/23/2011      Smurf                 Papa
    300  33             0             6/22/2011      Smurf                 Papa
    400  34             0             6/21/2011     Smurf                  Papa for those with the same last_name and first_name,
    where AWEAOME=0,
    I want to overwrite their GROUP_ID with the grou_ID where AWESOME=1
    and the latest DOM_DATE.
    So for James Kirk, his group_id of 45 will be set the 99
    and for Papa Smurf, his group_ids of 33 and 34 will be set to group_id 31
    Desired result
    ID   GROUP_ID   AWESOME   MOD_DATE    LAST_NAME   FIRST_NAME
    52   98             1              2/1/2011         Kirk              James
    60   99             1              2/2/2011        Kirk              James
    42   99             0             1/29/2011       Kirk              James
    100  31            1             6/24/2011       Smurf             Papa
    200  32            1             6/23/2011      Smurf             Papa
    300  31            0             6/22/2011      Smurf             Papa
    400  31            0             6/21/2011      Smurf             Papa thanks

    Something like
    UPDATE table_name dest
       SET group_id =
        (SELECT group_id
           FROM (
            SELECT group_id,
                   mod_date,
                   first_name,
                   last_name,
                   max( mod_date ) over (partition by last_name, first_name) last_mod_date
               FROM table_name src_inner
              WHERE src_inner.awesome = 1 ) src_outer
          WHERE src_outer.last_mod_date = src_outer.mod_date
            AND src_outer.first_name = dest.first_name
            AND src_outer.last_name = dest.last_name )
    WHERE awesome = 0;should work. This assumes that there is always at least 1 row where AWESOME=1 and the name matches for every row where AWESOME=0. And it assumes there are no duplicates where the same name with AWESOME=1 have the same maximum MOD_DATE.
    Justin

  • Need help: merge array

    Hi everybody
    Need help in merging array of strong edges (coordinates).
    Already using array in 'if else' but have problem in merging those sequence values into two arrays of x and y coordinates (it will take all coordinates in image).
    Any ideas?
    Thanks.
    mySiti
    for (int i = 0; i < width; i++) { //for width
                for (int j = 0; j < height; j++) { //for height
                    Color c = pic.get(i, j);
                    int r = c.getRed();
                    int g = c.getGreen();
                    int b = c.getBlue();
                   int finalEdgeR=0, finalEdgeG=0, finalEdgeB=0;
                   int notEdgeR, notEdgeG, notEdgeB;
                   int [] StrongEdgeCoordX = new int ;
    int [] StrongEdgeCoordY = new int [j];
    if(r>=50 && r<=255)
    finalEdgeR=r;
    System.out.println("--------------------------------");
    System.out.println("coordinate of this pixel '"+i+"'");
    System.out.println("coordinate of this pixel '"+j+"'");
    System.out.println("StrongEdgeCoordX '"+i+"'");
    System.out.println("StrongEdgeCoordY '"+j+"'");
    System.out.println("edge red '"+finalEdgeR+"'");
    else if (r>=0 && r<50) notEdgeR=0;
    if(g>=50 && g<=255)
    finalEdgeG=g;
    System.out.println("edge green '"+finalEdgeG+"'");
    else if (g>=0 && g<50) notEdgeG=0;
    if(b>=50 && b<=255)
    finalEdgeB=b;
    System.out.println("edge blue '"+finalEdgeB+"'");
    else if (b>=0 && b<50) notEdgeB=0;

    hi, i have here a codes but i dont know on how to print the value that stored in array C;
    heres the sample code;
    // your array a and b
    int[] a, b;
    // you fill them
    a = ...;
    b = ...;
    // now you merge them
    int cSize = a.length + b.length;
    int[] c = new int[cSize];
    // pos of the c array
    int count = 0;
    int i = 0;
    for(i = 0; i < a.length; i++){
    c[count++] = a;
    for(i = 0; i < b.length; i++){
    c[count++] = b[i];

  • I need help on my MacBook Pro. Recently I've deleted another partition of my disk from the disk utility and I found out that my disk capacity wasn't get into the normal one which is 750GB. Meanwhile I installed window 7 into the partition disk.

    I need help on restoring my disk capacity back to normal. I installed window 7 into the partition disk through bootcamp and I deleted it from disk utility. After I erase the partition disk,I get my capacity to 499GB but not 750GB. Do I need to reinstall my MacBook or something to do with the restoring?

    Welcome to the Apple Support Communities
    Rodney Lai wrote:
    I installed window 7 into the partition disk through bootcamp and I deleted it from disk utility
    You shouldn't do it. You have to erase the Windows volume with Boot Camp Assistant, so it will restore the space onto the OS X volume and that volume will have 750 GB.
    As you did it with Disk Utility, you have to resize your OS X partition manually:
    1. Open Disk Utility, select your hard disk at the top of the sidebar, and go to Partition tab.
    2. You will see a bar with Macintosh HD. You have to click it at the bottom right corner and drag it to the end of the bar, so Macintosh HD will use all the space of the hard drive, and press Apply.
    3. Close Disk Utility and your OS X partition will have 750 GB

Maybe you are looking for

  • Connecting external display to macbook troubleshoot

    Hello I am trying to connect an LCD monitor to my macbook.. to expand my desktop.  I've bought the appropriate VGA Adapter.  My issue is when I go to System Preferences and then Display pane.. I don't see the ARRANGEMENTS tab.  Can someone please tel

  • Migrating from MySQL to Oracle 11gR2 containing accented characters

    Hello Gurus, I am going to migrate a MySQL database that contains accented characters. The collation of the tables holding these data is utf8_unicode_ci. I used SQLDeveloper to generate data migration scripts. After a test migration run, the web page

  • IllegalStateException

    I got the following exception from the console, I don't know whether it is my servlet code problem or the weblogic setup problem. I am using Weblogic 5.1 sp10 in Solaris 7. Thanks in advance. <ServletContext-General> Servlet failed with Exception jav

  • Refused To Price Match

    Two weeks ago, my wife upgraded her iphone to iphone 4 (16gb)  at Best Buy Dublin, CA (store 134) and price-matched the price from Fry's electronics with no problems after verifying price and availability.  Yesterday, I went to Best Buy Union City, C

  • 2 discs stuck in my imac ?

    any idea's, my daughter put 2 discs in my mac os x,