How to define "leading" random number in Infoset fpr parallel processing

Hello,
in Bankanalyzer we use an Infoset which consists of a selection across 4 ODS tables to gather data.
No matter which PACKNO fields we check or uncheck in the infoset definition screen (TA RSISET), the parallel frameworks always selects the same PACKNO field from one ODS table.
Unfortunately, the table that is selected by the framework is not suitable, because our
"leading" ODS table which holds most of our selection criteria is another one.
How to "convince" the parallel framework to select our leading table for the specification
of the PACKNO in addition (this would be times 20 faster due to better select options).
We even tried to assign "alternate characteristics" to the packnos we do not liek to use,
but it seems that note 999101 just fixes this for non-system-fields.
But for the random number a diffrent form routine is used in /BA1/LF3_OBJ_INDEX_READF01
fill_range_random instead of fill_range.
Has anyone managed to assign the PACKNO of his choice to the infoset selection?
How?
Thanks in advance
Volker

Well, it is a bit more complicated
ODS one, that the parallel framework selects for being the one to deliver the PACKNO
is about equal in size (~120GB each) to ODS two which has two significant field which cuts down the
amount of data to be retreived.
Currently we execute the generated SQL in the best possible manner (by faking some stats )
The problem is, that I'd like to have a Statement that has the PACKNO in the very same table.
PACKNO is a generated random number esp. to be used for parallel processing.
The job starts about 100 slaves
Each slave gets a packet to be processed from the framework, which is internaly represented
by a BETWEEN clause on this PACKNO. This is joined against ODS2 and then the selective fields
can be compared resultin in 90% of the already fetched rowes can be discarded.
Basicly it goes like
select ...
from
  ods1 T_00,
  ods2 T_01,
  ods3 T_02,
  ods4 T_03
where
... some key equivalence join-conditions ...
AND  T_00.PACKNO BETWEEN '000000' and '000050' -- very selective on T_00
AND  T_01.TYPE = '202'  -- selective Value 10% on second table
I'd trying to change this to
AND  T_01.PACKNO BETWEEN '000000' and '000050'
AND  T_01.TYPE = '202'  -- selective Value 10%
so I can use a combined Index on T_01 (TYPE;PACKNO)
This would be times 10 more selective on the driving table and due to the fact,
that T_00 would be joined for just the rows I need, about a calculated time 20-30 faster.
It really boosts when I do this in sqlplus
Hope this clearyfies a bit.
Problem is, that I can not change the code either for doing the
build of the packets or the one that executes the application.
I need to change the Inofset, so that the framework decides to build
proper SQL with T_01.PACKNO instead of T_00.PACKNO.
Thanks a lot
Volker

