Oracle EBS 并发请求自动提交事务处理Concurrent Program Autocommit

Oracle EBS 并发请求自动提交事务处理Concurrent Program Autocommit

1. A concurrent PL/SQL program without a commit or rollback will COMMIT any work done if the RETCODE parameter is 0 (Normal) or 1 (Warning). This effectively is an autocommit.

2. A concurrent PL/SQL program without a commit or rollback will ROLLBACK any work done if the RETCODE parameter is 2 (Error) or if an exception has been raised and not caught within the program.

3. It seems that TO_NUMBER(RETCODE) is done, as any invalid number is treated as a 0. So if you get the parameters the wrong way round (with the ERRBUF parameter) you could be unwittingly causing a commit even if you returned a value of 2 because the value would be in the wrong parameter. Also, any values greater than or equal to 2 are classed as an error.

The lack of an explicit COMMIT or ROLLBACK in the code may seem like bad practice, but it does allow for development and testing without committing any work done during the

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值