GUID generation issue, SYSUUID always returns the same value.

Hi,
I'm using "SELECT SYSUUID FROM DUMMY" to get a guid value but it always return the same value.
What should I do to get a unique value each time I execute the query above.
Thanks.

I thought I had the same problem and I found that if you generate multiple UUID's in the same SQL, it they will be the same.  If you make multiple calls, you should get multiple UUID's. 
Try this:
SELECT SYSUUID as UUID1 FROM DUMMY;
SELECT SYSUUID as UUID2 FROM DUMMY;
I get the following results:
UUID1 = 538632FD7EA20426E10000000A3F10A9
UUID2 = 538632FE7EA20426E10000000A3F10A9
Notice that the strings look almost identical, but the 8th character on UUID1 is a D and the 8th on UUID2 is a E.
Jim

Similar Messages

  • Context.lookup in a Servlet always returns the same Stateful Session Bean

    Hi,
    I am working on an application in which a Servlet should obtain one StateFul Session Bean per client. I read in EJB 3.0 in Action that to do so I should use a jndi lookup and save the result of the lookup in an HttpSession. This works fine for me when I have a single client.
    My issue is that when I have several clients, context.lookup returns the same SFSB for each client. This means that I end up having a single SFSB for the whole application. I've been browsing the web for a while now trying to find a solution but haven't had any luck yet.
    The code I use to obtain and save the SFSB is the following:
    HttpSession session = request.getSession(true);
    DFMServiceRemote service = (DFMServiceRemote) session.getAttribute("DFMService");
    if (null == service)
         service = (DFMServiceRemote) new InitialContext().lookup("DFMService");
         session.setAttribute("DFMService", service);
    }Using different browser, I end up with different HttpSession but a single SFSB. The only workaround I found is to create the context with environment variables or properties. It then returns different SFSBs for different HttpSession. The workaround code is as below:
    Hashtable<String, String> env = new Hashtable<String, String>();
    env.put(Context.INITIAL_CONTEXT_FACTORY, "com.evermind.server.rmi.RMIInitialContextFactory");
    env.put(Context.SECURITY_PRINCIPAL, "oc4jadmin");
    env.put(Context.SECURITY_CREDENTIALS, "welcome");
    env.put(Context.PROVIDER_URL, "ormi://localhost:23791/DriverFatigue");
    service = (DFMServiceRemote) new InitialContext(env).lookup("DFMService");My question is the following. How can I get a different instance of an SFSB every time I execute context.lookup without specifying properties.
    Thanks in advance for any help,
    Matthieu Siggen

    I just did something similar in another project using JBoss instead of oc4j and didn't have any problem. I expect I missed a configuration file in oc4j or there is a conflict somewhere.

  • Does JNDI always return the same DataSource reference for a connection pool

    Hi,
    In my project, I have a class called DBConnect which has a method called
    getConnection(). This method returns a data base Connection object from the
    pool. I am doing this to avoid replicating code.
    Here, each time a database connection is required this method looks up for
    the pool using JNDI , gets the DataSource and then gets the data base
    connection.
    What I want to know is that, can I get this DataSource reference only once,
    store it in an instance variable and use the same value for getting the
    connections when ever needed. This wud reduce the overhead of making the
    lookup each time.
    but wud this lead to probs. is there a threat of having a stale reference.
    Or is there a better way to do this.
    Thanks,
    Manohar

    Hello,
    In our EJBs, we successfully cache the DataSource object as an instance
    variable. Since bean access is synchronized, the concurrency issue Jeff
    Wang mentioned is dealt with.
    Eron
    "Manohar" <[email protected]> wrote in message
    news:[email protected]..
    Hi,
    In my project, I have a class called DBConnect which has a method called
    getConnection(). This method returns a data base Connection object fromthe
    pool. I am doing this to avoid replicating code.
    Here, each time a database connection is required this method looks up for
    the pool using JNDI , gets the DataSource and then gets the data base
    connection.
    What I want to know is that, can I get this DataSource reference onlyonce,
    store it in an instance variable and use the same value for getting the
    connections when ever needed. This wud reduce the overhead of making the
    lookup each time.
    but wud this lead to probs. is there a threat of having a stalereference.
    >
    Or is there a better way to do this.
    Thanks,
    Manohar

  • Strange question,Help me, always got the same value

    Hi,
    I write a program, have following code:
    public class T{
    private int iNum=0;
    public T(){};
    public void do_a(){
    iNum++;
    System.out.println("---Num="+iNum);
    public void do_b(){
    System.out.println("---Show Num="+iNum);
    public static void main(String []args){
    T t=new T();
    do_a(); //ok, result is right, ---Num=1
    do_b(); //ok, result is right, ---Num=1
    when i use this class with other class, function do_a() is correct,
    but do_b() always show "---Show Num=0",
    why, i can't think it out, so strange,
    any advice is kind of you!

    Your problem is that you are not using the object you have created. The statement:
    T t = new T();Creates a new instance object of the type T. Having created this object I assume that you want to call the methods attached to this object. To do that you have to add at the beginning of any method call the name of the object and a dot eg.
    do_a();//This accesses the method from a static context
    t.do_a();//This will access the method and increment the variables contained within the instance tHowever even if you are accessing this object from a static context then the value iNum is still incremented. But you will need to add the keyword static to the method declarations of do_a() and do_b() so that they can be run from main().

  • Firefox always uses the same session id

    Hi,
    our company changes standard browser from IE6 to Firefox 3.5.10 .
    Now we have  great problems with with our ColdFusion application when running it inside Firefox ,because Firefox doesn't create new session id
    when working  in two tabs or two windows. It always uses the same cfid and cftoken.
    So it is not possible to work with two different sessions.
    IE6 always creates new session id when opening new window.
    Has somebody solved this problem? It is very urgent!!!
    regards
    Claudia

    I suspect that this is browser issue, not a server-side (CF) issue.  In order to support different cookies in different tabs you will probably need to try to find a Firefox extension to change how the browser uses cookies.
    This extension is advertised as doing what you need.  Note that I have never used this product.
    http://www.nektra.com/products/cookiepie-tab-firefox-extension

  • Sub Report in Table, always showing the same data

    I created a main report with data from a dataset. The DataSet has a column: @Region_ID. The Main Report is Page-Grouped by this @Region_ID and shows a tablix with some datarows foreach region. 
    I now want to include a subreport into the table and pass the parameter @region_ID to the subreport, which also calls a procedure including the passed @region_ID. I set the @region_ID-Parameter to "always refresh"
    I added a textbox on the subreport to display the values which has been passed to the subreport. 
    I now have a multipage report, with a page for every region. The subreport displays various @region_ids in the textbox, but the data for the subreport itsself, shows the same data on every page. It seems like it has called the procedure only once, with the
    first @region_id, and now displays this data on every page, allthough it does not match.
    Any suggestions what I did wrong?

    Hi tkrasinger,
    According to your description, you have the issues on displaying the parameter in subreport. It only shows the first value of the parameters. Right?
    In Reporting Services, when we execute a procedure with parameter, this procedure will only be executed one time. This is the reason why it shows the same value in your subreport.
    In this scenario, we can just right click on the textbox of region_id, go to
    Texobox Properties -> Action -> Go to report. Select the subreport, add the region_id as parameter in
    Use these parameters to run the Report. When you click on the textbox, the region_id will be passed to the subreport. So that the value will be displayed dynamically in the subreport. 
    Reference:
    Add a Subreport and Parameters (Report Builder and SSRS)
    If you have any question, please feel free to ask.
    Best Regards,
    Simon Hou

  • Always plays the same song

    When I want to listen to one of my play list (on shuffle or not) it always plays the same song over and over and does not go to the next song in the list.
    I tried re-initiating my ITouch but it has not solved the problem. I also downloadeded the 3.o version of Itunes and the new upgrade in case that was the problem. Still an issue.
    Any advice?

    you haven't got the 'repeat' button selected by accident have you? (sounds daft but people have done it before and not realised)
    tap the screen while music is playing to bring up these controls.
    under the time and scrubber bar on the left handside, see those arrows? if they are blue (tapped once) it will repeat the whole sequence of songs (an album, a playlist, etc.) tap it again a '1' will appear on them. this repeats the current thing playing. tap it again to remove these settings.
    the arrows on the right will be highlighted blue when it's set to shuffle.
    the arrows on the left highlighted when it's set to repeat.

  • Hello !! Because if I talk daily to the dame Person for FaceTime and two are always in the same place, once day face time no prolem speak for another day and I have to use skype for error appearing face time ? Thanks for your answers.

    Hello !! Because if I talk daily to the same Person for FaceTime and two are always in the same place, once day face time no prolem speak for another day and I have to use skype for error appearing face time ? Thanks for your answers.

    Using FaceTime http://support.apple.com/kb/ht4319
    Troubleshooting FaceTime http://support.apple.com/kb/TS3367
    The Complete Guide to FaceTime: Set-up, Use, and Troubleshooting Problems
    http://tinyurl.com/32drz3d
     Cheers, Tom

  • Firefox 2009 always loads the same flash on clipfish ?!

    Hi Arch boys & girls
    when i'm on clipfish.de, firefox always loads the same flash film. Even deleting cache/restarting FF -- when i click a flash film to play FF plays the same i've seen days ago ?????????
    Has someone an idea?
    ThanX in advance!!

    Hello,
    Many site issues can be caused by corrupt cookies or cache. In order to try to fix these problems, the first step is to clear both cookies and the cache.
    Note: ''This will temporarily log you out of all sites you're logged in to.''
    To clear cache and cookies do the following:
    #Go to Firefox > History > Clear recent history or (if no Firefox button is shown) go to Tools > Clear recent history.
    #Under "Time range to clear", select "Everything".
    #Now, click the arrow next to Details to toggle the Details list active.
    #From the details list, check ''Cache'' and ''Cookies'' and uncheck everything else.
    #Now click the ''Clear now'' button.
    Further information can be found in the [[Clear your cache, history and other personal information in Firefox]] article.
    Did this fix your problems? Please report back to us!
    Thank you.

  • Autofill always choosing the same songs ?

    Hi all,
    I'm the happy owner of a 2G iPod nano (first generation) that I was given a few weeks ago. I'm using it together with iTunes 9.0.1 on my mac, and I have a question about the autofill feature.
    Is it normal that autofill always chooses the same songs out of my library to fill the ipod with ? No matter what I do to those tracks (listen to them on the ipod, try do delete them in "manual" mode), they always come back when I sync with autofill. I do have quite a substantial amount of other tracks that I like as well, but it feels like autofill picked once and for all the tracks it likes most
    What am I doing wrong ?

    Sorry about that ; "rude" is not the word I should have used ; "abrupt", maybe, would be closer to how I felt. And yes, my ipod is actually a 2GB one (2G was a typo).
    Let me explain a bit more what I'm trying to achieve, and what I wanted autofill to do automagically for me
    My itunes library is abuot 35GB, so there is more than enough music to choose from. This is also why I am sometimes not creative enough when it comes to filling my ipod: I choose a few albums that I know I want to hear, I sync my podcasts, but all that often leaves me with maybe half a gig left on the ipod.
    When I discovered autofill I was very happy because it chose stuff for me to top up the ipod, and so I ended up with plenty of good surprises : albums that I actually like, and had not listened to for a while. But when I synced the ipod again and again, I realised that autofill did not surprise me any more ; it only chooses high-rated albums and that's it. This is why I asked (naively, it seems) if this was normal behaviour.
    But if it autofill cannot do it (what a shame, that really would be a killer feature) I suppose I'll have to write it myself with smart playlists. I'll post my answer here in case people are interested. the hardest point will be to make these playlists select whole albums. We'll see.
    Cheers,
    -G

  • Autofill always choosing the same songs ? (Itunes 9)

    Hi,
    I'm the happy owner of a 2G iPod nano (first generation) that I was given a few weeks ago. I'm using it together with iTunes 9.0.1 on my mac, and I have a question about the autofill feature.
    Is it normal that autofill always chooses the same songs out of my library to fill the ipod with ? No matter what I do to those tracks (listen to them on the ipod, try do delete them in "manual" mode), they always come back when I sync with autofill. I do have quite a substantial amount of other tracks that I like as well, but it feels like autofill picked once and for all the tracks it likes most
    What am I doing wrong ?

    The only solution seems to be using a third-party application like NanoFibre
    http://steelskies.com/article/49/nanofibre-for-sensible-generation-of-ipod-playl ists

  • My iTunes movie rental freezes during the opening credits always at the same place.

    my iTunes movie rental freezes during the opening credits always at the same place.  What is the cure?  Can I recieve credit for the rental since I could not view it in its entirerty?

    Hi Epski
    Let us know how you go as i'm having the same issue also. I upgraded to yosemite and itunes 12 at the same time and thought the OS upgrade was the issue. I downgraded back to Mavericks again (for lots of reasons i won't go in to here) thinking this would fix the problem but it didn't.
    When i play any video content from itunes 12 in full screen goes dark once the controls fade away. QT, appletv or anything else plays them perfectly, as per itunes 11!
    You don't have a Samsung TV by any chance do you?

  • Why my vector() always always return the last record?

    Whenever i uses Vector, my whole vector always return the last element.. why?? Anyway to solve this?
    some examples of my codes..
    (String)rowVector.elementAt(2)
    My rowVector vector always return the last element..
    while(rs1.next())
    Vector rowVector = new Vector();
    for (int currentCol = 0; currentCol < numCols; currentCol++)
    rowVector.add(rs1.getString (currentCol + 1));
    tableData.addElement(rowVector);

    That means that every element in the Vector refers to the same object. I am surprised that your JDBC driver does not return different string objects for each call, but to work around that, try this:
    rowVector.add(new String(rs1.getString (currentCol + 1)));

  • Where does Sting to IP get the net address if the computer is disconnected from the net? It should return the same I

    P/Net address� it did not change. Internet Protocal(TCP/IP) Properties did not change. When the network is physically disconnected, my VI after several runs returns 127.0.0.1. So, how do I get my IP address whether it�s connected to the network or not?Thanks in advance for your help.

    P/Net address� it did not change. Internet Protocal(TCP/IP) Properties did not change. When the network is physically disconnected, my VI after several runs returns 127.0.0.1. So, how do I get my IP address whether it�s connected to the network or not?If you're getting a dynamically assigned IP address from the network, then String to IP will return that IP but it may not be constant. See if TCP/IP properties are set to "Obtain an IP address automatically". If you disconnect from the network, then the IP address will default to something and I wouldn't be surprised if the default is 127.0.0.1. If you want to always have the same IP, then the ICP/IP properties should be changed to use a fixed IP but you'll certainly need to check with your IS department before doing so.

  • Hi. My husband and I have always shared the same iTunes account.  Since installing iCloud, all our contacts and calenders have merged on our iPhone 4, which we do not want.  How do I rectify this? Does my husband need to set up his own apple ID?

    Hi. My husband and I have always shared the same iTunes account.  Since installing iCloud, all our contacts and calenders have merged on our iPhone 4, which we do not want.  How do I rectify this? Does my husband need to set up his own apple ID?  If so, where do I need to change his email address info, so that his calender and contacts remain his?  Thank you

    You can continue to use the current AppleID for iTunes, but your husband can create a new AppleID to use to create a new iCloud account that will be his own and not overlap with yours.  If you do not have another email address to use for an AppleID, just get a free Gmail account and use that.
    You can have as many AppleIDs as you want (or at least, as many as you have email addresses for).  You can use a separate AppleID for the store, another for iCloud, and even another for iMessage if you wish.
    You will want to keep the current one as the shared one for the store as all your previous purchases are permanently tied to it, and thus you need that AppleID to update or redownload your current purchased content.

Maybe you are looking for

  • Firefox closes all the tabs on its own unexpectedly and we have to start everything afresh.why does this happen?

    our browser closes on its own unexpectedly, all the tabs and everything closes down (esp when playing games in facebook), we have to start everything afresh, just worried if this is not a sign of crash because we haven't received any crash report and

  • Data Guard on Win2003 R2 & Oracle 9.2.0.8

    Hi Team. We have 28 databases oracle 9208 in a windows 2003 R2 Server and we need to create a contingency in a server that is exactly the same as the primary (hardware, OS, patch level and directory structure). Questions: 1- It is possible to create

  • Automatic Billing Block removal in Periodic Billing

    Hi guys: Is there a way to have the billing block removed (not manually) when we use periodic billing?  We do not want to manually remove the block each month in order to do invoicing. Thanks for the input Aaon

  • Sourcing - Sources of supply.

    Hello Experts Could you all please tell what are the different source of supply can be used in classic, extended classic and standalone scenario. Also let me know, what are the sources of supply can be replicated from the backends and their respectiv

  • Infrastructure installation failure

    Hi all, I'm trying to install Application Server Infrastructure on RHEL 3, I Managed the connect the OID with database repository on another server.. But the installation failed at OPMN configuration assistant-start HTTP server! I continued the insta