Similar Messages

  • How to get a random number in a range?

    as title
    how to get a random number in a range?
    like 2000~3000 thks :)

    int between 10 and 20 with the method Math.random():
    public class Rnd
         // Test
         public static void main(String[] args)
             int start=10, end = 30;
             for (int i = 0; i < 10; i++)
                int n = (int)(start + Math.random() * (end-start));
                System.out.println(n);
    }best regards.

  • How to generate a random number with at least 6 digits?

    Hi all,
    All is in the question. :-)
    I would like to generate a random number but the function "random
    number" in Labview isn't accurate enough.
    Do you know an algorithm to generate a random number of 6 or more
    digit?
    Thanks,
    PF

    Hi PF,
    It's simple. Use 2 random number functions in the same process. Now you
    should have 2 distinct random numbers that have the same accuracy. Let's say
    LV gives accuracy up to the thousandth (0.XXX), now if you divide one number
    by 1000 and then add to the other number you should then have something like
    0.XXXXXX. Actually, LV random number function can give up to about 17 digits
    (decimal). If you are looking for more digits (>17 digits), the idea above
    may not work, then the last thing you may want try is to generate two or
    three random numbers then convert all these decimal numbers to fractional
    strings chop off the 0 and dot then concatinate them together. After all
    it's still a random number. How many digits do you want to get? Make sure
    the indicators acce
    pt that many digits?
    Good luck
    Louis.
    P-F wrote in message
    news:[email protected]..
    > Hi all,
    >
    > All is in the question. :-)
    >
    > I would like to generate a random number but the function "random
    > number" in Labview isn't accurate enough.
    >
    > Do you know an algorithm to generate a random number of 6 or more
    > digit?
    >
    > Thanks,
    >
    > PF

  • How to generate a random number within a specified tolerance and control that tolerance.

    I am trying to simulate data without using a DAQ device by using a random number generator and I want to be able to control the "range" of the random number generated though.  On the front pannel, the user would be able to input a nominal number, and the random number generator would generate numbers within plus or minus .003 of that nominal number.  The data would then be plotted on a graph.  Anyone know how to do this?  Or if it's even possible?
    Just for information sake, the random number is supposed to look like thickness measurements, that's why I want to simulate plus and minus .003 because the data could be thinner or thicker than the nominal.  
    Thanks in advance!!
    Solved!
    Go to Solution.

    You can create a random number with a gaussian probability profile using two equal distributed (0...1) random numbers and applying the Box Muller transform.
    I wrote one many years ago, her it is. (LabVIEW 8.0). 
    Message Edited by altenbach on 04-12-2010 09:13 PM
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    BoxMuller.vi ‏10 KB

  • How to use a random number equal another number. (with my source code)

    hi, i'm having trouble with this assignment.
    3. Determine how many times a die must be rolled in order to
    win a prize. (This represents one trial.) Print this value to a
    text file.
    4. Conduct at least 1,000 trials.
    5. Read the data back in from all of the trials.
    6. Calculate the average number of times a die must be rolled in order to win a prize.
    7. Print the result to the screen
    This is what I have so far.
    But I get a "int cannot be dereferenced" error
    * Write a description of class BottleCapPrize here.
    * @author (your name)
    * @version (a version number or a date)
    import java.io.IOException;
    import java.io.PrintWriter;
    import java.util.Scanner;
    import java.util.Random;
    import java.io.File;
    public class BottleCapPrize
    public static void main (String [ ] args) throws IOException
    PrintWriter outFile = new PrintWriter(new File("bah.txt"));
    Random randomGenerator = new Random();
    int random = randomGenerator.nextInt(5);
    int count = 0;
    for (int loop = 1; loop <= 1000; loop++)
    if(random.equals("3"))
    outFile.println("Congratulations, both pairs matched.");
    count++;
    outFile.close ( );
    }

    And the random generator can only choose a 1 or 2 or 3 or 4 or 5. This is then randomly chosen 1000 times like 400 2s and 200 5s for example.I think you have still to appreciate that the task is not to roll a dice 1000 times and see how many of each number you get.
    Tackle it one step at a time:
    3. A - Determine how many times a die must be rolled in order to win a prize. (This represents one trial.)
    B - Print this value to a text file.
    Even the first part of the problem can be broken down into two parts. I strongly suggest to get step 3A working correctly before you move any further. Notice that this step does not involve 1000 rolls of the dice. Rather it asks you to roll the dice as many times as needed until you get a three. Start there: write a method that does no more than report the number of times it had to roll the dice in order to get a three.
    import java.util.Random;
    public class BottleCapPrize
        public static void main (String [ ] args) throws IOException
            Random randomGenerator = new Random();
            int count = 0;
             * Your code here.
             * At the end of it count should be equal to the number of
             * dice rolls it took to get a three.
            System.out.println("It took " + count + "dice rolls to get a three");
    }Once you have this method working correctly - that is you run it lots of times and it agrees with what you find experimentally with an actual dice - then you can move on to saving this result to a file (step 3B). The steps of the assignment provide a framework that makes sense - follow them one at a time.
    but only thing is that the random number is all a certain number.That's a fairly major defect in a randomly generated number ;). Read the API documentation for the [nextInt(n)|http://java.sun.com/javase/6/docs/api/java/util/Random.html#nextInt(int)] method. It should be clear that this is the method that randomly generates a number. So if you want lots of randomly generated numbers (rather than one randomly generated number lots of times) then you have to call this method lots of times. A call to nextInt(n) is the programming equivalent to rolling a dice.

  • How to get a Random number from a list

    Dear Experts,
    I have a list in which I have 24 employee number, and from this I have to select 4 employees number Randomly,
    So please suggest how can I achieve this.
    Warm Regards
    Upendra Agrawal

    Hello
    do 4 times.
    CALL FUNCTION 'QF05_RANDOM_INTEGER'
         EXPORTING RAN_INT_MAX = 24
                   RAN_INT_MIN = 1
         IMPORTING RAN_INT     = ind.
    read table itab index ind.
    " do anything here
    enddo.

  • How to define field of number type in ecs file

    Hi B2B Experts,
    I need some help. In the detail record of my ecs file, i need to define a filed as number. Basically the data coming in the data file is a dollar amount. It is a number type.
    The number length maximum length is 6, The spec file says that field should be like below....
    9(04)V99
    The data came in the text file as 013100, so according to the business it is like 131.00 but as i defined the field as string, it is taking it as 13100. I want to define that field as a number type and it should consider keeping that number with two digits precision i.e.,decimal part. Please help me in this regard.
    I believe i should define the type as number and the i dont know what to keep for the format ?
    Thanks,
    N

    Naresh,
    What are your requirements? If I understood it correctly, you will be getting data without decimal and you want B2B to add decimal accordingly. If this is the case then I don't think it should be done at B2B rather this should be performed at middleware.
    Please let us know your exact requirement if I interpreted it incorrectly.
    Regards,
    Anuj

  • How to make the random number not repeat ?

    public class randomla {
    public static void main(String[] args) {
    double a = 0.0;
    for(double i=0 ; i<5 ; i++){
    a = Math.random();
    System.out.println((int)(a*6));
    }

    Are you saying that you want to print 5 random unique numbers - 12, 5, 459, 2, 42 as opposed to 12, 5, 459, 12, 42?
    If so you have two options:
    1. Place the generated number in array or collection only if it is not already present and then when you have 5 numbers print them out (or you could print them out when generated).
    2. Place all possible numbers into a collection, shuffle them and then print out the first five numbers.

  • How to add a random number to name when upload image

    I always rename the file when upload, the rule was {POST.rename}.{KT_EXT}
    <br />and I set a hidden field in the form with php code
    <br />
    <form>
    <input type="hidden" value="<?php echo date('YmdHis').rand(1000,9999);?>" />, does anyone have good suggestion to rename file as unique number.</form>

    don't include the id column in the import process, and create a before insert trigger on the table to populate the id with a sequence

  • How to know the port number to which the server process is listening

    I have created oracle 10g Release 1 database(orcl) in Windows Xp Professional edition through DBCA . I also created one more database(sample) manually .
    The ORCL server process listens to port no 1521 and
    SAMPLE server process listens to port no 1522
    Once I start the OracleServiceORCL (Service for orcl) from services.msc and check the listener status it displays
    Service "orcl" has 1 instance(s).
    Instance "orcl", status READY, has 1 handler(s) for this service...
    But when I start OracleServiceSAMPLE (Service for sample) from services.exe and check the listener status there is no change . Only when i start the instance the dynamic registration takes place with port no 1521 .
    There is no entry for listener parameter in init.ora file . My question is how is the service ORCL able to get itself registered with the listener even before the instance is up ?
    And how can i know which port no is linked with which server process?
    Also if we provide a different port number(other than 1521 say 1522) in tnsnames.ora for a service and consider the listener is listening to both 1521 and 1522 . Now consider that port number 1521 is free . In this case to which port number will the service be listening to ?
    The listener file looks like this
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = D:\oracle\product\10.1.0\Db_2)
    (PROGRAM = extproc)
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = irobo)(PORT = 1521))
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = irobo)(PORT = 1522))
    The tnsnames file has the following entry
    ORCL =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = irobo)(PORT = 1522))
    (CONNECT_DATA =
    (SERVICE_NAME = ORCL)
    SAMPLE =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = irobo)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = ORCL)
    EXTPROC_CONNECTION_DATA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC))
    (CONNECT_DATA =
    (SID = PLSExtProc)
    (PRESENTATION = RO)
    )

    Service "orcl" has 1 instance(s).
    Instance "orcl", status READY, has 1 handler(s) for this service...[coe]
    The status tells you the instance is up. Starting the service often means the instance gets started also, but whatever "often" means, "READY" means "The instance is up, running and taking callers".
    Your statement that "ORCL [is] able to get itself registered with the listener even before the instance is up" is therefore factually incorrect: you started the service, that started the instance. The instance is up and running. Instances that aren't running don't exist. Things which don't exist don't register themselves. Things which HAVE registered themselves therefore do exist.. and if they say they are "ready", it means they are completely, 100% up and running and behaving quite normally.
    I have not set LOCAL_LISTENER initialization parameter.How is this happening ?
    You only need to set LOCAL_LISTENER if (a) you're not using TCP/IP, (b) you're not using port 1521. Otherwise, PMON is hard-coded to register itself with listeners running on port 1521 and using TCP/IP and you don't need to set LOCAL_LISTENER to achieve that.
    Server Processes do not listen. Listeners do (there's a clue in their name). Listeners receive a call to connect to an instance, they spawn a server process to handle your call, and then they connect you to that server process (or send a message back to you telling you how to contact the server process). Each server process of course receives communications from its dedicated client on a specific port (usually in the 50000+ range), and that port is chosen randomly by the listener when it's spawning it. It's a bit blurry and vague to call that server process port a port on which server processes "listen", however.
    If you're talking dedicated server, each client causes one new server process to be spawned, and there is a one-to-one correspondence between server processes and the port that server process happens to accept client communications on.
    If you're going to ask a listener to do listening duty on multiple ports, I'd first question your need to do that and I'd then point out that unless your client tnsnames.ora knows to talk on the second or subsequent port numbers, the listener is never actually going to make use of that second port.
    In either case, the port the listener listens on has nothing whatsoever to do with the port your client-to-server-process communication ends up taking place on.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • How I get random number between 1 and int number ?

    how can I get random number between 1 and int number
    like between 1 and 10 etc.
    10x

    Use the nextFloat() method of the Random class, this returns a random number between 0.0 and 1.0. To get and integer range from that multiply the return value of that method call by the integer range you need (in this case 10), and add the starting number you want returned in the range (1 in this case). The code below works for numbers 1-10.
    Random r = new Random();
    int x = (int)(r.nextFloat()*10) +1;

  • Random number generation in numbers

    I cannot find out how to create a random number colum. It ios very easy on Excell ,but my attempts on numbers have been frustrating. I look at the instructions, but when I click on formulas it doesnt show the whole list.

    Clark,
    You might find it convenient to have Formulas and Functions Help open as you work on your document. It has a little different layout than the Function Browser.
    Jerry

  • Random Number between 10 and 30

    I'm just curious how to generate a random number between 10 and 30. I know I use the Math.Random function, but I'm not certain how to do it when the starting number is >1 (i.e. 1 to 30). Thanks.

    Random Number in an Interval:
    ((int) (randomGeneratedNumber * difference)) + startIndex + 1
    * randomGeneratedNumber - Number >= 0 and <1
    * difference: To generate between 10 and 30, (30 -10 = 20)
    * startIndex: In this example, 10
    * +1: Neccesary adjustment.
    Example:
    ((int)(randomGeneratedNumber * 20)) + 10 + 1
    PD. Int cast it's to generate int numbers, so it's optional.

  • Random number in forms developer

    Hi, dear all:
    How can i produce random number in forms ?
    regards.
    kevin

    Actually I tried several combinations but the (b-a )+a didnt work for me.
    It always gives me 4000000000 is out of range. Without the 32768 also its that way.
    int temp = (int)((((4000000000-1000000000)+1000000000) *(Math.random() * 32768));Heres the entire loop.......size is the size of the foo Array I want to fill
              for (int i = 0; i < size; i++)
    int temp = (int)((((4000000000-1000000000)+1000000000) *(Math.random() * 32768)));
                  //int temp = (int)Math.random()*32768;//Make random number same as c++
                  if((temp < 1000000000)||(temp > 4000000000))
                       i--;
                  else
                       foo[i] = temp;
                        System.out.println("Original Array: "+foo);

  • Images loaded with a random number

    Hi All,
    I have made a flash movie as seen at
    http://www.coffeemamma.com.au
    and would
    like to change the following:
    I'd like to generate three random numbers from 1 to 5
    inclusive but I want
    to ensure that each number is different - e.g. 2, 4, 1 (not
    2, 4, 2). I know
    how to generate ONE random number, but I'm stuck on comparing
    them to see
    whether they are the same (and if they are, then generate new
    numbers until
    they are unique).
    With the three numbers I would like to load images based on
    those numbers -
    e.g. '_image_2.jpg' then '_image_4.jpg' then '_image_1.jpg'.
    This part is
    fine IF I can generate the numbers.
    I'd also like to have the images come to the front when they
    are hovered
    over with the mouse and then to go 'back' to their original
    position when
    the mouse moves away. This I'm completely stuck on.
    I'd also like to be able to put the newly loaded images into
    certain
    positions (as per the example) rather than only loaded to
    (0,0) coordinates.
    I also want to be able to have the images masked as they come
    in (as per the
    example) in order to avoid white corners on the top images.
    I also have a page as per
    http://www.wasabi.org.au/wodonga.shtml
    which has
    some of the functions I want to use, but I can't seem to get
    some of the
    functions working in my new movie...
    Many thanks,
    Bruce

    I recommend to read      at least the first two "introduction articles" from sun's Java >Card homepage: http://developers.sun.com/techtopics/mobility/javacard/articles/
    Thanks a lot ... really interesting. I learnt already alot with that !
    I am sorry but the code you posted is J2SE-code, not JavaCard code. The JavaCard >environment is very restricted:
    No Integer (most cards don't even support the simple "int") and no String class.Oops :) ... i knew something was wrong hi hi
    This is my new code, it seems to work:
        /* SEND_CHALLENGE */
        private void sendChallenge(APDU apdu){
        byte[] apduBuffer = apdu.getBuffer();
        RandomData random = RandomData.getInstance(RandomData.ALG_SECURE_RANDOM);
        random.setSeed(randomArray,(short)0,(short)32);
        random.generateData(randomArray,(short)0, (short)32);
        Util.arrayCopy(randomArray,(short)0,apduBuffer,(short)0,(short)32);
        apdu.setOutgoingAndSend((short)0, (short)32);
        }Thanks a lot
    I'am going to be back soon for some more questions i think !

Maybe you are looking for

  • Error in import-check of ESS SC in dev system CMS

    Hi all, Im facing some error msgs while performing an import-check of the ESS SC in Dev system of cms. i had no probs in importing other scs for sap-jtech, pcui_gp and others. i downladed ESS 600 SP 10 frm servicemktplace. however the file downloads

  • Isync and the nokia 3109 classic

    Greetings, I would very much like to synchronise my nokia 3109 classis with ical adress book itunes unfortunately is does not seem to be supported by iSync. does anybody know a work around, or, when support is to be expected? I would be very happy wi

  • Background job interaction

    hi , is it possible to user interaction in background job . my requirement is after execution of program select some row and send the mail . and it should be daily basis . so if i schedule the program in background . how can user interact with progra

  • Link to user-profile

    Hi, I want to create a static user list. From this list I want to be able to view the user profiles. When creating the user list as a link list, I can't "decrypt" the link to the user profile. When using a system-user list (like user-list reaching by

  • CRM2007 Factsheet - updating custom fields at the same time

    I need to change our Factsheet in CRM2007. So far, I've managed to get a new view on the Factsheet and have managed to hard-code some data into it from the Get_* method for the field in the CN** class. However, my requirement is to grab some data fro