Two records getting inserted with the same timestamp...

          hi all,
          I am trying to submit a form . Now whenever I click submit before I insert any
          data sent in that form I make a check (SELECT stmt. to see if that record can
          be inserted ...few business validations..) and if the check is successful I then
          proceed for the necessary insert into a table the Primary key for which is a running
          Oracle sequence.
          But if I click on the Submit button twice in close succession I have observed
          may be 1 in 1000 attempts I am able to submit two records with the same time stamp
          for the date of insertion . We are using Oracle 8 with weblogic 5.1. And I don't
          think ORACLE's date precision is beyond seconds.
          So any suggestion ..what is the best way to handle such things : one can be
          to place the same business validation check just before the ending brace of the
          method , or secondly sucmit the form thru javascript and don't submit it twice
          even if the user clicks the submit button twice... any suggestion which u can
          give .. are welcome.
          thnx in advance
          sajan
          

Is the pkey a timestamp or an Oracle sequence? The latter will always work,
          since no two requests to a sequence can get the same value (rollover
          excluded). If you must use timestamp, then you must auto-retry the insert
          if the first attempt fails. Oracle does have higher precision than seconds,
          but I can remember the exact precision ... I am pretty sure it works out to
          at least two or three digits though.
          Peace,
          Cameron Purdy
          Tangosol, Inc.
          http://www.tangosol.com
          Tangosol Server: Enabling enterprise application customization
          "Sajan Parihar" <[email protected]> wrote in message
          news:[email protected]...
          >
          > hi all,
          > I am trying to submit a form . Now whenever I click submit before I
          insert any
          > data sent in that form I make a check (SELECT stmt. to see if that record
          can
          > be inserted ...few business validations..) and if the check is successful
          I then
          > proceed for the necessary insert into a table the Primary key for which is
          a running
          > Oracle sequence.
          > But if I click on the Submit button twice in close succession I have
          observed
          > may be 1 in 1000 attempts I am able to submit two records with the same
          time stamp
          > for the date of insertion . We are using Oracle 8 with weblogic 5.1. And I
          don't
          > think ORACLE's date precision is beyond seconds.
          > So any suggestion ..what is the best way to handle such things : one
          can be
          > to place the same business validation check just before the ending brace
          of the
          > method , or secondly sucmit the form thru javascript and don't submit it
          twice
          > even if the user clicks the submit button twice... any suggestion which u
          can
          > give .. are welcome.
          >
          > thnx in advance
          > sajan
          

