Ask a Question related to Coldfusion Database Access, Design and Development.
-
al9349 #1
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
-
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... -
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... -
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... -
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... -
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... -
MikerRoo #2
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
-
CF_Oracle #3
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



Reply With Quote

