Sort array in rank order

how can i sort the numbers in rank order i.e. there are 5 random numbers displayed 1 5 2 4 3. i would like to sorth these numbers into rank order 1 2 3 4 5
import java.io.*;
public class random {
public static void main(String args[]) {
try {
PrintWriter out = new PrintWriter(new FileWriter("random.txt"));
java.util.Random rand = new java.util.Random();
for (int i = 0; i < 20; i++) {
out.println(rand.nextInt(10));
out.close();
} catch (IOException ioe) {
ioe.printStackTrace();
try {    
            FileReader fr = new FileReader("random.txt");
            int i;
            while((i=fr.read()) != -1) {
               System.out.print((char)i);
            fr.close();
      catch(Exception e) {
           System.out.println("Exception \n" + e);
}

can a mod close/delete this topic!!!
do not reply to this one!!!

Similar Messages

  • API which can sort array in decending order

    hi all,
    i just want to know is there any API available in Java which can sort an array of integers in desending order

    http://www.google.co.uk/search?hl=en&q=java+quicksort+API&btnG=Search&meta=
    will bring this right up:
    http://java.sun.com/j2se/1.4.2/docs/api/java/util/Arrays.html

  • Sorting a two dimensional array in descending order..

    Guy's I'm a beginning Java programmer. I've been struggling with finding documentation on sorting a two dimensional primitive array in descending order.. The following is my code which goes works, in ascending order. How do I modify it to make the list write out in descending order?
    class EmployeeTable
         public static void main(String[] args)
         int[][] hours = {
              {2, 4, 3, 4, 5, 8, 8},
              {7, 3, 4, 3, 3, 4, 4},
              {3, 3, 4, 3, 3, 2, 2},
              {9, 3, 4, 7, 3, 4, 1},
              {3, 5, 4, 3, 6, 3, 8},
              {3, 4, 4, 6, 3, 4, 4},
              {3, 7, 4, 8, 3, 8, 4},
              {6, 3, 5, 9, 2, 7, 9}};
         int [] total = new int [hours.length];
         for (int i = 0; i < hours.length ; i++){
              for (int j = 0; j < hours.length ; j++){
                   total[i] += hours[i][j];
         int[] index = new int[hours.length];
         sortIndex(total, index);
    for (int i = 0; i < hours.length; i++)
    System.out.println("Employee " + index[i] + " hours are: " +
    total[i]);
    static void sortIndex(int[] list, int[] indexList) {
    int currentMax;
    int currentMaxIndex;
    for (int i = 0; i < indexList.length; i++)
    indexList[i] = i;
    for (int i = list.length - 1; i >= 1; i--) {
    currentMax = list[i];
    currentMaxIndex = i;
    for (int j = i - 1; j >= 0; j--) {
    if (currentMax < list[j]) {
    currentMax = list[j];
    currentMaxIndex = j;
    // How do I make it go in descending order????
    if (currentMaxIndex != i) {
    list[currentMaxIndex] = list[i];
    list[i] = currentMax;
    int temp = indexList[i];
    indexList[i] = indexList[currentMaxIndex];
    indexList[currentMaxIndex] = temp;

    Bodie21 wrote:
    nclow all you wrote was
    "This looks to me like a homework assignment that you're asking us to solve for you. Your description of what it does isn't even correct. It doesn't sort a 2d array.
    You would probably elicit better help if you could demonstrate that you've done some work and have something specific that you don't understand."
    To me that sounds completely sarcastic. You didn't mention anything constructive besides that.. Hence I called you a male phalic organ, not a rear exit...Bodie21, OK, now you've got 90% of us who regularly contribute to this forum thinking your the pr&#105;ck. Is that what you wanted to do? If so, mission accomplished. Many will be looking for your name next time you ask for help. Rude enough for you?

  • Sorting array of numbers

    I have an multiple arrays of numbers 1-10 in different orders. I want to sort them in ascending order.
    example
    for(int pass=0; pass < sizeofarray; pass++){
        for(int t=0; t < sizeofarray; t++){
            if(array[t] > array[t+1]){
                hold=array[t];
                array[t] = array[t+1];
                array[t+1] = hold;
    }This loops through 10 times no matter how the array is originally sorted. How do I decrease the number of times this cycles if the array is pre-sorted?
    example arrays {10,9,8,7,6,5,4,3,2,1} need to go 10 times
    {1,2,3,4,5,6,7,8,9,10} only needs to check it once.
    Help, please only loops, no array.sort. This is a homework assignment.

    Quicksort while effective, is not what I needed. A modified bubble sort is what I wanted. Thanks to all who posted. I found the logic I was able to modify for my needs at
    http://www.autoobjects.com/Home/Teaching/CmpE_126/CmpE_126_Lectures/Sortings/sortings.html#Bubble_Sort
    here's basically what it did (in C++):
        Improved Bubble Sort                                                                                                        */
    void BubbleSort( UserData x[ ], int siz ){
            int i, j, switched;
            /* outer loop controls the number of pass */
            for( i = 0, switched = true; i < siz - 1 && switched == true; i++ ){
                    /* initially no interchanges have been made on this pass */
                    /* inner loop controls each individual pass */
                    for( j = siz - 1, switched = false; j > i; j-- ){
                            if( getKey( x[ j ] ) > getKey( x[ j - 1 ] )){  /* an interchange becomes required */
                                    switched = true;
                                    Swap( x[ j ], x[ j - 1 ] );
                            }        /* inner loop */
                    }       /* outer loop */
            return;
            }Thanks to jbish who had the most useful answer for my needs.

  • [C] Trying to sort string into reverse order ... Blank. [SOLVED]

    Here are the pre-processors:
    #include <stdio.h>
    #include <string.h>
    Here are the global variables:
    char output[999];
    Here's the function to sort string to reverse order (I THINK THE PROBLEM IS HERE):
    char output[999];
    char *sort_reverse(const char *str)
    int i, j = 0;
    for (i = strlen(str); i > 0; i--)
    output[j] = str[i];
    j++;
    return output;
    And, function int main(void):
    int main(void)
    printf("Reverse of \"Hello\": %s\n", sort_reverse("Hello"));
    return 0;
    The output is:
    Reverse of "Hello":
    Why is that? how can i fix that?
    Last edited by milo64 (2013-03-28 01:45:46)

    Instead of the global char output[999] wich is really big, you could allocate a perfectly sized array with calloc - like this in the sort_reverse function:
    char *output = calloc(strlen(input_string), sizeof(char));
    and in main program:
    char *reversed_string = sort_reverse("Whatever");
    printf("%s\n", reversed_string);
    //Remember to free reversed_string with
    free(reversed_string);
    //Since its allocated in the heap with calloc()
    Try check man-page for calloc, it will zero out the bytes aswell, then you wont have to worry about setting the last element to '\0'.
    NOTE: you have to iterate with "strlen(input_string) - 1" otherwise you will overwrite the needed '\0'
    EDIT:  As strlen excludes the '\0' in original string, then you have to make space for that by adding one to strlen return value so:
    char *output = calloc(strlen(input_string) + 1, sizeof(char));
    Last edited by Boogie (2013-04-05 09:46:12)

  • Alpha numeric sorting - Array

    Hello all,
      I am stuck in a situation where in my Array has values like this:
    ["01", "03", "XY", "07", "AB"].
    I need to have the array sorted where in the order should be
    ["AB", "XY", "01' , "03, "07"].
    The value "AB" and "XY" should always be the first two and then the numeric values needs to be sorted in asc order.
    Could some one help

    You probably need to break the array into two arrays first to separate the numeric strings from the alphabetic strings.  Sort them in their separate arrays an join them back together into a single array.

  • Array in deascending order

    Hello ...
    if I have the following array:
    static float [] in1 = { 0,0,0,80,0,0,100,0,0,90,0,0,70,60};
    first I want to sort it so I will have as the following array {100,90,80,70,60,0,0,0,0,0,0,0,0,0}
    Then I want an array of the positions of the first ordered values in the original array
    I mean that I must have the following
    {7,10,4,13,14,0,0,0,0,0}
    How can I
    1.sort the array (in deascending order)
    2.build an array of the positions of the first 10 ordered value (its position in the original array

    this is a simple way
    O(n^2)
    import java.util.*;
    public class AT {
    static float [] in1 = { 0,0,0,80,0,0,100,0,0,90,0,0,70,60};
    public static void main(String [] arg) throws Exception {
    float [] a = (float[]) in1.clone();
    int [] pos = new int [a.length];
    Arrays.sort(a);
    for(int j=0; j<a.length/2; j++) {
    float tmp = a[j];
    a[j]=a[a.length-(j+1)];
    a[a.length-(j+1)]=tmp;
    for(int j=0; j<a.length; j++) {
    while(pos[j]<in1.length && in1[pos[j]]!=a[j])
    pos[j]++;
    System.out.println(a[j]+" "+pos[j]);
    }

  • Sun C++ std::sort coredump during sorting array of long values

    Hello,
    I got core dump during execution following test program on both Solaris 9 (compile by CC: Sun C++ 5.5 Patch 113817-19 2006/10/13) and Solaris 10 platforms (compile by CC: Sun C++ 5.9 SunOS_sparc Patch 124863-01 2007/07/25).
    Core is dumped during sorting array of about 120k elements of unsigned long types using STL std:sort. The input data is available at link: [file.txt|http://www.savefile.com/files/1924004]
    When I change sorting methods to std::stable_sort program works fine.
    The funny thing is that when I change order of last two values of input data (swap), sorting is successful with std::sort.
    Can anyone tell me if it is Sun C++ compiler bug ?Can I use std::stable_sort method safely?
    Below code:
    #include <iostream.h>
    #include <fstream.h>
    #include <set>
    #include <string>
    int main( int argc, char** argv )
      char readStr[256];
      ifstream file;
      unsigned long *l;
      int i=0;
      l = new unsigned long[119016];
      if (l ==0)
        cout << "Error in allocate memory";
        return -1;
      file.open("file.txt");
      if (!file)
        cout << "Error in openening file";
        return -1;
      while(file.getline(readStr, 256,'\n'))
        cout << readStr<<endl;
        l= atol(readStr);
    cout << l[i]<<endl;
    i++;
    std::sort(l,l+119016); //core dump here!!!
    for (i=0;i<119016;i++)
    cout <<l[i]<<endl;
    file.close();
    delete [] l;
    return( 0 );
    Greetings
    Robert                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    You have run into bug 6588033 "std::sort from libCstd loops", which is fixed in current patches.
    Get the current patches for Sun Studio and also the current patch for the C++ runtime libraries (SUNWlibC patch).
    You can find them here:
    [http://developers.sun.com/sunstudio/downloads/patches/index.jsp]
    Sun C++ 5.5 probably does not have the fix, since it is quite old and falling out of support.
    C++ 5.9 does have the fix.

  • Sorting array double or int value and keeping the associated identifier.

    Hi,
    How would I sort an array which contains a double or int value (I know how to do that) but I also want to keep the unique identifier which is associated to array element after the array has been sorted:
    example:
    identifier: 15STH7425042735
    double: 742500.000
    Thanks,
    John J. Mitchell

    Please define an it in form of entity first and then think of operating on structured data.
    a better approach here would be please create an instances of appropriate structured data arrange them in form of a list and then apply specified logic on them
    here is an example which you might think of implementing it and would more appropriate as per your stated requirements.
    public class SampleBean implements Serializable{
       private String uniqueIdentifier = new String();
       private double appValue = 0.0;
       public void setUniqueIdentifier(String uniqueIdentifier){
           this.uniqueIdentifier = uniqueIdentifier;
       public String getUniqueIdentifier(){
          return this.uniqueIdentifier;
       public void setAppValue(double appValue){
              this.appValue = appValue;
       public double getAppValue(){
            return this.appValue;
    }Sample Comparators:
    Comparator comparator4AppValue = new Comparator(){
          public int compare(Object obj1,Object obj2){
                  return Double.compare(((SampleBean)obj1).getAppValue(),((SampleBean)obj2).getAppValue());
    Comparator comparator4UniqueIdentifier = new Comparator(){
          public int compare(Object obj1,Object obj2){
                  return ((SampleBean)obj1).getUniqueIdentifier().compareTo( ((SampleBean)obj2).getUniqueIdentifier());
    };Assuming that you have acquired an Array or List 'N' Elements of SampleBean with appropriate values.
    the belows is the method of how to sort specified Array/List
    In case of array
    SampleBean sb[] = this.getSampleBeansArray();
    // in order to sort using double value inside SampleBean array.
    Arrays.sort(sb,comparator4AppValue);
    // in order to sort using unique Identifier value inside SampleBean array.
    Arrays.sort(sb,comparator4UniqueIdentifier);In case of a list
    List sb = this.getSampleBeansList();
    // in order to sort using double value inside SampleBean array.
    Collections.sort(sb,comparator4AppValue);
    // in order to sort using unique Identifier value inside SampleBean array.
    Collections.sort(sb,comparator4UniqueIdentifier);Hope this might give you some idea of how to go about.:)
    REGARDS,
    RaHuL

  • Index of sorted array

    I have a unsorted array as follows:
    array_index = {0 1 2 3 4 5 6 7 8}
    array = {1 2 4 3 4 3 4 2 1}
    I would like to get the previous index of sorted array as follows:
    old_index = {2 4 6 3 5 1 7 0 8}
    arrray.sort doesn't return the index the previous index, please help me.

    You can do that using by creating an array containing the numbers 0 to n in increasing order and sorting that using a comparator that actually compares the content of the original array at the indices provided to it instead of the values themselves.
    But why would you need that? Could you describe your requirement in a broader scope?

  • How To: Sort Numbers in Ascending Order in a Generated List

    Greetings! How do I set up a Generated List of Paragraphs so that it sorts in true ascending order? What I want is:
    1.1
    1.2
    1.3
    1.4
    1.5
    1.6
    1.7
    1.8
    1.9
    1.10
    I have tried every trick I can think of with the sort order listed on the reference page. But all I can get is something that sorts by individual number (ignoring the numeric value) like:
    1.1
    1.10
    1.11
    1.2
    1.20
    1.21
    1.3
    Any help is much appreciated!

    Hello there, Michael! Thanks so much for looking at my post! Alas, the LOP will not work. I should have explained more, but it was so complicated I thought folks would give up reading.
    Here's the best I can render it without getting permission to share a good example document. I do not blame anyone if it's too cumbersome or convoluted to wade through...
    This is a requirements document which has sort of a "legal" tinge to it--as the document evolves we must maintain traceability for individual requirements. This means, for example:
    Version 1 - I have requirements 1 and 2.
    Version 2 - I need to add a new requirement, which should appear before requirement 1 in the document. Even though it comes before requirement 1 in the document, numerically it will be requirement 3 and requirement 1 will remain requirement 1.
    Version 3 - I need to remove requirement 2. Even though I now have only 2 requirements, their numbers will not change (they remain requirements 1 and 3, appearing in reverse order).
    Version 4 - I need to move requirement 3 to be after requirement 1. Again, the requirements keep their original number, even though their position has changed and there is no longer a "requirement 2" number in use.
    Originally, I told the team (I'm doing this for a different dept), that they would have to hand-number requirements, which they did for a while. But that was getting very cumbersome, and the scenarios above are limited to one or two occurrences per document. So I created an auto-number sequence for them to use in the initial version and added a little smoke-and-mirrors work process to take care of changes in later versions. The last bit of chicanery I cannot get to work is the index...
    Even if there are no changes to the requirements after the initial version, the index still does not sort in ascending numeric order. It was working with the hand-numbered requirements because they were using leading zeros. But without being able to include leading zeros in the auto-numbering formats (I tried the "use a zero as a tab leader" solution and like to have thrown my new monitor out of the window), I cannot find a solution.
    Or rather, I think the solution is "you have to hand-number requirements".
    For anyone who has made it this far, I truly appreciate your time and patience!
    SFT

  • Sort field in maintenance order

    Hello;
    I want to make sort field in maintenance order as a mandatory field. But if I make it as a mandatory field, system still allows me to save the order as long as I have not clicked 'Location' tab. So there is no positive control over this field. May I know, how do I achieve this? I have even tried to put order type as the influencing field but it does not help.
    Points assured.
    Regards
    Hemant

    Hello Hemant,
    access to the SAP service marketplace via www.service.sap.com to create an OSS message. Choose link "product errors". Therefore you need an OSS user and you have to be authorized to create OSS messages.
    To create an user-exit, you have to go to transaction CMOD. There you have to create a project and assign the enhancement you want to use (I'm not really sure, but I think IWO10009 is the correct one in your case - you can search the user-exits via transaction SMOD - search for IWO*).
    After this you have to implement your coding and then you have to activate the project.
    The implementation of the user-exit should be done by an ABAP developer.
    By the way - I've had a look at the OSS. There's note 768576.
    Reason and Prerequisites
    The problem is caused by a missing function.
    Influences set via field selection will only become effective if a screen with the corresponding fields is processed. You must also refer to the documentation defined in the corresponding Customizing area. For the location & account assignment data, no additional check is (such as with the general order header data) is realised during the saving.
    Prerequisite
    Via field selection you declared fields of the location & account assignment data as mandatory field, and no screen that contains these fields was passed.
    Solution
    By means of the example code, you must implement a corresponding mandatory field check via customer enhancement IWO10009 at the time of the order backup.
    1. Create subroutine Z_IWO10009_GET_DATA_FOR_FAW in program SAPMILA0. It would be best if you create an own include ZMILA0F1 for this so that you will not have any unnecessary expenditure for future Support Packages (via Transaction SE80).
    FORM Z_IWO10009_GET_DATA_FOR_FAW.
      CALL FUNCTION 'CO_IH_GET_HEADER'
           IMPORTING
                     CAUFVD_IMP = CAUFVD.
      CALL FUNCTION 'CO_IH_GET_ILOA'
           EXPORTING
                     CAUFVD_IMP = CAUFVD
           IMPORTING
                    ILOA_WA    = ILOA.
    ENDFORM.                    "Z_IWO10009_GET_DATA_FOR_FAW
    2. Create the following source code in customer enhancement IWO10009:
    STATICS: XTFAWF LIKE TFAWF OCCURS 0 WITH HEADER LINE.
    tables:  tfawf.
    DATA: wa_screen    LIKE screen.
    FIELD-SYMBOLS:  'A'.
      perform Z_IWO10009_GET_DATA_FOR_FAW(SAPMILA0).
      if xtfawf[] is initial.
        SELECT * FROM TFAWF INTO TABLE XTFAWF
                 WHERE PROG = 'SAPMILA0'.
      endif.
      LOOP AT XTFAWF WHERE CUST_M = 'X'.
        CALL FUNCTION 'FIELD_SELECTION_INFLUENCE'
             EXPORTING
                  dynprogruppe = '7   '
                  mode        = 'C'
                  modulpool    = 'SAPMILA0'
                  fieldname    =  XTFAWF-MFELD
             IMPORTING
                  input        = wa_screen-input
                  output      = wa_screen-output
                  active      = wa_screen-active
                  required    = wa_screen-required
                  intensified  = wa_screen-intensified
                  invisible    = wa_screen-invisible
             EXCEPTIONS
                  OTHERS      = 1.
        if wa_screen-required = 1.
          clear lv_mfeld.
          lv_mfeld = 'CAUFVD_IMP-'.
          case XTFAWF-MFELD.
            when 'ILOA-AUFNR'.
              lv_mfeld+11 = 'IAUFNR'.
            when 'ILOA-KOKRS'.
              lv_mfeld+11 = 'IKOKRS'.
            when 'ILOA-BUKRS'.
              lv_mfeld+11 = 'IBUKRS'.
            when 'ILOA-GSBER'.
              lv_mfeld+11 = 'IGSBER'.
            when 'RILA0-ARBPL'.
              lv_mfeld11 = xtfawf-mfeld6.
            when others.
              lv_mfeld11 = xtfawf-mfeld5.
          endcase.
          ASSIGN (lv_mfeld) TO  IS INITIAL.
            Message E461(IW)
            with 'Mussfelder der Standort&Kontierungsdaten füllen'.
            EXIT.
          ENDIF.
        endif.
      endloop.
    endif.
    3. Activate the changes
    Correspondingly you can implement this solution also for the order release, for example, via customer enhancement IWO10002.
    Bear in mind that this is a source code proposal. It might be useful or necessary to adjust this source code to special applications.
    Best regards
    Stephan
    Edited by: Stephan Theis on Jan 5, 2008 11:20 AM

  • How to sort data in descending order when user clicks on the column heading

    Hi
    I have a report called "Top customers", which shows the top customers for a specific product line. It displays the customer name and one column with the total amount spent in the period for each product line. By default, the leftmost product line is sorted in descending order.
    If the user wants to know who are the top customers for another product line, they simply click on the column heading to sort the list by that column.
    The problem is that when you click for the first time on a sortable column heading, Apex sorts it in ascending order; you need to click on the same column heading again to sort in descending order.
    Is it possible to change this behaviour and sort the data in descending order in the first click? So the users don't have to click twice...
    Thanks
    Luis
    PS: Apex 3 running on Oracle 10.2.0

    Luis,
    See: Can I "catch" a click on a sortable column header of a report?
    Take a look at Anton Nielsen's answer with regards to hiding a column and displaying its value instead of the sortable column.
    Asumming the following simple report query:
    select product,sales
    from <table>
    Change that into:
    select product
    ,sales*-1 as reverse_sales -- Select this one as an extra column
    ,sales -- Hide this column
    from <table>
    In your report column attributes (of column reverse_sales), html-expression, type #sales#. It then displays the normal sales. However apex will generate a 'order by 2 asc' for the first time. The '2' will refer to the sales*-1 value: sorting it asc, is the same as sorting sales descending...
    Toon

  • Automatic Payment run without Bank Ranking order

    Dear Experts,
    I want to excute the Automatic Payment run without assigning the Bank ranking order in OBVCU, means that when I run the APP it should pay from the House Bank entered in the Vendor master data under the Automatic payment transactions. In my case House Bank is the Bank Account.
    Details of the data in Vendor master are;
    Payment methods: C
    House Bank:   Given
    Details of BVCU are;
    Ranking Order: Not entered
    Bank Accounts: Entered
    Available Amounts: Entered
    When I execute the APP, it puts the payment in exception list in the proposal.
    Any help will be much appreciated, thanks.

    Hi
    As per my understaning there will be no impact . Vendor Master data always have priority.
    so maintain ranking order and vendor master also woth aprropriate House Bank and Account ID
    Thanks
    Manoj J

  • FI - Several bank ranking order definition

    Hello,
    In bank customizing (FBZP-Bank determination), I need to define three banks for the same payment method and currency.
             Example :
         Pmt method     Currency     Rank. order     House bank
         T     EUR     1     BNP01
         T     EUR     1     SGE01
         T     EUR     1     FOR01
    In standard, the key is the concatenation Pmt method & Currency & Ranking order. SAP also controls entries in this table and you can not define several banks for only one payment method and one currency.
    Is there a mean - an OSS note, ... - to uncheck this control or to define this ranking order ?
    Thanks in advance for your feedback.

    Hi,
    SAPNET note 81153 describes how to set bank ranking order as "ongoing transaction".
    This means, a change in the ranking order can be done in the P-client and there is no need to transport each change to all systems.
    So you can easily change the ranking order for the same payment method/currency BEFORE each payment run if needed.
    best regards, Christian

Maybe you are looking for

  • Clearing Open Items In G/L Account

    FI Gurus, I need to clear some entries in a G/L account, the account does not equal to zero, as it is a clearing account use for accruals, got goods receipt. However I have all items open, I need to get a detail of only items that are truly open. Doe

  • Prepared Statement with "INTERVAL ? DAY" clause

    Hi, I am having problems when using a INTERVAL ? DAY clause in a preparedStatement in Oracle 8i with the classes12.zip jdbc driver. The code following code: String sql1 = "select from my_table where created_ts > SYSDATE - INTERVAL '10' DAY"; String s

  • Firefox shows images too dark; Chromium does not

    I'm running an Arch installation on my laptop, which has an Nvidia GT425M gpu with the nvidia proprietary drivers installed. Firefox renders images noticeably darker than they should be, but Chromium does not have such an issue. I have disabled hardw

  • Peoplesoft FSCM installation on windows server 2008 64 bit platform?

    Hello everyone, I have planned to install peoplesoft fscm software, as i am new and I do not have any peoplesoft database knowledge.I have followed the installation from the link Installation - PeopleSoft Wiki According to the steps I have followed u

  • Redo log moved

    Hello everyone, We have Oracle 10g running on Redhat r3, and a database on a partition. As this partition got full I foolly tried to make some space by moving the redolog files (we have 3 groups with 1 file each) to another partition. The system was