% DB increase differs for two system from the same landscape

Hi all ,
I have done upgrade and then unicode conversion for the two system- sandbox and development  from 4.6 C to ECC 6.0 with oracle 10 G and AIX 5.3
On sandbox % db( used db size in DB02 ) increase is 60 to 80 which is as per SAP figures after unicode conversion however on dev it is almost 150 % .
Has anybody faced the same problem before or can you suggest somthing for this tremendous data growth
Also what I have observed is threre are 7 tablespace on sandbox and 8 on Dev with "PSAPSR370" as the additional one on DEV ( PSAPSR3700 is different )
Please help me on this
-Ganesh

Hi Ganesh,
the database growth depends heavily on the content. Which languages do you have installed in your system and which  modules are used by your company?
I think the normal growth should be in a range of zero to 30 percent. The lower end comes from the reorganization effect due to the migration and 30 percent comes due to the fact that most data is normally numeric and numbers are the same with or without Unicode. But in rare situations it could be possible to see much higher values. The reason is, that Oracle, and also DB2, are using UTF-8 encoding if you're running your system as Unicode system. In UTF-8 a two byte Unicode character could be encoded in up to four bytes. That means if your systems contains lots of double byte characters it could grow much more than 30% but it seems unusual to me.
Are you sure that nothing was wrong with your migration?
Best regards
Ralph Ganszky