Similar Messages

  • ERROR: MyService.jws:715:There are two or more operations with the same schema-element 'ns0:MyNameSpace' on the input message in a web service file or callback interface.

    I have two web service operations that have the same complex type as their input
    parameter. I want to map this type to an existing schema. I can successfully
    do this with the first operation using XQuery but when I attempt to do this with
    the second operation I get the following error:
    ERROR: MyService.jws:715:There are two or more operations with the same schema-element
    'ns0:MyNamespace' on the input message in a web service file or callback interface.
    ERROR:      SUGGESTION: Use different schema-element values for each of those operations.
    How can I use different schema-element values? The input parameters are to be
    mapped to the same schema and same element since they are the same for both operations....

    I am having the same problem. How did you resolve this..?? could you please tell me the solution??
    Thanks
    Shari

  • I have two iPhones and synchronize with the same macbook. How I do segregate both applications and data?

    I have two iPhones and synchronize with the same macbook.  How do I segregate both applications and all the data?

    Hi Jamesdwills,
    Welcome to the Support Communities!
    If you are using the same Apple ID on both devices, the Game Center profile should be the same.
    Check out this information from the iPad User Guide.  Try signing out of the Game Center on both devices and then sign back in with the correct Apple ID:
    Using Game Center
    http://support.apple.com/kb/ht4314
    Game Center settings - iPad User Guide
    http://help.apple.com/ipad/7/#/iPad9a13d039
    Game Center settings
    Go to Settings > Game Center, where you can:
    Sign out (tap your Apple ID)
    Allow invites
    Let nearby players find you
    Edit your Game Center profile (tap your nickname)
    Get friend recommendations from Contacts or Facebook
    Specify which notifications you want for Game Center. Go to Settings > Notifications > Game Center. If Game Center doesn’t appear, turn on Notifications.
    Change restrictions for Game Center. Go to Settings > General > Restrictions.
    Cheers,
    - Judy

  • Hi, does someone know if I can use two Apple tv's with the same iTunes library? Thanks

    Hi, does someone know if I can use two Apple tv's with the same iTunes library?
    Thanks

    Yes you can use two (or more) AppleTVs with one iTunes library. They can both stream from iTunes (or the internet) at the same time, as long as you have a good working LAN and internet connection.

  • I have two iphone 4's with the same name on one computer.  Can I change the name of one so that I can sync each phone separately

    I have two iphone 4's with the same name on one computer.  Can I change the name of one so that I can sync contacts separately?

    How to rename your device in iTunes

  • TS3276 I sent out a mass mailing to my various groups and the Yahoo accounts have been getting bombarded with the same message every 2 minutes and I don't know haow to stop the hemmoraging. Non of my other contacts had this problem. Please help!

    I sent out a mass mailing to my various groups and the Yahoo accounts have been getting bombarded with the same message every 2 minutes and I don't know haow to stop the hemmoraging. Non of my other contacts had this problem, just Yahoo. Can someone help me get out of this nightmare?

    I sent out a mass mailing to my various groups and the Yahoo accounts have been getting bombarded with the same message every 2 minutes and I don't know haow to stop the hemmoraging. Non of my other contacts had this problem, just Yahoo. Can someone help me get out of this nightmare?

  • Can you have two separate icloud accounts for two iphones that sync with the same imac?

    can you have two separate icloud accounts for two iphones that sync with the same imac?

    Welcome to the Apple Community.
    Yes and no.
    There is no issues at all if you use two user accounts on the mac, each can sync with one of the accounts.
    If you are using a single user account, you can add the second account as a secondary account in settings > mail, contacts and calendars and you can then sync mail, contacts, calendars, notes and reminders from the second account, but not documents and data, back to my mac or photostream.

  • I have two iPads. With two functioning iPads. Is it possible (on the same ID) to sync two of them differently with the same account. So I want to use the new iPad for all my current functions. The old iPad for just my music collection?

    I have two iPads. With two functioning iPads. Is it possible (on the same ID) to sync two of them differently with the same account. So I want to use the new iPad for all my current functions. The old iPad for just my music collection and remove all the other stuff?

    Very easily. I have an iPod touch and iPad on the same account with totally different content.
    If you use iTunes, connect each iPad to your computer and open iTunes and deselect any automatic updating/syncing. If you don't sync with iTunes but have them set up independently, under the settings, App Store, turn off automatic downloads for apps, etc.
    I'm old fashioned, I set up and sync my iPad and iPod to my computer and iTunes. Each device has a different name  and I manage content manually and only allow sharing on what I want shared.

  • Oracle Forms - two forms have element with the same name. How to address?

    Hi all
    We test application in Oracle Forms 10G, often there are several forms opened simultaneously.
    And now question – what to do if two or more forms have element with the same Block Name and Name?
    For example:
    //forms:button[(@name=’TOOLBAR_EXIT_FORM_0’)]
    How to address these elements?

    to aamat:
    "The names are not the same"
    OpenScript gives them the same name, it consists of block name + element name + index. it doesn't take form name into consideration, so it gets
    //forms:button[(@name=’TOOLBAR_EXIT_FORM_0’)]

  • How to sepparate two ipads link toguether with the same id

    i have two ipads link with the same id it is possible to have different ids each one???, i have two ipads link with the same id it is possible to have different ids each one???

    Very easily. I have an iPod touch and iPad on the same account with totally different content.
    If you use iTunes, connect each iPad to your computer and open iTunes and deselect any automatic updating/syncing. If you don't sync with iTunes but have them set up independently, under the settings, App Store, turn off automatic downloads for apps, etc.
    I'm old fashioned, I set up and sync my iPad and iPod to my computer and iTunes. Each device has a different name  and I manage content manually and only allow sharing on what I want shared.

  • Exchange 2010 SP3 - "500 5.3.3 Unrecognized command" in SMTP Receive Log. Senders get message with the same problem

    Hi
    My exchange environment consist with "Server Exchange 2010 SP3" and "Edge Server with Exchange 2010 SP3".
    On Edge server in SMTP receive log i get every now and then an entry: xxxxxx 500 5.3.3 Unrecognized command.
    It is serius problem because I got few e-mails from senders that they had problem with sending e-mail messages to our e-mail domain. They receive e-mail report, for example
    Technical details of permanent failure:
    Google tried to deliver your message, but it was rejected by the server for the recipient domain domena.plby
    mail.domena.pl.
    [95.xxx.xxx.xx].
    The error that the other server returned was:
    500 5.3.3 Unrecognized command
    Could you help me to solve this problem? What could cause this problem?
    Thank you in advance
    Tomasz
    Kind Regards Tomasz

    I have the same issue, but there is plenty of hard disk storage on the Exchange Server. This seems to only be happening from Google Business account/ Postini. If I send message from my personal Gmail account it works fine, but an agency who is on Google
    business seems to have issues sending to us and they are delayed, sometimes they get through and other times they just don't. 
    Results from Mail Acceptance Test:
    I enter my internal address and the remote users postini account as the test setup I received two emails from the tool but the end results of the test are:
     Error submitting mail
            Mail submission failed: Error message: Syntax error, command unrecognized. The server response was: 5.3.3 Unrecognized command.
    Google support stated this:
    Here are the logs from Postini trying to connect to mydomain.com (IP x.x.x.x) :
    1. 2014/08/09 03:26:28 IP:209.85.218.50 SMTP-STLS:OK <null> TLSv1:RC4-SHA Validate:None 2. 2014/08/09 03:26:28 IP:209.85.218.50 SMTP LOG: Sender => FFD:MAIL FROM:<[email protected]>
    3. 2014/08/09 03:26:28 IP:209.85.218.50 Fdal:Customer has null root_iid outbound default at org 100000001 4, 2014/08/09 03:26:28 IP:209.85.218.50 SMTP LOG: Sender <= FFD:250 Ok 5. 2014/08/09 03:26:28 IP:209.85.218.50 SMTP LOG: Sender => FFD:RCPT TO:[email protected]>
    6. 2014/08/09 03:26:34 IP:209.85.218.50 To:[email protected] SMTP LOG: FFD => mydomain.com (x.x.x.x):Connection established 7. 2014/08/09 03:26:34 IP:209.85.218.50 To:[email protected] SMTP LOG: FFD <= mydomain.com (x.x.x.x):220 server.mydomain.com
    ESMTP Service ready 8. 2014/08/09 03:26:34 IP:209.85.218.50 To:[email protected] SMTP LOG: Sender <= FFD:250 Ok 9. 2014/08/09 03:26:35 IP:209.85.218.50 To:[email protected] SMTP LOG: Sender => FFD:968 last bytes of data with dot 10. 2014/08/09 03:28:05
    IP:209.85.218.50 To:[email protected] From:[email protected]:1119780 FP:2603ec6d38c69886eb1000e516fb745a0384e50b SMTP:Delivery still in progress after 90 seconds, recording FP 11. 2014/08/09 03:31:17 IP:209.85.218.50 To:[email protected] SMTP
    LOG: FFD => mydomain.com (x.x.x.x):failed to send the last period(.) 12. 2014/08/09 03:31:17 IP:209.85.218.50 To:[email protected] oremote:Skipping Archive for Sender because did not deliver message 13. 2014/08/09 03:31:17 IP:209.85.218.50 To:[email protected]
    SMTP:451 Remote connection lost - psmtp 14. 2014/08/09 03:31:17 IP:209.85.218.50 To:[email protected] SMTP LOG: Sender <= FFD:451 Remote connection lost - psmtp
    As you can see, on line 9, at 03:26:35, we declared to the receiving server what we were about to send. At the line number 10, almost two minutes passed without an authorization (250 OK) from the receiving server. You can see our status being pushed back
    at that moment to the receiving mail server: SMTP:Delivery still in progress after 90 seconds. Two more minutes later the connection was simply dropped and so we generated a 400 error message to encourage the sending server to try again later (since no bounce
    was given per say from the receiving server, we won't hard-bounce it but defer it).
    I hope this will help. you can try to look in the mydomain.com  inbound logs and see at that exact time what happened? Unfortunately, our visibility pretty much ends there as we don't have full visibility of your mail environment. You'll need to investigate
    within your own environment unfortunately. If you have any more information to share with me, in case it might help me help you, feel free to do so. I'll leave this case opened for now.
    Sincerely,
    Patricia
    Google Enterprise Support

  • We have two. IPod touch with the same Apple ID . How can each have a different profile name set up?

    My boys would like their own Game Center profile set up but they are both using my Apple ID. They are not yet 13. When I change the name on one ipod it automatically changes on the other. Please help!

    They need a unique Apple ID for Game Center. Set one up in your name an supervise its use
    Create a NEW account/ID for her using these instructions. Make sure you follow the instructions. Many do not and if you do not you will not get the None option. You must use an email address that you have not used with Apple before. Make sure you specify a birthdate that results in being at least 13 years old
      Creating an iTunes Store, App Store, iBookstore, and Mac App Store account without a credit card
    Use the new ID on her iPod but only for:
    Settings>Messages>Send and Receive
    Settings>FaceTime
    Settings>GameCenter
    and Settings>iCloud if you want her to have separate Contacts Calendar and some other things.   
    Continue to use the same/common Apple ID for Settings>iTunes and App stores so you can share purchases.

  • HT204053 Can I back up two computers to iCloud with the same Apple ID and not lose any data?

    Hi.  I have a macbook air which is all set to back up on iCloud.
    My iMac has much more data and I wish to set it up as well.
    Will iCloud know these are two different computers or will it overwrite one with the other's data?
    I guess the main question is, do I need two Apple IDs and should I treat them as two separate accounts.
    Many thanks.

    Hi...
    If you delete the backups it will not delete any content from their device, however the data will be removed from iCloud.
    It will also prevent the devices from backing up to iCloud in future, unless this is re-enabled.

  • Connecting to two wi-fi networks with the same name

    Hello,
    I have to work daily on two different universities, using my Powerbook 12" (MacOS 10.5.8). The wi-fi networks in both places are both called the same — "eduroam", the European network service for education. Everytime I try to connect, the system will use the last provided login and password (which are obviously different in the two cases) and fail. Is there an easy way to prevent this from happening, saving the different settings for both places?
    Thanks in advance.

    Thanks, K T.
    Yes, I'm using automatic logins. How do I do can I create the logons? In the Network Preferences, renaming the location?

  • Can two iPhones be used with the same computer?

    I have an iPhone 4.  My wife is about to get an iPhone 4s.  Can we service both on the same computer?

    Absolutely. If you share everything, including music, calendars address books, etc., you can sync both phones to one iTunes/iCloud account.  If on the other hand you want to have separate music libraries, calendars and such then you will need to set up separate accounts.

Maybe you are looking for

  • Mouse and Touchpad settings Windows 8.1 and Surface Pro 3

    I have a Surface Pro 3 running Windows 8.1.   I noticed that I can no longer use the right or left clicks when using the touch pad on the Surface Pro 3 keyboard.  When I go to PC Settings - PC and devices - Mouse and Touchpad I only see the section f

  • How can I get Adobe Acrobat 9 Standard installed againg into my notebook Vaio windows7 Pro?

    This Adobe software was preloaded in my Notebook and was unistalled by accident. I've tried to install it using my notebook tools however it doesn't work. I really appreciate your help. Best Regards, Oscar.

  • How do I retrieve purchased tv shows without buying them again?

    I deleted from my laptope my tv shows by accident and when i go on Itunes store it says I have to buy them again. How can I get them back without paying?

  • Displaying Image on th JSP page

    Hello All, I am using following code to display the image on the JSP page in my iView <% String PublicURL = componentRequest.getPublicResourcePath()+ "/images/Image1.gif"  ; %> <hbj:image id="Logo" width="70" height="35"                             s

  • ADF components not Rendering on ie9 Browser

    This is a strange behavior , ADF components like ( table , DVT graph ) are not rendering on the ie9 browser ( keep fetching ...) . However , works fine with ie8,Google chrome, firefox . Believe some setting is required in my client brower ie9. Any id