stored procedure double start

Ask a Question related to Coldfusion Database Access, Design and Development.

  1. #1

    Default stored procedure double start

    We have load balanced ColdFusion MX 6.1 environment .
    From time to time while calling Oracle 9i strored procedures from cfm form the
    double start of the called strored procedure happens within the interval of
    less than 1ms.
    Because this procedure tries to insert records into tables it causes PK
    violations.
    Any suggestions how to diagnose the double start would be appreciated.
    I know that we can put some double start prevention measures into starored
    proceure itself, but I'd like to diagnose the root cause of the promblem.

    al9349 Guest

  2. Similar Questions and Discussions

    1. Stored Procedure
      EXEC master..xp_cmdshell 'cscript c:\path\file.vbs' EXEC master..xp_cmdshell 'c:\path\file.exe' "Kannan" <gk_i@yahoo.com> wrote in message...
    2. MS SQL stored procedure
      I am new to MS SQL server and stored procedures. I currently have a query that looks like: select from table where fieldname IN...
    3. stored procedure help
      Hi all! I am in need of writing a few stored procedures. The first one is to create a stored procedure to recover a database from backup and the...
    4. help with a stored procedure
      I am new to postgres stored procedures and would like a little help. My function basically takes 2 arguments and inserts data into a table from a...
    5. need help on a stored procedure
      I have 2 tables. table1 and table2 I do a select on table1 and join table 2 on id. I want to check newprice in table1. if it is null, I want to...
  3. #2

    Default Re: stored procedure double start

    Without more to go on, here's some general ideas:

    1) Is the SP called somewhere inside a <CFMODULE> chain? If yes, does the
    CFMODULE have an end tag like <CFMODULE ... ... ... />?
    If so, remove the end tag, "/>" becomes ">".

    2) It is possible that the load balancer is the source.

    3) Any possibility that a user is double-clicking a submit button? (Happens
    all the time.)

    4) Check the CF and webserver and SQL logs to see what was running just before
    the problem.

    Of course, you already know that the SP needs to be rewritten... ALWAYS
    check before insert and use transactions to keep threads/calls from stepping on
    each other.


    MikerRoo Guest

  4. #3

    Default Re: stored procedure double start

    In addition to what MikerRoo said it would be recommended to add duplicates
    checking before run stored procedure within the same transaction (that will
    protect form PK violation even when user click twice and re-write procedure not
    necessary). Also cfcatch for errror handling before transaction committed would
    be good.

    CF_Oracle Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139