Re: Rollback statements in stored procedure
From: Joe Weinstein (joeNOSPAM_at_bea.com)
Date: 11/03/04
- Previous message: Kevin Arouza: "Rollback statements in stored procedure"
- In reply to: Kevin Arouza: "Rollback statements in stored procedure"
- Next in thread: Kevin Arouza: "Re: Rollback statements in stored procedure"
- Reply: Kevin Arouza: "Re: Rollback statements in stored procedure"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Wed, 03 Nov 2004 11:31:09 -0800 To: Kevin Arouza <kevarouza@hotmail.com>
Did you make sure your JDBC connection was in autoCommit(false)
mode before calling the procedure?
Joe Weinstein at BEA
Kevin Arouza wrote:
> I am calling an Oracle stored procedure which returns the status
> through an out parameter. If the status is 0 it means success, 1
> indicates a failure. On failure, I want to rollback the changes made
> in the stored procedure via a Connection.rollback(). Unfortunately,
> this has no effect. Is there a way I can rollback the changes made by
> a stored procedure?
>
> The reason I don't want to place the commit/rollback within the
> procedure is because my client calls a set of 5 procedures
> sequentially and if any one of them fail I have to rollback the
> changes made by all the previous procedures. Any ideas?
>
> Thanks,
> Kevin
- Previous message: Kevin Arouza: "Rollback statements in stored procedure"
- In reply to: Kevin Arouza: "Rollback statements in stored procedure"
- Next in thread: Kevin Arouza: "Re: Rollback statements in stored procedure"
- Reply: Kevin Arouza: "Re: Rollback statements in stored procedure"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|