Similar Messages

  • HT3455 I got two receipts from the same tv show I bought. How's that even possible? I clicked the 'buy season ' button the first time and there was an error so I clicked it again, and now, I apparently paid for it twice!  Apple is such a rip-off!

    I got two receipts from the same tv show I bought. How's that even possible? I clicked the 'buy season ' button the first time and there was an error so I clicked it again, and now, I apparently paid for it twice!  Apple is such a rip-off!

    Wow.
    Over react much?
    Check your purchase history.  See if it actually charged you twice.
    If it did then contact itunes support for a refund.
    No need be so over dramatic.

  • Compare two results from the same table

    i have two results from the same table that i would like to compare. below is my query and the results i want to compare
    SELECT tblItemRoutingBOM.ItemRevID, tblItem.ItemID, tblItem.PartNum, tblItem.ItemName, tblItem.ManufacturerPartNum AS [Mfg Part#], tblItemRoutingBOM.Quantity
    FROM tblItemRouting
    INNER JOIN tblItemRoutingBOM ON tblItemRouting.ItemRoutingID = tblItemRoutingBOM.ItemRoutingID
    INNER JOIN tblItem ON tblItemRoutingBOM.ItemID = tblItem.ItemID
    WHERE tblItemRoutingBOM.ItemRevID in (61,70)
    as you can see i am returning two records using the where clause
    ItemRevID, ItemID, PartNum, ItemName, Manufacturer, Mfg Part#, Quantity
    61,121,331503,.233 Aluminum Sheet,,1
    70,121,331503,.233 Aluminum Sheet,,3
    now what i am looking for is to combine these two together into one row with the following added.  two columns for each QTY, QTY1 = 1 and QTY2 = 3 with a third column added that is the difference between the two QTY Diff = 2
    Any thoughts?

    Here are the two statements that i want to combine, results for each are attached
    SELECT tblItem.ItemID, Sum(tblItemRoutingBOM.Quantity) AS SumOfQuantity, tblItem.PartNum AS [Part #],
    tblItem.ItemName, tblManufacturer.ManufacturerName AS Manufacturer, tblItem.ManufacturerPartNum AS [Mfg Part#]
    FROM tblItemRouting
    INNER JOIN tblItemRoutingBOM ON tblItemRouting.ItemRoutingID = tblItemRoutingBOM.ItemRoutingID
    INNER JOIN tblItem ON tblItemRoutingBOM.ItemID = tblItem.ItemID
    INNER JOIN tblUnits ON tblItem.UnitID = tblUnits.UnitID
    LEFT JOIN tblManufacturer ON tblItem.ManufacturerID = tblManufacturer.ManufacturerID
    WHERE tblItemRoutingBOM.ItemRevID=61
    GROUP BY tblItem.ItemID,tblItem.PartNum,tblItem.ItemName,tblManufacturer.ManufacturerName,tblItem.ManufacturerPartNum
    SELECT tblItem.ItemID, Sum(tblItemRoutingBOM.Quantity) AS Quantity, tblItem.PartNum AS [Part #],
    tblItem.ItemName, tblManufacturer.ManufacturerName AS Manufacturer, tblItem.ManufacturerPartNum AS [Mfg Part#]
    FROM tblItemRouting
    INNER JOIN tblItemRoutingBOM ON tblItemRouting.ItemRoutingID = tblItemRoutingBOM.ItemRoutingID
    INNER JOIN tblItem ON tblItemRoutingBOM.ItemID = tblItem.ItemID
    INNER JOIN tblUnits ON tblItem.UnitID = tblUnits.UnitID
    LEFT JOIN tblManufacturer ON tblItem.ManufacturerID = tblManufacturer.ManufacturerID
    WHERE tblItemRoutingBOM.ItemRevID=70
    GROUP BY tblItem.ItemID,tblItem.PartNum,tblItem.ItemName,tblManufacturer.ManufacturerName,tblItem.ManufacturerPartNum
    114,11,55002,Pepsi Blue Cap,NULL,
    117,5,331501,Marigold Yellow For ABS,NULL,
    121,1,331503,.233 Aluminum Sheet,NULL,
    125,2,331504,Velvet Vinyl .008,NULL,
    114,33,55002,Pepsi Blue Cap,NULL,
    117,15,331501,Marigold Yellow For ABS,NULL,
    121,3,331503,.233 Aluminum Sheet,NULL,
    125,6,331504,Velvet Vinyl .008,NULL,
    my returned result should combine above with two extra columns (two extra columns because i have two results to combine)
    114, 11, 33, 22, 55002, Pepsi Blue Cap, NULL,
    117, 5, 15, 10, 331501, Marigold Yellow For ABS, NULL
    121,1, 3, 2, 331503, .233 Aluminum Sheet, NULL
    125, 2, 6, 4, 331504, Velvet Vinyl .008, NULL
    Columns go as such, ID, QTY1 (for 61), QTY2 (for 70), Diff (QTY1-QTY2), PartNum, ItemName, Mfg, Mfg Part#
    IF the results from one of those two are empty then i would see something like this
    114, 11, 0, 11, 55002, Pepsi Blue Cap, NULL,
    117, 5, 0, 5, 331501, Marigold Yellow For ABS, NULL
    121,1, 0, 1, 331503, .233 Aluminum Sheet, NULL
    125, 2, 0, 2, 331504, Velvet Vinyl .008, NULL

  • Compare two members from the same dimension in HFR

    Hi,
    Is it possibe to compare two members from the same dimension in HFR? The requirement is to compare Year and Week members from the same dimension. The Week date will be selected from POV. The corresponding Year date should be displayed in the report. Week dates are in the format W2008-03-07 and Year dates are in YTD2008-03-07.
    The dates are same except the preceding character.I am unable to compare these two. In my understanding there's no substring or replace functions in HFR.
    Kindly help. Thanks in advance.
    Regards,
    Uma

    Hi,
    How is your database structured? it may be possible to use the 'RelativeMember' function if it will always be the same number of steps between the 'W' member and the 'YTD' member, e.g. if your hierarchy is something like:
    Time
    .Weeks
    ..W2008-03-07
    ..W2008-03-10 etc.. for 52 weeks
    .YTD
    ..YTD2008-03-07
    ..YTD2008-03-10 etc.. for 52 weeks
    In your report select 'Current Point of View for Time' in one row/column and in the other use:
    RelativeMember set up as follows:
    Member: Current Point of View for Time
    Offset: 52
    Hierarchy: Time
    RelativeMemberList: Lev0, Time
    UseFirstDescendant: leave unselected
    Hope this helps
    StuartGame
    www.analitica.co.uk

  • Can I run two PIDs from the same vi?

    Hi
    I want to control speed of the rotating shaft and force applied by the pneumatic cylinder using two different PIDs from the same program.
    I managed to get two PIDs to work separatly using PID control loop VI`s supplied with labview 6.1 (I got Kc, I and D right, so there is no overshoot). When I try to run both PIDs within my vi they don`t work. I again tried various gains and managed to get one PID to work but not the other. Then through trial and error I managed to get a second PID to work but I had to change refresh time of the FOR loop from 100msec to 1msec.
    Does anyone have experience with running two PIDs in the same program? Does the timing of the FOR loop influence PID contorller? Does equiring of other data while run
    ning PID has effect on the PID?
    I would really appreciate any comments/help. I am pretty thrustrated at this time
    Thanks"

    The timing of the FOR loop will influence your PID control, which is a fundamental part of PID control. Acquiring data doesn't affect the PID although it could affect the timing of the loops. For instance if you only have one DAQ card you would want to have it all in one loop because you can not have two AI sessions open to the same card.
    For more detailed information on PID I would recommend reading the "PID Control Toolset
    User Manual" which should have been installed to your machine but can also be found at : PID Control Toolset User Manual"
    Regards,
    JR A.
    Application Engineer
    National Instruments

  • How to use the TableSorter for two tables at the same view?

    Hello,
    I am using the TableSorter object in order to sort Dynpro tables.
    Suppose I have two tables at the same view, is it possible to use it seperatly for both of them?
    I assume that at the wdModifyView method I will need to catch the table that the user clicked on, yet I don't have an idea of how to do it...

    Hi Roy,
    Constructor of TableSorter
    public TableSorter(IWDTable table, IWDAction sortAction, Comparator[] comparators)
    So, you have to create instance of TableSorter class for each table on the view.
    best regards, Maksim Rashchynski.

  • How to compare two fields from the same table in the select statement

    Hi, friends
    I try to compare tow fields from the same table, but no result,
    For example, this
    data: cptotchek tyep i.
    select count(*) into cptotchek
    from aufk where erdat = aufk-idat2 .
    The result is  cptotchek = 0, but there are the records in aufk , where,  aufk-erdat = aufk-idat2.
    Please, help me, i don't use the loop statement for optimize my program.
    Regards

    Hi  ,
           it will not return  any value   when you are using   column of same table 
           such as Date Field   , Because  while Using Aggregate Function  it will not check with self column
    .      For that you have to take data in one internal table and then you can work on it  .
         And if you are worried about Performance  it will not affect  , untill you are selecting only required data  .
    you can try this way  .
    data: cptotchek type i.
    types : begin of  w_aufk.
            include structure aufk  .
          types : end of  w_aufk .
    data : it_aufk type standard table of w_aufk with header line  .
    select * into corresponding fields of table it_aufk
    from aufk  .
    loop at it_aufk .
    if it_aufk-erdat  = it_aufk-idat2 .
    write : / it_aufk-erdat , it_aufk-idat2 .
    else .
    delete it_aufk .
    endif  .
    endloop.
    Regards
    Deepak.

  • OVS for two fields in the same selct Option?

    Hi Experts,
    I am using select options in my view. I am using OVS for one field. I would like to use same OVS for another field in the same select option.
    I tried "case ovs_callback_object->context_attribute". Which return the field for which we press F4.
    But IT did not work here probably because this we can use only for context attributes fields.
    but But here I dont get the select option field.
    But in my case I have select options which are not mapped to any context attribute.
    How can I find , for which field in select options F4 help has been requested?
    Regards,
    Vishal.

    Hi,
    You can find which field in select options F4 help has been requested using I_OVS_DATA-M_SELECTION_FIELD_ID.
            CASE I_OVS_DATA-M_SELECTION_FIELD_ID .
                 WHEN 'PERNR'.
                 WHEN 'ENAME'.
                 WHEN OTHERS.
            ENDCASE.
    If you are using one OVS for more than one fileds, please remember that you need to provide different code for each fields at phase 0 (configuration) and phase 3 (apply result).
    Regards,

  • Duplicate Contacts After Syncing Two iPhones from the Same iTunes

    My husband and I each have an iPhone that we sync from the same iTunes account. We sync our Yahoo contacts as well. Following the upgrade yesterday, we each now have each other's Yahoo contacts (as well as our own) showing up on our iPhones. Any ideas on how to fix this?

    Go to Settings>Messages>Send and Receive at>You can be reached for iMessages at. Uncheck the phone number that you don't want to use and check/select the number that you do want to use on each phone.

  • Two records from the same table in for loop

    I have a table that holds teams, a table that holds scores and a table that holds match data.
    I am finding it dificult to get the player data for the second team.
    Currently It is showing player information for one team.
    It does echo out the second team name, but not their player info.
    Can someone have a look at my code and make it work.
    I took off the code I had for the second team becuase it was ging me Error 1065
    Main Query:
    mysql_select_db($database_db, $db);
    $query_match_fixtures = "select m.match_id, date_format(m.date, '%d/%m/%Y') as mDate, m.time, t1.division, m.report, t1.team_name as team1_name, s1.score as score1, t2.team_name as team2_name, s2.score as score2
    from matches m left join (matchscores s1 left join team t1 on t1.team_id = s1.team) on (s1.match_id = m.match_id) left join (matchscores s2 left join team t2 on t2.team_id = s2.team) on (s2.match_id = m.match_id)
    where s1.team <> s2.team AND m.match_id = $matchID
    group by match_id
    order by m.match_id";
    $match_fixtures = mysql_query($query_match_fixtures, $db) or die(mysql_error());
    //$row_match_fixtures = mysql_fetch_assoc($match_fixtures);
    $totalRows_match_fixtures = mysql_num_rows($match_fixtures);
    Player extraction:
    mysql_select_db($database_db, $db);
    $row_match_player = array();
    for ($i = 0; $i < $totalRows_history; $i++)
        $row_history[$i] = mysql_fetch_assoc($history);
    for ($i = 0; $i < $totalRows_match_fixtures; $i++)
        $row_match_fixtures[$i] = mysql_fetch_assoc($match_fixtures);
        $match_player_query = "SELECT *
                               FROM match_player
                                LEFT JOIN player on player.player_id = match_player.player_id
                                LEFT JOIN team ON player.team_id = team.team_id
                               WHERE match_id = ".$matchID."
                                AND team.team_name = '".$row_match_fixtures[$i]['team1_name']."'";
        $result_match_player = mysql_query($match_player_query, $db) or die("large error ".mysql_errno());
        $totalRows_match_player = mysql_num_rows($result_match_player);
        for ($r; $r < $totalRows_match_player; $r++)
            $temp_row_match_player[$r] = mysql_fetch_assoc($result_match_player);
        array_push($row_match_player, $temp_row_match_player);
    The display table:
            <div class="tableHeading">
            <h2><?php echo $row_history['mDate']; ?></h2>
            </div>
            <table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td height="25" bgcolor="#000000"><div align="left" style="color:#FFFFFF"><strong>Type</strong></div></td>
        <td height="25" bgcolor="#000000"><div align="left" style="color:#FFFFFF"><strong>Home</strong></div></td>
        <td height="25" bgcolor="#000000"><div align="center" style="color:#FFFFFF"><strong>Score</strong></div></td>
        <td height="25" bgcolor="#000000"><div align="center" style="color:#FFFFFF"><strong>Away</strong></div></td>
        <td height="25" bgcolor="#000000"><div align="center" style="color:#FFFFFF"><strong>Kick-Off</strong></div></td>
        <td height="25" bgcolor="#000000"><div align="center" style="color:#FFFFFF"><strong>Venue</strong></div></td>
        <td height="25" bgcolor="#000000"><div align="center" style="color:#FFFFFF"><strong>Referee</strong></div></td>
      </tr>
      <tr>
        <?php foreach ($row_match_fixtures as $show_match_fixtures)
        { ?>
            <td height="25" bgcolor="#dfdfdf">
            <div align="left"><?php echo $show_match_fixtures['division']; ?></div>
            </td>
            <td height="25" bgcolor="#dfdfdf">
            <div align="left"><?php echo $show_match_fixtures['team1_name']; ?></div>
            </td>
            <td height="25" bgcolor="#dfdfdf">
            <div align="center"><?php echo $show_match_fixtures['score1']; ?> - <?php echo $show_match_fixtures['score2']; ?></div>
            </td>
            <td height="25" bgcolor="#dfdfdf">
            <div align="center"><?php echo $show_match_fixtures['team2_name']; ?></div>
            </td>
            <td height="25" bgcolor="#dfdfdf">
            <!-- You do not want a nested loop inside the header so these results will have to go inside the table-->
            <div align="center"><?php echo $row_history['time']; ?></div>
            </td>
            <td height="25" bgcolor="#dfdfdf">
            <div align="center"><?php echo $row_history['venue_name']; ?></div>
            </td>
            <td height="25" bgcolor="#dfdfdf">
            <div align="center"><?php echo $row_history['fname']; ?> <?php echo $row_history['sname']; ?></div>
            </td>
        </tr>
          <tr>
            <?php foreach ($row_match_player as $player_array)
                   foreach ($player_array as $player_display)
            ?>
            <td valign="top">Goalscorers</td>     
            <td>
              <?php echo $player_display['fname']." ".$player_display['sname']." (".$player_display['Goals']; ?>)<br />
            </td>
            <td> </td>
            <td>
              <?php echo $player_display['fname']." ".$player_display['sname']." (".$player_display['Goals']; ?>)<br />
            </td>
            <td> </td>
            <td> </td>
            <td> </td>
          </tr>
          <tr>
            <td valign="top">Yellow Cards</td>
            <td><?php echo $player_display['YC']; ?></td>
            <td> </td>
            <td><?php echo $player_display['YC']; ?></td>
            <td> </td>
            <td> </td>
            <td> </td>
          </tr>
          <tr>
            <td valign="top">Red Cards</td>
            <td><?php echo $player_display['RC']; ?></td>
            <td> </td>
            <td><?php echo $player_display['RC']; ?></td>
            <td> </td>
            <td> </td>
            <td> </td>
          </tr>
          <tr>
            <td valign="top">Man of the Match</td>
            <td><?php echo $player_display['fname']; ?> <?php echo $player_display['sname']; ?></td>
            <td> </td>
            <td><?php echo $player_display['fname']; ?> <?php echo $player_display['sname']; ?></td>
            <td> </td>
            <td> </td>
            <td> </td>
          </tr>
                <?php
                    }// close and unset $player_display
                    unset($player_display);
                } //close and unset $player_array
            unset($player_array);
         } //close and unset $show_match_fixtures
        unset($show_match_fixtures);?>
    </table>
    As you can see from  the picture above the table is displayed with the name of the "goal  scorer" for that team under (home) or Home team
    When I try to create the same thing for away team I get a error, either a syntax error or 1065.
    I tried having a foreach do two queries but that did not work.
    Any help would be appriecated

    I did try that, but I have messed it up.
    Now the team names do not display at the top of the table.

  • How can two networks from the same router be showing up at once?

    Very confused here.   I hooked up the linksys wrt54g and obviously it showed up as an available network.  It is hard wired into one computer.  
    I then (on an unwired computer) went into the router to rename the network and reset the password.  
    Now, when I check for available networks, both are present (linksys and the renamed one)?  How can this be?
    Also, the linksys network has five bars connectivity and the new one I renamed only has two.  How is that possible?
    Thanks

    1. Always configure your router from a wired connection. Never through a wireless connection. The wired connection is the only reliable way to be sure your configure your router and not a different one.
    2. Vista and Windows 7 allow you to name a wireless connection different then the "SSID" used on the router. It also allows you to set up two wireless connections using the same SSID. Clean up the list of preferred networks on your computer. That should take care of this.

  • Using the same itunes account for two users on the same macbook pro

    Hi all.  I purchased a macbook pro in september (which I have absolutely adore), but because my semester was so jam packed with work, I wasn't able to take it in for my data transfer until the Christmas season.  Everything was transferred correctly, but for some reason the transfer leaves me with two different users on the same macbook.  I don't really have any problem with this, except I want to access the music from the "old user" with the new user that I have been using since I purchased the macbook.  Is there any way that I can move my music from one user to another?  Bear in mind that I only have one itunes account, and almost all of this music was purchased legally through itunes (I had some old cd's that I transferred back when I first bought the original macbook back in 07).  Thank you!

    I'm assuming that you want to get both your purchased music AND your ripped CD's back into the New iTunes Library.  If you use iCloud to re-download all your purchased music, TV, apps and books you wont get your CD's or movies back; and you'll use up a lot of internet bandwidth and time to re-download everything.  So, I'm going to give you a way to get the music and everything else off the hard drive into your new iTunes Library.
    But, I need some clarification here.  I'm assuming that you recently used Migration Assistant to move your old Mac's user account to the new Mac, so when you turn on the new Mac you have a choice to log in as either the "Old_User" or the "New_User", or something like that.  And both user acounts are using the same iTunes music store Apple ID, right?
    And, I'm assuming that you have both accounts set up with your iCloud or MobileMe information, so they have the same info in the contacts, calandars, bookmarks, and notes.  If you didn't use iCloud to load this info to the new user, then importing your old contacts, calendars, bookmarks and such will require an extra few steps, and is a different process entirely (composed of exporting the data from each of those apps while logged in as the Old User, and then importing them while logged in as the New User). 
    I'm assuming that the main differences in the two accounts will be that your old documents, old downloads, old email, old iPhoto and old iTunes library are not merged with the new ones, right? Apples Migration Assistant would have merged the Mac Apps folder and copied over all the Shared Users documents if it was done right. I'm also assuming that you kept your old iTunes Library in your Old User account and not in the Shared Users folder, right?
    If that's the case, first decide which account will become the primary account that you you will use all the time from this point forward.  You may want to choose the account that has the most recent work that you have done with the computer over the past semester since it's set up the way you like it, or the account that has the largest amount of data and history that you don't want to move.  The next step will be done by first logging into whichever account you wont be using in the future (except to access old info that can't be moved).
    If you are happy with how it's working now and just want to move your old documents, photos, and music over to the new account, then it seems to me that it would help things if you first log in as your "Old User" name" and move (or copy) your old documents, downloads, iPhoto Library, and iTunes library to the Shared Users folder. 
    I would basically move everything important in the Old User's home folder to the Shared Users folder, keeping the files in the proper subfolders like "Music" "iTunes" "Pictures" "Movies" "Documents" "Downloads" etc...  However, if your New iTunes Library or New iPhoto Library and such are already in the Shared User's folder, make sure you don't replace them with the old ones, by renaming the old ones first (maybe add the word "old" to the name.
    Mind you, when you have moved everything, and you log out of the Old User acount, and then log in as the New User, you will usually have to enter any administrator's User name and password whenever you want to make changes to those old documents while logged in as the New User.  Before going forward you should first change the User Permissions of those files to let the New User "own" them, so it will stop asking you for a name and password every time you want to access them in the future. 
    EVERYTHING from this point forward assumes that you are now logged in as the New User, and you should not ever need to log in as the Old User, except to access your old email archives or old Keychain Access to find stored passwords (which I think are stored in the Old User's "Library" folder which is invisible and inaccessable in Lion).  I don't know how to merge old saved emails or keychain passwords into the new account (mobile me can sync the keychains or mail rules/accounts, but iCloud can't, and mobile me doesn't sync the actual emails that were downloaded since 2007).
    First, to change the "Sharing & Permissions" to the New User just select "Get Info" for any old document or enclosing folder that need their permissions changed to the New User, click on the little lock icon at the bottom right of the Get Info Window, authenticate with any Administrator's Name and Password, and click okay.  If it shows your New User name as "Read Only" change that to "Read and Write".  If your New User name is not in the list, click the "+" icon on the bottom left and select the New User name, and set it for Read and Write.  Sometimes you have to do this "+" user step more than once to get it to stick. 
    Then, after your New User name shows it's set for "Read & Write", with your New User name still selected, click on the little "cog-wheel" icon next to the +/- buttons, and choose "Apply to Enclosed Items".  The computer could take a long while to finish changing the permissions if there are a lot of files in the folder you changed, so be patient.  When it's done you should "own" all the files in that old folder as the new user.  You are now ready to proceed with importing the old music into the New iTunes library.
    First launch iTunes (still as the New User), and go to File > Preferences > Advanced.  Make sure iTunes is set to "keep itunes media folder organized" and "copy filkes to itunes media folder".  Click okay.  It may open a small window showing that things are being moved and organized, with a progress bar, and then it's done.  It wont do that if you are already organized and copied. 
    At this point, you could simply locate your old iTunes music folder in the Finder and drag the Finder folder onto the open iTunes app window and let go of the trackpad button when the cursor changes to a green "+" sign, and it will import and copy everything into the new iTunes Library.  When it's done you can delete the old Music folder in the Finder (not in iTunes).  However, you may not have enough hard drive space to make the copies, and it will be much slower than if you move the files in the finder before you import them.  You may still have duplicates of your ripped music that you added to the new iTunes Library, and can delete those from within iTunes.
    My step to get the old music to show up in the New iTunes Library by moving them instead of copying them will be done in a particular way, that will avoid having the entire old music folder left behind to take up space on your hard drive, and it will make the import process significantly faster.  You are basically going to use the Finder to move the old music folder into the New iTunes Media folder, but you need to do it in such a ways as to not overwrite the new stuff.
    So, before you move your old iTunes Music folder into the new iTunes media folder, rename the old Music folder with the word "old" in it, then move that folder into your current iTunes Media folder.  Move it, don't copy it.  If the Mac forces you to copy it, once it's done you can delete the old music's original folder, after you confirm it's all there in the copied folder.  This sometimes happens when you move files from Shared Users that you haven't changed the ownership properly before the move.  Now when you drag the old music folder onto the iTunes App window, since the files are already in the iTunes Media Folder it will not copy the files but will simply move them around and organize them inside the new iTunes Music folder.
    You can repeat these steps with the old Movies, TV shows, Apps and Books, or whatever you want to move to the new iTunes Music Library.
    I don't know how to "merge" the old iPhoto Library with the new one, but when you click on iPhoto in the dock while holding down the option key while you click, it will let you choose which iPhoto Library to open.  From a dialog box you can choose the old one, which you copied to the Shared Users folder earlier.  It's possible that a similar technique of dragging the old iPhoto library older on top of the iPhoto App window would import things, but you'd need to research that first.
    I wish I had more time to proof-read this answer, but I have to go to a meeting, but can check back later for questions.

  • Subtracting two rows from the same column

    Hi,
    I have the following table with about 6000 rows of different year_month but I am compare and subtract v
    Organization     Year_month     Contribution
    Kano     JAN-2011     200000
    KADUNA     JAN-2011     300000
    ABUJA     JAN-2011     400000
    Kano     FEB-2011     300000
    KADUNA     FEB-2011     200000
    ABUJA     FEB-2012     600000
    I want to select a year_month at run time to subtract the contribution of the first year_month from the contribution of the second year_month and give me the result as shown in the following table
    Organization     JAN-2011     FEB-2011     diffrence
    Kano     200000     300000     -100000
    KADUNA     300000     200000     100000
    ABUJA     400000     600000     -200000
    Here is my code returning too many va
    create or replace function "GET_MONTHLY_VALUE"
    (q_name in VARCHAR2,
    hmoCode in VARCHAR2)
    return VARCHAR2
    is
    c1 number;
    begin
    select NHIS_CONTRIBUTION into c1 from CONTRIBUTION_MGT where upper(YEAR_MONTH)=upper(q_name) and upper(ORGANIZATION)=upper(hmoCode);
    return c1;
    exception when NO_DATA_FOUND THEN
    return null;
    end;
    ------a call to the above function:
    create or replace function process_cont_monthly return varchar
    is
    Cursor cont_cursor is select ORGANIZATION from CONTRIBUTION_MGT;
    begin
    for
    cont_rec in cont_cursor loop
    select GET_MONTHLY_VALUE(:p26_month,cont_rec.ORGANIZATION) first, GET_MONTHLY_VALUE(:p26_month2,cont_rec.ORGANIZATION) second,
    abs(GET_MONTHLY_VALUE(:p26_month,cont_rec.ORGANIZATION)-GET_MONTHLY_VALUE(:p26_month2,cont_rec.ORGANIZATION)) Diffrence
    from CONTRIBUTION_MGT;
    end loop;
    commit;
    end;
    I became totally confused and don’t know what to do next
    Any help and better guide is appreciated

    Hi,
    Here's one way:
    WITH    months_wanted     AS
         SELECT     1 AS col, TO_DATE ('JAN-2011', 'MON-YYYY') AS month     FROM dual     
        UNION ALL
         SELECT     2 AS col, TO_DATE ('FEB-2011', 'MON-YYYY') AS month     FROM dual     
    ,     pivoted_data     AS
         SELECT       c.organization
         ,       NVL (SUM (CASE WHEN m.col = 1 THEN c.contribution END), 0)     AS total_1
         ,       NVL (SUM (CASE WHEN m.col = 2 THEN c.contribution END), 0)     AS total_2
         FROM       months_wanted     m
         JOIN       contribution_mgt  c ON  c.year_month >=            m.month
                                     AND c.year_month < ADD_MONTHS (m.month, 1)
    SELECT    organization
    ,       total_1
    ,       total_2
    ,       total_1 - total_2     AS difference
    FROM       pivoted_data
    ORDER BY  organization
    ;I assume that the year_month column is a DATE. Date information always belongs in DATE columns.
    As written, the two months do not need to be consecutive. If you always want consectuive months, this can be re-written so that you only have to enter the first month, not both of them.
    I hope this answers your question.
    If not, post a little sample data (CREATE TABLE and INSERT statements, relevant columns only) for all tables involved, and also post the results you want from that data.
    Point out a few places where the query above is giving the wrong results, and explain, using specific examples, how you get those results from that data in those places. If you changed the query at all, post your code.
    Always say which version of Oracle you're using.
    See the forum FAQ {message:id=9360002}

  • HT204266 If I have a play list of various artists and on this list I have two tracks from the same album how can I combine those two tracks to play as one if I am using the shuffle feature?

    An example would be Jackson Browne's "The Load Out" &" Stay".They should play one after the other but in a play
    list on shuffle setting they don't. How do I combine two songs so they play as one in a shuffled playlist

    Friveros wrote:
    When I import my music files to iTunes will I be creating new files for every file I import? If the answer is YES; where are those files going to be stored and how much space will they use?
    To begin with you can't manage FLAC in iTunes. The use of iTunes is at this moment limited to WAV, AIFF, Apple Lossless, AAC and MP3. But that's not a problem because if I understand you correctly you want to organize the MP3-files in iTunes.
    When you import music files you can let iTunes copy all files and put it in an iTunes-media-Folder. You can make the choice in preferences-->tab advanced.
    If you deselect the second blue checkbox (sorry, in Dutch) iTunes won't copy files as you import the files in your library. It will use the files from the place they are on the disk now. So you have a choice. But if you want iTunes to copy them, they will be placed in a folder called iTunesMedia. This is how it placed on your disk.
    All files will be put in one music folder well ordered by artist and albums. If you want to make a backup of all your music you just have to copy the iTunes folder to another disk. You can backup all music at once. How much space they will use depends on the bitrate of the MP3 and whether you add more tagging to it. You can have iTunes add album artwork. That means adding gif or jpg files to your library. Are you using bitrate 320 for your MP3?
    If you tell me I can give you estimates on the disk-space you will need.

  • Calculating average time from two records from the same table.

    Hi all
    I need to calculate the average time between two events that are recorded in the same table.
    The table is TMS_MESSAGE_AUDIT_LOG
    MESSAGE_ID VARCHAR2(16 BYTE) NOT NULL,
    MESSAGE_VERSION NUMBER(2) NOT NULL,
    CREATE_TM VARCHAR2(18 BYTE) NOT NULL,
    MESSAGE_STATUS VARCHAR2(30 BYTE),
    TRANSACTION_TYPE_NM VARCHAR2(30 BYTE),
    MESSAGE_TP VARCHAR2(3 BYTE),
    WORKFLOW_OBJECT VARCHAR2(30 BYTE) NOT NULL,
    WORKFLOW_REQUEST VARCHAR2(30 BYTE) NOT NULL,
    WORKFLOW_RETURN_CD VARCHAR2(30 BYTE) NOT NULL,
    AUDIT_ACTION VARCHAR2(255 BYTE),
    LAST_UPDATE_USER_LOGON_ID VARCHAR2(12 BYTE),
    LOCAL_TM VARCHAR2(18 BYTE) NOT NULL,
    LOCAL_TIME_ZN_NM VARCHAR2(70 BYTE) NOT NULL,
    LOCAL_DAYLIGHT_IN CHAR(1 BYTE) NOT NULL,
    FPRINT VARCHAR2(30 BYTE)
    What i now need is
    When the MESSAGE_ID is the same i need have the average time between when the MESSAGE_STATUS is AA and BB ( I need the time out of the CREATE_TM field )
    And this for every 15 minutes interval.
    Because this table will become BIG millions and millions of records it needs to be fast.
    Can anybody help me.
    Marcel

    Something like this?
    CREATE TABLE wr_test
    ( message_id                 VARCHAR2(16 BYTE) NOT NULL
    , message_version            NUMBER(2) NOT NULL  -- Assumption: Acknowledged ver > Received ver
    , create_tm                  VARCHAR2(18 BYTE) NOT NULL
    , message_status             VARCHAR2(30 BYTE)
    , transaction_type_nm        VARCHAR2(30 BYTE)
    , workflow_object            VARCHAR2(30 BYTE) DEFAULT 'x' NOT NULL
    , workflow_request           VARCHAR2(30 BYTE) DEFAULT 'x' NOT NULL
    , workflow_return_cd         VARCHAR2(30 BYTE) DEFAULT 'x' NOT NULL
    , audit_action               VARCHAR2(255 BYTE)
    , last_update_user_logon_id  VARCHAR2(12 BYTE)
    , local_tm                   VARCHAR2(18 BYTE) NOT NULL
    , local_time_zn_nm           VARCHAR2(70 BYTE) DEFAULT 'GMT' NOT NULL
    , local_daylight_in          CHAR(1 BYTE) DEFAULT 'x' NOT NULL );
    INSERT ALL
    INTO   wr_test
           ( message_id
           , message_version
           , create_tm
           , message_status
           , local_tm )
    VALUES ( message_id
           , 1
           , create_tm
           , '(Receive)'
           , TO_CHAR(local_tm,'YYYYMMDD HH24:MI:SS') )
    INTO   wr_test
           ( message_id
           , message_version
           , create_tm
           , message_status
           , local_tm )
    VALUES ( message_id
           , 2
           , create_tm
           , 'Wait CLSB Ack'
         , TO_CHAR
           ( local_tm + NUMTODSINTERVAL(DBMS_RANDOM.VALUE(0,2e5),'SECOND')
           , 'YYYYMMDD HH24:MI:SS' ) )
    SELECT ROWNUM AS message_id
         , TO_CHAR(SYSDATE,'YYYYMMDD HH24:MI:SS') AS create_tm
         , DATE '2000-01-01' + DBMS_RANDOM.VALUE(0,3) AS local_tm
    FROM dual CONNECT BY ROWNUM < 100000;
    WITH src AS
         ( SELECT message_id
                , message_status
                , message_version
                , TO_DATE(SUBSTR(local_tm,1,17),'YYYYMMDD HH24:MI:SS') AS dt
                , TO_DATE(SUBSTR(local_tm,1,8),'YYYYMMDD') AS dt_day
                , TO_CHAR(TO_DATE(SUBSTR(local_tm,10,8),'HH24:MI:SS'),'SSSSS') AS dt_sec
           FROM   wr_test
           WHERE  message_status IN ('(Receive)','Wait CLSB Ack') )
    SELECT dt_day + NUMTODSINTERVAL(period,'SECOND') AS dt
         , NUMTODSINTERVAL(AVG(elapsed),'DAY') AS avg_elapsed
         , NUMTODSINTERVAL(MIN(elapsed),'DAY') AS min_elapsed
         , NUMTODSINTERVAL(MAX(elapsed),'DAY') AS max_elapsed
         , COUNT(*)
    FROM   ( SELECT message_id
                  , message_status
                  , dt_day
                  , TRUNC(dt_sec/300)*300 AS period
                  , LEAD(dt) OVER (PARTITION BY message_id ORDER BY message_version) AS ack_dt
                  , LEAD(dt) OVER (PARTITION BY message_id ORDER BY message_version) - dt AS elapsed
             FROM   src ) cal
    WHERE  cal.message_status = '(Receive)'
    GROUP BY dt_day, period
    ORDER BY 1;Replace "wr_test" with "tms_message_audit_log" in the WITH subquery to test on your data.

Maybe you are looking for